@paged-media/plugin-sdk 0.2.39-canary.0 → 0.2.40-canary.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 +5 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1006,10 +1006,12 @@ function createBundleHost(getEditor, manifest, options) {
1006
1006
  log.warn(
1007
1007
  `contribute.sceneLayer().submit("${elementId}") ignored \u2014 the host wired no scene channel (probe supports("rendering.sceneLayer@1"))`
1008
1008
  );
1009
- return;
1009
+ return { fontFallbacks: [] };
1010
1010
  }
1011
1011
  submitted.add(elementId);
1012
- await ch.submit(elementId, layer, manifest.id);
1012
+ const reply = await ch.submit(elementId, layer, manifest.id);
1013
+ const fontFallbacks = reply && Array.isArray(reply.fontFallbacks) ? [...reply.fontFallbacks] : [];
1014
+ return { fontFallbacks };
1013
1015
  },
1014
1016
  async clear(elementId) {
1015
1017
  submitted.delete(elementId);
@@ -2263,6 +2265,7 @@ function createBundleHost(getEditor, manifest, options) {
2263
2265
  }
2264
2266
  if (getEditor().sceneLayers) {
2265
2267
  featureSet.add("rendering.sceneLayer@1");
2268
+ featureSet.add("rendering.sceneLayer.faces@1");
2266
2269
  }
2267
2270
  if (typeof getEditor().overlaySignals?.setToolPreviews === "function") {
2268
2271
  featureSet.add("overlay.multiPreview@1");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paged-media/plugin-sdk",
3
- "version": "0.2.39-canary.0",
3
+ "version": "0.2.40-canary.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@paged-media/plugin-api": "0.2.39-canary.0"
14
+ "@paged-media/plugin-api": "0.2.40-canary.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": "^18.3.0"
@@ -22,7 +22,7 @@
22
22
  }
23
23
  },
24
24
  "devDependencies": {
25
- "@paged-media/canvas-wasm": "0.67.0",
25
+ "@paged-media/canvas-wasm": "0.68.0",
26
26
  "@types/node": "20.19.39",
27
27
  "@types/react": "^18.3.31",
28
28
  "react": "^18.3.1",