@mce/svg 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 CHANGED
@@ -3,8 +3,8 @@ import { docToSvgString as a } from "modern-idoc-svg";
3
3
  function c() {
4
4
  return s((n) => {
5
5
  const {
6
- to: o,
7
- fonts: t
6
+ to: t,
7
+ fonts: o
8
8
  } = n;
9
9
  return {
10
10
  name: "mce:svg",
@@ -14,8 +14,8 @@ function c() {
14
14
  copyAs: !0,
15
15
  saveAs: (e) => new Blob([e], { type: "image/svg+xml" }),
16
16
  handle: async (e) => {
17
- const r = await o("json", e);
18
- return a({ ...r, fonts: t });
17
+ const r = await t("json", e);
18
+ return await a({ ...r, fonts: o });
19
19
  }
20
20
  }
21
21
  ]
package/dist/plugin.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare global {
2
2
  namespace Mce {
3
3
  interface Exporters {
4
- svg: string;
4
+ svg: Promise<string>;
5
5
  }
6
6
  }
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mce/svg",
3
3
  "type": "module",
4
- "version": "0.11.0",
4
+ "version": "0.11.1",
5
5
  "description": "SVG plugin for mce",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -46,10 +46,10 @@
46
46
  "dist"
47
47
  ],
48
48
  "dependencies": {
49
- "modern-idoc-svg": "^0.1.0"
49
+ "modern-idoc-svg": "^0.2.0"
50
50
  },
51
51
  "devDependencies": {
52
- "mce": "0.11.0"
52
+ "mce": "0.11.1"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "mce": "^0"