@dxos/react-ui-editor 0.8.4-main.422d1c7879 → 0.8.4-main.4f23b4e393

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/lib/browser/index.mjs +61 -139
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +39 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/lib/node-esm/index.mjs +61 -139
  7. package/dist/lib/node-esm/index.mjs.map +4 -4
  8. package/dist/lib/node-esm/meta.json +1 -1
  9. package/dist/lib/node-esm/translations.mjs +41 -0
  10. package/dist/lib/node-esm/translations.mjs.map +7 -0
  11. package/dist/types/src/components/Editor/Editor.d.ts +17 -5
  12. package/dist/types/src/components/Editor/Editor.d.ts.map +1 -1
  13. package/dist/types/src/components/Editor/Editor.stories.d.ts +1 -1
  14. package/dist/types/src/components/Editor/Editor.stories.d.ts.map +1 -1
  15. package/dist/types/src/components/Editor/EditorView.d.ts.map +1 -1
  16. package/dist/types/src/components/Editor/controller.d.ts.map +1 -1
  17. package/dist/types/src/components/EditorMenuProvider/EditorMenuProvider.d.ts.map +1 -1
  18. package/dist/types/src/components/EditorMenuProvider/menu.d.ts.map +1 -1
  19. package/dist/types/src/components/EditorMenuProvider/popover.d.ts +2 -1
  20. package/dist/types/src/components/EditorMenuProvider/popover.d.ts.map +1 -1
  21. package/dist/types/src/components/EditorMenuProvider/useEditorMenu.d.ts.map +1 -1
  22. package/dist/types/src/components/EditorPreviewProvider/EditorPreviewProvider.d.ts.map +1 -1
  23. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts +1 -1
  24. package/dist/types/src/components/EditorToolbar/EditorToolbar.d.ts.map +1 -1
  25. package/dist/types/src/components/EditorToolbar/blocks.d.ts.map +1 -1
  26. package/dist/types/src/components/EditorToolbar/formatting.d.ts.map +1 -1
  27. package/dist/types/src/components/EditorToolbar/headings.d.ts.map +1 -1
  28. package/dist/types/src/components/EditorToolbar/image.d.ts.map +1 -1
  29. package/dist/types/src/components/EditorToolbar/lists.d.ts.map +1 -1
  30. package/dist/types/src/components/EditorToolbar/search.d.ts.map +1 -1
  31. package/dist/types/src/components/EditorToolbar/types.d.ts +2 -1
  32. package/dist/types/src/components/EditorToolbar/types.d.ts.map +1 -1
  33. package/dist/types/src/components/EditorToolbar/view-mode.d.ts +1 -1
  34. package/dist/types/src/components/EditorToolbar/view-mode.d.ts.map +1 -1
  35. package/dist/types/src/extensions/Assistant.stories.d.ts.map +1 -1
  36. package/dist/types/src/extensions/assistant-extension.d.ts.map +1 -1
  37. package/dist/types/src/hooks/useBasicMarkdownExtensions.d.ts.map +1 -1
  38. package/dist/types/src/hooks/useTextEditor.d.ts.map +1 -1
  39. package/dist/types/src/index.d.ts +0 -2
  40. package/dist/types/src/index.d.ts.map +1 -1
  41. package/dist/types/src/stories/Automerge.stories.d.ts +24 -24
  42. package/dist/types/src/stories/Automerge.stories.d.ts.map +1 -1
  43. package/dist/types/src/stories/Comments.stories.d.ts +1 -1
  44. package/dist/types/src/stories/Comments.stories.d.ts.map +1 -1
  45. package/dist/types/src/stories/EditorToolbar.stories.d.ts +25 -25
  46. package/dist/types/src/stories/EditorToolbar.stories.d.ts.map +1 -1
  47. package/dist/types/src/stories/Experimental.stories.d.ts +2 -2
  48. package/dist/types/src/stories/Experimental.stories.d.ts.map +1 -1
  49. package/dist/types/src/stories/Markdown.stories.d.ts +1 -1
  50. package/dist/types/src/stories/Markdown.stories.d.ts.map +1 -1
  51. package/dist/types/src/stories/Outliner.stories.d.ts.map +1 -1
  52. package/dist/types/src/stories/Popover.stories.d.ts.map +1 -1
  53. package/dist/types/src/stories/Preview.stories.d.ts +1 -1
  54. package/dist/types/src/stories/Preview.stories.d.ts.map +1 -1
  55. package/dist/types/src/stories/Tags.stories.d.ts.map +1 -1
  56. package/dist/types/src/stories/TextEditor.stories.d.ts +1 -1
  57. package/dist/types/src/stories/TextEditor.stories.d.ts.map +1 -1
  58. package/dist/types/src/stories/Theme.stories.d.ts.map +1 -1
  59. package/dist/types/src/stories/components/EditorStory.d.ts +1 -1
  60. package/dist/types/src/stories/components/util.d.ts +2 -1
  61. package/dist/types/src/stories/components/util.d.ts.map +1 -1
  62. package/dist/types/src/translations.d.ts +24 -24
  63. package/dist/types/src/translations.d.ts.map +1 -1
  64. package/dist/types/src/util/react.d.ts +1 -1
  65. package/dist/types/src/util/react.d.ts.map +1 -1
  66. package/dist/types/tsconfig.tsbuildinfo +1 -1
  67. package/package.json +54 -45
  68. package/src/components/Editor/Editor.tsx +2 -8
  69. package/src/components/Editor/EditorView.tsx +29 -10
  70. package/src/components/EditorMenuProvider/EditorMenuProvider.tsx +1 -1
  71. package/src/components/EditorMenuProvider/popover.ts +3 -1
  72. package/src/components/EditorPreviewProvider/EditorPreviewProvider.tsx +1 -1
  73. package/src/components/EditorToolbar/EditorToolbar.tsx +8 -6
  74. package/src/components/EditorToolbar/blocks.ts +2 -1
  75. package/src/components/EditorToolbar/formatting.ts +2 -1
  76. package/src/components/EditorToolbar/headings.ts +2 -1
  77. package/src/components/EditorToolbar/image.ts +1 -1
  78. package/src/components/EditorToolbar/lists.ts +2 -1
  79. package/src/components/EditorToolbar/search.ts +1 -1
  80. package/src/components/EditorToolbar/types.ts +2 -1
  81. package/src/components/EditorToolbar/view-mode.ts +3 -2
  82. package/src/extensions/Assistant.stories.tsx +2 -1
  83. package/src/extensions/assistant-extension.tsx +3 -3
  84. package/src/index.ts +0 -4
  85. package/src/stories/Automerge.stories.tsx +4 -3
  86. package/src/stories/Comments.stories.tsx +2 -1
  87. package/src/stories/EditorToolbar.stories.tsx +4 -3
  88. package/src/stories/Experimental.stories.tsx +7 -7
  89. package/src/stories/components/util.tsx +2 -2
  90. package/src/util/react.tsx +1 -1
@@ -1 +1 @@
1
- {"inputs":{"src/translations.ts":{"bytes":4320,"imports":[],"format":"esm"},"src/components/EditorMenuProvider/menu.ts":{"bytes":6114,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorMenuProvider/popover.ts":{"bytes":30750,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorMenuProvider/menu-presets.ts":{"bytes":12737,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/components/EditorMenuProvider/popover.ts","kind":"import-statement","original":"./popover"}],"format":"esm"},"src/components/EditorMenuProvider/EditorMenuProvider.tsx":{"bytes":21281,"imports":[{"path":"@radix-ui/react-use-controllable-state","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorMenuProvider/useEditorMenu.ts":{"bytes":19786,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/components/EditorMenuProvider/menu.ts","kind":"import-statement","original":"./menu"},{"path":"src/components/EditorMenuProvider/popover.ts","kind":"import-statement","original":"./popover"}],"format":"esm"},"src/components/EditorMenuProvider/index.ts":{"bytes":882,"imports":[{"path":"src/components/EditorMenuProvider/menu.ts","kind":"import-statement","original":"./menu"},{"path":"src/components/EditorMenuProvider/menu-presets.ts","kind":"import-statement","original":"./menu-presets"},{"path":"src/components/EditorMenuProvider/popover.ts","kind":"import-statement","original":"./popover"},{"path":"src/components/EditorMenuProvider/EditorMenuProvider.tsx","kind":"import-statement","original":"./EditorMenuProvider"},{"path":"src/components/EditorMenuProvider/useEditorMenu.ts","kind":"import-statement","original":"./useEditorMenu"}],"format":"esm"},"src/components/EditorToolbar/types.ts":{"bytes":623,"imports":[],"format":"esm"},"src/components/EditorToolbar/blocks.ts":{"bytes":6865,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"src/components/EditorToolbar/formatting.ts":{"bytes":6786,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"src/components/EditorToolbar/headings.ts":{"bytes":6498,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"src/components/EditorToolbar/image.ts":{"bytes":1931,"imports":[{"path":"src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"src/components/EditorToolbar/lists.ts":{"bytes":5905,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"src/components/EditorToolbar/search.ts":{"bytes":2225,"imports":[{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"src/components/EditorToolbar/view-mode.ts":{"bytes":4776,"imports":[{"path":"src/translations.ts","kind":"import-statement","original":"../../translations"}],"format":"esm"},"src/components/EditorToolbar/EditorToolbar.tsx":{"bytes":11976,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/components/EditorToolbar/blocks.ts","kind":"import-statement","original":"./blocks"},{"path":"src/components/EditorToolbar/formatting.ts","kind":"import-statement","original":"./formatting"},{"path":"src/components/EditorToolbar/headings.ts","kind":"import-statement","original":"./headings"},{"path":"src/components/EditorToolbar/image.ts","kind":"import-statement","original":"./image"},{"path":"src/components/EditorToolbar/lists.ts","kind":"import-statement","original":"./lists"},{"path":"src/components/EditorToolbar/search.ts","kind":"import-statement","original":"./search"},{"path":"src/components/EditorToolbar/view-mode.ts","kind":"import-statement","original":"./view-mode"}],"format":"esm"},"src/components/EditorToolbar/index.ts":{"bytes":577,"imports":[{"path":"src/components/EditorToolbar/types.ts","kind":"import-statement","original":"./types"},{"path":"src/components/EditorToolbar/EditorToolbar.tsx","kind":"import-statement","original":"./EditorToolbar"}],"format":"esm"},"src/hooks/useBasicMarkdownExtensions.ts":{"bytes":5198,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useTextEditor.ts":{"bytes":17751,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":607,"imports":[{"path":"src/hooks/useBasicMarkdownExtensions.ts","kind":"import-statement","original":"./useBasicMarkdownExtensions"},{"path":"src/hooks/useTextEditor.ts","kind":"import-statement","original":"./useTextEditor"}],"format":"esm"},"src/components/Editor/controller.ts":{"bytes":3534,"imports":[],"format":"esm"},"src/components/Editor/EditorView.tsx":{"bytes":9229,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"src/components/Editor/controller.ts","kind":"import-statement","original":"./controller"}],"format":"esm"},"src/components/Editor/Editor.tsx":{"bytes":16076,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/components/EditorMenuProvider/index.ts","kind":"import-statement","original":"../EditorMenuProvider"},{"path":"src/components/EditorToolbar/index.ts","kind":"import-statement","original":"../EditorToolbar"},{"path":"src/components/Editor/EditorView.tsx","kind":"import-statement","original":"./EditorView"}],"format":"esm"},"src/components/Editor/index.ts":{"bytes":470,"imports":[{"path":"src/components/Editor/Editor.tsx","kind":"import-statement","original":"./Editor"}],"format":"esm"},"src/components/EditorPreviewProvider/EditorPreviewProvider.tsx":{"bytes":8426,"imports":[{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorPreviewProvider/index.ts":{"bytes":520,"imports":[{"path":"src/components/EditorPreviewProvider/EditorPreviewProvider.tsx","kind":"import-statement","original":"./EditorPreviewProvider"}],"format":"esm"},"src/components/index.ts":{"bytes":698,"imports":[{"path":"src/components/Editor/index.ts","kind":"import-statement","original":"./Editor"},{"path":"src/components/EditorMenuProvider/index.ts","kind":"import-statement","original":"./EditorMenuProvider"},{"path":"src/components/EditorPreviewProvider/index.ts","kind":"import-statement","original":"./EditorPreviewProvider"}],"format":"esm"},"src/extensions/assistant-extension.tsx":{"bytes":22338,"imports":[{"path":"@codemirror/lint","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/index.ts":{"bytes":496,"imports":[{"path":"src/extensions/assistant-extension.tsx","kind":"import-statement","original":"./assistant-extension"}],"format":"esm"},"src/index.ts":{"bytes":895,"imports":[{"path":"src/translations.ts","kind":"import-statement","original":"./translations"},{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/extensions/index.ts","kind":"import-statement","original":"./extensions"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":113502},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@radix-ui/react-use-controllable-state","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@codemirror/lint","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Editor","EditorMenuProvider","EditorPreviewProvider","assistant","createEditorController","createMenuGroup","filterMenuGroups","formattingCommands","getMenuItem","getNextMenuItem","getPreviousMenuItem","linkSlashCommands","popover","popoverRangeEffect","popoverStateField","translations","useBasicMarkdownExtensions","useEditorContext","useEditorMenu","useEditorPreview","useTextEditor"],"entryPoint":"src/index.ts","inputs":{"src/translations.ts":{"bytesInOutput":1229},"src/components/Editor/Editor.tsx":{"bytesInOutput":3122},"src/components/EditorMenuProvider/menu.ts":{"bytesInOutput":1066},"src/components/EditorMenuProvider/menu-presets.ts":{"bytesInOutput":3394},"src/components/EditorMenuProvider/popover.ts":{"bytesInOutput":6791},"src/components/EditorMenuProvider/EditorMenuProvider.tsx":{"bytesInOutput":5388},"src/components/EditorMenuProvider/useEditorMenu.ts":{"bytesInOutput":4341},"src/components/EditorToolbar/EditorToolbar.tsx":{"bytesInOutput":2035},"src/components/EditorToolbar/blocks.ts":{"bytesInOutput":1399},"src/components/EditorToolbar/formatting.ts":{"bytesInOutput":1335},"src/components/EditorToolbar/headings.ts":{"bytesInOutput":1416},"src/components/EditorToolbar/image.ts":{"bytesInOutput":265},"src/components/EditorToolbar/lists.ts":{"bytesInOutput":1167},"src/components/EditorToolbar/search.ts":{"bytesInOutput":334},"src/components/EditorToolbar/view-mode.ts":{"bytesInOutput":885},"src/components/Editor/EditorView.tsx":{"bytesInOutput":1910},"src/hooks/useBasicMarkdownExtensions.ts":{"bytesInOutput":756},"src/hooks/useTextEditor.ts":{"bytesInOutput":4360},"src/components/Editor/controller.ts":{"bytesInOutput":665},"src/components/EditorPreviewProvider/EditorPreviewProvider.tsx":{"bytesInOutput":1900},"src/index.ts":{"bytesInOutput":0},"src/extensions/assistant-extension.tsx":{"bytesInOutput":5641}},"bytes":51080}}}
1
+ {"inputs":{"src/components/EditorMenuProvider/menu.ts":{"bytes":6007,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorMenuProvider/popover.ts":{"bytes":30797,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorMenuProvider/menu-presets.ts":{"bytes":12618,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/components/EditorMenuProvider/popover.ts","kind":"import-statement","original":"./popover"}],"format":"esm"},"src/components/EditorMenuProvider/EditorMenuProvider.tsx":{"bytes":20982,"imports":[{"path":"@radix-ui/react-use-controllable-state","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorMenuProvider/useEditorMenu.ts":{"bytes":19681,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"src/components/EditorMenuProvider/menu.ts","kind":"import-statement","original":"./menu"},{"path":"src/components/EditorMenuProvider/popover.ts","kind":"import-statement","original":"./popover"}],"format":"esm"},"src/components/EditorMenuProvider/index.ts":{"bytes":770,"imports":[{"path":"src/components/EditorMenuProvider/menu.ts","kind":"import-statement","original":"./menu"},{"path":"src/components/EditorMenuProvider/menu-presets.ts","kind":"import-statement","original":"./menu-presets"},{"path":"src/components/EditorMenuProvider/popover.ts","kind":"import-statement","original":"./popover"},{"path":"src/components/EditorMenuProvider/EditorMenuProvider.tsx","kind":"import-statement","original":"./EditorMenuProvider"},{"path":"src/components/EditorMenuProvider/useEditorMenu.ts","kind":"import-statement","original":"./useEditorMenu"}],"format":"esm"},"src/components/EditorToolbar/types.ts":{"bytes":576,"imports":[],"format":"esm"},"src/components/EditorToolbar/blocks.ts":{"bytes":6752,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorToolbar/formatting.ts":{"bytes":6665,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorToolbar/headings.ts":{"bytes":6383,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorToolbar/image.ts":{"bytes":1815,"imports":[{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorToolbar/lists.ts":{"bytes":5789,"imports":[{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorToolbar/search.ts":{"bytes":2108,"imports":[{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorToolbar/view-mode.ts":{"bytes":4664,"imports":[{"path":"#translations","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorToolbar/EditorToolbar.tsx":{"bytes":11936,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"src/components/EditorToolbar/blocks.ts","kind":"import-statement","original":"./blocks"},{"path":"src/components/EditorToolbar/formatting.ts","kind":"import-statement","original":"./formatting"},{"path":"src/components/EditorToolbar/headings.ts","kind":"import-statement","original":"./headings"},{"path":"src/components/EditorToolbar/image.ts","kind":"import-statement","original":"./image"},{"path":"src/components/EditorToolbar/lists.ts","kind":"import-statement","original":"./lists"},{"path":"src/components/EditorToolbar/search.ts","kind":"import-statement","original":"./search"},{"path":"src/components/EditorToolbar/view-mode.ts","kind":"import-statement","original":"./view-mode"}],"format":"esm"},"src/components/EditorToolbar/index.ts":{"bytes":474,"imports":[{"path":"src/components/EditorToolbar/types.ts","kind":"import-statement","original":"./types"},{"path":"src/components/EditorToolbar/EditorToolbar.tsx","kind":"import-statement","original":"./EditorToolbar"}],"format":"esm"},"src/hooks/useBasicMarkdownExtensions.ts":{"bytes":5093,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/useTextEditor.ts":{"bytes":17291,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/hooks/index.ts":{"bytes":523,"imports":[{"path":"src/hooks/useBasicMarkdownExtensions.ts","kind":"import-statement","original":"./useBasicMarkdownExtensions"},{"path":"src/hooks/useTextEditor.ts","kind":"import-statement","original":"./useTextEditor"}],"format":"esm"},"src/components/Editor/controller.ts":{"bytes":3429,"imports":[],"format":"esm"},"src/components/Editor/EditorView.tsx":{"bytes":11560,"imports":[{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"src/hooks/index.ts","kind":"import-statement","original":"../../hooks"},{"path":"src/components/Editor/controller.ts","kind":"import-statement","original":"./controller"}],"format":"esm"},"src/components/Editor/Editor.tsx":{"bytes":15772,"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/components/EditorMenuProvider/index.ts","kind":"import-statement","original":"../EditorMenuProvider"},{"path":"src/components/EditorToolbar/index.ts","kind":"import-statement","original":"../EditorToolbar"},{"path":"src/components/Editor/EditorView.tsx","kind":"import-statement","original":"./EditorView"}],"format":"esm"},"src/components/Editor/index.ts":{"bytes":370,"imports":[{"path":"src/components/Editor/Editor.tsx","kind":"import-statement","original":"./Editor"}],"format":"esm"},"src/components/EditorPreviewProvider/EditorPreviewProvider.tsx":{"bytes":8232,"imports":[{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true}],"format":"esm"},"src/components/EditorPreviewProvider/index.ts":{"bytes":409,"imports":[{"path":"src/components/EditorPreviewProvider/EditorPreviewProvider.tsx","kind":"import-statement","original":"./EditorPreviewProvider"}],"format":"esm"},"src/components/index.ts":{"bytes":609,"imports":[{"path":"src/components/Editor/index.ts","kind":"import-statement","original":"./Editor"},{"path":"src/components/EditorMenuProvider/index.ts","kind":"import-statement","original":"./EditorMenuProvider"},{"path":"src/components/EditorPreviewProvider/index.ts","kind":"import-statement","original":"./EditorPreviewProvider"}],"format":"esm"},"src/extensions/assistant-extension.tsx":{"bytes":22232,"imports":[{"path":"@codemirror/lint","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/index.ts":{"bytes":403,"imports":[{"path":"src/extensions/assistant-extension.tsx","kind":"import-statement","original":"./assistant-extension"}],"format":"esm"},"src/index.ts":{"bytes":553,"imports":[{"path":"src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"src/extensions/index.ts","kind":"import-statement","original":"./extensions"},{"path":"src/hooks/index.ts","kind":"import-statement","original":"./hooks"}],"format":"esm"},"src/translations.ts":{"bytes":4235,"imports":[],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":108581},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@radix-ui/react-use-controllable-state","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@effect-atom/atom-react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-menu","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"@codemirror/search","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"#translations","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/ui-theme","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/ui-editor","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@codemirror/lint","kind":"import-statement","external":true},{"path":"@codemirror/state","kind":"import-statement","external":true},{"path":"@codemirror/view","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Editor","EditorMenuProvider","EditorPreviewProvider","assistant","createEditorController","createMenuGroup","filterMenuGroups","formattingCommands","getMenuItem","getNextMenuItem","getPreviousMenuItem","linkSlashCommands","popover","popoverRangeEffect","popoverStateField","useBasicMarkdownExtensions","useEditorContext","useEditorMenu","useEditorPreview","useTextEditor"],"entryPoint":"src/index.ts","inputs":{"src/components/Editor/Editor.tsx":{"bytesInOutput":3075},"src/components/EditorMenuProvider/menu.ts":{"bytesInOutput":1066},"src/components/EditorMenuProvider/menu-presets.ts":{"bytesInOutput":3394},"src/components/EditorMenuProvider/popover.ts":{"bytesInOutput":6814},"src/components/EditorMenuProvider/EditorMenuProvider.tsx":{"bytesInOutput":5298},"src/components/EditorMenuProvider/useEditorMenu.ts":{"bytesInOutput":4313},"src/components/EditorToolbar/EditorToolbar.tsx":{"bytesInOutput":2027},"src/components/EditorToolbar/blocks.ts":{"bytesInOutput":1447},"src/components/EditorToolbar/formatting.ts":{"bytesInOutput":1404},"src/components/EditorToolbar/headings.ts":{"bytesInOutput":1485},"src/components/EditorToolbar/image.ts":{"bytesInOutput":333},"src/components/EditorToolbar/lists.ts":{"bytesInOutput":1236},"src/components/EditorToolbar/search.ts":{"bytesInOutput":402},"src/components/EditorToolbar/view-mode.ts":{"bytesInOutput":954},"src/components/Editor/EditorView.tsx":{"bytesInOutput":2138},"src/hooks/useBasicMarkdownExtensions.ts":{"bytesInOutput":756},"src/hooks/useTextEditor.ts":{"bytesInOutput":4164},"src/components/Editor/controller.ts":{"bytesInOutput":665},"src/components/EditorPreviewProvider/EditorPreviewProvider.tsx":{"bytesInOutput":1882},"src/index.ts":{"bytesInOutput":0},"src/extensions/assistant-extension.tsx":{"bytesInOutput":5609}},"bytes":50103},"dist/lib/node-esm/translations.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1972},"dist/lib/node-esm/translations.mjs":{"imports":[],"exports":["translationKey","translations"],"entryPoint":"src/translations.ts","inputs":{"src/translations.ts":{"bytesInOutput":1229}},"bytes":1432}}}
@@ -0,0 +1,41 @@
1
+ import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+
3
+ // src/translations.ts
4
+ var translationKey = "@dxos/react-ui-editor";
5
+ var translations = [
6
+ {
7
+ "en-US": {
8
+ [translationKey]: {
9
+ "comment.label": "Create comment",
10
+ "image.label": "Insert image",
11
+ "search.label": "Search",
12
+ "block.label": "Block",
13
+ "block.blockquote.label": "Block quote",
14
+ "block.codeblock.label": "Code block",
15
+ "block.table.label": "Create table",
16
+ "formatting.label": "Formatting",
17
+ "formatting.strong.label": "Bold",
18
+ "formatting.emphasis.label": "Italics",
19
+ "formatting.strikethrough.label": "Strikethrough",
20
+ "formatting.code.label": "Code",
21
+ "formatting.link.label": "Link",
22
+ "list.bullet.label": "Bullet list",
23
+ "list.ordered.label": "Numbered list",
24
+ "list.task.label": "Task list",
25
+ "heading.label": "Heading level",
26
+ "heading-level.label_zero": "Paragraph",
27
+ "heading-level.label_one": "Heading level {{count}}",
28
+ "heading-level.label_other": "Heading level {{count}}",
29
+ "view-mode.label": "Editor view",
30
+ "view-mode.preview.label": "Markdown",
31
+ "view-mode.source.label": "Plain text",
32
+ "view-mode.readonly.label": "Read only"
33
+ }
34
+ }
35
+ }
36
+ ];
37
+ export {
38
+ translationKey,
39
+ translations
40
+ };
41
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\n\nexport const translationKey = '@dxos/react-ui-editor';\n\nexport const translations = [\n {\n 'en-US': {\n [translationKey]: {\n 'comment.label': 'Create comment',\n 'image.label': 'Insert image',\n 'search.label': 'Search',\n\n 'block.label': 'Block',\n 'block.blockquote.label': 'Block quote',\n 'block.codeblock.label': 'Code block',\n 'block.table.label': 'Create table',\n\n 'formatting.label': 'Formatting',\n 'formatting.strong.label': 'Bold',\n 'formatting.emphasis.label': 'Italics',\n 'formatting.strikethrough.label': 'Strikethrough',\n 'formatting.code.label': 'Code',\n 'formatting.link.label': 'Link',\n\n 'list.bullet.label': 'Bullet list',\n 'list.ordered.label': 'Numbered list',\n 'list.task.label': 'Task list',\n\n 'heading.label': 'Heading level',\n 'heading-level.label_zero': 'Paragraph',\n 'heading-level.label_one': 'Heading level {{count}}',\n 'heading-level.label_other': 'Heading level {{count}}',\n\n 'view-mode.label': 'Editor view',\n 'view-mode.preview.label': 'Markdown',\n 'view-mode.source.label': 'Plain text',\n 'view-mode.readonly.label': 'Read only',\n },\n },\n },\n] as const satisfies Resource[];\n"],
5
+ "mappings": ";;;AAMO,IAAMA,iBAAiB;AAEvB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACD,cAAAA,GAAiB;QAChB,iBAAiB;QACjB,eAAe;QACf,gBAAgB;QAEhB,eAAe;QACf,0BAA0B;QAC1B,yBAAyB;QACzB,qBAAqB;QAErB,oBAAoB;QACpB,2BAA2B;QAC3B,6BAA6B;QAC7B,kCAAkC;QAClC,yBAAyB;QACzB,yBAAyB;QAEzB,qBAAqB;QACrB,sBAAsB;QACtB,mBAAmB;QAEnB,iBAAiB;QACjB,4BAA4B;QAC5B,2BAA2B;QAC3B,6BAA6B;QAE7B,mBAAmB;QACnB,2BAA2B;QAC3B,0BAA0B;QAC1B,4BAA4B;MAC9B;IACF;EACF;;",
6
+ "names": ["translationKey", "translations"]
7
+ }
@@ -20,14 +20,30 @@ type EditorRootProps = PropsWithChildren<Pick<EditorContextValue, 'extensions'>
20
20
  viewMode?: EditorToolbarState['viewMode'];
21
21
  }>;
22
22
  type EditorContentProps = ThemedClassName<PropsWithChildren<{}>>;
23
+ declare function EditorContent({ classNames, children }: EditorContentProps): React.JSX.Element;
24
+ declare namespace EditorContent {
25
+ var displayName: string;
26
+ }
23
27
  type EditorViewProps = Omit<NaturalEditorContentProps, 'ref'>;
28
+ declare function EditorView({ extensions: providedExtensions, ...props }: EditorViewProps): React.JSX.Element;
29
+ declare namespace EditorView {
30
+ var displayName: string;
31
+ }
24
32
  type EditorToolbarProps = Omit<NaturalEditorToolbarProps, 'getView' | 'state'>;
33
+ declare function EditorToolbar(props: EditorToolbarProps): React.JSX.Element;
34
+ declare namespace EditorToolbar {
35
+ var displayName: string;
36
+ }
25
37
  export declare const Editor: {
26
38
  Root: React.ForwardRefExoticComponent<Pick<EditorContextValue, "extensions"> & Omit<UseEditorMenuProps, "viewRef"> & Pick<EditorMenuProviderProps, "numItems"> & {
27
- viewMode?: EditorToolbarState["viewMode"];
39
+ viewMode?: EditorToolbarState['viewMode'];
28
40
  } & {
29
41
  children?: React.ReactNode | undefined;
30
42
  } & React.RefAttributes<EditorController | null>>;
43
+ Toolbar: {
44
+ (props: EditorToolbarProps): React.JSX.Element;
45
+ displayName: string;
46
+ };
31
47
  Content: {
32
48
  ({ classNames, children }: EditorContentProps): React.JSX.Element;
33
49
  displayName: string;
@@ -36,10 +52,6 @@ export declare const Editor: {
36
52
  ({ extensions: providedExtensions, ...props }: EditorViewProps): React.JSX.Element;
37
53
  displayName: string;
38
54
  };
39
- Toolbar: {
40
- (props: EditorToolbarProps): React.JSX.Element;
41
- displayName: string;
42
- };
43
55
  };
44
56
  export type { EditorController, EditorRootProps, EditorContentProps, EditorViewProps, EditorToolbarProps, EditorToolbarState, };
45
57
  export { createEditorController };
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAE/C,OAA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,eAAe,GAAG,iBAAiB,CACtC,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAC,GACpC,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GACnC,IAAI,CAAC,uBAAuB,EAAE,UAAU,CAAC,GAAG;IAC1C,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;CAC3C,CACJ,CAAC;AA6CF,KAAK,kBAAkB,GAAG,eAAe,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;+BAK1C,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,kBAAkB;;;;AAYnE,KAAK,eAAe,GAAG,IAAI,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;4BAM1C,EAAE,UAAU,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe;;;;AAkBjF,KAAK,kBAAkB,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,GAAG,OAAO,CAAC,CAAC;+BAMxD,KAAK,EAAE,kBAAkB;;;;AAgBhD,eAAO,MAAM,MAAM;IACjB,IAAI;mBA/GW,kBAAkB,CAAC,UAAU,CAAC;;;;IAgH7C,OAAO;gBAlBqB,kBAAkB;;;IAmB9C,OAAO;mCA7DwC,kBAAkB;;;IA8DjE,IAAI;uDA5C4D,eAAe;;;CA6ChF,CAAC;AAEF,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,kBAAkB,GACnB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
@@ -7,7 +7,7 @@ declare const meta: {
7
7
  ({ extensions: providedExtensions, ...props }: EditorViewProps): React.JSX.Element;
8
8
  displayName: string;
9
9
  };
10
- decorators: (Decorator<EditorViewProps> | Decorator)[];
10
+ decorators: (Decorator | Decorator<EditorViewProps>)[];
11
11
  parameters: {
12
12
  layout: string;
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,KAAkB,MAAM,OAAO,CAAC;AAiBvC,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAwBxD,QAAA,MAAM,IAAI;;;;;;;;;;;;;CAU0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC"}
1
+ {"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/Editor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,KAAkB,MAAM,OAAO,CAAC;AAiBvC,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAwBxD,QAAA,MAAM,IAAI;;;;;;;;QAKN,MAAM;;;;;CAK0B,CAAC;eAEtB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KASzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorView.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/EditorView.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAItD,OAAO,EAAE,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gBAAgB,EAAE,sBAAsB,EAAE,cAAc,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,IAAI,IAAI,UAAU,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,gBAO5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,MAAM,UAAU,GAAG,IAAI,KAAG,gBA2BhE,CAAC"}
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../../../src/components/Editor/controller.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,IAAI,IAAI,UAAU,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,gBAO5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,SAAU,UAAU,GAAG,IAAI,KAAG,gBA2BhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorMenuProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorMenuProvider/EditorMenuProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kB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AAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAC9E,CAAC;AAEF,eAAO,MAAM,WAAW,WAAY,eAAe,EAAE,OAAO,MAAM,KAAG,cAAc,GAAG,SAErF,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,eAAe,EAAE,OAAO,MAAM,KAAG,cAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,WAAY,eAAe,EAAE,OAAO,MAAM,KAAG,cAI5E,CAAC;AAEF,eAAO,MAAM,eAAe,kCAKzB;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,KAAG,eAUF,CAAC;AAEH,eAAO,MAAM,gBAAgB,WACnB,eAAe,EAAE,UACjB,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,KACxC,eAAe,EAKjB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { type Extension, StateField } from '@codemirror/state';
2
2
  import { EditorView } from '@codemirror/view';
3
- import { type PlaceholderOptions, type Range } from '@dxos/ui-editor';
3
+ import { type PlaceholderOptions } from '@dxos/ui-editor';
4
+ import { type Range } from '@dxos/ui-editor/types';
4
5
  export type PopoverOptions = {
5
6
  trigger?: string | string[];
6
7
  triggerKey?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorMenuProvider/popover.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAsC,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACnG,OAAO,EAGL,UAAU,EAKX,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,KAAK,EAAgC,MAAM,iBAAiB,CAAC;AAKpG,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAMtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAClG,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IAGhD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IAChD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,KAAK,IAAI,CAAC;CACrD,CA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OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,YAAY,CAAC,eAAe,EAAE,CAAC,CAAC;CACxE,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,GAAG,YAAY,GAAG,aAAa,CAAC,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,SAAS,CAAC,eAAe,EAAE,CAAC,CAAC;IACxC,SAAS,EAAE,SAAS,CAAC;CACtB,GAAG,IAAI,CAAC,uBAAuB,EAAE,aAAa,GAAG,MAAM,GAAG,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;AAEpH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,2DAMvB,kBAAkB,KAAG,aAgIvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorPreviewProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorPreviewProvider/EditorPreviewProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4D,MAAM,OAAO,CAAC;AAIhH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAQ9E,QAAA,MAAqC,gBAAgB;UAL7C,cAAc;YACZ,iBAAiB;aAChB,OAAO;EAGqG,CAAC;AAExH,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACpF,CAAC,CAAC;AAEH;;GAEG;AAEH,eAAO,MAAM,qBAAqB,GAAI,wBAAwB,0BAA0B,sBAiDvF,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"EditorPreviewProvider.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorPreviewProvider/EditorPreviewProvider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAA4D,MAAM,OAAO,CAAC;AAIhH,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAQ9E,QAAA,MAAqC,gBAAgB;UAL7C,cAAc;YACZ,iBAAiB;aAChB,OAAO;EAGqG,CAAC;AAExH,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IACzD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACpF,CAAC,CAAC;AAEH;;GAEG;AAEH,eAAO,MAAM,qBAAqB,2BAA4B,0BAA0B,sBAiDvF,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import { type Node } from '@dxos/app-graph';
5
5
  import { type ThemedClassName } from '@dxos/react-ui';
6
6
  import { type ActionGraphProps, type MenuAction } from '@dxos/react-ui-menu';
7
- import { type EditorViewMode } from '@dxos/ui-editor';
7
+ import { type EditorViewMode } from '@dxos/ui-editor/types';
8
8
  import { type EditorToolbarState } from './types';
9
9
  export type EditorToolbarFeatureFlags = Partial<{
10
10
  showHeadings: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/EditorToolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,KAAK,gBAAgB,EAAQ,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CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/blocks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAIvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,wCAAwC;AACxC,eAAO,MAAM,SAAS,GACnB,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU,KAAG,oBA6CvD,CAAC"}
1
+ {"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/blocks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAKvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,wCAAwC;AACxC,eAAO,MAAM,SAAS,UACZ,kBAAkB,WAAW,MAAM,UAAU,KAAG,oBA6CvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/formatting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAIvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAUlD,6CAA6C;AAC7C,eAAO,MAAM,aAAa,GACvB,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU,KAAG,oBAwCvD,CAAC"}
1
+ {"version":3,"file":"formatting.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/formatting.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAKvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAUlD,6CAA6C;AAC7C,eAAO,MAAM,aAAa,UAChB,kBAAkB,WAAW,MAAM,UAAU,KAAG,oBAwCvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/headings.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAIvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAkBlD,0CAA0C;AAC1C,eAAO,MAAM,WAAW,GACrB,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU,KAAG,oBA8BvD,CAAC"}
1
+ {"version":3,"file":"headings.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/headings.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAKvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAkBlD,0CAA0C;AAC1C,eAAO,MAAM,WAAW,UACd,kBAAkB,WAAW,MAAM,UAAU,KAAG,oBA8BvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/image.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,8CAA8C;AAC9C,eAAO,MAAM,cAAc,GACxB,eAAe,MAAM,IAAI,KAAG,oBAW5B,CAAC"}
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/image.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,8CAA8C;AAC9C,eAAO,MAAM,cAAc,kBACT,MAAM,IAAI,KAAG,oBAW5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/lists.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAIvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,uCAAuC;AACvC,eAAO,MAAM,QAAQ,GAClB,OAAO,kBAAkB,EAAE,SAAS,MAAM,UAAU,KAAG,oBAoCvD,CAAC"}
1
+ {"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/lists.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AAKvG,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,uCAAuC;AACvC,eAAO,MAAM,QAAQ,UACX,kBAAkB,WAAW,MAAM,UAAU,KAAG,oBAoCvD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/search.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,wCAAwC;AACxC,eAAO,MAAM,SAAS,GACnB,SAAS,MAAM,UAAU,KAAG,oBAW5B,CAAC"}
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/search.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,wCAAwC;AACxC,eAAO,MAAM,SAAS,YACV,MAAM,UAAU,KAAG,oBAW5B,CAAC"}
@@ -1,4 +1,5 @@
1
- import { type EditorViewMode, type Formatting } from '@dxos/ui-editor';
1
+ import { type Formatting } from '@dxos/ui-editor';
2
+ import { type EditorViewMode } from '@dxos/ui-editor/types';
2
3
  export type EditorToolbarState = Formatting & {
3
4
  viewMode?: EditorViewMode;
4
5
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAAE,QAAQ,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { type ActionGroupBuilderFn } from '@dxos/react-ui-menu';
2
- import { type EditorViewMode } from '@dxos/ui-editor';
2
+ import { type EditorViewMode } from '@dxos/ui-editor/types';
3
3
  import { type EditorToolbarState } from './types';
4
4
  /** Add view mode actions to the builder. */
5
5
  export declare const addViewMode: (state: EditorToolbarState, onViewModeChange: (mode: EditorViewMode) => void) => ActionGroupBuilderFn;
@@ -1 +1 @@
1
- {"version":3,"file":"view-mode.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/view-mode.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,4CAA4C;AAC5C,eAAO,MAAM,WAAW,GACrB,OAAO,kBAAkB,EAAE,kBAAkB,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,KAAG,oBA6B9E,CAAC"}
1
+ {"version":3,"file":"view-mode.d.ts","sourceRoot":"","sources":["../../../../../src/components/EditorToolbar/view-mode.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAyC,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,4CAA4C;AAC5C,eAAO,MAAM,WAAW,UACd,kBAAkB,oBAAoB,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,KAAG,oBA6B9E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Assistant.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/Assistant.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAuC7D,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAExD,QAAA,MAAM,YAAY,GAAI,OAAO,iBAAiB,sBAwB7C,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CASnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC"}
1
+ {"version":3,"file":"Assistant.stories.d.ts","sourceRoot":"","sources":["../../../../src/extensions/Assistant.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,KAAuC,MAAM,OAAO,CAAC;AAW5D,OAAO,EAAU,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAsC7D,KAAK,iBAAiB,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;AAExD,QAAA,MAAM,YAAY,UAAW,iBAAiB,sBAwB7C,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CASnC,CAAC;eAEa,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAUrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"assistant-extension.d.ts","sourceRoot":"","sources":["../../../../src/extensions/assistant-extension.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAa9D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAClF;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAYF,eAAO,MAAM,SAAS,GAAI,SAAS,gBAAgB,KAAG,SAAS,EA4D9D,CAAC"}
1
+ {"version":3,"file":"assistant-extension.d.ts","sourceRoot":"","sources":["../../../../src/extensions/assistant-extension.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAa9D,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,CAAC,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAClF;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAYF,eAAO,MAAM,SAAS,YAAa,gBAAgB,KAAG,SAAS,EA4D9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useBasicMarkdownExtensions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useBasicMarkdownExtensions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAWnD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B,GAAI,yCAIxC,iCAAsC,KAAG,SAAS,EAYpD,CAAC"}
1
+ {"version":3,"file":"useBasicMarkdownExtensions.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useBasicMarkdownExtensions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAWnD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B,4CAIpC,iCAAiC,KAAQ,SAAS,EAYpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTextEditor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextEditor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,iBAAiB,EAAE,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EAEnB,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAGf,OAAO,EACL,KAAK,eAAe,EAKrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,aAAa,EAA8B,MAAM,YAAY,CAAC;AAI5E,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB,eAAe,C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SAAS,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC5C,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACxB,eAAe,CAAC,EAAE,wBAAwB,CAAC,KAAK,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG;IACvE,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,IAAI,CAAC;IACX,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,WACjB,aAAa,CAAC,kBAAkB,CAAC,SAClC,cAAc,KACnB,aAyHF,CAAC"}
@@ -1,6 +1,4 @@
1
- import { translations } from './translations';
2
1
  export * from './components';
3
2
  export * from './extensions';
4
3
  export * from './hooks';
5
- export { translations };
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -8,30 +8,30 @@ declare const meta: {
8
8
  translations: [{
9
9
  readonly 'en-US': {
10
10
  readonly "@dxos/react-ui-editor": {
11
- readonly 'comment.label': "Create comment";
12
- readonly 'image.label': "Insert image";
13
- readonly 'search.label': "Search";
14
- readonly 'block.label': "Block";
15
- readonly 'block.blockquote.label': "Block quote";
16
- readonly 'block.codeblock.label': "Code block";
17
- readonly 'block.table.label': "Create table";
18
- readonly 'formatting.label': "Formatting";
19
- readonly 'formatting.strong.label': "Bold";
20
- readonly 'formatting.emphasis.label': "Italics";
21
- readonly 'formatting.strikethrough.label': "Strikethrough";
22
- readonly 'formatting.code.label': "Code";
23
- readonly 'formatting.link.label': "Link";
24
- readonly 'list.bullet.label': "Bullet list";
25
- readonly 'list.ordered.label': "Numbered list";
26
- readonly 'list.task.label': "Task list";
27
- readonly 'heading.label': "Heading level";
28
- readonly 'heading-level.label_zero': "Paragraph";
29
- readonly 'heading-level.label_one': "Heading level {{count}}";
30
- readonly 'heading-level.label_other': "Heading level {{count}}";
31
- readonly 'view-mode.label': "Editor view";
32
- readonly 'view-mode.preview.label': "Markdown";
33
- readonly 'view-mode.source.label': "Plain text";
34
- readonly 'view-mode.readonly.label': "Read only";
11
+ readonly 'comment.label': 'Create comment';
12
+ readonly 'image.label': 'Insert image';
13
+ readonly 'search.label': 'Search';
14
+ readonly 'block.label': 'Block';
15
+ readonly 'block.blockquote.label': 'Block quote';
16
+ readonly 'block.codeblock.label': 'Code block';
17
+ readonly 'block.table.label': 'Create table';
18
+ readonly 'formatting.label': 'Formatting';
19
+ readonly 'formatting.strong.label': 'Bold';
20
+ readonly 'formatting.emphasis.label': 'Italics';
21
+ readonly 'formatting.strikethrough.label': 'Strikethrough';
22
+ readonly 'formatting.code.label': 'Code';
23
+ readonly 'formatting.link.label': 'Link';
24
+ readonly 'list.bullet.label': 'Bullet list';
25
+ readonly 'list.ordered.label': 'Numbered list';
26
+ readonly 'list.task.label': 'Task list';
27
+ readonly 'heading.label': 'Heading level';
28
+ readonly 'heading-level.label_zero': 'Paragraph';
29
+ readonly 'heading-level.label_one': 'Heading level {{count}}';
30
+ readonly 'heading-level.label_other': 'Heading level {{count}}';
31
+ readonly 'view-mode.label': 'Editor view';
32
+ readonly 'view-mode.preview.label': 'Markdown';
33
+ readonly 'view-mode.source.label': 'Plain text';
34
+ readonly 'view-mode.readonly.label': 'Read only';
35
35
  };
36
36
  };
37
37
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"Automerge.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Automerge.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAiIjE,QAAA,MAAM,IAAI;;eAEa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMW,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC"}
1
+ {"version":3,"file":"Automerge.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Automerge.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAkIjE,QAAA,MAAM,IAAI;;eAEa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMW,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAGnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAiBtB,CAAC"}
@@ -2,7 +2,7 @@ import { type StoryObj } from '@storybook/react-vite';
2
2
  import React from 'react';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "id" | "selection" | "extensions" | "scrollTo"> & Pick<import("@dxos/ui-editor").ThemeExtensionsOptions, "slots"> & {
5
+ component: React.ForwardRefExoticComponent<Pick<import("..").UseTextEditorProps, "extensions" | "id" | "scrollTo" | "selection"> & Pick<import("@dxos/ui-editor").ThemeExtensionsOptions, "slots"> & {
6
6
  debug?: import("./components").DebugMode;
7
7
  debugCustom?: (view: import("@codemirror/view").EditorView) => React.ReactNode;
8
8
  text?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAY5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;CAO0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4CnC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAyBF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC"}
1
+ {"version":3,"file":"Comments.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/Comments.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAa5D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;QAKN,MAAM;;CAE0B,CAAC;eAEtB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4CnC,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAyBF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC"}