@lvce-editor/renderer-process 30.42.0 → 30.42.1

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.
@@ -3664,6 +3664,15 @@ const setPathName = pathName => {
3664
3664
  }
3665
3665
  history.pushState(null, '', pathName);
3666
3666
  };
3667
+ const setWorkspaceUri = workspaceUri => {
3668
+ const currentHref = getHref();
3669
+ const url = new URL(currentHref);
3670
+ url.searchParams.set('workspace', workspaceUri);
3671
+ if (url.href === currentHref) {
3672
+ return;
3673
+ }
3674
+ history.replaceState(null, '', url.href);
3675
+ };
3667
3676
  const hydrate$2 = () => {
3668
3677
  // addEventListener('popstate', handlePopState)
3669
3678
  };
@@ -10241,6 +10250,7 @@ const commandMap = {
10241
10250
  'Location.getPathName': getPathName,
10242
10251
  'Location.hydrate': hydrate$2,
10243
10252
  'Location.setPathName': setPathName,
10253
+ 'Location.setWorkspaceUri': setWorkspaceUri,
10244
10254
  'MeasureTextBlockHeight.measureTextBlockHeight': measureTextBlockHeight,
10245
10255
  'MeasureTextHeight.measureTextHeight': measureTextHeight,
10246
10256
  'Menu.focusIndex': focusIndex,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.42.0",
3
+ "version": "30.42.1",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"