@lvce-editor/renderer-process 30.41.2 → 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.
- package/dist/rendererProcessMain.js +20 -3
- package/package.json +1 -1
|
@@ -3295,9 +3295,16 @@ const hydrate$4 = async () => {
|
|
|
3295
3295
|
};
|
|
3296
3296
|
const handleMessagePort$1 = async port => {
|
|
3297
3297
|
if (!state$b.rpc) {
|
|
3298
|
-
|
|
3298
|
+
const result = await hydrate$4();
|
|
3299
|
+
if (isError(result)) {
|
|
3300
|
+
throw result.error;
|
|
3301
|
+
}
|
|
3302
|
+
}
|
|
3303
|
+
const rpc = state$b.rpc;
|
|
3304
|
+
if (!rpc) {
|
|
3305
|
+
throw new Error('Drag And Drop Worker failed to initialize');
|
|
3299
3306
|
}
|
|
3300
|
-
await
|
|
3307
|
+
await rpc.invokeAndTransfer('DragAndDrop.handleMessagePort', port);
|
|
3301
3308
|
};
|
|
3302
3309
|
|
|
3303
3310
|
const downloadFile = (fileName, url) => {
|
|
@@ -3657,6 +3664,15 @@ const setPathName = pathName => {
|
|
|
3657
3664
|
}
|
|
3658
3665
|
history.pushState(null, '', pathName);
|
|
3659
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
|
+
};
|
|
3660
3676
|
const hydrate$2 = () => {
|
|
3661
3677
|
// addEventListener('popstate', handlePopState)
|
|
3662
3678
|
};
|
|
@@ -10234,6 +10250,7 @@ const commandMap = {
|
|
|
10234
10250
|
'Location.getPathName': getPathName,
|
|
10235
10251
|
'Location.hydrate': hydrate$2,
|
|
10236
10252
|
'Location.setPathName': setPathName,
|
|
10253
|
+
'Location.setWorkspaceUri': setWorkspaceUri,
|
|
10237
10254
|
'MeasureTextBlockHeight.measureTextBlockHeight': measureTextBlockHeight,
|
|
10238
10255
|
'MeasureTextHeight.measureTextHeight': measureTextHeight,
|
|
10239
10256
|
'Menu.focusIndex': focusIndex,
|
|
@@ -10658,7 +10675,7 @@ const hydrate = async () => {
|
|
|
10658
10675
|
return success(undefined);
|
|
10659
10676
|
};
|
|
10660
10677
|
|
|
10661
|
-
const requiredWorkerFns = [hydrate$3
|
|
10678
|
+
const requiredWorkerFns = [hydrate$3];
|
|
10662
10679
|
const additionalWorkerFns = [hydrate$1, hydrate];
|
|
10663
10680
|
const call = fn => {
|
|
10664
10681
|
return fn();
|