@maketribe/ms-app 3.2.22 → 3.2.23
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/basic/doc-editor/editor.vue.js +25 -49
- package/dist/cjs/components/basic/doc-editor/editor.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/AutoLinkPlugin.vue.js +2 -25
- package/dist/cjs/components/basic/doc-editor/plugins/AutoLinkPlugin.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/DocHtmlBlockComponent.js +41 -61
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/DocHtmlBlockComponent.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue.js +64 -0
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue.js.map +1 -0
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue2.js +4 -0
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue2.js.map +1 -0
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlEditDialog.js +49 -0
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlEditDialog.js.map +1 -0
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.js +49 -73
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.vue.js +13 -23
- package/dist/cjs/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/DocImageComponent.js +4 -27
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/DocImageComponent.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/ImageEditPanel.js +0 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/ImageEditPanel.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/ImageTools.vue.js +2 -23
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/ImageTools.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/index.js +5 -24
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/index.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/index.vue.js +2 -22
- package/dist/cjs/components/basic/doc-editor/plugins/ImagePlugin/index.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ImageTextPlugin/index.vue.js +2 -23
- package/dist/cjs/components/basic/doc-editor/plugins/ImageTextPlugin/index.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/{lexical-vue/components/LexicalContentEditable.vue.js → plugins/RichTextPlugin/ContentEditable.vue.js} +5 -18
- package/dist/{esm/components/basic/doc-editor/lexical-vue/components/LexicalContentEditable.vue.js.map → cjs/components/basic/doc-editor/plugins/RichTextPlugin/ContentEditable.vue.js.map} +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/RichTextPlugin/ContentEditable.vue2.js +4 -0
- package/dist/cjs/components/basic/doc-editor/plugins/RichTextPlugin/ContentEditable.vue2.js.map +1 -0
- package/dist/cjs/components/basic/doc-editor/plugins/RichTextPlugin/DecoratedTeleports.js +13 -0
- package/dist/cjs/components/basic/doc-editor/plugins/RichTextPlugin/DecoratedTeleports.js.map +1 -0
- package/dist/cjs/components/basic/doc-editor/{lexical-vue/components/LexicalRichTextPlugin.vue.js → plugins/RichTextPlugin/index.vue.js} +20 -26
- package/dist/cjs/components/basic/doc-editor/plugins/RichTextPlugin/index.vue.js.map +1 -0
- package/dist/cjs/components/basic/doc-editor/plugins/RichTextPlugin/nodes/RichTextNode.js +153 -0
- package/dist/cjs/components/basic/doc-editor/plugins/RichTextPlugin/nodes/RichTextNode.js.map +1 -0
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/ContentStyleTool.vue.js +2 -22
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/ContentStyleTool.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleTool.vue.js +2 -23
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleTool.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/InlineToolsPlugin.vue.js +2 -24
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/InlineToolsPlugin.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/PreviewToolbar.vue.js +16 -26
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/PreviewToolbar.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/index.vue.js +10 -24
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/index.vue.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/plugins/nodes.js +12 -7
- package/dist/cjs/components/basic/doc-editor/plugins/nodes.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/themes/doc-editor.css.js +1 -1
- package/dist/cjs/components/basic/doc-editor/themes/doc-editor.css.js.map +1 -1
- package/dist/cjs/components/basic/doc-editor/themes/doc-theme.css.js +4 -8
- package/dist/cjs/components/basic/doc-editor/themes/doc-theme.css.js.map +1 -1
- package/dist/cjs/components/data-model/data-filter-form/components/condition-date/condition-date-options.js +1 -1
- package/dist/cjs/components/data-model/data-filter-form/components/condition-date/condition-date-options.js.map +1 -1
- package/dist/cjs/modules/cms/dataviews/cms-articles/CmsArticlesTable.js +3 -3
- package/dist/cjs/modules/cms/dataviews/cms-articles/CmsArticlesTable.js.map +1 -1
- package/dist/cjs/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js +2 -2
- package/dist/cjs/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js.map +1 -1
- package/dist/cjs/modules/ms/dataviews/ms-material/ms-material-group/MsMaterialGroupForm.js +4 -0
- package/dist/cjs/modules/ms/dataviews/ms-material/ms-material-group/MsMaterialGroupForm.js.map +1 -1
- package/dist/cjs/modules/ms/dataviews/ms-member/MsMemberTable.js +1 -1
- package/dist/cjs/modules/ms/dataviews/ms-member/MsMemberTable.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/editor.vue.js +27 -51
- package/dist/esm/components/basic/doc-editor/editor.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/AutoLinkPlugin.vue.js +2 -25
- package/dist/esm/components/basic/doc-editor/plugins/AutoLinkPlugin.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/DocHtmlBlockComponent.js +40 -60
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/DocHtmlBlockComponent.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue.js +65 -0
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue.js.map +1 -0
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue2.js +5 -0
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlBlockTools.vue2.js.map +1 -0
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlEditDialog.js +49 -0
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlEditDialog.js.map +1 -0
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.js +51 -75
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.vue.js +12 -22
- package/dist/esm/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/DocImageComponent.js +1 -24
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/DocImageComponent.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/ImageEditPanel.js +0 -1
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/ImageEditPanel.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/ImageTools.vue.js +1 -22
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/ImageTools.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/index.js +4 -23
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/index.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/index.vue.js +1 -21
- package/dist/esm/components/basic/doc-editor/plugins/ImagePlugin/index.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ImageTextPlugin/index.vue.js +1 -22
- package/dist/esm/components/basic/doc-editor/plugins/ImageTextPlugin/index.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/{lexical-vue/components/LexicalContentEditable.vue.js → plugins/RichTextPlugin/ContentEditable.vue.js} +3 -16
- package/dist/{cjs/components/basic/doc-editor/lexical-vue/components/LexicalContentEditable.vue.js.map → esm/components/basic/doc-editor/plugins/RichTextPlugin/ContentEditable.vue.js.map} +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/RichTextPlugin/ContentEditable.vue2.js +5 -0
- package/dist/esm/components/basic/doc-editor/plugins/RichTextPlugin/ContentEditable.vue2.js.map +1 -0
- package/dist/esm/components/basic/doc-editor/plugins/RichTextPlugin/DecoratedTeleports.js +14 -0
- package/dist/esm/components/basic/doc-editor/plugins/RichTextPlugin/DecoratedTeleports.js.map +1 -0
- package/dist/esm/components/basic/doc-editor/{lexical-vue/components/LexicalRichTextPlugin.vue.js → plugins/RichTextPlugin/index.vue.js} +18 -24
- package/dist/esm/components/basic/doc-editor/plugins/RichTextPlugin/index.vue.js.map +1 -0
- package/dist/esm/components/basic/doc-editor/plugins/RichTextPlugin/nodes/RichTextNode.js +153 -0
- package/dist/esm/components/basic/doc-editor/plugins/RichTextPlugin/nodes/RichTextNode.js.map +1 -0
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/ContentStyleTool.vue.js +1 -21
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/ContentStyleTool.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleTool.vue.js +1 -22
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleTool.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/InlineToolsPlugin.vue.js +1 -23
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/InlineToolsPlugin.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/PreviewToolbar.vue.js +15 -25
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/PreviewToolbar.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/index.vue.js +9 -23
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/index.vue.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/nodes.js +13 -8
- package/dist/esm/components/basic/doc-editor/plugins/nodes.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/themes/doc-editor.css.js +1 -1
- package/dist/esm/components/basic/doc-editor/themes/doc-editor.css.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/themes/doc-theme.css.js +4 -8
- package/dist/esm/components/basic/doc-editor/themes/doc-theme.css.js.map +1 -1
- package/dist/esm/components/data-model/data-filter-form/components/condition-date/condition-date-options.js +1 -1
- package/dist/esm/components/data-model/data-filter-form/components/condition-date/condition-date-options.js.map +1 -1
- package/dist/esm/modules/cms/dataviews/cms-articles/CmsArticlesTable.js +3 -3
- package/dist/esm/modules/cms/dataviews/cms-articles/CmsArticlesTable.js.map +1 -1
- package/dist/esm/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js +2 -2
- package/dist/esm/modules/cms/pages/cms-contents/article-edit-add-page.vue2.js.map +1 -1
- package/dist/esm/modules/ms/dataviews/ms-material/ms-material-group/MsMaterialGroupForm.js +4 -0
- package/dist/esm/modules/ms/dataviews/ms-material/ms-material-group/MsMaterialGroupForm.js.map +1 -1
- package/dist/esm/modules/ms/dataviews/ms-member/MsMemberTable.js +1 -1
- package/dist/esm/modules/ms/dataviews/ms-member/MsMemberTable.js.map +1 -1
- package/dist/types/components/basic/doc-editor/plugins/HtmlBlockPlugin/DocHtmlBlockComponent.d.ts +6 -3
- package/dist/types/components/basic/doc-editor/plugins/HtmlBlockPlugin/HtmlEditDialog.d.ts +6 -0
- package/dist/types/components/basic/doc-editor/plugins/HtmlBlockPlugin/index.d.ts +18 -19
- package/dist/types/components/basic/doc-editor/plugins/ImagePlugin/index.d.ts +2 -1
- package/dist/types/components/basic/doc-editor/{lexical-vue/components/LexicalRichTextPlugin.vue.d.ts → plugins/RichTextPlugin/index.vue.d.ts} +12 -11
- package/dist/types/components/basic/doc-editor/plugins/RichTextPlugin/nodes/RichTextNode.d.ts +12 -0
- package/dist/types/components/basic/doc-editor/plugins/ToolbarPlugin/PreviewToolbar.vue.d.ts +22 -1
- package/dist/types/components/basic/doc-editor/plugins/ToolbarPlugin/index.vue.d.ts +22 -1
- package/dist/types/components/basic/doc-editor/plugins/VideoPlugin/VideoNode.d.ts +2 -2
- package/dist/types/components/basic/doc-editor/plugins/index.d.ts +9 -0
- package/dist/types/components/basic/doc-editor/plugins/nodes.d.ts +1 -1
- package/dist/types/components/data-model/data-filter-form/components/condition-date/condition-date-options.d.ts +1 -1
- package/dist/types/components/data-model/data-filter-form/components/condition-date/condition-date.d.ts +2 -2
- package/dist/types/components/data-model/data-filter-form/components/condition-date/index.d.ts +2 -2
- package/dist/types/components/data-model/data-table/views/table/index.d.ts +1 -1
- package/dist/types/components/data-model/data-table/views/table/table.d.ts +1 -1
- package/dist/types/components/data-model/data-table/views/tree/index.d.ts +1 -1
- package/dist/types/components/data-model/data-table/views/tree/tree.d.ts +1 -1
- package/dist/types/modules/ms/components/material-list/material-item.vue.d.ts +1 -1
- package/dist/types/modules/ms/dataviews/ms-material/ms-material-group/MsMaterialGroupForm.d.ts +1 -0
- package/package.json +25 -25
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoEmbedPlugin/shared.js +0 -5
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoEmbedPlugin/shared.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue.js +0 -4
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue2.js +0 -39
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue2.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/shared.js +0 -176
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/shared.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue.js +0 -4
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue2.js +0 -108
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue2.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue.js +0 -74
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue2.js +0 -4
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue2.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalContentEditable.vue2.js +0 -4
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalContentEditable.vue2.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalDecoratedTeleports.js +0 -26
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalDecoratedTeleports.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.js +0 -36
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue.js +0 -31
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue2.js +0 -4
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue2.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalMenu/shared.js +0 -16
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalMenu/shared.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue2.js +0 -4
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue2.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalTypeaheadMenuPlugin/shared.js +0 -5
- package/dist/cjs/components/basic/doc-editor/lexical-vue/components/LexicalTypeaheadMenuPlugin/shared.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/inject.js +0 -5
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/inject.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.js +0 -31
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.js +0 -29
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useDecorators.js +0 -31
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useDecorators.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useHistory.js +0 -15
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useHistory.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useLexicalComposer.js +0 -17
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useLexicalComposer.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.js +0 -54
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useMounted.js +0 -14
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useMounted.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useRichTextSetup.js +0 -16
- package/dist/cjs/components/basic/doc-editor/lexical-vue/composables/useRichTextSetup.js.map +0 -1
- package/dist/cjs/components/basic/doc-editor/plugins/index.vue.js +0 -23
- package/dist/cjs/components/basic/doc-editor/plugins/index.vue.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoEmbedPlugin/shared.js +0 -4
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoEmbedPlugin/shared.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue.js +0 -5
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue2.js +0 -40
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue2.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/shared.js +0 -176
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/shared.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue.js +0 -5
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue2.js +0 -109
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue2.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue.js +0 -75
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue2.js +0 -5
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue2.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalContentEditable.vue2.js +0 -5
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalContentEditable.vue2.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratedTeleports.js +0 -27
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratedTeleports.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.js +0 -36
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue.js +0 -32
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue2.js +0 -5
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue2.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalMenu/shared.js +0 -15
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalMenu/shared.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue2.js +0 -5
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue2.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalTypeaheadMenuPlugin/shared.js +0 -4
- package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalTypeaheadMenuPlugin/shared.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/inject.js +0 -5
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/inject.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.js +0 -31
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.js +0 -28
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useDecorators.js +0 -31
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useDecorators.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useHistory.js +0 -15
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useHistory.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useLexicalComposer.js +0 -17
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useLexicalComposer.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.js +0 -54
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useMounted.js +0 -14
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useMounted.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useRichTextSetup.js +0 -16
- package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useRichTextSetup.js.map +0 -1
- package/dist/esm/components/basic/doc-editor/plugins/index.vue.js +0 -24
- package/dist/esm/components/basic/doc-editor/plugins/index.vue.js.map +0 -1
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalAutoEmbedPlugin/index.vue.d.ts +0 -36
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalAutoEmbedPlugin/shared.d.ts +0 -21
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalAutoFocusPlugin.vue.d.ts +0 -15
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/index.vue.d.ts +0 -26
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalAutoLinkPlugin/shared.d.ts +0 -14
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalAutoScrollPlugin.vue.d.ts +0 -15
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalBlockWithAlignableContents.vue.d.ts +0 -31
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalCharacterLimitPlugin.vue.d.ts +0 -29
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalClearEditorPlugin.vue.d.ts +0 -6
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalClickableLinkPlugin.vue.d.ts +0 -29
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalCollaborationPlugin.vue.d.ts +0 -34
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalComposer.vue.d.ts +0 -31
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalContextMenuPlugin.vue.d.ts +0 -62
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.d.ts +0 -16
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalHashtagPlugin.vue.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue.d.ts +0 -16
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalLinkPlugin.vue.d.ts +0 -15
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalListPlugin.vue.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalMarkdownShortcutPlugin.vue.d.ts +0 -30
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalMenu/index.vue.d.ts +0 -55
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalMenu/shared.d.ts +0 -32
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalNodeMenuPlugin.vue.d.ts +0 -61
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalOnChangePlugin.vue.d.ts +0 -39
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalPlainTextPlugin.vue.d.ts +0 -12
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalTabIndentationPlugin.vue.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalTablePlugin.vue.d.ts +0 -39
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalTreeViewPlugin.vue.d.ts +0 -25
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalTypeaheadMenuPlugin/index.vue.d.ts +0 -59
- package/dist/types/components/basic/doc-editor/lexical-vue/components/LexicalTypeaheadMenuPlugin/shared.d.ts +0 -21
- package/dist/types/components/basic/doc-editor/lexical-vue/components/index.d.ts +0 -32
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/index.d.ts +0 -16
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/inject.d.ts +0 -1
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/listenerManager.d.ts +0 -1
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useCharacterLimit.d.ts +0 -9
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.d.ts +0 -1388
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useDecorators.d.ts +0 -4
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useEffect.d.ts +0 -5
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useHistory.d.ts +0 -4
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useLexicalCommandsLog.d.ts +0 -5
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useLexicalComposer.d.ts +0 -6
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useLexicalIsTextContentEmpty.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.d.ts +0 -7
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useLexicalTextEntity.d.ts +0 -3
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useList.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useMounted.d.ts +0 -4
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/usePlainTextSetup.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useReactiveEditor.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useRichTextSetup.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useTableOfContents.d.ts +0 -8
- package/dist/types/components/basic/doc-editor/lexical-vue/composables/useYjsCollaboration.d.ts +0 -8
- package/dist/types/components/basic/doc-editor/lexical-vue/index.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/lexical-vue/types.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/plugins/ToolbarPlugin/PreviewToolba-back.vue.d.ts +0 -2
- package/dist/types/components/basic/doc-editor/plugins/index.vue.d.ts +0 -2
- /package/dist/cjs/components/basic/doc-editor/plugins/{index.vue2.js → RichTextPlugin/index.vue2.js} +0 -0
- /package/dist/cjs/components/basic/doc-editor/plugins/{index.vue2.js.map → RichTextPlugin/index.vue2.js.map} +0 -0
- /package/dist/esm/components/basic/doc-editor/plugins/{index.vue2.js → RichTextPlugin/index.vue2.js} +0 -0
- /package/dist/esm/components/basic/doc-editor/plugins/{index.vue2.js.map → RichTextPlugin/index.vue2.js.map} +0 -0
- /package/dist/types/components/basic/doc-editor/{lexical-vue/components/LexicalCheckListPlugin.vue.d.ts → plugins/HtmlBlockPlugin/HtmlBlockTools.vue.d.ts} +0 -0
- /package/dist/types/components/basic/doc-editor/{lexical-vue/components/LexicalContentEditable.vue.d.ts → plugins/RichTextPlugin/ContentEditable.vue.d.ts} +0 -0
- /package/dist/types/components/basic/doc-editor/{lexical-vue/components/LexicalDecoratedTeleports.d.ts → plugins/RichTextPlugin/DecoratedTeleports.d.ts} +0 -0
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratedTeleports.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { defineComponent } from "vue";
|
|
2
|
-
import "@lexical/text";
|
|
3
|
-
import "@lexical/utils";
|
|
4
|
-
import "@lexical/overflow";
|
|
5
|
-
import "lexical";
|
|
6
|
-
import "tiny-invariant";
|
|
7
|
-
import { useDecorators } from "../composables/useDecorators.js";
|
|
8
|
-
import "@lexical/history";
|
|
9
|
-
import { useLexicalComposer } from "../composables/useLexicalComposer.js";
|
|
10
|
-
import "@lexical/list";
|
|
11
|
-
import "@lexical/dragon";
|
|
12
|
-
import "@lexical/plain-text";
|
|
13
|
-
import "@lexical/rich-text";
|
|
14
|
-
import "@lexical/yjs";
|
|
15
|
-
import "yjs";
|
|
16
|
-
const Decorators = defineComponent({
|
|
17
|
-
name: "LexicalDecoratedTeleports",
|
|
18
|
-
setup() {
|
|
19
|
-
const editor = useLexicalComposer();
|
|
20
|
-
const decorators = useDecorators(editor);
|
|
21
|
-
return () => decorators.value;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
export {
|
|
25
|
-
Decorators as default
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=LexicalDecoratedTeleports.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratedTeleports.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalDecoratedTeleports.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/components/LexicalDecoratedTeleports.ts"],"sourcesContent":["import { defineComponent } from 'vue'\r\nimport { useDecorators, useLexicalComposer } from '../composables'\r\n\r\nexport default defineComponent({\r\n name: 'LexicalDecoratedTeleports',\r\n setup() {\r\n const editor = useLexicalComposer()\r\n const decorators = useDecorators(editor)\r\n\r\n return () => decorators.value\r\n },\r\n})\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,MAAA,aAAe,gBAAgB;AAAA,EAC7B,MAAM;AAAA,EACN,QAAQ;AACN,UAAM,SAAS;AACT,UAAA,aAAa,cAAc,MAAM;AAEvC,WAAO,MAAM,WAAW;AAAA,EAC1B;AACF,CAAC;"}
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { DecoratorNode } from "lexical";
|
|
5
|
-
class DecoratorBlockNode extends DecoratorNode {
|
|
6
|
-
constructor(format, key) {
|
|
7
|
-
super(key);
|
|
8
|
-
__publicField(this, "__format");
|
|
9
|
-
this.__format = format || "";
|
|
10
|
-
}
|
|
11
|
-
exportJSON() {
|
|
12
|
-
return {
|
|
13
|
-
format: this.__format || "",
|
|
14
|
-
type: "decorator-block",
|
|
15
|
-
version: 1
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
createDOM() {
|
|
19
|
-
return document.createElement("div");
|
|
20
|
-
}
|
|
21
|
-
updateDOM() {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
setFormat(format) {
|
|
25
|
-
const self = this.getWritable();
|
|
26
|
-
self.__format = format;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function $isDecoratorBlockNode(node) {
|
|
30
|
-
return node instanceof DecoratorBlockNode;
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
$isDecoratorBlockNode,
|
|
34
|
-
DecoratorBlockNode
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=LexicalDecoratorBlockNode.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalDecoratorBlockNode.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/components/LexicalDecoratorBlockNode.ts"],"sourcesContent":["import type { ElementFormatType, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical'\r\n\r\nimport { DecoratorNode } from 'lexical'\r\nimport type { Component } from 'vue'\r\n\r\nexport type SerializedDecoratorBlockNode = Spread<\r\n {\r\n format: ElementFormatType\r\n },\r\n SerializedLexicalNode\r\n>\r\n\r\nexport class DecoratorBlockNode extends DecoratorNode<Component> {\r\n __format?: ElementFormatType\r\n\r\n constructor(format?: ElementFormatType, key?: NodeKey) {\r\n super(key)\r\n this.__format = format || ''\r\n }\r\n\r\n exportJSON(): SerializedDecoratorBlockNode {\r\n return {\r\n format: this.__format || '',\r\n type: 'decorator-block',\r\n version: 1,\r\n }\r\n }\r\n\r\n createDOM() {\r\n return document.createElement('div')\r\n }\r\n\r\n updateDOM() {\r\n return false\r\n }\r\n\r\n setFormat(format: ElementFormatType) {\r\n const self = this.getWritable()\r\n self.__format = format\r\n }\r\n}\r\n\r\nexport function $createDecoratorBlockNode() {\r\n return new DecoratorBlockNode()\r\n}\r\n\r\nexport function $isDecoratorBlockNode(node: LexicalNode | null | undefined): node is DecoratorBlockNode {\r\n return node instanceof DecoratorBlockNode\r\n}\r\n"],"names":[],"mappings":";;;;AAYO,MAAM,2BAA2B,cAAyB;AAAA,EAG/D,YAAY,QAA4B,KAAe;AACrD,UAAM,GAAG;AAHX;AAIE,SAAK,WAAW,UAAU;AAAA,EAC5B;AAAA,EAEA,aAA2C;AAClC,WAAA;AAAA,MACL,QAAQ,KAAK,YAAY;AAAA,MACzB,MAAM;AAAA,MACN,SAAS;AAAA,IAAA;AAAA,EAEb;AAAA,EAEA,YAAY;AACH,WAAA,SAAS,cAAc,KAAK;AAAA,EACrC;AAAA,EAEA,YAAY;AACH,WAAA;AAAA,EACT;AAAA,EAEA,UAAU,QAA2B;AAC7B,UAAA,OAAO,KAAK;AAClB,SAAK,WAAW;AAAA,EAClB;AACF;AAMO,SAAS,sBAAsB,MAAkE;AACtG,SAAO,gBAAgB;AACzB;"}
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent } from "vue";
|
|
2
|
-
import "@lexical/text";
|
|
3
|
-
import "@lexical/utils";
|
|
4
|
-
import "@lexical/overflow";
|
|
5
|
-
import "lexical";
|
|
6
|
-
import "tiny-invariant";
|
|
7
|
-
import { useHistory } from "../composables/useHistory.js";
|
|
8
|
-
import { useLexicalComposer } from "../composables/useLexicalComposer.js";
|
|
9
|
-
import "@lexical/list";
|
|
10
|
-
import "@lexical/dragon";
|
|
11
|
-
import "@lexical/plain-text";
|
|
12
|
-
import "@lexical/rich-text";
|
|
13
|
-
import "@lexical/yjs";
|
|
14
|
-
import "yjs";
|
|
15
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
|
-
__name: "LexicalHistoryPlugin",
|
|
17
|
-
props: {
|
|
18
|
-
externalHistoryState: {}
|
|
19
|
-
},
|
|
20
|
-
setup(__props) {
|
|
21
|
-
const props = __props;
|
|
22
|
-
const editor = useLexicalComposer();
|
|
23
|
-
useHistory(editor, props.externalHistoryState);
|
|
24
|
-
return (_ctx, _cache) => {
|
|
25
|
-
return null;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
export {
|
|
30
|
-
_sfc_main as default
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=LexicalHistoryPlugin.vue.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalHistoryPlugin.vue.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport type { HistoryState } from '@lexical/history'\r\nimport { useHistory, useLexicalComposer } from '../composables'\r\n\r\nconst props = defineProps<{\r\n externalHistoryState?: HistoryState\r\n}>()\r\n\r\nconst editor = useLexicalComposer()\r\nuseHistory(editor, props.externalHistoryState)\r\n</script>\r\n\r\n<template />\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAIA,UAAM,QAAQ;AAId,UAAM,SAAS;AACJ,eAAA,QAAQ,MAAM,oBAAoB;;;;;;"}
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalHistoryPlugin.vue2.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalHistoryPlugin.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { createCommand } from "lexical";
|
|
2
|
-
import "vue";
|
|
3
|
-
import "@lexical/text";
|
|
4
|
-
import "@lexical/utils";
|
|
5
|
-
import "@lexical/overflow";
|
|
6
|
-
import "tiny-invariant";
|
|
7
|
-
import "@lexical/history";
|
|
8
|
-
import "@lexical/list";
|
|
9
|
-
import "@lexical/dragon";
|
|
10
|
-
import "@lexical/plain-text";
|
|
11
|
-
import "@lexical/rich-text";
|
|
12
|
-
import "@lexical/yjs";
|
|
13
|
-
import "yjs";
|
|
14
|
-
createCommand("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");
|
|
15
|
-
//# sourceMappingURL=shared.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalMenu/shared.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sources":["../../../../../../../../src/components/basic/doc-editor/lexical-vue/components/LexicalMenu/shared.ts"],"sourcesContent":["import type {\r\n LexicalCommand,\r\n LexicalEditor,\r\n} from 'lexical'\r\nimport {\r\n createCommand,\r\n} from 'lexical'\r\nimport type { Component, ComponentPublicInstance, Ref } from 'vue'\r\nimport { ref, watchEffect } from 'vue'\r\nimport { useLexicalComposer } from '../../composables'\r\n\r\nexport interface MenuTextMatch {\r\n leadOffset: number\r\n matchingString: string\r\n replaceableString: string\r\n}\r\n\r\nexport interface MenuResolution {\r\n match?: MenuTextMatch\r\n getRect: () => DOMRect\r\n}\r\n\r\nexport const PUNCTUATION\r\n = '\\\\.,\\\\+\\\\*\\\\?\\\\$\\\\@\\\\|#{}\\\\(\\\\)\\\\^\\\\-\\\\[\\\\]\\\\\\\\/!%\\'\"~=<>_:;'\r\n\r\nexport class MenuOption {\r\n key: string\r\n ref: HTMLElement | null\r\n\r\n constructor(key: string) {\r\n this.key = key\r\n this.ref = null\r\n this.setRefElement = this.setRefElement.bind(this)\r\n }\r\n\r\n setRefElement(el: Element | ComponentPublicInstance | null) {\r\n this.ref = el as HTMLElement\r\n }\r\n}\r\n\r\nexport type MenuRenderFn<TOption extends MenuOption> = (\r\n anchorElementRef: Ref<HTMLElement | null>,\r\n itemProps: {\r\n selectedIndex: number | null\r\n selectOptionAndCleanUp: (option: TOption) => void\r\n setHighlightedIndex: (index: number) => void\r\n options: Array<TOption>\r\n },\r\n matchingString: string | null,\r\n) => Component | null\r\n\r\n// Got from https://stackoverflow.com/a/42543908/2013580\r\nexport function getScrollParent(\r\n element: HTMLElement,\r\n includeHidden: boolean,\r\n): HTMLElement | HTMLBodyElement {\r\n let style = getComputedStyle(element)\r\n const excludeStaticParent = style.position === 'absolute'\r\n const overflowRegex = includeHidden\r\n ? /(auto|scroll|hidden)/\r\n : /(auto|scroll)/\r\n if (style.position === 'fixed')\r\n return document.body\r\n\r\n for (\r\n let parent: HTMLElement | null = element;\r\n // eslint-disable-next-line no-cond-assign\r\n (parent = parent.parentElement);\r\n\r\n ) {\r\n style = getComputedStyle(parent)\r\n if (excludeStaticParent && style.position === 'static')\r\n continue\r\n\r\n if (\r\n overflowRegex.test(style.overflow + style.overflowY + style.overflowX)\r\n )\r\n return parent\r\n }\r\n return document.body\r\n}\r\n\r\nfunction isTriggerVisibleInNearestScrollContainer(\r\n targetElement: HTMLElement,\r\n containerElement: HTMLElement,\r\n): boolean {\r\n const tRect = targetElement.getBoundingClientRect()\r\n const cRect = containerElement.getBoundingClientRect()\r\n return tRect.top > cRect.top && tRect.top < cRect.bottom\r\n}\r\n\r\n// Reposition the menu on scroll, window resize, and element resize.\r\nexport function useDynamicPositioning(\r\n resolution: Ref<MenuResolution | null>,\r\n targetElement: Ref<HTMLElement | null>,\r\n onReposition: () => void,\r\n onVisibilityChange?: (isInView: boolean) => void,\r\n) {\r\n const editor = useLexicalComposer()\r\n\r\n watchEffect((onInvalidate) => {\r\n if (targetElement.value != null && resolution.value != null) {\r\n const rootElement = editor.getRootElement()\r\n const rootScrollParent\r\n = rootElement != null\r\n ? getScrollParent(rootElement, false)\r\n : document.body\r\n let ticking = false\r\n let previousIsInView = isTriggerVisibleInNearestScrollContainer(\r\n targetElement.value,\r\n rootScrollParent,\r\n )\r\n const handleScroll = function () {\r\n if (!ticking) {\r\n window.requestAnimationFrame(() => {\r\n onReposition()\r\n ticking = false\r\n })\r\n ticking = true\r\n }\r\n const isInView = isTriggerVisibleInNearestScrollContainer(\r\n targetElement.value!,\r\n rootScrollParent,\r\n )\r\n if (isInView !== previousIsInView) {\r\n previousIsInView = isInView\r\n if (onVisibilityChange != null)\r\n onVisibilityChange(isInView)\r\n }\r\n }\r\n const resizeObserver = new ResizeObserver(onReposition)\r\n window.addEventListener('resize', onReposition)\r\n document.addEventListener('scroll', handleScroll, {\r\n capture: true,\r\n passive: true,\r\n })\r\n resizeObserver.observe(targetElement.value)\r\n onInvalidate(() => {\r\n resizeObserver.unobserve(targetElement.value!)\r\n window.removeEventListener('resize', onReposition)\r\n document.removeEventListener('scroll', handleScroll, true)\r\n })\r\n }\r\n })\r\n}\r\n\r\nexport const SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND: LexicalCommand<{\r\n index: number\r\n option: MenuOption\r\n}> = createCommand('SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND')\r\n\r\nexport function useMenuAnchorRef(\r\n resolution: Ref<MenuResolution | null>,\r\n setResolution: (r: MenuResolution | null) => void,\r\n className?: string,\r\n parent: HTMLElement = document.body,\r\n): Ref<HTMLElement> {\r\n const editor = useLexicalComposer()\r\n const anchorElementRef = ref<HTMLElement>(document.createElement('div'))\r\n const positionMenu = () => {\r\n anchorElementRef.value.style.top = anchorElementRef.value.style.bottom\r\n const rootElement = editor.getRootElement()\r\n const containerDiv = anchorElementRef.value\r\n\r\n const menuEle = containerDiv.firstChild as HTMLElement\r\n if (rootElement !== null && resolution.value !== null) {\r\n const { left, top, width, height } = resolution.value!.getRect()\r\n const anchorHeight = anchorElementRef.value.offsetHeight // use to position under anchor\r\n containerDiv.style.top = `${\r\n top + window.scrollY + anchorHeight + 3\r\n }px`\r\n containerDiv.style.left = `${left + window.pageXOffset}px`\r\n containerDiv.style.height = `${height}px`\r\n containerDiv.style.width = `${width}px`\r\n if (menuEle !== null) {\r\n menuEle.style.top = `${top}`\r\n const menuRect = menuEle.getBoundingClientRect()\r\n const menuHeight = menuRect.height\r\n const menuWidth = menuRect.width\r\n\r\n const rootElementRect = rootElement.getBoundingClientRect()\r\n\r\n if (left + menuWidth > rootElementRect.right) {\r\n containerDiv.style.left = `${\r\n rootElementRect.right - menuWidth + window.pageXOffset\r\n }px`\r\n }\r\n if (\r\n (top + menuHeight > window.innerHeight\r\n || top + menuHeight > rootElementRect.bottom)\r\n && top - rootElementRect.top > menuHeight\r\n ) {\r\n containerDiv.style.top = `${\r\n top - menuHeight + window.pageYOffset - height\r\n }px`\r\n }\r\n }\r\n\r\n if (!containerDiv.isConnected) {\r\n if (className != null)\r\n containerDiv.className = className\r\n\r\n containerDiv.setAttribute('aria-label', 'Typeahead menu')\r\n containerDiv.setAttribute('id', 'typeahead-menu')\r\n containerDiv.setAttribute('role', 'listbox')\r\n containerDiv.style.display = 'block'\r\n containerDiv.style.position = 'absolute'\r\n parent.append(containerDiv)\r\n }\r\n anchorElementRef.value = containerDiv\r\n rootElement.setAttribute('aria-controls', 'typeahead-menu')\r\n }\r\n }\r\n\r\n watchEffect(() => {\r\n const rootElement = editor.getRootElement()\r\n if (resolution.value !== null) {\r\n positionMenu()\r\n return () => {\r\n if (rootElement !== null)\r\n rootElement.removeAttribute('aria-controls')\r\n\r\n const containerDiv = anchorElementRef.value\r\n if (containerDiv !== null && containerDiv.isConnected)\r\n containerDiv.remove()\r\n }\r\n }\r\n })\r\n\r\n const onVisibilityChange = (isInView: boolean) => {\r\n if (resolution.value !== null) {\r\n if (!isInView)\r\n setResolution(null)\r\n }\r\n }\r\n\r\n useDynamicPositioning(\r\n resolution,\r\n anchorElementRef,\r\n positionMenu,\r\n onVisibilityChange,\r\n )\r\n\r\n return anchorElementRef\r\n}\r\n\r\nexport type TriggerFn = (\r\n text: string,\r\n editor: LexicalEditor,\r\n) => MenuTextMatch | null\r\n"],"names":[],"mappings":";;;;;;;;;;;;;AAqJK,cAAc,2CAA2C;"}
|
package/dist/esm/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalRichTextPlugin.vue.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/components/LexicalRichTextPlugin.vue"],"sourcesContent":["<script setup lang=\"ts\">\r\nimport { useCanShowPlaceholder, useLexicalComposer, useRichTextSetup } from '../composables'\r\nimport Decorators from './LexicalDecoratedTeleports'\r\nimport { ref,defineProps,computed,defineEmits,onMounted,onUnmounted,watch } from \"vue\"\r\nimport { $getRoot, $getSelection ,$createRangeSelection,$selectAll } from 'lexical'\r\nimport { $generateHtmlFromNodes,$generateNodesFromDOM } from '@lexical/html'\r\n\r\n// 事件\r\nconst emit = defineEmits([\"change\"]);\r\n\r\n// 参数\r\nconst props = defineProps({\r\n content:{ type:String,default:`` }\r\n})\r\n\r\nconst editor = useLexicalComposer()\r\n\r\nconst canShowPlaceholder = useCanShowPlaceholder(editor)\r\n\r\nconst parser = new DOMParser();\r\n\r\n// html 内容\r\nconst htmlContent = ref(\"\");\r\n\r\n// 空内容\r\nconst contentIsEmpty = computed(()=>htmlContent.value == `<p class=\"mk-doc__paragraph\"><br></p>` || !htmlContent.value);\r\n\r\n// 设置 HTML\r\nconst setHtml = (html : any)=>{\r\n\r\n // 内容不同则重置 \r\n if(htmlContent.value != html){\r\n\r\n let nodes : Array<any> = [];\r\n\r\n htmlContent.value = html;\r\n\r\n editor.update(()=>{\r\n\r\n if(html.trim()){\r\n // Once you have the DOM instance it's easy to generate LexicalNodes.\r\n nodes = $generateNodesFromDOM(editor,parser.parseFromString(html.trim(),\"text/html\"));\r\n }\r\n // 设置权限替换\r\n $selectAll();\r\n\r\n if(nodes.length > 0){\r\n $getSelection()?.insertNodes(nodes);\r\n }\r\n else{\r\n $getSelection()?.insertText(\"\")\r\n }\r\n \r\n })\r\n }\r\n}\r\n\r\n\r\nonMounted(()=>{\r\n // 初始化\r\n watch(()=>props.content,setHtml,{ immediate:true });\r\n // 监听内容变化\r\n watch(htmlContent,(value:any)=>emit('change',value));\r\n\r\n // 更新操作\r\n const unregisterMergeListener = editor.registerUpdateListener(({ editorState }) => {\r\n editorState.read(() => {\r\n htmlContent.value = $generateHtmlFromNodes(editor);\r\n })\r\n })\r\n\r\n // 取消华仔\r\n onUnmounted(() => unregisterMergeListener());\r\n})\r\n\r\n\r\n// 使用富文本\r\nuseRichTextSetup(editor)\r\n\r\n</script>\r\n\r\n<template>\r\n <div class=\"mk-doc-editor__stage__editable\">\r\n <slot name=\"contentEditable\"></slot>\r\n <slot v-if=\"canShowPlaceholder && contentIsEmpty\" name=\"placeholder\"></slot>\r\n <Decorators />\r\n </div>\r\n\r\n</template>\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,UAAM,OAAO;AAGb,UAAM,QAAQ;AAId,UAAM,SAAS;AAET,UAAA,qBAAqB,sBAAsB,MAAM;AAEjD,UAAA,SAAS,IAAI;AAGb,UAAA,cAAc,IAAI,EAAE;AAGpB,UAAA,iBAAiB,SAAS,MAAI,YAAY,SAAS,2CAA2C,CAAC,YAAY,KAAK;AAGhH,UAAA,UAAU,CAAC,SAAa;AAGvB,UAAA,YAAY,SAAS,MAAK;AAE3B,YAAI,QAAqB,CAAA;AAEzB,oBAAY,QAAQ;AAEpB,eAAO,OAAO,MAAI;;AAEb,cAAA,KAAK,QAAO;AAEL,oBAAA,sBAAsB,QAAO,OAAO,gBAAgB,KAAK,KAAK,GAAE,WAAW,CAAC;AAAA,UACtF;AAEW;AAER,cAAA,MAAM,SAAS,GAAE;AACJ,gCAAA,MAAA,mBAAG,YAAY;AAAA,UAAK,OAEhC;AACY,gCAAA,MAAA,mBAAG,WAAW;AAAA,UAC9B;AAAA,QAAA,CAED;AAAA,MACH;AAAA,IAAA;AAIJ,cAAU,MAAI;AAEZ,YAAM,MAAI,MAAM,SAAQ,SAAQ,EAAE,WAAU,MAAM;AAElD,YAAM,aAAY,CAAC,UAAY,KAAK,UAAS,KAAK,CAAC;AAGnD,YAAM,0BAA0B,OAAO,uBAAuB,CAAC,EAAE,kBAAkB;AACjF,oBAAY,KAAK,MAAM;AACT,sBAAA,QAAQ,uBAAuB,MAAM;AAAA,QAAA,CAClD;AAAA,MAAA,CACF;AAGW,kBAAA,MAAM,yBAAyB;AAAA,IAAA,CAC5C;AAID,qBAAiB,MAAM;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LexicalRichTextPlugin.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sources":["../../../../../../../../src/components/basic/doc-editor/lexical-vue/components/LexicalTypeaheadMenuPlugin/shared.ts"],"sourcesContent":["import type {\r\n CommandListenerPriority,\r\n LexicalCommand,\r\n} from 'lexical'\r\nimport {\r\n createCommand,\r\n} from 'lexical'\r\n\r\nimport type {\r\n MenuOption,\r\n MenuRenderFn,\r\n MenuResolution,\r\n MenuTextMatch,\r\n TriggerFn,\r\n} from '../LexicalMenu/shared'\r\n\r\nexport const PUNCTUATION\r\n = '\\\\.,\\\\+\\\\*\\\\?\\\\$\\\\@\\\\|#{}\\\\(\\\\)\\\\^\\\\-\\\\[\\\\]\\\\\\\\/!%\\'\"~=<>_:;'\r\n\r\n// Got from https://stackoverflow.com/a/42543908/2013580\r\nexport function getScrollParent(\r\n element: HTMLElement,\r\n includeHidden: boolean,\r\n): HTMLElement | HTMLBodyElement {\r\n let style = getComputedStyle(element)\r\n const excludeStaticParent = style.position === 'absolute'\r\n const overflowRegex = includeHidden\r\n ? /(auto|scroll|hidden)/\r\n : /(auto|scroll)/\r\n if (style.position === 'fixed')\r\n return document.body\r\n\r\n for (\r\n let parent: HTMLElement | null = element;\r\n // eslint-disable-next-line no-cond-assign\r\n (parent = parent.parentElement);\r\n\r\n ) {\r\n style = getComputedStyle(parent)\r\n if (excludeStaticParent && style.position === 'static')\r\n continue\r\n\r\n if (\r\n overflowRegex.test(style.overflow + style.overflowY + style.overflowX)\r\n )\r\n return parent\r\n }\r\n return document.body\r\n}\r\n\r\nexport { useDynamicPositioning } from '../LexicalMenu/shared'\r\n\r\nexport const SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND: LexicalCommand<{\r\n index: number\r\n option: MenuOption\r\n}> = createCommand('SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND')\r\n\r\nexport function useBasicTypeaheadTriggerMatch(\r\n trigger: string,\r\n { minLength = 1, maxLength = 75 }: { minLength?: number, maxLength?: number },\r\n): TriggerFn {\r\n return (text: string) => {\r\n const validChars = `[^${trigger}${PUNCTUATION}\\\\s]`\r\n const TypeaheadTriggerRegex = new RegExp(\r\n `(^|\\\\s|\\\\()(`\r\n + `[${\r\n trigger\r\n }]`\r\n + `((?:${\r\n validChars\r\n }){0,${\r\n maxLength\r\n }})`\r\n + `)$`,\r\n )\r\n const match = TypeaheadTriggerRegex.exec(text)\r\n if (match !== null) {\r\n const maybeLeadingWhitespace = match[1]\r\n const matchingString = match[3]\r\n if (matchingString.length >= minLength) {\r\n return {\r\n leadOffset: match.index + maybeLeadingWhitespace.length,\r\n matchingString,\r\n replaceableString: match[2],\r\n }\r\n }\r\n }\r\n return null\r\n }\r\n}\r\n\r\nexport interface TypeaheadMenuPluginProps<TOption extends MenuOption> {\r\n options: Array<TOption>\r\n triggerFn: TriggerFn\r\n anchorClassName?: string\r\n commandPriority?: CommandListenerPriority\r\n parent?: HTMLElement\r\n}\r\n\r\nexport { MenuOption, MenuRenderFn, MenuResolution, MenuTextMatch, TriggerFn }\r\n"],"names":[],"mappings":";;AAuDK,cAAc,2CAA2C;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inject.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/inject.ts"],"sourcesContent":["export const LexicalEditorProviderKey = 'LexicalEditorProviderKey'\r\n"],"names":[],"mappings":"AAAO,MAAM,2BAA2B;"}
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ref, readonly } from "vue";
|
|
2
|
-
import { $canShowPlaceholderCurry } from "@lexical/text";
|
|
3
|
-
import { mergeRegister } from "@lexical/utils";
|
|
4
|
-
import { useMounted } from "./useMounted.js";
|
|
5
|
-
function canShowPlaceholderFromCurrentEditorState(editor) {
|
|
6
|
-
const currentCanShowPlaceholder = editor.getEditorState().read($canShowPlaceholderCurry(editor.isComposing()));
|
|
7
|
-
return currentCanShowPlaceholder;
|
|
8
|
-
}
|
|
9
|
-
function useCanShowPlaceholder(editor) {
|
|
10
|
-
const initialState = editor.getEditorState().read($canShowPlaceholderCurry(editor.isComposing()));
|
|
11
|
-
const canShowPlaceholder = ref(initialState);
|
|
12
|
-
function resetCanShowPlaceholder() {
|
|
13
|
-
const currentCanShowPlaceholder = canShowPlaceholderFromCurrentEditorState(editor);
|
|
14
|
-
canShowPlaceholder.value = currentCanShowPlaceholder;
|
|
15
|
-
}
|
|
16
|
-
useMounted(() => {
|
|
17
|
-
return mergeRegister(
|
|
18
|
-
editor.registerUpdateListener(() => {
|
|
19
|
-
resetCanShowPlaceholder();
|
|
20
|
-
}),
|
|
21
|
-
editor.registerEditableListener(() => {
|
|
22
|
-
resetCanShowPlaceholder();
|
|
23
|
-
})
|
|
24
|
-
);
|
|
25
|
-
});
|
|
26
|
-
return readonly(canShowPlaceholder);
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
useCanShowPlaceholder
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=useCanShowPlaceholder.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCanShowPlaceholder.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useCanShowPlaceholder.ts"],"sourcesContent":["import { readonly, ref } from 'vue'\r\nimport { $canShowPlaceholderCurry } from '@lexical/text'\r\nimport type { LexicalEditor } from 'lexical'\r\nimport { mergeRegister } from '@lexical/utils'\r\nimport { useMounted } from './useMounted'\r\n\r\nfunction canShowPlaceholderFromCurrentEditorState(\r\n editor: LexicalEditor,\r\n): boolean {\r\n const currentCanShowPlaceholder = editor\r\n .getEditorState()\r\n .read($canShowPlaceholderCurry(editor.isComposing()))\r\n\r\n return currentCanShowPlaceholder\r\n}\r\n\r\nexport function useCanShowPlaceholder(editor: LexicalEditor) {\r\n const initialState = editor\r\n .getEditorState()\r\n .read($canShowPlaceholderCurry(editor.isComposing()))\r\n\r\n const canShowPlaceholder = ref(initialState)\r\n\r\n function resetCanShowPlaceholder() {\r\n const currentCanShowPlaceholder\r\n = canShowPlaceholderFromCurrentEditorState(editor)\r\n canShowPlaceholder.value = currentCanShowPlaceholder\r\n\r\n }\r\n\r\n useMounted(() => {\r\n return mergeRegister(\r\n editor.registerUpdateListener(() => {\r\n resetCanShowPlaceholder()\r\n }),\r\n editor.registerEditableListener(() => {\r\n resetCanShowPlaceholder()\r\n }),\r\n )\r\n })\r\n\r\n return readonly(canShowPlaceholder)\r\n}\r\n"],"names":[],"mappings":";;;;AAMA,SAAS,yCACP,QACS;AACH,QAAA,4BAA4B,OAC/B,iBACA,KAAK,yBAAyB,OAAO,YAAa,CAAA,CAAC;AAE/C,SAAA;AACT;AAEO,SAAS,sBAAsB,QAAuB;AACrD,QAAA,eAAe,OAClB,iBACA,KAAK,yBAAyB,OAAO,YAAa,CAAA,CAAC;AAEhD,QAAA,qBAAqB,IAAI,YAAY;AAE3C,WAAS,0BAA0B;AAC3B,UAAA,4BACJ,yCAAyC,MAAM;AACjD,uBAAmB,QAAQ;AAAA,EAE7B;AAEA,aAAW,MAAM;AACR,WAAA;AAAA,MACL,OAAO,uBAAuB,MAAM;AACV;MAAA,CACzB;AAAA,MACD,OAAO,yBAAyB,MAAM;AACZ;MAAA,CACzB;AAAA,IAAA;AAAA,EACH,CACD;AAED,SAAO,SAAS,kBAAkB;AACpC;"}
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ref } from "vue";
|
|
2
|
-
const entries = [
|
|
3
|
-
["Cat", "rgb(125, 50, 0)"],
|
|
4
|
-
["Dog", "rgb(100, 0, 0)"],
|
|
5
|
-
["Rabbit", "rgb(150, 0, 0)"],
|
|
6
|
-
["Frog", "rgb(200, 0, 0)"],
|
|
7
|
-
["Fox", "rgb(200, 75, 0)"],
|
|
8
|
-
["Hedgehog", "rgb(0, 75, 0)"],
|
|
9
|
-
["Pigeon", "rgb(0, 125, 0)"],
|
|
10
|
-
["Squirrel", "rgb(75, 100, 0)"],
|
|
11
|
-
["Bear", "rgb(125, 100, 0)"],
|
|
12
|
-
["Tiger", "rgb(0, 0, 150)"],
|
|
13
|
-
["Leopard", "rgb(0, 0, 200)"],
|
|
14
|
-
["Zebra", "rgb(0, 0, 250)"],
|
|
15
|
-
["Wolf", "rgb(0, 100, 150)"],
|
|
16
|
-
["Owl", "rgb(0, 100, 100)"],
|
|
17
|
-
["Gull", "rgb(100, 0, 100)"],
|
|
18
|
-
["Squid", "rgb(150, 0, 150)"]
|
|
19
|
-
];
|
|
20
|
-
const randomEntry = entries[Math.floor(Math.random() * entries.length)];
|
|
21
|
-
ref({
|
|
22
|
-
clientID: 0,
|
|
23
|
-
color: randomEntry[1],
|
|
24
|
-
isCollabActive: false,
|
|
25
|
-
name: randomEntry[0],
|
|
26
|
-
yjsDocMap: /* @__PURE__ */ new Map()
|
|
27
|
-
});
|
|
28
|
-
//# sourceMappingURL=useCollaborationContext.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useCollaborationContext.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useCollaborationContext.ts"],"sourcesContent":["import { ref } from 'vue'\r\nimport type { Doc } from 'yjs'\r\n\r\nexport interface CollaborationContextType {\r\n clientID: number\r\n color: string\r\n isCollabActive: boolean\r\n name: string\r\n yjsDocMap: Map<string, Doc>\r\n}\r\n\r\nconst entries = [\r\n ['Cat', 'rgb(125, 50, 0)'],\r\n ['Dog', 'rgb(100, 0, 0)'],\r\n ['Rabbit', 'rgb(150, 0, 0)'],\r\n ['Frog', 'rgb(200, 0, 0)'],\r\n ['Fox', 'rgb(200, 75, 0)'],\r\n ['Hedgehog', 'rgb(0, 75, 0)'],\r\n ['Pigeon', 'rgb(0, 125, 0)'],\r\n ['Squirrel', 'rgb(75, 100, 0)'],\r\n ['Bear', 'rgb(125, 100, 0)'],\r\n ['Tiger', 'rgb(0, 0, 150)'],\r\n ['Leopard', 'rgb(0, 0, 200)'],\r\n ['Zebra', 'rgb(0, 0, 250)'],\r\n ['Wolf', 'rgb(0, 100, 150)'],\r\n ['Owl', 'rgb(0, 100, 100)'],\r\n ['Gull', 'rgb(100, 0, 100)'],\r\n ['Squid', 'rgb(150, 0, 150)'],\r\n]\r\n\r\nconst randomEntry = entries[Math.floor(Math.random() * entries.length)]\r\n\r\nexport default ref<CollaborationContextType>({\r\n clientID: 0,\r\n color: randomEntry[1],\r\n isCollabActive: false,\r\n name: randomEntry[0],\r\n yjsDocMap: new Map(),\r\n})\r\n"],"names":[],"mappings":";AAWA,MAAM,UAAU;AAAA,EACd,CAAC,OAAO,iBAAiB;AAAA,EACzB,CAAC,OAAO,gBAAgB;AAAA,EACxB,CAAC,UAAU,gBAAgB;AAAA,EAC3B,CAAC,QAAQ,gBAAgB;AAAA,EACzB,CAAC,OAAO,iBAAiB;AAAA,EACzB,CAAC,YAAY,eAAe;AAAA,EAC5B,CAAC,UAAU,gBAAgB;AAAA,EAC3B,CAAC,YAAY,iBAAiB;AAAA,EAC9B,CAAC,QAAQ,kBAAkB;AAAA,EAC3B,CAAC,SAAS,gBAAgB;AAAA,EAC1B,CAAC,WAAW,gBAAgB;AAAA,EAC5B,CAAC,SAAS,gBAAgB;AAAA,EAC1B,CAAC,QAAQ,kBAAkB;AAAA,EAC3B,CAAC,OAAO,kBAAkB;AAAA,EAC1B,CAAC,QAAQ,kBAAkB;AAAA,EAC3B,CAAC,SAAS,kBAAkB;AAC9B;AAEA,MAAM,cAAc,QAAQ,KAAK,MAAM,KAAK,WAAW,QAAQ,MAAM,CAAC;AAEvD,IAA8B;AAAA,EAC3C,UAAU;AAAA,EACV,OAAO,YAAY,CAAC;AAAA,EACpB,gBAAgB;AAAA,EAChB,MAAM,YAAY,CAAC;AAAA,EACnB,+BAAe,IAAI;AACrB,CAAC;"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { shallowRef, computed, unref, h, Teleport } from "vue";
|
|
2
|
-
import { useMounted } from "./useMounted.js";
|
|
3
|
-
function useDecorators(editor) {
|
|
4
|
-
const decorators = shallowRef(editor.getDecorators());
|
|
5
|
-
useMounted(() => {
|
|
6
|
-
return editor.registerDecoratorListener((nextDecorators) => {
|
|
7
|
-
decorators.value = nextDecorators;
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
return computed(() => {
|
|
11
|
-
const decoratedTeleports = [];
|
|
12
|
-
const decoratorKeys = Object.keys(unref(decorators));
|
|
13
|
-
for (let i = 0; i < decoratorKeys.length; i++) {
|
|
14
|
-
const nodeKey = decoratorKeys[i];
|
|
15
|
-
const vueDecorator = decorators.value[nodeKey];
|
|
16
|
-
const element = editor.getElementByKey(nodeKey);
|
|
17
|
-
if (element !== null) {
|
|
18
|
-
decoratedTeleports.push(
|
|
19
|
-
h(Teleport, {
|
|
20
|
-
to: element
|
|
21
|
-
}, vueDecorator)
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return decoratedTeleports;
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
useDecorators
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=useDecorators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDecorators.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useDecorators.ts"],"sourcesContent":["import type { LexicalEditor } from 'lexical'\r\nimport type { DefineComponent } from 'vue'\r\nimport { Teleport, computed, h, shallowRef, unref } from 'vue'\r\nimport { useMounted } from './useMounted'\r\n\r\nexport function useDecorators(editor: LexicalEditor) {\r\n const decorators = shallowRef<Record<string, DefineComponent>>(editor.getDecorators())\r\n\r\n useMounted(() => {\r\n return editor.registerDecoratorListener((nextDecorators) => {\r\n decorators.value = nextDecorators as Record<string, DefineComponent>\r\n })\r\n })\r\n\r\n // Return decorators defined as Vue Teleports\r\n return computed(() => {\r\n const decoratedTeleports = []\r\n const decoratorKeys = Object.keys(unref(decorators))\r\n for (let i = 0; i < decoratorKeys.length; i++) {\r\n const nodeKey = decoratorKeys[i]\r\n const vueDecorator = decorators.value[nodeKey]\r\n const element = editor.getElementByKey(nodeKey)\r\n if (element !== null) {\r\n decoratedTeleports.push(\r\n h(Teleport, {\r\n to: element,\r\n }, vueDecorator),\r\n )\r\n }\r\n }\r\n\r\n return decoratedTeleports\r\n })\r\n}\r\n"],"names":[],"mappings":";;AAKO,SAAS,cAAc,QAAuB;AACnD,QAAM,aAAa,WAA4C,OAAO,cAAe,CAAA;AAErF,aAAW,MAAM;AACR,WAAA,OAAO,0BAA0B,CAAC,mBAAmB;AAC1D,iBAAW,QAAQ;AAAA,IAAA,CACpB;AAAA,EAAA,CACF;AAGD,SAAO,SAAS,MAAM;AACpB,UAAM,qBAAqB,CAAA;AAC3B,UAAM,gBAAgB,OAAO,KAAK,MAAM,UAAU,CAAC;AACnD,aAAS,IAAI,GAAG,IAAI,cAAc,QAAQ,KAAK;AACvC,YAAA,UAAU,cAAc,CAAC;AACzB,YAAA,eAAe,WAAW,MAAM,OAAO;AACvC,YAAA,UAAU,OAAO,gBAAgB,OAAO;AAC9C,UAAI,YAAY,MAAM;AACD,2BAAA;AAAA,UACjB,EAAE,UAAU;AAAA,YACV,IAAI;AAAA,aACH,YAAY;AAAA,QAAA;AAAA,MAEnB;AAAA,IACF;AAEO,WAAA;AAAA,EAAA,CACR;AACH;"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { computed, unref, watchEffect } from "vue";
|
|
2
|
-
import { createEmptyHistoryState, registerHistory } from "@lexical/history";
|
|
3
|
-
function useHistory(editor, externalHistoryState, delay) {
|
|
4
|
-
const historyState = computed(
|
|
5
|
-
() => unref(externalHistoryState) || createEmptyHistoryState()
|
|
6
|
-
);
|
|
7
|
-
watchEffect((onInvalidate) => {
|
|
8
|
-
const unregisterListener = registerHistory(unref(editor), historyState.value, unref(delay) || 1e3);
|
|
9
|
-
onInvalidate(unregisterListener);
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
useHistory
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=useHistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useHistory.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useHistory.ts"],"sourcesContent":["import type { HistoryState } from '@lexical/history'\r\nimport type { LexicalEditor } from 'lexical'\r\nimport { type MaybeRef, computed, unref, watchEffect } from 'vue'\r\n\r\nimport { createEmptyHistoryState, registerHistory } from '@lexical/history'\r\n\r\nexport function useHistory(\r\n editor: MaybeRef<LexicalEditor>,\r\n externalHistoryState?: MaybeRef<HistoryState>,\r\n delay?: MaybeRef<number>,\r\n) {\r\n const historyState = computed<HistoryState>(\r\n () => unref(externalHistoryState) || createEmptyHistoryState(),\r\n )\r\n\r\n watchEffect((onInvalidate) => {\r\n const unregisterListener = registerHistory(unref(editor), historyState.value, unref(delay) || 1000)\r\n\r\n onInvalidate(unregisterListener)\r\n })\r\n}\r\n"],"names":[],"mappings":";;AAMgB,SAAA,WACd,QACA,sBACA,OACA;AACA,QAAM,eAAe;AAAA,IACnB,MAAM,MAAM,oBAAoB,KAAK,wBAAwB;AAAA,EAAA;AAG/D,cAAY,CAAC,iBAAiB;AACtB,UAAA,qBAAqB,gBAAgB,MAAM,MAAM,GAAG,aAAa,OAAO,MAAM,KAAK,KAAK,GAAI;AAElG,iBAAa,kBAAkB;AAAA,EAAA,CAChC;AACH;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { inject } from "vue";
|
|
2
|
-
import invariant from "tiny-invariant";
|
|
3
|
-
import { LexicalEditorProviderKey } from "./inject.js";
|
|
4
|
-
function useLexicalComposer() {
|
|
5
|
-
const editor = inject(LexicalEditorProviderKey);
|
|
6
|
-
if (!editor) {
|
|
7
|
-
invariant(
|
|
8
|
-
false,
|
|
9
|
-
"useLexicalComposer: cannot find a LexicalComposer"
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
return editor;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
useLexicalComposer
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=useLexicalComposer.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useLexicalComposer.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLexicalComposer.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useLexicalComposer.ts"],"sourcesContent":["import { inject } from 'vue'\r\nimport invariant from 'tiny-invariant'\r\nimport type { LexicalEditor } from 'lexical'\r\nimport { LexicalEditorProviderKey } from './inject'\r\n\r\nexport function useLexicalComposer() {\r\n const editor = inject<LexicalEditor>(LexicalEditorProviderKey)\r\n\r\n if (!editor) {\r\n invariant(\r\n false,\r\n 'useLexicalComposer: cannot find a LexicalComposer',\r\n )\r\n }\r\n\r\n return editor\r\n}\r\n\r\n/**\r\n * @deprecated use `useLexicalComposer` instead\r\n */\r\nexport const useEditor = useLexicalComposer\r\n"],"names":[],"mappings":";;;AAKO,SAAS,qBAAqB;AAC7B,QAAA,SAAS,OAAsB,wBAAwB;AAE7D,MAAI,CAAC,QAAQ;AACX;AAAA,MACE;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ;AAEO,SAAA;AACT;"}
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { $getNodeByKey, $getSelection, $isNodeSelection, $createNodeSelection, $setSelection } from "lexical";
|
|
2
|
-
import { ref, unref, watchEffect, readonly } from "vue";
|
|
3
|
-
import { useLexicalComposer } from "./useLexicalComposer.js";
|
|
4
|
-
function isNodeSelected(editor, key) {
|
|
5
|
-
return editor.getEditorState().read(() => {
|
|
6
|
-
const node = $getNodeByKey(key);
|
|
7
|
-
if (node === null)
|
|
8
|
-
return false;
|
|
9
|
-
return node.isSelected();
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function useLexicalNodeSelection(key) {
|
|
13
|
-
const editor = useLexicalComposer();
|
|
14
|
-
const isSelected = ref(isNodeSelected(editor, unref(key)));
|
|
15
|
-
watchEffect((onInvalidate) => {
|
|
16
|
-
const unregisterListener = editor.registerUpdateListener(() => {
|
|
17
|
-
isSelected.value = isNodeSelected(editor, unref(key));
|
|
18
|
-
});
|
|
19
|
-
onInvalidate(() => {
|
|
20
|
-
unregisterListener();
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
const setSelected = (selected) => {
|
|
24
|
-
editor.update(() => {
|
|
25
|
-
let selection = $getSelection();
|
|
26
|
-
if (!$isNodeSelection(selection)) {
|
|
27
|
-
selection = $createNodeSelection();
|
|
28
|
-
$setSelection(selection);
|
|
29
|
-
}
|
|
30
|
-
if ($isNodeSelection(selection)) {
|
|
31
|
-
if (selected)
|
|
32
|
-
selection.add(unref(key));
|
|
33
|
-
else
|
|
34
|
-
selection.delete(unref(key));
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
const clearSelection = () => {
|
|
39
|
-
editor.update(() => {
|
|
40
|
-
const selection = $getSelection();
|
|
41
|
-
if ($isNodeSelection(selection))
|
|
42
|
-
selection.clear();
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
isSelected: readonly(isSelected),
|
|
47
|
-
setSelected,
|
|
48
|
-
clearSelection
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
useLexicalNodeSelection
|
|
53
|
-
};
|
|
54
|
-
//# sourceMappingURL=useLexicalNodeSelection.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLexicalNodeSelection.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useLexicalNodeSelection.ts"],"sourcesContent":["import type { LexicalEditor, NodeKey } from 'lexical'\r\n\r\nimport {\r\n $createNodeSelection,\r\n $getNodeByKey,\r\n $getSelection,\r\n $isNodeSelection,\r\n $setSelection,\r\n} from 'lexical'\r\nimport { type MaybeRef, readonly, ref, unref, watchEffect } from 'vue'\r\nimport { useLexicalComposer } from './useLexicalComposer'\r\n\r\nfunction isNodeSelected(editor: LexicalEditor, key: NodeKey): boolean {\r\n return editor.getEditorState().read(() => {\r\n const node = $getNodeByKey(key)\r\n if (node === null)\r\n return false\r\n\r\n return node.isSelected()\r\n })\r\n}\r\n\r\nexport function useLexicalNodeSelection(\r\n key: MaybeRef<NodeKey>,\r\n) {\r\n const editor = useLexicalComposer()\r\n const isSelected = ref(isNodeSelected(editor, unref(key)))\r\n\r\n watchEffect((onInvalidate) => {\r\n const unregisterListener = editor.registerUpdateListener(() => {\r\n isSelected.value = isNodeSelected(editor, unref(key))\r\n })\r\n\r\n onInvalidate(() => {\r\n unregisterListener()\r\n })\r\n })\r\n\r\n const setSelected = (selected: boolean) => {\r\n editor.update(() => {\r\n let selection = $getSelection()\r\n\r\n if (!$isNodeSelection(selection)) {\r\n selection = $createNodeSelection()\r\n $setSelection(selection)\r\n }\r\n if ($isNodeSelection(selection)) {\r\n if (selected)\r\n selection.add(unref(key))\r\n else\r\n selection.delete(unref(key))\r\n }\r\n })\r\n }\r\n\r\n const clearSelection = () => {\r\n editor.update(() => {\r\n const selection = $getSelection()\r\n if ($isNodeSelection(selection))\r\n (selection).clear()\r\n })\r\n }\r\n\r\n return {\r\n isSelected: readonly(isSelected),\r\n setSelected,\r\n clearSelection,\r\n }\r\n}\r\n"],"names":[],"mappings":";;;AAYA,SAAS,eAAe,QAAuB,KAAuB;AACpE,SAAO,OAAO,iBAAiB,KAAK,MAAM;AAClC,UAAA,OAAO,cAAc,GAAG;AAC9B,QAAI,SAAS;AACJ,aAAA;AAET,WAAO,KAAK;EAAW,CACxB;AACH;AAEO,SAAS,wBACd,KACA;AACA,QAAM,SAAS;AACf,QAAM,aAAa,IAAI,eAAe,QAAQ,MAAM,GAAG,CAAC,CAAC;AAEzD,cAAY,CAAC,iBAAiB;AACtB,UAAA,qBAAqB,OAAO,uBAAuB,MAAM;AAC7D,iBAAW,QAAQ,eAAe,QAAQ,MAAM,GAAG,CAAC;AAAA,IAAA,CACrD;AAED,iBAAa,MAAM;AACE;IAAA,CACpB;AAAA,EAAA,CACF;AAEK,QAAA,cAAc,CAAC,aAAsB;AACzC,WAAO,OAAO,MAAM;AAClB,UAAI,YAAY;AAEZ,UAAA,CAAC,iBAAiB,SAAS,GAAG;AAChC,oBAAY,qBAAqB;AACjC,sBAAc,SAAS;AAAA,MACzB;AACI,UAAA,iBAAiB,SAAS,GAAG;AAC3B,YAAA;AACQ,oBAAA,IAAI,MAAM,GAAG,CAAC;AAAA;AAEd,oBAAA,OAAO,MAAM,GAAG,CAAC;AAAA,MAC/B;AAAA,IAAA,CACD;AAAA,EAAA;AAGH,QAAM,iBAAiB,MAAM;AAC3B,WAAO,OAAO,MAAM;AAClB,YAAM,YAAY;AAClB,UAAI,iBAAiB,SAAS;AAC3B,kBAAW,MAAM;AAAA,IAAA,CACrB;AAAA,EAAA;AAGI,SAAA;AAAA,IACL,YAAY,SAAS,UAAU;AAAA,IAC/B;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { onMounted, onUnmounted } from "vue";
|
|
2
|
-
function useMounted(cb) {
|
|
3
|
-
let unregister;
|
|
4
|
-
onMounted(() => {
|
|
5
|
-
unregister = cb();
|
|
6
|
-
});
|
|
7
|
-
onUnmounted(() => {
|
|
8
|
-
unregister == null ? void 0 : unregister();
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
useMounted
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=useMounted.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useMounted.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useMounted.ts"],"sourcesContent":["import { onMounted, onUnmounted } from 'vue'\r\n\r\n/**\r\n * @internal\r\n */\r\nexport function useMounted(cb: () => undefined | (() => any)) {\r\n let unregister: (() => void) | undefined\r\n\r\n onMounted(() => {\r\n unregister = cb()\r\n })\r\n\r\n onUnmounted(() => {\r\n unregister?.()\r\n })\r\n}\r\n"],"names":[],"mappings":";AAKO,SAAS,WAAW,IAAmC;AACxD,MAAA;AAEJ,YAAU,MAAM;AACd,iBAAa,GAAG;AAAA,EAAA,CACjB;AAED,cAAY,MAAM;AACH;AAAA,EAAA,CACd;AACH;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { registerDragonSupport } from "@lexical/dragon";
|
|
2
|
-
import { registerRichText } from "@lexical/rich-text";
|
|
3
|
-
import { mergeRegister } from "@lexical/utils";
|
|
4
|
-
import { useMounted } from "./useMounted.js";
|
|
5
|
-
function useRichTextSetup(editor) {
|
|
6
|
-
useMounted(() => {
|
|
7
|
-
return mergeRegister(
|
|
8
|
-
registerRichText(editor),
|
|
9
|
-
registerDragonSupport(editor)
|
|
10
|
-
);
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
useRichTextSetup
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=useRichTextSetup.js.map
|
package/dist/esm/components/basic/doc-editor/lexical-vue/composables/useRichTextSetup.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useRichTextSetup.js","sources":["../../../../../../../src/components/basic/doc-editor/lexical-vue/composables/useRichTextSetup.ts"],"sourcesContent":["import { registerDragonSupport } from '@lexical/dragon'\r\nimport { registerRichText } from '@lexical/rich-text'\r\nimport { mergeRegister } from '@lexical/utils'\r\nimport type { LexicalEditor } from 'lexical'\r\nimport { useMounted } from './useMounted'\r\n\r\nexport function useRichTextSetup(editor: LexicalEditor) {\r\n useMounted(() => {\r\n return mergeRegister(\r\n registerRichText(editor),\r\n registerDragonSupport(editor),\r\n )\r\n })\r\n}\r\n"],"names":[],"mappings":";;;;AAMO,SAAS,iBAAiB,QAAuB;AACtD,aAAW,MAAM;AACR,WAAA;AAAA,MACL,iBAAiB,MAAM;AAAA,MACvB,sBAAsB,MAAM;AAAA,IAAA;AAAA,EAC9B,CACD;AACH;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, Fragment, createVNode } from "vue";
|
|
2
|
-
import _sfc_main$2 from "./AutoLinkPlugin.vue.js";
|
|
3
|
-
import _sfc_main$3 from "./ImagePlugin/index.vue.js";
|
|
4
|
-
import _sfc_main$4 from "./ImageTextPlugin/index.vue.js";
|
|
5
|
-
import _sfc_main$1 from "./ToolbarPlugin/InlineToolsPlugin.vue.js";
|
|
6
|
-
import _sfc_main$5 from "./HtmlBlockPlugin/index.vue.js";
|
|
7
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
-
__name: "index",
|
|
9
|
-
setup(__props) {
|
|
10
|
-
return (_ctx, _cache) => {
|
|
11
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
12
|
-
createVNode(_sfc_main$1),
|
|
13
|
-
createVNode(_sfc_main$2),
|
|
14
|
-
createVNode(_sfc_main$3),
|
|
15
|
-
createVNode(_sfc_main$4),
|
|
16
|
-
createVNode(_sfc_main$5)
|
|
17
|
-
], 64);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
_sfc_main as default
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=index.vue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { CommandListenerPriority } from 'lexical';
|
|
2
|
-
import type { AutoEmbedOption, EmbedConfig } from './shared';
|
|
3
|
-
declare const _default: <TEmbedConfig extends EmbedConfig>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
|
5
|
-
onOpenEmbedModalForConfig?: ((embedConfig: TEmbedConfig) => any) | undefined;
|
|
6
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
7
|
-
onOpenEmbedModalForConfig?: ((embedConfig: TEmbedConfig) => any) | undefined;
|
|
8
|
-
}, never>, "onOpenEmbedModalForConfig"> & {
|
|
9
|
-
embedConfigs: Array<TEmbedConfig>;
|
|
10
|
-
getMenuOptions: (activeEmbedConfig: TEmbedConfig, embedFn: () => void, dismissFn: () => void) => Array<AutoEmbedOption>;
|
|
11
|
-
menuCommandPriority?: CommandListenerPriority;
|
|
12
|
-
}> & __VLS_BuiltInPublicProps;
|
|
13
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
14
|
-
attrs: any;
|
|
15
|
-
slots: ReturnType<() => {
|
|
16
|
-
default?(_: {
|
|
17
|
-
listItemProps: {
|
|
18
|
-
options: AutoEmbedOption[];
|
|
19
|
-
selectOptionAndCleanUp: (selectedEntry: AutoEmbedOption) => void;
|
|
20
|
-
selectedIndex: number | null;
|
|
21
|
-
setHighlightedIndex: (index: number | null) => void;
|
|
22
|
-
};
|
|
23
|
-
anchorElementRef: HTMLElement;
|
|
24
|
-
matchString: string;
|
|
25
|
-
}): any;
|
|
26
|
-
}>;
|
|
27
|
-
emit: ((e: "openEmbedModalForConfig", embedConfig: TEmbedConfig) => void) & {};
|
|
28
|
-
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}> & {
|
|
31
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
32
|
-
};
|
|
33
|
-
export default _default;
|
|
34
|
-
type __VLS_Prettify<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { LexicalCommand, LexicalEditor, LexicalNode } from 'lexical';
|
|
2
|
-
import { MenuOption } from '../LexicalMenu/shared';
|
|
3
|
-
export interface EmbedMatchResult<TEmbedMatchResult = unknown> {
|
|
4
|
-
url: string;
|
|
5
|
-
id: string;
|
|
6
|
-
data?: TEmbedMatchResult;
|
|
7
|
-
}
|
|
8
|
-
export interface EmbedConfig<TEmbedMatchResultData = unknown, TEmbedMatchResult = EmbedMatchResult<TEmbedMatchResultData>> {
|
|
9
|
-
type: string;
|
|
10
|
-
parseUrl: (text: string) => Promise<TEmbedMatchResult | null> | TEmbedMatchResult | null;
|
|
11
|
-
insertNode: (editor: LexicalEditor, result: TEmbedMatchResult) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const URL_MATCHER: RegExp;
|
|
14
|
-
export declare const INSERT_EMBED_COMMAND: LexicalCommand<EmbedConfig['type']>;
|
|
15
|
-
export declare class AutoEmbedOption extends MenuOption {
|
|
16
|
-
title: string;
|
|
17
|
-
onSelect: (targetNode: LexicalNode | null) => void;
|
|
18
|
-
constructor(title: string, options: {
|
|
19
|
-
onSelect: (targetNode: LexicalNode | null) => void;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
2
|
-
defaultSelection?: "rootStart" | "rootEnd";
|
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
4
|
-
defaultSelection?: "rootStart" | "rootEnd";
|
|
5
|
-
}>>>, {}, {}>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type __VLS_TypePropsToOption<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: import('vue').PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type LinkMatcher } from './shared';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
-
matchers: LinkMatcher[];
|
|
4
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
change: (value: {
|
|
6
|
-
url: string | null;
|
|
7
|
-
prevUrl: string | null;
|
|
8
|
-
}) => void;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
10
|
-
matchers: LinkMatcher[];
|
|
11
|
-
}>>> & {
|
|
12
|
-
onChange?: ((value: {
|
|
13
|
-
url: string | null;
|
|
14
|
-
prevUrl: string | null;
|
|
15
|
-
}) => any) | undefined;
|
|
16
|
-
}, {}, {}>;
|
|
17
|
-
export default _default;
|
|
18
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
type __VLS_TypePropsToOption<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: import('vue').PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|