vue-editify 0.2.27 → 0.2.29

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.
@@ -4,7 +4,7 @@ import { Button } from '../../components/button';
4
4
  type MenuItemComponentPublicInstance = ComponentPublicInstance & {
5
5
  btnRef: InstanceType<typeof Button>;
6
6
  };
7
- declare const _default: import('vue').DefineComponent<{
7
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
8
  config: {
9
9
  type: import('vue').PropType<import('../../core/tool').MenuConfigType>;
10
10
  default: null;
@@ -17,12 +17,14 @@ declare const _default: import('vue').DefineComponent<{
17
17
  type: NumberConstructor;
18
18
  default: number;
19
19
  };
20
- }, {
21
- height: Ref<number>;
20
+ }>, {
21
+ height: Ref<number, number>;
22
22
  menuItemRefs: Ref<{
23
23
  [name: string]: MenuItemComponentPublicInstance;
24
+ }, {
25
+ [name: string]: MenuItemComponentPublicInstance;
24
26
  }>;
25
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
27
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
26
28
  config: {
27
29
  type: import('vue').PropType<import('../../core/tool').MenuConfigType>;
28
30
  default: null;
@@ -35,9 +37,9 @@ declare const _default: import('vue').DefineComponent<{
35
37
  type: NumberConstructor;
36
38
  default: number;
37
39
  };
38
- }>>, {
40
+ }>> & Readonly<{}>, {
39
41
  color: string;
40
42
  zIndex: number;
41
43
  config: import('../../core/tool').MenuConfigType;
42
- }, {}>;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
43
45
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ComponentPublicInstance } from 'vue';
2
2
 
3
- declare const _default: import('vue').DefineComponent<{
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  modelValue: {
5
5
  type: BooleanConstructor;
6
6
  default: boolean;
@@ -30,13 +30,14 @@ declare const _default: import('vue').DefineComponent<{
30
30
  type: NumberConstructor;
31
31
  default: number;
32
32
  };
33
- }, {
33
+ }>, {
34
34
  layerRef: import('vue').Ref<({
35
35
  $: import('vue').ComponentInternalInstance;
36
36
  $data: {};
37
37
  $props: Partial<{
38
38
  color: string;
39
39
  zIndex: number;
40
+ animation: import('../../components/layer').LayerAnimationType;
40
41
  modelValue: boolean;
41
42
  node: string | HTMLElement | null;
42
43
  scrollNode: string | HTMLElement | null;
@@ -45,12 +46,12 @@ declare const _default: import('vue').DefineComponent<{
45
46
  background: string;
46
47
  placement: import('../../components/layer').LayerPlacementType;
47
48
  showTriangle: boolean;
48
- animation: import('../../components/layer').LayerAnimationType;
49
49
  useRange: boolean;
50
50
  insideElements: HTMLElement[];
51
51
  }> & Omit<{
52
52
  readonly color: string;
53
53
  readonly zIndex: number;
54
+ readonly animation: import('../../components/layer').LayerAnimationType;
54
55
  readonly modelValue: boolean;
55
56
  readonly node: string | HTMLElement | null;
56
57
  readonly scrollNode: string | HTMLElement | null;
@@ -59,14 +60,28 @@ declare const _default: import('vue').DefineComponent<{
59
60
  readonly background: string;
60
61
  readonly placement: import('../../components/layer').LayerPlacementType;
61
62
  readonly showTriangle: boolean;
62
- readonly animation: import('../../components/layer').LayerAnimationType;
63
63
  readonly useRange: boolean;
64
64
  readonly insideElements: HTMLElement[];
65
- onHidden?: ((...args: any[]) => any) | undefined;
66
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
67
- onShow?: ((...args: any[]) => any) | undefined;
68
- onShown?: ((...args: any[]) => any) | undefined;
69
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
65
+ readonly onHidden?: ((...args: any[]) => any) | undefined;
66
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
67
+ readonly onShow?: ((...args: any[]) => any) | undefined;
68
+ readonly onShown?: ((...args: any[]) => any) | undefined;
69
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements">;
70
+ $attrs: {
71
+ [x: string]: unknown;
72
+ };
73
+ $refs: {
74
+ [x: string]: unknown;
75
+ };
76
+ $slots: Readonly<{
77
+ [name: string]: import('vue').Slot<any> | undefined;
78
+ }>;
79
+ $root: ComponentPublicInstance | null;
80
+ $parent: ComponentPublicInstance | null;
81
+ $host: Element | null;
82
+ $emit: ((event: "hidden", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "shown", ...args: any[]) => void);
83
+ $el: any;
84
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
70
85
  modelValue: {
71
86
  type: BooleanConstructor;
72
87
  default: boolean;
@@ -121,12 +136,170 @@ declare const _default: import('vue').DefineComponent<{
121
136
  type: import('vue').PropType<HTMLElement[]>;
122
137
  default: () => never[];
123
138
  };
124
- }>> & {
139
+ }>> & Readonly<{
125
140
  onHidden?: ((...args: any[]) => any) | undefined;
126
141
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
127
142
  onShow?: ((...args: any[]) => any) | undefined;
128
143
  onShown?: ((...args: any[]) => any) | undefined;
129
- }, "color" | "zIndex" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "animation" | "useRange" | "insideElements">;
144
+ }>, {
145
+ setPosition: () => void;
146
+ elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
147
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
148
+ hidden: (...args: any[]) => void;
149
+ "update:modelValue": (...args: any[]) => void;
150
+ show: (...args: any[]) => void;
151
+ shown: (...args: any[]) => void;
152
+ }, string, {
153
+ color: string;
154
+ zIndex: number;
155
+ animation: import('../../components/layer').LayerAnimationType;
156
+ modelValue: boolean;
157
+ node: string | HTMLElement | null;
158
+ scrollNode: string | HTMLElement | null;
159
+ border: boolean;
160
+ borderColor: string;
161
+ background: string;
162
+ placement: import('../../components/layer').LayerPlacementType;
163
+ showTriangle: boolean;
164
+ useRange: boolean;
165
+ insideElements: HTMLElement[];
166
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
167
+ beforeCreate?: (() => void) | (() => void)[];
168
+ created?: (() => void) | (() => void)[];
169
+ beforeMount?: (() => void) | (() => void)[];
170
+ mounted?: (() => void) | (() => void)[];
171
+ beforeUpdate?: (() => void) | (() => void)[];
172
+ updated?: (() => void) | (() => void)[];
173
+ activated?: (() => void) | (() => void)[];
174
+ deactivated?: (() => void) | (() => void)[];
175
+ beforeDestroy?: (() => void) | (() => void)[];
176
+ beforeUnmount?: (() => void) | (() => void)[];
177
+ destroyed?: (() => void) | (() => void)[];
178
+ unmounted?: (() => void) | (() => void)[];
179
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
180
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
181
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
182
+ };
183
+ $forceUpdate: () => void;
184
+ $nextTick: typeof import('vue').nextTick;
185
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
186
+ } & Readonly<{
187
+ color: string;
188
+ zIndex: number;
189
+ animation: import('../../components/layer').LayerAnimationType;
190
+ modelValue: boolean;
191
+ node: string | HTMLElement | null;
192
+ scrollNode: string | HTMLElement | null;
193
+ border: boolean;
194
+ borderColor: string;
195
+ background: string;
196
+ placement: import('../../components/layer').LayerPlacementType;
197
+ showTriangle: boolean;
198
+ useRange: boolean;
199
+ insideElements: HTMLElement[];
200
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
201
+ modelValue: {
202
+ type: BooleanConstructor;
203
+ default: boolean;
204
+ };
205
+ node: {
206
+ type: import('vue').PropType<string | HTMLElement | null>;
207
+ default: null;
208
+ };
209
+ scrollNode: {
210
+ type: import('vue').PropType<string | HTMLElement | null>;
211
+ default: null;
212
+ };
213
+ border: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ borderColor: {
218
+ type: StringConstructor;
219
+ default: null;
220
+ };
221
+ background: {
222
+ type: StringConstructor;
223
+ default: null;
224
+ };
225
+ color: {
226
+ type: StringConstructor;
227
+ default: null;
228
+ };
229
+ placement: {
230
+ type: import('vue').PropType<import('../../components/layer').LayerPlacementType>;
231
+ default: string;
232
+ validator(value: any): boolean;
233
+ };
234
+ showTriangle: {
235
+ type: BooleanConstructor;
236
+ default: boolean;
237
+ };
238
+ zIndex: {
239
+ type: NumberConstructor;
240
+ default: number;
241
+ };
242
+ animation: {
243
+ type: import('vue').PropType<import('../../components/layer').LayerAnimationType>;
244
+ default: null;
245
+ validator(value: any): boolean;
246
+ };
247
+ useRange: {
248
+ type: BooleanConstructor;
249
+ default: boolean;
250
+ };
251
+ insideElements: {
252
+ type: import('vue').PropType<HTMLElement[]>;
253
+ default: () => never[];
254
+ };
255
+ }>> & Readonly<{
256
+ onHidden?: ((...args: any[]) => any) | undefined;
257
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
258
+ onShow?: ((...args: any[]) => any) | undefined;
259
+ onShown?: ((...args: any[]) => any) | undefined;
260
+ }>, "setPosition" | "elRef" | ("color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements")> & import('vue').ShallowUnwrapRef<{
261
+ setPosition: () => void;
262
+ elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
263
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
264
+ $slots: {
265
+ default?(_: {}): any;
266
+ };
267
+ }) | null, ({
268
+ $: import('vue').ComponentInternalInstance;
269
+ $data: {};
270
+ $props: Partial<{
271
+ color: string;
272
+ zIndex: number;
273
+ animation: import('../../components/layer').LayerAnimationType;
274
+ modelValue: boolean;
275
+ node: string | HTMLElement | null;
276
+ scrollNode: string | HTMLElement | null;
277
+ border: boolean;
278
+ borderColor: string;
279
+ background: string;
280
+ placement: import('../../components/layer').LayerPlacementType;
281
+ showTriangle: boolean;
282
+ useRange: boolean;
283
+ insideElements: HTMLElement[];
284
+ }> & Omit<{
285
+ readonly color: string;
286
+ readonly zIndex: number;
287
+ readonly animation: import('../../components/layer').LayerAnimationType;
288
+ readonly modelValue: boolean;
289
+ readonly node: string | HTMLElement | null;
290
+ readonly scrollNode: string | HTMLElement | null;
291
+ readonly border: boolean;
292
+ readonly borderColor: string;
293
+ readonly background: string;
294
+ readonly placement: import('../../components/layer').LayerPlacementType;
295
+ readonly showTriangle: boolean;
296
+ readonly useRange: boolean;
297
+ readonly insideElements: HTMLElement[];
298
+ readonly onHidden?: ((...args: any[]) => any) | undefined;
299
+ readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
300
+ readonly onShow?: ((...args: any[]) => any) | undefined;
301
+ readonly onShown?: ((...args: any[]) => any) | undefined;
302
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements">;
130
303
  $attrs: {
131
304
  [x: string]: unknown;
132
305
  };
@@ -138,6 +311,7 @@ declare const _default: import('vue').DefineComponent<{
138
311
  }>;
139
312
  $root: ComponentPublicInstance | null;
140
313
  $parent: ComponentPublicInstance | null;
314
+ $host: Element | null;
141
315
  $emit: ((event: "hidden", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "shown", ...args: any[]) => void);
142
316
  $el: any;
143
317
  $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
@@ -195,15 +369,15 @@ declare const _default: import('vue').DefineComponent<{
195
369
  type: import('vue').PropType<HTMLElement[]>;
196
370
  default: () => never[];
197
371
  };
198
- }>> & {
372
+ }>> & Readonly<{
199
373
  onHidden?: ((...args: any[]) => any) | undefined;
200
374
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
201
375
  onShow?: ((...args: any[]) => any) | undefined;
202
376
  onShown?: ((...args: any[]) => any) | undefined;
203
- }, {
377
+ }>, {
204
378
  setPosition: () => void;
205
- elRef: import('vue').Ref<HTMLElement | null>;
206
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
379
+ elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
380
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
207
381
  hidden: (...args: any[]) => void;
208
382
  "update:modelValue": (...args: any[]) => void;
209
383
  show: (...args: any[]) => void;
@@ -211,6 +385,7 @@ declare const _default: import('vue').DefineComponent<{
211
385
  }, string, {
212
386
  color: string;
213
387
  zIndex: number;
388
+ animation: import('../../components/layer').LayerAnimationType;
214
389
  modelValue: boolean;
215
390
  node: string | HTMLElement | null;
216
391
  scrollNode: string | HTMLElement | null;
@@ -219,10 +394,9 @@ declare const _default: import('vue').DefineComponent<{
219
394
  background: string;
220
395
  placement: import('../../components/layer').LayerPlacementType;
221
396
  showTriangle: boolean;
222
- animation: import('../../components/layer').LayerAnimationType;
223
397
  useRange: boolean;
224
398
  insideElements: HTMLElement[];
225
- }, {}, string, {}> & {
399
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
226
400
  beforeCreate?: (() => void) | (() => void)[];
227
401
  created?: (() => void) | (() => void)[];
228
402
  beforeMount?: (() => void) | (() => void)[];
@@ -241,8 +415,22 @@ declare const _default: import('vue').DefineComponent<{
241
415
  };
242
416
  $forceUpdate: () => void;
243
417
  $nextTick: typeof import('vue').nextTick;
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
- } & Omit<Readonly<import('vue').ExtractPropTypes<{
418
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
419
+ } & Readonly<{
420
+ color: string;
421
+ zIndex: number;
422
+ animation: import('../../components/layer').LayerAnimationType;
423
+ modelValue: boolean;
424
+ node: string | HTMLElement | null;
425
+ scrollNode: string | HTMLElement | null;
426
+ border: boolean;
427
+ borderColor: string;
428
+ background: string;
429
+ placement: import('../../components/layer').LayerPlacementType;
430
+ showTriangle: boolean;
431
+ useRange: boolean;
432
+ insideElements: HTMLElement[];
433
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
246
434
  modelValue: {
247
435
  type: BooleanConstructor;
248
436
  default: boolean;
@@ -297,20 +485,20 @@ declare const _default: import('vue').DefineComponent<{
297
485
  type: import('vue').PropType<HTMLElement[]>;
298
486
  default: () => never[];
299
487
  };
300
- }>> & {
488
+ }>> & Readonly<{
301
489
  onHidden?: ((...args: any[]) => any) | undefined;
302
490
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
303
491
  onShow?: ((...args: any[]) => any) | undefined;
304
492
  onShown?: ((...args: any[]) => any) | undefined;
305
- }, "setPosition" | "elRef"> & import('vue').ShallowUnwrapRef<{
493
+ }>, "setPosition" | "elRef" | ("color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements")> & import('vue').ShallowUnwrapRef<{
306
494
  setPosition: () => void;
307
- elRef: import('vue').Ref<HTMLElement | null>;
495
+ elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
308
496
  }> & {} & import('vue').ComponentCustomProperties & {} & {
309
497
  $slots: {
310
498
  default?(_: {}): any;
311
499
  };
312
500
  }) | null>;
313
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
501
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
314
502
  "update:modelValue": (...args: any[]) => void;
315
503
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
316
504
  modelValue: {
@@ -342,9 +530,9 @@ declare const _default: import('vue').DefineComponent<{
342
530
  type: NumberConstructor;
343
531
  default: number;
344
532
  };
345
- }>> & {
533
+ }>> & Readonly<{
346
534
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
347
- }, {
535
+ }>, {
348
536
  type: "text" | "orderList" | "unorderList" | "link" | "table" | "video" | "image" | "codeBlock";
349
537
  color: string;
350
538
  zIndex: number;
@@ -352,5 +540,5 @@ declare const _default: import('vue').DefineComponent<{
352
540
  node: string | HTMLElement;
353
541
  scrollNode: string | HTMLElement;
354
542
  config: import('../..').ToolbarConfigType;
355
- }, {}>;
543
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
356
544
  export default _default;