@lvce-editor/renderer-process 30.49.0 → 30.50.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 +19 -0
- package/package.json +1 -1
|
@@ -8021,6 +8021,7 @@ const RunAndDebug = 'Run And Debug';
|
|
|
8021
8021
|
const ScreenCapture = 'ScreenCapture';
|
|
8022
8022
|
const Sidebar$1 = 'SideBar';
|
|
8023
8023
|
const SimpleBrowser = 'SimpleBrowser';
|
|
8024
|
+
const SimpleBrowserHistory = 'SimpleBrowserHistory';
|
|
8024
8025
|
const SourceControl = 'Source Control';
|
|
8025
8026
|
const StatusBar$1 = 'StatusBar';
|
|
8026
8027
|
const Storage = 'Storage';
|
|
@@ -8520,6 +8521,10 @@ const ViewletSimpleBrowser = {
|
|
|
8520
8521
|
Events: ViewletSimpleBrowserEvents
|
|
8521
8522
|
};
|
|
8522
8523
|
|
|
8524
|
+
const ViewletSimpleBrowserHistory = {
|
|
8525
|
+
__proto__: null
|
|
8526
|
+
};
|
|
8527
|
+
|
|
8523
8528
|
const handleContextMenu$1 = event => {
|
|
8524
8529
|
preventDefault(event);
|
|
8525
8530
|
const {
|
|
@@ -9374,6 +9379,7 @@ const moduleLoaders = {
|
|
|
9374
9379
|
[ScreenCapture]: () => ViewletScreenCapture,
|
|
9375
9380
|
[Sidebar$1]: () => ViewletSidebar,
|
|
9376
9381
|
[SimpleBrowser]: () => ViewletSimpleBrowser,
|
|
9382
|
+
[SimpleBrowserHistory]: () => ViewletSimpleBrowserHistory,
|
|
9377
9383
|
[SourceControl]: () => ViewletSourceControl,
|
|
9378
9384
|
[StatusBar$1]: () => ViewletStatusBar,
|
|
9379
9385
|
[Storage]: () => ViewletStorage,
|
|
@@ -9928,6 +9934,18 @@ const appendToBody = childId => {
|
|
|
9928
9934
|
$Parent.append($Child);
|
|
9929
9935
|
applyLateFocusMaybe();
|
|
9930
9936
|
};
|
|
9937
|
+
const appendToRoot = (childId, rootId) => {
|
|
9938
|
+
const parent = document.getElementById(rootId);
|
|
9939
|
+
if (!parent) {
|
|
9940
|
+
throw new Error(`Application root not found: ${rootId}`);
|
|
9941
|
+
}
|
|
9942
|
+
const childInstance = get$a(childId);
|
|
9943
|
+
if (!childInstance) {
|
|
9944
|
+
throw new Error(`Viewlet not found: ${childId}`);
|
|
9945
|
+
}
|
|
9946
|
+
parent.append(childInstance.state.$Viewlet);
|
|
9947
|
+
applyLateFocusMaybe();
|
|
9948
|
+
};
|
|
9931
9949
|
const executeCommands = commands => {
|
|
9932
9950
|
for (const [command, ...args] of commands) {
|
|
9933
9951
|
const fn = getFn(command);
|
|
@@ -10010,6 +10028,7 @@ const commandHandlers = {
|
|
|
10010
10028
|
'Viewlet.addKeyBindings': addKeyBindings,
|
|
10011
10029
|
'Viewlet.append': append,
|
|
10012
10030
|
'Viewlet.appendToBody': appendToBody,
|
|
10031
|
+
'Viewlet.appendToRoot': appendToRoot,
|
|
10013
10032
|
'Viewlet.appendViewlet': appendViewlet,
|
|
10014
10033
|
'Viewlet.ariaAnnounce': ariaAnnounce,
|
|
10015
10034
|
'Viewlet.attachWindowEvents': attachWindowEvents,
|