@lvce-editor/iframe-worker 5.1.0 → 5.2.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.
@@ -1184,8 +1184,8 @@ const create = async previewServerId => {
1184
1184
  const start = async (previewServerId, webViewPort) => {
1185
1185
  await invoke('WebViewServer.start', previewServerId, webViewPort);
1186
1186
  };
1187
- const setInfo = async (previewServerId, webViewId, webViewRoot) => {
1188
- await invoke('WebViewServer.setInfo', previewServerId, webViewId, webViewRoot);
1187
+ const setInfo = async (previewServerId, webViewId, webViewRoot, contentSecurityPolicy, iframeContent) => {
1188
+ await invoke('WebViewServer.setInfo', previewServerId, webViewId, webViewRoot, contentSecurityPolicy, iframeContent);
1189
1189
  };
1190
1190
  const setHandler = async (previewServerId, frameAncestors, webViewRoot, contentSecurityPolicy, iframeContent) => {
1191
1191
  await invoke('WebViewServer.setHandler', previewServerId, frameAncestors, webViewRoot, contentSecurityPolicy, iframeContent);
@@ -1201,7 +1201,7 @@ const register$3 = async (previewServerId, webViewPort, frameAncestors, webViewR
1201
1201
  // Then the request handler can decide by domain which webview root to use.
1202
1202
  // Another option would be in electron to check what iframe (webContents)
1203
1203
  // responds to which webviewRoot and setting a webviewRoot per webContents instance
1204
- await setInfo(previewServerId, webViewId, webViewRoot);
1204
+ await setInfo(previewServerId, webViewId, webViewRoot, csp, iframeContent);
1205
1205
  };
1206
1206
 
1207
1207
  const register$2 = async (previewServerId, webViewPort, frameAncestors, webViewRoot, csp, iframeContent) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/iframe-worker",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "Web Worker to manage creation and lifecycle of iframes in Lvce Editor",
5
5
  "main": "dist/iframeWorkerMain.js",
6
6
  "type": "module",