mce 0.13.12 → 0.13.14

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.
package/README.md CHANGED
@@ -47,7 +47,6 @@ npm i mce
47
47
  theme: 'system',
48
48
  viewMode: 'edgeless',
49
49
  watermark: '/example.jpg',
50
- msaa: true,
51
50
  checkerboard: true,
52
51
  checkerboardStyle: 'grid',
53
52
  pixelGrid: true,
@@ -156,7 +156,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
156
156
  onEnd?: ((args_0: TransformableValue) => any) | undefined;
157
157
  onStart?: ((args_0: TransformableValue) => any) | undefined;
158
158
  "onUpdate:modelValue"?: ((args_0: TransformableValue) => any) | undefined;
159
- }>, "start" | "transforming" | "activeHandle" | ("handleShape" | "movable" | "rotatable" | "resizable" | "tag" | "adjustableBorderRadius" | "threshold" | "handles")> & import("vue").ShallowUnwrapRef<{
159
+ }>, "transforming" | "start" | "activeHandle" | ("handleShape" | "movable" | "rotatable" | "resizable" | "tag" | "adjustableBorderRadius" | "threshold" | "handles")> & import("vue").ShallowUnwrapRef<{
160
160
  start: (event?: MouseEvent, index?: number) => boolean;
161
161
  activeHandle: import("vue").Ref<("move" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "border-radius-top-left" | "border-radius-top-right" | "border-radius-bottom-left" | "border-radius-bottom-right") | undefined, ("move" | "resize-top" | "resize-right" | "resize-bottom" | "resize-left" | "resize-top-left" | "resize-top-right" | "resize-bottom-left" | "resize-bottom-right" | "rotate-top-left" | "rotate-top-right" | "rotate-bottom-left" | "rotate-bottom-right" | "border-radius-top-left" | "border-radius-top-right" | "border-radius-bottom-left" | "border-radius-bottom-right") | undefined>;
162
162
  transforming: import("vue").Ref<boolean, boolean>;
@@ -1,8 +1,11 @@
1
+ type __VLS_Props = {
2
+ active?: boolean;
3
+ };
1
4
  declare var __VLS_1: {};
2
5
  type __VLS_Slots = {} & {
3
6
  default?: (props: typeof __VLS_1) => any;
4
7
  };
5
- declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_base: 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
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
10
  declare const _default: typeof __VLS_export;
8
11
  export default _default;
@@ -3,7 +3,7 @@ declare var __VLS_8: {
3
3
  props: {
4
4
  ref: (el: any) => any;
5
5
  };
6
- isActive: boolean;
6
+ isActive: boolean | undefined;
7
7
  }, __VLS_10: {};
8
8
  type __VLS_Slots = {} & {
9
9
  activator?: (props: typeof __VLS_8) => any;
@@ -3,6 +3,15 @@ type __VLS_Slots = {
3
3
  title?: (props: {
4
4
  item: MenuItem;
5
5
  }) => any;
6
+ kbd?: (props: {
7
+ item: MenuItem;
8
+ }) => any;
9
+ prepend?: (props: {
10
+ item: MenuItem;
11
+ }) => any;
12
+ append?: (props: {
13
+ item: MenuItem;
14
+ }) => any;
6
15
  activator?: (props: any) => any;
7
16
  };
8
17
  export interface MenuItem {
@@ -2,7 +2,7 @@ declare var __VLS_1: {
2
2
  props: {
3
3
  ref: (el: any) => any;
4
4
  };
5
- isActive: boolean;
5
+ isActive: boolean | undefined;
6
6
  }, __VLS_8: {};
7
7
  type __VLS_Slots = {} & {
8
8
  activator?: (props: typeof __VLS_1) => any;
@@ -25,8 +25,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
25
25
  default: undefined;
26
26
  };
27
27
  modelValue: {
28
- type: BooleanConstructor;
29
- default: boolean;
28
+ type: import("vue").PropType<boolean>;
30
29
  };
31
30
  }>, {
32
31
  activatorEl: import("vue").Ref<any, any>;
@@ -34,7 +33,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
34
33
  contentEl: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
35
34
  updateLocation: () => void;
36
35
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
- "update:modelValue": (val: boolean) => any;
36
+ "update:modelValue": (value: boolean | undefined) => any;
38
37
  "click:outside": (event: MouseEvent) => any;
39
38
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
39
  location: import("vue").PropType<import("@floating-ui/vue").Side | import("@floating-ui/vue").AlignedPlacement>;
@@ -52,16 +51,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
52
51
  default: undefined;
53
52
  };
54
53
  modelValue: {
55
- type: BooleanConstructor;
56
- default: boolean;
54
+ type: import("vue").PropType<boolean>;
57
55
  };
58
56
  }>> & Readonly<{
59
- "onUpdate:modelValue"?: ((val: boolean) => any) | undefined;
57
+ "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
60
58
  "onClick:outside"?: ((event: MouseEvent) => any) | undefined;
61
59
  }>, {
62
60
  attach: string | boolean | Element | null | undefined;
63
61
  middlewares: ("shift" | "flip" | "offset")[];
64
- modelValue: boolean;
65
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
66
63
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
67
64
  declare const _default: typeof __VLS_export;
@@ -1,9 +1,11 @@
1
1
  declare function updateLocation(): void;
2
2
  declare var __VLS_8: {
3
3
  props: {
4
+ onMouseenter: () => boolean;
5
+ onMouseleave: () => boolean;
4
6
  ref: (el: any) => any;
5
7
  };
6
- isActive: boolean;
8
+ isActive: boolean | undefined;
7
9
  }, __VLS_10: {};
8
10
  type __VLS_Slots = {} & {
9
11
  activator?: (props: typeof __VLS_8) => any;
@@ -12,8 +14,8 @@ type __VLS_Slots = {} & {
12
14
  };
13
15
  declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
14
16
  location: {
15
- type: import("vue").PropType<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
16
- default: NonNullable<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
17
+ type: import("vue").PropType<import("@floating-ui/vue").Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start">;
18
+ default: NonNullable<import("@floating-ui/vue").Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start">;
17
19
  };
18
20
  offset: {
19
21
  type: import("vue").PropType<number>;
@@ -40,8 +42,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
40
42
  "update:modelValue": (value: boolean | undefined) => any;
41
43
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
44
  location: {
43
- type: import("vue").PropType<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
44
- default: NonNullable<import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start">;
45
+ type: import("vue").PropType<import("@floating-ui/vue").Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start">;
46
+ default: NonNullable<import("@floating-ui/vue").Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start">;
45
47
  };
46
48
  offset: {
47
49
  type: import("vue").PropType<number>;
@@ -66,7 +68,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
66
68
  "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
67
69
  }>, {
68
70
  offset: number;
69
- location: import("@floating-ui/vue").Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start";
71
+ location: import("@floating-ui/vue").Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start";
70
72
  attach: string | boolean | Element | null | undefined;
71
73
  middlewares: ("shift" | "flip" | "offset")[];
72
74
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -19,9 +19,9 @@ export declare const makeMceOverlayProps: <Defaults extends {
19
19
  target?: unknown;
20
20
  attach?: unknown;
21
21
  } = {}>(defaults?: Defaults | undefined) => {
22
- location: unknown extends Defaults["location"] ? PropType<Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start"> : {
23
- type: PropType<unknown extends Defaults["location"] ? Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start" : Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start" | Defaults["location"]>;
24
- default: unknown extends Defaults["location"] ? Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start" : NonNullable<Side | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start"> | Defaults["location"];
22
+ location: unknown extends Defaults["location"] ? PropType<Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start"> : {
23
+ type: PropType<unknown extends Defaults["location"] ? Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start" : Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start" | Defaults["location"]>;
24
+ default: unknown extends Defaults["location"] ? Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start" : NonNullable<Side | "top-end" | "top-start" | "right-end" | "right-start" | "bottom-end" | "bottom-start" | "left-end" | "left-start"> | Defaults["location"];
25
25
  };
26
26
  offset: unknown extends Defaults["offset"] ? NumberConstructor : {
27
27
  type: PropType<unknown extends Defaults["offset"] ? number : number | Defaults["offset"]>;
package/dist/editor.d.ts CHANGED
@@ -19,7 +19,7 @@ export declare class Editor extends Observable<Events> {
19
19
  config: RemovableRef<Mce.Config>;
20
20
  onEmit?: <K extends keyof Events & string>(event: K, ...args: Events[K]) => void;
21
21
  plugins: Map<string, PluginObject>;
22
- typedPlugins: import("vue").ComputedRef<{
22
+ pluginsComponents: import("vue").ComputedRef<{
23
23
  overlay: OverlayPluginComponent[];
24
24
  panel: PanelPluginComponent[];
25
25
  }>;