@lvce-editor/iframe-worker 5.24.0 → 5.25.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.
@@ -1776,6 +1776,8 @@ const create3 = async ({
1776
1776
  const permissionPolicyString = permissionPolicy.join('; ');
1777
1777
  const iframeCsp = platform === Web ? csp : '';
1778
1778
  const credentialless = getCredentialLess(locationHost);
1779
+
1780
+ // TODO remove this
1779
1781
  await invoke$4('ExtensionHostManagement.activateByEvent', `onWebView:${webViewId}`);
1780
1782
  const portId = create$1();
1781
1783
  const remotePathPrefix = '/remote';
@@ -1814,17 +1816,15 @@ const getWebViewInfo = webViewId => {
1814
1816
  const rpcs = getAll();
1815
1817
  for (const value of Object.values(rpcs)) {
1816
1818
  if (value.webViewId === webViewId) {
1817
- return value;
1819
+ return {
1820
+ uid: value.webViewUid,
1821
+ origin: value.origin
1822
+ };
1818
1823
  }
1819
1824
  }
1820
1825
  return undefined;
1821
1826
  };
1822
1827
 
1823
- const GetWebViewInfo = {
1824
- __proto__: null,
1825
- getWebViewInfo
1826
- };
1827
-
1828
1828
  const saveState = async () => {
1829
1829
  const all = getAll();
1830
1830
  const serialized = [];
@@ -1849,7 +1849,7 @@ const commandMap = {
1849
1849
  'WebView.create3': create3,
1850
1850
  'WebView.saveState': saveState,
1851
1851
  'WebView.getSecret': getSecret,
1852
- 'WebView.getWebViewInfo': GetWebViewInfo
1852
+ 'WebView.getWebViewInfo': getWebViewInfo
1853
1853
  };
1854
1854
 
1855
1855
  const listen = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/iframe-worker",
3
- "version": "5.24.0",
3
+ "version": "5.25.0",
4
4
  "description": "Web Worker to manage creation and lifecycle of iframes in Lvce Editor",
5
5
  "keywords": [
6
6
  "iframe"