@mekari/pixel3-rich-text-editor 0.1.1 → 0.1.2-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TNDDXUVW.mjs → chunk-7BEXEMOE.mjs} +6 -0
- package/dist/{chunk-7RMCTPMN.mjs → chunk-MKTM47RO.mjs} +1 -1
- package/dist/{chunk-NKNFA3DF.mjs → chunk-XNM3YX37.mjs} +40 -23
- package/dist/{chunk-3CWKDY4T.mjs → chunk-YE6FEVD4.mjs} +13 -3
- package/dist/{chunk-H4GW25PU.mjs → chunk-ZO6THAT6.mjs} +38 -4
- package/dist/editor-toolbar.d.mts +18 -0
- package/dist/editor-toolbar.d.ts +18 -0
- package/dist/editor-toolbar.js +49 -5
- package/dist/editor-toolbar.mjs +2 -2
- package/dist/extensions/index.js +37 -3
- package/dist/extensions/index.mjs +1 -1
- package/dist/extensions/link-extension.d.mts +18 -0
- package/dist/extensions/link-extension.d.ts +18 -0
- package/dist/extensions/link-extension.js +37 -3
- package/dist/extensions/link-extension.mjs +1 -1
- package/dist/index.js +92 -25
- package/dist/index.mjs +5 -5
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/rich-text-editor.props.d.mts +9 -0
- package/dist/modules/rich-text-editor.props.d.ts +9 -0
- package/dist/modules/rich-text-editor.props.js +6 -0
- package/dist/modules/rich-text-editor.props.mjs +1 -1
- package/dist/modules/rich-text-editor.types.d.mts +5 -0
- package/dist/modules/rich-text-editor.types.d.ts +5 -0
- package/dist/rich-text-editor.d.mts +18 -0
- package/dist/rich-text-editor.d.ts +18 -0
- package/dist/rich-text-editor.js +92 -25
- package/dist/rich-text-editor.mjs +5 -5
- package/dist/rte-style-provider.mjs +2 -2
- package/package.json +9 -9
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/extensions/icons.tsx":{"bytes":32117,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/heading-extension.tsx":{"bytes":5188,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"}],"format":"esm"},"src/extensions/align-extension.tsx":{"bytes":3545,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/single-extension.tsx":{"bytes":2307,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue/jsx-runtime","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"}],"format":"esm"},"src/extensions/color-extension.tsx":{"bytes":2289,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-color-picker","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/link-extension.tsx":{"bytes":7136,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-button","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/index.ts":{"bytes":397,"imports":[{"path":"src/extensions/heading-extension.tsx","kind":"import-statement","original":"./heading-extension"},{"path":"src/extensions/align-extension.tsx","kind":"import-statement","original":"./align-extension"},{"path":"src/extensions/single-extension.tsx","kind":"import-statement","original":"./single-extension"},{"path":"src/extensions/color-extension.tsx","kind":"import-statement","original":"./color-extension"},{"path":"src/extensions/link-extension.tsx","kind":"import-statement","original":"./link-extension"}],"format":"esm"},"src/editor-toolbar.tsx":{"bytes":6269,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-divider","kind":"import-statement","external":true},{"path":"@mekari/pixel3-scrollbar","kind":"import-statement","external":true},{"path":"./modules/rich-text-editor.types","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"./extensions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.props.ts":{"bytes":1419,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./rich-text-editor.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.connects.ts":{"bytes":1600,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./rich-text-editor.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.hooks.ts":{"bytes":1095,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/rich-text-editor.connects.ts","kind":"import-statement","original":"./rich-text-editor.connects"},{"path":"./rich-text-editor.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/rte-style-provider.tsx":{"bytes":685,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/rich-text-editor.props.ts","kind":"import-statement","original":"./modules/rich-text-editor.props"},{"path":"src/modules/rich-text-editor.hooks.ts","kind":"import-statement","original":"./modules/rich-text-editor.hooks"}],"format":"esm"},"src/extensions/mention-list-extension.tsx":{"bytes":5639,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-avatar","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/rte-suggestion.ts":{"bytes":6096,"imports":[{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true},{"path":"src/extensions/mention-list-extension.tsx","kind":"import-statement","original":"./extensions/mention-list-extension"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/rich-text-editor.tsx":{"bytes":5490,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/rich-text-editor.props.ts","kind":"import-statement","original":"./modules/rich-text-editor.props"},{"path":"src/modules/rich-text-editor.hooks.ts","kind":"import-statement","original":"./modules/rich-text-editor.hooks"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-underline","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-align","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-style","kind":"import-statement","external":true},{"path":"@tiptap/extension-placeholder","kind":"import-statement","external":true},{"path":"@tiptap/extension-character-count","kind":"import-statement","external":true},{"path":"@tiptap/extension-mention","kind":"import-statement","external":true},{"path":"@tiptap/extension-color","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-highlight","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-form-control","kind":"import-statement","external":true},{"path":"src/editor-toolbar.tsx","kind":"import-statement","original":"./editor-toolbar"},{"path":"src/rte-style-provider.tsx","kind":"import-statement","original":"./rte-style-provider"},{"path":"src/rte-suggestion.ts","kind":"import-statement","original":"./rte-suggestion"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.types.ts":{"bytes":2202,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":307,"imports":[{"path":"src/rich-text-editor.tsx","kind":"import-statement","original":"./rich-text-editor"},{"path":"src/rte-style-provider.tsx","kind":"import-statement","original":"./rte-style-provider"},{"path":"src/modules/rich-text-editor.types.ts","kind":"import-statement","original":"./modules/rich-text-editor.types"}],"format":"esm"}},"outputs":{"dist/modules/rich-text-editor.types.mjs":{"imports":[{"path":"dist/chunk-7ZWZAIUI.mjs","kind":"import-statement"}],"exports":[],"entryPoint":"src/modules/rich-text-editor.types.ts","inputs":{},"bytes":32},"dist/extensions/icons.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignCenterIcon","AlignJustifyIcon","AlignLeftIcon","AlignRightIcon","AudioIcon","BlockquoteIcon","BoldIcon","BulletListIcon","CaretIcon","ClearIcon","ColorTextIcon","FileIcon","FillTextIcon","ImageIcon","ItalicIcon","LinkIcon","LocationIcon","MentionIcon","OrderedListIcon","RedoIcon","StrikeIcon","UnderlineIcon","UndoIcon"],"entryPoint":"src/extensions/icons.tsx","inputs":{},"bytes":783},"dist/extensions/index.mjs":{"imports":[{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-H4GW25PU.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignExtention","ColorExtension","HeadingExtention","LinkExtension","SingleExtention"],"entryPoint":"src/extensions/index.ts","inputs":{},"bytes":491},"dist/extensions/link-extension.mjs":{"imports":[{"path":"dist/chunk-H4GW25PU.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["LinkExtension"],"entryPoint":"src/extensions/link-extension.tsx","inputs":{},"bytes":149},"dist/extensions/mention-list-extension.mjs":{"imports":[{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MentionList"],"entryPoint":"src/extensions/mention-list-extension.tsx","inputs":{},"bytes":113},"dist/extensions/single-extension.mjs":{"imports":[{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["SingleExtention"],"entryPoint":"src/extensions/single-extension.tsx","inputs":{},"bytes":153},"dist/modules/rich-text-editor.connects.mjs":{"imports":[{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["RTEStyleProviderConnect","richTextEditorConnect"],"entryPoint":"src/modules/rich-text-editor.connects.ts","inputs":{},"bytes":187},"dist/modules/rich-text-editor.hooks.mjs":{"imports":[{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useRTEStyleProvider","useRichTextEditor"],"entryPoint":"src/modules/rich-text-editor.hooks.ts","inputs":{},"bytes":203},"dist/modules/rich-text-editor.props.mjs":{"imports":[{"path":"dist/chunk-TNDDXUVW.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["RTEStyleProviderProps","richTextEditorEmits","richTextEditorProps"],"entryPoint":"src/modules/rich-text-editor.props.ts","inputs":{},"bytes":225},"dist/editor-toolbar.mjs":{"imports":[{"path":"dist/chunk-3CWKDY4T.mjs","kind":"import-statement"},{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-H4GW25PU.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["EditorToolbar"],"entryPoint":"src/editor-toolbar.tsx","inputs":{},"bytes":332},"dist/index.mjs":{"imports":[{"path":"dist/chunk-7ZWZAIUI.mjs","kind":"import-statement"},{"path":"dist/chunk-NKNFA3DF.mjs","kind":"import-statement"},{"path":"dist/chunk-3CWKDY4T.mjs","kind":"import-statement"},{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-H4GW25PU.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-7RMCTPMN.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-TNDDXUVW.mjs","kind":"import-statement"},{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpRTEStyleProvider","MpRichTextEditor"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":638},"dist/chunk-7ZWZAIUI.mjs":{"imports":[],"exports":[],"inputs":{"src/modules/rich-text-editor.types.ts":{"bytesInOutput":0}},"bytes":0},"dist/rich-text-editor.mjs":{"imports":[{"path":"dist/chunk-NKNFA3DF.mjs","kind":"import-statement"},{"path":"dist/chunk-3CWKDY4T.mjs","kind":"import-statement"},{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-H4GW25PU.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-7RMCTPMN.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-TNDDXUVW.mjs","kind":"import-statement"},{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpRichTextEditor"],"entryPoint":"src/rich-text-editor.tsx","inputs":{},"bytes":555},"dist/chunk-NKNFA3DF.mjs":{"imports":[{"path":"dist/chunk-3CWKDY4T.mjs","kind":"import-statement"},{"path":"dist/chunk-7RMCTPMN.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-TNDDXUVW.mjs","kind":"import-statement"},{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-underline","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-align","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-style","kind":"import-statement","external":true},{"path":"@tiptap/extension-placeholder","kind":"import-statement","external":true},{"path":"@tiptap/extension-character-count","kind":"import-statement","external":true},{"path":"@tiptap/extension-mention","kind":"import-statement","external":true},{"path":"@tiptap/extension-color","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-highlight","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-form-control","kind":"import-statement","external":true}],"exports":["MpRichTextEditor"],"inputs":{"src/rich-text-editor.tsx":{"bytesInOutput":5018}},"bytes":5456},"dist/chunk-3CWKDY4T.mjs":{"imports":[{"path":"dist/chunk-H4GW25PU.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-divider","kind":"import-statement","external":true},{"path":"@mekari/pixel3-scrollbar","kind":"import-statement","external":true}],"exports":["EditorToolbar"],"inputs":{"src/editor-toolbar.tsx":{"bytesInOutput":5987}},"bytes":6379},"dist/chunk-VYCDVS5I.mjs":{"imports":[],"exports":[],"inputs":{"src/extensions/index.ts":{"bytesInOutput":0}},"bytes":0},"dist/chunk-H4GW25PU.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-button","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["LinkExtension"],"inputs":{"src/extensions/link-extension.tsx":{"bytesInOutput":7069}},"bytes":7236},"dist/chunk-25RKPG44.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["SingleExtention"],"inputs":{"src/extensions/single-extension.tsx":{"bytesInOutput":1605}},"bytes":1933},"dist/rte-style-provider.mjs":{"imports":[{"path":"dist/chunk-7RMCTPMN.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-TNDDXUVW.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpRTEStyleProvider"],"entryPoint":"src/rte-style-provider.tsx","inputs":{},"bytes":218},"dist/chunk-7RMCTPMN.mjs":{"imports":[{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-TNDDXUVW.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpRTEStyleProvider"],"inputs":{"src/rte-style-provider.tsx":{"bytesInOutput":434}},"bytes":625},"dist/chunk-ZRAXSVO5.mjs":{"imports":[{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["useRTEStyleProvider","useRichTextEditor"],"inputs":{"src/modules/rich-text-editor.hooks.ts":{"bytesInOutput":774}},"bytes":1012},"dist/chunk-ZAXJ3BEP.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["RTEStyleProviderConnect","richTextEditorConnect"],"inputs":{"src/modules/rich-text-editor.connects.ts":{"bytesInOutput":1254}},"bytes":1412},"dist/chunk-TNDDXUVW.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["RTEStyleProviderProps","richTextEditorEmits","richTextEditorProps"],"inputs":{"src/modules/rich-text-editor.props.ts":{"bytesInOutput":639}},"bytes":763},"dist/rte-suggestion.mjs":{"imports":[{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["createMentionSuggestion"],"entryPoint":"src/rte-suggestion.ts","inputs":{},"bytes":166},"dist/chunk-4KJOYLJI.mjs":{"imports":[{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true}],"exports":["createMentionSuggestion"],"inputs":{"src/rte-suggestion.ts":{"bytesInOutput":6235}},"bytes":6403},"dist/chunk-4TUA5VF4.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-avatar","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true}],"exports":["MentionList"],"inputs":{"src/extensions/mention-list-extension.tsx":{"bytesInOutput":5198}},"bytes":5320},"dist/extensions/align-extension.mjs":{"imports":[{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignExtention"],"entryPoint":"src/extensions/align-extension.tsx","inputs":{},"bytes":151},"dist/chunk-UBJOZ2IA.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"exports":["AlignExtention"],"inputs":{"src/extensions/align-extension.tsx":{"bytesInOutput":3328}},"bytes":3559},"dist/extensions/color-extension.mjs":{"imports":[{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["ColorExtension"],"entryPoint":"src/extensions/color-extension.tsx","inputs":{},"bytes":151},"dist/chunk-5S2LSGJV.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-color-picker","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"exports":["ColorExtension"],"inputs":{"src/extensions/color-extension.tsx":{"bytesInOutput":2066}},"bytes":2256},"dist/extensions/heading-extension.mjs":{"imports":[{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["HeadingExtention"],"entryPoint":"src/extensions/heading-extension.tsx","inputs":{},"bytes":155},"dist/chunk-YIEQVTEO.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true}],"exports":["HeadingExtention"],"inputs":{"src/extensions/heading-extension.tsx":{"bytesInOutput":5421}},"bytes":5546},"dist/chunk-Q7QLZISF.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["AlignCenterIcon","AlignJustifyIcon","AlignLeftIcon","AlignRightIcon","AudioIcon","BlockquoteIcon","BoldIcon","BulletListIcon","CaretIcon","ClearIcon","ColorTextIcon","FileIcon","FillTextIcon","ImageIcon","ItalicIcon","LinkIcon","LocationIcon","MentionIcon","OrderedListIcon","RedoIcon","StrikeIcon","UnderlineIcon","UndoIcon"],"inputs":{"src/extensions/icons.tsx":{"bytesInOutput":31826}},"bytes":32216},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
1
|
+
{"inputs":{"src/extensions/icons.tsx":{"bytes":32117,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/heading-extension.tsx":{"bytes":5188,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"}],"format":"esm"},"src/extensions/align-extension.tsx":{"bytes":3545,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/single-extension.tsx":{"bytes":2307,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue/jsx-runtime","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"}],"format":"esm"},"src/extensions/color-extension.tsx":{"bytes":2289,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-color-picker","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/link-extension.tsx":{"bytes":8472,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-button","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/extensions/icons.tsx","kind":"import-statement","original":"./icons"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/index.ts":{"bytes":397,"imports":[{"path":"src/extensions/heading-extension.tsx","kind":"import-statement","original":"./heading-extension"},{"path":"src/extensions/align-extension.tsx","kind":"import-statement","original":"./align-extension"},{"path":"src/extensions/single-extension.tsx","kind":"import-statement","original":"./single-extension"},{"path":"src/extensions/color-extension.tsx","kind":"import-statement","original":"./color-extension"},{"path":"src/extensions/link-extension.tsx","kind":"import-statement","original":"./link-extension"}],"format":"esm"},"src/editor-toolbar.tsx":{"bytes":6664,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-divider","kind":"import-statement","external":true},{"path":"@mekari/pixel3-scrollbar","kind":"import-statement","external":true},{"path":"./modules/rich-text-editor.types","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"./extensions"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.props.ts":{"bytes":1607,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./rich-text-editor.types","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.connects.ts":{"bytes":1600,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"./rich-text-editor.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.hooks.ts":{"bytes":1095,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/rich-text-editor.connects.ts","kind":"import-statement","original":"./rich-text-editor.connects"},{"path":"./rich-text-editor.types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/rte-style-provider.tsx":{"bytes":685,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/rich-text-editor.props.ts","kind":"import-statement","original":"./modules/rich-text-editor.props"},{"path":"src/modules/rich-text-editor.hooks.ts","kind":"import-statement","original":"./modules/rich-text-editor.hooks"}],"format":"esm"},"src/extensions/mention-list-extension.tsx":{"bytes":5639,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-avatar","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/rte-suggestion.ts":{"bytes":6096,"imports":[{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true},{"path":"src/extensions/mention-list-extension.tsx","kind":"import-statement","original":"./extensions/mention-list-extension"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/rich-text-editor.tsx":{"bytes":5746,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/rich-text-editor.props.ts","kind":"import-statement","original":"./modules/rich-text-editor.props"},{"path":"src/modules/rich-text-editor.hooks.ts","kind":"import-statement","original":"./modules/rich-text-editor.hooks"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-underline","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-align","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-style","kind":"import-statement","external":true},{"path":"@tiptap/extension-placeholder","kind":"import-statement","external":true},{"path":"@tiptap/extension-character-count","kind":"import-statement","external":true},{"path":"@tiptap/extension-mention","kind":"import-statement","external":true},{"path":"@tiptap/extension-color","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-highlight","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-form-control","kind":"import-statement","external":true},{"path":"src/editor-toolbar.tsx","kind":"import-statement","original":"./editor-toolbar"},{"path":"src/rte-style-provider.tsx","kind":"import-statement","original":"./rte-style-provider"},{"path":"src/rte-suggestion.ts","kind":"import-statement","original":"./rte-suggestion"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.types.ts":{"bytes":2372,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":307,"imports":[{"path":"src/rich-text-editor.tsx","kind":"import-statement","original":"./rich-text-editor"},{"path":"src/rte-style-provider.tsx","kind":"import-statement","original":"./rte-style-provider"},{"path":"src/modules/rich-text-editor.types.ts","kind":"import-statement","original":"./modules/rich-text-editor.types"}],"format":"esm"}},"outputs":{"dist/modules/rich-text-editor.types.mjs":{"imports":[{"path":"dist/chunk-7ZWZAIUI.mjs","kind":"import-statement"}],"exports":[],"entryPoint":"src/modules/rich-text-editor.types.ts","inputs":{},"bytes":32},"dist/extensions/icons.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignCenterIcon","AlignJustifyIcon","AlignLeftIcon","AlignRightIcon","AudioIcon","BlockquoteIcon","BoldIcon","BulletListIcon","CaretIcon","ClearIcon","ColorTextIcon","FileIcon","FillTextIcon","ImageIcon","ItalicIcon","LinkIcon","LocationIcon","MentionIcon","OrderedListIcon","RedoIcon","StrikeIcon","UnderlineIcon","UndoIcon"],"entryPoint":"src/extensions/icons.tsx","inputs":{},"bytes":783},"dist/extensions/index.mjs":{"imports":[{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-ZO6THAT6.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignExtention","ColorExtension","HeadingExtention","LinkExtension","SingleExtention"],"entryPoint":"src/extensions/index.ts","inputs":{},"bytes":491},"dist/extensions/link-extension.mjs":{"imports":[{"path":"dist/chunk-ZO6THAT6.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["LinkExtension"],"entryPoint":"src/extensions/link-extension.tsx","inputs":{},"bytes":149},"dist/extensions/mention-list-extension.mjs":{"imports":[{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MentionList"],"entryPoint":"src/extensions/mention-list-extension.tsx","inputs":{},"bytes":113},"dist/extensions/single-extension.mjs":{"imports":[{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["SingleExtention"],"entryPoint":"src/extensions/single-extension.tsx","inputs":{},"bytes":153},"dist/modules/rich-text-editor.connects.mjs":{"imports":[{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["RTEStyleProviderConnect","richTextEditorConnect"],"entryPoint":"src/modules/rich-text-editor.connects.ts","inputs":{},"bytes":187},"dist/modules/rich-text-editor.hooks.mjs":{"imports":[{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useRTEStyleProvider","useRichTextEditor"],"entryPoint":"src/modules/rich-text-editor.hooks.ts","inputs":{},"bytes":203},"dist/modules/rich-text-editor.props.mjs":{"imports":[{"path":"dist/chunk-7BEXEMOE.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["RTEStyleProviderProps","richTextEditorEmits","richTextEditorProps"],"entryPoint":"src/modules/rich-text-editor.props.ts","inputs":{},"bytes":225},"dist/editor-toolbar.mjs":{"imports":[{"path":"dist/chunk-YE6FEVD4.mjs","kind":"import-statement"},{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-ZO6THAT6.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["EditorToolbar"],"entryPoint":"src/editor-toolbar.tsx","inputs":{},"bytes":332},"dist/index.mjs":{"imports":[{"path":"dist/chunk-7ZWZAIUI.mjs","kind":"import-statement"},{"path":"dist/chunk-XNM3YX37.mjs","kind":"import-statement"},{"path":"dist/chunk-YE6FEVD4.mjs","kind":"import-statement"},{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-ZO6THAT6.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-MKTM47RO.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-7BEXEMOE.mjs","kind":"import-statement"},{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpRTEStyleProvider","MpRichTextEditor"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":638},"dist/chunk-7ZWZAIUI.mjs":{"imports":[],"exports":[],"inputs":{"src/modules/rich-text-editor.types.ts":{"bytesInOutput":0}},"bytes":0},"dist/rich-text-editor.mjs":{"imports":[{"path":"dist/chunk-XNM3YX37.mjs","kind":"import-statement"},{"path":"dist/chunk-YE6FEVD4.mjs","kind":"import-statement"},{"path":"dist/chunk-VYCDVS5I.mjs","kind":"import-statement"},{"path":"dist/chunk-ZO6THAT6.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-MKTM47RO.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-7BEXEMOE.mjs","kind":"import-statement"},{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpRichTextEditor"],"entryPoint":"src/rich-text-editor.tsx","inputs":{},"bytes":555},"dist/chunk-XNM3YX37.mjs":{"imports":[{"path":"dist/chunk-YE6FEVD4.mjs","kind":"import-statement"},{"path":"dist/chunk-MKTM47RO.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-7BEXEMOE.mjs","kind":"import-statement"},{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@tiptap/starter-kit","kind":"import-statement","external":true},{"path":"@tiptap/extension-underline","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-align","kind":"import-statement","external":true},{"path":"@tiptap/extension-text-style","kind":"import-statement","external":true},{"path":"@tiptap/extension-placeholder","kind":"import-statement","external":true},{"path":"@tiptap/extension-character-count","kind":"import-statement","external":true},{"path":"@tiptap/extension-mention","kind":"import-statement","external":true},{"path":"@tiptap/extension-color","kind":"import-statement","external":true},{"path":"@tiptap/extension-link","kind":"import-statement","external":true},{"path":"@tiptap/extension-highlight","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"@mekari/pixel3-form-control","kind":"import-statement","external":true}],"exports":["MpRichTextEditor"],"inputs":{"src/rich-text-editor.tsx":{"bytesInOutput":5398}},"bytes":5836},"dist/chunk-YE6FEVD4.mjs":{"imports":[{"path":"dist/chunk-ZO6THAT6.mjs","kind":"import-statement"},{"path":"dist/chunk-25RKPG44.mjs","kind":"import-statement"},{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-divider","kind":"import-statement","external":true},{"path":"@mekari/pixel3-scrollbar","kind":"import-statement","external":true}],"exports":["EditorToolbar"],"inputs":{"src/editor-toolbar.tsx":{"bytesInOutput":6207}},"bytes":6599},"dist/chunk-VYCDVS5I.mjs":{"imports":[],"exports":[],"inputs":{"src/extensions/index.ts":{"bytesInOutput":0}},"bytes":0},"dist/chunk-ZO6THAT6.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-input","kind":"import-statement","external":true},{"path":"@mekari/pixel3-button","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["LinkExtension"],"inputs":{"src/extensions/link-extension.tsx":{"bytesInOutput":8134}},"bytes":8301},"dist/chunk-25RKPG44.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["SingleExtention"],"inputs":{"src/extensions/single-extension.tsx":{"bytesInOutput":1605}},"bytes":1933},"dist/rte-style-provider.mjs":{"imports":[{"path":"dist/chunk-MKTM47RO.mjs","kind":"import-statement"},{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-7BEXEMOE.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpRTEStyleProvider"],"entryPoint":"src/rte-style-provider.tsx","inputs":{},"bytes":218},"dist/chunk-MKTM47RO.mjs":{"imports":[{"path":"dist/chunk-ZRAXSVO5.mjs","kind":"import-statement"},{"path":"dist/chunk-7BEXEMOE.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpRTEStyleProvider"],"inputs":{"src/rte-style-provider.tsx":{"bytesInOutput":434}},"bytes":625},"dist/chunk-ZRAXSVO5.mjs":{"imports":[{"path":"dist/chunk-ZAXJ3BEP.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["useRTEStyleProvider","useRichTextEditor"],"inputs":{"src/modules/rich-text-editor.hooks.ts":{"bytesInOutput":774}},"bytes":1012},"dist/chunk-ZAXJ3BEP.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["RTEStyleProviderConnect","richTextEditorConnect"],"inputs":{"src/modules/rich-text-editor.connects.ts":{"bytesInOutput":1254}},"bytes":1412},"dist/chunk-7BEXEMOE.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["RTEStyleProviderProps","richTextEditorEmits","richTextEditorProps"],"inputs":{"src/modules/rich-text-editor.props.ts":{"bytesInOutput":724}},"bytes":848},"dist/rte-suggestion.mjs":{"imports":[{"path":"dist/chunk-4KJOYLJI.mjs","kind":"import-statement"},{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["createMentionSuggestion"],"entryPoint":"src/rte-suggestion.ts","inputs":{},"bytes":166},"dist/chunk-4KJOYLJI.mjs":{"imports":[{"path":"dist/chunk-4TUA5VF4.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"@popperjs/core","kind":"import-statement","external":true}],"exports":["createMentionSuggestion"],"inputs":{"src/rte-suggestion.ts":{"bytesInOutput":6235}},"bytes":6403},"dist/chunk-4TUA5VF4.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-avatar","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true}],"exports":["MentionList"],"inputs":{"src/extensions/mention-list-extension.tsx":{"bytesInOutput":5198}},"bytes":5320},"dist/extensions/align-extension.mjs":{"imports":[{"path":"dist/chunk-UBJOZ2IA.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignExtention"],"entryPoint":"src/extensions/align-extension.tsx","inputs":{},"bytes":151},"dist/chunk-UBJOZ2IA.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"exports":["AlignExtention"],"inputs":{"src/extensions/align-extension.tsx":{"bytesInOutput":3328}},"bytes":3559},"dist/extensions/color-extension.mjs":{"imports":[{"path":"dist/chunk-5S2LSGJV.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["ColorExtension"],"entryPoint":"src/extensions/color-extension.tsx","inputs":{},"bytes":151},"dist/chunk-5S2LSGJV.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-color-picker","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"exports":["ColorExtension"],"inputs":{"src/extensions/color-extension.tsx":{"bytesInOutput":2066}},"bytes":2256},"dist/extensions/heading-extension.mjs":{"imports":[{"path":"dist/chunk-YIEQVTEO.mjs","kind":"import-statement"},{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["HeadingExtention"],"entryPoint":"src/extensions/heading-extension.tsx","inputs":{},"bytes":155},"dist/chunk-YIEQVTEO.mjs":{"imports":[{"path":"dist/chunk-Q7QLZISF.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-popover","kind":"import-statement","external":true}],"exports":["HeadingExtention"],"inputs":{"src/extensions/heading-extension.tsx":{"bytesInOutput":5421}},"bytes":5546},"dist/chunk-Q7QLZISF.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["AlignCenterIcon","AlignJustifyIcon","AlignLeftIcon","AlignRightIcon","AudioIcon","BlockquoteIcon","BoldIcon","BulletListIcon","CaretIcon","ClearIcon","ColorTextIcon","FileIcon","FillTextIcon","ImageIcon","ItalicIcon","LinkIcon","LocationIcon","MentionIcon","OrderedListIcon","RedoIcon","StrikeIcon","UnderlineIcon","UndoIcon"],"inputs":{"src/extensions/icons.tsx":{"bytesInOutput":31826}},"bytes":32216},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
@@ -34,6 +34,15 @@ declare const richTextEditorProps: {
|
|
|
34
34
|
type: PropType<MentionSuggestionItem[] | undefined>;
|
|
35
35
|
default: () => never[];
|
|
36
36
|
};
|
|
37
|
+
validateLink: {
|
|
38
|
+
type: PropType<((url: string, ctx: {
|
|
39
|
+
defaultValidate: (url: string) => boolean;
|
|
40
|
+
protocols: string[];
|
|
41
|
+
}) => boolean) | undefined>;
|
|
42
|
+
};
|
|
43
|
+
transformLink: {
|
|
44
|
+
type: PropType<((url: string) => string) | undefined>;
|
|
45
|
+
};
|
|
37
46
|
};
|
|
38
47
|
declare const RTEStyleProviderProps: {
|
|
39
48
|
id: {
|
|
@@ -34,6 +34,15 @@ declare const richTextEditorProps: {
|
|
|
34
34
|
type: PropType<MentionSuggestionItem[] | undefined>;
|
|
35
35
|
default: () => never[];
|
|
36
36
|
};
|
|
37
|
+
validateLink: {
|
|
38
|
+
type: PropType<((url: string, ctx: {
|
|
39
|
+
defaultValidate: (url: string) => boolean;
|
|
40
|
+
protocols: string[];
|
|
41
|
+
}) => boolean) | undefined>;
|
|
42
|
+
};
|
|
43
|
+
transformLink: {
|
|
44
|
+
type: PropType<((url: string) => string) | undefined>;
|
|
45
|
+
};
|
|
37
46
|
};
|
|
38
47
|
declare const RTEStyleProviderProps: {
|
|
39
48
|
id: {
|
|
@@ -21,6 +21,11 @@ interface RichTextEditorProps {
|
|
|
21
21
|
isDisabled: boolean;
|
|
22
22
|
hasBorder?: boolean;
|
|
23
23
|
editor?: unknown;
|
|
24
|
+
validateLink?: (url: string, ctx: {
|
|
25
|
+
defaultValidate: (url: string) => boolean;
|
|
26
|
+
protocols: string[];
|
|
27
|
+
}) => boolean;
|
|
28
|
+
transformLink?: (url: string) => string;
|
|
24
29
|
}
|
|
25
30
|
interface RteStyleProviderProps {
|
|
26
31
|
id?: string;
|
|
@@ -21,6 +21,11 @@ interface RichTextEditorProps {
|
|
|
21
21
|
isDisabled: boolean;
|
|
22
22
|
hasBorder?: boolean;
|
|
23
23
|
editor?: unknown;
|
|
24
|
+
validateLink?: (url: string, ctx: {
|
|
25
|
+
defaultValidate: (url: string) => boolean;
|
|
26
|
+
protocols: string[];
|
|
27
|
+
}) => boolean;
|
|
28
|
+
transformLink?: (url: string) => string;
|
|
24
29
|
}
|
|
25
30
|
interface RteStyleProviderProps {
|
|
26
31
|
id?: string;
|
|
@@ -35,6 +35,15 @@ declare const MpRichTextEditor: vue.DefineComponent<{
|
|
|
35
35
|
type: vue.PropType<MentionSuggestionItem[] | undefined>;
|
|
36
36
|
default: () => never[];
|
|
37
37
|
};
|
|
38
|
+
validateLink: {
|
|
39
|
+
type: vue.PropType<((url: string, ctx: {
|
|
40
|
+
defaultValidate: (url: string) => boolean;
|
|
41
|
+
protocols: string[];
|
|
42
|
+
}) => boolean) | undefined>;
|
|
43
|
+
};
|
|
44
|
+
transformLink: {
|
|
45
|
+
type: vue.PropType<((url: string) => string) | undefined>;
|
|
46
|
+
};
|
|
38
47
|
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "blur" | "focus" | "action" | "paste")[], "change" | "blur" | "focus" | "action" | "paste", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
39
48
|
id: {
|
|
40
49
|
type: vue.PropType<string | undefined>;
|
|
@@ -67,6 +76,15 @@ declare const MpRichTextEditor: vue.DefineComponent<{
|
|
|
67
76
|
type: vue.PropType<MentionSuggestionItem[] | undefined>;
|
|
68
77
|
default: () => never[];
|
|
69
78
|
};
|
|
79
|
+
validateLink: {
|
|
80
|
+
type: vue.PropType<((url: string, ctx: {
|
|
81
|
+
defaultValidate: (url: string) => boolean;
|
|
82
|
+
protocols: string[];
|
|
83
|
+
}) => boolean) | undefined>;
|
|
84
|
+
};
|
|
85
|
+
transformLink: {
|
|
86
|
+
type: vue.PropType<((url: string) => string) | undefined>;
|
|
87
|
+
};
|
|
70
88
|
}>> & {
|
|
71
89
|
onPaste?: ((...args: any[]) => any) | undefined;
|
|
72
90
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
@@ -35,6 +35,15 @@ declare const MpRichTextEditor: vue.DefineComponent<{
|
|
|
35
35
|
type: vue.PropType<MentionSuggestionItem[] | undefined>;
|
|
36
36
|
default: () => never[];
|
|
37
37
|
};
|
|
38
|
+
validateLink: {
|
|
39
|
+
type: vue.PropType<((url: string, ctx: {
|
|
40
|
+
defaultValidate: (url: string) => boolean;
|
|
41
|
+
protocols: string[];
|
|
42
|
+
}) => boolean) | undefined>;
|
|
43
|
+
};
|
|
44
|
+
transformLink: {
|
|
45
|
+
type: vue.PropType<((url: string) => string) | undefined>;
|
|
46
|
+
};
|
|
38
47
|
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "blur" | "focus" | "action" | "paste")[], "change" | "blur" | "focus" | "action" | "paste", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
39
48
|
id: {
|
|
40
49
|
type: vue.PropType<string | undefined>;
|
|
@@ -67,6 +76,15 @@ declare const MpRichTextEditor: vue.DefineComponent<{
|
|
|
67
76
|
type: vue.PropType<MentionSuggestionItem[] | undefined>;
|
|
68
77
|
default: () => never[];
|
|
69
78
|
};
|
|
79
|
+
validateLink: {
|
|
80
|
+
type: vue.PropType<((url: string, ctx: {
|
|
81
|
+
defaultValidate: (url: string) => boolean;
|
|
82
|
+
protocols: string[];
|
|
83
|
+
}) => boolean) | undefined>;
|
|
84
|
+
};
|
|
85
|
+
transformLink: {
|
|
86
|
+
type: vue.PropType<((url: string) => string) | undefined>;
|
|
87
|
+
};
|
|
70
88
|
}>> & {
|
|
71
89
|
onPaste?: ((...args: any[]) => any) | undefined;
|
|
72
90
|
onFocus?: ((...args: any[]) => any) | undefined;
|
package/dist/rich-text-editor.js
CHANGED
|
@@ -71,6 +71,12 @@ var richTextEditorProps = {
|
|
|
71
71
|
suggestions: {
|
|
72
72
|
type: Array,
|
|
73
73
|
default: () => []
|
|
74
|
+
},
|
|
75
|
+
validateLink: {
|
|
76
|
+
type: Function
|
|
77
|
+
},
|
|
78
|
+
transformLink: {
|
|
79
|
+
type: Function
|
|
74
80
|
}
|
|
75
81
|
};
|
|
76
82
|
var RTEStyleProviderProps = {
|
|
@@ -953,11 +959,19 @@ var LinkExtension = (0, import_vue13.defineComponent)({
|
|
|
953
959
|
},
|
|
954
960
|
editor: {
|
|
955
961
|
type: Object
|
|
962
|
+
},
|
|
963
|
+
validateLink: {
|
|
964
|
+
type: Function
|
|
965
|
+
},
|
|
966
|
+
transformLink: {
|
|
967
|
+
type: Function
|
|
956
968
|
}
|
|
957
969
|
},
|
|
958
970
|
setup({
|
|
959
971
|
tooltipLabel,
|
|
960
|
-
editor
|
|
972
|
+
editor,
|
|
973
|
+
validateLink,
|
|
974
|
+
transformLink
|
|
961
975
|
}) {
|
|
962
976
|
const {
|
|
963
977
|
isNextTheme
|
|
@@ -970,6 +984,26 @@ var LinkExtension = (0, import_vue13.defineComponent)({
|
|
|
970
984
|
let popperInstance = null;
|
|
971
985
|
let linkElement = null;
|
|
972
986
|
let lastClickedElement = null;
|
|
987
|
+
const defaultValidate = /* @__PURE__ */ __name((urlString) => {
|
|
988
|
+
if (!urlString)
|
|
989
|
+
return false;
|
|
990
|
+
return /^(https?:\/\/|mailto:|tel:|\/)/i.test(urlString) || /^[^\s]+\.[^\s]+/.test(urlString);
|
|
991
|
+
}, "defaultValidate");
|
|
992
|
+
const isUrlInvalid = (0, import_vue13.computed)(() => {
|
|
993
|
+
if (!url.value || isEditLink.value)
|
|
994
|
+
return false;
|
|
995
|
+
let urlToValidate = url.value;
|
|
996
|
+
if (transformLink) {
|
|
997
|
+
urlToValidate = transformLink(url.value);
|
|
998
|
+
}
|
|
999
|
+
if (validateLink) {
|
|
1000
|
+
return !validateLink(urlToValidate, {
|
|
1001
|
+
defaultValidate,
|
|
1002
|
+
protocols: ["http", "https", "mailto", "tel"]
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
return !defaultValidate(urlToValidate);
|
|
1006
|
+
});
|
|
973
1007
|
const onClickOutside = /* @__PURE__ */ __name((event) => {
|
|
974
1008
|
if (popoverRef.value && !popoverRef.value.contains(event.target) && event.target !== lastClickedElement) {
|
|
975
1009
|
onClosePopover();
|
|
@@ -1039,9 +1073,13 @@ var LinkExtension = (0, import_vue13.defineComponent)({
|
|
|
1039
1073
|
}, "onUnlink");
|
|
1040
1074
|
const onSetLink = /* @__PURE__ */ __name(() => {
|
|
1041
1075
|
if (url.value && editor) {
|
|
1076
|
+
let finalUrl = url.value;
|
|
1077
|
+
if (transformLink) {
|
|
1078
|
+
finalUrl = transformLink(url.value);
|
|
1079
|
+
}
|
|
1042
1080
|
;
|
|
1043
1081
|
editor.chain().focus().extendMarkRange("link").setLink({
|
|
1044
|
-
href:
|
|
1082
|
+
href: finalUrl
|
|
1045
1083
|
}).run();
|
|
1046
1084
|
}
|
|
1047
1085
|
onClosePopover();
|
|
@@ -1072,7 +1110,7 @@ var LinkExtension = (0, import_vue13.defineComponent)({
|
|
|
1072
1110
|
if (link) {
|
|
1073
1111
|
event.preventDefault();
|
|
1074
1112
|
linkElement = link;
|
|
1075
|
-
url.value = linkElement.href;
|
|
1113
|
+
url.value = linkElement.getAttribute("href") || "";
|
|
1076
1114
|
onOpenPopover(linkElement);
|
|
1077
1115
|
}
|
|
1078
1116
|
});
|
|
@@ -1121,6 +1159,7 @@ var LinkExtension = (0, import_vue13.defineComponent)({
|
|
|
1121
1159
|
"onUpdate:modelValue": ($event) => url.value = $event,
|
|
1122
1160
|
"placeholder": "Insert URL here",
|
|
1123
1161
|
"isDisabled": isEditLink.value,
|
|
1162
|
+
"isInvalid": isUrlInvalid.value,
|
|
1124
1163
|
"onKeyup": (event) => {
|
|
1125
1164
|
if (event.key === "Enter")
|
|
1126
1165
|
onSetLink();
|
|
@@ -1131,6 +1170,7 @@ var LinkExtension = (0, import_vue13.defineComponent)({
|
|
|
1131
1170
|
"onClick": onEditLink
|
|
1132
1171
|
}, null) : (0, import_vue12.createVNode)(import_pixel3_button.MpButton, {
|
|
1133
1172
|
"leftIcon": "check",
|
|
1173
|
+
"isDisabled": isUrlInvalid.value,
|
|
1134
1174
|
"onClick": onSetLink
|
|
1135
1175
|
}, null), isEditLink.value && (0, import_vue12.createVNode)(import_pixel3_button.MpButton, {
|
|
1136
1176
|
"leftIcon": "newtab",
|
|
@@ -1160,11 +1200,19 @@ var EditorToolbar = (0, import_vue15.defineComponent)({
|
|
|
1160
1200
|
},
|
|
1161
1201
|
options: {
|
|
1162
1202
|
type: Array
|
|
1203
|
+
},
|
|
1204
|
+
validateLink: {
|
|
1205
|
+
type: Function
|
|
1206
|
+
},
|
|
1207
|
+
transformLink: {
|
|
1208
|
+
type: Function
|
|
1163
1209
|
}
|
|
1164
1210
|
},
|
|
1165
1211
|
setup({
|
|
1166
1212
|
editor,
|
|
1167
|
-
options
|
|
1213
|
+
options,
|
|
1214
|
+
validateLink,
|
|
1215
|
+
transformLink
|
|
1168
1216
|
}, {
|
|
1169
1217
|
emit
|
|
1170
1218
|
}) {
|
|
@@ -1302,7 +1350,9 @@ var EditorToolbar = (0, import_vue15.defineComponent)({
|
|
|
1302
1350
|
case "textLink":
|
|
1303
1351
|
return (0, import_vue14.createVNode)(LinkExtension, {
|
|
1304
1352
|
"tooltipLabel": tooltipLabel,
|
|
1305
|
-
"editor": editor
|
|
1353
|
+
"editor": editor,
|
|
1354
|
+
"validateLink": validateLink,
|
|
1355
|
+
"transformLink": transformLink
|
|
1306
1356
|
}, null);
|
|
1307
1357
|
default:
|
|
1308
1358
|
return (0, import_vue14.createVNode)(SingleExtention, {
|
|
@@ -1706,25 +1756,40 @@ var MpRichTextEditor = (0, import_vue21.defineComponent)({
|
|
|
1706
1756
|
return false;
|
|
1707
1757
|
}
|
|
1708
1758
|
},
|
|
1709
|
-
extensions: [
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1759
|
+
extensions: [
|
|
1760
|
+
import_starter_kit.default.configure({
|
|
1761
|
+
heading: {
|
|
1762
|
+
levels: [1, 2, 3]
|
|
1763
|
+
}
|
|
1764
|
+
}),
|
|
1765
|
+
import_extension_underline.default,
|
|
1766
|
+
import_extension_text_align.default.configure({
|
|
1767
|
+
types: ["heading", "paragraph"]
|
|
1768
|
+
}),
|
|
1769
|
+
import_extension_text_style.default,
|
|
1770
|
+
import_extension_color.Color.configure({
|
|
1771
|
+
types: ["textStyle"]
|
|
1772
|
+
}),
|
|
1773
|
+
import_extension_highlight.default.configure({
|
|
1774
|
+
multicolor: true
|
|
1775
|
+
}),
|
|
1776
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1777
|
+
import_extension_link.default.configure({
|
|
1778
|
+
openOnClick: false,
|
|
1779
|
+
...props.validateLink && {
|
|
1780
|
+
isAllowedUri: props.validateLink
|
|
1781
|
+
}
|
|
1782
|
+
}),
|
|
1783
|
+
import_extension_placeholder.default.configure({
|
|
1784
|
+
placeholder: api.value.placeholder || ""
|
|
1785
|
+
}),
|
|
1786
|
+
import_extension_character_count.default.configure({
|
|
1787
|
+
limit: api.value.maxlength
|
|
1788
|
+
}),
|
|
1789
|
+
...props.suggestions && props.suggestions.length > 0 ? [import_extension_mention.default.configure({
|
|
1790
|
+
suggestion: createMentionSuggestion(() => props.suggestions || [])
|
|
1791
|
+
})] : []
|
|
1792
|
+
],
|
|
1728
1793
|
onFocus({
|
|
1729
1794
|
editor: editor2,
|
|
1730
1795
|
event
|
|
@@ -1765,7 +1830,9 @@ var MpRichTextEditor = (0, import_vue21.defineComponent)({
|
|
|
1765
1830
|
}
|
|
1766
1831
|
}), [(0, import_vue20.createVNode)(EditorToolbar, (0, import_vue20.mergeProps)({
|
|
1767
1832
|
"editor": editor,
|
|
1768
|
-
"options": api.value.options
|
|
1833
|
+
"options": api.value.options,
|
|
1834
|
+
"validateLink": props.validateLink,
|
|
1835
|
+
"transformLink": props.transformLink
|
|
1769
1836
|
}, api.value.toolbarProps, toolbarActionHandlers), null), (0, import_vue20.createVNode)(MpRTEStyleProvider, {
|
|
1770
1837
|
"id": `${api.value.id}-style-provider`
|
|
1771
1838
|
}, {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpRichTextEditor
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XNM3YX37.mjs";
|
|
4
|
+
import "./chunk-YE6FEVD4.mjs";
|
|
5
5
|
import "./chunk-VYCDVS5I.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-ZO6THAT6.mjs";
|
|
7
7
|
import "./chunk-25RKPG44.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MKTM47RO.mjs";
|
|
9
9
|
import "./chunk-ZRAXSVO5.mjs";
|
|
10
10
|
import "./chunk-ZAXJ3BEP.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7BEXEMOE.mjs";
|
|
12
12
|
import "./chunk-4KJOYLJI.mjs";
|
|
13
13
|
import "./chunk-4TUA5VF4.mjs";
|
|
14
14
|
import "./chunk-UBJOZ2IA.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpRTEStyleProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MKTM47RO.mjs";
|
|
4
4
|
import "./chunk-ZRAXSVO5.mjs";
|
|
5
5
|
import "./chunk-ZAXJ3BEP.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7BEXEMOE.mjs";
|
|
7
7
|
import "./chunk-QZ7VFGWC.mjs";
|
|
8
8
|
export {
|
|
9
9
|
MpRTEStyleProvider
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-rich-text-editor",
|
|
3
3
|
"description": "Mekari Pixel 3 | Rich text editor component is used to content editor based Tiptap.js",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.2-dev.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"@tiptap/starter-kit": "2.7.4",
|
|
42
42
|
"@tiptap/suggestion": "2.7.4",
|
|
43
43
|
"@tiptap/vue-3": "2.7.4",
|
|
44
|
-
"@mekari/pixel3-
|
|
45
|
-
"@mekari/pixel3-
|
|
46
|
-
"@mekari/pixel3-color-picker": "0.2.0",
|
|
44
|
+
"@mekari/pixel3-button": "0.2.2-dev.0",
|
|
45
|
+
"@mekari/pixel3-avatar": "0.0.27-dev.0",
|
|
46
|
+
"@mekari/pixel3-color-picker": "0.2.1-dev.0",
|
|
47
47
|
"@mekari/pixel3-form-control": "0.0.22",
|
|
48
|
-
"@mekari/pixel3-
|
|
49
|
-
"@mekari/pixel3-popover": "0.0.
|
|
48
|
+
"@mekari/pixel3-divider": "0.0.22",
|
|
49
|
+
"@mekari/pixel3-popover": "0.0.27-dev.0",
|
|
50
|
+
"@mekari/pixel3-input": "0.0.27-dev.0",
|
|
50
51
|
"@mekari/pixel3-scrollbar": "0.1.6",
|
|
51
|
-
"@mekari/pixel3-input": "0.0.26",
|
|
52
52
|
"@mekari/pixel3-styled-system": "0.2.0",
|
|
53
|
-
"@mekari/pixel3-
|
|
54
|
-
"@mekari/pixel3-
|
|
53
|
+
"@mekari/pixel3-text": "0.0.22",
|
|
54
|
+
"@mekari/pixel3-utils": "0.1.0"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"vue": "^3.4.9"
|