feat(ui): add BlockEditor component with block types, slash menu, and drag-and-drop

- add BlockEditor orchestrator with controlled block list and keyboard navigation
- add Block client component with contentEditable sync, drag handles, and markdown shortcuts
- add SlashMenu for inserting block types via `/` command
- add blockRegistry and block type definitions (paragraph, heading, bullet list, numbered list, quote, code, divider)
- add caret and id utility helpers
- export BlockEditor from shared components index
- add BlockEditor demo to admin devkit ComponentsPage
- add README documenting usage and architecture
This commit is contained in:
2026-04-25 17:37:23 -04:00
parent 0c99bf5002
commit 54386d3fe3
18 changed files with 1401 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ export { default as StatCard } from './StatCard';
export { default as Table } from './Table';
export { default as Textarea } from './Textarea';
export { default as MarkdownEditor } from './MarkdownEditor';
export { default as BlockEditor } from './BlockEditor';
export { default as PasswordStrengthIndicator } from './PasswordStrengthIndicator';
export { default as FilterTabs } from './FilterTabs';
export { default as Breadcrumb } from './Breadcrumb';