@lvce-editor/renderer-process 15.3.0 → 15.5.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.
@@ -933,7 +933,7 @@ const getActiveElementInside = $Viewlet => {
933
933
  return $ActiveElement;
934
934
  };
935
935
  const queryInputs = $Viewlet => {
936
- return [...$Viewlet.querySelectorAll('input, textarea')];
936
+ return [...$Viewlet.querySelectorAll('input, textarea, select')];
937
937
  };
938
938
  const clearNode = $Node => {
939
939
  $Node.textContent = '';
@@ -2037,7 +2037,8 @@ const splitLines = lines => {
2037
2037
  return lines.split(NewLine);
2038
2038
  };
2039
2039
  const getCurrentStack = () => {
2040
- const currentStack = joinLines(splitLines(new Error().stack || '').slice(2));
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 Error(`command not found ${command}`);
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$f$1 = async ({
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$f$1
2398
+ create: create$g$1
2392
2399
  };
2393
2400
  const isWorker = value => {
2394
2401
  return value instanceof Worker;
2395
2402
  };
2396
- const create$b$1 = async ({
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$b$1
2424
+ create: create$c$1
2418
2425
  };
2419
- const create$a$1 = async ({
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$a$1
2450
+ create: create$b$1
2444
2451
  };
2445
2452
  const create$5$1 = async ({
2446
2453
  commandMap,
@@ -7683,7 +7690,8 @@ const setActionsDom$1 = (state, actions, childUid) => {
7683
7690
  }
7684
7691
  const eventMap = instance.factory.EventMap;
7685
7692
  setComponentUid($PanelActions, childUid);
7686
- rememberFocus($PanelActions, actions, eventMap, childUid);
7693
+ const $NewActions = rememberFocus($PanelActions, actions, eventMap, childUid);
7694
+ state.$PanelActions = $NewActions;
7687
7695
  };
7688
7696
 
7689
7697
  const ViewletPanel = {
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "15.3.0",
4
- "description": "",
3
+ "version": "15.5.0",
5
4
  "keywords": [
6
5
  "lvce-editor",
7
6
  "renderer-process"