@lvce-editor/renderer-process 15.3.0 → 15.4.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/rendererProcessMain.js +19 -9
- package/package.json +1 -2
|
@@ -2037,7 +2037,8 @@ const splitLines = lines => {
|
|
|
2037
2037
|
return lines.split(NewLine);
|
|
2038
2038
|
};
|
|
2039
2039
|
const getCurrentStack = () => {
|
|
2040
|
-
const
|
|
2040
|
+
const stackLinesToSkip = 3;
|
|
2041
|
+
const currentStack = joinLines(splitLines(new Error().stack || '').slice(stackLinesToSkip));
|
|
2041
2042
|
return currentStack;
|
|
2042
2043
|
};
|
|
2043
2044
|
const getNewLineIndex = (string, startIndex = undefined) => {
|
|
@@ -2308,6 +2309,12 @@ const invokeAndTransfer$1 = (ipc, method, ...params) => {
|
|
|
2308
2309
|
return invokeHelper(ipc, method, params, true);
|
|
2309
2310
|
};
|
|
2310
2311
|
|
|
2312
|
+
class CommandNotFoundError extends Error {
|
|
2313
|
+
constructor(command) {
|
|
2314
|
+
super(`Command not found ${command}`);
|
|
2315
|
+
this.name = 'CommandNotFoundError';
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2311
2318
|
const commands = Object.create(null);
|
|
2312
2319
|
const register = commandMap => {
|
|
2313
2320
|
Object.assign(commands, commandMap);
|
|
@@ -2318,7 +2325,7 @@ const getCommand = key => {
|
|
|
2318
2325
|
const execute = (command, ...args) => {
|
|
2319
2326
|
const fn = getCommand(command);
|
|
2320
2327
|
if (!fn) {
|
|
2321
|
-
throw new
|
|
2328
|
+
throw new CommandNotFoundError(command);
|
|
2322
2329
|
}
|
|
2323
2330
|
return fn(...args);
|
|
2324
2331
|
};
|
|
@@ -2375,7 +2382,7 @@ const unhandleIpc = ipc => {
|
|
|
2375
2382
|
ipc.onmessage = null;
|
|
2376
2383
|
}
|
|
2377
2384
|
};
|
|
2378
|
-
const create$
|
|
2385
|
+
const create$g$1 = async ({
|
|
2379
2386
|
commandMap,
|
|
2380
2387
|
window
|
|
2381
2388
|
}) => {
|
|
@@ -2388,12 +2395,12 @@ const create$f$1 = async ({
|
|
|
2388
2395
|
};
|
|
2389
2396
|
const ElectronWindowRpcClient = {
|
|
2390
2397
|
__proto__: null,
|
|
2391
|
-
create: create$
|
|
2398
|
+
create: create$g$1
|
|
2392
2399
|
};
|
|
2393
2400
|
const isWorker = value => {
|
|
2394
2401
|
return value instanceof Worker;
|
|
2395
2402
|
};
|
|
2396
|
-
const create$
|
|
2403
|
+
const create$c$1 = async ({
|
|
2397
2404
|
commandMap,
|
|
2398
2405
|
url,
|
|
2399
2406
|
name
|
|
@@ -2414,9 +2421,9 @@ const create$b$1 = async ({
|
|
|
2414
2421
|
};
|
|
2415
2422
|
const ModuleWorkerRpcParent = {
|
|
2416
2423
|
__proto__: null,
|
|
2417
|
-
create: create$
|
|
2424
|
+
create: create$c$1
|
|
2418
2425
|
};
|
|
2419
|
-
const create$
|
|
2426
|
+
const create$b$1 = async ({
|
|
2420
2427
|
commandMap,
|
|
2421
2428
|
url,
|
|
2422
2429
|
port,
|
|
@@ -2440,7 +2447,7 @@ const create$a$1 = async ({
|
|
|
2440
2447
|
};
|
|
2441
2448
|
const ModuleWorkerWithMessagePortRpcParent = {
|
|
2442
2449
|
__proto__: null,
|
|
2443
|
-
create: create$
|
|
2450
|
+
create: create$b$1
|
|
2444
2451
|
};
|
|
2445
2452
|
const create$5$1 = async ({
|
|
2446
2453
|
commandMap,
|
|
@@ -7683,7 +7690,10 @@ const setActionsDom$1 = (state, actions, childUid) => {
|
|
|
7683
7690
|
}
|
|
7684
7691
|
const eventMap = instance.factory.EventMap;
|
|
7685
7692
|
setComponentUid($PanelActions, childUid);
|
|
7686
|
-
|
|
7693
|
+
const $New = document.createElement('div');
|
|
7694
|
+
const $NewActions = rememberFocus($New, actions, eventMap, childUid);
|
|
7695
|
+
$PanelActions.replaceChildren();
|
|
7696
|
+
$PanelActions.append($NewActions);
|
|
7687
7697
|
};
|
|
7688
7698
|
|
|
7689
7699
|
const ViewletPanel = {
|