mce 0.11.0 → 0.11.1
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/dist/index.js +1041 -1042
- package/dist/mixins/1.upload.d.ts +1 -1
- package/dist/mixins/2.export/json.d.ts +2 -2
- package/dist/plugins/gif.d.ts +1 -1
- package/dist/plugins/image.d.ts +3 -3
- package/dist/plugins/menu.d.ts +11 -2
- package/package.json +2 -2
package/dist/plugins/gif.d.ts
CHANGED
package/dist/plugins/image.d.ts
CHANGED
package/dist/plugins/menu.d.ts
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import type { ComputedRef } from 'vue';
|
|
2
2
|
declare global {
|
|
3
3
|
namespace Mce {
|
|
4
|
+
interface MenuItem {
|
|
5
|
+
key: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
children: MenuItem[];
|
|
9
|
+
}
|
|
4
10
|
interface Editor {
|
|
5
|
-
mainMenu: ComputedRef<
|
|
6
|
-
contextMenu: ComputedRef<
|
|
11
|
+
mainMenu: ComputedRef<MenuItem[]>;
|
|
12
|
+
contextMenu: ComputedRef<MenuItem[]>;
|
|
13
|
+
}
|
|
14
|
+
interface Options {
|
|
15
|
+
customContextMenu?: (defaultMenu: MenuItem[], editor: Editor) => MenuItem[];
|
|
7
16
|
}
|
|
8
17
|
}
|
|
9
18
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.1",
|
|
5
5
|
"description": "The headless canvas editor framework. only the ESM.",
|
|
6
6
|
"author": "wxm",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"diff": "^8.0.2",
|
|
62
62
|
"file-saver": "^2.0.5",
|
|
63
63
|
"lodash-es": "^4.17.21",
|
|
64
|
-
"modern-canvas": "^0.12.
|
|
64
|
+
"modern-canvas": "^0.12.22",
|
|
65
65
|
"modern-font": "^0.4.4",
|
|
66
66
|
"modern-idoc": "^0.10.5",
|
|
67
67
|
"modern-text": "^1.10.3",
|