phx-react 1.3.1569 → 1.3.1571
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/cjs/components/Combobox/Combobox.js +9 -3
- package/dist/cjs/components/Combobox/Combobox.js.map +1 -1
- package/dist/cjs/components/TextEditorV2/commenting/index.d.ts +41 -0
- package/dist/cjs/components/TextEditorV2/commenting/index.js +340 -0
- package/dist/cjs/components/TextEditorV2/commenting/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/constants.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/constants.js +5 -0
- package/dist/cjs/components/TextEditorV2/constants.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
- package/dist/cjs/components/TextEditorV2/context/SettingsContext.js +59 -0
- package/dist/cjs/components/TextEditorV2/context/SettingsContext.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
- package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js +50 -0
- package/dist/cjs/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
- package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js +17 -0
- package/dist/cjs/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/editor.d.ts +10 -0
- package/dist/cjs/components/TextEditorV2/editor.js +203 -0
- package/dist/cjs/components/TextEditorV2/editor.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/hooks/useModal.d.ts +5 -0
- package/dist/cjs/components/TextEditorV2/hooks/useModal.js +32 -0
- package/dist/cjs/components/TextEditorV2/hooks/useModal.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/hooks/useReport.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/hooks/useReport.js +45 -0
- package/dist/cjs/components/TextEditorV2/hooks/useReport.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/lib/Settings.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/lib/Settings.js +52 -0
- package/dist/cjs/components/TextEditorV2/lib/Settings.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/lib/appSettings.d.ts +19 -0
- package/dist/cjs/components/TextEditorV2/lib/appSettings.js +21 -0
- package/dist/cjs/components/TextEditorV2/lib/appSettings.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/lib/collaboration.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/lib/collaboration.js +26 -0
- package/dist/cjs/components/TextEditorV2/lib/collaboration.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/lib/setupEnv.js +23 -0
- package/dist/cjs/components/TextEditorV2/lib/setupEnv.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
- package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js +58 -0
- package/dist/cjs/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
- package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js +62 -0
- package/dist/cjs/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
- package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js +72 -0
- package/dist/cjs/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
- package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js +126 -0
- package/dist/cjs/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +117 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +59 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +143 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js +103 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js +106 -0
- package/dist/cjs/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
- package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js +63 -0
- package/dist/cjs/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
- package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js +212 -0
- package/dist/cjs/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
- package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js +136 -0
- package/dist/cjs/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
- package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js +194 -0
- package/dist/cjs/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
- package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js +142 -0
- package/dist/cjs/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
- package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js +54 -0
- package/dist/cjs/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
- package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js +63 -0
- package/dist/cjs/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
- package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js +51 -0
- package/dist/cjs/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
- package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js +89 -0
- package/dist/cjs/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
- package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js +113 -0
- package/dist/cjs/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js +68 -0
- package/dist/cjs/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
- package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js +113 -0
- package/dist/cjs/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
- package/dist/cjs/components/TextEditorV2/nodes/PollNode.js +149 -0
- package/dist/cjs/components/TextEditorV2/nodes/PollNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
- package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js +167 -0
- package/dist/cjs/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
- package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js +94 -0
- package/dist/cjs/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
- package/dist/cjs/components/TextEditorV2/nodes/TableNode.js +198 -0
- package/dist/cjs/components/TextEditorV2/nodes/TableNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
- package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js +156 -0
- package/dist/cjs/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
- package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js +103 -0
- package/dist/cjs/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js +183 -0
- package/dist/cjs/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +179 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +16 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2465 -0
- package/dist/cjs/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +55 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +159 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +111 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +21 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +12 -0
- package/dist/cjs/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +88 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +70 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +95 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +148 -0
- package/dist/cjs/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +264 -0
- package/dist/cjs/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
- package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +171 -0
- package/dist/cjs/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js +10 -0
- package/dist/cjs/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +44 -0
- package/dist/cjs/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
- package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +288 -0
- package/dist/cjs/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +97 -0
- package/dist/cjs/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js +64 -0
- package/dist/cjs/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
- package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js +42 -0
- package/dist/cjs/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +28 -0
- package/dist/cjs/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js +25 -0
- package/dist/cjs/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
- package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +200 -0
- package/dist/cjs/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
- package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +229 -0
- package/dist/cjs/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
- package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js +188 -0
- package/dist/cjs/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
- package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js +193 -0
- package/dist/cjs/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js +33 -0
- package/dist/cjs/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +34 -0
- package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
- package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +89 -0
- package/dist/cjs/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js +11 -0
- package/dist/cjs/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
- package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +44 -0
- package/dist/cjs/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +11 -0
- package/dist/cjs/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
- package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js +242 -0
- package/dist/cjs/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +41 -0
- package/dist/cjs/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js +560 -0
- package/dist/cjs/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js +31 -0
- package/dist/cjs/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js +37 -0
- package/dist/cjs/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
- package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js +46 -0
- package/dist/cjs/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js +16 -0
- package/dist/cjs/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js +38 -0
- package/dist/cjs/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +487 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js +253 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +117 -0
- package/dist/cjs/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
- package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js +85 -0
- package/dist/cjs/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +18 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +28 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +65 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +71 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +18 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +46 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +28 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +52 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +28 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +19 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +41 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +162 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js +163 -0
- package/dist/cjs/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js +12 -0
- package/dist/cjs/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js +25 -0
- package/dist/cjs/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js +25 -0
- package/dist/cjs/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js +7 -0
- package/dist/cjs/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
- package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js +32 -0
- package/dist/cjs/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/shared/environment.d.ts +16 -0
- package/dist/cjs/components/TextEditorV2/shared/environment.js +17 -0
- package/dist/cjs/components/TextEditorV2/shared/environment.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/shared/invariant.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/shared/invariant.js +15 -0
- package/dist/cjs/components/TextEditorV2/shared/invariant.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
- package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js +28 -0
- package/dist/cjs/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js +7 -0
- package/dist/cjs/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js +16 -0
- package/dist/cjs/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/style.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/style.js +9 -0
- package/dist/cjs/components/TextEditorV2/style.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js +7 -0
- package/dist/cjs/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js +107 -0
- package/dist/cjs/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
- package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js +7 -0
- package/dist/cjs/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/Button.d.ts +11 -0
- package/dist/cjs/components/TextEditorV2/ui/Button.js +11 -0
- package/dist/cjs/components/TextEditorV2/ui/Button.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
- package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js +216 -0
- package/dist/cjs/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
- package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js +11 -0
- package/dist/cjs/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/Dialog.d.ts +9 -0
- package/dist/cjs/components/TextEditorV2/ui/Dialog.js +15 -0
- package/dist/cjs/components/TextEditorV2/ui/Dialog.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/DropDown.d.ts +17 -0
- package/dist/cjs/components/TextEditorV2/ui/DropDown.js +133 -0
- package/dist/cjs/components/TextEditorV2/ui/DropDown.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
- package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js +20 -0
- package/dist/cjs/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
- package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js +20 -0
- package/dist/cjs/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/FileInput.d.ts +9 -0
- package/dist/cjs/components/TextEditorV2/ui/FileInput.js +12 -0
- package/dist/cjs/components/TextEditorV2/ui/FileInput.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
- package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js +178 -0
- package/dist/cjs/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
- package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js +39 -0
- package/dist/cjs/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js +33 -0
- package/dist/cjs/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/Modal.d.ts +8 -0
- package/dist/cjs/components/TextEditorV2/ui/Modal.js +54 -0
- package/dist/cjs/components/TextEditorV2/ui/Modal.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
- package/dist/cjs/components/TextEditorV2/ui/Placeholder.js +10 -0
- package/dist/cjs/components/TextEditorV2/ui/Placeholder.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/Select.d.ts +7 -0
- package/dist/cjs/components/TextEditorV2/ui/Select.js +12 -0
- package/dist/cjs/components/TextEditorV2/ui/Select.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/Switch.d.ts +7 -0
- package/dist/cjs/components/TextEditorV2/ui/Switch.js +15 -0
- package/dist/cjs/components/TextEditorV2/ui/Switch.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/ui/TextInput.d.ts +12 -0
- package/dist/cjs/components/TextEditorV2/ui/TextInput.js +14 -0
- package/dist/cjs/components/TextEditorV2/ui/TextInput.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
- package/dist/cjs/components/TextEditorV2/utils/emoji-list.js +16607 -0
- package/dist/cjs/components/TextEditorV2/utils/emoji-list.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js +19 -0
- package/dist/cjs/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js +35 -0
- package/dist/cjs/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js +21 -0
- package/dist/cjs/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/guard.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/utils/guard.js +7 -0
- package/dist/cjs/components/TextEditorV2/utils/guard.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
- package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js +2 -0
- package/dist/cjs/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/utils/joinClasses.js +11 -0
- package/dist/cjs/components/TextEditorV2/utils/joinClasses.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/point.d.ts +14 -0
- package/dist/cjs/components/TextEditorV2/utils/point.js +51 -0
- package/dist/cjs/components/TextEditorV2/utils/point.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/rect.d.ts +38 -0
- package/dist/cjs/components/TextEditorV2/utils/rect.js +125 -0
- package/dist/cjs/components/TextEditorV2/utils/rect.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js +33 -0
- package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
- package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +31 -0
- package/dist/cjs/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/swipe.d.ts +4 -0
- package/dist/cjs/components/TextEditorV2/utils/swipe.js +97 -0
- package/dist/cjs/components/TextEditorV2/utils/swipe.js.map +1 -0
- package/dist/cjs/components/TextEditorV2/utils/url.d.ts +2 -0
- package/dist/cjs/components/TextEditorV2/utils/url.js +26 -0
- package/dist/cjs/components/TextEditorV2/utils/url.js.map +1 -0
- package/dist/cjs/components/Textarea/Textarea.js +28 -4
- package/dist/cjs/components/Textarea/Textarea.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +5 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Combobox/Combobox.js +9 -3
- package/dist/esm/components/Combobox/Combobox.js.map +1 -1
- package/dist/esm/components/TextEditorV2/commenting/index.d.ts +41 -0
- package/dist/esm/components/TextEditorV2/commenting/index.js +334 -0
- package/dist/esm/components/TextEditorV2/commenting/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/constants.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/constants.js +2 -0
- package/dist/esm/components/TextEditorV2/constants.js.map +1 -0
- package/dist/esm/components/TextEditorV2/context/SettingsContext.d.ts +12 -0
- package/dist/esm/components/TextEditorV2/context/SettingsContext.js +54 -0
- package/dist/esm/components/TextEditorV2/context/SettingsContext.js.map +1 -0
- package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.d.ts +10 -0
- package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js +44 -0
- package/dist/esm/components/TextEditorV2/context/SharedAutocompleteContext.js.map +1 -0
- package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.d.ts +11 -0
- package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js +11 -0
- package/dist/esm/components/TextEditorV2/context/SharedHistoryContext.js.map +1 -0
- package/dist/esm/components/TextEditorV2/editor.d.ts +10 -0
- package/dist/esm/components/TextEditorV2/editor.js +200 -0
- package/dist/esm/components/TextEditorV2/editor.js.map +1 -0
- package/dist/esm/components/TextEditorV2/hooks/useModal.d.ts +5 -0
- package/dist/esm/components/TextEditorV2/hooks/useModal.js +28 -0
- package/dist/esm/components/TextEditorV2/hooks/useModal.js.map +1 -0
- package/dist/esm/components/TextEditorV2/hooks/useReport.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/hooks/useReport.js +42 -0
- package/dist/esm/components/TextEditorV2/hooks/useReport.js.map +1 -0
- package/dist/esm/components/TextEditorV2/lib/Settings.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/lib/Settings.js +48 -0
- package/dist/esm/components/TextEditorV2/lib/Settings.js.map +1 -0
- package/dist/esm/components/TextEditorV2/lib/appSettings.d.ts +19 -0
- package/dist/esm/components/TextEditorV2/lib/appSettings.js +18 -0
- package/dist/esm/components/TextEditorV2/lib/appSettings.js.map +1 -0
- package/dist/esm/components/TextEditorV2/lib/collaboration.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/lib/collaboration.js +23 -0
- package/dist/esm/components/TextEditorV2/lib/collaboration.js.map +1 -0
- package/dist/esm/components/TextEditorV2/lib/setupEnv.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/lib/setupEnv.js +21 -0
- package/dist/esm/components/TextEditorV2/lib/setupEnv.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.d.ts +25 -0
- package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js +54 -0
- package/dist/esm/components/TextEditorV2/nodes/AutocompleteNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/EmojiNode.d.ts +18 -0
- package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js +57 -0
- package/dist/esm/components/TextEditorV2/nodes/EmojiNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/EquationComponent.d.ts +9 -0
- package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js +68 -0
- package/dist/esm/components/TextEditorV2/nodes/EquationComponent.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/EquationNode.d.ts +26 -0
- package/dist/esm/components/TextEditorV2/nodes/EquationNode.js +121 -0
- package/dist/esm/components/TextEditorV2/nodes/EquationNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js +113 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawComponent.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.d.ts +50 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js +56 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawImage.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.d.ts +44 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js +137 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/ExcalidrawModal.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.d.ts +22 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js +98 -0
- package/dist/esm/components/TextEditorV2/nodes/ExcalidrawNode/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.d.ts +12 -0
- package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js +101 -0
- package/dist/esm/components/TextEditorV2/nodes/ExtendedTextNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/FigmaNode.d.ts +19 -0
- package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js +58 -0
- package/dist/esm/components/TextEditorV2/nodes/FigmaNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/ImageComponent.d.ts +14 -0
- package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js +207 -0
- package/dist/esm/components/TextEditorV2/nodes/ImageComponent.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/ImageNode.d.ts +56 -0
- package/dist/esm/components/TextEditorV2/nodes/ImageNode.js +131 -0
- package/dist/esm/components/TextEditorV2/nodes/ImageNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.d.ts +18 -0
- package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js +189 -0
- package/dist/esm/components/TextEditorV2/nodes/InlineImageComponent.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.d.ts +54 -0
- package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js +137 -0
- package/dist/esm/components/TextEditorV2/nodes/InlineImageNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/KeywordNode.d.ts +15 -0
- package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js +49 -0
- package/dist/esm/components/TextEditorV2/nodes/KeywordNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.d.ts +21 -0
- package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js +58 -0
- package/dist/esm/components/TextEditorV2/nodes/LayoutContainerNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.d.ts +15 -0
- package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js +46 -0
- package/dist/esm/components/TextEditorV2/nodes/LayoutItemNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/MentionNode.d.ts +20 -0
- package/dist/esm/components/TextEditorV2/nodes/MentionNode.js +84 -0
- package/dist/esm/components/TextEditorV2/nodes/MentionNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.d.ts +17 -0
- package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js +108 -0
- package/dist/esm/components/TextEditorV2/nodes/PageBreakNode/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js +66 -0
- package/dist/esm/components/TextEditorV2/nodes/PlaygroundNodes.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/PollComponent.d.ts +8 -0
- package/dist/esm/components/TextEditorV2/nodes/PollComponent.js +109 -0
- package/dist/esm/components/TextEditorV2/nodes/PollComponent.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/PollNode.d.ts +33 -0
- package/dist/esm/components/TextEditorV2/nodes/PollNode.js +143 -0
- package/dist/esm/components/TextEditorV2/nodes/PollNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/StickyComponent.d.ts +9 -0
- package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js +163 -0
- package/dist/esm/components/TextEditorV2/nodes/StickyComponent.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/StickyNode.d.ts +37 -0
- package/dist/esm/components/TextEditorV2/nodes/StickyNode.js +89 -0
- package/dist/esm/components/TextEditorV2/nodes/StickyNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/TableNode.d.ts +54 -0
- package/dist/esm/components/TextEditorV2/nodes/TableNode.js +188 -0
- package/dist/esm/components/TextEditorV2/nodes/TableNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/TweetNode.d.ts +28 -0
- package/dist/esm/components/TextEditorV2/nodes/TweetNode.js +151 -0
- package/dist/esm/components/TextEditorV2/nodes/TweetNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.d.ts +28 -0
- package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js +98 -0
- package/dist/esm/components/TextEditorV2/nodes/YouTubeNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js +180 -0
- package/dist/esm/components/TextEditorV2/plugins/ActionsPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.d.ts +19 -0
- package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js +174 -0
- package/dist/esm/components/TextEditorV2/plugins/AutoEmbedPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js +12 -0
- package/dist/esm/components/TextEditorV2/plugins/AutoLinkPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js +2461 -0
- package/dist/esm/components/TextEditorV2/plugins/AutocompletePlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.d.ts +8 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js +52 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/CopyButton/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.d.ts +10 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js +155 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/components/PrettierButton/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.d.ts +4 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js +108 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js +18 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeActionMenuPlugin/utils.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js +9 -0
- package/dist/esm/components/TextEditorV2/plugins/CodeHighlightPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.d.ts +23 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js +82 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContainerNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.d.ts +17 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js +64 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleContentNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.d.ts +18 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js +89 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/CollapsibleTitleNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js +144 -0
- package/dist/esm/components/TextEditorV2/plugins/CollapsiblePlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js +261 -0
- package/dist/esm/components/TextEditorV2/plugins/ComponentPickerPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.d.ts +11 -0
- package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js +167 -0
- package/dist/esm/components/TextEditorV2/plugins/ContextMenuPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js +6 -0
- package/dist/esm/components/TextEditorV2/plugins/DocsPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js +41 -0
- package/dist/esm/components/TextEditorV2/plugins/DragDropPastePlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.d.ts +4 -0
- package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js +284 -0
- package/dist/esm/components/TextEditorV2/plugins/DraggableBlockPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js +94 -0
- package/dist/esm/components/TextEditorV2/plugins/EmojiPickerPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js +61 -0
- package/dist/esm/components/TextEditorV2/plugins/EmojisPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.d.ts +14 -0
- package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js +36 -0
- package/dist/esm/components/TextEditorV2/plugins/EquationsPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js +24 -0
- package/dist/esm/components/TextEditorV2/plugins/ExcalidrawPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js +21 -0
- package/dist/esm/components/TextEditorV2/plugins/FigmaPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.d.ts +7 -0
- package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js +196 -0
- package/dist/esm/components/TextEditorV2/plugins/FloatingLinkEditorPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +4 -0
- package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js +225 -0
- package/dist/esm/components/TextEditorV2/plugins/FloatingTextFormatToolbarPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.d.ts +22 -0
- package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js +181 -0
- package/dist/esm/components/TextEditorV2/plugins/ImagesPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.d.ts +17 -0
- package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js +187 -0
- package/dist/esm/components/TextEditorV2/plugins/InlineImagePlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js +30 -0
- package/dist/esm/components/TextEditorV2/plugins/KeywordsPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js +30 -0
- package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/InsertLayoutDialog.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.d.ts +7 -0
- package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js +85 -0
- package/dist/esm/components/TextEditorV2/plugins/LayoutPlugin/LayoutPlugin.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js +7 -0
- package/dist/esm/components/TextEditorV2/plugins/LinkPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.d.ts +5 -0
- package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js +41 -0
- package/dist/esm/components/TextEditorV2/plugins/ListMaxIndentLevelPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js +7 -0
- package/dist/esm/components/TextEditorV2/plugins/MarkdownShortcutPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.d.ts +8 -0
- package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js +239 -0
- package/dist/esm/components/TextEditorV2/plugins/MarkdownTransformers/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js +38 -0
- package/dist/esm/components/TextEditorV2/plugins/MaxLengthPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js +557 -0
- package/dist/esm/components/TextEditorV2/plugins/MentionsPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js +27 -0
- package/dist/esm/components/TextEditorV2/plugins/PageBreakPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js +33 -0
- package/dist/esm/components/TextEditorV2/plugins/PasteLogPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.d.ts +8 -0
- package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js +40 -0
- package/dist/esm/components/TextEditorV2/plugins/PollPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js +13 -0
- package/dist/esm/components/TextEditorV2/plugins/StickyPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js +35 -0
- package/dist/esm/components/TextEditorV2/plugins/TabFocusPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.d.ts +5 -0
- package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js +483 -0
- package/dist/esm/components/TextEditorV2/plugins/TableActionMenuPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js +249 -0
- package/dist/esm/components/TextEditorV2/plugins/TableCellResizer/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js +113 -0
- package/dist/esm/components/TextEditorV2/plugins/TableOfContentsPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TablePlugin.d.ts +32 -0
- package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js +78 -0
- package/dist/esm/components/TextEditorV2/plugins/TablePlugin.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js +14 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bold-text.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js +24 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/bullet.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js +61 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/font-size.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js +67 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/heading.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js +14 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/italic-text.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.d.ts +5 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js +42 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/link.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js +24 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/number-bullet.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js +48 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-align.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js +24 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/text-color.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js +15 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/underline-text.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js +37 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-image.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.d.ts +11 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js +159 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/components/upload-pdf.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.d.ts +4 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js +159 -0
- package/dist/esm/components/TextEditorV2/plugins/ToolbarPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js +8 -0
- package/dist/esm/components/TextEditorV2/plugins/TreeViewPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js +21 -0
- package/dist/esm/components/TextEditorV2/plugins/TwitterPlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js +21 -0
- package/dist/esm/components/TextEditorV2/plugins/YouTubePlugin/index.js.map +1 -0
- package/dist/esm/components/TextEditorV2/shared/canUseDOM.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/shared/canUseDOM.js +4 -0
- package/dist/esm/components/TextEditorV2/shared/canUseDOM.js.map +1 -0
- package/dist/esm/components/TextEditorV2/shared/caretFromPoint.d.ts +4 -0
- package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js +29 -0
- package/dist/esm/components/TextEditorV2/shared/caretFromPoint.js.map +1 -0
- package/dist/esm/components/TextEditorV2/shared/environment.d.ts +16 -0
- package/dist/esm/components/TextEditorV2/shared/environment.js +14 -0
- package/dist/esm/components/TextEditorV2/shared/environment.js.map +1 -0
- package/dist/esm/components/TextEditorV2/shared/invariant.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/shared/invariant.js +12 -0
- package/dist/esm/components/TextEditorV2/shared/invariant.js.map +1 -0
- package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.d.ts +5 -0
- package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js +25 -0
- package/dist/esm/components/TextEditorV2/shared/simpleDiffWithCursor.js.map +1 -0
- package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js +5 -0
- package/dist/esm/components/TextEditorV2/shared/useLayoutEffect.js.map +1 -0
- package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js +13 -0
- package/dist/esm/components/TextEditorV2/shared/warnOnlyOnce.js.map +1 -0
- package/dist/esm/components/TextEditorV2/style.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/style.js +5 -0
- package/dist/esm/components/TextEditorV2/style.js.map +1 -0
- package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js +5 -0
- package/dist/esm/components/TextEditorV2/themes/CommentEditorTheme.js.map +1 -0
- package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js +105 -0
- package/dist/esm/components/TextEditorV2/themes/PlaygroundEditorTheme.js.map +1 -0
- package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.d.ts +3 -0
- package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js +5 -0
- package/dist/esm/components/TextEditorV2/themes/StickyEditorTheme.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/Button.d.ts +11 -0
- package/dist/esm/components/TextEditorV2/ui/Button.js +8 -0
- package/dist/esm/components/TextEditorV2/ui/Button.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/ColorPicker.d.ts +12 -0
- package/dist/esm/components/TextEditorV2/ui/ColorPicker.js +212 -0
- package/dist/esm/components/TextEditorV2/ui/ColorPicker.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/ContentEditable.d.ts +4 -0
- package/dist/esm/components/TextEditorV2/ui/ContentEditable.js +7 -0
- package/dist/esm/components/TextEditorV2/ui/ContentEditable.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/Dialog.d.ts +9 -0
- package/dist/esm/components/TextEditorV2/ui/Dialog.js +10 -0
- package/dist/esm/components/TextEditorV2/ui/Dialog.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/DropDown.d.ts +17 -0
- package/dist/esm/components/TextEditorV2/ui/DropDown.js +129 -0
- package/dist/esm/components/TextEditorV2/ui/DropDown.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.d.ts +21 -0
- package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js +17 -0
- package/dist/esm/components/TextEditorV2/ui/DropdownColorPicker.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/EquationEditor.d.ts +8 -0
- package/dist/esm/components/TextEditorV2/ui/EquationEditor.js +17 -0
- package/dist/esm/components/TextEditorV2/ui/EquationEditor.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/FileInput.d.ts +9 -0
- package/dist/esm/components/TextEditorV2/ui/FileInput.js +8 -0
- package/dist/esm/components/TextEditorV2/ui/FileInput.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/ImageResizer.d.ts +11 -0
- package/dist/esm/components/TextEditorV2/ui/ImageResizer.js +174 -0
- package/dist/esm/components/TextEditorV2/ui/ImageResizer.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.d.ts +7 -0
- package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js +35 -0
- package/dist/esm/components/TextEditorV2/ui/KatexEquationAlterer.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/KatexRenderer.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js +29 -0
- package/dist/esm/components/TextEditorV2/ui/KatexRenderer.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/Modal.d.ts +8 -0
- package/dist/esm/components/TextEditorV2/ui/Modal.js +50 -0
- package/dist/esm/components/TextEditorV2/ui/Modal.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/Placeholder.d.ts +6 -0
- package/dist/esm/components/TextEditorV2/ui/Placeholder.js +6 -0
- package/dist/esm/components/TextEditorV2/ui/Placeholder.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/Select.d.ts +7 -0
- package/dist/esm/components/TextEditorV2/ui/Select.js +9 -0
- package/dist/esm/components/TextEditorV2/ui/Select.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/Switch.d.ts +7 -0
- package/dist/esm/components/TextEditorV2/ui/Switch.js +11 -0
- package/dist/esm/components/TextEditorV2/ui/Switch.js.map +1 -0
- package/dist/esm/components/TextEditorV2/ui/TextInput.d.ts +12 -0
- package/dist/esm/components/TextEditorV2/ui/TextInput.js +10 -0
- package/dist/esm/components/TextEditorV2/ui/TextInput.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/emoji-list.d.ts +20 -0
- package/dist/esm/components/TextEditorV2/utils/emoji-list.js +16605 -0
- package/dist/esm/components/TextEditorV2/utils/emoji-list.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js +16 -0
- package/dist/esm/components/TextEditorV2/utils/getDOMRangeRect.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js +32 -0
- package/dist/esm/components/TextEditorV2/utils/getPrepopulatedRichText.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/getSelectedNode.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js +18 -0
- package/dist/esm/components/TextEditorV2/utils/getSelectedNode.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/guard.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/utils/guard.js +4 -0
- package/dist/esm/components/TextEditorV2/utils/guard.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/isMobileWidth.d.ts +0 -0
- package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js +2 -0
- package/dist/esm/components/TextEditorV2/utils/isMobileWidth.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/joinClasses.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/utils/joinClasses.js +8 -0
- package/dist/esm/components/TextEditorV2/utils/joinClasses.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/point.d.ts +14 -0
- package/dist/esm/components/TextEditorV2/utils/point.js +47 -0
- package/dist/esm/components/TextEditorV2/utils/point.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/rect.d.ts +38 -0
- package/dist/esm/components/TextEditorV2/utils/rect.js +122 -0
- package/dist/esm/components/TextEditorV2/utils/rect.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js +30 -0
- package/dist/esm/components/TextEditorV2/utils/setFloatingElemPosition.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.d.ts +1 -0
- package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js +28 -0
- package/dist/esm/components/TextEditorV2/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/swipe.d.ts +4 -0
- package/dist/esm/components/TextEditorV2/utils/swipe.js +91 -0
- package/dist/esm/components/TextEditorV2/utils/swipe.js.map +1 -0
- package/dist/esm/components/TextEditorV2/utils/url.d.ts +2 -0
- package/dist/esm/components/TextEditorV2/utils/url.js +22 -0
- package/dist/esm/components/TextEditorV2/utils/url.js.map +1 -0
- package/dist/esm/components/Textarea/Textarea.js +28 -4
- package/dist/esm/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/package.json +11 -2
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSharedAutocompleteContext = exports.SharedAutocompleteContext = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var React = tslib_1.__importStar(require("react"));
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var Context = (0, react_1.createContext)([
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
|
|
9
|
+
function (_cb) { return function () {
|
|
10
|
+
return;
|
|
11
|
+
}; },
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars,arrow-body-style
|
|
13
|
+
function (_newSuggestion) {
|
|
14
|
+
return;
|
|
15
|
+
},
|
|
16
|
+
]);
|
|
17
|
+
var SharedAutocompleteContext = function (_a) {
|
|
18
|
+
var children = _a.children;
|
|
19
|
+
var context = (0, react_1.useMemo)(function () {
|
|
20
|
+
var suggestion = null;
|
|
21
|
+
var listeners = new Set();
|
|
22
|
+
return [
|
|
23
|
+
function (cb) {
|
|
24
|
+
cb(suggestion);
|
|
25
|
+
listeners.add(cb);
|
|
26
|
+
return function () {
|
|
27
|
+
listeners.delete(cb);
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
function (newSuggestion) {
|
|
31
|
+
suggestion = newSuggestion;
|
|
32
|
+
listeners.forEach(function (listener) { return listener(newSuggestion); });
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
}, []);
|
|
36
|
+
return React.createElement(Context.Provider, { value: context }, children);
|
|
37
|
+
};
|
|
38
|
+
exports.SharedAutocompleteContext = SharedAutocompleteContext;
|
|
39
|
+
var useSharedAutocompleteContext = function () {
|
|
40
|
+
var _a = (0, react_1.useContext)(Context), subscribe = _a[0], publish = _a[1];
|
|
41
|
+
var _b = (0, react_1.useState)(null), suggestion = _b[0], setSuggestion = _b[1];
|
|
42
|
+
(0, react_1.useEffect)(function () {
|
|
43
|
+
return subscribe(function (newSuggestion) {
|
|
44
|
+
setSuggestion(newSuggestion);
|
|
45
|
+
});
|
|
46
|
+
}, [subscribe]);
|
|
47
|
+
return [suggestion, publish];
|
|
48
|
+
};
|
|
49
|
+
exports.useSharedAutocompleteContext = useSharedAutocompleteContext;
|
|
50
|
+
//# sourceMappingURL=SharedAutocompleteContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedAutocompleteContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedAutocompleteContext.tsx"],"names":[],"mappings":";;;;AAAA,mDAA8B;AAC9B,+BAA0F;AAS1F,IAAM,OAAO,GAAgC,IAAA,qBAAa,EAAC;IACzD,8EAA8E;IAC9E,UAAC,GAAG,IAAK,OAAA;QACP,OAAM;IACR,CAAC,EAFQ,CAER;IACD,8EAA8E;IAC9E,UAAC,cAA0B;QACzB,OAAM;IACR,CAAC;CACF,CAAC,CAAA;AAEK,IAAM,yBAAyB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAClD,IAAM,OAAO,GAAiB,IAAA,eAAO,EAAC;QACpC,IAAI,UAAU,GAAsB,IAAI,CAAA;QACxC,IAAM,SAAS,GAAoB,IAAI,GAAG,EAAE,CAAA;QAC5C,OAAO;YACL,UAAC,EAAuC;gBACtC,EAAE,CAAC,UAAU,CAAC,CAAA;gBACd,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;gBACjB,OAAO;oBACL,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;gBACtB,CAAC,CAAA;YACH,CAAC;YACD,UAAC,aAAyB;gBACxB,UAAU,GAAG,aAAa,CAAA;gBAC1B,SAAS,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,aAAa,CAAC,EAAvB,CAAuB,CAAC,CAAA;YAC1D,CAAC;SACF,CAAA;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IACN,OAAO,oBAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAAoB,CAAA;AACxE,CAAC,CAAA;AAnBY,QAAA,yBAAyB,6BAmBrC;AAEM,IAAM,4BAA4B,GAAG;IACpC,IAAA,KAAqC,IAAA,kBAAU,EAAC,OAAO,CAAC,EAAvD,SAAS,QAAA,EAAE,OAAO,QAAqC,CAAA;IACxD,IAAA,KAA8B,IAAA,gBAAQ,EAAa,IAAI,CAAC,EAAvD,UAAU,QAAA,EAAE,aAAa,QAA8B,CAAA;IAC9D,IAAA,iBAAS,EACP;QACE,OAAA,SAAS,CAAC,UAAC,aAAyB;YAClC,aAAa,CAAC,aAAa,CAAC,CAAA;QAC9B,CAAC,CAAC;IAFF,CAEE,EACJ,CAAC,SAAS,CAAC,CACZ,CAAA;IACD,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;AAC9B,CAAC,CAAA;AAXY,QAAA,4BAA4B,gCAWxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { HistoryState } from '@lexical/react/LexicalHistoryPlugin';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
type ContextShape = {
|
|
5
|
+
historyState?: HistoryState;
|
|
6
|
+
};
|
|
7
|
+
export declare const SharedHistoryContext: ({ children }: {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export declare const useSharedHistoryContext: () => ContextShape;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSharedHistoryContext = exports.SharedHistoryContext = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var LexicalHistoryPlugin_1 = require("@lexical/react/LexicalHistoryPlugin");
|
|
6
|
+
var React = tslib_1.__importStar(require("react"));
|
|
7
|
+
var react_1 = require("react");
|
|
8
|
+
var Context = (0, react_1.createContext)({});
|
|
9
|
+
var SharedHistoryContext = function (_a) {
|
|
10
|
+
var children = _a.children;
|
|
11
|
+
var historyContext = (0, react_1.useMemo)(function () { return ({ historyState: (0, LexicalHistoryPlugin_1.createEmptyHistoryState)() }); }, []);
|
|
12
|
+
return React.createElement(Context.Provider, { value: historyContext }, children);
|
|
13
|
+
};
|
|
14
|
+
exports.SharedHistoryContext = SharedHistoryContext;
|
|
15
|
+
var useSharedHistoryContext = function () { return (0, react_1.useContext)(Context); };
|
|
16
|
+
exports.useSharedHistoryContext = useSharedHistoryContext;
|
|
17
|
+
//# sourceMappingURL=SharedHistoryContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SharedHistoryContext.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/context/SharedHistoryContext.tsx"],"names":[],"mappings":";;;;AACA,4EAA6E;AAC7E,mDAA8B;AAC9B,+BAAqE;AAMrE,IAAM,OAAO,GAAgC,IAAA,qBAAa,EAAC,EAAE,CAAC,CAAA;AAEvD,IAAM,oBAAoB,GAAG,UAAC,EAAqC;QAAnC,QAAQ,cAAA;IAC7C,IAAM,cAAc,GAAG,IAAA,eAAO,EAAC,cAAM,OAAA,CAAC,EAAE,YAAY,EAAE,IAAA,8CAAuB,GAAE,EAAE,CAAC,EAA7C,CAA6C,EAAE,EAAE,CAAC,CAAA;IACvF,OAAO,oBAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,cAAc,IAAG,QAAQ,CAAoB,CAAA;AAC/E,CAAC,CAAA;AAHY,QAAA,oBAAoB,wBAGhC;AAEM,IAAM,uBAAuB,GAAG,cAAoB,OAAA,IAAA,kBAAU,EAAC,OAAO,CAAC,EAAnB,CAAmB,CAAA;AAAjE,QAAA,uBAAuB,2BAA0C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface IEditorProps {
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
onChange?(value: string): void;
|
|
6
|
+
label?: string;
|
|
7
|
+
apiCdnUpload: string;
|
|
8
|
+
}
|
|
9
|
+
export default function PHXTextEditorV2({ defaultValue, label, onChange, placeholder, apiCdnUpload, }: IEditorProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = PHXTextEditorV2;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var html_1 = require("@lexical/html");
|
|
6
|
+
var LexicalComposer_1 = require("@lexical/react/LexicalComposer");
|
|
7
|
+
var lexical_1 = require("lexical");
|
|
8
|
+
var React = tslib_1.__importStar(require("react"));
|
|
9
|
+
var react_1 = require("react");
|
|
10
|
+
var SharedAutocompleteContext_1 = require("./context/SharedAutocompleteContext");
|
|
11
|
+
var SharedHistoryContext_1 = require("./context/SharedHistoryContext");
|
|
12
|
+
var ExtendedTextNode_1 = require("./nodes/ExtendedTextNode");
|
|
13
|
+
var PlaygroundNodes_1 = tslib_1.__importDefault(require("./nodes/PlaygroundNodes"));
|
|
14
|
+
var TablePlugin_1 = require("./plugins/TablePlugin");
|
|
15
|
+
var canUseDOM_1 = require("./shared/canUseDOM");
|
|
16
|
+
var PlaygroundEditorTheme_1 = tslib_1.__importDefault(require("./themes/PlaygroundEditorTheme"));
|
|
17
|
+
var LexicalCharacterLimitPlugin_1 = require("@lexical/react/LexicalCharacterLimitPlugin");
|
|
18
|
+
var LexicalCheckListPlugin_1 = require("@lexical/react/LexicalCheckListPlugin");
|
|
19
|
+
var LexicalClearEditorPlugin_1 = require("@lexical/react/LexicalClearEditorPlugin");
|
|
20
|
+
var LexicalClickableLinkPlugin_1 = tslib_1.__importDefault(require("@lexical/react/LexicalClickableLinkPlugin"));
|
|
21
|
+
var LexicalErrorBoundary_1 = tslib_1.__importDefault(require("@lexical/react/LexicalErrorBoundary"));
|
|
22
|
+
var LexicalHashtagPlugin_1 = require("@lexical/react/LexicalHashtagPlugin");
|
|
23
|
+
var LexicalHistoryPlugin_1 = require("@lexical/react/LexicalHistoryPlugin");
|
|
24
|
+
var LexicalHorizontalRulePlugin_1 = require("@lexical/react/LexicalHorizontalRulePlugin");
|
|
25
|
+
var LexicalListPlugin_1 = require("@lexical/react/LexicalListPlugin");
|
|
26
|
+
var LexicalOnChangePlugin_1 = require("@lexical/react/LexicalOnChangePlugin");
|
|
27
|
+
var LexicalRichTextPlugin_1 = require("@lexical/react/LexicalRichTextPlugin");
|
|
28
|
+
var LexicalTabIndentationPlugin_1 = require("@lexical/react/LexicalTabIndentationPlugin");
|
|
29
|
+
var LexicalTablePlugin_1 = require("@lexical/react/LexicalTablePlugin");
|
|
30
|
+
var AutoEmbedPlugin_1 = tslib_1.__importDefault(require("./plugins/AutoEmbedPlugin"));
|
|
31
|
+
var AutocompletePlugin_1 = tslib_1.__importDefault(require("./plugins/AutocompletePlugin"));
|
|
32
|
+
var CodeActionMenuPlugin_1 = tslib_1.__importDefault(require("./plugins/CodeActionMenuPlugin"));
|
|
33
|
+
var CodeHighlightPlugin_1 = tslib_1.__importDefault(require("./plugins/CodeHighlightPlugin"));
|
|
34
|
+
var CollapsiblePlugin_1 = tslib_1.__importDefault(require("./plugins/CollapsiblePlugin"));
|
|
35
|
+
var ComponentPickerPlugin_1 = tslib_1.__importDefault(require("./plugins/ComponentPickerPlugin"));
|
|
36
|
+
var ContextMenuPlugin_1 = tslib_1.__importDefault(require("./plugins/ContextMenuPlugin"));
|
|
37
|
+
var EmojiPickerPlugin_1 = tslib_1.__importDefault(require("./plugins/EmojiPickerPlugin"));
|
|
38
|
+
var EmojisPlugin_1 = tslib_1.__importDefault(require("./plugins/EmojisPlugin"));
|
|
39
|
+
var EquationsPlugin_1 = tslib_1.__importDefault(require("./plugins/EquationsPlugin"));
|
|
40
|
+
var ExcalidrawPlugin_1 = tslib_1.__importDefault(require("./plugins/ExcalidrawPlugin"));
|
|
41
|
+
var FigmaPlugin_1 = tslib_1.__importDefault(require("./plugins/FigmaPlugin"));
|
|
42
|
+
var ImagesPlugin_1 = tslib_1.__importDefault(require("./plugins/ImagesPlugin"));
|
|
43
|
+
var InlineImagePlugin_1 = tslib_1.__importDefault(require("./plugins/InlineImagePlugin"));
|
|
44
|
+
var KeywordsPlugin_1 = tslib_1.__importDefault(require("./plugins/KeywordsPlugin"));
|
|
45
|
+
var LayoutPlugin_1 = require("./plugins/LayoutPlugin/LayoutPlugin");
|
|
46
|
+
var LinkPlugin_1 = tslib_1.__importDefault(require("./plugins/LinkPlugin"));
|
|
47
|
+
var ListMaxIndentLevelPlugin_1 = tslib_1.__importDefault(require("./plugins/ListMaxIndentLevelPlugin"));
|
|
48
|
+
var MarkdownShortcutPlugin_1 = tslib_1.__importDefault(require("./plugins/MarkdownShortcutPlugin"));
|
|
49
|
+
var MaxLengthPlugin_1 = require("./plugins/MaxLengthPlugin");
|
|
50
|
+
var MentionsPlugin_1 = tslib_1.__importDefault(require("./plugins/MentionsPlugin"));
|
|
51
|
+
var PageBreakPlugin_1 = tslib_1.__importDefault(require("./plugins/PageBreakPlugin"));
|
|
52
|
+
var ContentEditable_1 = tslib_1.__importDefault(require("./ui/ContentEditable"));
|
|
53
|
+
var PollPlugin_1 = tslib_1.__importDefault(require("./plugins/PollPlugin"));
|
|
54
|
+
var TabFocusPlugin_1 = tslib_1.__importDefault(require("./plugins/TabFocusPlugin"));
|
|
55
|
+
var TableActionMenuPlugin_1 = tslib_1.__importDefault(require("./plugins/TableActionMenuPlugin"));
|
|
56
|
+
var TableCellResizer_1 = tslib_1.__importDefault(require("./plugins/TableCellResizer"));
|
|
57
|
+
var TableOfContentsPlugin_1 = tslib_1.__importDefault(require("./plugins/TableOfContentsPlugin"));
|
|
58
|
+
var ToolbarPlugin_1 = tslib_1.__importDefault(require("./plugins/ToolbarPlugin"));
|
|
59
|
+
var TwitterPlugin_1 = tslib_1.__importDefault(require("./plugins/TwitterPlugin"));
|
|
60
|
+
var YouTubePlugin_1 = tslib_1.__importDefault(require("./plugins/YouTubePlugin"));
|
|
61
|
+
var SettingsContext_1 = require("./context/SettingsContext");
|
|
62
|
+
var constants_1 = require("./constants");
|
|
63
|
+
var style_1 = tslib_1.__importDefault(require("./style"));
|
|
64
|
+
function PHXTextEditorV2(_a) {
|
|
65
|
+
var defaultValue = _a.defaultValue, label = _a.label, onChange = _a.onChange, placeholder = _a.placeholder, apiCdnUpload = _a.apiCdnUpload;
|
|
66
|
+
var _b = (0, react_1.useState)(false), isSmallWidthViewport = _b[0], setIsSmallWidthViewport = _b[1];
|
|
67
|
+
var historyState = (0, SharedHistoryContext_1.useSharedHistoryContext)().historyState;
|
|
68
|
+
var _c = (0, react_1.useState)(null), floatingAnchorElem = _c[0], setFloatingAnchorElem = _c[1];
|
|
69
|
+
var onRef = function (_floatingAnchorElem) {
|
|
70
|
+
if (_floatingAnchorElem !== null) {
|
|
71
|
+
setFloatingAnchorElem(_floatingAnchorElem);
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var _d = (0, SettingsContext_1.useSettings)().settings, isAutocomplete = _d.isAutocomplete, isCharLimit = _d.isCharLimit, isCharLimitUtf8 = _d.isCharLimitUtf8, isMaxLength = _d.isMaxLength, shouldUseLexicalContextMenu = _d.shouldUseLexicalContextMenu, showTableOfContents = _d.showTableOfContents, tableCellBackgroundColor = _d.tableCellBackgroundColor, tableCellMerge = _d.tableCellMerge;
|
|
75
|
+
var editorConfig = {
|
|
76
|
+
theme: PlaygroundEditorTheme_1.default,
|
|
77
|
+
editorState: prepopulatedRichText,
|
|
78
|
+
onError: function (error) {
|
|
79
|
+
throw error;
|
|
80
|
+
},
|
|
81
|
+
nodes: tslib_1.__spreadArray(tslib_1.__spreadArray([], PlaygroundNodes_1.default, true), [
|
|
82
|
+
ExtendedTextNode_1.ExtendedTextNode,
|
|
83
|
+
{
|
|
84
|
+
replace: lexical_1.TextNode,
|
|
85
|
+
with: function (node) { return new ExtendedTextNode_1.ExtendedTextNode(node.__text); },
|
|
86
|
+
withKlass: ExtendedTextNode_1.ExtendedTextNode,
|
|
87
|
+
},
|
|
88
|
+
], false),
|
|
89
|
+
};
|
|
90
|
+
function prepopulatedRichText() {
|
|
91
|
+
var root = (0, lexical_1.$getRoot)();
|
|
92
|
+
try {
|
|
93
|
+
if (defaultValue) {
|
|
94
|
+
var html = defaultValue;
|
|
95
|
+
var htmlLength = html.length;
|
|
96
|
+
var utf8Array = new Uint8Array(htmlLength);
|
|
97
|
+
for (var i = 0; i < htmlLength; i++) {
|
|
98
|
+
utf8Array[i] = html.charCodeAt(i);
|
|
99
|
+
}
|
|
100
|
+
var utf8Text = new TextDecoder('utf-8').decode(utf8Array);
|
|
101
|
+
var editor = (0, lexical_1.createEditor)();
|
|
102
|
+
var parser = new DOMParser();
|
|
103
|
+
var dom = parser.parseFromString(utf8Text, 'text/html');
|
|
104
|
+
var nodes = (0, html_1.$generateNodesFromDOM)(editor, dom);
|
|
105
|
+
if (root.getFirstChild() === null) {
|
|
106
|
+
root.append.apply(root, nodes);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
root.append.apply(root, []);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function ensureStyleTag(html, css) {
|
|
115
|
+
var parser = new DOMParser();
|
|
116
|
+
var doc = parser.parseFromString(html, 'text/html');
|
|
117
|
+
var hasStyle = doc.querySelector('style');
|
|
118
|
+
if (!hasStyle) {
|
|
119
|
+
var styleTag_1 = doc.createElement('style');
|
|
120
|
+
styleTag_1.innerHTML = css;
|
|
121
|
+
doc.head.appendChild(styleTag_1);
|
|
122
|
+
}
|
|
123
|
+
return doc.documentElement.outerHTML;
|
|
124
|
+
}
|
|
125
|
+
var handleChange = function (editorState, editor) {
|
|
126
|
+
editorState.read(function () {
|
|
127
|
+
var data = JSON.stringify(editorState);
|
|
128
|
+
return data;
|
|
129
|
+
});
|
|
130
|
+
editor.update(function () {
|
|
131
|
+
var rawHTML = (0, html_1.$generateHtmlFromNodes)(editor, null);
|
|
132
|
+
var htmlWithStyle = ensureStyleTag(rawHTML, constants_1.styleTag);
|
|
133
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(htmlWithStyle);
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
(0, react_1.useEffect)(function () {
|
|
137
|
+
var updateViewPortWidth = function () {
|
|
138
|
+
var isNextSmallWidthViewport = canUseDOM_1.CAN_USE_DOM && window.matchMedia('(max-width: 1025px)').matches;
|
|
139
|
+
if (isNextSmallWidthViewport !== isSmallWidthViewport) {
|
|
140
|
+
setIsSmallWidthViewport(isNextSmallWidthViewport);
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
updateViewPortWidth();
|
|
144
|
+
window.addEventListener('resize', updateViewPortWidth);
|
|
145
|
+
return function () {
|
|
146
|
+
window.removeEventListener('resize', updateViewPortWidth);
|
|
147
|
+
};
|
|
148
|
+
}, [isSmallWidthViewport]);
|
|
149
|
+
return (React.createElement("div", null,
|
|
150
|
+
React.createElement(style_1.default, null),
|
|
151
|
+
label && React.createElement("label", { className: 'block mb-1 text-xs font-normal text-gray-700' }, label),
|
|
152
|
+
React.createElement(LexicalComposer_1.LexicalComposer, { initialConfig: editorConfig },
|
|
153
|
+
React.createElement(SharedHistoryContext_1.SharedHistoryContext, null,
|
|
154
|
+
React.createElement(TablePlugin_1.TableContext, null,
|
|
155
|
+
React.createElement(SharedAutocompleteContext_1.SharedAutocompleteContext, null,
|
|
156
|
+
React.createElement("div", { className: 'rounded-md border border-gray-300 shadow-sm overflow-hidden' },
|
|
157
|
+
React.createElement(ToolbarPlugin_1.default, { apiCdnUpload: apiCdnUpload }),
|
|
158
|
+
React.createElement("div", { className: 'relative' },
|
|
159
|
+
isMaxLength && React.createElement(MaxLengthPlugin_1.MaxLengthPlugin, { maxLength: 30 }),
|
|
160
|
+
React.createElement(LexicalClearEditorPlugin_1.ClearEditorPlugin, null),
|
|
161
|
+
React.createElement(ComponentPickerPlugin_1.default, null),
|
|
162
|
+
React.createElement(EmojiPickerPlugin_1.default, null),
|
|
163
|
+
React.createElement(AutoEmbedPlugin_1.default, null),
|
|
164
|
+
React.createElement(MentionsPlugin_1.default, null),
|
|
165
|
+
React.createElement(EmojisPlugin_1.default, null),
|
|
166
|
+
React.createElement(LexicalHashtagPlugin_1.HashtagPlugin, null),
|
|
167
|
+
React.createElement(KeywordsPlugin_1.default, null),
|
|
168
|
+
React.createElement(LexicalOnChangePlugin_1.OnChangePlugin, { onChange: handleChange }),
|
|
169
|
+
React.createElement(LexicalHistoryPlugin_1.HistoryPlugin, { externalHistoryState: historyState }),
|
|
170
|
+
React.createElement(LexicalRichTextPlugin_1.RichTextPlugin, { contentEditable: React.createElement("div", { ref: onRef },
|
|
171
|
+
React.createElement(ContentEditable_1.default, { className: 'px-2 py-1.5 h-[20rem] overflow-y-auto outline-none text-sm' })), ErrorBoundary: LexicalErrorBoundary_1.default, placeholder: React.createElement("p", { className: 'absolute top-1.5 left-2 text-xs text-[#999] z-10 overflow-hidden text-ellipsis inline-block select-none pointer-events-none' }, placeholder) }),
|
|
172
|
+
React.createElement(MarkdownShortcutPlugin_1.default, null),
|
|
173
|
+
React.createElement(CodeHighlightPlugin_1.default, null),
|
|
174
|
+
React.createElement(LexicalListPlugin_1.ListPlugin, null),
|
|
175
|
+
React.createElement(LexicalCheckListPlugin_1.CheckListPlugin, null),
|
|
176
|
+
React.createElement(ListMaxIndentLevelPlugin_1.default, { maxDepth: 7 }),
|
|
177
|
+
React.createElement(LexicalTablePlugin_1.TablePlugin, { hasCellBackgroundColor: tableCellBackgroundColor, hasCellMerge: tableCellMerge }),
|
|
178
|
+
React.createElement(TableCellResizer_1.default, null),
|
|
179
|
+
React.createElement(ImagesPlugin_1.default, null),
|
|
180
|
+
React.createElement(InlineImagePlugin_1.default, null),
|
|
181
|
+
React.createElement(LinkPlugin_1.default, null),
|
|
182
|
+
React.createElement(PollPlugin_1.default, null),
|
|
183
|
+
React.createElement(TwitterPlugin_1.default, null),
|
|
184
|
+
React.createElement(YouTubePlugin_1.default, null),
|
|
185
|
+
React.createElement(FigmaPlugin_1.default, null),
|
|
186
|
+
React.createElement(LexicalClickableLinkPlugin_1.default, null),
|
|
187
|
+
React.createElement(LexicalHorizontalRulePlugin_1.HorizontalRulePlugin, null),
|
|
188
|
+
React.createElement(EquationsPlugin_1.default, null),
|
|
189
|
+
React.createElement(ExcalidrawPlugin_1.default, null),
|
|
190
|
+
React.createElement(TabFocusPlugin_1.default, null),
|
|
191
|
+
React.createElement(LexicalTabIndentationPlugin_1.TabIndentationPlugin, null),
|
|
192
|
+
React.createElement(CollapsiblePlugin_1.default, null),
|
|
193
|
+
React.createElement(PageBreakPlugin_1.default, null),
|
|
194
|
+
React.createElement(LayoutPlugin_1.LayoutPlugin, null),
|
|
195
|
+
floatingAnchorElem && !isSmallWidthViewport && (React.createElement(React.Fragment, null,
|
|
196
|
+
React.createElement(CodeActionMenuPlugin_1.default, { anchorElem: floatingAnchorElem }),
|
|
197
|
+
React.createElement(TableActionMenuPlugin_1.default, { anchorElem: floatingAnchorElem, cellMerge: true }))),
|
|
198
|
+
(isCharLimit || isCharLimitUtf8) && (React.createElement(LexicalCharacterLimitPlugin_1.CharacterLimitPlugin, { charset: isCharLimit ? 'UTF-16' : 'UTF-8', maxLength: 5 })),
|
|
199
|
+
isAutocomplete && React.createElement(AutocompletePlugin_1.default, null),
|
|
200
|
+
React.createElement("div", null, showTableOfContents && React.createElement(TableOfContentsPlugin_1.default, null)),
|
|
201
|
+
shouldUseLexicalContextMenu && React.createElement(ContextMenuPlugin_1.default, null)))))))));
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=editor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../../src/components/TextEditorV2/editor.tsx"],"names":[],"mappings":";;AAoEA,kCA0MC;;AA9QD,sCAA6E;AAC7E,kEAAgE;AAChE,mCAAyE;AACzE,mDAA8B;AAC9B,+BAA2C;AAC3C,iFAA+E;AAC/E,uEAA8F;AAC9F,6DAA2D;AAC3D,oFAAqD;AACrD,qDAAoD;AACpD,gDAAgD;AAChD,iGAAkE;AAClE,0FAAiF;AACjF,gFAAuE;AACvE,oFAA2E;AAC3E,iHAAkF;AAClF,qGAAsE;AACtE,4EAAmE;AACnE,4EAAmE;AACnE,0FAAiF;AACjF,sEAA6D;AAC7D,8EAAqE;AACrE,8EAAqE;AACrE,0FAAiF;AACjF,wEAA+D;AAC/D,sFAAuD;AACvD,4FAA6D;AAC7D,gGAAiE;AACjE,8FAA+D;AAC/D,0FAA2D;AAC3D,kGAAmE;AACnE,0FAA2D;AAC3D,0FAA2D;AAC3D,gFAAiD;AACjD,sFAAuD;AACvD,wFAAyD;AACzD,8EAA+C;AAC/C,gFAAiD;AACjD,0FAA2D;AAC3D,oFAAqD;AACrD,oEAAkE;AAClE,4EAA6C;AAC7C,wGAAyE;AACzE,oGAAqE;AACrE,6DAA2D;AAC3D,oFAAqD;AACrD,sFAAuD;AACvD,iFAAkD;AAClD,4EAA6C;AAC7C,oFAAqD;AACrD,kGAAuE;AACvE,wFAAyD;AACzD,kGAAmE;AACnE,kFAAmD;AACnD,kFAAmD;AACnD,kFAAmD;AACnD,6DAAuD;AACvD,yCAAsC;AACtC,0DAAiC;AAUjC,SAAwB,eAAe,CAAC,EAMzB;QALb,YAAY,kBAAA,EACZ,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,WAAW,iBAAA,EACX,YAAY,kBAAA;IAEN,IAAA,KAAkD,IAAA,gBAAQ,EAAU,KAAK,CAAC,EAAzE,oBAAoB,QAAA,EAAE,uBAAuB,QAA4B,CAAA;IACxE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AC,yBAAe,OAAG;gCACnB,oBAAC,0BAAgB,OAAG;gCACpB,oBAAC,wBAAc,OAAG;gCAClB,oBAAC,kDAAoB,OAAG;gCACxB,oBAAC,2BAAiB,OAAG;gCACrB,oBAAC,yBAAe,OAAG;gCACnB,oBAAC,2BAAY,OAAG;gCACf,kBAAkB,IAAI,CAAC,oBAAoB,IAAI,CAC9C;oCAEE,oBAAC,8BAAoB,IAAC,UAAU,EAAE,kBAAkB,GAAI;oCAMxD,oBAAC,+BAAyB,IAAC,UAAU,EAAE,kBAAkB,EAAE,SAAS,SAAG,CACtE,CACJ;gCACA,CAAC,WAAW,IAAI,eAAe,CAAC,IAAI,CACnC,oBAAC,kDAAoB,IAAC,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,GAAI,CAClF;gCACA,cAAc,IAAI,oBAAC,4BAAkB,OAAG;gCACzC,iCAAM,mBAAmB,IAAI,oBAAC,+BAAqB,OAAG,CAAO;gCAC5D,2BAA2B,IAAI,oBAAC,2BAAiB,OAAG,CACjD,CACF,CACoB,CACf,CACM,CACP,CACd,CACP,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = useModal;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = require("react");
|
|
6
|
+
var React = tslib_1.__importStar(require("react"));
|
|
7
|
+
var Modal_1 = tslib_1.__importDefault(require("../ui/Modal"));
|
|
8
|
+
function useModal() {
|
|
9
|
+
var _a = (0, react_1.useState)(null), modalContent = _a[0], setModalContent = _a[1];
|
|
10
|
+
var onClose = (0, react_1.useCallback)(function () {
|
|
11
|
+
setModalContent(null);
|
|
12
|
+
}, []);
|
|
13
|
+
var modal = (0, react_1.useMemo)(function () {
|
|
14
|
+
if (modalContent === null) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
var closeOnClickOutside = modalContent.closeOnClickOutside, content = modalContent.content, title = modalContent.title;
|
|
18
|
+
return (React.createElement(Modal_1.default, { closeOnClickOutside: closeOnClickOutside, onClose: onClose, title: title }, content));
|
|
19
|
+
}, [modalContent, onClose]);
|
|
20
|
+
var showModal = (0, react_1.useCallback)(function (title,
|
|
21
|
+
// eslint-disable-next-line no-shadow
|
|
22
|
+
getContent, closeOnClickOutside) {
|
|
23
|
+
if (closeOnClickOutside === void 0) { closeOnClickOutside = false; }
|
|
24
|
+
setModalContent({
|
|
25
|
+
closeOnClickOutside: closeOnClickOutside,
|
|
26
|
+
content: getContent(onClose),
|
|
27
|
+
title: title,
|
|
28
|
+
});
|
|
29
|
+
}, [onClose]);
|
|
30
|
+
return [modal, showModal];
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=useModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useModal.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/hooks/useModal.tsx"],"names":[],"mappings":";;AAIA,2BA2CC;;AA/CD,+BAAsD;AACtD,mDAA8B;AAC9B,8DAA+B;AAE/B,SAAwB,QAAQ;IAIxB,IAAA,KAAkC,IAAA,gBAAQ,EAI7C,IAAI,CAAC,EAJD,YAAY,QAAA,EAAE,eAAe,QAI5B,CAAA;IAER,IAAM,OAAO,GAAG,IAAA,mBAAW,EAAC;QAC1B,eAAe,CAAC,IAAI,CAAC,CAAA;IACvB,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,IAAM,KAAK,GAAG,IAAA,eAAO,EAAC;QACpB,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;YAC1B,OAAO,IAAI,CAAA;QACb,CAAC;QACO,IAAA,mBAAmB,GAAqB,YAAY,oBAAjC,EAAE,OAAO,GAAY,YAAY,QAAxB,EAAE,KAAK,GAAK,YAAY,MAAjB,CAAiB;QAC5D,OAAO,CACL,oBAAC,eAAK,IAAC,mBAAmB,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,IAC5E,OAAO,CACF,CACT,CAAA;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,CAAA;IAE3B,IAAM,SAAS,GAAG,IAAA,mBAAW,EAC3B,UACE,KAAa;IACb,qCAAqC;IACrC,UAAsD,EACtD,mBAA2B;QAA3B,oCAAA,EAAA,2BAA2B;QAE3B,eAAe,CAAC;YACd,mBAAmB,qBAAA;YACnB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;YAC5B,KAAK,OAAA;SACN,CAAC,CAAA;IACJ,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAA;IAED,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAA;AAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useReport(): (arg0: string) => ReturnType<typeof setTimeout>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = useReport;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
var getElement = function () {
|
|
6
|
+
var element = document.getElementById('report-container');
|
|
7
|
+
if (element === null) {
|
|
8
|
+
element = document.createElement('div');
|
|
9
|
+
element.id = 'report-container';
|
|
10
|
+
element.style.position = 'fixed';
|
|
11
|
+
element.style.top = '50%';
|
|
12
|
+
element.style.left = '50%';
|
|
13
|
+
element.style.fontSize = '32px';
|
|
14
|
+
element.style.transform = 'translate(-50%, -50px)';
|
|
15
|
+
element.style.padding = '20px';
|
|
16
|
+
element.style.background = 'rgba(240, 240, 240, 0.4)';
|
|
17
|
+
element.style.borderRadius = '20px';
|
|
18
|
+
if (document.body) {
|
|
19
|
+
document.body.appendChild(element);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return element;
|
|
23
|
+
};
|
|
24
|
+
function useReport() {
|
|
25
|
+
var timer = (0, react_1.useRef)(null);
|
|
26
|
+
var cleanup = (0, react_1.useCallback)(function () {
|
|
27
|
+
if (timer !== null) {
|
|
28
|
+
clearTimeout(timer.current);
|
|
29
|
+
}
|
|
30
|
+
if (document.body) {
|
|
31
|
+
document.body.removeChild(getElement());
|
|
32
|
+
}
|
|
33
|
+
}, []);
|
|
34
|
+
(0, react_1.useEffect)(function () { return cleanup; }, [cleanup]);
|
|
35
|
+
return (0, react_1.useCallback)(function (content) {
|
|
36
|
+
// eslint-disable-next-line no-console
|
|
37
|
+
console.log(content);
|
|
38
|
+
var element = getElement();
|
|
39
|
+
clearTimeout(timer.current);
|
|
40
|
+
element.innerHTML = content;
|
|
41
|
+
timer.current = setTimeout(cleanup, 1000);
|
|
42
|
+
return timer.current;
|
|
43
|
+
}, [cleanup]);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=useReport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useReport.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/hooks/useReport.ts"],"names":[],"mappings":";;AAyBA,4BA0BC;AAnDD,+BAAsD;AAEtD,IAAM,UAAU,GAAG;IACjB,IAAI,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAA;IAEzD,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACrB,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QACvC,OAAO,CAAC,EAAE,GAAG,kBAAkB,CAAA;QAC/B,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAA;QAChC,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAA;QACzB,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,CAAA;QAC1B,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,MAAM,CAAA;QAC/B,OAAO,CAAC,KAAK,CAAC,SAAS,GAAG,wBAAw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|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = Settings;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var React = tslib_1.__importStar(require("react"));
|
|
6
|
+
var react_1 = require("react");
|
|
7
|
+
var SettingsContext_1 = require("../context/SettingsContext");
|
|
8
|
+
var Switch_1 = tslib_1.__importDefault(require("../ui/Switch"));
|
|
9
|
+
var appSettings_1 = require("./appSettings");
|
|
10
|
+
function Settings() {
|
|
11
|
+
var windowLocation = window.location;
|
|
12
|
+
var _a = (0, SettingsContext_1.useSettings)(), setOption = _a.setOption, _b = _a.settings, disableBeforeInput = _b.disableBeforeInput, isAutocomplete = _b.isAutocomplete, isCharLimit = _b.isCharLimit, isCharLimitUtf8 = _b.isCharLimitUtf8, isMaxLength = _b.isMaxLength, isRichText = _b.isRichText, measureTypingPerf = _b.measureTypingPerf, shouldUseLexicalContextMenu = _b.shouldUseLexicalContextMenu, showNestedEditorTreeView = _b.showNestedEditorTreeView, showTableOfContents = _b.showTableOfContents, showTreeView = _b.showTreeView;
|
|
13
|
+
var _c = (0, react_1.useState)(false), showSettings = _c[0], setShowSettings = _c[1];
|
|
14
|
+
var _d = (0, react_1.useMemo)(function () {
|
|
15
|
+
var parentWindow = window.parent;
|
|
16
|
+
var _search = windowLocation.search;
|
|
17
|
+
var _isSplitScreen = parentWindow && parentWindow.location.pathname === '/split/';
|
|
18
|
+
return [_isSplitScreen, _search];
|
|
19
|
+
}, [windowLocation]), isSplitScreen = _d[0], search = _d[1];
|
|
20
|
+
return (React.createElement(React.Fragment, null,
|
|
21
|
+
React.createElement("button", { className: "editor-dev-button ".concat(showSettings ? 'active' : ''), id: 'options-button', onClick: function () { return setShowSettings(!showSettings); }, type: 'button' }),
|
|
22
|
+
showSettings ? (React.createElement("div", { className: 'switches' },
|
|
23
|
+
appSettings_1.isDevPlayground && (React.createElement(Switch_1.default, { checked: isSplitScreen, onClick: function () {
|
|
24
|
+
if (isSplitScreen) {
|
|
25
|
+
window.parent.location.href = "/".concat(search);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
window.location.href = "/split/".concat(search);
|
|
29
|
+
}
|
|
30
|
+
}, text: 'Split Screen' })),
|
|
31
|
+
React.createElement(Switch_1.default, { checked: measureTypingPerf, onClick: function () { return setOption('measureTypingPerf', !measureTypingPerf); }, text: 'Measure Perf' }),
|
|
32
|
+
React.createElement(Switch_1.default, { checked: showTreeView, onClick: function () { return setOption('showTreeView', !showTreeView); }, text: 'Debug View' }),
|
|
33
|
+
React.createElement(Switch_1.default, { checked: showNestedEditorTreeView, onClick: function () { return setOption('showNestedEditorTreeView', !showNestedEditorTreeView); }, text: 'Nested Editors Debug View' }),
|
|
34
|
+
React.createElement(Switch_1.default, { checked: isRichText, onClick: function () {
|
|
35
|
+
setOption('isRichText', !isRichText);
|
|
36
|
+
}, text: 'Rich Text' }),
|
|
37
|
+
React.createElement(Switch_1.default, { checked: isCharLimit, onClick: function () { return setOption('isCharLimit', !isCharLimit); }, text: 'Char Limit' }),
|
|
38
|
+
React.createElement(Switch_1.default, { checked: isCharLimitUtf8, onClick: function () { return setOption('isCharLimitUtf8', !isCharLimitUtf8); }, text: 'Char Limit (UTF-8)' }),
|
|
39
|
+
React.createElement(Switch_1.default, { checked: isMaxLength, onClick: function () { return setOption('isMaxLength', !isMaxLength); }, text: 'Max Length' }),
|
|
40
|
+
React.createElement(Switch_1.default, { checked: isAutocomplete, onClick: function () { return setOption('isAutocomplete', !isAutocomplete); }, text: 'Autocomplete' }),
|
|
41
|
+
React.createElement(Switch_1.default, { checked: disableBeforeInput, onClick: function () {
|
|
42
|
+
setOption('disableBeforeInput', !disableBeforeInput);
|
|
43
|
+
setTimeout(function () { return window.location.reload(); }, 500);
|
|
44
|
+
}, text: 'Legacy Events' }),
|
|
45
|
+
React.createElement(Switch_1.default, { checked: showTableOfContents, onClick: function () {
|
|
46
|
+
setOption('showTableOfContents', !showTableOfContents);
|
|
47
|
+
}, text: 'Table Of Contents' }),
|
|
48
|
+
React.createElement(Switch_1.default, { checked: shouldUseLexicalContextMenu, onClick: function () {
|
|
49
|
+
setOption('shouldUseLexicalContextMenu', !shouldUseLexicalContextMenu);
|
|
50
|
+
}, text: 'Use Lexical Context Menu' }))) : null));
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=Settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/Settings.tsx"],"names":[],"mappings":";;AAMA,2BA0GC;;AAhHD,mDAA8B;AAC9B,+BAAyC;AACzC,8DAAwD;AACxD,gEAAiC;AACjC,6CAA+C;AAE/C,SAAwB,QAAQ;IAC9B,IAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAA;IAEhC,IAAA,KAeF,IAAA,6BAAW,GAAE,EAdf,SAAS,eAAA,EACT,gBAYC,EAXC,kBAAkB,wBAAA,EAClB,cAAc,oBAAA,EACd,WAAW,iBAAA,EACX,eAAe,qBAAA,EACf,WAAW,iBAAA,EACX,UAAU,gBAAA,EACV,iBAAiB,uBAAA,EACjB,2BAA2B,iCAAA,EAC3B,wBAAwB,8BAAA,EACxB,mBAAmB,yBAAA,EACnB,YAAY,kBAEC,CAAA;IACX,IAAA,KAAkC,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAhD,YAAY,QAAA,EAAE,eAAe,QAAmB,CAAA;IACjD,IAAA,KAA0B,IAAA,eAAO,EAAC;QACtC,IAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAA;QAClC,IAAM,OAAO,GAAG,cAAc,CAAC,MAAM,CAAA;QACrC,IAAM,cAAc,GAAG,YAAY,IAAI,YAAY,CAAC,QAAQ,CAAC,QAAQ,KAAK,SAAS,CAAA;QACnF,OAAO,CAAC,cAAc,EAAE,OAAO,CAAC,CAAA;IAClC,CAAC,EAAE,CAAC,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C,gBAAM,IACL,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE;oBACP,SAAS,CAAC,6BAA6B,EAAE,CAAC,2BAA2B,CAAC,CAAA;gBACxE,CAAC,EACD,IAAI,EAAC,0BAA0B,GAC/B,CACE,CACP,CAAC,CAAC,CAAC,IAAI,CACP,CACJ,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const isDevPlayground = false;
|
|
2
|
+
export declare const DEFAULT_SETTINGS: {
|
|
3
|
+
disableBeforeInput: boolean;
|
|
4
|
+
emptyEditor: boolean;
|
|
5
|
+
isAutocomplete: boolean;
|
|
6
|
+
isCharLimit: boolean;
|
|
7
|
+
isCharLimitUtf8: boolean;
|
|
8
|
+
isMaxLength: boolean;
|
|
9
|
+
isRichText: boolean;
|
|
10
|
+
measureTypingPerf: boolean;
|
|
11
|
+
shouldUseLexicalContextMenu: boolean;
|
|
12
|
+
showNestedEditorTreeView: boolean;
|
|
13
|
+
showTableOfContents: boolean;
|
|
14
|
+
showTreeView: boolean;
|
|
15
|
+
tableCellBackgroundColor: boolean;
|
|
16
|
+
tableCellMerge: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type SettingName = keyof typeof DEFAULT_SETTINGS;
|
|
19
|
+
export type Settings = typeof DEFAULT_SETTINGS;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_SETTINGS = exports.isDevPlayground = void 0;
|
|
4
|
+
exports.isDevPlayground = false;
|
|
5
|
+
exports.DEFAULT_SETTINGS = {
|
|
6
|
+
disableBeforeInput: false,
|
|
7
|
+
emptyEditor: exports.isDevPlayground,
|
|
8
|
+
isAutocomplete: false,
|
|
9
|
+
isCharLimit: false,
|
|
10
|
+
isCharLimitUtf8: false,
|
|
11
|
+
isMaxLength: false,
|
|
12
|
+
isRichText: true,
|
|
13
|
+
measureTypingPerf: false,
|
|
14
|
+
shouldUseLexicalContextMenu: false,
|
|
15
|
+
showNestedEditorTreeView: false,
|
|
16
|
+
showTableOfContents: false,
|
|
17
|
+
showTreeView: true,
|
|
18
|
+
tableCellBackgroundColor: true,
|
|
19
|
+
tableCellMerge: true,
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=appSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appSettings.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/appSettings.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,KAAK,CAAA;AAEvB,QAAA,gBAAgB,GAAG;IAC9B,kBAAkB,EAAE,KAAK;IACzB,WAAW,EAAE,uBAAe;IAC5B,cAAc,EAAE,KAAK;IACrB,WAAW,EAAE,KAAK;IAClB,eAAe,EAAE,KAAK;IACtB,WAAW,EAAE,KAAK;IAClB,UAAU,EAAE,IAAI;IAChB,iBAAiB,EAAE,KAAK;IACxB,2BAA2B,EAAE,KAAK;IAClC,wBAAwB,EAAE,KAAK;IAC/B,mBAAmB,EAAE,KAAK;IAC1B,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,cAAc,EAAE,IAAI;CACrB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createWebsocketProvider = createWebsocketProvider;
|
|
4
|
+
var y_websocket_1 = require("y-websocket");
|
|
5
|
+
var yjs_1 = require("yjs");
|
|
6
|
+
var url = new URL(window.location.href);
|
|
7
|
+
var params = new URLSearchParams(url.search);
|
|
8
|
+
var WEBSOCKET_ENDPOINT = params.get('collabEndpoint') || 'ws://localhost:1234';
|
|
9
|
+
var WEBSOCKET_SLUG = 'playground';
|
|
10
|
+
var WEBSOCKET_ID = params.get('collabId') || '0';
|
|
11
|
+
// parent dom -> child doc
|
|
12
|
+
function createWebsocketProvider(id, yjsDocMap) {
|
|
13
|
+
var doc = yjsDocMap.get(id);
|
|
14
|
+
if (doc === undefined) {
|
|
15
|
+
doc = new yjs_1.Doc();
|
|
16
|
+
yjsDocMap.set(id, doc);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
doc.load();
|
|
20
|
+
}
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
return new y_websocket_1.WebsocketProvider(WEBSOCKET_ENDPOINT, WEBSOCKET_SLUG + '/' + WEBSOCKET_ID + '/' + id, doc, {
|
|
23
|
+
connect: false,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=collaboration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collaboration.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/collaboration.ts"],"names":[],"mappings":";;AAWA,0DAcC;AAxBD,2CAA+C;AAC/C,2BAAyB;AAEzB,IAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AACzC,IAAM,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;AAC9C,IAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,qBAAqB,CAAA;AAChF,IAAM,cAAc,GAAG,YAAY,CAAA;AACnC,IAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,GAAG,CAAA;AAElD,0BAA0B;AAC1B,SAAgB,uBAAuB,CAAC,EAAU,EAAE,SAA2B;IAC7E,IAAI,GAAG,GAAG,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAE3B,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtB,GAAG,GAAG,IAAI,SAAG,EAAE,CAAA;QACf,SAAS,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;IACxB,CAAC;SAAM,CAAC;QACN,GAAG,CAAC,IAAI,EAAE,CAAA;IACZ,CAAC;IAED,aAAa;IACb,OAAO,IAAI,+BAAiB,CAAC,kBAAkB,EAAE,cAAc,GAAG,GAAG,GAAG,YAAY,GAAG,GAAG,GAAG,EAAE,EAAE,GAAG,EAAE;QACpG,OAAO,EAAE,KAAK;KACf,CAAC,CAAA;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
var appSettings_1 = require("./appSettings");
|
|
5
|
+
// override default options with query parameters if any
|
|
6
|
+
var urlSearchParams = new URLSearchParams(window.location.search);
|
|
7
|
+
for (var _i = 0, _b = Object.keys(appSettings_1.DEFAULT_SETTINGS); _i < _b.length; _i++) {
|
|
8
|
+
var param = _b[_i];
|
|
9
|
+
if (urlSearchParams.has(param)) {
|
|
10
|
+
try {
|
|
11
|
+
var value = JSON.parse((_a = urlSearchParams.get(param)) !== null && _a !== void 0 ? _a : 'true');
|
|
12
|
+
appSettings_1.DEFAULT_SETTINGS[param] = Boolean(value);
|
|
13
|
+
}
|
|
14
|
+
catch (error) {
|
|
15
|
+
console.warn("Unable to parse query parameter \"".concat(param, "\""));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (appSettings_1.DEFAULT_SETTINGS.disableBeforeInput) {
|
|
20
|
+
// @ts-expect-error
|
|
21
|
+
delete window.InputEvent.prototype.getTargetRanges;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=setupEnv.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setupEnv.js","sourceRoot":"","sources":["../../../../../src/components/TextEditorV2/lib/setupEnv.ts"],"names":[],"mappings":";;;AAAA,6CAA0D;AAE1D,wDAAwD;AACxD,IAAM,eAAe,GAAG,IAAI,eAAe,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;AAEnE,KAAoB,UAA6B,EAA7B,KAAA,MAAM,CAAC,IAAI,CAAC,8BAAgB,CAAC,EAA7B,cAA6B,EAA7B,IAA6B,EAAE,CAAC;IAA/C,IAAM,KAAK,SAAA;IACd,IAAI,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QAC/B,IAAI,CAAC;YACH,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAA,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAI,MAAM,CAAC,CAAA;YAC9D,8BAAgB,CAAC,KAAuB,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAA;QAC5D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,IAAI,CAAC,4CAAoC,KAAK,OAAG,CAAC,CAAA;QAC5D,CAAC;IACH,CAAC;AACH,CAAC;AAED,IAAI,8BAAgB,CAAC,kBAAkB,EAAE,CAAC;IACxC,mBAAmB;IACnB,OAAO,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAA;AACpD,CAAC"}
|