@mekari/pixel3-rich-text-editor 0.0.1-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-2SSVSEKG.mjs +28 -0
- package/dist/chunk-3RJGWHBG.mjs +122 -0
- package/dist/chunk-CE52CW3F.mjs +0 -0
- package/dist/chunk-CENCRLRC.mjs +40 -0
- package/dist/chunk-IE2ITPBX.mjs +106 -0
- package/dist/chunk-J5QZDLNA.mjs +282 -0
- package/dist/chunk-JURYRRU5.mjs +61 -0
- package/dist/chunk-MMFX326I.mjs +44 -0
- package/dist/chunk-N5YFARYC.mjs +89 -0
- package/dist/chunk-OFJH5BEQ.mjs +176 -0
- package/dist/chunk-QZ7VFGWC.mjs +6 -0
- package/dist/chunk-VQOMXS6M.mjs +27 -0
- package/dist/editor-toolbar.d.mts +12 -0
- package/dist/editor-toolbar.d.ts +12 -0
- package/dist/editor-toolbar.js +698 -0
- package/dist/editor-toolbar.mjs +12 -0
- package/dist/extensions/align-extension.d.mts +12 -0
- package/dist/extensions/align-extension.d.ts +12 -0
- package/dist/extensions/align-extension.js +406 -0
- package/dist/extensions/align-extension.mjs +8 -0
- package/dist/extensions/heading-extension.d.mts +12 -0
- package/dist/extensions/heading-extension.d.ts +12 -0
- package/dist/extensions/heading-extension.js +463 -0
- package/dist/extensions/heading-extension.mjs +8 -0
- package/dist/extensions/icons.d.mts +20 -0
- package/dist/extensions/icons.d.ts +20 -0
- package/dist/extensions/icons.js +320 -0
- package/dist/extensions/icons.mjs +35 -0
- package/dist/extensions/index.d.mts +5 -0
- package/dist/extensions/index.d.ts +5 -0
- package/dist/extensions/index.js +609 -0
- package/dist/extensions/index.mjs +17 -0
- package/dist/extensions/single-extension.d.mts +16 -0
- package/dist/extensions/single-extension.d.ts +16 -0
- package/dist/extensions/single-extension.js +322 -0
- package/dist/extensions/single-extension.mjs +8 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +914 -0
- package/dist/index.mjs +20 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/modules/rich-text-editor.connects.d.mts +11 -0
- package/dist/modules/rich-text-editor.connects.d.ts +11 -0
- package/dist/modules/rich-text-editor.connects.js +83 -0
- package/dist/modules/rich-text-editor.connects.mjs +9 -0
- package/dist/modules/rich-text-editor.hooks.d.mts +8 -0
- package/dist/modules/rich-text-editor.hooks.d.ts +8 -0
- package/dist/modules/rich-text-editor.hooks.js +101 -0
- package/dist/modules/rich-text-editor.hooks.mjs +10 -0
- package/dist/modules/rich-text-editor.props.d.mts +40 -0
- package/dist/modules/rich-text-editor.props.d.ts +40 -0
- package/dist/modules/rich-text-editor.props.js +66 -0
- package/dist/modules/rich-text-editor.props.mjs +11 -0
- package/dist/modules/rich-text-editor.types.d.mts +54 -0
- package/dist/modules/rich-text-editor.types.d.ts +54 -0
- package/dist/modules/rich-text-editor.types.js +18 -0
- package/dist/modules/rich-text-editor.types.mjs +0 -0
- package/dist/rich-text-editor.d.mts +67 -0
- package/dist/rich-text-editor.d.ts +67 -0
- package/dist/rich-text-editor.js +910 -0
- package/dist/rich-text-editor.mjs +17 -0
- package/dist/rte-style-provider.d.mts +17 -0
- package/dist/rte-style-provider.d.ts +17 -0
- package/dist/rte-style-provider.js +85 -0
- package/dist/rte-style-provider.mjs +10 -0
- package/package.json +55 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MpRichTextEditor
|
|
3
|
+
} from "./chunk-N5YFARYC.mjs";
|
|
4
|
+
import "./chunk-IE2ITPBX.mjs";
|
|
5
|
+
import {
|
|
6
|
+
MpRTEStyleProvider
|
|
7
|
+
} from "./chunk-VQOMXS6M.mjs";
|
|
8
|
+
import "./chunk-2SSVSEKG.mjs";
|
|
9
|
+
import "./chunk-JURYRRU5.mjs";
|
|
10
|
+
import "./chunk-CENCRLRC.mjs";
|
|
11
|
+
import "./chunk-CE52CW3F.mjs";
|
|
12
|
+
import "./chunk-MMFX326I.mjs";
|
|
13
|
+
import "./chunk-3RJGWHBG.mjs";
|
|
14
|
+
import "./chunk-OFJH5BEQ.mjs";
|
|
15
|
+
import "./chunk-J5QZDLNA.mjs";
|
|
16
|
+
import "./chunk-QZ7VFGWC.mjs";
|
|
17
|
+
export {
|
|
18
|
+
MpRTEStyleProvider,
|
|
19
|
+
MpRichTextEditor
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/extensions/icons.tsx":{"bytes":16556,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/heading-extension.tsx":{"bytes":5527,"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":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/align-extension.tsx":{"bytes":4051,"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":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/single-extension.tsx":{"bytes":1551,"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"}],"format":"esm"},"src/extensions/index.ts":{"bytes":295,"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"}],"format":"esm"},"src/editor-toolbar.tsx":{"bytes":3201,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"./extensions"},{"path":"./modules/rich-text-editor.types","kind":"import-statement","external":true},{"path":"@mekari/pixel3-divider","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.props.ts":{"bytes":1204,"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":1528,"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/rich-text-editor.tsx":{"bytes":3395,"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"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"src/editor-toolbar.tsx","kind":"import-statement","original":"./editor-toolbar"},{"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-placeholder","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/rte-style-provider.tsx","kind":"import-statement","original":"./rte-style-provider"}],"format":"esm"},"src/index.ts":{"bytes":357,"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"}],"format":"esm"},"src/modules/rich-text-editor.types.ts":{"bytes":1580,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/editor-toolbar.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-divider","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/editor-toolbar.tsx","inputs":{"src/editor-toolbar.tsx":{"bytesInOutput":3611},"src/extensions/heading-extension.tsx":{"bytesInOutput":6766},"src/extensions/icons.tsx":{"bytesInOutput":17019},"src/extensions/index.ts":{"bytesInOutput":0},"src/extensions/align-extension.tsx":{"bytesInOutput":4798},"src/extensions/single-extension.tsx":{"bytesInOutput":1405}},"bytes":34749},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@tiptap/vue-3","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-divider","kind":"require-call","external":true},{"path":"@tiptap/starter-kit","kind":"require-call","external":true},{"path":"@tiptap/extension-underline","kind":"require-call","external":true},{"path":"@tiptap/extension-text-align","kind":"require-call","external":true},{"path":"@tiptap/extension-placeholder","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-form-control","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":185},"src/rich-text-editor.tsx":{"bytesInOutput":3533},"src/modules/rich-text-editor.props.ts":{"bytesInOutput":554},"src/modules/rich-text-editor.hooks.ts":{"bytesInOutput":869},"src/modules/rich-text-editor.connects.ts":{"bytesInOutput":1248},"src/editor-toolbar.tsx":{"bytesInOutput":3455},"src/extensions/heading-extension.tsx":{"bytesInOutput":6766},"src/extensions/icons.tsx":{"bytesInOutput":17050},"src/extensions/index.ts":{"bytesInOutput":0},"src/extensions/align-extension.tsx":{"bytesInOutput":4798},"src/extensions/single-extension.tsx":{"bytesInOutput":1405},"src/rte-style-provider.tsx":{"bytesInOutput":449}},"bytes":42509},"dist/rich-text-editor.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@tiptap/vue-3","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-divider","kind":"require-call","external":true},{"path":"@tiptap/starter-kit","kind":"require-call","external":true},{"path":"@tiptap/extension-underline","kind":"require-call","external":true},{"path":"@tiptap/extension-text-align","kind":"require-call","external":true},{"path":"@tiptap/extension-placeholder","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"@mekari/pixel3-form-control","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/rich-text-editor.tsx","inputs":{"src/rich-text-editor.tsx":{"bytesInOutput":3709},"src/modules/rich-text-editor.props.ts":{"bytesInOutput":554},"src/modules/rich-text-editor.hooks.ts":{"bytesInOutput":869},"src/modules/rich-text-editor.connects.ts":{"bytesInOutput":1248},"src/editor-toolbar.tsx":{"bytesInOutput":3455},"src/extensions/heading-extension.tsx":{"bytesInOutput":6766},"src/extensions/icons.tsx":{"bytesInOutput":17050},"src/extensions/index.ts":{"bytesInOutput":0},"src/extensions/align-extension.tsx":{"bytesInOutput":4798},"src/extensions/single-extension.tsx":{"bytesInOutput":1405},"src/rte-style-provider.tsx":{"bytesInOutput":449}},"bytes":42461},"dist/rte-style-provider.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/rte-style-provider.tsx","inputs":{"src/rte-style-provider.tsx":{"bytesInOutput":631},"src/modules/rich-text-editor.props.ts":{"bytesInOutput":214},"src/modules/rich-text-editor.hooks.ts":{"bytesInOutput":487},"src/modules/rich-text-editor.connects.ts":{"bytesInOutput":424}},"bytes":2990},"dist/extensions/align-extension.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/extensions/align-extension.tsx","inputs":{"src/extensions/align-extension.tsx":{"bytesInOutput":4955},"src/extensions/icons.tsx":{"bytesInOutput":17019}},"bytes":22988},"dist/extensions/heading-extension.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/extensions/heading-extension.tsx","inputs":{"src/extensions/heading-extension.tsx":{"bytesInOutput":6945},"src/extensions/icons.tsx":{"bytesInOutput":17019}},"bytes":24984},"dist/extensions/icons.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/extensions/icons.tsx","inputs":{"src/extensions/icons.tsx":{"bytesInOutput":17650}},"bytes":18804},"dist/extensions/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-popover","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/extensions/index.ts","inputs":{"src/extensions/index.ts":{"bytesInOutput":240},"src/extensions/heading-extension.tsx":{"bytesInOutput":6766},"src/extensions/icons.tsx":{"bytesInOutput":17019},"src/extensions/align-extension.tsx":{"bytesInOutput":4798},"src/extensions/single-extension.tsx":{"bytesInOutput":1405}},"bytes":31392},"dist/extensions/single-extension.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/extensions/single-extension.tsx","inputs":{"src/extensions/single-extension.tsx":{"bytesInOutput":1579},"src/extensions/icons.tsx":{"bytesInOutput":17019}},"bytes":19615},"dist/modules/rich-text-editor.connects.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/rich-text-editor.connects.ts","inputs":{"src/modules/rich-text-editor.connects.ts":{"bytesInOutput":1516}},"bytes":2592},"dist/modules/rich-text-editor.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/rich-text-editor.hooks.ts","inputs":{"src/modules/rich-text-editor.hooks.ts":{"bytesInOutput":1115},"src/modules/rich-text-editor.connects.ts":{"bytesInOutput":1245}},"bytes":3512},"dist/modules/rich-text-editor.props.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/rich-text-editor.props.ts","inputs":{"src/modules/rich-text-editor.props.ts":{"bytesInOutput":858}},"bytes":1860},"dist/modules/rich-text-editor.types.js":{"imports":[],"exports":[],"entryPoint":"src/modules/rich-text-editor.types.ts","inputs":{"src/modules/rich-text-editor.types.ts":{"bytesInOutput":104}},"bytes":817}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/extensions/icons.tsx":{"bytes":16556,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/heading-extension.tsx":{"bytes":5527,"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":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/align-extension.tsx":{"bytes":4051,"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":"@mekari/pixel3-popover","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"format":"esm"},"src/extensions/single-extension.tsx":{"bytes":1551,"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"}],"format":"esm"},"src/extensions/index.ts":{"bytes":295,"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"}],"format":"esm"},"src/editor-toolbar.tsx":{"bytes":3201,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/extensions/index.ts","kind":"import-statement","original":"./extensions"},{"path":"./modules/rich-text-editor.types","kind":"import-statement","external":true},{"path":"@mekari/pixel3-divider","kind":"import-statement","external":true}],"format":"esm"},"src/modules/rich-text-editor.props.ts":{"bytes":1204,"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":1528,"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/rich-text-editor.tsx":{"bytes":3395,"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"},{"path":"@tiptap/vue-3","kind":"import-statement","external":true},{"path":"src/editor-toolbar.tsx","kind":"import-statement","original":"./editor-toolbar"},{"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-placeholder","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/rte-style-provider.tsx","kind":"import-statement","original":"./rte-style-provider"}],"format":"esm"},"src/index.ts":{"bytes":357,"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"}],"format":"esm"},"src/modules/rich-text-editor.types.ts":{"bytes":1580,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/extensions/single-extension.mjs":{"imports":[{"path":"dist/chunk-MMFX326I.mjs","kind":"import-statement"},{"path":"dist/chunk-J5QZDLNA.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-JURYRRU5.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-2SSVSEKG.mjs","kind":"import-statement"},{"path":"dist/chunk-JURYRRU5.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-CENCRLRC.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/modules/rich-text-editor.types.mjs":{"imports":[],"exports":[],"entryPoint":"src/modules/rich-text-editor.types.ts","inputs":{"src/modules/rich-text-editor.types.ts":{"bytesInOutput":0}},"bytes":0},"dist/editor-toolbar.mjs":{"imports":[{"path":"dist/chunk-IE2ITPBX.mjs","kind":"import-statement"},{"path":"dist/chunk-CE52CW3F.mjs","kind":"import-statement"},{"path":"dist/chunk-MMFX326I.mjs","kind":"import-statement"},{"path":"dist/chunk-3RJGWHBG.mjs","kind":"import-statement"},{"path":"dist/chunk-OFJH5BEQ.mjs","kind":"import-statement"},{"path":"dist/chunk-J5QZDLNA.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["EditorToolbar"],"entryPoint":"src/editor-toolbar.tsx","inputs":{},"bytes":270},"dist/index.mjs":{"imports":[{"path":"dist/chunk-N5YFARYC.mjs","kind":"import-statement"},{"path":"dist/chunk-IE2ITPBX.mjs","kind":"import-statement"},{"path":"dist/chunk-VQOMXS6M.mjs","kind":"import-statement"},{"path":"dist/chunk-2SSVSEKG.mjs","kind":"import-statement"},{"path":"dist/chunk-JURYRRU5.mjs","kind":"import-statement"},{"path":"dist/chunk-CENCRLRC.mjs","kind":"import-statement"},{"path":"dist/chunk-CE52CW3F.mjs","kind":"import-statement"},{"path":"dist/chunk-MMFX326I.mjs","kind":"import-statement"},{"path":"dist/chunk-3RJGWHBG.mjs","kind":"import-statement"},{"path":"dist/chunk-OFJH5BEQ.mjs","kind":"import-statement"},{"path":"dist/chunk-J5QZDLNA.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":483},"dist/rich-text-editor.mjs":{"imports":[{"path":"dist/chunk-N5YFARYC.mjs","kind":"import-statement"},{"path":"dist/chunk-IE2ITPBX.mjs","kind":"import-statement"},{"path":"dist/chunk-VQOMXS6M.mjs","kind":"import-statement"},{"path":"dist/chunk-2SSVSEKG.mjs","kind":"import-statement"},{"path":"dist/chunk-JURYRRU5.mjs","kind":"import-statement"},{"path":"dist/chunk-CENCRLRC.mjs","kind":"import-statement"},{"path":"dist/chunk-CE52CW3F.mjs","kind":"import-statement"},{"path":"dist/chunk-MMFX326I.mjs","kind":"import-statement"},{"path":"dist/chunk-3RJGWHBG.mjs","kind":"import-statement"},{"path":"dist/chunk-OFJH5BEQ.mjs","kind":"import-statement"},{"path":"dist/chunk-J5QZDLNA.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpRichTextEditor"],"entryPoint":"src/rich-text-editor.tsx","inputs":{},"bytes":431},"dist/chunk-N5YFARYC.mjs":{"imports":[{"path":"dist/chunk-IE2ITPBX.mjs","kind":"import-statement"},{"path":"dist/chunk-VQOMXS6M.mjs","kind":"import-statement"},{"path":"dist/chunk-2SSVSEKG.mjs","kind":"import-statement"},{"path":"dist/chunk-CENCRLRC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","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-placeholder","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":3045}},"bytes":3368},"dist/chunk-IE2ITPBX.mjs":{"imports":[{"path":"dist/chunk-MMFX326I.mjs","kind":"import-statement"},{"path":"dist/chunk-3RJGWHBG.mjs","kind":"import-statement"},{"path":"dist/chunk-OFJH5BEQ.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-divider","kind":"import-statement","external":true}],"exports":["EditorToolbar"],"inputs":{"src/editor-toolbar.tsx":{"bytesInOutput":3333}},"bytes":3563},"dist/rte-style-provider.mjs":{"imports":[{"path":"dist/chunk-VQOMXS6M.mjs","kind":"import-statement"},{"path":"dist/chunk-2SSVSEKG.mjs","kind":"import-statement"},{"path":"dist/chunk-JURYRRU5.mjs","kind":"import-statement"},{"path":"dist/chunk-CENCRLRC.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-VQOMXS6M.mjs":{"imports":[{"path":"dist/chunk-2SSVSEKG.mjs","kind":"import-statement"},{"path":"dist/chunk-CENCRLRC.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-2SSVSEKG.mjs":{"imports":[{"path":"dist/chunk-JURYRRU5.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-JURYRRU5.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":1182}},"bytes":1340},"dist/chunk-CENCRLRC.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["RTEStyleProviderProps","richTextEditorEmits","richTextEditorProps"],"inputs":{"src/modules/rich-text-editor.props.ts":{"bytesInOutput":522}},"bytes":646},"dist/extensions/align-extension.mjs":{"imports":[{"path":"dist/chunk-3RJGWHBG.mjs","kind":"import-statement"},{"path":"dist/chunk-J5QZDLNA.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignExtention"],"entryPoint":"src/extensions/align-extension.tsx","inputs":{},"bytes":151},"dist/extensions/heading-extension.mjs":{"imports":[{"path":"dist/chunk-OFJH5BEQ.mjs","kind":"import-statement"},{"path":"dist/chunk-J5QZDLNA.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["HeadingExtention"],"entryPoint":"src/extensions/heading-extension.tsx","inputs":{},"bytes":155},"dist/extensions/icons.mjs":{"imports":[{"path":"dist/chunk-J5QZDLNA.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignCenterIcon","AlignJustifyIcon","AlignLeftIcon","AlignRightIcon","BlockquoteIcon","BoldIcon","BulletListIcon","CaretIcon","ClearIcon","ItalicIcon","OrderedListIcon","RedoIcon","StrikeIcon","UnderlineIcon","UndoIcon"],"entryPoint":"src/extensions/icons.tsx","inputs":{},"bytes":555},"dist/extensions/index.mjs":{"imports":[{"path":"dist/chunk-CE52CW3F.mjs","kind":"import-statement"},{"path":"dist/chunk-MMFX326I.mjs","kind":"import-statement"},{"path":"dist/chunk-3RJGWHBG.mjs","kind":"import-statement"},{"path":"dist/chunk-OFJH5BEQ.mjs","kind":"import-statement"},{"path":"dist/chunk-J5QZDLNA.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["AlignExtention","HeadingExtention","SingleExtention"],"entryPoint":"src/extensions/index.ts","inputs":{},"bytes":341},"dist/chunk-CE52CW3F.mjs":{"imports":[],"exports":[],"inputs":{"src/extensions/index.ts":{"bytesInOutput":0}},"bytes":0},"dist/chunk-MMFX326I.mjs":{"imports":[{"path":"dist/chunk-J5QZDLNA.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":1276}},"bytes":1535},"dist/chunk-3RJGWHBG.mjs":{"imports":[{"path":"dist/chunk-J5QZDLNA.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":4390}},"bytes":4572},"dist/chunk-OFJH5BEQ.mjs":{"imports":[{"path":"dist/chunk-J5QZDLNA.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-text","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/css","kind":"import-statement","external":true}],"exports":["HeadingExtention"],"inputs":{"src/extensions/heading-extension.tsx":{"bytesInOutput":5921}},"bytes":6046},"dist/chunk-J5QZDLNA.mjs":{"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["AlignCenterIcon","AlignJustifyIcon","AlignLeftIcon","AlignRightIcon","BlockquoteIcon","BoldIcon","BulletListIcon","CaretIcon","ClearIcon","ItalicIcon","OrderedListIcon","RedoIcon","StrikeIcon","UnderlineIcon","UndoIcon"],"inputs":{"src/extensions/icons.tsx":{"bytesInOutput":16337}},"bytes":16613},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RichTextEditorState, RichTextEditorClasses, RichTextEditorApiMachine, RTEStyleProviderState, RTEStyleProviderClasses, RTEStyleProviderApiMachine } from './rich-text-editor.types.mjs';
|
|
2
|
+
import '@mekari/pixel3-utils';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Exported rich text editor connects.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare function richTextEditorConnect(state: RichTextEditorState, classes: RichTextEditorClasses): RichTextEditorApiMachine;
|
|
9
|
+
declare function RTEStyleProviderConnect(state: RTEStyleProviderState, classes: RTEStyleProviderClasses): RTEStyleProviderApiMachine;
|
|
10
|
+
|
|
11
|
+
export { RTEStyleProviderConnect, richTextEditorConnect };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RichTextEditorState, RichTextEditorClasses, RichTextEditorApiMachine, RTEStyleProviderState, RTEStyleProviderClasses, RTEStyleProviderApiMachine } from './rich-text-editor.types.js';
|
|
2
|
+
import '@mekari/pixel3-utils';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Exported rich text editor connects.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
declare function richTextEditorConnect(state: RichTextEditorState, classes: RichTextEditorClasses): RichTextEditorApiMachine;
|
|
9
|
+
declare function RTEStyleProviderConnect(state: RTEStyleProviderState, classes: RTEStyleProviderClasses): RTEStyleProviderApiMachine;
|
|
10
|
+
|
|
11
|
+
export { RTEStyleProviderConnect, richTextEditorConnect };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/modules/rich-text-editor.connects.ts
|
|
22
|
+
var rich_text_editor_connects_exports = {};
|
|
23
|
+
__export(rich_text_editor_connects_exports, {
|
|
24
|
+
RTEStyleProviderConnect: () => RTEStyleProviderConnect,
|
|
25
|
+
richTextEditorConnect: () => richTextEditorConnect
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(rich_text_editor_connects_exports);
|
|
28
|
+
var import_pixel3_utils = require("@mekari/pixel3-utils");
|
|
29
|
+
function richTextEditorConnect(state, classes) {
|
|
30
|
+
const {
|
|
31
|
+
id,
|
|
32
|
+
value,
|
|
33
|
+
placeholder,
|
|
34
|
+
options,
|
|
35
|
+
hasBorder,
|
|
36
|
+
isInvalid,
|
|
37
|
+
isDisabled
|
|
38
|
+
} = state;
|
|
39
|
+
const idx = id != null ? id : `mp-rich-text-editor-${(0, import_pixel3_utils.useId)()}`;
|
|
40
|
+
return {
|
|
41
|
+
value,
|
|
42
|
+
placeholder,
|
|
43
|
+
options,
|
|
44
|
+
isInvalid,
|
|
45
|
+
isDisabled,
|
|
46
|
+
rootProps: {
|
|
47
|
+
id: idx,
|
|
48
|
+
class: classes.root,
|
|
49
|
+
"data-has-border": hasBorder,
|
|
50
|
+
"data-pixel-component": "MpRichTextEditor"
|
|
51
|
+
},
|
|
52
|
+
toolbarProps: {
|
|
53
|
+
id: `${idx}-toolbar`,
|
|
54
|
+
class: classes.toolbar,
|
|
55
|
+
"data-pixel-component": "MpRichTextEditorToolbar"
|
|
56
|
+
},
|
|
57
|
+
areaProps: {
|
|
58
|
+
id: `${idx}-area`,
|
|
59
|
+
class: classes.area,
|
|
60
|
+
"data-pixel-component": "MpRichTextEditorArea"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
__name(richTextEditorConnect, "richTextEditorConnect");
|
|
65
|
+
function RTEStyleProviderConnect(state, classes) {
|
|
66
|
+
const {
|
|
67
|
+
id
|
|
68
|
+
} = state;
|
|
69
|
+
const idx = id != null ? id : `mp-rte-style-provider-${(0, import_pixel3_utils.useId)()}`;
|
|
70
|
+
return {
|
|
71
|
+
rootProps: {
|
|
72
|
+
id: idx,
|
|
73
|
+
class: classes,
|
|
74
|
+
"data-pixel-component": "MpRTEStyleProvider"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
__name(RTEStyleProviderConnect, "RTEStyleProviderConnect");
|
|
79
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
80
|
+
0 && (module.exports = {
|
|
81
|
+
RTEStyleProviderConnect,
|
|
82
|
+
richTextEditorConnect
|
|
83
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { RichTextEditorDefinedContext, RichTextEditorApiMachine, RTEStyleProviderDefinedContext, RTEStyleProviderApiMachine } from './rich-text-editor.types.mjs';
|
|
3
|
+
import * as _mekari_pixel3_utils from '@mekari/pixel3-utils';
|
|
4
|
+
|
|
5
|
+
declare const useRichTextEditor: (props: RichTextEditorDefinedContext) => vue.ComputedRef<RichTextEditorApiMachine<_mekari_pixel3_utils.PropTypes>>;
|
|
6
|
+
declare const useRTEStyleProvider: (props: RTEStyleProviderDefinedContext) => vue.ComputedRef<RTEStyleProviderApiMachine<_mekari_pixel3_utils.PropTypes>>;
|
|
7
|
+
|
|
8
|
+
export { useRTEStyleProvider, useRichTextEditor };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { RichTextEditorDefinedContext, RichTextEditorApiMachine, RTEStyleProviderDefinedContext, RTEStyleProviderApiMachine } from './rich-text-editor.types.js';
|
|
3
|
+
import * as _mekari_pixel3_utils from '@mekari/pixel3-utils';
|
|
4
|
+
|
|
5
|
+
declare const useRichTextEditor: (props: RichTextEditorDefinedContext) => vue.ComputedRef<RichTextEditorApiMachine<_mekari_pixel3_utils.PropTypes>>;
|
|
6
|
+
declare const useRTEStyleProvider: (props: RTEStyleProviderDefinedContext) => vue.ComputedRef<RTEStyleProviderApiMachine<_mekari_pixel3_utils.PropTypes>>;
|
|
7
|
+
|
|
8
|
+
export { useRTEStyleProvider, useRichTextEditor };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/modules/rich-text-editor.hooks.ts
|
|
22
|
+
var rich_text_editor_hooks_exports = {};
|
|
23
|
+
__export(rich_text_editor_hooks_exports, {
|
|
24
|
+
useRTEStyleProvider: () => useRTEStyleProvider,
|
|
25
|
+
useRichTextEditor: () => useRichTextEditor
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(rich_text_editor_hooks_exports);
|
|
28
|
+
var import_vue = require("vue");
|
|
29
|
+
var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
30
|
+
|
|
31
|
+
// src/modules/rich-text-editor.connects.ts
|
|
32
|
+
var import_pixel3_utils = require("@mekari/pixel3-utils");
|
|
33
|
+
function richTextEditorConnect(state, classes) {
|
|
34
|
+
const {
|
|
35
|
+
id,
|
|
36
|
+
value,
|
|
37
|
+
placeholder,
|
|
38
|
+
options,
|
|
39
|
+
hasBorder,
|
|
40
|
+
isInvalid,
|
|
41
|
+
isDisabled
|
|
42
|
+
} = state;
|
|
43
|
+
const idx = id != null ? id : `mp-rich-text-editor-${(0, import_pixel3_utils.useId)()}`;
|
|
44
|
+
return {
|
|
45
|
+
value,
|
|
46
|
+
placeholder,
|
|
47
|
+
options,
|
|
48
|
+
isInvalid,
|
|
49
|
+
isDisabled,
|
|
50
|
+
rootProps: {
|
|
51
|
+
id: idx,
|
|
52
|
+
class: classes.root,
|
|
53
|
+
"data-has-border": hasBorder,
|
|
54
|
+
"data-pixel-component": "MpRichTextEditor"
|
|
55
|
+
},
|
|
56
|
+
toolbarProps: {
|
|
57
|
+
id: `${idx}-toolbar`,
|
|
58
|
+
class: classes.toolbar,
|
|
59
|
+
"data-pixel-component": "MpRichTextEditorToolbar"
|
|
60
|
+
},
|
|
61
|
+
areaProps: {
|
|
62
|
+
id: `${idx}-area`,
|
|
63
|
+
class: classes.area,
|
|
64
|
+
"data-pixel-component": "MpRichTextEditorArea"
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
__name(richTextEditorConnect, "richTextEditorConnect");
|
|
69
|
+
function RTEStyleProviderConnect(state, classes) {
|
|
70
|
+
const {
|
|
71
|
+
id
|
|
72
|
+
} = state;
|
|
73
|
+
const idx = id != null ? id : `mp-rte-style-provider-${(0, import_pixel3_utils.useId)()}`;
|
|
74
|
+
return {
|
|
75
|
+
rootProps: {
|
|
76
|
+
id: idx,
|
|
77
|
+
class: classes,
|
|
78
|
+
"data-pixel-component": "MpRTEStyleProvider"
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
__name(RTEStyleProviderConnect, "RTEStyleProviderConnect");
|
|
83
|
+
|
|
84
|
+
// src/modules/rich-text-editor.hooks.ts
|
|
85
|
+
var useRichTextEditor = /* @__PURE__ */ __name((props) => {
|
|
86
|
+
const context = (0, import_vue.ref)(props);
|
|
87
|
+
const [value] = import_recipes.richTextEditorSlotRecipe.splitVariantProps(context.value);
|
|
88
|
+
const classes = (0, import_recipes.richTextEditorSlotRecipe)(value);
|
|
89
|
+
return (0, import_vue.computed)(() => richTextEditorConnect(context.value, classes));
|
|
90
|
+
}, "useRichTextEditor");
|
|
91
|
+
var useRTEStyleProvider = /* @__PURE__ */ __name((props) => {
|
|
92
|
+
const context = (0, import_vue.ref)(props);
|
|
93
|
+
const [value] = import_recipes.RTEStyleProviderRecipe.splitVariantProps(context.value);
|
|
94
|
+
const classes = (0, import_recipes.RTEStyleProviderRecipe)(value);
|
|
95
|
+
return (0, import_vue.computed)(() => RTEStyleProviderConnect(context.value, classes));
|
|
96
|
+
}, "useRTEStyleProvider");
|
|
97
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
98
|
+
0 && (module.exports = {
|
|
99
|
+
useRTEStyleProvider,
|
|
100
|
+
useRichTextEditor
|
|
101
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Exported rich text editor properties and emits.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
declare const richTextEditorProps: {
|
|
8
|
+
id: {
|
|
9
|
+
type: PropType<string | undefined>;
|
|
10
|
+
};
|
|
11
|
+
value: {
|
|
12
|
+
type: PropType<string | undefined>;
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: PropType<string | undefined>;
|
|
16
|
+
};
|
|
17
|
+
options: {
|
|
18
|
+
type: PropType<[] | undefined>;
|
|
19
|
+
};
|
|
20
|
+
isInvalid: {
|
|
21
|
+
type: PropType<boolean>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
isDisabled: {
|
|
25
|
+
type: PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
hasBorder: {
|
|
29
|
+
type: PropType<boolean | undefined>;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
declare const RTEStyleProviderProps: {
|
|
34
|
+
id: {
|
|
35
|
+
type: PropType<string | undefined>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare const richTextEditorEmits: ("change" | "blur" | "focus")[];
|
|
39
|
+
|
|
40
|
+
export { RTEStyleProviderProps, richTextEditorEmits, richTextEditorProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Exported rich text editor properties and emits.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
declare const richTextEditorProps: {
|
|
8
|
+
id: {
|
|
9
|
+
type: PropType<string | undefined>;
|
|
10
|
+
};
|
|
11
|
+
value: {
|
|
12
|
+
type: PropType<string | undefined>;
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: PropType<string | undefined>;
|
|
16
|
+
};
|
|
17
|
+
options: {
|
|
18
|
+
type: PropType<[] | undefined>;
|
|
19
|
+
};
|
|
20
|
+
isInvalid: {
|
|
21
|
+
type: PropType<boolean>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
isDisabled: {
|
|
25
|
+
type: PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
hasBorder: {
|
|
29
|
+
type: PropType<boolean | undefined>;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
declare const RTEStyleProviderProps: {
|
|
34
|
+
id: {
|
|
35
|
+
type: PropType<string | undefined>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
declare const richTextEditorEmits: ("change" | "blur" | "focus")[];
|
|
39
|
+
|
|
40
|
+
export { RTEStyleProviderProps, richTextEditorEmits, richTextEditorProps };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/modules/rich-text-editor.props.ts
|
|
21
|
+
var rich_text_editor_props_exports = {};
|
|
22
|
+
__export(rich_text_editor_props_exports, {
|
|
23
|
+
RTEStyleProviderProps: () => RTEStyleProviderProps,
|
|
24
|
+
richTextEditorEmits: () => richTextEditorEmits,
|
|
25
|
+
richTextEditorProps: () => richTextEditorProps
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(rich_text_editor_props_exports);
|
|
28
|
+
var import_pixel3_utils = require("@mekari/pixel3-utils");
|
|
29
|
+
var richTextEditorProps = {
|
|
30
|
+
id: {
|
|
31
|
+
type: String
|
|
32
|
+
},
|
|
33
|
+
value: {
|
|
34
|
+
type: String
|
|
35
|
+
},
|
|
36
|
+
placeholder: {
|
|
37
|
+
type: String
|
|
38
|
+
},
|
|
39
|
+
options: {
|
|
40
|
+
type: Array
|
|
41
|
+
},
|
|
42
|
+
isInvalid: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
isDisabled: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
50
|
+
hasBorder: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: true
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var RTEStyleProviderProps = {
|
|
56
|
+
id: {
|
|
57
|
+
type: String
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var richTextEditorEmits = (0, import_pixel3_utils.declareEmit)(["change", "blur", "focus"]);
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
RTEStyleProviderProps,
|
|
64
|
+
richTextEditorEmits,
|
|
65
|
+
richTextEditorProps
|
|
66
|
+
});
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Optional, PropTypes } from '@mekari/pixel3-utils';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Exported rich text editor types.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
interface RichTextEditorProps {
|
|
8
|
+
id?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
options?: [];
|
|
12
|
+
isInvalid: boolean;
|
|
13
|
+
isDisabled: boolean;
|
|
14
|
+
hasBorder?: boolean;
|
|
15
|
+
editor?: unknown;
|
|
16
|
+
}
|
|
17
|
+
interface RteStyleProviderProps {
|
|
18
|
+
id?: string;
|
|
19
|
+
}
|
|
20
|
+
type RichTextEditorDefinedContext = Optional<RichTextEditorProps, 'id'>;
|
|
21
|
+
type RTEStyleProviderDefinedContext = Optional<RteStyleProviderProps, 'id'>;
|
|
22
|
+
interface RichTextEditorApiMachine<T extends PropTypes = PropTypes> {
|
|
23
|
+
value?: string;
|
|
24
|
+
editor?: unknown;
|
|
25
|
+
placeholder?: string;
|
|
26
|
+
options?: [];
|
|
27
|
+
isInvalid?: boolean;
|
|
28
|
+
isDisabled?: boolean;
|
|
29
|
+
rootProps?: T['element'];
|
|
30
|
+
toolbarProps?: T['element'];
|
|
31
|
+
areaProps?: T['element'];
|
|
32
|
+
}
|
|
33
|
+
interface RichTextEditorState extends RichTextEditorProps {
|
|
34
|
+
}
|
|
35
|
+
interface RichTextEditorClasses {
|
|
36
|
+
root?: string;
|
|
37
|
+
toolbar?: string;
|
|
38
|
+
area?: string;
|
|
39
|
+
}
|
|
40
|
+
interface RTEStyleProviderApiMachine<T extends PropTypes = PropTypes> {
|
|
41
|
+
rootProps?: T['element'];
|
|
42
|
+
}
|
|
43
|
+
interface RTEStyleProviderState extends RteStyleProviderProps {
|
|
44
|
+
}
|
|
45
|
+
type RTEStyleProviderClasses = string;
|
|
46
|
+
type Items = 'heading' | 'bold' | 'italic' | 'underline' | 'strike' | 'blockquote' | 'bulletList' | 'orderedList' | 'align' | 'undo' | 'redo' | 'clear';
|
|
47
|
+
interface ItemOptions {
|
|
48
|
+
name?: string;
|
|
49
|
+
tooltipLabel?: string;
|
|
50
|
+
onClick?: () => void;
|
|
51
|
+
editor?: unknown;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { ItemOptions, Items, RTEStyleProviderApiMachine, RTEStyleProviderClasses, RTEStyleProviderDefinedContext, RTEStyleProviderState, RichTextEditorApiMachine, RichTextEditorClasses, RichTextEditorDefinedContext, RichTextEditorProps, RichTextEditorState, RteStyleProviderProps };
|