@lvce-editor/output-view 1.16.0 → 1.17.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.
- package/dist/outputViewWorkerMain.js +7 -16
- package/package.json +1 -1
|
@@ -1008,7 +1008,7 @@ const WebWorkerRpcClient = {
|
|
|
1008
1008
|
create: create$4
|
|
1009
1009
|
};
|
|
1010
1010
|
|
|
1011
|
-
const toCommandId
|
|
1011
|
+
const toCommandId = key => {
|
|
1012
1012
|
const dotIndex = key.indexOf('.');
|
|
1013
1013
|
return key.slice(dotIndex + 1);
|
|
1014
1014
|
};
|
|
@@ -1080,7 +1080,7 @@ const create$2 = () => {
|
|
|
1080
1080
|
},
|
|
1081
1081
|
getCommandIds() {
|
|
1082
1082
|
const keys = Object.keys(commandMapRef);
|
|
1083
|
-
const ids = keys.map(toCommandId
|
|
1083
|
+
const ids = keys.map(toCommandId);
|
|
1084
1084
|
return ids;
|
|
1085
1085
|
},
|
|
1086
1086
|
registerCommands(commandMap) {
|
|
@@ -1302,7 +1302,7 @@ const filterItems = (items, filterValue) => {
|
|
|
1302
1302
|
};
|
|
1303
1303
|
|
|
1304
1304
|
const isFileNotFoundError = error => {
|
|
1305
|
-
return error
|
|
1305
|
+
return error?.message?.includes('File not found') ?? false;
|
|
1306
1306
|
};
|
|
1307
1307
|
|
|
1308
1308
|
const loadLines = async uri => {
|
|
@@ -1376,7 +1376,8 @@ const {
|
|
|
1376
1376
|
set: set$2,
|
|
1377
1377
|
wrapCommand,
|
|
1378
1378
|
wrapGetter,
|
|
1379
|
-
getKeys
|
|
1379
|
+
getKeys,
|
|
1380
|
+
getCommandIds
|
|
1380
1381
|
} = create$2();
|
|
1381
1382
|
|
|
1382
1383
|
const create = (id, uri, x, y, width, height, platform, parentId) => {
|
|
@@ -1486,18 +1487,6 @@ const focusIndex = (state, index) => {
|
|
|
1486
1487
|
};
|
|
1487
1488
|
};
|
|
1488
1489
|
|
|
1489
|
-
const commandMapRef = {};
|
|
1490
|
-
|
|
1491
|
-
const toCommandId = key => {
|
|
1492
|
-
const dotIndex = key.indexOf('.');
|
|
1493
|
-
return key.slice(dotIndex + 1);
|
|
1494
|
-
};
|
|
1495
|
-
const getCommandIds = () => {
|
|
1496
|
-
const keys = Object.keys(commandMapRef);
|
|
1497
|
-
const ids = keys.map(toCommandId);
|
|
1498
|
-
return ids;
|
|
1499
|
-
};
|
|
1500
|
-
|
|
1501
1490
|
const ToolBar = 'toolbar';
|
|
1502
1491
|
const AriaRoles = {
|
|
1503
1492
|
__proto__: null,
|
|
@@ -2324,6 +2313,8 @@ const commandMap = {
|
|
|
2324
2313
|
'Output.terminate': terminate
|
|
2325
2314
|
};
|
|
2326
2315
|
|
|
2316
|
+
const commandMapRef = {};
|
|
2317
|
+
|
|
2327
2318
|
const listen = async () => {
|
|
2328
2319
|
Object.assign(commandMapRef, commandMap);
|
|
2329
2320
|
const rpc = await WebWorkerRpcClient.create({
|