@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.
Files changed (67) hide show
  1. package/dist/chunk-2SSVSEKG.mjs +28 -0
  2. package/dist/chunk-3RJGWHBG.mjs +122 -0
  3. package/dist/chunk-CE52CW3F.mjs +0 -0
  4. package/dist/chunk-CENCRLRC.mjs +40 -0
  5. package/dist/chunk-IE2ITPBX.mjs +106 -0
  6. package/dist/chunk-J5QZDLNA.mjs +282 -0
  7. package/dist/chunk-JURYRRU5.mjs +61 -0
  8. package/dist/chunk-MMFX326I.mjs +44 -0
  9. package/dist/chunk-N5YFARYC.mjs +89 -0
  10. package/dist/chunk-OFJH5BEQ.mjs +176 -0
  11. package/dist/chunk-QZ7VFGWC.mjs +6 -0
  12. package/dist/chunk-VQOMXS6M.mjs +27 -0
  13. package/dist/editor-toolbar.d.mts +12 -0
  14. package/dist/editor-toolbar.d.ts +12 -0
  15. package/dist/editor-toolbar.js +698 -0
  16. package/dist/editor-toolbar.mjs +12 -0
  17. package/dist/extensions/align-extension.d.mts +12 -0
  18. package/dist/extensions/align-extension.d.ts +12 -0
  19. package/dist/extensions/align-extension.js +406 -0
  20. package/dist/extensions/align-extension.mjs +8 -0
  21. package/dist/extensions/heading-extension.d.mts +12 -0
  22. package/dist/extensions/heading-extension.d.ts +12 -0
  23. package/dist/extensions/heading-extension.js +463 -0
  24. package/dist/extensions/heading-extension.mjs +8 -0
  25. package/dist/extensions/icons.d.mts +20 -0
  26. package/dist/extensions/icons.d.ts +20 -0
  27. package/dist/extensions/icons.js +320 -0
  28. package/dist/extensions/icons.mjs +35 -0
  29. package/dist/extensions/index.d.mts +5 -0
  30. package/dist/extensions/index.d.ts +5 -0
  31. package/dist/extensions/index.js +609 -0
  32. package/dist/extensions/index.mjs +17 -0
  33. package/dist/extensions/single-extension.d.mts +16 -0
  34. package/dist/extensions/single-extension.d.ts +16 -0
  35. package/dist/extensions/single-extension.js +322 -0
  36. package/dist/extensions/single-extension.mjs +8 -0
  37. package/dist/index.d.mts +6 -0
  38. package/dist/index.d.ts +6 -0
  39. package/dist/index.js +914 -0
  40. package/dist/index.mjs +20 -0
  41. package/dist/metafile-cjs.json +1 -0
  42. package/dist/metafile-esm.json +1 -0
  43. package/dist/modules/rich-text-editor.connects.d.mts +11 -0
  44. package/dist/modules/rich-text-editor.connects.d.ts +11 -0
  45. package/dist/modules/rich-text-editor.connects.js +83 -0
  46. package/dist/modules/rich-text-editor.connects.mjs +9 -0
  47. package/dist/modules/rich-text-editor.hooks.d.mts +8 -0
  48. package/dist/modules/rich-text-editor.hooks.d.ts +8 -0
  49. package/dist/modules/rich-text-editor.hooks.js +101 -0
  50. package/dist/modules/rich-text-editor.hooks.mjs +10 -0
  51. package/dist/modules/rich-text-editor.props.d.mts +40 -0
  52. package/dist/modules/rich-text-editor.props.d.ts +40 -0
  53. package/dist/modules/rich-text-editor.props.js +66 -0
  54. package/dist/modules/rich-text-editor.props.mjs +11 -0
  55. package/dist/modules/rich-text-editor.types.d.mts +54 -0
  56. package/dist/modules/rich-text-editor.types.d.ts +54 -0
  57. package/dist/modules/rich-text-editor.types.js +18 -0
  58. package/dist/modules/rich-text-editor.types.mjs +0 -0
  59. package/dist/rich-text-editor.d.mts +67 -0
  60. package/dist/rich-text-editor.d.ts +67 -0
  61. package/dist/rich-text-editor.js +910 -0
  62. package/dist/rich-text-editor.mjs +17 -0
  63. package/dist/rte-style-provider.d.mts +17 -0
  64. package/dist/rte-style-provider.d.ts +17 -0
  65. package/dist/rte-style-provider.js +85 -0
  66. package/dist/rte-style-provider.mjs +10 -0
  67. package/package.json +55 -0
@@ -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 };
@@ -0,0 +1,18 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/modules/rich-text-editor.types.ts
17
+ var rich_text_editor_types_exports = {};
18
+ module.exports = __toCommonJS(rich_text_editor_types_exports);
File without changes
@@ -0,0 +1,67 @@
1
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
2
+ import * as vue from 'vue';
3
+
4
+ /**
5
+ * MpRichTextEditor component used to content editor based Tiptap.js.
6
+ */
7
+ declare const MpRichTextEditor: vue.DefineComponent<{
8
+ id: {
9
+ type: vue.PropType<string | undefined>;
10
+ };
11
+ value: {
12
+ type: vue.PropType<string | undefined>;
13
+ };
14
+ placeholder: {
15
+ type: vue.PropType<string | undefined>;
16
+ };
17
+ options: {
18
+ type: vue.PropType<[] | undefined>;
19
+ };
20
+ isInvalid: {
21
+ type: vue.PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ isDisabled: {
25
+ type: vue.PropType<boolean>;
26
+ default: boolean;
27
+ };
28
+ hasBorder: {
29
+ type: vue.PropType<boolean | undefined>;
30
+ default: boolean;
31
+ };
32
+ }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "blur" | "focus")[], "change" | "blur" | "focus", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
33
+ id: {
34
+ type: vue.PropType<string | undefined>;
35
+ };
36
+ value: {
37
+ type: vue.PropType<string | undefined>;
38
+ };
39
+ placeholder: {
40
+ type: vue.PropType<string | undefined>;
41
+ };
42
+ options: {
43
+ type: vue.PropType<[] | undefined>;
44
+ };
45
+ isInvalid: {
46
+ type: vue.PropType<boolean>;
47
+ default: boolean;
48
+ };
49
+ isDisabled: {
50
+ type: vue.PropType<boolean>;
51
+ default: boolean;
52
+ };
53
+ hasBorder: {
54
+ type: vue.PropType<boolean | undefined>;
55
+ default: boolean;
56
+ };
57
+ }>> & {
58
+ onFocus?: ((...args: any[]) => any) | undefined;
59
+ onBlur?: ((...args: any[]) => any) | undefined;
60
+ onChange?: ((...args: any[]) => any) | undefined;
61
+ }, {
62
+ isInvalid: boolean;
63
+ isDisabled: boolean;
64
+ hasBorder: boolean | undefined;
65
+ }, {}>;
66
+
67
+ export { MpRichTextEditor };
@@ -0,0 +1,67 @@
1
+ import * as vue_jsx_runtime from 'vue/jsx-runtime';
2
+ import * as vue from 'vue';
3
+
4
+ /**
5
+ * MpRichTextEditor component used to content editor based Tiptap.js.
6
+ */
7
+ declare const MpRichTextEditor: vue.DefineComponent<{
8
+ id: {
9
+ type: vue.PropType<string | undefined>;
10
+ };
11
+ value: {
12
+ type: vue.PropType<string | undefined>;
13
+ };
14
+ placeholder: {
15
+ type: vue.PropType<string | undefined>;
16
+ };
17
+ options: {
18
+ type: vue.PropType<[] | undefined>;
19
+ };
20
+ isInvalid: {
21
+ type: vue.PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ isDisabled: {
25
+ type: vue.PropType<boolean>;
26
+ default: boolean;
27
+ };
28
+ hasBorder: {
29
+ type: vue.PropType<boolean | undefined>;
30
+ default: boolean;
31
+ };
32
+ }, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("change" | "blur" | "focus")[], "change" | "blur" | "focus", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
33
+ id: {
34
+ type: vue.PropType<string | undefined>;
35
+ };
36
+ value: {
37
+ type: vue.PropType<string | undefined>;
38
+ };
39
+ placeholder: {
40
+ type: vue.PropType<string | undefined>;
41
+ };
42
+ options: {
43
+ type: vue.PropType<[] | undefined>;
44
+ };
45
+ isInvalid: {
46
+ type: vue.PropType<boolean>;
47
+ default: boolean;
48
+ };
49
+ isDisabled: {
50
+ type: vue.PropType<boolean>;
51
+ default: boolean;
52
+ };
53
+ hasBorder: {
54
+ type: vue.PropType<boolean | undefined>;
55
+ default: boolean;
56
+ };
57
+ }>> & {
58
+ onFocus?: ((...args: any[]) => any) | undefined;
59
+ onBlur?: ((...args: any[]) => any) | undefined;
60
+ onChange?: ((...args: any[]) => any) | undefined;
61
+ }, {
62
+ isInvalid: boolean;
63
+ isDisabled: boolean;
64
+ hasBorder: boolean | undefined;
65
+ }, {}>;
66
+
67
+ export { MpRichTextEditor };