@lvce-editor/renderer-process 10.54.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.
- package/dist/rendererProcessMain.js +27 -4
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -1395,7 +1398,7 @@ var getEventListenerOptions$1 = (eventName, value) => {
|
|
|
1395
1398
|
passive: true
|
|
1396
1399
|
};
|
|
1397
1400
|
default:
|
|
1398
|
-
return
|
|
1401
|
+
return void 0;
|
|
1399
1402
|
}
|
|
1400
1403
|
};
|
|
1401
1404
|
|
|
@@ -1410,7 +1413,7 @@ var getUidTarget = $Element => {
|
|
|
1410
1413
|
}
|
|
1411
1414
|
$Element = $Element.parentNode;
|
|
1412
1415
|
}
|
|
1413
|
-
return
|
|
1416
|
+
return void 0;
|
|
1414
1417
|
};
|
|
1415
1418
|
|
|
1416
1419
|
// src/parts/ComponentUid/ComponentUid.ts
|
|
@@ -1434,7 +1437,7 @@ var getComponentUidFromEvent = event => {
|
|
|
1434
1437
|
|
|
1435
1438
|
// src/parts/IpcState/IpcState.ts
|
|
1436
1439
|
var state$8 = {
|
|
1437
|
-
ipc:
|
|
1440
|
+
ipc: void 0
|
|
1438
1441
|
};
|
|
1439
1442
|
var getIpc = () => {
|
|
1440
1443
|
return state$8.ipc;
|
|
@@ -1490,7 +1493,7 @@ var getOptions = fn => {
|
|
|
1490
1493
|
passive: true
|
|
1491
1494
|
};
|
|
1492
1495
|
}
|
|
1493
|
-
return
|
|
1496
|
+
return void 0;
|
|
1494
1497
|
};
|
|
1495
1498
|
var attachEvent$1 = ($Node, eventMap, key, value, newEventMap) => {
|
|
1496
1499
|
if (newEventMap && newEventMap[value]) {
|
|
@@ -3030,6 +3033,8 @@ const EditorCodeGenerator = 'EditorCodeGenerator';
|
|
|
3030
3033
|
|
|
3031
3034
|
const state$6 = {
|
|
3032
3035
|
instances: Object.create(null),
|
|
3036
|
+
currentSideBarView: undefined,
|
|
3037
|
+
currentPanelView: undefined,
|
|
3033
3038
|
modules: Object.create(null)
|
|
3034
3039
|
};
|
|
3035
3040
|
|
|
@@ -6491,6 +6496,8 @@ const getFn = command => {
|
|
|
6491
6496
|
return registerEventListeners;
|
|
6492
6497
|
case 'Viewlet.setPatches':
|
|
6493
6498
|
return setPatches;
|
|
6499
|
+
case 'Viewlet.focusSelector':
|
|
6500
|
+
return focusSelector;
|
|
6494
6501
|
default:
|
|
6495
6502
|
throw new Error(`unknown command ${command}`);
|
|
6496
6503
|
}
|
|
@@ -6838,6 +6845,20 @@ const create$w = async (uid, src, sandbox, csp, credentialless, permissionPolicy
|
|
|
6838
6845
|
set$2(uid, $Iframe);
|
|
6839
6846
|
// TODO make make waitForFrameToLoad a separate command
|
|
6840
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
|
+
*/
|
|
6841
6862
|
const load = async uid => {
|
|
6842
6863
|
const $Iframe = get(uid);
|
|
6843
6864
|
const promise = waitForFrameToLoad($Iframe);
|
|
@@ -6872,6 +6893,8 @@ const name = 'WebView';
|
|
|
6872
6893
|
const Commands$1 = {
|
|
6873
6894
|
create: create$w,
|
|
6874
6895
|
load: load,
|
|
6896
|
+
loadOnly: loadOnly,
|
|
6897
|
+
appendOnly: appendOnly,
|
|
6875
6898
|
setPort: setPort$2,
|
|
6876
6899
|
dispose: dispose$d
|
|
6877
6900
|
};
|