@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MpRichTextEditor
|
|
3
|
+
} from "./chunk-N5YFARYC.mjs";
|
|
4
|
+
import "./chunk-IE2ITPBX.mjs";
|
|
5
|
+
import "./chunk-VQOMXS6M.mjs";
|
|
6
|
+
import "./chunk-2SSVSEKG.mjs";
|
|
7
|
+
import "./chunk-JURYRRU5.mjs";
|
|
8
|
+
import "./chunk-CENCRLRC.mjs";
|
|
9
|
+
import "./chunk-CE52CW3F.mjs";
|
|
10
|
+
import "./chunk-MMFX326I.mjs";
|
|
11
|
+
import "./chunk-3RJGWHBG.mjs";
|
|
12
|
+
import "./chunk-OFJH5BEQ.mjs";
|
|
13
|
+
import "./chunk-J5QZDLNA.mjs";
|
|
14
|
+
import "./chunk-QZ7VFGWC.mjs";
|
|
15
|
+
export {
|
|
16
|
+
MpRichTextEditor
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* MpRTEStyleProvider component is used to style provider for html content.
|
|
6
|
+
*/
|
|
7
|
+
declare const MpRTEStyleProvider: vue.DefineComponent<{
|
|
8
|
+
id: {
|
|
9
|
+
type: vue.PropType<string | undefined>;
|
|
10
|
+
};
|
|
11
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
12
|
+
id: {
|
|
13
|
+
type: vue.PropType<string | undefined>;
|
|
14
|
+
};
|
|
15
|
+
}>>, {}, {}>;
|
|
16
|
+
|
|
17
|
+
export { MpRTEStyleProvider };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* MpRTEStyleProvider component is used to style provider for html content.
|
|
6
|
+
*/
|
|
7
|
+
declare const MpRTEStyleProvider: vue.DefineComponent<{
|
|
8
|
+
id: {
|
|
9
|
+
type: vue.PropType<string | undefined>;
|
|
10
|
+
};
|
|
11
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
12
|
+
id: {
|
|
13
|
+
type: vue.PropType<string | undefined>;
|
|
14
|
+
};
|
|
15
|
+
}>>, {}, {}>;
|
|
16
|
+
|
|
17
|
+
export { MpRTEStyleProvider };
|
|
@@ -0,0 +1,85 @@
|
|
|
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/rte-style-provider.tsx
|
|
22
|
+
var rte_style_provider_exports = {};
|
|
23
|
+
__export(rte_style_provider_exports, {
|
|
24
|
+
MpRTEStyleProvider: () => MpRTEStyleProvider
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(rte_style_provider_exports);
|
|
27
|
+
var import_vue2 = require("vue");
|
|
28
|
+
var import_vue3 = require("vue");
|
|
29
|
+
|
|
30
|
+
// src/modules/rich-text-editor.props.ts
|
|
31
|
+
var import_pixel3_utils = require("@mekari/pixel3-utils");
|
|
32
|
+
var RTEStyleProviderProps = {
|
|
33
|
+
id: {
|
|
34
|
+
type: String
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var richTextEditorEmits = (0, import_pixel3_utils.declareEmit)(["change", "blur", "focus"]);
|
|
38
|
+
|
|
39
|
+
// src/modules/rich-text-editor.hooks.ts
|
|
40
|
+
var import_vue = require("vue");
|
|
41
|
+
var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
42
|
+
|
|
43
|
+
// src/modules/rich-text-editor.connects.ts
|
|
44
|
+
var import_pixel3_utils2 = require("@mekari/pixel3-utils");
|
|
45
|
+
function RTEStyleProviderConnect(state, classes) {
|
|
46
|
+
const {
|
|
47
|
+
id
|
|
48
|
+
} = state;
|
|
49
|
+
const idx = id != null ? id : `mp-rte-style-provider-${(0, import_pixel3_utils2.useId)()}`;
|
|
50
|
+
return {
|
|
51
|
+
rootProps: {
|
|
52
|
+
id: idx,
|
|
53
|
+
class: classes,
|
|
54
|
+
"data-pixel-component": "MpRTEStyleProvider"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
__name(RTEStyleProviderConnect, "RTEStyleProviderConnect");
|
|
59
|
+
|
|
60
|
+
// src/modules/rich-text-editor.hooks.ts
|
|
61
|
+
var useRTEStyleProvider = /* @__PURE__ */ __name((props) => {
|
|
62
|
+
const context = (0, import_vue.ref)(props);
|
|
63
|
+
const [value] = import_recipes.RTEStyleProviderRecipe.splitVariantProps(context.value);
|
|
64
|
+
const classes = (0, import_recipes.RTEStyleProviderRecipe)(value);
|
|
65
|
+
return (0, import_vue.computed)(() => RTEStyleProviderConnect(context.value, classes));
|
|
66
|
+
}, "useRTEStyleProvider");
|
|
67
|
+
|
|
68
|
+
// src/rte-style-provider.tsx
|
|
69
|
+
var MpRTEStyleProvider = (0, import_vue3.defineComponent)({
|
|
70
|
+
name: "MpRTEStyleProvider",
|
|
71
|
+
props: RTEStyleProviderProps,
|
|
72
|
+
setup(props, {
|
|
73
|
+
slots
|
|
74
|
+
}) {
|
|
75
|
+
const api = useRTEStyleProvider(props);
|
|
76
|
+
return () => {
|
|
77
|
+
var _a;
|
|
78
|
+
return (0, import_vue2.createVNode)("div", api.value.rootProps, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
83
|
+
0 && (module.exports = {
|
|
84
|
+
MpRTEStyleProvider
|
|
85
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mekari/pixel3-rich-text-editor",
|
|
3
|
+
"description": "Mekari Pixel 3 | Rich text editor component is used to content editor based Tiptap.js",
|
|
4
|
+
"version": "0.0.1-dev.0",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@tiptap/extension-blockquote": "^2.2.3",
|
|
12
|
+
"@tiptap/extension-bullet-list": "^2.2.3",
|
|
13
|
+
"@tiptap/extension-list-item": "^2.2.3",
|
|
14
|
+
"@tiptap/extension-ordered-list": "^2.2.3",
|
|
15
|
+
"@tiptap/extension-placeholder": "^2.2.3",
|
|
16
|
+
"@tiptap/extension-text-align": "^2.2.3",
|
|
17
|
+
"@tiptap/extension-underline": "^2.2.3",
|
|
18
|
+
"@tiptap/pm": "^2.2.3",
|
|
19
|
+
"@tiptap/starter-kit": "^2.2.3",
|
|
20
|
+
"@tiptap/vue-3": "^2.2.3",
|
|
21
|
+
"@mekari/pixel3-divider": "0.0.8-dev.0",
|
|
22
|
+
"@mekari/pixel3-form-control": "0.0.8-dev.0",
|
|
23
|
+
"@mekari/pixel3-popover": "0.0.8-dev.0",
|
|
24
|
+
"@mekari/pixel3-styled-system": "0.0.6-dev.0",
|
|
25
|
+
"@mekari/pixel3-text": "0.0.8-dev.0",
|
|
26
|
+
"@mekari/pixel3-utils": "0.0.5"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"vue": "^3.4.9"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"vue": "^3.4.9"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"module": "dist/index.mjs",
|
|
38
|
+
"types": "dist/index.d.ts",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"types": "./dist/index.d.ts",
|
|
42
|
+
"require": "./dist/index.js",
|
|
43
|
+
"default": "./dist/index.mjs"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"clean": "rimraf dist .turbo",
|
|
48
|
+
"build": "tsup && pnpm build:types",
|
|
49
|
+
"build:fast": "tsup",
|
|
50
|
+
"build:types": "tsup src --dts-only",
|
|
51
|
+
"types:check": "tsc --noEmit",
|
|
52
|
+
"replace-config": "clean-package",
|
|
53
|
+
"restore-config": "clean-package restore"
|
|
54
|
+
}
|
|
55
|
+
}
|