@witchcraft/editor 0.0.9 → 0.1.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 (98) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +2 -2
  3. package/dist/runtime/components/CodeBlockThemePicker.d.vue.ts +4 -2
  4. package/dist/runtime/components/CodeBlockThemePicker.vue +0 -1
  5. package/dist/runtime/components/CodeBlockThemePicker.vue.d.ts +4 -2
  6. package/dist/runtime/components/Commands.d.vue.ts +2 -1
  7. package/dist/runtime/components/Commands.vue.d.ts +2 -1
  8. package/dist/runtime/components/Editor.d.vue.ts +3 -12
  9. package/dist/runtime/components/Editor.vue.d.ts +3 -12
  10. package/dist/runtime/components/EditorDemoApp.d.vue.ts +2 -1
  11. package/dist/runtime/components/EditorDemoApp.vue.d.ts +2 -1
  12. package/dist/runtime/components/EditorDemoControls.d.vue.ts +4 -2
  13. package/dist/runtime/components/EditorDemoControls.vue.d.ts +4 -2
  14. package/dist/runtime/components/TestWrapper.d.vue.ts +2 -1
  15. package/dist/runtime/components/TestWrapper.vue.d.ts +2 -1
  16. package/dist/runtime/demo/App.d.vue.ts +2 -1
  17. package/dist/runtime/demo/App.vue.d.ts +2 -1
  18. package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.d.vue.ts +2 -1
  19. package/dist/runtime/pm/features/Blocks/components/DragTreeHandle.vue.d.ts +2 -1
  20. package/dist/runtime/pm/features/Blocks/components/ItemMenu.d.vue.ts +2 -1
  21. package/dist/runtime/pm/features/Blocks/components/ItemMenu.vue.d.ts +2 -1
  22. package/dist/runtime/pm/features/Blocks/components/ItemNodeView.d.vue.ts +2 -1
  23. package/dist/runtime/pm/features/Blocks/components/ItemNodeView.vue.d.ts +2 -1
  24. package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.d.vue.ts +2 -1
  25. package/dist/runtime/pm/features/CodeBlock/components/CodeBlockView.vue.d.ts +2 -1
  26. package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.d.vue.ts +2 -1
  27. package/dist/runtime/pm/features/CommandsMenus/components/CommandBar.vue.d.ts +2 -1
  28. package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.d.vue.ts +2 -1
  29. package/dist/runtime/pm/features/CommandsMenus/components/CommandBarItem.vue.d.ts +2 -1
  30. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.d.vue.ts +2 -1
  31. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuGroup.vue.d.ts +2 -1
  32. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.d.vue.ts +2 -1
  33. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuItem.vue.d.ts +2 -1
  34. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.d.vue.ts +2 -1
  35. package/dist/runtime/pm/features/CommandsMenus/components/CommandMenuList.vue.d.ts +2 -1
  36. package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.d.vue.ts +2 -1
  37. package/dist/runtime/pm/features/CommandsMenus/components/TextIcon.vue.d.ts +2 -1
  38. package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.d.vue.ts +2 -1
  39. package/dist/runtime/pm/features/CommandsMenus/icons/HighlightIcon.vue.d.ts +2 -1
  40. package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.d.vue.ts +2 -1
  41. package/dist/runtime/pm/features/CommandsMenus/icons/SubscriptIcon.vue.d.ts +2 -1
  42. package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.d.vue.ts +2 -1
  43. package/dist/runtime/pm/features/CommandsMenus/icons/SuperscriptIcon.vue.d.ts +2 -1
  44. package/dist/runtime/pm/features/DocumentApi/DocumentApi.d.ts +3 -0
  45. package/dist/runtime/pm/features/DocumentApi/DocumentApi.js +2 -0
  46. package/dist/runtime/pm/features/DocumentApi/composables/useTestDocumentApi.js +4 -1
  47. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.d.vue.ts +2 -1
  48. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue +3 -3
  49. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue.d.ts +2 -1
  50. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.d.vue.ts +2 -1
  51. package/dist/runtime/pm/features/EmbeddedDocument/components/EmbeddedNodeView.vue.d.ts +2 -1
  52. package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.d.vue.ts +2 -1
  53. package/dist/runtime/pm/features/FileLoader/components/FileLoaderNodeView.vue.d.ts +2 -1
  54. package/dist/runtime/pm/features/Iframe/components/IframeNodeView.d.vue.ts +2 -1
  55. package/dist/runtime/pm/features/Iframe/components/IframeNodeView.vue.d.ts +2 -1
  56. package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.d.vue.ts +4 -2
  57. package/dist/runtime/pm/features/Link/components/BubbleMenuExternalLink.vue.d.ts +4 -2
  58. package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.d.vue.ts +4 -2
  59. package/dist/runtime/pm/features/Link/components/BubbleMenuInternalLink.vue.d.ts +4 -2
  60. package/dist/runtime/pm/features/Link/components/BubbleMenuLink.d.vue.ts +2 -1
  61. package/dist/runtime/pm/features/Link/components/BubbleMenuLink.vue.d.ts +2 -1
  62. package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.d.vue.ts +2 -1
  63. package/dist/runtime/pm/features/Link/components/BubbleMenuLinkActions.vue.d.ts +2 -1
  64. package/dist/runtime/pm/features/Menus/components/MarkMenuManager.d.vue.ts +2 -1
  65. package/dist/runtime/pm/features/Menus/components/MarkMenuManager.vue.d.ts +2 -1
  66. package/dist/runtime/pm/generator.d.ts +30 -44
  67. package/dist/runtime/pm/generator.js +112 -109
  68. package/dist/runtime/pm/utils/generateRandomDoc.d.ts +3 -21
  69. package/dist/runtime/pm/utils/generateRandomDoc.js +36 -77
  70. package/dist/runtime/pm/utils/generator/createGeneratorConfig.d.ts +33 -0
  71. package/dist/runtime/pm/utils/generator/createGeneratorConfig.js +3 -0
  72. package/dist/runtime/pm/utils/generator/createPsuedoSentence.d.ts +4 -0
  73. package/dist/runtime/pm/utils/generator/createPsuedoSentence.js +16 -0
  74. package/dist/runtime/pm/utils/generator/createRandomChildCountGenerator.d.ts +14 -0
  75. package/dist/runtime/pm/utils/generator/createRandomChildCountGenerator.js +16 -0
  76. package/dist/runtime/pm/utils/generator/getTextOrMarkLength.d.ts +2 -0
  77. package/dist/runtime/pm/utils/generator/getTextOrMarkLength.js +7 -0
  78. package/dist/runtime/pm/utils/generator/influenceWithDepth.d.ts +6 -0
  79. package/dist/runtime/pm/utils/generator/influenceWithDepth.js +6 -0
  80. package/dist/runtime/pm/utils/generator/sometimesZero.d.ts +13 -0
  81. package/dist/runtime/pm/utils/generator/sometimesZero.js +7 -0
  82. package/package.json +59 -58
  83. package/src/runtime/components/CodeBlockThemePicker.vue +0 -1
  84. package/src/runtime/pm/features/DocumentApi/DocumentApi.ts +3 -0
  85. package/src/runtime/pm/features/DocumentApi/composables/useTestDocumentApi.ts +2 -1
  86. package/src/runtime/pm/features/EmbeddedDocument/components/EmbeddedDocumentPicker.vue +3 -4
  87. package/src/runtime/pm/generator.ts +104 -151
  88. package/src/runtime/pm/schema.ts +2 -2
  89. package/src/runtime/pm/utils/generateRandomDoc.ts +47 -124
  90. package/src/runtime/pm/utils/generator/createGeneratorConfig.ts +56 -0
  91. package/src/runtime/pm/utils/generator/createPsuedoSentence.ts +18 -0
  92. package/src/runtime/pm/utils/generator/createRandomChildCountGenerator.ts +31 -0
  93. package/src/runtime/pm/utils/generator/getTextOrMarkLength.ts +9 -0
  94. package/src/runtime/pm/utils/generator/influenceWithDepth.ts +11 -0
  95. package/src/runtime/pm/utils/generator/sometimesZero.ts +16 -0
  96. package/dist/runtime/pm/utils/generateRandomTree.d.ts +0 -50
  97. package/dist/runtime/pm/utils/generateRandomTree.js +0 -38
  98. package/src/runtime/pm/utils/generateRandomTree.ts +0 -100
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "witchcraftEditor",
3
3
  "configKey": "witchcraftEditor",
4
- "version": "0.0.9",
4
+ "version": "0.1.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { defu } from 'defu';
4
4
  import fs from 'node:fs/promises';
5
5
 
6
6
  const { resolve } = createResolver(import.meta.url);
7
- const module = defineNuxtModule({
7
+ const module$1 = defineNuxtModule({
8
8
  meta: {
9
9
  name: "witchcraftEditor",
10
10
  configKey: "witchcraftEditor"
@@ -69,4 +69,4 @@ const module = defineNuxtModule({
69
69
  }
70
70
  });
71
71
 
72
- export { module as default };
72
+ export { module$1 as default };
@@ -1,12 +1,14 @@
1
1
  type __VLS_Props = {
2
2
  codeBlocksThemeList: string[];
3
3
  };
4
- type __VLS_PublicProps = __VLS_Props & {
4
+ type __VLS_ModelProps = {
5
5
  "codeBlocksTheme": string;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
9
  "update:codeBlocksTheme": (value: string) => any;
9
10
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
11
  "onUpdate:codeBlocksTheme"?: ((value: string) => any) | undefined;
11
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
12
14
  export default _default;
@@ -79,7 +79,6 @@ const codeBlocksTheme = defineModel("codeBlocksTheme", { type: String, ...{ requ
79
79
  rounded-sm
80
80
  shadow-[0_0_10px_1px]
81
81
  shadow-black/30
82
- mt-2
83
82
  max-h-[50vh]
84
83
  "
85
84
  ref="contentComponent"
@@ -1,12 +1,14 @@
1
1
  type __VLS_Props = {
2
2
  codeBlocksThemeList: string[];
3
3
  };
4
- type __VLS_PublicProps = __VLS_Props & {
4
+ type __VLS_ModelProps = {
5
5
  "codeBlocksTheme": string;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
9
  "update:codeBlocksTheme": (value: string) => any;
9
10
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
11
  "onUpdate:codeBlocksTheme"?: ((value: string) => any) | undefined;
11
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
12
14
  export default _default;
@@ -6,5 +6,6 @@ type __VLS_Props = {
6
6
  buttons?: any[][];
7
7
  }[];
8
8
  };
9
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -6,5 +6,6 @@ type __VLS_Props = {
6
6
  buttons?: any[][];
7
7
  }[];
8
8
  };
9
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -18,7 +18,7 @@ type __VLS_Props = {
18
18
  codeBlocksThemeIsDark?: boolean;
19
19
  menus?: Record<string, MenuRenderInfo>;
20
20
  };
21
- declare const _default: import("vue").DefineComponent<__VLS_Props, {
21
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
22
22
  editor: import("vue").ShallowRef<import("@tiptap/vue-3").Editor | undefined, import("@tiptap/vue-3").Editor | undefined>;
23
23
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
24
  load: () => any;
@@ -26,15 +26,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
26
26
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
27
  onLoad?: (() => any) | undefined;
28
28
  onUnload?: (() => any) | undefined;
29
- }>, {
30
- menus: Record<string, MenuRenderInfo>;
31
- content: Content;
32
- docId: string;
33
- documentApi: DocumentApiInterface;
34
- linkOptions: EditorLinkOptions;
35
- dragScrollOptions: Pick<ScrollNearContainerEdgesOptions, "scrollMargin" | "outerScrollMargin" | "fastPixelMultiplier">;
36
- cssVariables: Partial<CssVariables>;
37
- editorOptions: Partial<EditorOptions>;
38
- codeBlocksThemeIsDark: boolean;
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
40
31
  export default _default;
@@ -18,7 +18,7 @@ type __VLS_Props = {
18
18
  codeBlocksThemeIsDark?: boolean;
19
19
  menus?: Record<string, MenuRenderInfo>;
20
20
  };
21
- declare const _default: import("vue").DefineComponent<__VLS_Props, {
21
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
22
22
  editor: import("vue").ShallowRef<import("@tiptap/vue-3").Editor | undefined, import("@tiptap/vue-3").Editor | undefined>;
23
23
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
24
24
  load: () => any;
@@ -26,15 +26,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
26
26
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
27
27
  onLoad?: (() => any) | undefined;
28
28
  onUnload?: (() => any) | undefined;
29
- }>, {
30
- menus: Record<string, MenuRenderInfo>;
31
- content: Content;
32
- docId: string;
33
- documentApi: DocumentApiInterface;
34
- linkOptions: EditorLinkOptions;
35
- dragScrollOptions: Pick<ScrollNearContainerEdgesOptions, "scrollMargin" | "outerScrollMargin" | "fastPixelMultiplier">;
36
- cssVariables: Partial<CssVariables>;
37
- editorOptions: Partial<EditorOptions>;
38
- codeBlocksThemeIsDark: boolean;
39
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
29
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
+ declare const _default: typeof __VLS_export;
40
31
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,12 +1,14 @@
1
1
  type __VLS_Props = {
2
2
  codeBlocksThemeList: string[];
3
3
  };
4
- type __VLS_PublicProps = __VLS_Props & {
4
+ type __VLS_ModelProps = {
5
5
  "codeBlocksTheme": string;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
9
  "update:codeBlocksTheme": (value: string) => any;
9
10
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
11
  "onUpdate:codeBlocksTheme"?: ((value: string) => any) | undefined;
11
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
12
14
  export default _default;
@@ -1,12 +1,14 @@
1
1
  type __VLS_Props = {
2
2
  codeBlocksThemeList: string[];
3
3
  };
4
- type __VLS_PublicProps = __VLS_Props & {
4
+ type __VLS_ModelProps = {
5
5
  "codeBlocksTheme": string;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
9
  "update:codeBlocksTheme": (value: string) => any;
9
10
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
10
11
  "onUpdate:codeBlocksTheme"?: ((value: string) => any) | undefined;
11
12
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
12
14
  export default _default;
@@ -7,5 +7,6 @@ type __VLS_Props = {
7
7
  docId: string;
8
8
  loadDelay?: number;
9
9
  };
10
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -7,5 +7,6 @@ type __VLS_Props = {
7
7
  docId: string;
8
8
  loadDelay?: number;
9
9
  };
10
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -12,7 +12,7 @@ interface Props {
12
12
  passedDragThreshold: boolean;
13
13
  hideChildren: boolean;
14
14
  }
15
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  collapseIndicatorClick: (event: MouseEvent) => any;
17
17
  grabHandlePassiveTouchStart: (event: TouchEvent) => any;
18
18
  grabHandlePointerDown: (event: PointerEvent) => any;
@@ -23,4 +23,5 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
23
23
  onGrabHandlePointerDown?: ((event: PointerEvent) => any) | undefined;
24
24
  onGrabHandleContextMenu?: ((event: PointerEvent) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
26
27
  export default _default;
@@ -12,7 +12,7 @@ interface Props {
12
12
  passedDragThreshold: boolean;
13
13
  hideChildren: boolean;
14
14
  }
15
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
15
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
16
16
  collapseIndicatorClick: (event: MouseEvent) => any;
17
17
  grabHandlePassiveTouchStart: (event: TouchEvent) => any;
18
18
  grabHandlePointerDown: (event: PointerEvent) => any;
@@ -23,4 +23,5 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
23
23
  onGrabHandlePointerDown?: ((event: PointerEvent) => any) | undefined;
24
24
  onGrabHandleContextMenu?: ((event: PointerEvent) => any) | undefined;
25
25
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: typeof __VLS_export;
26
27
  export default _default;
@@ -2,5 +2,6 @@ import type { Editor } from "@tiptap/core";
2
2
  type __VLS_Props = {
3
3
  editor: Editor;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -2,5 +2,6 @@ import type { Editor } from "@tiptap/core";
2
2
  type __VLS_Props = {
3
3
  editor: Editor;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  editor: {
3
3
  type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
4
4
  required: true;
@@ -89,4 +89,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
89
89
  required: true;
90
90
  };
91
91
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ declare const _default: typeof __VLS_export;
92
93
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  editor: {
3
3
  type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
4
4
  required: true;
@@ -89,4 +89,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
89
89
  required: true;
90
90
  };
91
91
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ declare const _default: typeof __VLS_export;
92
93
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  editor: {
3
3
  type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
4
4
  required: true;
@@ -89,4 +89,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
89
89
  required: true;
90
90
  };
91
91
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ declare const _default: typeof __VLS_export;
92
93
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  editor: {
3
3
  type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
4
4
  required: true;
@@ -89,4 +89,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
89
89
  required: true;
90
90
  };
91
91
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
92
+ declare const _default: typeof __VLS_export;
92
93
  export default _default;
@@ -4,5 +4,6 @@ type __VLS_Props = {
4
4
  editor: Editor;
5
5
  commands: (CommandBarCommand | CommandBarGroup)[];
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -4,5 +4,6 @@ type __VLS_Props = {
4
4
  editor: Editor;
5
5
  commands: (CommandBarCommand | CommandBarGroup)[];
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -4,9 +4,10 @@ type __VLS_Props = {
4
4
  item: CommandBarCommand;
5
5
  editor: Editor;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
8
  close: () => any;
9
9
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onClose?: (() => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
12
13
  export default _default;
@@ -4,9 +4,10 @@ type __VLS_Props = {
4
4
  item: CommandBarCommand;
5
5
  editor: Editor;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
8
  close: () => any;
9
9
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
10
  onClose?: (() => any) | undefined;
11
11
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
12
13
  export default _default;
@@ -2,9 +2,10 @@ import type { CommandGroup } from "../types.js";
2
2
  type __VLS_Props = {
3
3
  item: CommandGroup;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
6
  close: () => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onClose?: (() => any) | undefined;
9
9
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -2,9 +2,10 @@ import type { CommandGroup } from "../types.js";
2
2
  type __VLS_Props = {
3
3
  item: CommandGroup;
4
4
  };
5
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
6
  close: () => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onClose?: (() => any) | undefined;
9
9
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const _default: typeof __VLS_export;
10
11
  export default _default;
@@ -3,9 +3,10 @@ import { type CommandGroup } from "../types.js";
3
3
  type __VLS_Props = {
4
4
  item: ItemMenuCommand | CommandGroup;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  close: () => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -3,9 +3,10 @@ import { type CommandGroup } from "../types.js";
3
3
  type __VLS_Props = {
4
4
  item: ItemMenuCommand | CommandGroup;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  close: () => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -3,9 +3,10 @@ import type { CommandGroup } from "../types.js";
3
3
  type __VLS_Props = {
4
4
  entries: (ItemMenuCommand | CommandGroup)[];
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  close: () => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -3,9 +3,10 @@ import type { CommandGroup } from "../types.js";
3
3
  type __VLS_Props = {
4
4
  entries: (ItemMenuCommand | CommandGroup)[];
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
7
  close: () => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  text: string;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
5
6
  export default _default;
@@ -1,5 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  text: string;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const _default: typeof __VLS_export;
5
6
  export default _default;
@@ -4,5 +4,6 @@ type __VLS_Props = {
4
4
  editor: Editor;
5
5
  colorSlot?: keyof HighlightMarkOptions["colors"] | string;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -4,5 +4,6 @@ type __VLS_Props = {
4
4
  editor: Editor;
5
5
  colorSlot?: keyof HighlightMarkOptions["colors"] | string;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
8
9
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
@@ -35,6 +35,8 @@ export declare class DocumentApi<T extends Record<string, any> = Record<string,
35
35
  * The refCounter is called every time an editor loads or unloads a document. It's used to keep track of the number of editors that are using a document, and to unload it when no editors are using it.
36
36
  *
37
37
  * Note that you need not immediately unload the cached document. So long as the count is immediatly updated you can set a timeout to actually delete the cache entry (be sure to check the count it still 0 and you can delete it).
38
+ *
39
+ * Load is also passed the data property returned by the regular load function if it returns it.
38
40
  */
39
41
  private readonly _refCounter;
40
42
  getSuggestions: DocumentApiInterface["getSuggestions"];
@@ -50,6 +52,7 @@ export declare class DocumentApi<T extends Record<string, any> = Record<string,
50
52
  editorOptions: Partial<EditorOptions>;
51
53
  getTitle?: (docId: string, blockId?: string) => string;
52
54
  getSuggestions: DocumentApiInterface["getSuggestions"];
55
+ /** Load should create the editor state and return it. It can also optionally return extra data which will be passed to the refCounter's load function. */
53
56
  load: (docId: string, schema: Schema, plugins: Plugin[]) => Promise<{
54
57
  state: EditorState;
55
58
  data?: T;
@@ -16,6 +16,8 @@ export class DocumentApi {
16
16
  * The refCounter is called every time an editor loads or unloads a document. It's used to keep track of the number of editors that are using a document, and to unload it when no editors are using it.
17
17
  *
18
18
  * Note that you need not immediately unload the cached document. So long as the count is immediatly updated you can set a timeout to actually delete the cache entry (be sure to check the count it still 0 and you can delete it).
19
+ *
20
+ * Load is also passed the data property returned by the regular load function if it returns it.
19
21
  */
20
22
  _refCounter;
21
23
  getSuggestions;
@@ -46,7 +46,10 @@ export function useTestDocumentApi(editorOptions, embeds, { loadDelay = 0 } = {}
46
46
  schema,
47
47
  plugins
48
48
  });
49
- return { state };
49
+ return {
50
+ state
51
+ /** , data: {...any additional data} */
52
+ };
50
53
  },
51
54
  refCounter: {
52
55
  load(docId, loaded) {
@@ -4,11 +4,12 @@ type __VLS_Props = {
4
4
  /** We need this, otherwise prosemirror? gets in an infinite loop because the component is not actually displayed? I think... Chrome debugger freezes completely. */
5
5
  isShown: boolean;
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
8
  cancel: () => any;
9
9
  submit: (embedId: MaybeEmbedId) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
11
  onCancel?: (() => any) | undefined;
12
12
  onSubmit?: ((embedId: MaybeEmbedId) => any) | undefined;
13
13
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
14
15
  export default _default;