v-notion-editor 0.2.8 → 0.2.9

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,11 +13,13 @@ 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;
@@ -26,6 +30,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
26
30
  updateDebounceMs?: number;
27
31
  /** Enable performance optimizations for large documents */
28
32
  enablePerformanceMode?: boolean;
33
+ slashMenuConfig?: {
34
+ allowedItems?: SlashMenuItemKey[];
35
+ excludedItems?: SlashMenuItemKey[];
36
+ };
29
37
  }>, {
30
38
  showDragHandle: boolean;
31
39
  showBubbleMenu: boolean;
@@ -46,11 +54,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
46
54
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
47
55
  modelValue: string | object;
48
56
  className?: string;
57
+ placeholder?: string;
49
58
  styles?: any;
50
59
  wrapperClass?: string;
51
60
  imageUploadOptions?: ImageUploadOptions;
52
61
  showDragHandle?: boolean;
53
62
  showBubbleMenu?: boolean;
63
+ bubbleMenuOptions?: BubbleMenuOption[];
54
64
  slashCommand?: boolean;
55
65
  extensions?: any;
56
66
  isCanvas?: boolean;
@@ -61,6 +71,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
61
71
  updateDebounceMs?: number;
62
72
  /** Enable performance optimizations for large documents */
63
73
  enablePerformanceMode?: boolean;
74
+ slashMenuConfig?: {
75
+ allowedItems?: SlashMenuItemKey[];
76
+ excludedItems?: SlashMenuItemKey[];
77
+ };
64
78
  }>, {
65
79
  showDragHandle: boolean;
66
80
  showBubbleMenu: boolean;