@lvce-editor/renderer-process 30.54.0 → 30.55.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.
@@ -10295,6 +10295,22 @@ const revealBrowserTab$1 = uid => {
10295
10295
  inline: 'nearest'
10296
10296
  });
10297
10297
  };
10298
+ const browserParents = new Map();
10299
+ const rememberBrowserParent$1 = uid => {
10300
+ if (browserParents.has(uid)) return;
10301
+ const browser = get$a(uid)?.state.$Viewlet;
10302
+ if (!browser?.parentNode) return;
10303
+ const marker = document.createComment('browser workspace position');
10304
+ browser.before(marker);
10305
+ browserParents.set(uid, marker);
10306
+ };
10307
+ const restoreBrowserParent$1 = uid => {
10308
+ const marker = browserParents.get(uid);
10309
+ browserParents.delete(uid);
10310
+ if (!marker) return;
10311
+ const browser = get$a(uid)?.state.$Viewlet;
10312
+ if (browser && marker.isConnected) marker.replaceWith(browser);else marker.remove();
10313
+ };
10298
10314
 
10299
10315
  const reload = () => {
10300
10316
  location.reload();
@@ -10346,6 +10362,8 @@ const captureBrowserAddress = captureBrowserAddress$1;
10346
10362
  const focusBrowserAddress = focusBrowserAddress$1;
10347
10363
  const restoreCodingFocus = restoreCodingFocus$1;
10348
10364
  const revealBrowserTab = revealBrowserTab$1;
10365
+ const rememberBrowserParent = rememberBrowserParent$1;
10366
+ const restoreBrowserParent = restoreBrowserParent$1;
10349
10367
 
10350
10368
  const set$1 = title => {
10351
10369
  document.title = title;
@@ -10818,6 +10836,8 @@ const commandMap = {
10818
10836
  'Window.onVisibilityChange': onVisibilityChange,
10819
10837
  'Window.prepareClose': prepareClose,
10820
10838
  'Window.reload': reload,
10839
+ 'Window.rememberBrowserParent': rememberBrowserParent,
10840
+ 'Window.restoreBrowserParent': restoreBrowserParent,
10821
10841
  'Window.restoreCodingFocus': restoreCodingFocus,
10822
10842
  'Window.revealBrowserTab': revealBrowserTab,
10823
10843
  'Window.toggleFullScreen': toggleFullScreen,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.54.0",
3
+ "version": "30.55.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"