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 +0 -1
- package/dist/components/Selector.vue.d.ts +1 -1
- package/dist/components/shared/Btn.vue.d.ts +4 -1
- package/dist/components/shared/Dialog.vue.d.ts +1 -1
- package/dist/components/shared/Menu.vue.d.ts +9 -0
- package/dist/components/shared/Overlay.vue.d.ts +5 -8
- package/dist/components/shared/Tooltip.vue.d.ts +8 -6
- package/dist/composables/overlay.d.ts +3 -3
- package/dist/editor.d.ts +1 -1
- package/dist/index.css +369 -309
- package/dist/index.js +6996 -2448
- package/dist/locale/en.d.ts +18 -3
- package/dist/locale/zh-Hans.d.ts +18 -3
- package/dist/mixins/0.config/base.d.ts +0 -2
- package/dist/mixins/0.context.d.ts +0 -5
- package/dist/mixins/drawingTool.d.ts +25 -0
- package/dist/plugin.d.ts +4 -0
- package/dist/plugins/cancel.d.ts +9 -0
- package/dist/plugins/drawingTool.d.ts +9 -0
- package/dist/plugins/image.d.ts +3 -1
- package/dist/plugins/panels.d.ts +1 -1
- package/dist/plugins/pen.d.ts +9 -0
- package/dist/plugins/shape.d.ts +27 -0
- package/dist/plugins/state.d.ts +9 -0
- package/dist/plugins/statusbar.d.ts +12 -0
- package/dist/plugins/text.d.ts +6 -3
- package/dist/plugins/timeline.d.ts +12 -0
- package/dist/plugins/toolbelt.d.ts +9 -0
- package/dist/typed-global.d.ts +8 -1
- package/dist/typed-plugins.d.ts +10 -1
- package/dist/utils/create.d.ts +4 -3
- package/dist/utils/helper.d.ts +4 -0
- package/package.json +3 -3
- package/dist/components/Panels.vue.d.ts +0 -3
- /package/dist/plugins/{frames.d.ts → frame.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -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
|
-
}>, "
|
|
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<
|
|
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,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:
|
|
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": (
|
|
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:
|
|
56
|
-
default: boolean;
|
|
54
|
+
type: import("vue").PropType<boolean>;
|
|
57
55
|
};
|
|
58
56
|
}>> & Readonly<{
|
|
59
|
-
"onUpdate:modelValue"?: ((
|
|
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 | "
|
|
16
|
-
default: NonNullable<import("@floating-ui/vue").Side | "
|
|
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 | "
|
|
44
|
-
default: NonNullable<import("@floating-ui/vue").Side | "
|
|
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 | "
|
|
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 | "
|
|
23
|
-
type: PropType<unknown extends Defaults["location"] ? Side | "
|
|
24
|
-
default: unknown extends Defaults["location"] ? Side | "
|
|
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
|
-
|
|
22
|
+
pluginsComponents: import("vue").ComputedRef<{
|
|
23
23
|
overlay: OverlayPluginComponent[];
|
|
24
24
|
panel: PanelPluginComponent[];
|
|
25
25
|
}>;
|