@lvce-editor/renderer-process 10.55.0 → 10.56.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.
@@ -205,6 +205,9 @@ const getModuleId = commandId => {
205
205
  case 'HandleMessagePort.handleMessagePort':
206
206
  return HandleMessagePort;
207
207
  case 'WebView.create':
208
+ case 'WebView.load':
209
+ case 'WebView.loadOnly':
210
+ case 'WebView.appendOnly':
208
211
  case 'WebView.setPort':
209
212
  case 'WebView.dispose':
210
213
  return WebView$1;
@@ -6842,6 +6845,20 @@ const create$w = async (uid, src, sandbox, csp, credentialless, permissionPolicy
6842
6845
  set$2(uid, $Iframe);
6843
6846
  // TODO make make waitForFrameToLoad a separate command
6844
6847
  };
6848
+ const loadOnly = async uid => {
6849
+ const $Iframe = get(uid);
6850
+ const promise = waitForFrameToLoad($Iframe);
6851
+ await promise;
6852
+ };
6853
+ const appendOnly = async uid => {
6854
+ const $Iframe = get(uid);
6855
+ const parent = document.getElementById('Workbench');
6856
+ parent.append($Iframe);
6857
+ };
6858
+
6859
+ /**
6860
+ * @deprecated use loadOnly and appendOnly instead
6861
+ */
6845
6862
  const load = async uid => {
6846
6863
  const $Iframe = get(uid);
6847
6864
  const promise = waitForFrameToLoad($Iframe);
@@ -6876,6 +6893,8 @@ const name = 'WebView';
6876
6893
  const Commands$1 = {
6877
6894
  create: create$w,
6878
6895
  load: load,
6896
+ loadOnly: loadOnly,
6897
+ appendOnly: appendOnly,
6879
6898
  setPort: setPort$2,
6880
6899
  dispose: dispose$d
6881
6900
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.55.0",
3
+ "version": "10.56.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",