vue-editify 0.2.13 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. package/examples/App.vue +49 -67
  2. package/lib/components/button/button.vue.d.ts +62 -60
  3. package/lib/components/button/index.d.ts +4 -0
  4. package/lib/components/button/props.d.ts +12 -1
  5. package/lib/components/checkbox/checkbox.vue.d.ts +9 -9
  6. package/lib/components/checkbox/index.d.ts +4 -0
  7. package/lib/components/checkbox/props.d.ts +2 -2
  8. package/lib/components/colors/colors.vue.d.ts +4 -4
  9. package/lib/components/colors/index.d.ts +4 -0
  10. package/lib/components/colors/props.d.ts +2 -2
  11. package/lib/components/icon/index.d.ts +4 -0
  12. package/lib/components/insertAttachment/index.d.ts +4 -0
  13. package/lib/{plugins/attachment → components}/insertAttachment/insertAttachment.vue.d.ts +3 -3
  14. package/lib/{plugins/attachment → components}/insertAttachment/props.d.ts +1 -1
  15. package/lib/components/insertImage/index.d.ts +4 -0
  16. package/lib/components/insertImage/insertImage.vue.d.ts +3 -3
  17. package/lib/components/insertImage/props.d.ts +1 -1
  18. package/lib/components/insertLink/index.d.ts +4 -0
  19. package/lib/components/insertLink/insertLink.vue.d.ts +6 -6
  20. package/lib/components/insertLink/props.d.ts +3 -3
  21. package/lib/components/insertMathformula/index.d.ts +4 -0
  22. package/lib/{plugins/mathformula → components}/insertMathformula/insertMathformula.vue.d.ts +3 -3
  23. package/lib/{plugins/mathformula → components}/insertMathformula/props.d.ts +2 -2
  24. package/lib/components/insertTable/index.d.ts +4 -0
  25. package/lib/components/insertTable/insertTable.vue.d.ts +3 -3
  26. package/lib/components/insertTable/props.d.ts +2 -2
  27. package/lib/components/insertVideo/index.d.ts +4 -0
  28. package/lib/components/insertVideo/insertVideo.vue.d.ts +3 -3
  29. package/lib/components/insertVideo/props.d.ts +1 -1
  30. package/lib/components/layer/index.d.ts +4 -0
  31. package/lib/components/layer/layer.vue.d.ts +10 -8
  32. package/lib/components/tooltip/index.d.ts +4 -0
  33. package/lib/components/tooltip/tooltip.vue.d.ts +6 -4
  34. package/lib/components/triangle/index.d.ts +4 -0
  35. package/lib/components/triangle/triangle.vue.d.ts +1 -1
  36. package/lib/components/updateLink/index.d.ts +4 -0
  37. package/lib/components/updateLink/props.d.ts +17 -0
  38. package/lib/components/updateLink/updateLink.vue.d.ts +38 -0
  39. package/lib/core/function.d.ts +113 -36
  40. package/lib/core/rule.d.ts +20 -0
  41. package/lib/core/tool.d.ts +36 -34
  42. package/lib/editify/editify.vue.d.ts +86 -53
  43. package/lib/editify/menu/index.d.ts +4 -0
  44. package/lib/{components → editify}/menu/menu.vue.d.ts +3 -4
  45. package/lib/{components → editify}/menu/props.d.ts +1 -1
  46. package/lib/editify/props.d.ts +3 -7
  47. package/lib/editify/toolbar/index.d.ts +4 -0
  48. package/lib/{components → editify}/toolbar/props.d.ts +2 -2
  49. package/lib/{components → editify}/toolbar/toolbar.vue.d.ts +53 -53
  50. package/lib/editify.es.js +8879 -7668
  51. package/lib/editify.umd.js +2 -2
  52. package/lib/feature/align.d.ts +32 -0
  53. package/lib/feature/attachment.d.ts +18 -0
  54. package/lib/feature/backColor.d.ts +32 -0
  55. package/lib/feature/bold.d.ts +32 -0
  56. package/lib/feature/code.d.ts +32 -0
  57. package/lib/feature/codeBlock.d.ts +32 -0
  58. package/lib/feature/fontFamily.d.ts +32 -0
  59. package/lib/feature/fontSize.d.ts +32 -0
  60. package/lib/feature/foreColor.d.ts +32 -0
  61. package/lib/feature/formatClear.d.ts +32 -0
  62. package/lib/feature/fullScreen.d.ts +18 -0
  63. package/lib/feature/heading.d.ts +32 -0
  64. package/lib/feature/image.d.ts +32 -0
  65. package/lib/feature/indent.d.ts +18 -0
  66. package/lib/feature/infoBlock.d.ts +18 -0
  67. package/lib/feature/italic.d.ts +32 -0
  68. package/lib/feature/lineHeight.d.ts +32 -0
  69. package/lib/feature/link.d.ts +26 -0
  70. package/lib/feature/mathformula.d.ts +22 -0
  71. package/lib/feature/orderList.d.ts +32 -0
  72. package/lib/feature/panel.d.ts +18 -0
  73. package/lib/feature/quote.d.ts +18 -0
  74. package/lib/feature/redo.d.ts +18 -0
  75. package/lib/feature/separator.d.ts +18 -0
  76. package/lib/feature/sourceView.d.ts +18 -0
  77. package/lib/feature/strikethrough.d.ts +32 -0
  78. package/lib/feature/sub.d.ts +32 -0
  79. package/lib/feature/super.d.ts +32 -0
  80. package/lib/feature/table.d.ts +32 -0
  81. package/lib/feature/task.d.ts +32 -0
  82. package/lib/feature/underline.d.ts +32 -0
  83. package/lib/feature/undo.d.ts +18 -0
  84. package/lib/feature/unorderList.d.ts +32 -0
  85. package/lib/feature/video.d.ts +38 -0
  86. package/lib/index.d.ts +104 -69
  87. package/package.json +5 -5
  88. package/src/components/button/button.vue +21 -24
  89. package/src/components/button/index.ts +5 -0
  90. package/src/components/button/props.ts +14 -1
  91. package/src/components/checkbox/checkbox.vue +1 -1
  92. package/src/components/checkbox/index.ts +5 -0
  93. package/src/components/checkbox/props.ts +1 -1
  94. package/src/components/colors/colors.vue +3 -3
  95. package/src/components/colors/index.ts +5 -0
  96. package/src/components/colors/props.ts +2 -2
  97. package/src/components/icon/index.ts +5 -0
  98. package/src/components/insertAttachment/index.ts +5 -0
  99. package/src/{plugins/attachment → components}/insertAttachment/insertAttachment.vue +4 -2
  100. package/src/{plugins/attachment → components}/insertAttachment/props.ts +1 -1
  101. package/src/components/insertImage/index.ts +5 -0
  102. package/src/components/insertImage/insertImage.vue +5 -5
  103. package/src/components/insertImage/props.ts +1 -1
  104. package/src/components/insertLink/index.ts +5 -0
  105. package/src/components/insertLink/insertLink.vue +10 -10
  106. package/src/components/insertLink/props.ts +3 -3
  107. package/src/components/insertMathformula/index.ts +5 -0
  108. package/src/{plugins/mathformula → components}/insertMathformula/props.ts +2 -2
  109. package/src/components/insertTable/index.ts +5 -0
  110. package/src/components/insertTable/props.ts +2 -2
  111. package/src/components/insertVideo/index.ts +5 -0
  112. package/src/components/insertVideo/insertVideo.vue +2 -2
  113. package/src/components/insertVideo/props.ts +1 -1
  114. package/src/components/layer/index.ts +5 -0
  115. package/src/components/layer/layer.vue +42 -4
  116. package/src/components/tooltip/index.ts +5 -0
  117. package/src/components/tooltip/tooltip.vue +1 -1
  118. package/src/components/triangle/index.ts +5 -0
  119. package/src/components/triangle/triangle.vue +1 -1
  120. package/src/components/updateLink/index.ts +5 -0
  121. package/src/components/updateLink/props.ts +21 -0
  122. package/src/components/{toolbar/toolbar.less → updateLink/updateLink.less} +4 -20
  123. package/src/components/updateLink/updateLink.vue +74 -0
  124. package/src/core/function.ts +289 -97
  125. package/src/core/rule.ts +96 -7
  126. package/src/core/tool.ts +234 -78
  127. package/src/editify/editify.less +2 -0
  128. package/src/editify/editify.vue +182 -185
  129. package/src/editify/menu/index.ts +5 -0
  130. package/src/editify/menu/menu.vue +215 -0
  131. package/src/{components → editify}/menu/props.ts +1 -1
  132. package/src/editify/props.ts +7 -11
  133. package/src/editify/toolbar/index.ts +5 -0
  134. package/src/{components → editify}/toolbar/props.ts +1 -1
  135. package/src/editify/toolbar/toolbar.less +10 -0
  136. package/src/editify/toolbar/toolbar.vue +103 -0
  137. package/src/feature/align.ts +128 -0
  138. package/src/feature/attachment.ts +109 -0
  139. package/src/feature/backColor.ts +171 -0
  140. package/src/feature/bold.ts +136 -0
  141. package/src/feature/code.ts +136 -0
  142. package/src/feature/codeBlock.ts +204 -0
  143. package/src/feature/fontFamily.ts +140 -0
  144. package/src/feature/fontSize.ts +142 -0
  145. package/src/feature/foreColor.ts +173 -0
  146. package/src/feature/formatClear.ts +118 -0
  147. package/src/feature/fullScreen.ts +57 -0
  148. package/src/feature/heading.ts +154 -0
  149. package/src/feature/image.ts +225 -0
  150. package/src/feature/indent.ts +73 -0
  151. package/src/feature/infoBlock.ts +94 -0
  152. package/src/feature/italic.ts +136 -0
  153. package/src/feature/lineHeight.ts +165 -0
  154. package/src/feature/link.ts +149 -0
  155. package/src/feature/mathformula.ts +147 -0
  156. package/src/feature/orderList.ts +116 -0
  157. package/src/feature/panel.ts +108 -0
  158. package/src/feature/quote.ts +61 -0
  159. package/src/feature/redo.ts +56 -0
  160. package/src/feature/separator.ts +62 -0
  161. package/src/feature/sourceView.ts +59 -0
  162. package/src/feature/strikethrough.ts +136 -0
  163. package/src/feature/sub.ts +136 -0
  164. package/src/feature/super.ts +136 -0
  165. package/src/feature/table.ts +994 -0
  166. package/src/feature/task.ts +116 -0
  167. package/src/feature/underline.ts +136 -0
  168. package/src/feature/undo.ts +56 -0
  169. package/src/feature/unorderList.ts +116 -0
  170. package/src/feature/video.ts +339 -0
  171. package/src/hljs/index.ts +1 -1
  172. package/src/index.ts +69 -21
  173. package/src/locale/en_US.ts +3 -3
  174. package/src/locale/zh_CN.ts +3 -3
  175. package/lib/plugins/attachment/index.d.ts +0 -37
  176. package/lib/plugins/infoBlock/index.d.ts +0 -55
  177. package/lib/plugins/mathformula/index.d.ts +0 -49
  178. package/lib/plugins/panel/index.d.ts +0 -48
  179. package/src/components/menu/menu.vue +0 -1655
  180. package/src/components/toolbar/toolbar.vue +0 -1677
  181. package/src/plugins/attachment/index.ts +0 -237
  182. package/src/plugins/infoBlock/index.ts +0 -238
  183. package/src/plugins/mathformula/index.ts +0 -295
  184. package/src/plugins/panel/index.ts +0 -228
  185. package/tsconfig.json +0 -31
  186. package/tsconfig.node.json +0 -11
  187. /package/src/{plugins/attachment → components}/insertAttachment/insertAttachment.less +0 -0
  188. /package/src/{plugins/mathformula → components}/insertMathformula/insertMathformula.less +0 -0
  189. /package/src/{plugins/mathformula → components}/insertMathformula/insertMathformula.vue +0 -0
  190. /package/src/{components → editify}/menu/menu.less +0 -0
@@ -1,4 +1,4 @@
1
- import { Ref } from 'vue';
1
+ import { ComponentPublicInstance } from 'vue';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  modelValue: {
@@ -14,16 +14,16 @@ declare const _default: import('vue').DefineComponent<{
14
14
  default: null;
15
15
  };
16
16
  type: {
17
- type: import('vue').PropType<"link" | "text" | "image" | "video" | "table" | "codeBlock">;
17
+ type: import('vue').PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video">;
18
18
  default: string;
19
19
  validator(value: any): boolean;
20
20
  };
21
21
  config: {
22
- type: import('vue').PropType<import('../../core/tool').ToolbarConfigType>;
22
+ type: import('vue').PropType<import('../..').ToolbarConfigType>;
23
23
  default: null;
24
24
  };
25
25
  color: {
26
- type: import('vue').PropType<string | null>;
26
+ type: StringConstructor;
27
27
  default: string;
28
28
  };
29
29
  zIndex: {
@@ -31,41 +31,41 @@ declare const _default: import('vue').DefineComponent<{
31
31
  default: number;
32
32
  };
33
33
  }, {
34
- layerRef: Ref<({
34
+ layerRef: import('vue').Ref<({
35
35
  $: import('vue').ComponentInternalInstance;
36
36
  $data: {};
37
37
  $props: Partial<{
38
- placement: import('../layer/props').LayerPlacementType;
39
38
  color: string;
40
- background: string;
41
39
  zIndex: number;
42
40
  modelValue: boolean;
43
41
  node: string | HTMLElement | null;
44
42
  scrollNode: string | HTMLElement | null;
45
43
  border: boolean;
46
44
  borderColor: string;
45
+ background: string;
46
+ placement: import('../../components/layer').LayerPlacementType;
47
47
  showTriangle: boolean;
48
- animation: import('../layer/props').LayerAnimationType;
48
+ animation: import('../../components/layer').LayerAnimationType;
49
49
  useRange: boolean;
50
50
  insideElements: HTMLElement[];
51
51
  }> & Omit<{
52
- readonly placement: import('../layer/props').LayerPlacementType;
53
52
  readonly color: string;
54
- readonly background: string;
55
53
  readonly zIndex: number;
56
54
  readonly modelValue: boolean;
57
55
  readonly node: string | HTMLElement | null;
58
56
  readonly scrollNode: string | HTMLElement | null;
59
57
  readonly border: boolean;
60
58
  readonly borderColor: string;
59
+ readonly background: string;
60
+ readonly placement: import('../../components/layer').LayerPlacementType;
61
61
  readonly showTriangle: boolean;
62
- readonly animation: import('../layer/props').LayerAnimationType;
62
+ readonly animation: import('../../components/layer').LayerAnimationType;
63
63
  readonly useRange: boolean;
64
64
  readonly insideElements: HTMLElement[];
65
+ onHidden?: ((...args: any[]) => any) | undefined;
65
66
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
67
  onShow?: ((...args: any[]) => any) | undefined;
67
68
  onShown?: ((...args: any[]) => any) | undefined;
68
- onHidden?: ((...args: any[]) => any) | undefined;
69
69
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
70
70
  modelValue: {
71
71
  type: BooleanConstructor;
@@ -96,7 +96,7 @@ declare const _default: import('vue').DefineComponent<{
96
96
  default: null;
97
97
  };
98
98
  placement: {
99
- type: import('vue').PropType<import('../layer/props').LayerPlacementType>;
99
+ type: import('vue').PropType<import('../../components/layer').LayerPlacementType>;
100
100
  default: string;
101
101
  validator(value: any): boolean;
102
102
  };
@@ -109,7 +109,7 @@ declare const _default: import('vue').DefineComponent<{
109
109
  default: number;
110
110
  };
111
111
  animation: {
112
- type: import('vue').PropType<import('../layer/props').LayerAnimationType>;
112
+ type: import('vue').PropType<import('../../components/layer').LayerAnimationType>;
113
113
  default: null;
114
114
  validator(value: any): boolean;
115
115
  };
@@ -122,11 +122,11 @@ declare const _default: import('vue').DefineComponent<{
122
122
  default: () => never[];
123
123
  };
124
124
  }>> & {
125
+ onHidden?: ((...args: any[]) => any) | undefined;
125
126
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
126
127
  onShow?: ((...args: any[]) => any) | undefined;
127
128
  onShown?: ((...args: any[]) => any) | undefined;
128
- onHidden?: ((...args: any[]) => any) | undefined;
129
- }, "placement" | "color" | "background" | "zIndex" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "showTriangle" | "animation" | "useRange" | "insideElements">;
129
+ }, "color" | "zIndex" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "animation" | "useRange" | "insideElements">;
130
130
  $attrs: {
131
131
  [x: string]: unknown;
132
132
  };
@@ -136,9 +136,9 @@ declare const _default: import('vue').DefineComponent<{
136
136
  $slots: Readonly<{
137
137
  [name: string]: import('vue').Slot<any> | undefined;
138
138
  }>;
139
- $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
140
- $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
141
- $emit: ((event: "update:modelValue", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "shown", ...args: any[]) => void) & ((event: "hidden", ...args: any[]) => void);
139
+ $root: ComponentPublicInstance | null;
140
+ $parent: ComponentPublicInstance | null;
141
+ $emit: ((event: "hidden", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "shown", ...args: any[]) => void);
142
142
  $el: any;
143
143
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
144
144
  modelValue: {
@@ -170,7 +170,7 @@ declare const _default: import('vue').DefineComponent<{
170
170
  default: null;
171
171
  };
172
172
  placement: {
173
- type: import('vue').PropType<import('../layer/props').LayerPlacementType>;
173
+ type: import('vue').PropType<import('../../components/layer').LayerPlacementType>;
174
174
  default: string;
175
175
  validator(value: any): boolean;
176
176
  };
@@ -183,7 +183,7 @@ declare const _default: import('vue').DefineComponent<{
183
183
  default: number;
184
184
  };
185
185
  animation: {
186
- type: import('vue').PropType<import('../layer/props').LayerAnimationType>;
186
+ type: import('vue').PropType<import('../../components/layer').LayerAnimationType>;
187
187
  default: null;
188
188
  validator(value: any): boolean;
189
189
  };
@@ -196,52 +196,52 @@ declare const _default: import('vue').DefineComponent<{
196
196
  default: () => never[];
197
197
  };
198
198
  }>> & {
199
+ onHidden?: ((...args: any[]) => any) | undefined;
199
200
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
200
201
  onShow?: ((...args: any[]) => any) | undefined;
201
202
  onShown?: ((...args: any[]) => any) | undefined;
202
- onHidden?: ((...args: any[]) => any) | undefined;
203
203
  }, {
204
204
  setPosition: () => void;
205
- elRef: Ref<HTMLElement | null>;
205
+ elRef: import('vue').Ref<HTMLElement | null>;
206
206
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
207
+ hidden: (...args: any[]) => void;
207
208
  "update:modelValue": (...args: any[]) => void;
208
209
  show: (...args: any[]) => void;
209
210
  shown: (...args: any[]) => void;
210
- hidden: (...args: any[]) => void;
211
211
  }, string, {
212
- placement: import('../layer/props').LayerPlacementType;
213
212
  color: string;
214
- background: string;
215
213
  zIndex: number;
216
214
  modelValue: boolean;
217
215
  node: string | HTMLElement | null;
218
216
  scrollNode: string | HTMLElement | null;
219
217
  border: boolean;
220
218
  borderColor: string;
219
+ background: string;
220
+ placement: import('../../components/layer').LayerPlacementType;
221
221
  showTriangle: boolean;
222
- animation: import('../layer/props').LayerAnimationType;
222
+ animation: import('../../components/layer').LayerAnimationType;
223
223
  useRange: boolean;
224
224
  insideElements: HTMLElement[];
225
225
  }, {}, string, {}> & {
226
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
227
- created?: ((() => void) | (() => void)[]) | undefined;
228
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
229
- mounted?: ((() => void) | (() => void)[]) | undefined;
230
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
231
- updated?: ((() => void) | (() => void)[]) | undefined;
232
- activated?: ((() => void) | (() => void)[]) | undefined;
233
- deactivated?: ((() => void) | (() => void)[]) | undefined;
234
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
235
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
236
- destroyed?: ((() => void) | (() => void)[]) | undefined;
237
- unmounted?: ((() => void) | (() => void)[]) | undefined;
238
- renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
239
- renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
240
- errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
226
+ beforeCreate?: (() => void) | (() => void)[];
227
+ created?: (() => void) | (() => void)[];
228
+ beforeMount?: (() => void) | (() => void)[];
229
+ mounted?: (() => void) | (() => void)[];
230
+ beforeUpdate?: (() => void) | (() => void)[];
231
+ updated?: (() => void) | (() => void)[];
232
+ activated?: (() => void) | (() => void)[];
233
+ deactivated?: (() => void) | (() => void)[];
234
+ beforeDestroy?: (() => void) | (() => void)[];
235
+ beforeUnmount?: (() => void) | (() => void)[];
236
+ destroyed?: (() => void) | (() => void)[];
237
+ unmounted?: (() => void) | (() => void)[];
238
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
239
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
240
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
241
241
  };
242
242
  $forceUpdate: () => void;
243
243
  $nextTick: typeof import('vue').nextTick;
244
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
244
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (cleanupFn: () => void) => void]) => any : (...args: [any, any, (cleanupFn: () => void) => void]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
245
245
  } & Omit<Readonly<import('vue').ExtractPropTypes<{
246
246
  modelValue: {
247
247
  type: BooleanConstructor;
@@ -272,7 +272,7 @@ declare const _default: import('vue').DefineComponent<{
272
272
  default: null;
273
273
  };
274
274
  placement: {
275
- type: import('vue').PropType<import('../layer/props').LayerPlacementType>;
275
+ type: import('vue').PropType<import('../../components/layer').LayerPlacementType>;
276
276
  default: string;
277
277
  validator(value: any): boolean;
278
278
  };
@@ -285,7 +285,7 @@ declare const _default: import('vue').DefineComponent<{
285
285
  default: number;
286
286
  };
287
287
  animation: {
288
- type: import('vue').PropType<import('../layer/props').LayerAnimationType>;
288
+ type: import('vue').PropType<import('../../components/layer').LayerAnimationType>;
289
289
  default: null;
290
290
  validator(value: any): boolean;
291
291
  };
@@ -298,13 +298,13 @@ declare const _default: import('vue').DefineComponent<{
298
298
  default: () => never[];
299
299
  };
300
300
  }>> & {
301
+ onHidden?: ((...args: any[]) => any) | undefined;
301
302
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
302
303
  onShow?: ((...args: any[]) => any) | undefined;
303
304
  onShown?: ((...args: any[]) => any) | undefined;
304
- onHidden?: ((...args: any[]) => any) | undefined;
305
305
  }, "setPosition" | "elRef"> & import('vue').ShallowUnwrapRef<{
306
306
  setPosition: () => void;
307
- elRef: Ref<HTMLElement | null>;
307
+ elRef: import('vue').Ref<HTMLElement | null>;
308
308
  }> & {} & import('vue').ComponentCustomProperties & {} & {
309
309
  $slots: {
310
310
  default?(_: {}): any;
@@ -326,16 +326,16 @@ declare const _default: import('vue').DefineComponent<{
326
326
  default: null;
327
327
  };
328
328
  type: {
329
- type: import('vue').PropType<"link" | "text" | "image" | "video" | "table" | "codeBlock">;
329
+ type: import('vue').PropType<"text" | "table" | "link" | "codeBlock" | "image" | "video">;
330
330
  default: string;
331
331
  validator(value: any): boolean;
332
332
  };
333
333
  config: {
334
- type: import('vue').PropType<import('../../core/tool').ToolbarConfigType>;
334
+ type: import('vue').PropType<import('../..').ToolbarConfigType>;
335
335
  default: null;
336
336
  };
337
337
  color: {
338
- type: import('vue').PropType<string | null>;
338
+ type: StringConstructor;
339
339
  default: string;
340
340
  };
341
341
  zIndex: {
@@ -345,12 +345,12 @@ declare const _default: import('vue').DefineComponent<{
345
345
  }>> & {
346
346
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
347
347
  }, {
348
- color: string | null;
349
- type: "link" | "text" | "image" | "video" | "table" | "codeBlock";
348
+ type: "text" | "link" | "table" | "video" | "image" | "codeBlock";
349
+ color: string;
350
350
  zIndex: number;
351
351
  modelValue: boolean;
352
352
  node: string | HTMLElement;
353
353
  scrollNode: string | HTMLElement;
354
- config: import('../../core/tool').ToolbarConfigType;
354
+ config: import('../..').ToolbarConfigType;
355
355
  }, {}>;
356
356
  export default _default;