@frogbotai/richtext-lexical 0.25.0
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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/exports/client/index.d.ts +3 -0
- package/dist/exports/client/index.d.ts.map +1 -0
- package/dist/exports/client/index.js +3 -0
- package/dist/exports/client/index.js.map +1 -0
- package/dist/exports/html/index.d.ts +2 -0
- package/dist/exports/html/index.d.ts.map +1 -0
- package/dist/exports/html/index.js +2 -0
- package/dist/exports/html/index.js.map +1 -0
- package/dist/exports/html-async/index.d.ts +2 -0
- package/dist/exports/html-async/index.d.ts.map +1 -0
- package/dist/exports/html-async/index.js +2 -0
- package/dist/exports/html-async/index.js.map +1 -0
- package/dist/exports/plaintext/index.d.ts +2 -0
- package/dist/exports/plaintext/index.d.ts.map +1 -0
- package/dist/exports/plaintext/index.js +2 -0
- package/dist/exports/plaintext/index.js.map +1 -0
- package/dist/exports/react/index.d.ts +3 -0
- package/dist/exports/react/index.d.ts.map +1 -0
- package/dist/exports/react/index.js +2 -0
- package/dist/exports/react/index.js.map +1 -0
- package/dist/exports/server/ast/mdx.d.ts +2 -0
- package/dist/exports/server/ast/mdx.d.ts.map +1 -0
- package/dist/exports/server/ast/mdx.js +2 -0
- package/dist/exports/server/ast/mdx.js.map +1 -0
- package/dist/exports/server/rsc.d.ts +2 -0
- package/dist/exports/server/rsc.d.ts.map +1 -0
- package/dist/exports/server/rsc.js +2 -0
- package/dist/exports/server/rsc.js.map +1 -0
- package/dist/exports/shared.d.ts +2 -0
- package/dist/exports/shared.d.ts.map +1 -0
- package/dist/exports/shared.js +2 -0
- package/dist/exports/shared.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/index.d.ts +13 -0
- package/dist/features/blocks/premade/CodeBlock/index.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/index.js +29 -0
- package/dist/features/blocks/premade/CodeBlock/index.js.map +1 -0
- package/dist/features/blocks/server/index.d.ts +29 -0
- package/dist/features/blocks/server/index.d.ts.map +1 -0
- package/dist/features/blocks/server/index.js +17 -0
- package/dist/features/blocks/server/index.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.d.ts +6 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.js +42 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.js.map +1 -0
- package/dist/features/converters/utilities/frogbotPopulateFn.d.ts +14 -0
- package/dist/features/converters/utilities/frogbotPopulateFn.d.ts.map +1 -0
- package/dist/features/converters/utilities/frogbotPopulateFn.js +16 -0
- package/dist/features/converters/utilities/frogbotPopulateFn.js.map +1 -0
- package/dist/features/typeUtilities.d.ts +4 -0
- package/dist/features/typeUtilities.d.ts.map +1 -0
- package/dist/features/typeUtilities.js +4 -0
- package/dist/features/typeUtilities.js.map +1 -0
- package/dist/features/typesServer.d.ts +50 -0
- package/dist/features/typesServer.d.ts.map +1 -0
- package/dist/features/typesServer.js +2 -0
- package/dist/features/typesServer.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/lexical-proxy/headless.d.ts +2 -0
- package/dist/lexical-proxy/headless.d.ts.map +1 -0
- package/dist/lexical-proxy/headless.js +2 -0
- package/dist/lexical-proxy/headless.js.map +1 -0
- package/dist/lexical-proxy/html.d.ts +2 -0
- package/dist/lexical-proxy/html.d.ts.map +1 -0
- package/dist/lexical-proxy/html.js +2 -0
- package/dist/lexical-proxy/html.js.map +1 -0
- package/dist/lexical-proxy/lexical.d.ts +2 -0
- package/dist/lexical-proxy/lexical.d.ts.map +1 -0
- package/dist/lexical-proxy/lexical.js +2 -0
- package/dist/lexical-proxy/lexical.js.map +1 -0
- package/dist/lexical-proxy/link.d.ts +2 -0
- package/dist/lexical-proxy/link.d.ts.map +1 -0
- package/dist/lexical-proxy/link.js +2 -0
- package/dist/lexical-proxy/link.js.map +1 -0
- package/dist/lexical-proxy/list.d.ts +2 -0
- package/dist/lexical-proxy/list.d.ts.map +1 -0
- package/dist/lexical-proxy/list.js +2 -0
- package/dist/lexical-proxy/list.js.map +1 -0
- package/dist/lexical-proxy/mark.d.ts +2 -0
- package/dist/lexical-proxy/mark.d.ts.map +1 -0
- package/dist/lexical-proxy/mark.js +2 -0
- package/dist/lexical-proxy/mark.js.map +1 -0
- package/dist/lexical-proxy/markdown.d.ts +2 -0
- package/dist/lexical-proxy/markdown.d.ts.map +1 -0
- package/dist/lexical-proxy/markdown.js +2 -0
- package/dist/lexical-proxy/markdown.js.map +1 -0
- package/dist/lexical-proxy/react/ExtensionComponent.d.ts +2 -0
- package/dist/lexical-proxy/react/ExtensionComponent.d.ts.map +1 -0
- package/dist/lexical-proxy/react/ExtensionComponent.js +2 -0
- package/dist/lexical-proxy/react/ExtensionComponent.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalAutoEmbedPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalAutoFocusPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalAutoLinkPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.js +2 -0
- package/dist/lexical-proxy/react/LexicalBlockWithAlignableContents.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalCharacterLimitPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalCheckListPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalCheckListPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalCheckListPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalCheckListPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalClearEditorPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalClearEditorPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalClearEditorPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalClearEditorPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalClickableLinkPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalCollaborationContext.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalCollaborationContext.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalCollaborationContext.js +2 -0
- package/dist/lexical-proxy/react/LexicalCollaborationContext.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalCollaborationPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalCollaborationPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalCollaborationPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalCollaborationPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalComposer.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalComposer.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalComposer.js +2 -0
- package/dist/lexical-proxy/react/LexicalComposer.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalComposerContext.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalComposerContext.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalComposerContext.js +2 -0
- package/dist/lexical-proxy/react/LexicalComposerContext.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalContentEditable.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalContentEditable.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalContentEditable.js +2 -0
- package/dist/lexical-proxy/react/LexicalContentEditable.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.js +2 -0
- package/dist/lexical-proxy/react/LexicalDecoratorBlockNode.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalDraggableBlockPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalEditorRefPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalEditorRefPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalEditorRefPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalEditorRefPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalErrorBoundary.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalErrorBoundary.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalErrorBoundary.js +2 -0
- package/dist/lexical-proxy/react/LexicalErrorBoundary.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalExtensionComposer.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalExtensionComposer.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalExtensionComposer.js +2 -0
- package/dist/lexical-proxy/react/LexicalExtensionComposer.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.js +2 -0
- package/dist/lexical-proxy/react/LexicalExtensionEditorComposer.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalHashtagPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalHashtagPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalHashtagPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalHashtagPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalHistoryPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalHistoryPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalHistoryPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalHistoryPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.js +2 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRuleNode.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalHorizontalRulePlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalLinkPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalLinkPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalLinkPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalLinkPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalListPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalListPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalListPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalListPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalMarkdownShortcutPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalNestedComposer.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalNestedComposer.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalNestedComposer.js +2 -0
- package/dist/lexical-proxy/react/LexicalNestedComposer.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalNodeContextMenuPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalNodeEventPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalNodeEventPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalNodeEventPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalNodeEventPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalNodeMenuPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalOnChangePlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalOnChangePlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalOnChangePlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalOnChangePlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalPlainTextPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalPlainTextPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalPlainTextPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalPlainTextPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalRichTextPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalRichTextPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalRichTextPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalRichTextPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.js +2 -0
- package/dist/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalTabIndentationPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalTableOfContentsPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalTablePlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalTablePlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalTablePlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalTablePlugin.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalTreeView.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalTreeView.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalTreeView.js +2 -0
- package/dist/lexical-proxy/react/LexicalTreeView.js.map +1 -0
- package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.d.ts +2 -0
- package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.js +2 -0
- package/dist/lexical-proxy/react/LexicalTypeaheadMenuPlugin.js.map +1 -0
- package/dist/lexical-proxy/react/ReactExtension.d.ts +2 -0
- package/dist/lexical-proxy/react/ReactExtension.d.ts.map +1 -0
- package/dist/lexical-proxy/react/ReactExtension.js +2 -0
- package/dist/lexical-proxy/react/ReactExtension.js.map +1 -0
- package/dist/lexical-proxy/react/ReactPluginHostExtension.d.ts +2 -0
- package/dist/lexical-proxy/react/ReactPluginHostExtension.d.ts.map +1 -0
- package/dist/lexical-proxy/react/ReactPluginHostExtension.js +2 -0
- package/dist/lexical-proxy/react/ReactPluginHostExtension.js.map +1 -0
- package/dist/lexical-proxy/react/ReactProviderExtension.d.ts +2 -0
- package/dist/lexical-proxy/react/ReactProviderExtension.d.ts.map +1 -0
- package/dist/lexical-proxy/react/ReactProviderExtension.js +2 -0
- package/dist/lexical-proxy/react/ReactProviderExtension.js.map +1 -0
- package/dist/lexical-proxy/react/TreeViewExtension.d.ts +2 -0
- package/dist/lexical-proxy/react/TreeViewExtension.d.ts.map +1 -0
- package/dist/lexical-proxy/react/TreeViewExtension.js +2 -0
- package/dist/lexical-proxy/react/TreeViewExtension.js.map +1 -0
- package/dist/lexical-proxy/react/useExtensionComponent.d.ts +2 -0
- package/dist/lexical-proxy/react/useExtensionComponent.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useExtensionComponent.js +2 -0
- package/dist/lexical-proxy/react/useExtensionComponent.js.map +1 -0
- package/dist/lexical-proxy/react/useExtensionSignalValue.d.ts +2 -0
- package/dist/lexical-proxy/react/useExtensionSignalValue.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useExtensionSignalValue.js +2 -0
- package/dist/lexical-proxy/react/useExtensionSignalValue.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.js +2 -0
- package/dist/lexical-proxy/react/useLexicalAriaLiveRegion.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalEditable.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalEditable.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalEditable.js +2 -0
- package/dist/lexical-proxy/react/useLexicalEditable.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalFocusManagerRef.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalFocusManagerRef.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalFocusManagerRef.js +2 -0
- package/dist/lexical-proxy/react/useLexicalFocusManagerRef.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalFocusTrapRef.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalFocusTrapRef.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalFocusTrapRef.js +2 -0
- package/dist/lexical-proxy/react/useLexicalFocusTrapRef.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.js +2 -0
- package/dist/lexical-proxy/react/useLexicalIsTextContentEmpty.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalNodeSelection.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalNodeSelection.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalNodeSelection.js +2 -0
- package/dist/lexical-proxy/react/useLexicalNodeSelection.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.js +2 -0
- package/dist/lexical-proxy/react/useLexicalRovingTabIndexRef.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalSlotRef.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalSlotRef.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalSlotRef.js +2 -0
- package/dist/lexical-proxy/react/useLexicalSlotRef.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalSubscription.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalSubscription.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalSubscription.js +2 -0
- package/dist/lexical-proxy/react/useLexicalSubscription.js.map +1 -0
- package/dist/lexical-proxy/react/useLexicalTextEntity.d.ts +2 -0
- package/dist/lexical-proxy/react/useLexicalTextEntity.d.ts.map +1 -0
- package/dist/lexical-proxy/react/useLexicalTextEntity.js +2 -0
- package/dist/lexical-proxy/react/useLexicalTextEntity.js.map +1 -0
- package/dist/lexical-proxy/rich-text.d.ts +2 -0
- package/dist/lexical-proxy/rich-text.d.ts.map +1 -0
- package/dist/lexical-proxy/rich-text.js +2 -0
- package/dist/lexical-proxy/rich-text.js.map +1 -0
- package/dist/lexical-proxy/selection.d.ts +2 -0
- package/dist/lexical-proxy/selection.d.ts.map +1 -0
- package/dist/lexical-proxy/selection.js +2 -0
- package/dist/lexical-proxy/selection.js.map +1 -0
- package/dist/lexical-proxy/utils.d.ts +2 -0
- package/dist/lexical-proxy/utils.d.ts.map +1 -0
- package/dist/lexical-proxy/utils.js +2 -0
- package/dist/lexical-proxy/utils.js.map +1 -0
- package/dist/utilities/createServerFeature.d.ts +16 -0
- package/dist/utilities/createServerFeature.d.ts.map +1 -0
- package/dist/utilities/createServerFeature.js +3 -0
- package/dist/utilities/createServerFeature.js.map +1 -0
- package/dist/utilities/editorConfigFactory.d.ts +40 -0
- package/dist/utilities/editorConfigFactory.d.ts.map +1 -0
- package/dist/utilities/editorConfigFactory.js +56 -0
- package/dist/utilities/editorConfigFactory.js.map +1 -0
- package/dist/utilities/resolveConfig.d.ts +5 -0
- package/dist/utilities/resolveConfig.d.ts.map +1 -0
- package/dist/utilities/resolveConfig.js +8 -0
- package/dist/utilities/resolveConfig.js.map +1 -0
- package/package.json +121 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalRichTextPlugin.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalRichTextPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,kEAAkE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalRichTextPlugin.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalRichTextPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,kEAAkE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalSelectionAlwaysOnDisplay.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.ts"],"names":[],"mappings":"AAAA,cAAc,4EAA4E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalSelectionAlwaysOnDisplay.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalSelectionAlwaysOnDisplay.ts"],"names":[],"mappings":"AAAA,cAAc,4EAA4E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTabIndentationPlugin.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTabIndentationPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,wEAAwE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTabIndentationPlugin.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTabIndentationPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,wEAAwE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTableOfContentsPlugin.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTableOfContentsPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTableOfContentsPlugin.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTableOfContentsPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTablePlugin.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTablePlugin.ts"],"names":[],"mappings":"AAAA,cAAc,+DAA+D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTablePlugin.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTablePlugin.ts"],"names":[],"mappings":"AAAA,cAAc,+DAA+D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTreeView.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTreeView.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTreeView.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTreeView.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTypeaheadMenuPlugin.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTypeaheadMenuPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,uEAAuE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LexicalTypeaheadMenuPlugin.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/LexicalTypeaheadMenuPlugin.ts"],"names":[],"mappings":"AAAA,cAAc,uEAAuE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/ReactExtension.ts"],"names":[],"mappings":"AAAA,cAAc,2DAA2D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactExtension.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/ReactExtension.ts"],"names":[],"mappings":"AAAA,cAAc,2DAA2D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactPluginHostExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/ReactPluginHostExtension.ts"],"names":[],"mappings":"AAAA,cAAc,qEAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactPluginHostExtension.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/ReactPluginHostExtension.ts"],"names":[],"mappings":"AAAA,cAAc,qEAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactProviderExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/ReactProviderExtension.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactProviderExtension.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/ReactProviderExtension.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeViewExtension.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/TreeViewExtension.ts"],"names":[],"mappings":"AAAA,cAAc,8DAA8D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeViewExtension.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/TreeViewExtension.ts"],"names":[],"mappings":"AAAA,cAAc,8DAA8D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExtensionComponent.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useExtensionComponent.ts"],"names":[],"mappings":"AAAA,cAAc,kEAAkE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExtensionComponent.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useExtensionComponent.ts"],"names":[],"mappings":"AAAA,cAAc,kEAAkE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExtensionSignalValue.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useExtensionSignalValue.ts"],"names":[],"mappings":"AAAA,cAAc,oEAAoE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useExtensionSignalValue.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useExtensionSignalValue.ts"],"names":[],"mappings":"AAAA,cAAc,oEAAoE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalAriaLiveRegion.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalAriaLiveRegion.ts"],"names":[],"mappings":"AAAA,cAAc,qEAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalAriaLiveRegion.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalAriaLiveRegion.ts"],"names":[],"mappings":"AAAA,cAAc,qEAAqE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalEditable.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalEditable.ts"],"names":[],"mappings":"AAAA,cAAc,+DAA+D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalEditable.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalEditable.ts"],"names":[],"mappings":"AAAA,cAAc,+DAA+D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalFocusManagerRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalFocusManagerRef.ts"],"names":[],"mappings":"AAAA,cAAc,sEAAsE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalFocusManagerRef.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalFocusManagerRef.ts"],"names":[],"mappings":"AAAA,cAAc,sEAAsE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalFocusTrapRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalFocusTrapRef.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalFocusTrapRef.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalFocusTrapRef.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalIsTextContentEmpty.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalIsTextContentEmpty.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalIsTextContentEmpty.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalIsTextContentEmpty.ts"],"names":[],"mappings":"AAAA,cAAc,yEAAyE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalNodeSelection.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalNodeSelection.ts"],"names":[],"mappings":"AAAA,cAAc,oEAAoE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalNodeSelection.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalNodeSelection.ts"],"names":[],"mappings":"AAAA,cAAc,oEAAoE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalRovingTabIndexRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalRovingTabIndexRef.ts"],"names":[],"mappings":"AAAA,cAAc,wEAAwE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalRovingTabIndexRef.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalRovingTabIndexRef.ts"],"names":[],"mappings":"AAAA,cAAc,wEAAwE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalSlotRef.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalSlotRef.ts"],"names":[],"mappings":"AAAA,cAAc,8DAA8D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalSlotRef.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalSlotRef.ts"],"names":[],"mappings":"AAAA,cAAc,8DAA8D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalSubscription.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalSubscription.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalSubscription.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalSubscription.ts"],"names":[],"mappings":"AAAA,cAAc,mEAAmE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalTextEntity.d.ts","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalTextEntity.ts"],"names":[],"mappings":"AAAA,cAAc,iEAAiE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLexicalTextEntity.js","sourceRoot":"","sources":["../../../src/lexical-proxy/react/useLexicalTextEntity.ts"],"names":[],"mappings":"AAAA,cAAc,iEAAiE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/rich-text.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text.js","sourceRoot":"","sources":["../../src/lexical-proxy/rich-text.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/selection.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../src/lexical-proxy/selection.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lexical-proxy/utils.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lexical-proxy/utils.ts"],"names":[],"mappings":"AAAA,cAAc,4CAA4C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FeatureProviderProviderServer, FeatureProviderServer, ResolvedServerFeatureMap, ServerEditorConfig, ServerFeatureProviderMap } from '@payloadcms/richtext-lexical';
|
|
2
|
+
import type { SanitizedConfig } from 'payload';
|
|
3
|
+
import type { ServerFeature } from '../features/typesServer.js';
|
|
4
|
+
export type CreateServerFeatureArgs<UnSanitizedProps, SanitizedProps, ClientProps> = Pick<FeatureProviderServer<UnSanitizedProps, SanitizedProps, ClientProps>, 'dependencies' | 'dependenciesPriority' | 'dependenciesSoft' | 'key'> & {
|
|
5
|
+
feature: ((props: {
|
|
6
|
+
config: SanitizedConfig;
|
|
7
|
+
featureProviderMap: ServerFeatureProviderMap;
|
|
8
|
+
isRoot?: boolean;
|
|
9
|
+
parentIsLocalized: boolean;
|
|
10
|
+
props: UnSanitizedProps;
|
|
11
|
+
resolvedFeatures: ResolvedServerFeatureMap;
|
|
12
|
+
unSanitizedEditorConfig: ServerEditorConfig;
|
|
13
|
+
}) => Promise<ServerFeature<SanitizedProps, ClientProps>> | ServerFeature<SanitizedProps, ClientProps>) | Omit<ServerFeature<SanitizedProps, ClientProps>, 'sanitizedServerFeatureProps'>;
|
|
14
|
+
};
|
|
15
|
+
export declare const createServerFeature: <UnSanitizedProps = undefined, SanitizedProps = UnSanitizedProps, ClientProps = undefined>(args: CreateServerFeatureArgs<UnSanitizedProps, SanitizedProps, ClientProps>) => FeatureProviderProviderServer<UnSanitizedProps, SanitizedProps, ClientProps>;
|
|
16
|
+
//# sourceMappingURL=createServerFeature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createServerFeature.d.ts","sourceRoot":"","sources":["../../src/utilities/createServerFeature.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE,MAAM,MAAM,uBAAuB,CAAC,gBAAgB,EAAE,cAAc,EAAE,WAAW,IAAI,IAAI,CACvF,qBAAqB,CAAC,gBAAgB,EAAE,cAAc,EAAE,WAAW,CAAC,EACpE,cAAc,GAAG,sBAAsB,GAAG,kBAAkB,GAAG,KAAK,CACrE,GAAG;IACF,OAAO,EACH,CAAC,CAAC,KAAK,EAAE;QACP,MAAM,EAAE,eAAe,CAAC;QACxB,kBAAkB,EAAE,wBAAwB,CAAC;QAC7C,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,KAAK,EAAE,gBAAgB,CAAC;QACxB,gBAAgB,EAAE,wBAAwB,CAAC;QAC3C,uBAAuB,EAAE,kBAAkB,CAAC;KAC7C,KACG,OAAO,CAAC,aAAa,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,GACnD,aAAa,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC,GAC/C,IAAI,CAAC,aAAa,CAAC,cAAc,EAAE,WAAW,CAAC,EAAE,6BAA6B,CAAC,CAAC;CACrF,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAA6C,CAC3E,gBAA4B,GAAT,SAAS,EAC5B,cAAiC,GAAhB,gBAAgB,EACjC,WAAuB,GAAT,SAAS,EAEvB,IAAI,EAAE,uBAAuB,CAAC,gBAAgB,EAAE,cAAc,EAAE,WAAW,CAAC,KACzE,6BAA6B,CAAC,gBAAgB,EAAE,cAAc,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createServerFeature.js","sourceRoot":"","sources":["../../src/utilities/createServerFeature.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,mBAAmB,IAAI,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAwBlG,MAAM,CAAC,MAAM,mBAAmB,GAAG,2BAM8C,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { editorConfigFactory as upstreamEditorConfigFactory, type lexicalEditor as upstreamLexicalEditor, type SanitizedServerEditorConfig } from '@payloadcms/richtext-lexical';
|
|
2
|
+
import type { EditorConfig } from '@payloadcms/richtext-lexical/lexical';
|
|
3
|
+
import type { Field } from 'frogbot';
|
|
4
|
+
import { type ConfigInput } from './resolveConfig.js';
|
|
5
|
+
type FeaturesInput = NonNullable<Parameters<typeof upstreamEditorConfigFactory.fromFeatures>[0]['features']>;
|
|
6
|
+
type LexicalRichTextAdapterProvider = ReturnType<typeof upstreamLexicalEditor>;
|
|
7
|
+
type RichTextEditorField = Pick<Extract<Field, {
|
|
8
|
+
type: 'richText';
|
|
9
|
+
}>, 'editor' | 'type'>;
|
|
10
|
+
export declare const editorConfigFactory: {
|
|
11
|
+
default: (args: {
|
|
12
|
+
config: ConfigInput;
|
|
13
|
+
parentIsLocalized?: boolean;
|
|
14
|
+
}) => Promise<SanitizedServerEditorConfig>;
|
|
15
|
+
fromEditor: (args: {
|
|
16
|
+
config: ConfigInput;
|
|
17
|
+
editor: LexicalRichTextAdapterProvider;
|
|
18
|
+
isRoot?: boolean;
|
|
19
|
+
lexical?: EditorConfig;
|
|
20
|
+
parentIsLocalized?: boolean;
|
|
21
|
+
}) => Promise<SanitizedServerEditorConfig>;
|
|
22
|
+
fromFeatures: (args: {
|
|
23
|
+
config: ConfigInput;
|
|
24
|
+
features?: FeaturesInput;
|
|
25
|
+
isRoot?: boolean;
|
|
26
|
+
lexical?: EditorConfig;
|
|
27
|
+
parentIsLocalized?: boolean;
|
|
28
|
+
}) => Promise<SanitizedServerEditorConfig>;
|
|
29
|
+
fromField: ({ field }: {
|
|
30
|
+
field: RichTextEditorField;
|
|
31
|
+
}) => SanitizedServerEditorConfig;
|
|
32
|
+
fromUnsanitizedField: (args: {
|
|
33
|
+
config: ConfigInput;
|
|
34
|
+
field: RichTextEditorField;
|
|
35
|
+
isRoot?: boolean;
|
|
36
|
+
parentIsLocalized?: boolean;
|
|
37
|
+
}) => Promise<SanitizedServerEditorConfig>;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=editorConfigFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorConfigFactory.d.ts","sourceRoot":"","sources":["../../src/utilities/editorConfigFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,IAAI,2BAA2B,EAClD,KAAK,aAAa,IAAI,qBAAqB,EAE3C,KAAK,2BAA2B,EACjC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,KAAK,WAAW,EAAiB,MAAM,oBAAoB,CAAC;AAErE,KAAK,aAAa,GAAG,WAAW,CAC9B,UAAU,CAAC,OAAO,2BAA2B,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAC3E,CAAC;AACF,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC/E,KAAK,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC,CAAC;AAkCzF,eAAO,MAAM,mBAAmB;oBACR;QAAE,MAAM,EAAE,WAAW,CAAC;QAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAE;uBAKjD;QACvB,MAAM,EAAE,WAAW,CAAC;QACpB,MAAM,EAAE,8BAA8B,CAAC;QACvC,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B;yBAK0B;QACzB,MAAM,EAAE,WAAW,CAAC;QACpB,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,OAAO,CAAC,EAAE,YAAY,CAAC;QACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B;2BAKsB;QAAE,KAAK,EAAE,mBAAmB,CAAA;KAAE,KAAG,2BAA2B;iCAEhD;QACjC,MAAM,EAAE,WAAW,CAAC;QACpB,KAAK,EAAE,mBAAmB,CAAC;QAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC7B;CAsBF,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { editorConfigFactory as upstreamEditorConfigFactory, } from '@payloadcms/richtext-lexical';
|
|
2
|
+
import { resolveConfig } from './resolveConfig.js';
|
|
3
|
+
function isSanitizedLexicalEditor(editor) {
|
|
4
|
+
if (!editor || typeof editor !== 'object' || !('editorConfig' in editor)) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
const editorConfig = editor.editorConfig;
|
|
8
|
+
return (!!editorConfig &&
|
|
9
|
+
typeof editorConfig === 'object' &&
|
|
10
|
+
'features' in editorConfig &&
|
|
11
|
+
Array.isArray(editorConfig.features) &&
|
|
12
|
+
'resolvedFeatureMap' in editorConfig &&
|
|
13
|
+
editorConfig.resolvedFeatureMap instanceof Map);
|
|
14
|
+
}
|
|
15
|
+
function sanitizedEditor(field) {
|
|
16
|
+
const editor = field.editor;
|
|
17
|
+
if (!isSanitizedLexicalEditor(editor)) {
|
|
18
|
+
throw new Error('FrogBot rich text requires a sanitized Lexical editor; use editorConfigFactory.fromUnsanitizedField for editor providers.');
|
|
19
|
+
}
|
|
20
|
+
return editor.editorConfig;
|
|
21
|
+
}
|
|
22
|
+
export const editorConfigFactory = {
|
|
23
|
+
default: async (args) => upstreamEditorConfigFactory.default({
|
|
24
|
+
config: await resolveConfig(args.config),
|
|
25
|
+
parentIsLocalized: args.parentIsLocalized,
|
|
26
|
+
}),
|
|
27
|
+
fromEditor: async (args) => upstreamEditorConfigFactory.fromEditor({
|
|
28
|
+
...args,
|
|
29
|
+
config: await resolveConfig(args.config),
|
|
30
|
+
}),
|
|
31
|
+
fromFeatures: async (args) => upstreamEditorConfigFactory.fromFeatures({
|
|
32
|
+
...args,
|
|
33
|
+
config: await resolveConfig(args.config),
|
|
34
|
+
}),
|
|
35
|
+
fromField: ({ field }) => sanitizedEditor(field),
|
|
36
|
+
fromUnsanitizedField: async (args) => {
|
|
37
|
+
if (typeof args.field.editor !== 'function') {
|
|
38
|
+
throw new Error('FrogBot rich text requires a Lexical editor provider.');
|
|
39
|
+
}
|
|
40
|
+
const editor = args.field.editor;
|
|
41
|
+
const name = 'name' in args.field && typeof args.field.name === 'string'
|
|
42
|
+
? args.field.name
|
|
43
|
+
: '_frogbotRichText';
|
|
44
|
+
return upstreamEditorConfigFactory.fromUnsanitizedField({
|
|
45
|
+
config: await resolveConfig(args.config),
|
|
46
|
+
field: {
|
|
47
|
+
...args.field,
|
|
48
|
+
editor,
|
|
49
|
+
name,
|
|
50
|
+
},
|
|
51
|
+
isRoot: args.isRoot,
|
|
52
|
+
parentIsLocalized: args.parentIsLocalized,
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=editorConfigFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorConfigFactory.js","sourceRoot":"","sources":["../../src/utilities/editorConfigFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,IAAI,2BAA2B,GAInD,MAAM,8BAA8B,CAAC;AAItC,OAAO,EAAoB,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAWrE,SAAS,wBAAwB,CAAC,MAAe;IAC/C,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,cAAc,IAAI,MAAM,CAAC,EAAE,CAAC;QACzE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;IAEzC,OAAO,CACL,CAAC,CAAC,YAAY;QACd,OAAO,YAAY,KAAK,QAAQ;QAChC,UAAU,IAAI,YAAY;QAC1B,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAC;QACpC,oBAAoB,IAAI,YAAY;QACpC,YAAY,CAAC,kBAAkB,YAAY,GAAG,CAC/C,CAAC;AACJ,CAAC;AAED,SAAS,eAAe,CAAC,KAA0B;IACjD,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;IAE5B,IAAI,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,KAAK,CACb,2HAA2H,CAC5H,CAAC;IACJ,CAAC;IAED,OAAO,MAAM,CAAC,YAAY,CAAC;AAC7B,CAAC;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,KAAK,EAAE,IAA0D,EAAE,EAAE,CAC5E,2BAA2B,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,MAAM,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;QACxC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;KAC1C,CAAC;IACJ,UAAU,EAAE,KAAK,EAAE,IAMlB,EAAE,EAAE,CACH,2BAA2B,CAAC,UAAU,CAAC;QACrC,GAAG,IAAI;QACP,MAAM,EAAE,MAAM,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;KACzC,CAAC;IACJ,YAAY,EAAE,KAAK,EAAE,IAMpB,EAAE,EAAE,CACH,2BAA2B,CAAC,YAAY,CAAC;QACvC,GAAG,IAAI;QACP,MAAM,EAAE,MAAM,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;KACzC,CAAC;IACJ,SAAS,EAAE,CAAC,EAAE,KAAK,EAAkC,EAA+B,EAAE,CACpF,eAAe,CAAC,KAAK,CAAC;IACxB,oBAAoB,EAAE,KAAK,EAAE,IAK5B,EAAE,EAAE;QACH,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;QAC3E,CAAC;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAyC,CAAC;QACpE,MAAM,IAAI,GACR,MAAM,IAAI,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ;YACzD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI;YACjB,CAAC,CAAC,kBAAkB,CAAC;QAEzB,OAAO,2BAA2B,CAAC,oBAAoB,CAAC;YACtD,MAAM,EAAE,MAAM,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC;YACxC,KAAK,EAAE;gBACL,GAAG,IAAI,CAAC,KAAK;gBACb,MAAM;gBACN,IAAI;aACL;YACD,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SAC1C,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { FrogbotSanitizedConfig } from 'frogbot';
|
|
2
|
+
import type { SanitizedConfig } from 'payload';
|
|
3
|
+
export type ConfigInput = FrogbotSanitizedConfig | Promise<FrogbotSanitizedConfig>;
|
|
4
|
+
export declare function resolveConfig(config: ConfigInput): Promise<SanitizedConfig>;
|
|
5
|
+
//# sourceMappingURL=resolveConfig.d.ts.map
|