@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
|
@@ -10,5 +10,5 @@ export interface CodeBlockRendererProps {
|
|
|
10
10
|
selected?: boolean;
|
|
11
11
|
showLineNumbers?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare function CodeBlockRenderer({ code, language, showLineNumbers: showLineNumbersProp, }: CodeBlockRendererProps): import(
|
|
13
|
+
export declare function CodeBlockRenderer({ code, language, showLineNumbers: showLineNumbersProp, }: CodeBlockRendererProps): import("react").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=CodeBlockRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlockRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"CodeBlockRenderer.d.ts","sources":["../../../src/components/renderers/CodeBlockRenderer.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,GAAG,OAAO,KAAK,IAAI,CAAC;IACtD,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,QAAQ,EACR,eAAe,EAAE,mBAAmB,GACrC,EAAE,sBAAsB,+BAkGxB"}
|
|
@@ -7,8 +7,5 @@ export interface FileRendererProps {
|
|
|
7
7
|
size?: number;
|
|
8
8
|
src: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function fileExtension(name: string, ext?: string): string | null;
|
|
12
|
-
export declare function fileMetaText(name: string, size?: number, ext?: string): string;
|
|
13
|
-
export declare function FileRenderer({ src, name, size, ext, display }: FileRendererProps): import('react').JSX.Element;
|
|
10
|
+
export declare function FileRenderer({ src, name, size, ext, display }: FileRendererProps): import("react").JSX.Element;
|
|
14
11
|
//# sourceMappingURL=FileRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"FileRenderer.d.ts","sources":["../../../src/components/renderers/FileRenderer.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,YAAY,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,EAAE,iBAAiB,+BA6BhF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface FootnoteRendererProps {
|
|
2
2
|
identifier: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function FootnoteRenderer({ identifier }: FootnoteRendererProps): import(
|
|
4
|
+
export declare function FootnoteRenderer({ identifier }: FootnoteRendererProps): import("react").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=FootnoteRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FootnoteRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"FootnoteRenderer.d.ts","sources":["../../../src/components/renderers/FootnoteRenderer.tsx"],"names":[],"mappings":"AAWA,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAAE,EAAE,qBAAqB,+BAoDrE"}
|
|
@@ -2,5 +2,5 @@ export interface FootnoteSectionEditRendererProps {
|
|
|
2
2
|
definitions: Record<string, string>;
|
|
3
3
|
nodeKey: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function FootnoteSectionEditRenderer({ definitions }: FootnoteSectionEditRendererProps): import(
|
|
5
|
+
export declare function FootnoteSectionEditRenderer({ definitions }: FootnoteSectionEditRendererProps): import("react").JSX.Element | null;
|
|
6
6
|
//# sourceMappingURL=FootnoteSectionEditRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FootnoteSectionEditRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"FootnoteSectionEditRenderer.d.ts","sources":["../../../src/components/renderers/FootnoteSectionEditRenderer.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,gCAAgC;IAC/C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,2BAA2B,CAAC,EAAE,WAAW,EAAE,EAAE,gCAAgC,sCAqG5F"}
|
|
@@ -2,5 +2,5 @@ export interface FootnoteSectionRendererProps {
|
|
|
2
2
|
definitions: Record<string, string>;
|
|
3
3
|
nodeKey: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function FootnoteSectionRenderer({ definitions }: FootnoteSectionRendererProps): import(
|
|
5
|
+
export declare function FootnoteSectionRenderer({ definitions }: FootnoteSectionRendererProps): import("react").JSX.Element | null;
|
|
6
6
|
//# sourceMappingURL=FootnoteSectionRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FootnoteSectionRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"FootnoteSectionRenderer.d.ts","sources":["../../../src/components/renderers/FootnoteSectionRenderer.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,WAAW,EAAE,EAAE,4BAA4B,sCAyCpF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export interface FootnoteStaticRendererProps {
|
|
2
2
|
identifier: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function FootnoteStaticRenderer({ identifier }: FootnoteStaticRendererProps): import(
|
|
4
|
+
export declare function FootnoteStaticRenderer({ identifier }: FootnoteStaticRendererProps): import("react").JSX.Element;
|
|
5
5
|
//# sourceMappingURL=FootnoteStaticRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FootnoteStaticRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"FootnoteStaticRenderer.d.ts","sources":["../../../src/components/renderers/FootnoteStaticRenderer.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,sBAAsB,CAAC,EAAE,UAAU,EAAE,EAAE,2BAA2B,+BA4CjF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SerializedEditorState } from 'lexical';
|
|
1
|
+
import type { SerializedEditorState } from 'lexical';
|
|
2
2
|
interface GridStaticDecoratorProps {
|
|
3
3
|
cellStates: SerializedEditorState[];
|
|
4
4
|
cols: number;
|
|
5
5
|
gap: string;
|
|
6
6
|
}
|
|
7
|
-
export declare function GridStaticDecorator({ cols, gap, cellStates }: GridStaticDecoratorProps): import(
|
|
7
|
+
export declare function GridStaticDecorator({ cols, gap, cellStates }: GridStaticDecoratorProps): import("react").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=GridStaticDecorator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridStaticDecorator.d.ts","
|
|
1
|
+
{"version":3,"file":"GridStaticDecorator.d.ts","sources":["../../../src/components/renderers/GridStaticDecorator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAQrD,UAAU,wBAAwB;IAChC,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,mBAAmB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,UAAU,EAAE,EAAE,wBAAwB,+BAwBtF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ImageLayout } from '../../nodes/ImageNode';
|
|
1
|
+
import type { ImageLayout } from '../../nodes/ImageNode';
|
|
2
2
|
export interface ImageRendererProps {
|
|
3
3
|
accent?: string;
|
|
4
4
|
altText: string;
|
|
@@ -13,5 +13,5 @@ export interface ImageRendererProps {
|
|
|
13
13
|
thumbhash?: string;
|
|
14
14
|
width?: number;
|
|
15
15
|
}
|
|
16
|
-
export declare function ImageRenderer({ src, altText, width, height, caption, thumbhash, accent, displayWidth, fixedWidth, fixedHeight, layout, }: ImageRendererProps): import(
|
|
16
|
+
export declare function ImageRenderer({ src, altText, width, height, caption, thumbhash, accent, displayWidth, fixedWidth, fixedHeight, layout, }: ImageRendererProps): import("react").JSX.Element;
|
|
17
17
|
//# sourceMappingURL=ImageRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"ImageRenderer.d.ts","sources":["../../../src/components/renderers/ImageRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAQzD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,OAAO,EACP,KAAK,EACL,MAAM,EACN,OAAO,EACP,SAAS,EACT,MAAM,EACN,YAAY,EACZ,UAAU,EACV,WAAW,EACX,MAAM,GACP,EAAE,kBAAkB,+BA+GpB"}
|
|
@@ -2,5 +2,5 @@ export interface KaTeXRendererProps {
|
|
|
2
2
|
displayMode: boolean;
|
|
3
3
|
equation: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function KaTeXRenderer({ equation, displayMode }: KaTeXRendererProps): import(
|
|
5
|
+
export declare function KaTeXRenderer({ equation, displayMode }: KaTeXRendererProps): import("react").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=KaTeXRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KaTeXRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"KaTeXRenderer.d.ts","sources":["../../../src/components/renderers/KaTeXRenderer.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAqBD,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE,kBAAkB,+BA8C1E"}
|
|
@@ -7,5 +7,5 @@ export interface LinkCardRendererProps {
|
|
|
7
7
|
title?: string;
|
|
8
8
|
url: string;
|
|
9
9
|
}
|
|
10
|
-
export declare function LinkCardRenderer({ url, title, description, favicon, image, }: LinkCardRendererProps): import(
|
|
10
|
+
export declare function LinkCardRenderer({ url, title, description, favicon, image, }: LinkCardRendererProps): import("react").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=LinkCardRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkCardRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"LinkCardRenderer.d.ts","sources":["../../../src/components/renderers/LinkCardRenderer.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,WAAW,EACX,OAAO,EACP,KAAK,GACN,EAAE,qBAAqB,+BA+BvB"}
|
|
@@ -3,5 +3,5 @@ export interface MentionRendererProps {
|
|
|
3
3
|
handle: string;
|
|
4
4
|
platform: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function MentionRenderer({ handle, displayName }: MentionRendererProps): import(
|
|
6
|
+
export declare function MentionRenderer({ handle, displayName }: MentionRendererProps): import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=MentionRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MentionRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"MentionRenderer.d.ts","sources":["../../../src/components/renderers/MentionRenderer.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,oBAAoB,+BAS5E"}
|
|
@@ -2,5 +2,5 @@ export interface MermaidRendererProps {
|
|
|
2
2
|
content: string;
|
|
3
3
|
onContentChange?: (content: string) => void;
|
|
4
4
|
}
|
|
5
|
-
export declare function MermaidRenderer({ content }: MermaidRendererProps): import(
|
|
5
|
+
export declare function MermaidRenderer({ content }: MermaidRendererProps): import("react").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=MermaidRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MermaidRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"MermaidRenderer.d.ts","sources":["../../../src/components/renderers/MermaidRenderer.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,oBAAoB,+BAQhE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
export interface RubyRendererProps {
|
|
3
3
|
children?: ReactNode;
|
|
4
4
|
reading: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function RubyRenderer({ reading, children }: RubyRendererProps): import(
|
|
6
|
+
export declare function RubyRenderer({ reading, children }: RubyRendererProps): import("react").JSX.Element;
|
|
7
7
|
//# sourceMappingURL=RubyRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RubyRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"RubyRenderer.d.ts","sources":["../../../src/components/renderers/RubyRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,iBAAiB,+BAWpE"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export interface TagRendererProps {
|
|
2
2
|
text: string;
|
|
3
3
|
}
|
|
4
|
-
export declare function TagRenderer({ text }: TagRendererProps): import(
|
|
5
|
-
export { getTagBgColor } from '../../utils/tag-color';
|
|
4
|
+
export declare function TagRenderer({ text }: TagRendererProps): import("react").JSX.Element;
|
|
6
5
|
//# sourceMappingURL=TagRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"TagRenderer.d.ts","sources":["../../../src/components/renderers/TagRenderer.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,+BASrD"}
|
|
@@ -4,5 +4,5 @@ export interface VideoRendererProps {
|
|
|
4
4
|
src: string;
|
|
5
5
|
width?: number;
|
|
6
6
|
}
|
|
7
|
-
export declare function VideoRenderer({ src, poster, width, height }: VideoRendererProps): import(
|
|
7
|
+
export declare function VideoRenderer({ src, poster, width, height }: VideoRendererProps): import("react").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=VideoRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoRenderer.d.ts","
|
|
1
|
+
{"version":3,"file":"VideoRenderer.d.ts","sources":["../../../src/components/renderers/VideoRenderer.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAc/E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RichEditorVariant } from '../types';
|
|
1
|
+
import type { RichEditorVariant } from '../types';
|
|
2
2
|
export declare function clsx(...args: Array<string | undefined | null | false>): string;
|
|
3
3
|
export declare function getVariantClass(variant: RichEditorVariant): string;
|
|
4
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sources":["../../src/components/utils.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,wBAAgB,IAAI,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,GAAG,MAAM,CAE9E;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAKlE"}
|
package/dist/config-edit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Klass, LexicalNode, LexicalNodeReplacement } from 'lexical';
|
|
1
|
+
import type { Klass, LexicalNode, LexicalNodeReplacement } from 'lexical';
|
|
2
2
|
export declare const customEditNodes: Array<Klass<LexicalNode> | LexicalNodeReplacement>;
|
|
3
3
|
export declare const allEditNodes: Array<Klass<LexicalNode> | LexicalNodeReplacement>;
|
|
4
4
|
//# sourceMappingURL=config-edit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-edit.d.ts","
|
|
1
|
+
{"version":3,"file":"config-edit.d.ts","sources":["../src/config-edit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAuB1E,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,sBAAsB,CAoB9E,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,sBAAsB,CAG3E,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Klass, LexicalNode, LexicalNodeReplacement } from 'lexical';
|
|
1
|
+
import type { Klass, LexicalNode, LexicalNodeReplacement } from 'lexical';
|
|
2
2
|
export declare const builtinNodes: Array<Klass<LexicalNode> | LexicalNodeReplacement>;
|
|
3
3
|
export declare const customNodes: Array<Klass<LexicalNode> | LexicalNodeReplacement>;
|
|
4
4
|
export declare const allNodes: Array<Klass<LexicalNode> | LexicalNodeReplacement>;
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","
|
|
1
|
+
{"version":3,"file":"config.d.ts","sources":["../src/config.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAuB1E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,sBAAsB,CAc3E,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,sBAAsB,CAoB1E,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,sBAAsB,CAGvE,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
export type ColorScheme = 'light' | 'dark';
|
|
3
|
-
export declare
|
|
4
|
-
colorScheme: ColorScheme;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): import('react').JSX.Element;
|
|
2
|
+
export declare const ColorSchemeContext: import("react").Context<ColorScheme>;
|
|
7
3
|
export declare function useColorScheme(): ColorScheme;
|
|
8
4
|
//# sourceMappingURL=ColorSchemeContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorSchemeContext.d.ts","
|
|
1
|
+
{"version":3,"file":"ColorSchemeContext.d.ts","sources":["../../src/context/ColorSchemeContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,eAAO,MAAM,kBAAkB,sCAAsC,CAAC;AAEtE,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ColorScheme } from './ColorSchemeContext';
|
|
3
|
+
export declare function ColorSchemeProvider({ colorScheme, children, }: {
|
|
4
|
+
colorScheme: ColorScheme;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ColorSchemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorSchemeProvider.d.ts","sources":["../../src/context/ColorSchemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,QAAQ,GACT,EAAE;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LexicalEditor, NodeKey } from 'lexical';
|
|
1
|
+
import type { LexicalEditor, NodeKey } from 'lexical';
|
|
2
2
|
export interface DocumentBlocks {
|
|
3
3
|
clear: () => void;
|
|
4
4
|
documentKeys: (editor: LexicalEditor, keys: NodeKey[]) => NodeKey[];
|
|
@@ -19,7 +19,7 @@ export interface EditorBlockBinding {
|
|
|
19
19
|
nodeState: (key?: NodeKey) => Map<string, unknown>;
|
|
20
20
|
retain: () => () => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const EditorBlockContext: import(
|
|
22
|
+
export declare const EditorBlockContext: import("react").Context<EditorBlockBinding | null>;
|
|
23
23
|
/** Optional logical block identity/state for views that rebind editing instances. */
|
|
24
24
|
export declare function useEditorBlock(): EditorBlockBinding | null;
|
|
25
25
|
//# sourceMappingURL=EditorBlockContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorBlockContext.d.ts","
|
|
1
|
+
{"version":3,"file":"EditorBlockContext.d.ts","sources":["../../src/context/EditorBlockContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGtD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,YAAY,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,CAAC;IACpE,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,KAAK,OAAO,CAAC;IAClC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,EAAE,CAAC;IACjD,IAAI,EAAE,MAAM,OAAO,EAAE,CAAC;IACtB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/E,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CACjD;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,CAAC,GAAG,CAAC,EAAE,OAAO,KAAK,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnD,MAAM,EAAE,MAAM,MAAM,IAAI,CAAC;CAC1B;AACD,eAAO,MAAM,kBAAkB,oDAAiD,CAAC;AACjF,qFAAqF;AACrF,wBAAgB,cAAc,8BAE7B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Surface } from './EditorSurfaceContext';
|
|
3
|
+
export declare function EditorSurfaceProvider({ children }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
/** Register an editing surface; null explicitly selects the standard surface. */
|
|
7
|
+
export declare function EditorSurfacePlugin({ surface, priority, }: {
|
|
8
|
+
surface: Surface | null;
|
|
9
|
+
priority?: number;
|
|
10
|
+
}): null;
|
|
11
|
+
/** Mount DOM/selection plugins inside whichever editing surface is installed. */
|
|
12
|
+
export declare function EditorSurfacePlugins({ children }: {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}): null;
|
|
15
|
+
/** Keep document-level history/save outside this scope; toolbar actions belong inside it. */
|
|
16
|
+
export declare function ActiveEditorScope({ children }: {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=EditorSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorSurface.d.ts","sources":["../../src/context/EditorSurface.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAavC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAiBtD,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BA+H1E;AACD,iFAAiF;AACjF,wBAAgB,mBAAmB,CAAC,EAClC,OAAO,EACP,QAAY,GACb,EAAE;IACD,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,QAQA;AACD,iFAAiF;AACjF,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,QAUzE;AAyBD,6FAA6F;AAC7F,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAQtE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LexicalEditor } from 'lexical';
|
|
2
|
-
import { ComponentType, ReactNode } from 'react';
|
|
1
|
+
import type { LexicalEditor } from 'lexical';
|
|
2
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
3
3
|
export interface EditorSurfaceProps {
|
|
4
4
|
autoFocus?: boolean;
|
|
5
5
|
className?: string;
|
|
@@ -10,33 +10,18 @@ export interface EditorSurfaceProps {
|
|
|
10
10
|
/** Keep the current surface alive until a UI operation or async edit has finished. */
|
|
11
11
|
retainSurface: () => () => void;
|
|
12
12
|
}
|
|
13
|
-
type Surface = ComponentType<EditorSurfaceProps>;
|
|
14
|
-
interface SurfaceContext {
|
|
13
|
+
export type Surface = ComponentType<EditorSurfaceProps>;
|
|
14
|
+
export interface SurfaceContext {
|
|
15
|
+
/** Set the active editor on behalf of `surface`; ignored once another surface is installed. */
|
|
16
|
+
activateEditor: (surface: Surface | null, editor: LexicalEditor | null) => void;
|
|
15
17
|
activeEditor: LexicalEditor | null;
|
|
16
18
|
plugins: ReactNode;
|
|
17
19
|
registerPlugins: (key: string, plugins: ReactNode) => () => void;
|
|
18
20
|
registerSurface: (key: string, surface: Surface | null, priority: number) => () => void;
|
|
19
21
|
retainSurface: () => () => void;
|
|
20
|
-
setActiveEditor: (editor: LexicalEditor | null) => void;
|
|
21
22
|
surface: Surface | null;
|
|
22
23
|
}
|
|
23
|
-
export declare
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
}): import('react').JSX.Element;
|
|
24
|
+
export declare const EditorSurfaceContext: import("react").Context<SurfaceContext | null>;
|
|
26
25
|
export declare function useEditorSurface(): SurfaceContext;
|
|
27
|
-
/** Register an editing surface; null explicitly selects the standard surface. */
|
|
28
|
-
export declare function EditorSurfacePlugin({ surface, priority, }: {
|
|
29
|
-
surface: Surface | null;
|
|
30
|
-
priority?: number;
|
|
31
|
-
}): null;
|
|
32
|
-
/** Mount DOM/selection plugins inside whichever editing surface is installed. */
|
|
33
|
-
export declare function EditorSurfacePlugins({ children }: {
|
|
34
|
-
children: ReactNode;
|
|
35
|
-
}): null;
|
|
36
26
|
export declare function useActiveEditor(): LexicalEditor | null;
|
|
37
|
-
/** Keep document-level history/save outside this scope; toolbar actions belong inside it. */
|
|
38
|
-
export declare function ActiveEditorScope({ children }: {
|
|
39
|
-
children: ReactNode;
|
|
40
|
-
}): import('react').JSX.Element;
|
|
41
|
-
export {};
|
|
42
27
|
//# sourceMappingURL=EditorSurfaceContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorSurfaceContext.d.ts","
|
|
1
|
+
{"version":3,"file":"EditorSurfaceContext.d.ts","sources":["../../src/context/EditorSurfaceContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oBAAoB,EAAE,CAAC,MAAM,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,sFAAsF;IACtF,aAAa,EAAE,MAAM,MAAM,IAAI,CAAC;CACjC;AACD,MAAM,MAAM,OAAO,GAAG,aAAa,CAAC,kBAAkB,CAAC,CAAC;AACxD,MAAM,WAAW,cAAc;IAC7B,+FAA+F;IAC/F,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IAChF,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC;IACnB,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,KAAK,MAAM,IAAI,CAAC;IACjE,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;IACxF,aAAa,EAAE,MAAM,MAAM,IAAI,CAAC;IAChC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CACzB;AACD,eAAO,MAAM,oBAAoB,gDAA6C,CAAC;AAE/E,wBAAgB,gBAAgB,mBAI/B;AACD,wBAAgB,eAAe,yBAE9B"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { Klass, LexicalNode } from 'lexical';
|
|
2
|
-
|
|
3
|
-
export declare function ExtraNodesProvider({ children, extraNodes, }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
extraNodes?: Array<Klass<LexicalNode>>;
|
|
6
|
-
}): import('react').JSX.Element;
|
|
1
|
+
import type { Klass, LexicalNode } from 'lexical';
|
|
2
|
+
export declare const ExtraNodesContext: import("react").Context<import("lexical").KlassConstructor<typeof LexicalNode>[] | undefined>;
|
|
7
3
|
export declare function useExtraNodes(): Array<Klass<LexicalNode>> | undefined;
|
|
8
4
|
//# sourceMappingURL=ExtraNodesContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExtraNodesContext.d.ts","
|
|
1
|
+
{"version":3,"file":"ExtraNodesContext.d.ts","sources":["../../src/context/ExtraNodesContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAGlD,eAAO,MAAM,iBAAiB,+FAAkE,CAAC;AAEjG,wBAAgB,aAAa,IAAI,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,GAAG,SAAS,CAErE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Klass, LexicalNode } from 'lexical';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export declare function ExtraNodesProvider({ children, extraNodes, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
extraNodes?: Array<Klass<LexicalNode>>;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ExtraNodesProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExtraNodesProvider.d.ts","sources":["../../src/context/ExtraNodesProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,UAAU,GACX,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;CACxC,+BAGA"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function FileUploadProvider({ upload, children, }: {
|
|
4
|
-
upload: FileUploadFn | null;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): import('react').JSX.Element;
|
|
1
|
+
import type { FileUploadFn } from '../plugins/FileUploadPlugin';
|
|
2
|
+
export declare const FileUploadContext: import("react").Context<FileUploadFn | null>;
|
|
7
3
|
export declare function useFileUpload(): FileUploadFn | null;
|
|
8
4
|
//# sourceMappingURL=FileUploadContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadContext.d.ts","
|
|
1
|
+
{"version":3,"file":"FileUploadContext.d.ts","sources":["../../src/context/FileUploadContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAEhE,eAAO,MAAM,iBAAiB,8CAA2C,CAAC;AAE1E,wBAAgB,aAAa,IAAI,YAAY,GAAG,IAAI,CAEnD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { FileUploadFn } from '../plugins/FileUploadPlugin';
|
|
3
|
+
export declare function FileUploadProvider({ upload, children, }: {
|
|
4
|
+
upload: FileUploadFn | null;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=FileUploadProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploadProvider.d.ts","sources":["../../src/context/FileUploadProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,YAAY,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
export interface FootnoteDefinitionsContextValue {
|
|
3
2
|
definitions: Record<string, string>;
|
|
4
3
|
displayNumberMap: Record<string, number>;
|
|
5
4
|
}
|
|
6
|
-
export declare
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}): import('react').JSX.Element;
|
|
5
|
+
export declare const FootnoteDefinitionsContext: import("react").Context<FootnoteDefinitionsContextValue>;
|
|
9
6
|
export declare function useFootnoteDefinitions(): FootnoteDefinitionsContextValue;
|
|
10
7
|
export declare function useFootnoteContent(identifier: string): string | undefined;
|
|
11
8
|
export declare function useFootnoteDisplayNumber(identifier: string): number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FootnoteDefinitionsContext.d.ts","
|
|
1
|
+
{"version":3,"file":"FootnoteDefinitionsContext.d.ts","sources":["../../src/context/FootnoteDefinitionsContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,+BAA+B;IAC9C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,0BAA0B,0DAGrC,CAAC;AAEH,wBAAgB,sBAAsB,IAAI,+BAA+B,CAExE;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGzE;AAED,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAG/E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { FootnoteDefinitionsContextValue } from './FootnoteDefinitionsContext';
|
|
3
|
+
export declare function FootnoteDefinitionsProvider({ definitions, displayNumberMap, children, }: FootnoteDefinitionsContextValue & {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=FootnoteDefinitionsProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FootnoteDefinitionsProvider.d.ts","sources":["../../src/context/FootnoteDefinitionsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAGpF,wBAAgB,2BAA2B,CAAC,EAC1C,WAAW,EACX,gBAAgB,EAChB,QAAQ,GACT,EAAE,+BAA+B,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAG3D"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
2
|
export type ImagePreprocessSource = 'drop' | 'paste' | 'dialog' | 'replace' | 'gallery';
|
|
3
3
|
export type ImagePreprocessFn = (files: File[], meta: {
|
|
4
4
|
source: ImagePreprocessSource;
|
|
@@ -7,8 +7,6 @@ export interface ImagePreprocessContextValue {
|
|
|
7
7
|
ref: RefObject<ImagePreprocessFn | null>;
|
|
8
8
|
register: (fn: ImagePreprocessFn | null) => () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
}): import('react').JSX.Element;
|
|
10
|
+
export declare const ImagePreprocessContext: import("react").Context<ImagePreprocessContextValue | null>;
|
|
13
11
|
export declare function useImagePreprocess(): ImagePreprocessContextValue | null;
|
|
14
12
|
//# sourceMappingURL=ImagePreprocessContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagePreprocessContext.d.ts","
|
|
1
|
+
{"version":3,"file":"ImagePreprocessContext.d.ts","sources":["../../src/context/ImagePreprocessContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AACxF,MAAM,MAAM,iBAAiB,GAAG,CAC9B,KAAK,EAAE,IAAI,EAAE,EACb,IAAI,EAAE;IAAE,MAAM,EAAE,qBAAqB,CAAA;CAAE,KACpC,OAAO,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;AAE5B,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,EAAE,EAAE,iBAAiB,GAAG,IAAI,KAAK,MAAM,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,sBAAsB,6DAA0D,CAAC;AAE9F,wBAAgB,kBAAkB,IAAI,2BAA2B,GAAG,IAAI,CAEvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImagePreprocessProvider.d.ts","sources":["../../src/context/ImagePreprocessProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAgB5E"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare function ImageUploadProvider({ upload, children, }: {
|
|
4
|
-
upload: ImageUploadFn;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}): import('react').JSX.Element;
|
|
1
|
+
import type { ImageUploadFn } from '../plugins/image-upload-fn';
|
|
2
|
+
export declare const ImageUploadContext: import("react").Context<ImageUploadFn | null>;
|
|
7
3
|
export declare function useImageUpload(): ImageUploadFn | null;
|
|
8
4
|
//# sourceMappingURL=ImageUploadContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageUploadContext.d.ts","
|
|
1
|
+
{"version":3,"file":"ImageUploadContext.d.ts","sources":["../../src/context/ImageUploadContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,eAAO,MAAM,kBAAkB,+CAA4C,CAAC;AAE5E,wBAAgB,cAAc,IAAI,aAAa,GAAG,IAAI,CAErD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ImageUploadFn } from '../plugins/image-upload-fn';
|
|
3
|
+
export declare function ImageUploadProvider({ upload, children, }: {
|
|
4
|
+
upload: ImageUploadFn;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ImageUploadProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageUploadProvider.d.ts","sources":["../../src/context/ImageUploadProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGhE,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACrB,+BAEA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SerializedEditorState } from 'lexical';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { RichEditorVariant } from '../types';
|
|
1
|
+
import type { SerializedEditorState } from 'lexical';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { RichEditorVariant } from '../types';
|
|
4
4
|
export type RenderEditorStateFn = (state: SerializedEditorState, variant?: RichEditorVariant) => ReactNode;
|
|
5
|
-
export declare const NestedContentRendererProvider: import(
|
|
5
|
+
export declare const NestedContentRendererProvider: import("react").Context<RenderEditorStateFn | null>;
|
|
6
6
|
export declare function useOptionalNestedContentRenderer(): RenderEditorStateFn | null;
|
|
7
7
|
export declare function useNestedContentRenderer(): RenderEditorStateFn;
|
|
8
8
|
//# sourceMappingURL=NestedContentRendererContext.d.ts.map
|