@mce/svg 0.29.9 → 0.30.0

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { definePlugin, matchSource, materializePipelines } from "mce";
1
+ import { definePlugin, matchSource, materializeImagePipelines } from "mce";
2
2
  //#region src/plugin.ts
3
3
  function plugin() {
4
4
  return definePlugin((editor) => {
5
- const { to, fonts, resolvePipelines } = editor;
5
+ const { to, fonts, resolveImagePipelines } = editor;
6
6
  return {
7
7
  name: "mce:svg",
8
8
  messages: {
@@ -45,7 +45,7 @@ function plugin() {
45
45
  handle: async (options) => {
46
46
  const { docToSvgString } = await import("modern-idoc-svg");
47
47
  const doc = await to("json", options);
48
- await materializePipelines(doc, resolvePipelines);
48
+ await materializeImagePipelines(doc, resolveImagePipelines);
49
49
  return await docToSvgString({
50
50
  ...doc,
51
51
  fonts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mce/svg",
3
3
  "type": "module",
4
- "version": "0.29.9",
4
+ "version": "0.30.0",
5
5
  "description": "SVG plugin for mce",
6
6
  "author": "wxm",
7
7
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "modern-path2d": "^1.8.5"
51
51
  },
52
52
  "devDependencies": {
53
- "mce": "0.29.9"
53
+ "mce": "0.30.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "mce": "^0"