vdc-editor 0.1.47 → 0.1.49

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 (49) hide show
  1. package/README.md +62 -57
  2. package/lib/src/components/ActionButton.vue.d.ts +1 -1
  3. package/lib/src/components/ActionDropdownButton.vue.d.ts +1 -1
  4. package/lib/src/components/ActionDropdownButtonSplit.vue.d.ts +5 -5
  5. package/lib/src/components/ActionMenuButton.vue.d.ts +1 -1
  6. package/lib/src/components/SuperInputDialog.vue.d.ts +25 -0
  7. package/lib/src/components/editor/ArticleEditor.vue.d.ts +0 -4
  8. package/lib/src/components/editor/CoreEditorV2.vue.d.ts +9 -9
  9. package/lib/src/components/editor/DigitalNewsEditor.vue.d.ts +5 -1
  10. package/lib/src/components/editor/EditorComment.vue.d.ts +6 -6
  11. package/lib/src/components/editor/SimpleEditor.vue.d.ts +11 -1
  12. package/lib/src/components/icons/icons.d.ts +1 -0
  13. package/lib/src/components/menus/BasicBubble.d.ts +1 -1
  14. package/lib/src/extensions/Ai/components/AIButton.vue.d.ts +1 -1
  15. package/lib/src/extensions/Color/components/ColorActionButton.vue.d.ts +1 -1
  16. package/lib/src/extensions/Highlight/components/HighlightActionButton.vue.d.ts +1 -1
  17. package/lib/src/extensions/IDAttr/IDPlugin.d.ts +1 -0
  18. package/lib/src/extensions/LineHeight/components/LineHeightDropdown.vue.d.ts +1 -1
  19. package/lib/src/extensions/Link/components/LinkEditPopover.vue.d.ts +1 -1
  20. package/lib/src/extensions/Page/computed.d.ts +1 -1
  21. package/lib/src/extensions/Page/types.d.ts +4 -4
  22. package/lib/src/extensions/Page/utils.d.ts +11 -11
  23. package/lib/src/extensions/SpellChecker/proofreader.d.ts +2 -2
  24. package/lib/src/extensions/SpellChecker/spell-check.service.d.ts +11 -1
  25. package/lib/src/extensions/SuperText/SuperText.d.ts +5 -1
  26. package/lib/src/extensions/Table/cell-background.d.ts +2 -2
  27. package/lib/src/extensions/Table/components/CreateTablePopover.vue.d.ts +2 -0
  28. package/lib/src/extensions/Table/components/TableActionButton.vue.d.ts +1 -1
  29. package/lib/src/extensions/Table/table.d.ts +1 -1
  30. package/lib/src/extensions/TextAlign/TextAlign.d.ts +2 -3
  31. package/lib/src/extensions/TextAlign/components/TextAlignMenuButton.vue.d.ts +2 -2
  32. package/lib/src/extensions/TextBubble/components/TextDropdown.vue.d.ts +3 -2
  33. package/lib/src/extensions/Video/Video.d.ts +1 -1
  34. package/lib/src/hooks/useStore.d.ts +7 -5
  35. package/lib/src/hooks/useSuperTextStore.d.ts +12 -4
  36. package/lib/src/i18n.d.ts +8 -0
  37. package/lib/src/index.d.ts +2 -1
  38. package/lib/src/lib/utils.d.ts +3 -0
  39. package/lib/src/type.d.ts +21 -15
  40. package/lib/src/utils/convert-content.d.ts +2 -0
  41. package/lib/src/utils/getRenderContainer.d.ts +1 -1
  42. package/lib/src/utils/is-mobile.d.ts +1 -1
  43. package/lib/src/utils/utils.d.ts +1 -1
  44. package/lib/style.css +1 -1
  45. package/lib/vdc-editor.mjs +11541 -11460
  46. package/lib/vdc-editor.mjs.map +1 -1
  47. package/lib/vdc-editor.umd.js +70 -60
  48. package/lib/vdc-editor.umd.js.map +1 -1
  49. package/package.json +194 -175
package/README.md CHANGED
@@ -1,57 +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
- - `pnpm dev` - Starts the development server using Vite
33
- - `pnpm build:lib` - Builds the library for production
34
-
35
- ### Code Quality
36
- - `pnpm prettier` - Formats all files using Prettier
37
- - `pnpm lint` - Runs ESLint to check for code issues
38
- - `pnpm lint:fix` - Automatically fixes ESLint issues when possible
39
-
40
- ### Publishing
41
- - `pnpm push` - Builds the library and publishes it to npm registry
42
-
43
- ### Version Management
44
- - `pnpm version:patch` - Bumps patch version (0.0.x), creates git tag, and publishes
45
- - `pnpm version:minor` - Bumps minor version (0.x.0), creates git tag, and publishes
46
- - `pnpm version:major` - Bumps major version (x.0.0), creates git tag, and publishes
47
-
48
- ### Git Hooks
49
- - `pnpm prepare` - Sets up Husky for git hooks
50
-
51
- ## License
52
-
53
- [MIT License](LICENSE)
54
-
55
- ## Contributing
56
-
57
- 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.
@@ -65,7 +65,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
65
65
  customClass: string;
66
66
  loading: boolean;
67
67
  tooltipOptions: TooltipContentProps;
68
- action: (value?: any) => void;
68
+ action: (value?: unknown) => void;
69
69
  isActive: () => boolean;
70
70
  variant: string;
71
71
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -41,7 +41,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
41
41
  disabled: boolean;
42
42
  title: string;
43
43
  tooltip: string;
44
- action: (value?: any) => void;
44
+ action: (value?: unknown) => void;
45
45
  isActive: () => boolean;
46
46
  btn_class: string;
47
47
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -7,7 +7,7 @@ interface Props {
7
7
  disabled?: boolean;
8
8
  class?: string;
9
9
  shortcutKeys?: string[];
10
- btn_class?: string;
10
+ btnClass?: string;
11
11
  action?: ButtonViewReturnComponentProps['action'];
12
12
  isActive?: ButtonViewReturnComponentProps['isActive'];
13
13
  id?: string;
@@ -24,7 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
24
24
  isActive: undefined;
25
25
  shortcutKeys: undefined;
26
26
  class: string;
27
- btn_class: string;
27
+ btnClass: string;
28
28
  id: string;
29
29
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
30
30
  icon: undefined;
@@ -35,7 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
35
35
  isActive: undefined;
36
36
  shortcutKeys: undefined;
37
37
  class: string;
38
- btn_class: string;
38
+ btnClass: string;
39
39
  id: string;
40
40
  }>>> & Readonly<{}>, {
41
41
  class: string;
@@ -45,9 +45,9 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
45
45
  title: string;
46
46
  tooltip: string;
47
47
  shortcutKeys: string[];
48
- action: (value?: any) => void;
48
+ action: (value?: unknown) => void;
49
49
  isActive: () => boolean;
50
- btn_class: string;
50
+ btnClass: string;
51
51
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
52
52
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
53
53
  export default _default;
@@ -43,7 +43,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
43
43
  title: string;
44
44
  tooltip: string;
45
45
  shortcutKeys: string[];
46
- action: (value?: any) => void;
46
+ action: (value?: unknown) => void;
47
47
  isActive: () => boolean;
48
48
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
49
49
  export default _default;
@@ -0,0 +1,25 @@
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
+ }
9
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
+ close: () => void;
11
+ save: (superText: string) => void;
12
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
13
+ onClose?: (() => any) | undefined;
14
+ onSave?: ((superText: string) => any) | undefined;
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
+ };
@@ -3,17 +3,13 @@ import { EditorMode } from '../../constants';
3
3
 
4
4
  interface Props extends EditorProps {
5
5
  mode: EditorMode.REPORT | EditorMode.STRAIGHT;
6
- modelValue?: string | object;
7
6
  }
8
7
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
8
  mode: EditorMode;
10
- modelValue: string;
11
9
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
10
  mode: EditorMode;
13
- modelValue: string;
14
11
  }>>> & Readonly<{}>, {
15
12
  mode: EditorMode.REPORT | EditorMode.STRAIGHT;
16
- modelValue: string | object;
17
13
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
14
  export default _default;
19
15
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -4,7 +4,7 @@ import { Editor } from '@tiptap/vue-3';
4
4
 
5
5
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
6
6
  modelValue: string;
7
- commentValue: string;
7
+ comment: string;
8
8
  output: string;
9
9
  dark: undefined;
10
10
  disabled: boolean;
@@ -26,12 +26,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
26
26
  enter: () => void;
27
27
  change: (value: import('../../type').SBSEditorOnChange) => void;
28
28
  "update:modelValue": (value: string | object | undefined) => void;
29
- updateCommentValue: (value: string | object | undefined) => void;
29
+ "update:comment": (value: string | object | undefined) => void;
30
30
  onFocusEditor: (value: CoreEditor) => void;
31
- "changed:selection": (value: any) => void;
31
+ "changed:selection": (value: unknown) => void;
32
32
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
33
33
  modelValue: string;
34
- commentValue: string;
34
+ comment: string;
35
35
  output: string;
36
36
  dark: undefined;
37
37
  disabled: boolean;
@@ -51,9 +51,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
51
51
  onChange?: ((value: import('../../type').SBSEditorOnChange) => any) | undefined;
52
52
  onEnter?: (() => any) | undefined;
53
53
  "onUpdate:modelValue"?: ((value: string | object | undefined) => any) | undefined;
54
- onUpdateCommentValue?: ((value: string | object | undefined) => any) | undefined;
54
+ "onUpdate:comment"?: ((value: string | object | undefined) => any) | undefined;
55
55
  onOnFocusEditor?: ((value: CoreEditor) => any) | undefined;
56
- "onChanged:selection"?: ((value: any) => any) | undefined;
56
+ "onChanged:selection"?: ((value: unknown) => any) | undefined;
57
57
  }>, {
58
58
  height: string | number;
59
59
  disabled: boolean;
@@ -63,7 +63,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
63
63
  maxHeight: string | number;
64
64
  maxWidth: string | number;
65
65
  minHeight: string | number;
66
- commentValue: string | object;
66
+ comment: string | object;
67
67
  superTextArea: {
68
68
  view: boolean;
69
69
  button: boolean;
@@ -73,8 +73,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
73
73
  hideToolbar: boolean;
74
74
  disableBubble: boolean;
75
75
  hideBubble: boolean;
76
- editorClass: string | string[] | Record<string, any>;
77
- contentClass: string | string[] | Record<string, any>;
76
+ editorClass: string | string[] | Record<string, unknown>;
77
+ contentClass: string | string[] | Record<string, unknown>;
78
78
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
79
79
  export default _default;
80
80
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,7 +1,11 @@
1
1
  import { EditorProps } from '../../type';
2
2
 
3
3
  type Props = Omit<EditorProps, 'mode'>;
4
- declare const _default: 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>;
4
+ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
5
+ "update:modelValue": (...args: any[]) => void;
6
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{
7
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
9
  export default _default;
6
10
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
11
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -24,9 +24,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
24
24
  enter: () => void;
25
25
  change: (value: import('../../type').SBSEditorOnChange) => void;
26
26
  "update:modelValue": (value: string | object | undefined) => void;
27
- updateCommentValue: (value: string | object | undefined) => void;
27
+ "update:comment": (value: string | object | undefined) => void;
28
28
  onFocusEditor: (value: CoreEditor) => void;
29
- "changed:selection": (value: any) => void;
29
+ "changed:selection": (value: unknown) => void;
30
30
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EditorProps>, {
31
31
  modelValue: string;
32
32
  output: string;
@@ -47,9 +47,9 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
47
47
  onChange?: ((value: import('../../type').SBSEditorOnChange) => any) | undefined;
48
48
  onEnter?: (() => any) | undefined;
49
49
  "onUpdate:modelValue"?: ((value: string | object | undefined) => any) | undefined;
50
- onUpdateCommentValue?: ((value: string | object | undefined) => any) | undefined;
50
+ "onUpdate:comment"?: ((value: string | object | undefined) => any) | undefined;
51
51
  onOnFocusEditor?: ((value: CoreEditor) => any) | undefined;
52
- "onChanged:selection"?: ((value: any) => any) | undefined;
52
+ "onChanged:selection"?: ((value: unknown) => any) | undefined;
53
53
  }>, {
54
54
  disabled: boolean;
55
55
  extensions: import('@tiptap/core').AnyExtension[];
@@ -67,8 +67,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
67
67
  hideToolbar: boolean;
68
68
  disableBubble: boolean;
69
69
  hideBubble: boolean;
70
- editorClass: string | string[] | Record<string, any>;
71
- contentClass: string | string[] | Record<string, any>;
70
+ editorClass: string | string[] | Record<string, unknown>;
71
+ contentClass: string | string[] | Record<string, unknown>;
72
72
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
73
73
  export default _default;
74
74
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,17 +1,27 @@
1
+ import { Editor } from '@tiptap/vue-3';
2
+
3
+ declare function insertSpecialCharater(char: any): void;
1
4
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
5
  modelValue: string;
6
+ parentEditor?: Editor | null;
3
7
  }>, {
4
8
  modelValue: string;
5
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ parentEditor: null;
10
+ }>>, {
11
+ insertSpecialCharater: typeof insertSpecialCharater;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
13
  "update:modelValue": (value: string) => void;
7
14
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
15
  modelValue: string;
16
+ parentEditor?: Editor | null;
9
17
  }>, {
10
18
  modelValue: string;
19
+ parentEditor: null;
11
20
  }>>> & Readonly<{
12
21
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
22
  }>, {
14
23
  modelValue: string;
24
+ parentEditor: Editor | null;
15
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
26
  export default _default;
17
27
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -81,6 +81,7 @@ export declare const icons: {
81
81
  Jinshuju: string;
82
82
  Spellchecker: string;
83
83
  fileEdit: string;
84
+ triangle: string;
84
85
  PanelLeft: string;
85
86
  PanelRight: string;
86
87
  Columns: string;
@@ -8,7 +8,7 @@ type BubbleImageType = `video-${BubbleImageOrVideoSizeType}` | 'image' | 'image-
8
8
  /** Represents the types for bubble videos */
9
9
  type BubbleVideoType = 'video' | 'remove';
10
10
  /** Represents the overall types for bubbles */
11
- type BubbleAllType = BubbleImageType | BubbleVideoType | ExtensionNameKeys | 'divider' | (string & {});
11
+ type BubbleAllType = BubbleImageType | BubbleVideoType | ExtensionNameKeys | 'divider' | (string & object);
12
12
  /** Represents the key types for node types */
13
13
  export type NodeTypeKey = 'image' | 'text' | 'video';
14
14
  /** Represents the menu of bubble types for each node type */
@@ -51,7 +51,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
51
51
  customClass: string;
52
52
  loading: boolean;
53
53
  tooltipOptions: TooltipContentProps;
54
- action: (value?: any) => void;
54
+ action: (value?: unknown) => void;
55
55
  isActive: () => boolean;
56
56
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
57
57
  export default _default;
@@ -25,7 +25,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
25
25
  icon: any;
26
26
  disabled: boolean;
27
27
  tooltip: string;
28
- action: (value?: any) => void;
28
+ action: (value?: unknown) => void;
29
29
  isActive: () => boolean;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
31
  export default _default;
@@ -26,7 +26,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
26
26
  disabled: boolean;
27
27
  tooltip: string;
28
28
  tooltipOptions: TooltipContentProps;
29
- action: (value?: any) => void;
29
+ action: (value?: unknown) => void;
30
30
  isActive: () => boolean;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
32
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { Plugin, PluginKey } from '@tiptap/pm/state';
2
2
 
3
+ export declare const getId: () => string;
3
4
  export declare const idPluginKey: PluginKey<any>;
4
5
  export declare const IDPlugin: (types: string[]) => Plugin<any>;
@@ -25,7 +25,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
25
25
  icon: any;
26
26
  disabled: boolean;
27
27
  tooltip: string;
28
- action: (value?: any) => void;
28
+ action: (value?: unknown) => void;
29
29
  isActive: () => boolean;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
31
  export default _default;
@@ -33,7 +33,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
33
33
  title: string;
34
34
  tooltip: string;
35
35
  shortcutKeys: string[];
36
- action: (value?: any) => void;
36
+ action: (value?: unknown) => void;
37
37
  isActive: () => boolean;
38
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
39
39
  export default _default;
@@ -58,7 +58,7 @@ export declare class SplitContext {
58
58
  * @param pos Split point position
59
59
  * @returns Parse result
60
60
  */
61
- splitResolve(pos: number): any;
61
+ splitResolve(pos: number): number[] | number[][];
62
62
  /**
63
63
  * Get last page
64
64
  * @returns Last page
@@ -6,16 +6,16 @@ import { SplitContext } from './computed';
6
6
  export type ComputedFn = (splitContex: SplitContext, node: Node, pos: number, parent: Node | null, dom: HTMLElement, startIndex: number, forcePageId: string, i: number) => boolean;
7
7
  export type NodesComputed = Record<string, ComputedFn>;
8
8
  export interface PageOptions {
9
- SystemAttributes: Record<string, any>;
9
+ SystemAttributes: Record<string, unknown>;
10
10
  nodesComputed: NodesComputed;
11
11
  View: NodeViewRenderer;
12
12
  types: string[];
13
- slots: any;
13
+ slots: Record<string, unknown>;
14
14
  }
15
15
  export interface SplitInfo {
16
16
  pos: number;
17
17
  depth: number;
18
- attributes?: Record<string, any>;
18
+ attributes?: Record<string, unknown>;
19
19
  }
20
20
  export interface SplitParams {
21
21
  pos: number;
@@ -28,7 +28,7 @@ export interface SplitParams {
28
28
  force: boolean;
29
29
  }
30
30
  export declare class PageState {
31
- bodyOptions: any;
31
+ bodyOptions: Record<string, unknown>;
32
32
  deleting: boolean;
33
33
  inserting: boolean;
34
34
  splitPage: boolean;
@@ -1,4 +1,4 @@
1
- import { Node, NodeType } from '@tiptap/pm/model';
1
+ import { Node, NodeType, ResolvedPos } from '@tiptap/pm/model';
2
2
  import { NodeSelection } from '@tiptap/pm/state';
3
3
  import { EditorView } from '@tiptap/pm/view';
4
4
 
@@ -27,12 +27,12 @@ export declare const findDomRefAtPos: (position: number, domAtPos: EditorView["d
27
27
  * Finds the parent node based on a predicate.
28
28
  */
29
29
  export declare const findParentNode: (predicate: (node: Node) => boolean) => ({ $from }: {
30
- $from: any;
30
+ $from: ResolvedPos;
31
31
  }) => {
32
- pos: any;
33
- start: any;
34
- depth: any;
35
- node: any;
32
+ pos: number;
33
+ start: number;
34
+ depth: number;
35
+ node: Node;
36
36
  } | null;
37
37
  /**
38
38
  * Finds the parent node closest to a given position.
@@ -40,9 +40,9 @@ export declare const findParentNode: (predicate: (node: Node) => boolean) => ({
40
40
  * @param {function} predicate - Predicate to determine the parent node.
41
41
  * @returns {Object|null} - The parent node and its details if found, or null.
42
42
  */
43
- export declare const findParentNodeClosestToPos: ($pos: any, predicate: (node: Node) => boolean) => {
44
- pos: any;
45
- start: any;
46
- depth: any;
47
- node: any;
43
+ export declare const findParentNodeClosestToPos: ($pos: ResolvedPos, predicate: (node: Node) => boolean) => {
44
+ pos: number;
45
+ start: number;
46
+ depth: number;
47
+ node: Node;
48
48
  } | null;
@@ -6,11 +6,11 @@ export declare class Proofreader implements IProofreaderInterface {
6
6
  private api;
7
7
  enabled: boolean;
8
8
  limit: number | undefined;
9
- transfer?: (data: AxiosResponse<any, any>) => ITransferSpellData[];
9
+ transfer: (data: AxiosResponse<unknown, unknown>) => ITransferSpellData[];
10
10
  constructor({ api, limit, transfer, }: {
11
11
  api: string;
12
12
  limit?: number;
13
- transfer: (data: AxiosResponse<any, any>) => ITransferSpellData[];
13
+ transfer: (data: AxiosResponse<unknown, unknown>) => ITransferSpellData[];
14
14
  });
15
15
  setSuggestions(data: ITransferSpellData[]): void;
16
16
  getSuggestions(word: string): Promise<string[]>;
@@ -1,3 +1,13 @@
1
1
  import { ITextWithPosition } from '.';
2
+ import { AxiosResponse } from 'axios';
3
+ import { ITransferSpellData } from '../../type';
2
4
 
3
- export declare const suggest: (this: any, text: string) => Promise<ITextWithPosition[]>;
5
+ interface SpellCheckContext {
6
+ enabled: boolean;
7
+ limit?: number;
8
+ getApi: () => string;
9
+ transfer: (data: AxiosResponse<unknown, unknown>) => ITransferSpellData[];
10
+ setSuggestions?: (data: ITransferSpellData[]) => void;
11
+ }
12
+ export declare const suggest: (this: SpellCheckContext, text: string) => Promise<ITextWithPosition[]>;
13
+ export {};
@@ -9,5 +9,9 @@ declare module '@tiptap/core' {
9
9
  };
10
10
  }
11
11
  }
12
- declare const _default: Node<any, any>;
12
+ interface Options {
13
+ specialCharModal: any;
14
+ button: any;
15
+ }
16
+ declare const _default: Node<Options, any>;
13
17
  export default _default;
@@ -2,8 +2,8 @@ import { Command, Extension } from '@tiptap/core';
2
2
  import { Transaction } from '@tiptap/pm/state';
3
3
 
4
4
  export type TableCellBackgroundOptions = {
5
- HTMLAttributes: Record<string, any>;
6
- types?: any;
5
+ HTMLAttributes: Record<string, unknown>;
6
+ types: string[];
7
7
  };
8
8
  declare module '@tiptap/core' {
9
9
  interface Commands<ReturnType> {
@@ -10,12 +10,14 @@ declare function __VLS_template(): {
10
10
  };
11
11
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
12
12
  disabled: {
13
+ type: BooleanConstructor;
13
14
  default: boolean;
14
15
  };
15
16
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
17
  "create-table": (payload: CreateTablePayload) => void;
17
18
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
18
19
  disabled: {
20
+ type: BooleanConstructor;
19
21
  default: boolean;
20
22
  };
21
23
  }>> & Readonly<{
@@ -30,7 +30,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
30
30
  color: string;
31
31
  disabled: boolean;
32
32
  tooltip: string;
33
- action: (value?: any) => void;
33
+ action: (value?: unknown) => void;
34
34
  isActive: () => boolean;
35
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
36
  export default _default;
@@ -5,7 +5,7 @@ import { TableCellBackgroundOptions } from './cell-background';
5
5
  import { GeneralOptions } from '../../type';
6
6
 
7
7
  export interface TableOptions extends GeneralOptions<TableOptions> {
8
- HTMLAttributes: Record<string, any>;
8
+ HTMLAttributes: Record<string, unknown>;
9
9
  resizable: boolean;
10
10
  handleWidth: number;
11
11
  cellMinWidth: number;
@@ -1,6 +1,5 @@
1
- import { Extension } from '@tiptap/core';
2
- import { TextAlignOptions as TiptapTextAlignOptions } from '@tiptap/extension-text-align';
3
1
  import { GeneralOptions } from '../../type';
2
+ import { TextAlignOptions as TiptapTextAlignOptions } from '@tiptap/extension-text-align';
4
3
 
5
4
  type Alignments = 'left' | 'center' | 'right' | 'justify';
6
5
  /**
@@ -14,5 +13,5 @@ export interface TextAlignOptions extends TiptapTextAlignOptions, GeneralOptions
14
13
  */
15
14
  alignments: Alignments[];
16
15
  }
17
- export declare const TextAlign: Extension<TextAlignOptions, any>;
16
+ export declare const TextAlign: import('@tiptap/core').Extension<TextAlignOptions, any>;
18
17
  export {};