@lvce-editor/renderer-process 30.42.0 → 30.42.2
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 +12 -0
- package/package.json +1 -1
|
@@ -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
|
};
|
|
@@ -9788,6 +9797,7 @@ const renderCanvas = (id, selector, canvasClassName, width, height, rectangles,
|
|
|
9788
9797
|
};
|
|
9789
9798
|
const commandHandlers = {
|
|
9790
9799
|
'Css.addCssStyleSheet': addCssStyleSheet,
|
|
9800
|
+
'Css.removeCssStyleSheet': removeCssStyleSheet,
|
|
9791
9801
|
'Viewlet.addCss': addCssStyleSheet,
|
|
9792
9802
|
'Viewlet.addKeyBindings': addKeyBindings,
|
|
9793
9803
|
'Viewlet.append': append,
|
|
@@ -10215,6 +10225,7 @@ const commandMap = {
|
|
|
10215
10225
|
'ConfirmPrompt.prompt': confirm,
|
|
10216
10226
|
'Css.addCssStyleSheet': addCssStyleSheet,
|
|
10217
10227
|
'Css.getSelectionText': getSelectionText,
|
|
10228
|
+
'Css.removeCssStyleSheet': removeCssStyleSheet,
|
|
10218
10229
|
'Developer.showState': showState,
|
|
10219
10230
|
'DirectView.getFocusedUid': getFocusedViewUid,
|
|
10220
10231
|
'DirectView.getUid': getViewUid,
|
|
@@ -10241,6 +10252,7 @@ const commandMap = {
|
|
|
10241
10252
|
'Location.getPathName': getPathName,
|
|
10242
10253
|
'Location.hydrate': hydrate$2,
|
|
10243
10254
|
'Location.setPathName': setPathName,
|
|
10255
|
+
'Location.setWorkspaceUri': setWorkspaceUri,
|
|
10244
10256
|
'MeasureTextBlockHeight.measureTextBlockHeight': measureTextBlockHeight,
|
|
10245
10257
|
'MeasureTextHeight.measureTextHeight': measureTextHeight,
|
|
10246
10258
|
'Menu.focusIndex': focusIndex,
|