@lvce-editor/renderer-process 10.28.0 → 10.29.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.
@@ -1909,12 +1909,12 @@ const handlePointerDown$7 = event => {
1909
1909
  }
1910
1910
  return [];
1911
1911
  };
1912
- const returnValue$b = true;
1912
+ const returnValue$a = true;
1913
1913
 
1914
1914
  const ViewletColorPickerEvents = {
1915
1915
  __proto__: null,
1916
1916
  handlePointerDown: handlePointerDown$7,
1917
- returnValue: returnValue$b
1917
+ returnValue: returnValue$a
1918
1918
  };
1919
1919
 
1920
1920
  const setColor = (state, color) => {
@@ -2070,7 +2070,7 @@ forwardViewletCommand('handleClickOpenFile');
2070
2070
  forwardViewletCommand('handleClickRestore');
2071
2071
  const handleClickTab$2 = forwardViewletCommand('handleClickTab');
2072
2072
  forwardViewletCommand('handleClickToggleMaximize');
2073
- const handleContextMenu$d = forwardViewletCommand('handleContextMenu');
2073
+ const handleContextMenu$c = forwardViewletCommand('handleContextMenu');
2074
2074
  const handleDoubleClick = forwardViewletCommand('handleDoubleClick');
2075
2075
  const handleDragEnd$1 = forwardViewletCommand('handleDragEnd');
2076
2076
  const handleDragLeave$1 = forwardViewletCommand('handleDragLeave');
@@ -2080,7 +2080,7 @@ const handleDropFilePath = forwardViewletCommand('handleDropFilePath');
2080
2080
  const handleDropFiles = forwardViewletCommand('handleDrop');
2081
2081
  forwardViewletCommand('handleFilterInput');
2082
2082
  const handleFocus$c = forwardViewletCommand('handleFocus');
2083
- const handleFocusIn$5 = forwardViewletCommand('handleFocusIn');
2083
+ const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
2084
2084
  const handleIconError$1 = forwardViewletCommand('handleIconError');
2085
2085
  const handleImageError$1 = forwardViewletCommand('handleImageError');
2086
2086
  const handleInput$9 = forwardViewletCommand('handleInput');
@@ -2137,10 +2137,10 @@ forwardViewletCommand('type');
2137
2137
  forwardViewletCommand('typeWithAutoClosing');
2138
2138
  const updateEditingValue = forwardViewletCommand('updateEditingValue');
2139
2139
 
2140
- const handleFocusIn$4 = event => {
2140
+ const handleFocusIn$3 = event => {
2141
2141
  preventDefault(event);
2142
2142
  const uid = fromEvent(event);
2143
- handleFocusIn$5(uid);
2143
+ handleFocusIn$4(uid);
2144
2144
  };
2145
2145
  const handleBlur$a = event => {
2146
2146
  preventDefault(event);
@@ -2151,7 +2151,7 @@ const handleBlur$a = event => {
2151
2151
  const ViewletEditorCodeGeneratorEvents = {
2152
2152
  __proto__: null,
2153
2153
  handleBlur: handleBlur$a,
2154
- handleFocusIn: handleFocusIn$4
2154
+ handleFocusIn: handleFocusIn$3
2155
2155
  };
2156
2156
 
2157
2157
  const setBounds$9 = (state, x, y, width, height) => {
@@ -2445,12 +2445,12 @@ const ViewletEditorCompletion = {
2445
2445
  const handleClose = () => {
2446
2446
  return ['closeDetails'];
2447
2447
  };
2448
- const returnValue$a = true;
2448
+ const returnValue$9 = true;
2449
2449
 
2450
2450
  const ViewletEditorCompletionDetailsEvents = {
2451
2451
  __proto__: null,
2452
2452
  handleClose,
2453
- returnValue: returnValue$a
2453
+ returnValue: returnValue$9
2454
2454
  };
2455
2455
 
2456
2456
  const create$I = () => {
@@ -2502,7 +2502,7 @@ const ViewletEditorCompletionDetails = {
2502
2502
 
2503
2503
  const rememberFocus = rememberFocus$1;
2504
2504
 
2505
- const returnValue$9 = true;
2505
+ const returnValue$8 = true;
2506
2506
  const handleSashPointerDown$2 = create$K(event => {
2507
2507
  const {
2508
2508
  clientX,
@@ -2526,7 +2526,7 @@ const handleSashPointerDown$2 = create$K(event => {
2526
2526
  const ViewletEditorHoverEvents = {
2527
2527
  __proto__: null,
2528
2528
  handleSashPointerDown: handleSashPointerDown$2,
2529
- returnValue: returnValue$9
2529
+ returnValue: returnValue$8
2530
2530
  };
2531
2531
 
2532
2532
  const setBounds$6 = (state, x, y, width, height) => {
@@ -2557,10 +2557,10 @@ const ViewletEditorHover = {
2557
2557
  setDom: setDom$9
2558
2558
  };
2559
2559
 
2560
- const handleFocusIn$3 = event => {
2560
+ const handleFocusIn$2 = event => {
2561
2561
  preventDefault(event);
2562
2562
  const uid = fromEvent(event);
2563
- handleFocusIn$5(uid);
2563
+ handleFocusIn$4(uid);
2564
2564
  };
2565
2565
  const handleBlur$9 = event => {
2566
2566
  const uid = fromEvent(event);
@@ -2580,7 +2580,7 @@ const handleInput$8 = event => {
2580
2580
  const ViewletEditorRenameEvents = {
2581
2581
  __proto__: null,
2582
2582
  handleBlur: handleBlur$9,
2583
- handleFocusIn: handleFocusIn$3,
2583
+ handleFocusIn: handleFocusIn$2,
2584
2584
  handleInput: handleInput$8
2585
2585
  };
2586
2586
 
@@ -2609,15 +2609,15 @@ const ViewletEditorRename = {
2609
2609
  setBounds: setBounds$5
2610
2610
  };
2611
2611
 
2612
- const handleFocusIn$2 = event => {
2612
+ const handleFocusIn$1 = event => {
2613
2613
  preventDefault(event);
2614
2614
  const uid = fromEvent(event);
2615
- handleFocusIn$5(uid);
2615
+ handleFocusIn$4(uid);
2616
2616
  };
2617
2617
 
2618
2618
  const ViewletEditorSourceActionsEvents = {
2619
2619
  __proto__: null,
2620
- handleFocusIn: handleFocusIn$2
2620
+ handleFocusIn: handleFocusIn$1
2621
2621
  };
2622
2622
 
2623
2623
  const setBounds$4 = (state, x, y, width, height) => {
@@ -2654,7 +2654,7 @@ const handleInput$7 = event => {
2654
2654
  } = target;
2655
2655
  return ['FindWidget.handleInput', value];
2656
2656
  };
2657
- const handleClickClose$2 = event => {
2657
+ const handleClickClose$1 = event => {
2658
2658
  preventDefault(event);
2659
2659
  return ['FindWidget.close'];
2660
2660
  };
@@ -2711,11 +2711,11 @@ const handleFocusClose = event => {
2711
2711
  const handleFocusReplaceAll = event => {
2712
2712
  return ['FindWidget.handleFocusReplaceAll'];
2713
2713
  };
2714
- const returnValue$8 = true;
2714
+ const returnValue$7 = true;
2715
2715
 
2716
2716
  const ViewletFindWidgetEvents = {
2717
2717
  __proto__: null,
2718
- handleClickClose: handleClickClose$2,
2718
+ handleClickClose: handleClickClose$1,
2719
2719
  handleClickNextMatch,
2720
2720
  handleClickPreviousMatch,
2721
2721
  handleClickReplace,
@@ -2731,7 +2731,7 @@ const ViewletFindWidgetEvents = {
2731
2731
  handleReplaceFocus,
2732
2732
  handleReplaceInput: handleReplaceInput$1,
2733
2733
  handleToggleReplaceFocus,
2734
- returnValue: returnValue$8
2734
+ returnValue: returnValue$7
2735
2735
  };
2736
2736
 
2737
2737
  const create$H = () => {
@@ -2791,11 +2791,11 @@ const setBounds$3 = (state, x, y, width, height) => {
2791
2791
  const dispose$i = state => {
2792
2792
  remove$2(state.$Viewlet);
2793
2793
  };
2794
- const Events$c = ViewletFindWidgetEvents;
2794
+ const Events$d = ViewletFindWidgetEvents;
2795
2795
 
2796
2796
  const ViewletFindWidget = {
2797
2797
  __proto__: null,
2798
- Events: Events$c,
2798
+ Events: Events$d,
2799
2799
  appendWidget,
2800
2800
  create: create$H,
2801
2801
  dispose: dispose$i,
@@ -4855,7 +4855,7 @@ const create$Menu$1 = () => {
4855
4855
  // })
4856
4856
  $Menu.onkeydown = handleKeyDown$4;
4857
4857
  $Menu.addEventListener(FocusOut, handleFocusOut$1);
4858
- $Menu.oncontextmenu = handleContextMenu$c;
4858
+ $Menu.oncontextmenu = handleContextMenu$b;
4859
4859
  // $ContextMenu.onfocus = handleFocus
4860
4860
  // $ContextMenu.onblur = handleBlur
4861
4861
  return $Menu;
@@ -4884,14 +4884,14 @@ const handleBackDropMouseDown = event => {
4884
4884
  stopPropagation(event);
4885
4885
  send(/* Menu.hide */'Menu.hide');
4886
4886
  };
4887
- const handleContextMenu$c = event => {
4887
+ const handleContextMenu$b = event => {
4888
4888
  preventDefault(event);
4889
4889
  };
4890
4890
  const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mouseBlocking = false) => {
4891
4891
  if (mouseBlocking) {
4892
4892
  const $BackDrop = create$BackDrop();
4893
4893
  $BackDrop.onmousedown = handleBackDropMouseDown;
4894
- $BackDrop.oncontextmenu = handleContextMenu$c;
4894
+ $BackDrop.oncontextmenu = handleContextMenu$b;
4895
4895
  // @ts-expect-error
4896
4896
  state$1.$BackDrop = $BackDrop;
4897
4897
  append$1($BackDrop);
@@ -5936,6 +5936,21 @@ const focus$g = viewletId => {
5936
5936
  instance.factory.focus(instance.state);
5937
5937
  } else ;
5938
5938
  };
5939
+ const focusElementByName = (viewletId, name) => {
5940
+ const selector = `[name="${name}"]`;
5941
+ const instance = state$6.instances[viewletId];
5942
+ if (!instance) {
5943
+ return;
5944
+ }
5945
+ const {
5946
+ $Viewlet
5947
+ } = instance.state;
5948
+ const $Element = $Viewlet.querySelector(selector);
5949
+ if (!$Element) {
5950
+ return;
5951
+ }
5952
+ $Element.focus();
5953
+ };
5939
5954
  const focusSelector = (viewletId, selector) => {
5940
5955
  const instance = state$6.instances[viewletId];
5941
5956
  if (!instance) {
@@ -6103,6 +6118,12 @@ const sendMultiple = commands => {
6103
6118
  case 'Viewlet.focusSelector':
6104
6119
  // @ts-ignore
6105
6120
  return focusSelector(viewletId, method, ...args);
6121
+ case 'Viewlet.focusSelector':
6122
+ // @ts-ignore
6123
+ return focusSelector(viewletId, method, ...args);
6124
+ case 'Viewlet.focusElementByName':
6125
+ // @ts-ignore
6126
+ return focusElementByName(viewletId, method, ...args);
6106
6127
  default:
6107
6128
  {
6108
6129
  invoke(viewletId, method, ...args);
@@ -6264,6 +6285,8 @@ const getFn = command => {
6264
6285
  return setDom$7;
6265
6286
  case 'Viewlet.createFunctionalRoot':
6266
6287
  return createFunctionalRoot;
6288
+ case 'Viewlet.focusElementByName':
6289
+ return focusElementByName;
6267
6290
  default:
6268
6291
  throw new Error(`unknown command ${command}`);
6269
6292
  }
@@ -6301,17 +6324,18 @@ const Commands$9 = {
6301
6324
  dispose: dispose$e,
6302
6325
  executeCommands: executeCommands,
6303
6326
  focus: focus$g,
6327
+ focusElementByName: focusElementByName,
6304
6328
  focusSelector: focusSelector,
6305
6329
  handleError: handleError$6,
6306
6330
  invoke: invoke,
6307
6331
  loadModule: loadModule,
6308
6332
  refresh: refresh$4,
6333
+ registerEventListeners: registerEventListeners,
6309
6334
  removeKeyBindings: removeKeyBindings,
6310
6335
  send: invoke,
6311
6336
  sendMultiple: sendMultiple,
6312
6337
  setBounds: setBounds$2,
6313
- show: show,
6314
- registerEventListeners: registerEventListeners
6338
+ show: show
6315
6339
  };
6316
6340
 
6317
6341
  const Viewlet_ipc = {
@@ -6678,7 +6702,7 @@ const handleFocus$a = () => {
6678
6702
 
6679
6703
  // TODO use context menu events function again
6680
6704
 
6681
- const handleContextMenu$b = event => {
6705
+ const handleContextMenu$a = event => {
6682
6706
  preventDefault(event);
6683
6707
  const {
6684
6708
  button,
@@ -6687,22 +6711,22 @@ const handleContextMenu$b = event => {
6687
6711
  } = event;
6688
6712
  return ['handleContextMenu', button, clientX, clientY];
6689
6713
  };
6690
- const returnValue$7 = true;
6714
+ const returnValue$6 = true;
6691
6715
 
6692
6716
  const ViewletActivityBarEvents = {
6693
6717
  __proto__: null,
6694
6718
  handleBlur: handleBlur$8,
6695
- handleContextMenu: handleContextMenu$b,
6719
+ handleContextMenu: handleContextMenu$a,
6696
6720
  handleFocus: handleFocus$a,
6697
6721
  handleMouseDown: handleMouseDown$2,
6698
- returnValue: returnValue$7
6722
+ returnValue: returnValue$6
6699
6723
  };
6700
6724
 
6701
- const Events$b = ViewletActivityBarEvents;
6725
+ const Events$c = ViewletActivityBarEvents;
6702
6726
 
6703
6727
  const ViewletActivityBar = {
6704
6728
  __proto__: null,
6705
- Events: Events$b
6729
+ Events: Events$c
6706
6730
  };
6707
6731
 
6708
6732
  const handleAudioError = event => {
@@ -6725,11 +6749,11 @@ const ViewletAudioEvents = {
6725
6749
  handleAudioError
6726
6750
  };
6727
6751
 
6728
- const Events$a = ViewletAudioEvents;
6752
+ const Events$b = ViewletAudioEvents;
6729
6753
 
6730
6754
  const ViewletAudio = {
6731
6755
  __proto__: null,
6732
- Events: Events$a
6756
+ Events: Events$b
6733
6757
  };
6734
6758
 
6735
6759
  const create$v = () => {
@@ -7139,7 +7163,7 @@ const handleWheel$2 = event => {
7139
7163
  *
7140
7164
  * @param {MouseEvent} event
7141
7165
  */
7142
- const handleContextMenu$a = event => {
7166
+ const handleContextMenu$9 = event => {
7143
7167
  preventDefault(event);
7144
7168
  const {
7145
7169
  button,
@@ -7147,7 +7171,7 @@ const handleContextMenu$a = event => {
7147
7171
  clientY
7148
7172
  } = event;
7149
7173
  const uid = fromEvent(event);
7150
- handleContextMenu$d(uid, button, clientX, clientY);
7174
+ handleContextMenu$c(uid, button, clientX, clientY);
7151
7175
  };
7152
7176
  const handleError$5 = event => {
7153
7177
  const uid = fromEvent(event);
@@ -7172,7 +7196,7 @@ const attachEvents$8 = state => {
7172
7196
  attachEvents$c($Viewlet, {
7173
7197
  [PointerDown]: handlePointerDown$5,
7174
7198
  [PointerUp]: handlePointerUp,
7175
- [ContextMenu]: handleContextMenu$a,
7199
+ [ContextMenu]: handleContextMenu$9,
7176
7200
  [FocusIn]: handleFocus$8
7177
7201
  });
7178
7202
  $Viewlet.addEventListener(Error$3, handleError$5, Capture);
@@ -7538,7 +7562,7 @@ const handleScrollBarContextMenu = event => {
7538
7562
  preventDefault(event);
7539
7563
  stopPropagation(event);
7540
7564
  };
7541
- const handleContextMenu$9 = event => {
7565
+ const handleContextMenu$8 = event => {
7542
7566
  preventDefault(event);
7543
7567
  const {
7544
7568
  button,
@@ -7694,7 +7718,7 @@ const create$n = () => {
7694
7718
  $Editor.role = Code;
7695
7719
  $Editor.append($LayerGutter, $EditorContent);
7696
7720
  attachEventsFunctional($Editor, {
7697
- [ContextMenu]: handleContextMenu$9,
7721
+ [ContextMenu]: handleContextMenu$8,
7698
7722
  [Wheel]: handleWheel$1,
7699
7723
  returnValue: true
7700
7724
  });
@@ -7899,7 +7923,7 @@ const ViewletError = {
7899
7923
  setMessage: setMessage$2
7900
7924
  };
7901
7925
 
7902
- const handleContextMenu$8 = event => {
7926
+ const handleContextMenu$7 = event => {
7903
7927
  preventDefault(event);
7904
7928
  const {
7905
7929
  button,
@@ -7907,7 +7931,7 @@ const handleContextMenu$8 = event => {
7907
7931
  clientY
7908
7932
  } = event;
7909
7933
  const uid = fromEvent(event);
7910
- handleContextMenu$d(uid, button, clientX, clientY);
7934
+ handleContextMenu$c(uid, button, clientX, clientY);
7911
7935
  };
7912
7936
 
7913
7937
  const CopyMove = 'copyMove';
@@ -8098,7 +8122,7 @@ const ViewletExplorerEvents = {
8098
8122
  handleBlur: handleBlur$5,
8099
8123
  handleClick: handleClick$5,
8100
8124
  handleClickOpenFolder,
8101
- handleContextMenu: handleContextMenu$8,
8125
+ handleContextMenu: handleContextMenu$7,
8102
8126
  handleDragEnd,
8103
8127
  handleDragLeave,
8104
8128
  handleDragOver,
@@ -8122,7 +8146,7 @@ const create$i = () => {
8122
8146
  $Viewlet
8123
8147
  };
8124
8148
  };
8125
- const Events$9 = ViewletExplorerEvents;
8149
+ const Events$a = ViewletExplorerEvents;
8126
8150
  const handleError$3 = (state, message) => {
8127
8151
  object(state);
8128
8152
  string(message);
@@ -8169,7 +8193,7 @@ const setDom$2 = (state, dom) => {
8169
8193
 
8170
8194
  const ViewletExplorer = {
8171
8195
  __proto__: null,
8172
- Events: Events$9,
8196
+ Events: Events$a,
8173
8197
  create: create$i,
8174
8198
  dispose: dispose$9,
8175
8199
  focusInput,
@@ -8213,11 +8237,11 @@ const ViewletExtensionDetailEvents = {
8213
8237
  handleReadmeContextMenu
8214
8238
  };
8215
8239
 
8216
- const Events$8 = ViewletExtensionDetailEvents;
8240
+ const Events$9 = ViewletExtensionDetailEvents;
8217
8241
 
8218
8242
  const ViewletExtensionDetail = {
8219
8243
  __proto__: null,
8220
- Events: Events$8,
8244
+ Events: Events$9,
8221
8245
  setSize
8222
8246
  };
8223
8247
 
@@ -8363,7 +8387,7 @@ const attachEvents$7 = state => {
8363
8387
  // @ts-expect-error
8364
8388
  $ExtensionHeader.addEventListener(Click, undefined);
8365
8389
  attachEvents$c($ListItems, {
8366
- [ContextMenu]: handleContextMenu$8,
8390
+ [ContextMenu]: handleContextMenu$7,
8367
8391
  [PointerDown]: handlePointerDown$3,
8368
8392
  [Focus]: handleFocus$5,
8369
8393
  [Scroll]: handleScroll
@@ -8497,7 +8521,7 @@ const ViewletLocationsEvents = {
8497
8521
  handleLocationsMouseDown
8498
8522
  };
8499
8523
 
8500
- const Events$7 = ViewletLocationsEvents;
8524
+ const Events$8 = ViewletLocationsEvents;
8501
8525
  const setFocusedIndex$3 = (state, oldFocusedIndex, newFocusedIndex) => {
8502
8526
  const {
8503
8527
  $Viewlet
@@ -8532,7 +8556,7 @@ const focus$b = state => {
8532
8556
 
8533
8557
  const ViewletImplementations = {
8534
8558
  __proto__: null,
8535
- Events: Events$7,
8559
+ Events: Events$8,
8536
8560
  focus: focus$b,
8537
8561
  handleError: handleError$1,
8538
8562
  setFocusedIndex: setFocusedIndex$3
@@ -8614,7 +8638,7 @@ const handlePointerDown$2 = event => {
8614
8638
 
8615
8639
  const ViewletkeyBindingsEvents = {
8616
8640
  __proto__: null,
8617
- handleContextMenu: handleContextMenu$8,
8641
+ handleContextMenu: handleContextMenu$7,
8618
8642
  handleInput: handleInput$4,
8619
8643
  handlePointerDown: handlePointerDown$2,
8620
8644
  handleResizerPointerDown,
@@ -8643,11 +8667,11 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
8643
8667
  $Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
8644
8668
  $Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
8645
8669
  };
8646
- const Events$6 = ViewletkeyBindingsEvents;
8670
+ const Events$7 = ViewletkeyBindingsEvents;
8647
8671
 
8648
8672
  const ViewletKeyBindings = {
8649
8673
  __proto__: null,
8650
- Events: Events$6,
8674
+ Events: Events$7,
8651
8675
  setColumnWidths,
8652
8676
  setScrollBar: setScrollBar$2,
8653
8677
  setSize,
@@ -9204,7 +9228,7 @@ const ViewletLayout = {
9204
9228
  setSashes
9205
9229
  };
9206
9230
 
9207
- const handleContextMenu$7 = event => {
9231
+ const handleContextMenu$6 = event => {
9208
9232
  if (event.defaultPrevented) {
9209
9233
  return;
9210
9234
  }
@@ -9214,7 +9238,7 @@ const handleContextMenu$7 = event => {
9214
9238
  clientY
9215
9239
  } = event;
9216
9240
  const uid = fromEvent(event);
9217
- handleContextMenu$d(uid, clientX, clientY);
9241
+ handleContextMenu$c(uid, clientX, clientY);
9218
9242
  };
9219
9243
 
9220
9244
  // TODO Main should not be bound to Editor -> Lazy load Editor
@@ -9248,7 +9272,7 @@ const attachEvents$5 = state => {
9248
9272
  [DragOver]: handleDragOver,
9249
9273
  [DragEnd]: handleDragEnd,
9250
9274
  [DragLeave]: handleDragLeave,
9251
- [ContextMenu]: handleContextMenu$7
9275
+ [ContextMenu]: handleContextMenu$6
9252
9276
  });
9253
9277
  };
9254
9278
  const dispose$7 = state => {};
@@ -9469,7 +9493,7 @@ const ViewletOutput = {
9469
9493
  setText
9470
9494
  };
9471
9495
 
9472
- const handleClickClose$1 = event => {
9496
+ const handleClickClose = event => {
9473
9497
  const uid = fromEvent(event);
9474
9498
  hidePanel(uid);
9475
9499
  };
@@ -9564,7 +9588,7 @@ const attachEvents$3 = state => {
9564
9588
  [Click]: handleClickMaximize
9565
9589
  });
9566
9590
  attachEvents$c($ButtonClose, {
9567
- [Click]: handleClickClose$1
9591
+ [Click]: handleClickClose
9568
9592
  });
9569
9593
  };
9570
9594
  const setTabsDom$1 = (state, dom) => {
@@ -9642,7 +9666,7 @@ const handlePointerDown$1 = event => {
9642
9666
  } = event;
9643
9667
  return ['handleClickAt', clientX, clientY];
9644
9668
  };
9645
- const handleContextMenu$6 = event => {
9669
+ const handleContextMenu$5 = event => {
9646
9670
  preventDefault(event);
9647
9671
  const {
9648
9672
  clientX,
@@ -9662,15 +9686,15 @@ const handleFilterInput = event => {
9662
9686
  const handleClearFilterClick = event => {
9663
9687
  return ['clearFilter'];
9664
9688
  };
9665
- const returnValue$6 = true;
9689
+ const returnValue$5 = true;
9666
9690
 
9667
9691
  const ViewletProblemsEvents = {
9668
9692
  __proto__: null,
9669
9693
  handleClearFilterClick,
9670
- handleContextMenu: handleContextMenu$6,
9694
+ handleContextMenu: handleContextMenu$5,
9671
9695
  handleFilterInput,
9672
9696
  handlePointerDown: handlePointerDown$1,
9673
- returnValue: returnValue$6
9697
+ returnValue: returnValue$5
9674
9698
  };
9675
9699
 
9676
9700
  const setFocusedIndex$2 = (state, focusedIndex) => {
@@ -9978,7 +10002,7 @@ const ViewletQuickPick = {
9978
10002
 
9979
10003
  const ViewletReferences = {
9980
10004
  __proto__: null,
9981
- Events: Events$7,
10005
+ Events: Events$8,
9982
10006
  focus: focus$b,
9983
10007
  handleError: handleError$1,
9984
10008
  setFocusedIndex: setFocusedIndex$3
@@ -10294,7 +10318,7 @@ const handleHeaderFocusIn = event => {
10294
10318
  }
10295
10319
  return ['handleFocusIn', key];
10296
10320
  };
10297
- const handleContextMenu$5 = event => {
10321
+ const handleContextMenu$4 = event => {
10298
10322
  preventDefault(event);
10299
10323
  const {
10300
10324
  button,
@@ -10310,12 +10334,12 @@ const handleWheel = event => {
10310
10334
  } = event;
10311
10335
  return ['handleWheel', deltaMode, deltaY];
10312
10336
  };
10313
- const returnValue$5 = true;
10337
+ const returnValue$4 = true;
10314
10338
 
10315
10339
  const ViewletSearchEvents = {
10316
10340
  __proto__: null,
10317
10341
  handleClick: handleClick$4,
10318
- handleContextMenu: handleContextMenu$5,
10342
+ handleContextMenu: handleContextMenu$4,
10319
10343
  handleExcludeInput,
10320
10344
  handleFocus: handleFocus$2,
10321
10345
  handleHeaderClick: handleHeaderClick$1,
@@ -10331,7 +10355,7 @@ const ViewletSearchEvents = {
10331
10355
  handleSharedInput,
10332
10356
  handleToggleButtonClick,
10333
10357
  handleWheel,
10334
- returnValue: returnValue$5
10358
+ returnValue: returnValue$4
10335
10359
  };
10336
10360
 
10337
10361
  const focus$5 = state => {
@@ -10364,11 +10388,11 @@ const setFocus = (state, selector) => {
10364
10388
  }
10365
10389
  };
10366
10390
  const dispose$3 = () => {};
10367
- const Events$5 = ViewletSearchEvents;
10391
+ const Events$6 = ViewletSearchEvents;
10368
10392
 
10369
10393
  const ViewletSearch = {
10370
10394
  __proto__: null,
10371
- Events: Events$5,
10395
+ Events: Events$6,
10372
10396
  dispose: dispose$3,
10373
10397
  focus: focus$5,
10374
10398
  setFocus,
@@ -10620,7 +10644,7 @@ const handleInput = event => {
10620
10644
  const ViewletSourceControlEvents = {
10621
10645
  __proto__: null,
10622
10646
  handleClick: handleClick$3,
10623
- handleContextMenu: handleContextMenu$8,
10647
+ handleContextMenu: handleContextMenu$7,
10624
10648
  handleFocus,
10625
10649
  handleInput,
10626
10650
  handleMouseOut,
@@ -10699,11 +10723,11 @@ const ViewletStorageEvents = {
10699
10723
  handleClick: handleClick$1
10700
10724
  };
10701
10725
 
10702
- const Events$4 = ViewletStorageEvents;
10726
+ const Events$5 = ViewletStorageEvents;
10703
10727
 
10704
10728
  const ViewletStorage = {
10705
10729
  __proto__: null,
10706
- Events: Events$4
10730
+ Events: Events$5
10707
10731
  };
10708
10732
 
10709
10733
  const isUint8Array = value => {
@@ -10946,7 +10970,7 @@ const ViewletTerminals = {
10946
10970
  setTabsDom
10947
10971
  };
10948
10972
 
10949
- const handleContextMenu$4 = event => {
10973
+ const handleContextMenu$3 = event => {
10950
10974
  preventDefault(event);
10951
10975
  const {
10952
10976
  button,
@@ -10974,7 +10998,7 @@ const attachEvents = state => {
10974
10998
  $Viewlet
10975
10999
  } = state;
10976
11000
  attachEvents$c($Viewlet, {
10977
- [ContextMenu]: handleContextMenu$4
11001
+ [ContextMenu]: handleContextMenu$3
10978
11002
  });
10979
11003
  };
10980
11004
  const activeClassName = 'TitleBarActive';
@@ -11006,26 +11030,26 @@ const handleTitleBarButtonsClick = event => {
11006
11030
  } = event;
11007
11031
  return ['handleClick', target.className];
11008
11032
  };
11009
- const returnValue$4 = true;
11033
+ const returnValue$3 = true;
11010
11034
 
11011
11035
  const ViewletTitleBarButtonEvents = {
11012
11036
  __proto__: null,
11013
11037
  handleTitleBarButtonsClick,
11014
- returnValue: returnValue$4
11038
+ returnValue: returnValue$3
11015
11039
  };
11016
11040
 
11017
- const Events$3 = ViewletTitleBarButtonEvents;
11041
+ const Events$4 = ViewletTitleBarButtonEvents;
11018
11042
 
11019
11043
  const ViewletTitleBarButtons = {
11020
11044
  __proto__: null,
11021
- Events: Events$3
11045
+ Events: Events$4
11022
11046
  };
11023
11047
 
11024
- const Events$2 = {};
11048
+ const Events$3 = {};
11025
11049
 
11026
11050
  const ViewletTitleBarIcon = {
11027
11051
  __proto__: null,
11028
- Events: Events$2
11052
+ Events: Events$3
11029
11053
  };
11030
11054
 
11031
11055
  const isInsideTitleBarMenu = $Element => {
@@ -11108,7 +11132,7 @@ const handleMenuClick = event => {
11108
11132
  const uid = fromEvent(event);
11109
11133
  handleMenuClick$1(uid, level, index);
11110
11134
  };
11111
- const handleFocusIn$1 = event => {
11135
+ const handleFocusIn = event => {
11112
11136
  const uid = fromEvent(event);
11113
11137
  handleFocus$c(uid);
11114
11138
  };
@@ -11116,7 +11140,7 @@ const handleFocusIn$1 = event => {
11116
11140
  const ViewletTitleBarMenuBarEvents = {
11117
11141
  __proto__: null,
11118
11142
  handleClick,
11119
- handleFocusIn: handleFocusIn$1,
11143
+ handleFocusIn,
11120
11144
  handleFocusOut,
11121
11145
  handleMenuClick,
11122
11146
  handleMenuMouseOver,
@@ -11357,11 +11381,11 @@ const setMenus = (state, changes, uid) => {
11357
11381
  }
11358
11382
  }
11359
11383
  };
11360
- const Events$1 = ViewletTitleBarMenuBarEvents;
11384
+ const Events$2 = ViewletTitleBarMenuBarEvents;
11361
11385
 
11362
11386
  const ViewletTitleBarMenuBar = {
11363
11387
  __proto__: null,
11364
- Events: Events$1,
11388
+ Events: Events$2,
11365
11389
  closeMenu,
11366
11390
  dispose,
11367
11391
  focus,
@@ -11393,11 +11417,11 @@ const ViewletVideoEvents = {
11393
11417
  handleVideoError
11394
11418
  };
11395
11419
 
11396
- const Events = ViewletVideoEvents;
11420
+ const Events$1 = ViewletVideoEvents;
11397
11421
 
11398
11422
  const ViewletVideo = {
11399
11423
  __proto__: null,
11400
- Events
11424
+ Events: Events$1
11401
11425
  };
11402
11426
 
11403
11427
  const create$2 = () => {
@@ -11420,34 +11444,6 @@ const ViewletTitleBarTitle = {
11420
11444
  setDom
11421
11445
  };
11422
11446
 
11423
- const handleClickOk = event => {
11424
- return ['handleClickOk'];
11425
- };
11426
- const handleClickClose = event => {
11427
- return ['handleClickClose'];
11428
- };
11429
- const handleClickCopy = event => {
11430
- return ['handleClickCopy'];
11431
- };
11432
- const handleFocusIn = event => {
11433
- return ['handleFocusIn'];
11434
- };
11435
- const handleContextMenu$3 = event => {
11436
- preventDefault(event);
11437
- return [];
11438
- };
11439
- const returnValue$3 = true;
11440
-
11441
- const ViewletAboutEvents = {
11442
- __proto__: null,
11443
- handleClickClose,
11444
- handleClickCopy,
11445
- handleClickOk,
11446
- handleContextMenu: handleContextMenu$3,
11447
- handleFocusIn,
11448
- returnValue: returnValue$3
11449
- };
11450
-
11451
11447
  const setFocused = (state, selector) => {
11452
11448
  if (selector === true) {
11453
11449
  selector = 'button';
@@ -11461,10 +11457,11 @@ const setFocused = (state, selector) => {
11461
11457
  const $Focusable = $Viewlet.querySelector(selector);
11462
11458
  $Focusable.focus();
11463
11459
  };
11460
+ const Events = {};
11464
11461
 
11465
11462
  const ViewletAbout = {
11466
11463
  __proto__: null,
11467
- Events: ViewletAboutEvents,
11464
+ Events,
11468
11465
  setFocused
11469
11466
  };
11470
11467
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.28.0",
3
+ "version": "10.29.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",