vdc-editor 0.1.57 → 0.1.61

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/README.md CHANGED
@@ -1,62 +1,62 @@
1
- # Gemiso Web Editor
2
-
3
- A powerful Vue 3 based rich text editor library with extensive features and customization options.
4
-
5
- ## Tech Stack
6
-
7
- - **Vue 3** - Progressive JavaScript framework for building user interfaces
8
- - **TypeScript** - Typed superset of JavaScript that compiles to plain JavaScript
9
- - **Tiptap** - Headless WYSIWYG text editor framework
10
- - **Tailwind CSS** - Utility-first CSS framework
11
- - **Vite** - Next generation frontend tooling
12
- - **Shadcn UI** - Re-usable components built with Tailwind CSS
13
-
14
- ## Development
15
-
16
- ```bash
17
- # Install dependencies
18
- pnpm install
19
-
20
- # Start development server
21
- pnpm dev
22
-
23
- # Build library
24
- pnpm build:lib
25
- ```
26
-
27
- ## Available Scripts
28
-
29
- In the project directory, you can run:
30
-
31
- ### Development
32
-
33
- - `pnpm dev` - Starts the development server using Vite
34
- - `pnpm build:lib` - Builds the library for production
35
-
36
- ### Code Quality
37
-
38
- - `pnpm prettier` - Formats all files using Prettier
39
- - `pnpm lint` - Runs ESLint to check for code issues
40
- - `pnpm lint:fix` - Automatically fixes ESLint issues when possible
41
-
42
- ### Publishing
43
-
44
- - `pnpm push` - Builds the library and publishes it to npm registry
45
-
46
- ### Version Management
47
-
48
- - `pnpm version:patch` - Bumps patch version (0.0.x), creates git tag, and publishes
49
- - `pnpm version:minor` - Bumps minor version (0.x.0), creates git tag, and publishes
50
- - `pnpm version:major` - Bumps major version (x.0.0), creates git tag, and publishes
51
-
52
- ### Git Hooks
53
-
54
- - `pnpm prepare` - Sets up Husky for git hooks
55
-
56
- ## License
57
-
58
- [MIT License](LICENSE)
59
-
60
- ## Contributing
61
-
62
- Contributions are welcome! Please feel free to submit a Pull Request.
1
+ # Gemiso Web Editor
2
+
3
+ A powerful Vue 3 based rich text editor library with extensive features and customization options.
4
+
5
+ ## Tech Stack
6
+
7
+ - **Vue 3** - Progressive JavaScript framework for building user interfaces
8
+ - **TypeScript** - Typed superset of JavaScript that compiles to plain JavaScript
9
+ - **Tiptap** - Headless WYSIWYG text editor framework
10
+ - **Tailwind CSS** - Utility-first CSS framework
11
+ - **Vite** - Next generation frontend tooling
12
+ - **Shadcn UI** - Re-usable components built with Tailwind CSS
13
+
14
+ ## Development
15
+
16
+ ```bash
17
+ # Install dependencies
18
+ pnpm install
19
+
20
+ # Start development server
21
+ pnpm dev
22
+
23
+ # Build library
24
+ pnpm build:lib
25
+ ```
26
+
27
+ ## Available Scripts
28
+
29
+ In the project directory, you can run:
30
+
31
+ ### Development
32
+
33
+ - `pnpm dev` - Starts the development server using Vite
34
+ - `pnpm build:lib` - Builds the library for production
35
+
36
+ ### Code Quality
37
+
38
+ - `pnpm prettier` - Formats all files using Prettier
39
+ - `pnpm lint` - Runs ESLint to check for code issues
40
+ - `pnpm lint:fix` - Automatically fixes ESLint issues when possible
41
+
42
+ ### Publishing
43
+
44
+ - `pnpm push` - Builds the library and publishes it to npm registry
45
+
46
+ ### Version Management
47
+
48
+ - `pnpm version:patch` - Bumps patch version (0.0.x), creates git tag, and publishes
49
+ - `pnpm version:minor` - Bumps minor version (0.x.0), creates git tag, and publishes
50
+ - `pnpm version:major` - Bumps major version (x.0.0), creates git tag, and publishes
51
+
52
+ ### Git Hooks
53
+
54
+ - `pnpm prepare` - Sets up Husky for git hooks
55
+
56
+ ## License
57
+
58
+ [MIT License](LICENSE)
59
+
60
+ ## Contributing
61
+
62
+ Contributions are welcome! Please feel free to submit a Pull Request.
@@ -13,6 +13,7 @@ interface Props {
13
13
  hidden?: boolean;
14
14
  shortcutKeys?: string[];
15
15
  customClass?: string;
16
+ customClassTooltip?: string;
16
17
  loading?: boolean;
17
18
  tooltipOptions?: TooltipContentProps;
18
19
  color?: string;
@@ -34,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
34
35
  tooltip: undefined;
35
36
  disabled: boolean;
36
37
  customClass: string;
38
+ customClassTooltip: string;
37
39
  color: undefined;
38
40
  loading: boolean;
39
41
  shortcutKeys: undefined;
@@ -49,6 +51,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
49
51
  tooltip: undefined;
50
52
  disabled: boolean;
51
53
  customClass: string;
54
+ customClassTooltip: string;
52
55
  color: undefined;
53
56
  loading: boolean;
54
57
  shortcutKeys: undefined;
@@ -67,6 +70,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
67
70
  tooltip: string;
68
71
  shortcutKeys: string[];
69
72
  customClass: string;
73
+ customClassTooltip: string;
70
74
  loading: boolean;
71
75
  tooltipOptions: TooltipContentProps;
72
76
  action: (value?: unknown) => void;
@@ -12,6 +12,7 @@ declare function __VLS_template(): {
12
12
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {
13
13
  toggleDialog: () => boolean;
14
14
  openDialog: () => void;
15
+ closeDialog: () => boolean;
15
16
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
17
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
17
18
  export default _default;
@@ -0,0 +1,25 @@
1
+ import { Editor } from '@tiptap/vue-3';
2
+
3
+ interface Props {
4
+ editor: Editor;
5
+ }
6
+ declare function __VLS_template(): {
7
+ default?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ type __VLS_WithTemplateSlots<T, S> = T & {
22
+ new (): {
23
+ $slots: S;
24
+ };
25
+ };
@@ -0,0 +1,28 @@
1
+ import { Editor } from '@tiptap/vue-3';
2
+
3
+ interface Props {
4
+ editor: Editor | null | any;
5
+ open: boolean;
6
+ superTextInit?: string;
7
+ superTextId?: string | number;
8
+ isViewMode?: boolean;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ close: () => void;
12
+ save: (superText: string) => void;
13
+ delete: () => void;
14
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
15
+ onClose?: (() => any) | undefined;
16
+ onDelete?: (() => any) | undefined;
17
+ onSave?: ((superText: string) => any) | undefined;
18
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
19
+ export default _default;
20
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
+ type __VLS_TypePropsToRuntimeProps<T> = {
22
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
23
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
+ } : {
25
+ type: import('vue').PropType<T[K]>;
26
+ required: true;
27
+ };
28
+ };
@@ -0,0 +1,33 @@
1
+ import { EditorMode } from '../constants';
2
+ import { Editor } from '@tiptap/core';
3
+
4
+ interface Props {
5
+ editor: Editor;
6
+ disabled?: boolean;
7
+ mode: EditorMode;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ disabled: boolean;
11
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ disabled: boolean;
13
+ }>>> & Readonly<{}>, {
14
+ disabled: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
@@ -0,0 +1,33 @@
1
+ import { EditorMode } from '../constants';
2
+ import { Editor } from '@tiptap/core';
3
+
4
+ interface Props {
5
+ editor: Editor;
6
+ disabled?: boolean;
7
+ mode: EditorMode;
8
+ }
9
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ disabled: boolean;
11
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ disabled: boolean;
13
+ }>>> & Readonly<{}>, {
14
+ disabled: boolean;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
+ default: D[K];
29
+ }> : P[K];
30
+ };
31
+ type __VLS_Prettify<T> = {
32
+ [K in keyof T]: T[K];
33
+ } & {};
@@ -0,0 +1,104 @@
1
+ import { EditorProps } from '../../type';
2
+ import { Editor as CoreEditor } from '@tiptap/core';
3
+ import { Editor } from '@tiptap/vue-3';
4
+
5
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
6
+ modelValue: string;
7
+ comment: string;
8
+ output: string;
9
+ dark: undefined;
10
+ disabled: boolean;
11
+ hideToolbar: boolean;
12
+ disableBubble: boolean;
13
+ hideBubble: boolean;
14
+ superTextArea: any;
15
+ maxWidth: undefined;
16
+ minHeight: number;
17
+ maxHeight: undefined;
18
+ height: undefined;
19
+ extensions: () => never[];
20
+ editorClass: undefined;
21
+ contentClass: undefined;
22
+ fontSizeDefault: string;
23
+ fontFamilyDefault: string;
24
+ isShowFormatControlBar: boolean;
25
+ }>>, {
26
+ editor: Editor;
27
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
+ enter: () => void;
29
+ change: (value: import('../../type').SBSEditorOnChange) => void;
30
+ "update:modelValue": (value: string | object | undefined) => void;
31
+ "update:comment": (value: string | object | undefined) => void;
32
+ onFocusEditor: (value: CoreEditor) => void;
33
+ "changed:selection": (value: unknown) => void;
34
+ setEditorSelected: (editorInstance: any) => void;
35
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
36
+ modelValue: string;
37
+ comment: string;
38
+ output: string;
39
+ dark: undefined;
40
+ disabled: boolean;
41
+ hideToolbar: boolean;
42
+ disableBubble: boolean;
43
+ hideBubble: boolean;
44
+ superTextArea: any;
45
+ maxWidth: undefined;
46
+ minHeight: number;
47
+ maxHeight: undefined;
48
+ height: undefined;
49
+ extensions: () => never[];
50
+ editorClass: undefined;
51
+ contentClass: undefined;
52
+ fontSizeDefault: string;
53
+ fontFamilyDefault: string;
54
+ isShowFormatControlBar: boolean;
55
+ }>>> & Readonly<{
56
+ onChange?: ((value: import('../../type').SBSEditorOnChange) => any) | undefined;
57
+ onEnter?: (() => any) | undefined;
58
+ "onUpdate:modelValue"?: ((value: string | object | undefined) => any) | undefined;
59
+ "onUpdate:comment"?: ((value: string | object | undefined) => any) | undefined;
60
+ onOnFocusEditor?: ((value: CoreEditor) => any) | undefined;
61
+ "onChanged:selection"?: ((value: unknown) => any) | undefined;
62
+ onSetEditorSelected?: ((editorInstance: any) => any) | undefined;
63
+ }>, {
64
+ height: string | number;
65
+ disabled: boolean;
66
+ extensions: import('@tiptap/core').AnyExtension[];
67
+ modelValue: string | object;
68
+ output: "html" | "json" | "text";
69
+ maxHeight: string | number;
70
+ maxWidth: string | number;
71
+ minHeight: string | number;
72
+ comment: string | object;
73
+ superTextArea: {
74
+ view: boolean;
75
+ button: boolean;
76
+ };
77
+ fontSizeDefault: string;
78
+ fontFamilyDefault: string;
79
+ dark: boolean;
80
+ hideToolbar: boolean;
81
+ isShowFormatControlBar: boolean;
82
+ disableBubble: boolean;
83
+ hideBubble: boolean;
84
+ editorClass: string | string[] | Record<string, unknown>;
85
+ contentClass: string | string[] | Record<string, unknown>;
86
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
87
+ export default _default;
88
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
89
+ type __VLS_TypePropsToRuntimeProps<T> = {
90
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
91
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
92
+ } : {
93
+ type: import('vue').PropType<T[K]>;
94
+ required: true;
95
+ };
96
+ };
97
+ type __VLS_WithDefaults<P, D> = {
98
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
99
+ default: D[K];
100
+ }> : P[K];
101
+ };
102
+ type __VLS_Prettify<T> = {
103
+ [K in keyof T]: T[K];
104
+ } & {};
@@ -30,6 +30,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
30
30
  "update:comment": (value: string | object | undefined) => void;
31
31
  onFocusEditor: (value: CoreEditor) => void;
32
32
  "changed:selection": (value: unknown) => void;
33
+ setEditorSelected: (editorInstance: any) => void;
33
34
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
34
35
  modelValue: string;
35
36
  comment: string;
@@ -56,6 +57,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
56
57
  "onUpdate:comment"?: ((value: string | object | undefined) => any) | undefined;
57
58
  onOnFocusEditor?: ((value: CoreEditor) => any) | undefined;
58
59
  "onChanged:selection"?: ((value: unknown) => any) | undefined;
60
+ onSetEditorSelected?: ((editorInstance: any) => any) | undefined;
59
61
  }>, {
60
62
  height: string | number;
61
63
  disabled: boolean;
@@ -27,6 +27,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
27
27
  "update:comment": (value: string | object | undefined) => void;
28
28
  onFocusEditor: (value: CoreEditor) => void;
29
29
  "changed:selection": (value: unknown) => void;
30
+ setEditorSelected: (editorInstance: any) => void;
30
31
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
31
32
  modelValue: string;
32
33
  output: string;
@@ -50,6 +51,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
50
51
  "onUpdate:comment"?: ((value: string | object | undefined) => any) | undefined;
51
52
  onOnFocusEditor?: ((value: CoreEditor) => any) | undefined;
52
53
  "onChanged:selection"?: ((value: unknown) => any) | undefined;
54
+ onSetEditorSelected?: ((editorInstance: any) => any) | undefined;
53
55
  }>, {
54
56
  disabled: boolean;
55
57
  extensions: import('@tiptap/core').AnyExtension[];
@@ -0,0 +1,92 @@
1
+ import { EditorProps } from '../../type';
2
+ import { Editor as CoreEditor } from '@tiptap/core';
3
+ import { Editor } from '@tiptap/vue-3';
4
+
5
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
6
+ modelValue: string;
7
+ output: string;
8
+ dark: undefined;
9
+ disabled: boolean;
10
+ hideToolbar: boolean;
11
+ disableBubble: boolean;
12
+ hideBubble: boolean;
13
+ superTextArea: any;
14
+ maxWidth: undefined;
15
+ minHeight: number;
16
+ maxHeight: undefined;
17
+ extensions: () => never[];
18
+ editorClass: undefined;
19
+ contentClass: undefined;
20
+ isOpenSuperView: boolean;
21
+ }>>, {
22
+ editor: Editor;
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
+ enter: () => void;
25
+ change: (value: import('../../type').SBSEditorOnChange) => void;
26
+ "update:modelValue": (value: string | object | undefined) => void;
27
+ "update:comment": (value: string | object | undefined) => void;
28
+ onFocusEditor: (value: CoreEditor) => void;
29
+ "changed:selection": (value: unknown) => void;
30
+ setEditorSelected: (editorInstance: any) => void;
31
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
32
+ modelValue: string;
33
+ output: string;
34
+ dark: undefined;
35
+ disabled: boolean;
36
+ hideToolbar: boolean;
37
+ disableBubble: boolean;
38
+ hideBubble: boolean;
39
+ superTextArea: any;
40
+ maxWidth: undefined;
41
+ minHeight: number;
42
+ maxHeight: undefined;
43
+ extensions: () => never[];
44
+ editorClass: undefined;
45
+ contentClass: undefined;
46
+ isOpenSuperView: boolean;
47
+ }>>> & Readonly<{
48
+ onChange?: ((value: import('../../type').SBSEditorOnChange) => any) | undefined;
49
+ onEnter?: (() => any) | undefined;
50
+ "onUpdate:modelValue"?: ((value: string | object | undefined) => any) | undefined;
51
+ "onUpdate:comment"?: ((value: string | object | undefined) => any) | undefined;
52
+ onOnFocusEditor?: ((value: CoreEditor) => any) | undefined;
53
+ "onChanged:selection"?: ((value: unknown) => any) | undefined;
54
+ onSetEditorSelected?: ((editorInstance: any) => any) | undefined;
55
+ }>, {
56
+ disabled: boolean;
57
+ extensions: import('@tiptap/core').AnyExtension[];
58
+ modelValue: string | object;
59
+ output: "html" | "json" | "text";
60
+ maxHeight: string | number;
61
+ maxWidth: string | number;
62
+ minHeight: string | number;
63
+ superTextArea: {
64
+ view: boolean;
65
+ button: boolean;
66
+ };
67
+ isOpenSuperView: boolean;
68
+ dark: boolean;
69
+ hideToolbar: boolean;
70
+ disableBubble: boolean;
71
+ hideBubble: boolean;
72
+ editorClass: string | string[] | Record<string, unknown>;
73
+ contentClass: string | string[] | Record<string, unknown>;
74
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
75
+ export default _default;
76
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
77
+ type __VLS_TypePropsToRuntimeProps<T> = {
78
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
79
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
80
+ } : {
81
+ type: import('vue').PropType<T[K]>;
82
+ required: true;
83
+ };
84
+ };
85
+ type __VLS_WithDefaults<P, D> = {
86
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
87
+ default: D[K];
88
+ }> : P[K];
89
+ };
90
+ type __VLS_Prettify<T> = {
91
+ [K in keyof T]: T[K];
92
+ } & {};
@@ -4,6 +4,7 @@ declare function insertSpecialCharater(char: any): void;
4
4
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
5
  modelValue: string;
6
6
  parentEditor?: Editor | null;
7
+ isReadOnly?: boolean;
7
8
  }>, {
8
9
  modelValue: string;
9
10
  parentEditor: null;
@@ -14,6 +15,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
14
15
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
16
  modelValue: string;
16
17
  parentEditor?: Editor | null;
18
+ isReadOnly?: boolean;
17
19
  }>, {
18
20
  modelValue: string;
19
21
  parentEditor: null;
@@ -88,6 +88,7 @@ export declare const icons: {
88
88
  Spellchecker: string;
89
89
  fileEdit: string;
90
90
  triangle: string;
91
+ dot3: string;
91
92
  PanelLeft: string;
92
93
  PanelRight: string;
93
94
  Columns: string;
@@ -112,5 +113,8 @@ export declare const icons: {
112
113
  LucidePanelLeft: string;
113
114
  LucidePanelRight: string;
114
115
  ALargeSmall: string;
116
+ paneUp: string;
117
+ paneDown: string;
118
+ paneMiddle: string;
115
119
  };
116
120
  export default icons;
@@ -9,6 +9,8 @@ import { PlaceholderOptions } from '@tiptap/extension-placeholder';
9
9
  import { TextStyleOptions } from '@tiptap/extension-text-style';
10
10
  import { BubbleOptions } from '../components/menus/BasicBubble';
11
11
  import { PageOption } from '../type';
12
+ import { FontFamilyOptions } from './FontFamily';
13
+ import { FontSizeOptions } from './FontSize';
12
14
  import { HistoryOptions } from '@tiptap/extension-history';
13
15
 
14
16
  /**
@@ -95,7 +97,14 @@ export interface BaseKitOptions {
95
97
  * @default true
96
98
  */
97
99
  image?: boolean;
100
+ /**
101
+ * Editor mode
102
+ */
98
103
  mode?: string;
104
+ /**
105
+ * Digital News Editor option
106
+ */
107
+ isDigitalNewsEditor?: boolean;
99
108
  /**
100
109
  * Editor non-editable
101
110
  */
@@ -126,5 +135,17 @@ export interface BaseKitOptions {
126
135
  *
127
136
  */
128
137
  history: Partial<HistoryOptions> | false;
138
+ /**
139
+ * fontSize options or false, indicating whether to enable fontSizes
140
+ *
141
+ * @default true
142
+ */
143
+ fontSize: Partial<FontSizeOptions> | false;
144
+ /**
145
+ * fontFamily options or false, indicating whether to enable fontFamilys
146
+ *
147
+ * @default true
148
+ */
149
+ fontFamily: Partial<FontFamilyOptions> | false;
129
150
  }
130
151
  export declare const BaseKit: Extension<BaseKitOptions, any>;
@@ -6,6 +6,7 @@ declare module '@tiptap/core' {
6
6
  updateSuperText: () => ReturnType;
7
7
  toggleSuperText: () => ReturnType;
8
8
  showSuperTextButton: (isShow: boolean) => ReturnType;
9
+ toggleSuperInputMoblie: () => ReturnType;
9
10
  };
10
11
  }
11
12
  }
@@ -48,6 +48,10 @@ interface Instance {
48
48
  /** AI Menu visibility */
49
49
  AIMenu: boolean;
50
50
  }
51
+ interface ImageAttachment {
52
+ id: string;
53
+ src: string;
54
+ }
51
55
  export declare const useTiptapStore: () => {
52
56
  state: Instance;
53
57
  page: globalThis.Ref<{
@@ -165,5 +169,14 @@ export declare const useTiptapStore: () => {
165
169
  togglePrinter: () => void;
166
170
  setEditorContextMenuRef: (contextMenuRef: any) => void;
167
171
  openSuperInput: () => void;
172
+ closeSuperInput: () => void;
173
+ imageAttachments: globalThis.Ref<{
174
+ id: string;
175
+ src: string;
176
+ }[], ImageAttachment[] | {
177
+ id: string;
178
+ src: string;
179
+ }[]>;
180
+ setImageAttachment: (images: ImageAttachment[]) => void;
168
181
  };
169
182
  export {};