v-notion-editor 0.2.79 → 0.3.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.
@@ -1,5 +1,7 @@
1
1
  import { ImageUploadOptions } from '../types/index';
2
+ import { SlashMenuItemKey } from '../extensions/NotesSlashCommand.ts';
2
3
 
4
+ export type BubbleMenuOption = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'link' | 'color' | 'fontSize' | 'align' | 'headingDesign';
3
5
  declare function __VLS_template(): {
4
6
  "color-picker"?(_: {
5
7
  editor: import('@tiptap/vue-3').Editor;
@@ -11,17 +13,29 @@ declare function __VLS_template(): {
11
13
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
14
  modelValue: string | object;
13
15
  className?: string;
16
+ placeholder?: string;
14
17
  styles?: any;
15
18
  wrapperClass?: string;
16
19
  imageUploadOptions?: ImageUploadOptions;
17
20
  showDragHandle?: boolean;
18
21
  showBubbleMenu?: boolean;
22
+ bubbleMenuOptions?: BubbleMenuOption[];
19
23
  slashCommand?: boolean;
20
24
  extensions?: any;
21
25
  isCanvas?: boolean;
22
26
  outputFormat?: "html" | "json";
23
27
  zoom?: number;
24
28
  bubbleManuAppendTo?: any;
29
+ /** Debounce delay for content updates (ms). Set to 0 to disable. */
30
+ updateDebounceMs?: number;
31
+ /** Enable performance optimizations for large documents */
32
+ enablePerformanceMode?: boolean;
33
+ slashMenuConfig?: {
34
+ allowedItems?: SlashMenuItemKey[];
35
+ excludedItems?: SlashMenuItemKey[];
36
+ };
37
+ /** Use minimal extensions for better performance (h1, h2, h3, p blocks) */
38
+ minimalMode?: boolean;
25
39
  }>, {
26
40
  showDragHandle: boolean;
27
41
  showBubbleMenu: boolean;
@@ -30,6 +44,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
30
44
  isCanvas: boolean;
31
45
  outputFormat: string;
32
46
  zoom: number;
47
+ updateDebounceMs: number;
48
+ enablePerformanceMode: boolean;
33
49
  }>>, {
34
50
  editor: import('vue').ShallowRef<import('@tiptap/vue-3').Editor, import('@tiptap/vue-3').Editor>;
35
51
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -40,17 +56,29 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
40
56
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
41
57
  modelValue: string | object;
42
58
  className?: string;
59
+ placeholder?: string;
43
60
  styles?: any;
44
61
  wrapperClass?: string;
45
62
  imageUploadOptions?: ImageUploadOptions;
46
63
  showDragHandle?: boolean;
47
64
  showBubbleMenu?: boolean;
65
+ bubbleMenuOptions?: BubbleMenuOption[];
48
66
  slashCommand?: boolean;
49
67
  extensions?: any;
50
68
  isCanvas?: boolean;
51
69
  outputFormat?: "html" | "json";
52
70
  zoom?: number;
53
71
  bubbleManuAppendTo?: any;
72
+ /** Debounce delay for content updates (ms). Set to 0 to disable. */
73
+ updateDebounceMs?: number;
74
+ /** Enable performance optimizations for large documents */
75
+ enablePerformanceMode?: boolean;
76
+ slashMenuConfig?: {
77
+ allowedItems?: SlashMenuItemKey[];
78
+ excludedItems?: SlashMenuItemKey[];
79
+ };
80
+ /** Use minimal extensions for better performance (h1, h2, h3, p blocks) */
81
+ minimalMode?: boolean;
54
82
  }>, {
55
83
  showDragHandle: boolean;
56
84
  showBubbleMenu: boolean;
@@ -59,6 +87,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
59
87
  isCanvas: boolean;
60
88
  outputFormat: string;
61
89
  zoom: number;
90
+ updateDebounceMs: number;
91
+ enablePerformanceMode: boolean;
62
92
  }>>> & Readonly<{
63
93
  onOnFocus?: () => any;
64
94
  onOnBlur?: () => any;
@@ -66,12 +96,14 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
66
96
  "onUpdate:modelValue"?: (value: string | object) => any;
67
97
  }>, {
68
98
  isCanvas: boolean;
99
+ extensions: any;
100
+ updateDebounceMs: number;
69
101
  showDragHandle: boolean;
70
102
  showBubbleMenu: boolean;
71
103
  slashCommand: boolean;
72
- extensions: any;
73
104
  outputFormat: "html" | "json";
74
105
  zoom: number;
106
+ enablePerformanceMode: boolean;
75
107
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
76
108
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
77
109
  export default _default;