@haklex/rich-editor 0.69.0 → 0.69.1
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.
- package/dist/{theme-DH4xzxU-.js → ColorSchemeContext-DLWz8vFw.js} +1349 -92
- package/dist/{thumbhash-GjK8OYAb.js → LinkCardRenderer-D4mQbUQo.js} +109 -31
- package/dist/NestedEditorPluginsContext-DKFdozOE.js +8 -0
- package/dist/{ExtraNodesContext-xQ2RNsqH.js → RendererConfigProvider-BPYO0Ip0.js} +37 -7
- package/dist/{RubyRenderer-8HMSMaZz.js → RubyRenderer-BuFWY87e.js} +2 -1
- package/dist/SpoilerNode-D7Tgdo2K.js +82 -0
- package/dist/{VirtualizationPlugin-nD_x-4yR.js → VirtualizationPlugin-CkNi6FW2.js} +85 -53
- package/dist/{VirtualizationPlugin-Bqv4MkJH.js → VirtualizationPlugin-DbAHlGBL.js} +358 -172
- package/dist/{VirtualizedEditor-uWe43zaI.js → VirtualizedEditor-D099IYqN.js} +54 -41
- package/dist/block-id-state-DfN32rR_.js +5 -0
- package/dist/command-registry-entry.d.ts.map +1 -1
- package/dist/commands/registry.d.ts +2 -2
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands-entry.d.ts +1 -4
- package/dist/commands-entry.d.ts.map +1 -1
- package/dist/commands-entry.mjs +2 -2
- package/dist/components/ContentEditable.css.d.ts.map +1 -1
- package/dist/components/ContentEditable.d.ts +1 -1
- package/dist/components/ContentEditable.d.ts.map +1 -1
- package/dist/components/CorePlugins.d.ts +1 -1
- package/dist/components/CorePlugins.d.ts.map +1 -1
- package/dist/components/EditorSurfaceHost.d.ts +2 -2
- package/dist/components/EditorSurfaceHost.d.ts.map +1 -1
- package/dist/components/LinkFavicon.d.ts +1 -1
- package/dist/components/LinkFavicon.d.ts.map +1 -1
- package/dist/components/RendererWrapper.d.ts +5 -16
- package/dist/components/RendererWrapper.d.ts.map +1 -1
- package/dist/components/RichEditor.d.ts +2 -2
- package/dist/components/RichEditor.d.ts.map +1 -1
- package/dist/components/RichEditorShell.d.ts +7 -7
- package/dist/components/RichEditorShell.d.ts.map +1 -1
- package/dist/components/VirtualizationFromProps.d.ts +2 -2
- package/dist/components/VirtualizationFromProps.d.ts.map +1 -1
- package/dist/components/decorators/AlertEditDecorator.d.ts +3 -3
- package/dist/components/decorators/AlertEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/BannerEditDecorator.d.ts +3 -3
- package/dist/components/decorators/BannerEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/CodeBlockEditDecorator.d.ts +1 -1
- package/dist/components/decorators/CodeBlockEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/GridEditDecorator.d.ts +2 -2
- package/dist/components/decorators/GridEditDecorator.d.ts.map +1 -1
- package/dist/components/decorators/NestedEditorCorePlugins.d.ts +1 -1
- package/dist/components/decorators/NestedEditorCorePlugins.d.ts.map +1 -1
- package/dist/components/decorators/gridAutoFocus.d.ts +1 -1
- package/dist/components/decorators/gridAutoFocus.d.ts.map +1 -1
- package/dist/components/decorators/useNestedEditorSync.d.ts +1 -1
- package/dist/components/decorators/useNestedEditorSync.d.ts.map +1 -1
- package/dist/components/renderer-decoration.d.ts +13 -0
- package/dist/components/renderer-decoration.d.ts.map +1 -0
- package/dist/components/renderers/AlertRenderer.d.ts +2 -2
- package/dist/components/renderers/AlertRenderer.d.ts.map +1 -1
- package/dist/components/renderers/AlertStaticDecorator.d.ts +3 -3
- package/dist/components/renderers/AlertStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/BannerRenderer.d.ts +2 -2
- package/dist/components/renderers/BannerRenderer.d.ts.map +1 -1
- package/dist/components/renderers/BannerStaticDecorator.d.ts +3 -3
- package/dist/components/renderers/BannerStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/CodeBlockRenderer.d.ts +1 -1
- package/dist/components/renderers/CodeBlockRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FileRenderer.d.ts +1 -4
- package/dist/components/renderers/FileRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteRenderer.d.ts +1 -1
- package/dist/components/renderers/FootnoteRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteSectionEditRenderer.d.ts +1 -1
- package/dist/components/renderers/FootnoteSectionEditRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteSectionRenderer.d.ts +1 -1
- package/dist/components/renderers/FootnoteSectionRenderer.d.ts.map +1 -1
- package/dist/components/renderers/FootnoteStaticRenderer.d.ts +1 -1
- package/dist/components/renderers/FootnoteStaticRenderer.d.ts.map +1 -1
- package/dist/components/renderers/GridStaticDecorator.d.ts +2 -2
- package/dist/components/renderers/GridStaticDecorator.d.ts.map +1 -1
- package/dist/components/renderers/ImageRenderer.d.ts +2 -2
- package/dist/components/renderers/ImageRenderer.d.ts.map +1 -1
- package/dist/components/renderers/KaTeXRenderer.d.ts +1 -1
- package/dist/components/renderers/KaTeXRenderer.d.ts.map +1 -1
- package/dist/components/renderers/LinkCardRenderer.d.ts +1 -1
- package/dist/components/renderers/LinkCardRenderer.d.ts.map +1 -1
- package/dist/components/renderers/MentionRenderer.d.ts +1 -1
- package/dist/components/renderers/MentionRenderer.d.ts.map +1 -1
- package/dist/components/renderers/MermaidRenderer.d.ts +1 -1
- package/dist/components/renderers/MermaidRenderer.d.ts.map +1 -1
- package/dist/components/renderers/RubyRenderer.d.ts +2 -2
- package/dist/components/renderers/RubyRenderer.d.ts.map +1 -1
- package/dist/components/renderers/TagRenderer.d.ts +1 -2
- package/dist/components/renderers/TagRenderer.d.ts.map +1 -1
- package/dist/components/renderers/VideoRenderer.d.ts +1 -1
- package/dist/components/renderers/VideoRenderer.d.ts.map +1 -1
- package/dist/components/utils.d.ts +1 -1
- package/dist/components/utils.d.ts.map +1 -1
- package/dist/config-edit.d.ts +1 -1
- package/dist/config-edit.d.ts.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/context/ColorSchemeContext.d.ts +1 -5
- package/dist/context/ColorSchemeContext.d.ts.map +1 -1
- package/dist/context/ColorSchemeProvider.d.ts +7 -0
- package/dist/context/ColorSchemeProvider.d.ts.map +1 -0
- package/dist/context/EditorBlockContext.d.ts +2 -2
- package/dist/context/EditorBlockContext.d.ts.map +1 -1
- package/dist/context/EditorSurface.d.ts +19 -0
- package/dist/context/EditorSurface.d.ts.map +1 -0
- package/dist/context/EditorSurfaceContext.d.ts +7 -22
- package/dist/context/EditorSurfaceContext.d.ts.map +1 -1
- package/dist/context/ExtraNodesContext.d.ts +2 -6
- package/dist/context/ExtraNodesContext.d.ts.map +1 -1
- package/dist/context/ExtraNodesProvider.d.ts +7 -0
- package/dist/context/ExtraNodesProvider.d.ts.map +1 -0
- package/dist/context/FileUploadContext.d.ts +2 -6
- package/dist/context/FileUploadContext.d.ts.map +1 -1
- package/dist/context/FileUploadProvider.d.ts +7 -0
- package/dist/context/FileUploadProvider.d.ts.map +1 -0
- package/dist/context/FootnoteDefinitionsContext.d.ts +1 -4
- package/dist/context/FootnoteDefinitionsContext.d.ts.map +1 -1
- package/dist/context/FootnoteDefinitionsProvider.d.ts +6 -0
- package/dist/context/FootnoteDefinitionsProvider.d.ts.map +1 -0
- package/dist/context/ImagePreprocessContext.d.ts +2 -4
- package/dist/context/ImagePreprocessContext.d.ts.map +1 -1
- package/dist/context/ImagePreprocessProvider.d.ts +5 -0
- package/dist/context/ImagePreprocessProvider.d.ts.map +1 -0
- package/dist/context/ImageUploadContext.d.ts +2 -6
- package/dist/context/ImageUploadContext.d.ts.map +1 -1
- package/dist/context/ImageUploadProvider.d.ts +7 -0
- package/dist/context/ImageUploadProvider.d.ts.map +1 -0
- package/dist/context/NestedContentRendererContext.d.ts +4 -4
- package/dist/context/NestedContentRendererContext.d.ts.map +1 -1
- package/dist/context/NestedEditorPluginsContext.d.ts +5 -2
- package/dist/context/NestedEditorPluginsContext.d.ts.map +1 -1
- package/dist/context/NestedEditorPluginsProvider.d.ts +3 -0
- package/dist/context/NestedEditorPluginsProvider.d.ts.map +1 -0
- package/dist/context/RendererConfigContext.d.ts +9 -4
- package/dist/context/RendererConfigContext.d.ts.map +1 -1
- package/dist/context/RendererConfigProvider.d.ts +3 -0
- package/dist/context/RendererConfigProvider.d.ts.map +1 -0
- package/dist/context/TextSelectionContext.d.ts +2 -5
- package/dist/context/TextSelectionContext.d.ts.map +1 -1
- package/dist/context/TextSelectionStoreProvider.d.ts +5 -0
- package/dist/context/TextSelectionStoreProvider.d.ts.map +1 -0
- package/dist/context/VideoUploadContext.d.ts +2 -6
- package/dist/context/VideoUploadContext.d.ts.map +1 -1
- package/dist/context/VideoUploadProvider.d.ts +7 -0
- package/dist/context/VideoUploadProvider.d.ts.map +1 -0
- package/dist/{grid.css-DJWKdYpz.js → grid.css-DAMDDTZh.js} +2 -1
- package/dist/index.d.ts +15 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +34 -22
- package/dist/insert-commands-CtLGoIz0.js +9 -0
- package/dist/{katex.css-9crOcnIa.js → katex.css-DJbW49pH.js} +1 -1
- package/dist/{node-registry-DRd8ZbeC.js → node-registry-PtbiwsVu.js} +416 -42
- package/dist/node-registry.d.ts +1 -1
- package/dist/node-registry.d.ts.map +1 -1
- package/dist/nodes/AlertQuoteEditNode.d.ts +4 -4
- package/dist/nodes/AlertQuoteEditNode.d.ts.map +1 -1
- package/dist/nodes/AlertQuoteNode.d.ts +3 -2
- package/dist/nodes/AlertQuoteNode.d.ts.map +1 -1
- package/dist/nodes/BannerEditNode.d.ts +4 -4
- package/dist/nodes/BannerEditNode.d.ts.map +1 -1
- package/dist/nodes/BannerNode.d.ts +3 -2
- package/dist/nodes/BannerNode.d.ts.map +1 -1
- package/dist/nodes/CodeBlockEditNode.d.ts +6 -6
- package/dist/nodes/CodeBlockEditNode.d.ts.map +1 -1
- package/dist/nodes/CodeBlockNode.d.ts +4 -3
- package/dist/nodes/CodeBlockNode.d.ts.map +1 -1
- package/dist/nodes/CommentNode.d.ts +3 -2
- package/dist/nodes/CommentNode.d.ts.map +1 -1
- package/dist/nodes/DetailsNode.d.ts +4 -3
- package/dist/nodes/DetailsNode.d.ts.map +1 -1
- package/dist/nodes/FileNode.d.ts +4 -3
- package/dist/nodes/FileNode.d.ts.map +1 -1
- package/dist/nodes/FootnoteNode.d.ts +3 -2
- package/dist/nodes/FootnoteNode.d.ts.map +1 -1
- package/dist/nodes/FootnoteSectionEditNode.d.ts +2 -2
- package/dist/nodes/FootnoteSectionEditNode.d.ts.map +1 -1
- package/dist/nodes/FootnoteSectionNode.d.ts +3 -2
- package/dist/nodes/FootnoteSectionNode.d.ts.map +1 -1
- package/dist/nodes/GridContainerNode.d.ts +3 -2
- package/dist/nodes/GridContainerNode.d.ts.map +1 -1
- package/dist/nodes/GridEditNode.d.ts +4 -4
- package/dist/nodes/GridEditNode.d.ts.map +1 -1
- package/dist/nodes/ImageNode.d.ts +5 -4
- package/dist/nodes/ImageNode.d.ts.map +1 -1
- package/dist/nodes/KaTeXBlockNode.d.ts +4 -3
- package/dist/nodes/KaTeXBlockNode.d.ts.map +1 -1
- package/dist/nodes/KaTeXInlineNode.d.ts +3 -2
- package/dist/nodes/KaTeXInlineNode.d.ts.map +1 -1
- package/dist/nodes/LinkCardNode.d.ts +4 -3
- package/dist/nodes/LinkCardNode.d.ts.map +1 -1
- package/dist/nodes/MentionNode.d.ts +4 -3
- package/dist/nodes/MentionNode.d.ts.map +1 -1
- package/dist/nodes/MermaidNode.d.ts +4 -3
- package/dist/nodes/MermaidNode.d.ts.map +1 -1
- package/dist/nodes/RichQuoteNode.d.ts +2 -2
- package/dist/nodes/RichQuoteNode.d.ts.map +1 -1
- package/dist/nodes/RubyNode.d.ts +2 -1
- package/dist/nodes/RubyNode.d.ts.map +1 -1
- package/dist/nodes/SpoilerNode.d.ts +2 -1
- package/dist/nodes/SpoilerNode.d.ts.map +1 -1
- package/dist/nodes/TagNode.d.ts +3 -2
- package/dist/nodes/TagNode.d.ts.map +1 -1
- package/dist/nodes/VideoNode.d.ts +4 -3
- package/dist/nodes/VideoNode.d.ts.map +1 -1
- package/dist/nodes/shared.d.ts +1 -1
- package/dist/nodes/shared.d.ts.map +1 -1
- package/dist/nodes-entry.d.ts.map +1 -1
- package/dist/nodes-entry.mjs +2 -4
- package/dist/{normalizeSerializedEditorState-VaI73T09.js → normalizeSerializedEditorState-CNUAQd3l.js} +16 -1
- package/dist/plugins/AlertPlugin.d.ts +0 -2
- package/dist/plugins/AlertPlugin.d.ts.map +1 -1
- package/dist/plugins/AutoFocusPlugin.d.ts.map +1 -1
- package/dist/plugins/AutoLinkPlugin.d.ts +1 -1
- package/dist/plugins/AutoLinkPlugin.d.ts.map +1 -1
- package/dist/plugins/BlockExitPlugin.d.ts +0 -2
- package/dist/plugins/BlockExitPlugin.d.ts.map +1 -1
- package/dist/plugins/BlockIdPlugin.d.ts +0 -1
- package/dist/plugins/BlockIdPlugin.d.ts.map +1 -1
- package/dist/plugins/ClickBelowPlugin.d.ts +0 -2
- package/dist/plugins/ClickBelowPlugin.d.ts.map +1 -1
- package/dist/plugins/EditorRefPlugin.d.ts +1 -1
- package/dist/plugins/EditorRefPlugin.d.ts.map +1 -1
- package/dist/plugins/FileUploadPlugin.d.ts +1 -1
- package/dist/plugins/FileUploadPlugin.d.ts.map +1 -1
- package/dist/plugins/FootnotePlugin.d.ts +1 -1
- package/dist/plugins/FootnotePlugin.d.ts.map +1 -1
- package/dist/plugins/HorizontalRulePlugin.d.ts.map +1 -1
- package/dist/plugins/ImageDialog.d.ts +2 -2
- package/dist/plugins/ImageDialog.d.ts.map +1 -1
- package/dist/plugins/ImageDialogReview.d.ts +2 -2
- package/dist/plugins/ImageDialogReview.d.ts.map +1 -1
- package/dist/plugins/ImageDialogSource.d.ts +1 -1
- package/dist/plugins/ImageDialogSource.d.ts.map +1 -1
- package/dist/plugins/ImagePlugin.d.ts +0 -3
- package/dist/plugins/ImagePlugin.d.ts.map +1 -1
- package/dist/plugins/ImageUploadPlugin.d.ts +1 -13
- package/dist/plugins/ImageUploadPlugin.d.ts.map +1 -1
- package/dist/plugins/InlineDndPlugin.d.ts +1 -3
- package/dist/plugins/InlineDndPlugin.d.ts.map +1 -1
- package/dist/plugins/KaTeXPlugin.d.ts +0 -2
- package/dist/plugins/KaTeXPlugin.d.ts.map +1 -1
- package/dist/plugins/LinkFaviconPlugin.d.ts.map +1 -1
- package/dist/plugins/MarkdownPastePlugin.d.ts.map +1 -1
- package/dist/plugins/MarkdownShortcutsPlugin.d.ts +1 -1
- package/dist/plugins/MarkdownShortcutsPlugin.d.ts.map +1 -1
- package/dist/plugins/MermaidPlugin.d.ts +0 -1
- package/dist/plugins/MermaidPlugin.d.ts.map +1 -1
- package/dist/plugins/OnChangePlugin.d.ts +1 -1
- package/dist/plugins/OnChangePlugin.d.ts.map +1 -1
- package/dist/plugins/PasteLinkPlugin.d.ts.map +1 -1
- package/dist/plugins/SubmitShortcutPlugin.d.ts.map +1 -1
- package/dist/plugins/TextSelectionPlugin.d.ts.map +1 -1
- package/dist/plugins/VideoUploadPlugin.d.ts.map +1 -1
- package/dist/plugins/VirtualizationPlugin.d.ts.map +1 -1
- package/dist/plugins/block-exit-commands.d.ts +3 -0
- package/dist/plugins/block-exit-commands.d.ts.map +1 -0
- package/dist/plugins/block-id-state.d.ts +2 -0
- package/dist/plugins/block-id-state.d.ts.map +1 -0
- package/dist/plugins/click-below-command.d.ts +3 -0
- package/dist/plugins/click-below-command.d.ts.map +1 -0
- package/dist/plugins/file-upload-command.d.ts +1 -1
- package/dist/plugins/file-upload-command.d.ts.map +1 -1
- package/dist/plugins/file-upload-store.d.ts +1 -1
- package/dist/plugins/file-upload-store.d.ts.map +1 -1
- package/dist/plugins/image-dialog-model.d.ts +1 -1
- package/dist/plugins/image-dialog-model.d.ts.map +1 -1
- package/dist/plugins/image-dialog.css.d.ts.map +1 -1
- package/dist/plugins/image-upload-command.d.ts +1 -1
- package/dist/plugins/image-upload-command.d.ts.map +1 -1
- package/dist/plugins/image-upload-fn.d.ts +14 -0
- package/dist/plugins/image-upload-fn.d.ts.map +1 -0
- package/dist/plugins/image-upload-toast.d.ts.map +1 -1
- package/dist/plugins/image-upload.css.d.ts.map +1 -1
- package/dist/plugins/inline-dnd-move.d.ts +4 -0
- package/dist/plugins/inline-dnd-move.d.ts.map +1 -0
- package/dist/plugins/inline-dnd-shared.d.ts.map +1 -1
- package/dist/plugins/inline-dnd.css.d.ts.map +1 -1
- package/dist/plugins/insert-commands.d.ts +9 -0
- package/dist/plugins/insert-commands.d.ts.map +1 -0
- package/dist/plugins/insertion-cursor.d.ts +1 -1
- package/dist/plugins/insertion-cursor.d.ts.map +1 -1
- package/dist/plugins/present-image-dialog.d.ts +1 -1
- package/dist/plugins/present-image-dialog.d.ts.map +1 -1
- package/dist/plugins/text-selection.css.d.ts.map +1 -1
- package/dist/plugins-entry.d.ts +15 -8
- package/dist/plugins-entry.d.ts.map +1 -1
- package/dist/plugins-entry.mjs +5 -6
- package/dist/recycler-entry.d.ts.map +1 -1
- package/dist/renderers-entry.d.ts +4 -2
- package/dist/renderers-entry.d.ts.map +1 -1
- package/dist/renderers-entry.mjs +5 -5
- package/dist/{utils-E6qVk-NR.js → shared.css-DRoqE_U-.js} +1 -24
- package/dist/static-entry.d.ts +12 -6
- package/dist/static-entry.d.ts.map +1 -1
- package/dist/static-entry.mjs +10 -9
- package/dist/styles/article.css.d.ts.map +1 -1
- package/dist/styles/chat.css.d.ts.map +1 -1
- package/dist/styles/comment.css.d.ts.map +1 -1
- package/dist/styles/details.css.d.ts +5 -5
- package/dist/styles/details.css.d.ts.map +1 -1
- package/dist/styles/grid.css.d.ts +10 -10
- package/dist/styles/grid.css.d.ts.map +1 -1
- package/dist/styles/index.d.ts +3 -0
- package/dist/styles/index.d.ts.map +1 -1
- package/dist/styles/katex.css.d.ts +3 -3
- package/dist/styles/katex.css.d.ts.map +1 -1
- package/dist/styles/note.css.d.ts.map +1 -1
- package/dist/styles/shared.css.d.ts +54 -54
- package/dist/styles/shared.css.d.ts.map +1 -1
- package/dist/styles/theme.d.ts +1 -1
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/styles-entry.d.ts.map +1 -1
- package/dist/styles-entry.mjs +4 -3
- package/dist/transformers/alert.d.ts +1 -1
- package/dist/transformers/alert.d.ts.map +1 -1
- package/dist/transformers/code-block.d.ts +1 -1
- package/dist/transformers/code-block.d.ts.map +1 -1
- package/dist/transformers/comment.d.ts +1 -1
- package/dist/transformers/comment.d.ts.map +1 -1
- package/dist/transformers/container.d.ts +1 -1
- package/dist/transformers/container.d.ts.map +1 -1
- package/dist/transformers/footnote.d.ts +1 -1
- package/dist/transformers/footnote.d.ts.map +1 -1
- package/dist/transformers/grid-container.d.ts +1 -1
- package/dist/transformers/grid-container.d.ts.map +1 -1
- package/dist/transformers/horizontal-rule.d.ts +1 -1
- package/dist/transformers/horizontal-rule.d.ts.map +1 -1
- package/dist/transformers/index.d.ts +1 -1
- package/dist/transformers/index.d.ts.map +1 -1
- package/dist/transformers/insert.d.ts.map +1 -1
- package/dist/transformers/katex.d.ts +1 -1
- package/dist/transformers/katex.d.ts.map +1 -1
- package/dist/transformers/mention.d.ts +1 -1
- package/dist/transformers/mention.d.ts.map +1 -1
- package/dist/transformers/quote.d.ts +1 -1
- package/dist/transformers/quote.d.ts.map +1 -1
- package/dist/transformers/rich-blocks.d.ts.map +1 -1
- package/dist/transformers/ruby.d.ts +1 -1
- package/dist/transformers/ruby.d.ts.map +1 -1
- package/dist/transformers/spoiler.d.ts +1 -1
- package/dist/transformers/spoiler.d.ts.map +1 -1
- package/dist/transformers/superscript-subscript.d.ts.map +1 -1
- package/dist/transformers/table.d.ts +1 -1
- package/dist/transformers/table.d.ts.map +1 -1
- package/dist/types/renderer-config.d.ts +15 -15
- package/dist/types/renderer-config.d.ts.map +1 -1
- package/dist/types/renderer-keys.d.ts +14 -14
- package/dist/types/renderer-keys.d.ts.map +1 -1
- package/dist/types/slash-menu.d.ts +2 -2
- package/dist/types/slash-menu.d.ts.map +1 -1
- package/dist/types.d.ts +5 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/codeBlockSelectionIntent.d.ts +1 -0
- package/dist/utils/codeBlockSelectionIntent.d.ts.map +1 -1
- package/dist/utils/collect-command-items.d.ts +2 -2
- package/dist/utils/collect-command-items.d.ts.map +1 -1
- package/dist/utils/comment-anchor.d.ts +1 -1
- package/dist/utils/comment-anchor.d.ts.map +1 -1
- package/dist/utils/extractTextContent.d.ts +1 -1
- package/dist/utils/extractTextContent.d.ts.map +1 -1
- package/dist/utils/favicon.d.ts.map +1 -1
- package/dist/utils/file-meta.d.ts +4 -0
- package/dist/utils/file-meta.d.ts.map +1 -0
- package/dist/utils/getRegisteredNodeKlass.d.ts +1 -1
- package/dist/utils/getRegisteredNodeKlass.d.ts.map +1 -1
- package/dist/utils/image-display-size.d.ts.map +1 -1
- package/dist/utils/image-insertion.d.ts +1 -1
- package/dist/utils/image-insertion.d.ts.map +1 -1
- package/dist/utils/image-preprocess.d.ts +1 -1
- package/dist/utils/image-preprocess.d.ts.map +1 -1
- package/dist/utils/katex-defaults.d.ts.map +1 -1
- package/dist/utils/lucide-dom.d.ts.map +1 -1
- package/dist/utils/nested-editor-sync.d.ts +1 -1
- package/dist/utils/nested-editor-sync.d.ts.map +1 -1
- package/dist/utils/normalizeSerializedEditorState.d.ts +1 -1
- package/dist/utils/normalizeSerializedEditorState.d.ts.map +1 -1
- package/dist/utils/occurrence-keys.d.ts +7 -0
- package/dist/utils/occurrence-keys.d.ts.map +1 -0
- package/dist/utils/tag-color.d.ts.map +1 -1
- package/dist/utils/text-selection-constants.d.ts.map +1 -1
- package/dist/utils/text-selection.d.ts +1 -1
- package/dist/utils/text-selection.d.ts.map +1 -1
- package/dist/utils/thumbhash.d.ts.map +1 -1
- package/dist/utils/toggle-spoiler.d.ts +1 -1
- package/dist/utils/toggle-spoiler.d.ts.map +1 -1
- package/dist/utils-i78C9io3.js +26 -0
- package/dist/virtualization/VirtualizationPlugin.d.ts +2 -2
- package/dist/virtualization/VirtualizationPlugin.d.ts.map +1 -1
- package/dist/virtualization/VirtualizedEditor.d.ts +3 -3
- package/dist/virtualization/VirtualizedEditor.d.ts.map +1 -1
- package/dist/virtualization/blocks.d.ts +3 -3
- package/dist/virtualization/blocks.d.ts.map +1 -1
- package/dist/virtualization/controller.d.ts +8 -4
- package/dist/virtualization/controller.d.ts.map +1 -1
- package/dist/virtualization/document.d.ts +1 -1
- package/dist/virtualization/document.d.ts.map +1 -1
- package/dist/virtualization/layout.d.ts +1 -1
- package/dist/virtualization/layout.d.ts.map +1 -1
- package/dist/virtualization/preserve.d.ts.map +1 -1
- package/dist/virtualization/style.css.d.ts.map +1 -1
- package/dist/virtualization/sync.d.ts +2 -2
- package/dist/virtualization/sync.d.ts.map +1 -1
- package/dist/virtualization/types.d.ts +2 -2
- package/dist/virtualization/types.d.ts.map +1 -1
- package/dist/virtualization/viewport.d.ts +1 -1
- package/dist/virtualization/viewport.d.ts.map +1 -1
- package/dist/virtualization-entry.d.ts.map +1 -1
- package/dist/virtualization-entry.mjs +1 -1
- package/package.json +4 -6
- package/dist/AlertQuoteEditNode-DFg-xOND.js +0 -372
- package/dist/BlockIdPlugin-Cwv8aV9g.js +0 -106
- package/dist/ColorSchemeContext-Dc_HebHd.js +0 -1336
- package/dist/LinkCardRenderer-BT8P5aJC.js +0 -100
- package/dist/MermaidPlugin-D0Z2_YAe.js +0 -71
- package/dist/NestedEditorPluginsContext-D78UZkmx.js +0 -16
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as EditorBlockContext } from "./EditorBlockContext-DytAx9Tg.js";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-BYhxpJwd.js";
|
|
3
|
-
import { n as useNestedEditorPlugins } from "./NestedEditorPluginsContext-
|
|
4
|
-
import {
|
|
3
|
+
import { n as useNestedEditorPlugins } from "./NestedEditorPluginsContext-DKFdozOE.js";
|
|
4
|
+
import { t as blockIdState } from "./block-id-state-DfN32rR_.js";
|
|
5
5
|
import { n as contentWrapper, t as content } from "./ContentEditable.css--lQ6ekTS.js";
|
|
6
6
|
import { a as PreserveNodeManager, i as slot, l as estimateHeight, n as canvas, o as HeightIndex, s as TypePool, t as resolveScrollContainer, u as occupiedHeight } from "./viewport-CFJHn_Y6.js";
|
|
7
7
|
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
8
|
-
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
8
|
+
import { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
9
9
|
import { $exportNodeJSON, $getNodeByKey, $getRoot, $getSelection, $getSlot, $getSlotNames, $getState, $isElementNode, $isRangeSelection, $parseSerializedNode, $setSelection, $setState, COMMAND_PRIORITY_CRITICAL, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_LEFT_COMMAND, KEY_ARROW_RIGHT_COMMAND, KEY_ARROW_UP_COMMAND, KEY_BACKSPACE_COMMAND, KEY_DELETE_COMMAND, REDO_COMMAND, SKIP_DOM_SELECTION_TAG, SKIP_SCROLL_INTO_VIEW_TAG, UNDO_COMMAND, createEditor } from "lexical";
|
|
10
10
|
import { createPortal, flushSync } from "react-dom";
|
|
11
11
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -571,6 +571,24 @@ var EditorRecycler = class {
|
|
|
571
571
|
const next = this.pool.slots.filter((other) => other.active && other.index > slot.index).sort((a, b) => a.index - b.index).map((other) => this.preserve.host(other.id)).find((element) => element?.parentElement === this.canvas);
|
|
572
572
|
this.preserve.mount(slot.id, host, slot.active ? this.canvas : null, next ?? null);
|
|
573
573
|
}
|
|
574
|
+
/** Commit a rendered slot: mount its portal host, bind or invalidate its island, set its release hook. */
|
|
575
|
+
commitSlot(slot, host, mounted, onRelease) {
|
|
576
|
+
const island = this.island(slot);
|
|
577
|
+
this.mount(slot, host);
|
|
578
|
+
if (mounted) this.bind(slot);
|
|
579
|
+
else island.generation = -1;
|
|
580
|
+
slot.beforeRelease = () => {
|
|
581
|
+
this.capturePanels(slot);
|
|
582
|
+
onRelease(island.editor);
|
|
583
|
+
};
|
|
584
|
+
}
|
|
585
|
+
/** Pin an island against recycling; the returned function releases the pin. */
|
|
586
|
+
retainIsland(island) {
|
|
587
|
+
island.retained++;
|
|
588
|
+
return () => {
|
|
589
|
+
island.retained--;
|
|
590
|
+
};
|
|
591
|
+
}
|
|
574
592
|
state(id) {
|
|
575
593
|
let state = this.states.get(id);
|
|
576
594
|
if (!state) {
|
|
@@ -930,45 +948,37 @@ function EditorSlot({ controller, slot: slot$1, plugins: surfacePlugins, onActiv
|
|
|
930
948
|
element.style.display = "contents";
|
|
931
949
|
return element;
|
|
932
950
|
});
|
|
933
|
-
const
|
|
951
|
+
const { active } = slot$1;
|
|
952
|
+
const mounted = active || controller.preserve.has(slot$1.id);
|
|
934
953
|
const plugins = useNestedEditorPlugins();
|
|
935
954
|
const value = useMemo(() => ({
|
|
936
955
|
blockId: row.id,
|
|
937
|
-
active
|
|
956
|
+
active,
|
|
938
957
|
editor: island.editor,
|
|
939
958
|
documentBlocks: controller.documentBlocks,
|
|
940
959
|
nodeState: (key) => controller.nodeState(slot$1, key, row.id),
|
|
941
960
|
retain: () => {
|
|
942
|
-
island
|
|
961
|
+
const releaseIsland = controller.retainIsland(island);
|
|
943
962
|
const releaseSurface = retainSurface();
|
|
944
963
|
let released = false;
|
|
945
964
|
return () => {
|
|
946
965
|
if (released) return;
|
|
947
966
|
released = true;
|
|
948
|
-
|
|
967
|
+
releaseIsland();
|
|
949
968
|
releaseSurface();
|
|
950
969
|
controller.refresh(false);
|
|
951
970
|
};
|
|
952
971
|
}
|
|
953
972
|
}), [
|
|
973
|
+
active,
|
|
954
974
|
controller,
|
|
955
|
-
island
|
|
975
|
+
island,
|
|
956
976
|
retainSurface,
|
|
957
977
|
row.id,
|
|
958
|
-
slot$1
|
|
959
|
-
slot$1.active,
|
|
960
|
-
slot$1.generation
|
|
978
|
+
slot$1
|
|
961
979
|
]);
|
|
962
980
|
const ref = useCallback((element) => controller.attach(slot$1, element), [controller, slot$1]);
|
|
963
|
-
useLayoutEffect(() =>
|
|
964
|
-
controller.mount(slot$1, host);
|
|
965
|
-
if (mounted) controller.bind(slot$1);
|
|
966
|
-
else island.generation = -1;
|
|
967
|
-
slot$1.beforeRelease = () => {
|
|
968
|
-
controller.capturePanels(slot$1);
|
|
969
|
-
onRelease(island.editor);
|
|
970
|
-
};
|
|
971
|
-
});
|
|
981
|
+
useLayoutEffect(() => controller.commitSlot(slot$1, host, mounted, onRelease));
|
|
972
982
|
useLayoutEffect(() => () => host.remove(), [host]);
|
|
973
983
|
useLayoutEffect(() => {
|
|
974
984
|
let frame = requestAnimationFrame(() => {
|
|
@@ -1024,8 +1034,8 @@ function EditorSlot({ controller, slot: slot$1, plugins: surfacePlugins, onActiv
|
|
|
1024
1034
|
}), host, String(slot$1.id));
|
|
1025
1035
|
}
|
|
1026
1036
|
function Contents({ controller, plugins, onActiveEditorChange, onRelease, retainSurface, placeholder }) {
|
|
1027
|
-
const [,
|
|
1028
|
-
useLayoutEffect(() => controller.subscribe(
|
|
1037
|
+
const [, forceUpdate] = useReducer((version) => version + 1, 0);
|
|
1038
|
+
useLayoutEffect(() => controller.subscribe(forceUpdate), [controller]);
|
|
1029
1039
|
useLayoutEffect(() => controller.commitLayout());
|
|
1030
1040
|
return /* @__PURE__ */ jsx(Fragment$1, { children: controller.pool.slots.map((slot) => /* @__PURE__ */ jsx(EditorSlot, {
|
|
1031
1041
|
controller,
|
|
@@ -1037,6 +1047,13 @@ function Contents({ controller, plugins, onActiveEditorChange, onRelease, retain
|
|
|
1037
1047
|
onRelease
|
|
1038
1048
|
}, slot.id)) });
|
|
1039
1049
|
}
|
|
1050
|
+
function createRecycler(editor, element, options) {
|
|
1051
|
+
try {
|
|
1052
|
+
return { controller: new EditorRecycler(editor, element, options) };
|
|
1053
|
+
} catch (reason) {
|
|
1054
|
+
return { error: String(reason) };
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1040
1057
|
function VirtualizedEditor({ options, className, plugins, autoFocus, hasHeader, onActiveEditorChange, retainSurface, placeholder }) {
|
|
1041
1058
|
const [editor] = useLexicalComposerContext();
|
|
1042
1059
|
const { scrollContainer, overscan, estimateBlockHeight, preserveCapacity, selectionMergeLimit } = options;
|
|
@@ -1053,31 +1070,27 @@ function VirtualizedEditor({ options, className, plugins, autoFocus, hasHeader,
|
|
|
1053
1070
|
preserveCapacity,
|
|
1054
1071
|
selectionMergeLimit
|
|
1055
1072
|
]);
|
|
1056
|
-
const
|
|
1073
|
+
const activeEditorRef = useRef(null);
|
|
1057
1074
|
const selectEditor = useCallback((editor) => {
|
|
1058
|
-
|
|
1075
|
+
activeEditorRef.current = editor;
|
|
1059
1076
|
onActiveEditorChange(editor);
|
|
1060
1077
|
}, [onActiveEditorChange]);
|
|
1061
1078
|
const releaseEditor = useCallback((editor) => {
|
|
1062
|
-
if (
|
|
1079
|
+
if (activeEditorRef.current === editor) selectEditor(null);
|
|
1063
1080
|
}, [selectEditor]);
|
|
1064
|
-
const
|
|
1065
|
-
const [
|
|
1066
|
-
const
|
|
1081
|
+
const canvasRef = useRef(null);
|
|
1082
|
+
const [recycler, setRecycler] = useState(null);
|
|
1083
|
+
const controller = recycler && "controller" in recycler ? recycler.controller : null;
|
|
1084
|
+
const error = recycler && "error" in recycler ? recycler.error : "";
|
|
1067
1085
|
useEffect(() => {
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
setController(instance);
|
|
1075
|
-
Object.assign(element, { virtualEditor: instance });
|
|
1076
|
-
} catch (reason) {
|
|
1077
|
-
setError(String(reason));
|
|
1078
|
-
return;
|
|
1079
|
-
}
|
|
1086
|
+
const element = canvasRef.current;
|
|
1087
|
+
const result = createRecycler(editor, element, stableOptions);
|
|
1088
|
+
setRecycler(result);
|
|
1089
|
+
if (!("controller" in result)) return () => setRecycler(null);
|
|
1090
|
+
const instance = result.controller;
|
|
1091
|
+
Object.assign(element, { virtualEditor: instance });
|
|
1080
1092
|
return () => {
|
|
1093
|
+
setRecycler(null);
|
|
1081
1094
|
selectEditor(null);
|
|
1082
1095
|
instance.dispose();
|
|
1083
1096
|
Reflect.deleteProperty(element, "virtualEditor");
|
|
@@ -1101,7 +1114,7 @@ function VirtualizedEditor({ options, className, plugins, autoFocus, hasHeader,
|
|
|
1101
1114
|
children: /* @__PURE__ */ jsx("div", {
|
|
1102
1115
|
className: canvas,
|
|
1103
1116
|
"data-virtual-editor": "",
|
|
1104
|
-
ref:
|
|
1117
|
+
ref: canvasRef,
|
|
1105
1118
|
children: controller && /* @__PURE__ */ jsx(Contents, {
|
|
1106
1119
|
controller,
|
|
1107
1120
|
placeholder,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-registry-entry.d.ts","
|
|
1
|
+
{"version":3,"file":"command-registry-entry.d.ts","sources":["../src/command-registry-entry.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LucideIcon } from 'lucide-react';
|
|
2
|
-
import { CommandItemConfig } from '../types/slash-menu';
|
|
1
|
+
import type { LucideIcon } from 'lucide-react';
|
|
2
|
+
import type { CommandItemConfig } from '../types/slash-menu';
|
|
3
3
|
export type CommandGroupId = 'basic' | 'lists' | 'media' | 'rich' | 'layout' | 'embed' | 'inline';
|
|
4
4
|
export interface CommandGroup {
|
|
5
5
|
id: CommandGroupId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sources":["../../src/commands/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAyC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAElG,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,cAAc,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAQjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAAS,WAAW,EAwFlD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAUlD,CAAC;AA0BF,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEzE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAOxE;AAOD,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,iBAAiB,EAC/D,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,OAAO,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GAClC,CAAC,EAAE,CA4BL"}
|
package/dist/commands-entry.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export { INSERT_ALERT_COMMAND } from './plugins/AlertPlugin';
|
|
2
1
|
export { OPEN_FILE_PICKER_COMMAND } from './plugins/file-upload-command';
|
|
3
2
|
export { OPEN_IMAGE_UPLOAD_DIALOG_COMMAND } from './plugins/image-upload-command';
|
|
4
|
-
export { INSERT_IMAGE_COMMAND } from './plugins/
|
|
5
|
-
export { INSERT_KATEX_BLOCK_COMMAND, INSERT_KATEX_INLINE_COMMAND } from './plugins/KaTeXPlugin';
|
|
6
|
-
export { INSERT_MERMAID_COMMAND } from './plugins/MermaidPlugin';
|
|
3
|
+
export { INSERT_ALERT_COMMAND, INSERT_IMAGE_COMMAND, INSERT_KATEX_BLOCK_COMMAND, INSERT_KATEX_INLINE_COMMAND, INSERT_MERMAID_COMMAND, } from './plugins/insert-commands';
|
|
7
4
|
export type { CommandItemConfig, CommandPlacement, SlashMenuItemConfig, ToolbarGroup, } from './types/slash-menu';
|
|
8
5
|
export { collectCommandItems } from './utils/collect-command-items';
|
|
9
6
|
export { extractTextContent } from './utils/extractTextContent';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands-entry.d.ts","
|
|
1
|
+
{"version":3,"file":"commands-entry.d.ts","sources":["../src/commands-entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,GACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/commands-entry.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as OPEN_FILE_PICKER_COMMAND, i as OPEN_IMAGE_UPLOAD_DIALOG_COMMAND, n as $isSpoilerNode, o as extractTextContent, t as $createSpoilerNode } from "./SpoilerNode-D7Tgdo2K.js";
|
|
2
|
+
import { a as INSERT_MERMAID_COMMAND, i as INSERT_KATEX_INLINE_COMMAND, n as INSERT_IMAGE_COMMAND, r as INSERT_KATEX_BLOCK_COMMAND, t as INSERT_ALERT_COMMAND } from "./insert-commands-CtLGoIz0.js";
|
|
3
3
|
import { $createTextNode, $getSelection, $isRangeSelection } from "lexical";
|
|
4
4
|
//#region src/utils/collect-command-items.ts
|
|
5
5
|
function collectCommandItems(editor) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEditable.css.d.ts","
|
|
1
|
+
{"version":3,"file":"ContentEditable.css.d.ts","sources":["../../src/components/ContentEditable.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc,QAOzB,CAAC;AAEH,eAAO,MAAM,OAAO,QASlB,CAAC;AAEH,eAAO,MAAM,WAAW,QAOtB,CAAC"}
|
|
@@ -3,6 +3,6 @@ interface ContentEditableProps {
|
|
|
3
3
|
hasHeader?: boolean;
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function ContentEditable({ className, placeholder, hasHeader }: ContentEditableProps): import(
|
|
6
|
+
export declare function ContentEditable({ className, placeholder, hasHeader }: ContentEditableProps): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=ContentEditable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEditable.d.ts","
|
|
1
|
+
{"version":3,"file":"ContentEditable.d.ts","sources":["../../src/components/ContentEditable.tsx"],"names":[],"mappings":"AAKA,UAAU,oBAAoB;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,oBAAoB,+BAqB1F"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function CorePlugins(): import(
|
|
1
|
+
export declare function CorePlugins(): import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=CorePlugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorePlugins.d.ts","
|
|
1
|
+
{"version":3,"file":"CorePlugins.d.ts","sources":["../../src/components/CorePlugins.tsx"],"names":[],"mappings":"AAeA,wBAAgB,WAAW,gCAkB1B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EditorSurfaceProps } from '../context/EditorSurfaceContext';
|
|
2
|
-
export declare function EditorSurfaceHost(props: Omit<EditorSurfaceProps, 'plugins' | 'onActiveEditorChange' | 'retainSurface'>): import(
|
|
1
|
+
import type { EditorSurfaceProps } from '../context/EditorSurfaceContext';
|
|
2
|
+
export declare function EditorSurfaceHost(props: Omit<EditorSurfaceProps, 'plugins' | 'onActiveEditorChange' | 'retainSurface'>): import("react").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=EditorSurfaceHost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorSurfaceHost.d.ts","
|
|
1
|
+
{"version":3,"file":"EditorSurfaceHost.d.ts","sources":["../../src/components/EditorSurfaceHost.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AA+B1E,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,kBAAkB,EAAE,SAAS,GAAG,sBAAsB,GAAG,eAAe,CAAC,sCAqBtF"}
|
|
@@ -8,5 +8,5 @@ export type LinkFaviconProps = {
|
|
|
8
8
|
/** Resolve platform type from URL, injected by app */
|
|
9
9
|
getPlatformFromUrl?: (url: URL) => string | null;
|
|
10
10
|
};
|
|
11
|
-
export declare function LinkFavicon({ href, source, noIcon, className, platformIconMap, getPlatformFromUrl, }: LinkFaviconProps): import(
|
|
11
|
+
export declare function LinkFavicon({ href, source, noIcon, className, platformIconMap, getPlatformFromUrl, }: LinkFaviconProps): import("react").JSX.Element | null;
|
|
12
12
|
//# sourceMappingURL=LinkFavicon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkFavicon.d.ts","
|
|
1
|
+
{"version":3,"file":"LinkFavicon.d.ts","sources":["../../src/components/LinkFavicon.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6FAA6F;IAC7F,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAClD,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,GAAG,IAAI,CAAC;CAClD,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,MAAM,EACN,MAAc,EACd,SAAS,EACT,eAAe,EACf,kBAAkB,GACnB,EAAE,gBAAgB,sCAqDlB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ComponentType
|
|
2
|
-
import { RendererConfig } from '../types/renderer-config';
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
import type { RendererConfig } from '../types/renderer-config';
|
|
3
3
|
export type RendererKey = keyof RendererConfig;
|
|
4
|
-
type RendererPropsByKey = {
|
|
4
|
+
export type RendererPropsByKey = {
|
|
5
5
|
[K in RendererKey]-?: NonNullable<RendererConfig[K]> extends ComponentType<infer P extends object> ? P : never;
|
|
6
6
|
};
|
|
7
|
-
type RendererComponentByKey = {
|
|
7
|
+
export type RendererComponentByKey = {
|
|
8
8
|
[K in RendererKey]-?: NonNullable<RendererConfig[K]> extends ComponentType<any> ? NonNullable<RendererConfig[K]> : never;
|
|
9
9
|
};
|
|
10
10
|
export type RendererWrapperProps = {
|
|
@@ -26,16 +26,5 @@ export type RendererWrapperProps = {
|
|
|
26
26
|
* Wrapper component that allows overriding default renderers with custom ones.
|
|
27
27
|
* Uses RendererConfig from context to determine which renderer to use.
|
|
28
28
|
*/
|
|
29
|
-
export declare function RendererWrapper({ rendererKey, defaultRenderer, props }: RendererWrapperProps): import(
|
|
30
|
-
/**
|
|
31
|
-
* Type-safe helper for creating RendererWrapper elements from .ts node files.
|
|
32
|
-
* Avoids the createElement + discriminated-union typing limitation.
|
|
33
|
-
*
|
|
34
|
-
* `defaultRenderer` is optional. Pass `undefined` from extension node classes
|
|
35
|
-
* that should not statically import their renderer; the heavy default lives
|
|
36
|
-
* in a separate sub-path and is registered into RendererConfig at compose
|
|
37
|
-
* time, keeping the node bundle light.
|
|
38
|
-
*/
|
|
39
|
-
export declare function createRendererDecoration<K extends RendererKey>(rendererKey: K, defaultRenderer: RendererComponentByKey[K] | undefined, props: RendererPropsByKey[K]): ReactElement;
|
|
40
|
-
export {};
|
|
29
|
+
export declare function RendererWrapper({ rendererKey, defaultRenderer, props }: RendererWrapperProps): import("react").JSX.Element | null;
|
|
41
30
|
//# sourceMappingURL=RendererWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RendererWrapper.d.ts","
|
|
1
|
+
{"version":3,"file":"RendererWrapper.d.ts","sources":["../../src/components/RendererWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,MAAM,WAAW,GAAG,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG;KAC9B,CAAC,IAAI,WAAW,CAAC,CAAC,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,SAAS,MAAM,CAAC,GAC9F,CAAC,GACD,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,WAAW,CAAC,CAAC,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,GAC3E,WAAW,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GAC9B,KAAK;CACV,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;KAChC,CAAC,IAAI,WAAW,CAAC,CAAC,GAAG;QACpB,6CAA6C;QAC7C,WAAW,EAAE,CAAC,CAAC;QACf;;;;;WAKG;QACH,eAAe,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;QAC5C,oCAAoC;QACpC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC9B;CACF,CAAC,WAAW,CAAC,CAAC;AAEf;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,oBAAoB,sCAO5F"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RichEditorProps } from '../types';
|
|
2
|
-
export declare function RichEditor({ extraNodes, imageUpload, videoUpload, fileUpload, children, ...shellProps }: RichEditorProps): import(
|
|
1
|
+
import type { RichEditorProps } from '../types';
|
|
2
|
+
export declare function RichEditor({ extraNodes, imageUpload, videoUpload, fileUpload, children, ...shellProps }: RichEditorProps): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=RichEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichEditor.d.ts","
|
|
1
|
+
{"version":3,"file":"RichEditor.d.ts","sources":["../../src/components/RichEditor.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIhD,wBAAgB,UAAU,CAAC,EACzB,UAAU,EACV,WAAW,EACX,WAAW,EACX,UAAU,EACV,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,eAAe,+BAgCjB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Klass, LexicalEditor, LexicalNode, LexicalNodeReplacement, SerializedEditorState } from 'lexical';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ColorScheme } from '../context/ColorSchemeContext';
|
|
4
|
-
import { RichEditorVariant } from '../types';
|
|
5
|
-
import { RendererConfig } from '../types/renderer-config';
|
|
6
|
-
import { EditorVirtualization } from '../virtualization/types';
|
|
1
|
+
import type { Klass, LexicalEditor, LexicalNode, LexicalNodeReplacement, SerializedEditorState } from 'lexical';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import type { ColorScheme } from '../context/ColorSchemeContext';
|
|
4
|
+
import type { RichEditorVariant } from '../types';
|
|
5
|
+
import type { RendererConfig } from '../types/renderer-config';
|
|
6
|
+
import type { EditorVirtualization } from '../virtualization/types';
|
|
7
7
|
export interface RichEditorShellProps {
|
|
8
8
|
actions?: ReactNode;
|
|
9
9
|
autoFocus?: boolean;
|
|
@@ -24,5 +24,5 @@ export interface RichEditorShellProps {
|
|
|
24
24
|
variant?: RichEditorVariant;
|
|
25
25
|
virtualization?: EditorVirtualization;
|
|
26
26
|
}
|
|
27
|
-
export declare function RichEditorShell({ nodes, initialValue, onChange, variant, theme, placeholder, onSubmit, autoFocus, className, contentClassName, style, actions, header, onEditorReady, rendererConfig, debounceMs, children, virtualization, }: RichEditorShellProps): import(
|
|
27
|
+
export declare function RichEditorShell({ nodes, initialValue, onChange, variant, theme, placeholder, onSubmit, autoFocus, className, contentClassName, style, actions, header, onEditorReady, rendererConfig, debounceMs, children, virtualization, }: RichEditorShellProps): import("react").JSX.Element;
|
|
28
28
|
//# sourceMappingURL=RichEditorShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichEditorShell.d.ts","
|
|
1
|
+
{"version":3,"file":"RichEditorShell.d.ts","sources":["../../src/components/RichEditorShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,KAAK,EACL,aAAa,EACb,WAAW,EACX,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAEhD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAejE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAKpE,MAAM,WAAW,oBAAoB;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,sBAAsB,CAAC,CAAC;IAC1D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAClD,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,OAAmB,EACnB,KAAe,EACf,WAAkC,EAClC,QAAQ,EACR,SAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,KAAK,EACL,OAAO,EACP,MAAM,EACN,aAAa,EACb,cAAc,EACd,UAAU,EACV,QAAQ,EACR,cAAc,GACf,EAAE,oBAAoB,+BA+DtB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EditorVirtualization } from '../virtualization/types';
|
|
1
|
+
import type { EditorVirtualization } from '../virtualization/types';
|
|
2
2
|
/** Convenience adapter. The core surface host never inspects virtualization options. */
|
|
3
3
|
export declare function VirtualizationFromProps({ value }: {
|
|
4
4
|
value?: EditorVirtualization;
|
|
5
|
-
}): import(
|
|
5
|
+
}): import("react").JSX.Element | null;
|
|
6
6
|
//# sourceMappingURL=VirtualizationFromProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VirtualizationFromProps.d.ts","
|
|
1
|
+
{"version":3,"file":"VirtualizationFromProps.d.ts","sources":["../../src/components/VirtualizationFromProps.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,wFAAwF;AACxF,wBAAgB,uBAAuB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,oBAAoB,CAAA;CAAE,sCAOlF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { LexicalEditor } from 'lexical';
|
|
2
|
-
import { AlertType } from '../../nodes/AlertQuoteNode';
|
|
1
|
+
import type { LexicalEditor } from 'lexical';
|
|
2
|
+
import type { AlertType } from '../../nodes/AlertQuoteNode';
|
|
3
3
|
interface AlertEditDecoratorProps {
|
|
4
4
|
alertType: AlertType;
|
|
5
5
|
contentEditor: LexicalEditor;
|
|
6
6
|
nodeKey: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function AlertEditDecorator({ nodeKey, alertType, contentEditor }: AlertEditDecoratorProps): import(
|
|
8
|
+
export declare function AlertEditDecorator({ nodeKey, alertType, contentEditor }: AlertEditDecoratorProps): import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=AlertEditDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertEditDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"AlertEditDecorator.d.ts","sources":["../../../src/components/decorators/AlertEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAe7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AA6H5D,UAAU,uBAAuB;IAC/B,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,uBAAuB,+BAgDhG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { LexicalEditor } from 'lexical';
|
|
2
|
-
import { BannerType } from '../../nodes/BannerNode';
|
|
1
|
+
import type { LexicalEditor } from 'lexical';
|
|
2
|
+
import type { BannerType } from '../../nodes/BannerNode';
|
|
3
3
|
interface BannerEditDecoratorProps {
|
|
4
4
|
bannerType: BannerType;
|
|
5
5
|
contentEditor: LexicalEditor;
|
|
6
6
|
nodeKey: string;
|
|
7
7
|
}
|
|
8
|
-
export declare function BannerEditDecorator({ nodeKey, bannerType, contentEditor, }: BannerEditDecoratorProps): import(
|
|
8
|
+
export declare function BannerEditDecorator({ nodeKey, bannerType, contentEditor, }: BannerEditDecoratorProps): import("react").JSX.Element;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=BannerEditDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerEditDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"BannerEditDecorator.d.ts","sources":["../../../src/components/decorators/BannerEditDecorator.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAQzD,UAAU,wBAAwB;IAChC,UAAU,EAAE,UAAU,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,UAAU,EACV,aAAa,GACd,EAAE,wBAAwB,+BA+C1B"}
|
|
@@ -3,6 +3,6 @@ interface CodeBlockEditDecoratorProps {
|
|
|
3
3
|
language: string;
|
|
4
4
|
nodeKey: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function CodeBlockEditDecorator({ nodeKey, code, language }: CodeBlockEditDecoratorProps): import(
|
|
6
|
+
export declare function CodeBlockEditDecorator({ nodeKey, code, language }: CodeBlockEditDecoratorProps): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=CodeBlockEditDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlockEditDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeBlockEditDecorator.d.ts","sources":["../../../src/components/decorators/CodeBlockEditDecorator.tsx"],"names":[],"mappings":"AA2BA,UAAU,2BAA2B;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAUD,wBAAgB,sBAAsB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,2BAA2B,+BA+M9F"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LexicalEditor } from 'lexical';
|
|
1
|
+
import type { LexicalEditor } from 'lexical';
|
|
2
2
|
interface GridEditDecoratorProps {
|
|
3
3
|
autoFocusOnMount?: boolean;
|
|
4
4
|
cellEditors: LexicalEditor[];
|
|
@@ -6,6 +6,6 @@ interface GridEditDecoratorProps {
|
|
|
6
6
|
gap: string;
|
|
7
7
|
nodeKey: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function GridEditDecorator({ nodeKey, autoFocusOnMount, cols: initialCols, gap, cellEditors, }: GridEditDecoratorProps): import(
|
|
9
|
+
export declare function GridEditDecorator({ nodeKey, autoFocusOnMount, cols: initialCols, gap, cellEditors, }: GridEditDecoratorProps): import("react").JSX.Element;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=GridEditDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridEditDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"GridEditDecorator.d.ts","sources":["../../../src/components/decorators/GridEditDecorator.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAc7C,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACjB;AAqCD,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,gBAAgB,EAChB,IAAI,EAAE,WAAW,EACjB,GAAG,EACH,WAAW,GACZ,EAAE,sBAAsB,+BA+IxB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function NestedEditorCorePlugins(): import(
|
|
1
|
+
export declare function NestedEditorCorePlugins(): import("react").JSX.Element;
|
|
2
2
|
//# sourceMappingURL=NestedEditorCorePlugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedEditorCorePlugins.d.ts","
|
|
1
|
+
{"version":3,"file":"NestedEditorCorePlugins.d.ts","sources":["../../../src/components/decorators/NestedEditorCorePlugins.tsx"],"names":[],"mappings":"AASA,wBAAgB,uBAAuB,gCActC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gridAutoFocus.d.ts","
|
|
1
|
+
{"version":3,"file":"gridAutoFocus.d.ts","sources":["../../../src/components/decorators/gridAutoFocus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAK7C,UAAU,gCAAgC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAC7C,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC,uBAAuB,CAAC,CAAC;CAChD;AAWD,wBAAgB,yBAAyB,CAAC,EACxC,WAAW,EACX,oBAAoB,EACpB,YAAwD,EACxD,WAAsD,EACtD,qBAAgD,GACjD,EAAE,gCAAgC,GAAG,MAAM,IAAI,CAkC/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNestedEditorSync.d.ts","
|
|
1
|
+
{"version":3,"file":"useNestedEditorSync.d.ts","sources":["../../../src/components/decorators/useNestedEditorSync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAKtD,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAQ3F"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { RendererComponentByKey, RendererKey, RendererPropsByKey } from './RendererWrapper';
|
|
3
|
+
/**
|
|
4
|
+
* Type-safe helper for creating RendererWrapper elements from .ts node files.
|
|
5
|
+
* Avoids the createElement + discriminated-union typing limitation.
|
|
6
|
+
*
|
|
7
|
+
* `defaultRenderer` is optional. Pass `undefined` from extension node classes
|
|
8
|
+
* that should not statically import their renderer; the heavy default lives
|
|
9
|
+
* in a separate sub-path and is registered into RendererConfig at compose
|
|
10
|
+
* time, keeping the node bundle light.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createRendererDecoration<K extends RendererKey>(rendererKey: K, defaultRenderer: RendererComponentByKey[K] | undefined, props: RendererPropsByKey[K]): ReactElement;
|
|
13
|
+
//# sourceMappingURL=renderer-decoration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer-decoration.d.ts","sources":["../../src/components/renderer-decoration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EACV,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EAEnB,MAAM,mBAAmB,CAAC;AAG3B;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,SAAS,WAAW,EAC5D,WAAW,EAAE,CAAC,EACd,eAAe,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,SAAS,EACtD,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAC3B,YAAY,CAMd"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { AlertType } from '../../nodes/AlertQuoteNode';
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { AlertType } from '../../nodes/AlertQuoteNode';
|
|
3
3
|
export interface AlertRendererProps {
|
|
4
4
|
editable?: boolean;
|
|
5
5
|
onTypeChange?: (type: AlertType) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"AlertRenderer.d.ts","sources":["../../../src/components/renderers/AlertRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG5D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACzC,IAAI,EAAE,SAAS,CAAC;CACjB;AAgBD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAWhD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SerializedEditorState } from 'lexical';
|
|
2
|
-
import { AlertType } from '../../nodes/AlertQuoteNode';
|
|
1
|
+
import type { SerializedEditorState } from 'lexical';
|
|
2
|
+
import type { AlertType } from '../../nodes/AlertQuoteNode';
|
|
3
3
|
interface AlertStaticDecoratorProps {
|
|
4
4
|
alertType: AlertType;
|
|
5
5
|
contentState: SerializedEditorState;
|
|
6
6
|
}
|
|
7
|
-
export declare function AlertStaticDecorator({ alertType, contentState }: AlertStaticDecoratorProps): import(
|
|
7
|
+
export declare function AlertStaticDecorator({ alertType, contentState }: AlertStaticDecoratorProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=AlertStaticDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertStaticDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"AlertStaticDecorator.d.ts","sources":["../../../src/components/renderers/AlertStaticDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAK5D,UAAU,yBAAyB;IACjC,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,qBAAqB,CAAC;CACrC;AAED,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,yBAAyB,+BAa1F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { BannerType } from '../../nodes/BannerNode';
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { BannerType } from '../../nodes/BannerNode';
|
|
3
3
|
export interface BannerRendererProps {
|
|
4
4
|
editable?: boolean;
|
|
5
5
|
onTypeChange?: (type: BannerType) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"BannerRenderer.d.ts","sources":["../../../src/components/renderers/BannerRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,IAAI,EAAE,UAAU,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAElD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SerializedEditorState } from 'lexical';
|
|
2
|
-
import { BannerType } from '../../nodes/BannerNode';
|
|
1
|
+
import type { SerializedEditorState } from 'lexical';
|
|
2
|
+
import type { BannerType } from '../../nodes/BannerNode';
|
|
3
3
|
interface BannerStaticDecoratorProps {
|
|
4
4
|
bannerType: BannerType;
|
|
5
5
|
contentState: SerializedEditorState;
|
|
6
6
|
}
|
|
7
|
-
export declare function BannerStaticDecorator({ bannerType, contentState }: BannerStaticDecoratorProps): import(
|
|
7
|
+
export declare function BannerStaticDecorator({ bannerType, contentState }: BannerStaticDecoratorProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=BannerStaticDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerStaticDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"BannerStaticDecorator.d.ts","sources":["../../../src/components/renderers/BannerStaticDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKzD,UAAU,0BAA0B;IAClC,UAAU,EAAE,UAAU,CAAC;IACvB,YAAY,EAAE,qBAAqB,CAAC;CACrC;AAED,wBAAgB,qBAAqB,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,0BAA0B,+BAa7F"}
|