@lvce-editor/running-extensions-view 1.13.0 → 1.14.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.
|
@@ -1342,26 +1342,31 @@ const None$1 = 0;
|
|
|
1342
1342
|
const Electron = 2;
|
|
1343
1343
|
|
|
1344
1344
|
const ClipBoardWorker = 3400;
|
|
1345
|
+
const DialogWorker = 7014;
|
|
1345
1346
|
const ExtensionManagementWorker = 9006;
|
|
1346
1347
|
const MainProcess = -5;
|
|
1347
1348
|
const RendererWorker = 1;
|
|
1348
|
-
const SharedProcess = 1492;
|
|
1349
1349
|
|
|
1350
1350
|
const SetCss = 'Viewlet.setCss';
|
|
1351
1351
|
const SetDom2 = 'Viewlet.setDom2';
|
|
1352
1352
|
const SetPatches = 'Viewlet.setPatches';
|
|
1353
1353
|
|
|
1354
1354
|
const {
|
|
1355
|
-
invoke: invoke$
|
|
1355
|
+
invoke: invoke$4,
|
|
1356
1356
|
set: set$5
|
|
1357
1357
|
} = create$2(ClipBoardWorker);
|
|
1358
1358
|
const writeText = async text => {
|
|
1359
|
-
return invoke$
|
|
1359
|
+
return invoke$4('ClipBoard.writeText', text);
|
|
1360
1360
|
};
|
|
1361
1361
|
|
|
1362
1362
|
const {
|
|
1363
|
-
invoke: invoke$
|
|
1363
|
+
invoke: invoke$3,
|
|
1364
1364
|
set: set$4
|
|
1365
|
+
} = create$2(DialogWorker);
|
|
1366
|
+
|
|
1367
|
+
const {
|
|
1368
|
+
invoke: invoke$2,
|
|
1369
|
+
set: set$3
|
|
1365
1370
|
} = create$2(ExtensionManagementWorker);
|
|
1366
1371
|
const disable2 = (id, platform) => {
|
|
1367
1372
|
return invoke$2(`Extensions.disable2`, id, platform);
|
|
@@ -1369,13 +1374,13 @@ const disable2 = (id, platform) => {
|
|
|
1369
1374
|
|
|
1370
1375
|
const {
|
|
1371
1376
|
invoke: invoke$1,
|
|
1372
|
-
set: set$
|
|
1377
|
+
set: set$2
|
|
1373
1378
|
} = create$2(MainProcess);
|
|
1374
1379
|
|
|
1375
1380
|
const {
|
|
1376
1381
|
invoke,
|
|
1377
|
-
invokeAndTransfer
|
|
1378
|
-
set: set$
|
|
1382
|
+
invokeAndTransfer,
|
|
1383
|
+
set: set$1
|
|
1379
1384
|
} = create$2(RendererWorker);
|
|
1380
1385
|
const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
1381
1386
|
number(uid);
|
|
@@ -1386,19 +1391,15 @@ const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
|
1386
1391
|
};
|
|
1387
1392
|
const sendMessagePortToClipBoardWorker = async (port, rpcId) => {
|
|
1388
1393
|
const command = 'ClipBoard.handleMessagePort';
|
|
1389
|
-
await invokeAndTransfer
|
|
1390
|
-
};
|
|
1391
|
-
const confirm = async (message, options) => {
|
|
1392
|
-
const result = await invoke('ConfirmPrompt.prompt', message, options);
|
|
1393
|
-
return result;
|
|
1394
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToClipBoardWorker', port, command, rpcId);
|
|
1394
1395
|
};
|
|
1395
|
-
const
|
|
1396
|
-
const command = '
|
|
1397
|
-
await invokeAndTransfer
|
|
1396
|
+
const sendMessagePortToDialogWorker = async port => {
|
|
1397
|
+
const command = 'HandleMessagePort.handleMessagePort';
|
|
1398
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToDialogWorker', port, command);
|
|
1398
1399
|
};
|
|
1399
1400
|
const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
|
|
1400
1401
|
const command = 'Extensions.handleMessagePort';
|
|
1401
|
-
await invokeAndTransfer
|
|
1402
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
1402
1403
|
};
|
|
1403
1404
|
const getWindowId = async () => {
|
|
1404
1405
|
return invoke('GetWindowId.getWindowId');
|
|
@@ -1410,11 +1411,6 @@ const openUrl = async uri => {
|
|
|
1410
1411
|
await invoke('Open.openUrl', uri);
|
|
1411
1412
|
};
|
|
1412
1413
|
|
|
1413
|
-
const {
|
|
1414
|
-
invokeAndTransfer,
|
|
1415
|
-
set: set$1
|
|
1416
|
-
} = create$2(SharedProcess);
|
|
1417
|
-
|
|
1418
1414
|
const copyId$1 = async (state, index) => {
|
|
1419
1415
|
const {
|
|
1420
1416
|
extensions
|
|
@@ -2506,7 +2502,7 @@ const reportIssue = async (state, index) => {
|
|
|
2506
2502
|
} = state;
|
|
2507
2503
|
const issuesUrl = getIssuesUrl(extensions[index]?.repository);
|
|
2508
2504
|
if (!issuesUrl) {
|
|
2509
|
-
await
|
|
2505
|
+
await invoke$3('ConfirmPrompt.prompt', reportingIssuesNotSupported(), undefined);
|
|
2510
2506
|
return state;
|
|
2511
2507
|
}
|
|
2512
2508
|
const cmd = getOpenCommand(platform);
|
|
@@ -2529,7 +2525,7 @@ const setExtensions = (state, extensions) => {
|
|
|
2529
2525
|
};
|
|
2530
2526
|
|
|
2531
2527
|
const startProfile = async state => {
|
|
2532
|
-
await
|
|
2528
|
+
await invoke$3('ConfirmPrompt.prompt', extensionHostProfilingNotAvailable(), undefined);
|
|
2533
2529
|
return state;
|
|
2534
2530
|
};
|
|
2535
2531
|
|
|
@@ -2552,7 +2548,7 @@ const takeHeapSnapshot = async (state, index) => {
|
|
|
2552
2548
|
await invoke('Main.openUri', uri);
|
|
2553
2549
|
} catch (error) {
|
|
2554
2550
|
const message = error instanceof Error ? error.message : String(error);
|
|
2555
|
-
await
|
|
2551
|
+
await invoke$3('ConfirmPrompt.prompt', message, undefined);
|
|
2556
2552
|
return state;
|
|
2557
2553
|
}
|
|
2558
2554
|
return state;
|
|
@@ -2581,60 +2577,54 @@ const commandMap = {
|
|
|
2581
2577
|
'RunningExtensions.takeHeapSnapshot': wrapCommand(takeHeapSnapshot)
|
|
2582
2578
|
};
|
|
2583
2579
|
|
|
2584
|
-
const send$
|
|
2580
|
+
const send$2 = async port => {
|
|
2585
2581
|
await sendMessagePortToClipBoardWorker(port, 0);
|
|
2586
2582
|
};
|
|
2587
2583
|
const initializeClipBoardWorker = async () => {
|
|
2588
2584
|
const rpc = await create$4({
|
|
2589
2585
|
commandMap: {},
|
|
2590
|
-
send: send$
|
|
2586
|
+
send: send$2
|
|
2591
2587
|
});
|
|
2592
2588
|
set$5(rpc);
|
|
2593
2589
|
};
|
|
2594
2590
|
|
|
2595
|
-
const send$
|
|
2591
|
+
const send$1 = async port => {
|
|
2596
2592
|
await sendMessagePortToExtensionManagementWorker(port, 0);
|
|
2597
2593
|
};
|
|
2598
2594
|
const initializeExtensionManagementWorker = async () => {
|
|
2599
2595
|
const rpc = await create$4({
|
|
2600
2596
|
commandMap: {},
|
|
2601
|
-
send: send$
|
|
2597
|
+
send: send$1
|
|
2602
2598
|
});
|
|
2603
|
-
set$
|
|
2599
|
+
set$3(rpc);
|
|
2604
2600
|
};
|
|
2605
2601
|
|
|
2606
|
-
const send
|
|
2607
|
-
await invokeAndTransfer('
|
|
2602
|
+
const send = async port => {
|
|
2603
|
+
await invokeAndTransfer('SendMessagePortToMainProcess.sendMessagePortToMainProcess', port, 'HandleElectronMessagePort.handleElectronMessagePort', 0);
|
|
2608
2604
|
};
|
|
2609
2605
|
const initializeMainProcess = async () => {
|
|
2610
2606
|
const rpc = await create$4({
|
|
2611
2607
|
commandMap: {},
|
|
2612
|
-
send
|
|
2608
|
+
send
|
|
2613
2609
|
});
|
|
2614
|
-
set$
|
|
2610
|
+
set$2(rpc);
|
|
2615
2611
|
};
|
|
2616
2612
|
|
|
2617
2613
|
const initializeRendererWorker = async () => {
|
|
2618
2614
|
const rpc = await create$3({
|
|
2619
2615
|
commandMap: commandMap
|
|
2620
2616
|
});
|
|
2621
|
-
set$2(rpc);
|
|
2622
|
-
};
|
|
2623
|
-
|
|
2624
|
-
const send = async port => {
|
|
2625
|
-
await sendMessagePortToSharedProcess(port);
|
|
2626
|
-
};
|
|
2627
|
-
const initializeSharedProcess = async () => {
|
|
2628
|
-
const rpc = await create$4({
|
|
2629
|
-
commandMap: {},
|
|
2630
|
-
send
|
|
2631
|
-
});
|
|
2632
2617
|
set$1(rpc);
|
|
2633
2618
|
};
|
|
2634
2619
|
|
|
2635
2620
|
const listen = async () => {
|
|
2636
2621
|
registerCommands(commandMap);
|
|
2637
|
-
await Promise.all([initializeRendererWorker(), initializeClipBoardWorker(), initializeExtensionManagementWorker(), initializeMainProcess()
|
|
2622
|
+
await Promise.all([initializeRendererWorker(), initializeClipBoardWorker(), initializeExtensionManagementWorker(), initializeMainProcess()]);
|
|
2623
|
+
const dialogRpc = await create$4({
|
|
2624
|
+
commandMap: {},
|
|
2625
|
+
send: sendMessagePortToDialogWorker
|
|
2626
|
+
});
|
|
2627
|
+
set$4(dialogRpc);
|
|
2638
2628
|
};
|
|
2639
2629
|
|
|
2640
2630
|
const main = async () => {
|