mce 0.2.4 → 0.2.6

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.
@@ -12,7 +12,6 @@ declare const _default: {
12
12
  file: string;
13
13
  new: string;
14
14
  open: string;
15
- preferences: string;
16
15
  import: string;
17
16
  export: string;
18
17
  'saveAs:png': string;
@@ -38,6 +38,7 @@ export declare class Doc extends Model {
38
38
  setProperties(properties?: Record<string, any>): this;
39
39
  load(initFn?: () => void | Promise<void>): Promise<this>;
40
40
  protected _isSelfTransaction(transaction: Y.Transaction): boolean;
41
+ protected _debug(..._args: any[]): void;
41
42
  protected _onChildrenChange(event: Y.YMapEvent<Y.Map<unknown>>, transaction: Y.Transaction): void;
42
43
  reset(): this;
43
44
  init(): void;
@@ -45,7 +45,6 @@ import './plugins/new'
45
45
  import './plugins/open'
46
46
  import './plugins/pdf'
47
47
  import './plugins/pptx'
48
- import './plugins/preference'
49
48
  import './plugins/saveAs'
50
49
  import './plugins/select'
51
50
  import './plugins/text'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mce",
3
3
  "type": "module",
4
- "version": "0.2.4",
4
+ "version": "0.2.6",
5
5
  "description": "The headless canvas editor framework. only the ESM.",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -61,10 +61,10 @@
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.19",
64
+ "modern-canvas": "^0.12.20",
65
65
  "modern-font": "^0.4.4",
66
66
  "modern-idoc": "^0.10.5",
67
- "modern-text": "^1.10.1",
67
+ "modern-text": "^1.10.2",
68
68
  "yjs": "^13.6.27"
69
69
  },
70
70
  "peerDependencies": {
@@ -1,16 +0,0 @@
1
- import type { Ref } from 'vue';
2
- declare global {
3
- namespace Mce {
4
- interface Commands {
5
- preferences: () => void;
6
- }
7
- interface Hotkeys {
8
- preferences: [event: KeyboardEvent];
9
- }
10
- interface Editor {
11
- preferencesVisible: Ref<boolean>;
12
- }
13
- }
14
- }
15
- declare const _default: import("..").Plugin;
16
- export default _default;