@lvce-editor/renderer-process 11.1.0 → 11.2.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.
@@ -10302,6 +10302,9 @@ const focus$1 = viewletId => {
10302
10302
  } else ;
10303
10303
  };
10304
10304
  const focusElementByName = (viewletId, name) => {
10305
+ if (!name) {
10306
+ return;
10307
+ }
10305
10308
  const selector = `[name="${name}"]`;
10306
10309
  const instance = state$6.instances[viewletId];
10307
10310
  if (!instance) {
@@ -10516,18 +10519,23 @@ const sendMultiple = commands => {
10516
10519
  break;
10517
10520
  case 'Viewlet.focusSelector':
10518
10521
  // @ts-ignore
10519
- return focusSelector(viewletId, method, ...args);
10522
+ focusSelector(viewletId, method, ...args);
10523
+ break;
10520
10524
  case 'Viewlet.focusSelector':
10521
10525
  // @ts-ignore
10522
- return focusSelector(viewletId, method, ...args);
10526
+ focusSelector(viewletId, method, ...args);
10527
+ break;
10523
10528
  case 'Viewlet.focusElementByName':
10524
10529
  // @ts-ignore
10525
- return focusElementByName(viewletId, method, ...args);
10530
+ focusElementByName(viewletId, method, ...args);
10531
+ break;
10526
10532
  case 'Viewlet.setValueByName':
10527
10533
  // @ts-ignore
10528
- return setValueByName(viewletId, method, ...args);
10534
+ setValueByName(viewletId, method, ...args);
10535
+ break;
10529
10536
  case 'Viewlet.registerEventListeners':
10530
- return registerEventListeners(viewletId, method, ...args);
10537
+ registerEventListeners(viewletId, method, ...args);
10538
+ break;
10531
10539
  default:
10532
10540
  {
10533
10541
  invoke(viewletId, method, ...args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "11.1.0",
3
+ "version": "11.2.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",