@lvce-editor/renderer-process 10.52.0 → 10.54.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.
@@ -1383,7 +1383,12 @@ var getElementTag = type => {
1383
1383
  };
1384
1384
 
1385
1385
  // src/parts/GetEventListenerOptions/GetEventListenerOptions.ts
1386
- var getEventListenerOptions$1 = eventName => {
1386
+ var getEventListenerOptions$1 = (eventName, value) => {
1387
+ if (value.passive) {
1388
+ return {
1389
+ passive: true
1390
+ };
1391
+ }
1387
1392
  switch (eventName) {
1388
1393
  case "wheel":
1389
1394
  return {
@@ -1479,9 +1484,19 @@ var getWrappedListener$1 = (listener, returnValue) => {
1479
1484
  };
1480
1485
 
1481
1486
  // src/parts/AttachEvent/AttachEvent.ts
1487
+ var getOptions = fn => {
1488
+ if (fn.passive) {
1489
+ return {
1490
+ passive: true
1491
+ };
1492
+ }
1493
+ return undefined;
1494
+ };
1482
1495
  var attachEvent$1 = ($Node, eventMap, key, value, newEventMap) => {
1483
1496
  if (newEventMap && newEventMap[value]) {
1484
- $Node.addEventListener(key, newEventMap[value]);
1497
+ const fn = newEventMap[value];
1498
+ const options2 = getOptions(fn);
1499
+ $Node.addEventListener(key, newEventMap[value], options2);
1485
1500
  return;
1486
1501
  }
1487
1502
  const listener = eventMap[value];
@@ -1489,7 +1504,7 @@ var attachEvent$1 = ($Node, eventMap, key, value, newEventMap) => {
1489
1504
  console.warn("listener not found", value);
1490
1505
  return;
1491
1506
  }
1492
- const options = getEventListenerOptions$1(key);
1507
+ const options = getEventListenerOptions$1(key, value);
1493
1508
  const wrapped = getWrappedListener$1(listener, eventMap.returnValue);
1494
1509
  $Node.addEventListener(key, wrapped, options);
1495
1510
  };
@@ -1687,8 +1702,12 @@ var getEventListenerArg = (param, event) => {
1687
1702
  switch (param) {
1688
1703
  case "event.clientX":
1689
1704
  return event.clientX;
1705
+ case "event.x":
1706
+ return event.x;
1690
1707
  case "event.clientY":
1691
1708
  return event.clientY;
1709
+ case "event.y":
1710
+ return event.y;
1692
1711
  case "event.button":
1693
1712
  return event.button;
1694
1713
  case "event.target.value":
@@ -1703,6 +1722,24 @@ var getEventListenerArg = (param, event) => {
1703
1722
  return event.deltaY;
1704
1723
  case "event.detail":
1705
1724
  return event.detail;
1725
+ case "event.target.name":
1726
+ return event.target.name;
1727
+ case "event.target.href":
1728
+ return event.target.href;
1729
+ case "event.target.src":
1730
+ return event.target.src;
1731
+ case "event.altKey":
1732
+ return event.altKey;
1733
+ case "event.key":
1734
+ return event.key;
1735
+ case "event.ctrlKey":
1736
+ return event.ctrlKey;
1737
+ case "event.shiftKey":
1738
+ return event.shiftKey;
1739
+ case "event.inputType":
1740
+ return event.inputType;
1741
+ case "event.data":
1742
+ return event.data;
1706
1743
  default:
1707
1744
  return param;
1708
1745
  }
@@ -1732,6 +1769,9 @@ var createFn = info => {
1732
1769
  ipc.send("Viewlet.executeViewletCommand", uid, ...args);
1733
1770
  };
1734
1771
  nameAnonymousFunction$1(fn, info.name);
1772
+ if (info.passive) {
1773
+ fn.passive = true;
1774
+ }
1735
1775
  return fn;
1736
1776
  };
1737
1777
 
@@ -1877,8 +1917,6 @@ const setHeight = ($Element, height) => {
1877
1917
 
1878
1918
  // TODO this file is not needed when all elements are position fixed
1879
1919
  const state$7 = {
1880
- isInDom: false,
1881
- $PreviousFocusElement: undefined,
1882
1920
  widgetSet: new Set(),
1883
1921
  $Widgets: undefined
1884
1922
  };
@@ -2175,7 +2213,7 @@ const handleBeforeInput$2 = forwardViewletCommand('handleBeforeInput');
2175
2213
  forwardViewletCommand('handleBeforeInputFromContentEditable');
2176
2214
  const handleBlur$b = forwardViewletCommand('handleBlur');
2177
2215
  const handleButtonClick = forwardViewletCommand('handleButtonClick');
2178
- const handleClick$8 = forwardViewletCommand('handleClick');
2216
+ const handleClick$7 = forwardViewletCommand('handleClick');
2179
2217
  const handleClickAction$2 = forwardViewletCommand('handleClickAction');
2180
2218
  forwardViewletCommand('handleClickAdd');
2181
2219
  const handleClickAt$3 = forwardViewletCommand('handleClickAt');
@@ -2188,8 +2226,8 @@ const handleClickOpenFolder$1 = forwardViewletCommand('handleClickOpenFolder');
2188
2226
  forwardViewletCommand('handleClickRestore');
2189
2227
  const handleClickTab$2 = forwardViewletCommand('handleClickTab');
2190
2228
  forwardViewletCommand('handleClickToggleMaximize');
2191
- const handleContextMenu$c = forwardViewletCommand('handleContextMenu');
2192
- const handleDoubleClick = forwardViewletCommand('handleDoubleClick');
2229
+ const handleContextMenu$b = forwardViewletCommand('handleContextMenu');
2230
+ forwardViewletCommand('handleDoubleClick');
2193
2231
  const handleDragEnd$1 = forwardViewletCommand('handleDragEnd');
2194
2232
  const handleDragLeave$1 = forwardViewletCommand('handleDragLeave');
2195
2233
  const handleDragOver$2 = forwardViewletCommand('handleDragOver');
@@ -2205,7 +2243,7 @@ const handleFocus$c = forwardViewletCommand('handleFocus');
2205
2243
  const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
2206
2244
  const handleIconError$1 = forwardViewletCommand('handleIconError');
2207
2245
  const handleImageError$1 = forwardViewletCommand('handleImageError');
2208
- const handleInput$9 = forwardViewletCommand('handleInput');
2246
+ const handleInput$7 = forwardViewletCommand('handleInput');
2209
2247
  const handleKeyDown$5 = forwardViewletCommand('handleKeyDown');
2210
2248
  forwardViewletCommand('handleListBlur');
2211
2249
  forwardViewletCommand('handleListFocus');
@@ -2245,7 +2283,7 @@ const handleTabsWheel$1 = forwardViewletCommand('handleTabsWheel');
2245
2283
  const handleTouchEnd$1 = forwardViewletCommand('handleTouchEnd');
2246
2284
  const handleTouchMove$1 = forwardViewletCommand('handleTouchMove');
2247
2285
  const handleTouchStart$1 = forwardViewletCommand('handleTouchStart');
2248
- const handleWheel$5 = forwardViewletCommand('handleWheel');
2286
+ const handleWheel$4 = forwardViewletCommand('handleWheel');
2249
2287
  const hidePanel = forwardViewletCommand('hidePanel');
2250
2288
  forwardViewletCommand('moveRectangleSelectionPx');
2251
2289
  forwardViewletCommand('moveSelectionPx');
@@ -2405,7 +2443,7 @@ const handleScrollBarPointerDown$4 = event => {
2405
2443
  const uid = fromEvent(event);
2406
2444
  handleScrollBarClick(uid, clientY);
2407
2445
  };
2408
- const handleWheel$4 = event => {
2446
+ const handleWheel$3 = event => {
2409
2447
  const {
2410
2448
  deltaMode,
2411
2449
  deltaY
@@ -2501,7 +2539,7 @@ const attachEvents$b = state => {
2501
2539
  $ListItems,
2502
2540
  $ScrollBar
2503
2541
  } = state;
2504
- $Viewlet.addEventListener(Wheel, handleWheel$4, Passive);
2542
+ $Viewlet.addEventListener(Wheel, handleWheel$3, Passive);
2505
2543
  attachEvents$c($ListItems, {
2506
2544
  [MouseDown]: handleMousedown
2507
2545
  });
@@ -2691,7 +2729,7 @@ const handleBlur$9 = event => {
2691
2729
  const uid = fromEvent(event);
2692
2730
  executeViewletCommand(uid, 'EditorRename.handleBlur');
2693
2731
  };
2694
- const handleInput$8 = event => {
2732
+ const handleInput$6 = event => {
2695
2733
  const {
2696
2734
  target
2697
2735
  } = event;
@@ -2706,7 +2744,7 @@ const ViewletEditorRenameEvents = {
2706
2744
  __proto__: null,
2707
2745
  handleBlur: handleBlur$9,
2708
2746
  handleFocusIn: handleFocusIn$2,
2709
- handleInput: handleInput$8
2747
+ handleInput: handleInput$6
2710
2748
  };
2711
2749
 
2712
2750
  const setBounds$5 = (state, x, y, width, height) => {
@@ -2770,7 +2808,7 @@ const ViewletEditorSourceActions = {
2770
2808
  setBounds: setBounds$4
2771
2809
  };
2772
2810
 
2773
- const handleInput$7 = event => {
2811
+ const handleInput$5 = event => {
2774
2812
  const {
2775
2813
  target
2776
2814
  } = event;
@@ -2806,7 +2844,7 @@ const handleClickToggleReplace = event => {
2806
2844
  const handleInputBlur = event => {
2807
2845
  return ['FindWidget.handleBlur'];
2808
2846
  };
2809
- const handleReplaceInput$1 = event => {
2847
+ const handleReplaceInput = event => {
2810
2848
  const {
2811
2849
  target
2812
2850
  } = event;
@@ -2851,10 +2889,10 @@ const ViewletFindWidgetEvents = {
2851
2889
  handleFocusNext,
2852
2890
  handleFocusPrevious,
2853
2891
  handleFocusReplaceAll,
2854
- handleInput: handleInput$7,
2892
+ handleInput: handleInput$5,
2855
2893
  handleInputBlur,
2856
2894
  handleReplaceFocus,
2857
- handleReplaceInput: handleReplaceInput$1,
2895
+ handleReplaceInput,
2858
2896
  handleToggleReplaceFocus,
2859
2897
  returnValue: returnValue$7
2860
2898
  };
@@ -2992,8 +3030,6 @@ const EditorCodeGenerator = 'EditorCodeGenerator';
2992
3030
 
2993
3031
  const state$6 = {
2994
3032
  instances: Object.create(null),
2995
- currentSideBarView: undefined,
2996
- currentPanelView: undefined,
2997
3033
  modules: Object.create(null)
2998
3034
  };
2999
3035
 
@@ -4808,9 +4844,7 @@ const state$2 = {
4808
4844
  /**
4809
4845
  * @type {HTMLElement|undefined}
4810
4846
  */
4811
- $PreviousFocusElement: undefined,
4812
- currentFocus: ''
4813
- };
4847
+ $PreviousFocusElement: undefined};
4814
4848
  const setElement = $Element => {
4815
4849
  state$2.$PreviousFocusElement = $Element;
4816
4850
  };
@@ -4973,7 +5007,7 @@ const create$Menu$1 = () => {
4973
5007
  // })
4974
5008
  $Menu.onkeydown = handleKeyDown$4;
4975
5009
  $Menu.addEventListener(FocusOut, handleFocusOut$1);
4976
- $Menu.oncontextmenu = handleContextMenu$b;
5010
+ $Menu.oncontextmenu = handleContextMenu$a;
4977
5011
  // $ContextMenu.onfocus = handleFocus
4978
5012
  // $ContextMenu.onblur = handleBlur
4979
5013
  return $Menu;
@@ -5002,14 +5036,14 @@ const handleBackDropMouseDown = event => {
5002
5036
  stopPropagation(event);
5003
5037
  send(/* Menu.hide */'Menu.hide');
5004
5038
  };
5005
- const handleContextMenu$b = event => {
5039
+ const handleContextMenu$a = event => {
5006
5040
  preventDefault(event);
5007
5041
  };
5008
5042
  const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mouseBlocking = false) => {
5009
5043
  if (mouseBlocking) {
5010
5044
  const $BackDrop = create$BackDrop();
5011
5045
  $BackDrop.onmousedown = handleBackDropMouseDown;
5012
- $BackDrop.oncontextmenu = handleContextMenu$b;
5046
+ $BackDrop.oncontextmenu = handleContextMenu$a;
5013
5047
  // @ts-expect-error
5014
5048
  state$1.$BackDrop = $BackDrop;
5015
5049
  append$1($BackDrop);
@@ -6890,7 +6924,7 @@ const handleFocus$a = () => {
6890
6924
 
6891
6925
  // TODO use context menu events function again
6892
6926
 
6893
- const handleContextMenu$a = event => {
6927
+ const handleContextMenu$9 = event => {
6894
6928
  preventDefault(event);
6895
6929
  const {
6896
6930
  button,
@@ -6904,7 +6938,7 @@ const returnValue$6 = true;
6904
6938
  const ViewletActivityBarEvents = {
6905
6939
  __proto__: null,
6906
6940
  handleBlur: handleBlur$8,
6907
- handleContextMenu: handleContextMenu$a,
6941
+ handleContextMenu: handleContextMenu$9,
6908
6942
  handleFocus: handleFocus$a,
6909
6943
  handleMouseDown: handleMouseDown$2,
6910
6944
  returnValue: returnValue$6
@@ -6987,7 +7021,7 @@ const ViewletClock = {
6987
7021
  setTime
6988
7022
  };
6989
7023
 
6990
- const handleInput$6 = event => {
7024
+ const handleInput$4 = event => {
6991
7025
  const uid = fromEvent(event);
6992
7026
  const {
6993
7027
  target
@@ -6995,7 +7029,7 @@ const handleInput$6 = event => {
6995
7029
  const {
6996
7030
  value
6997
7031
  } = target;
6998
- handleInput$9(uid, value);
7032
+ handleInput$7(uid, value);
6999
7033
  };
7000
7034
  const handleFocus$9 = event => {
7001
7035
  const uid = fromEvent(event);
@@ -7005,7 +7039,7 @@ const handleFocus$9 = event => {
7005
7039
  const ViewletDebugConsoleEvents = {
7006
7040
  __proto__: null,
7007
7041
  handleFocus: handleFocus$9,
7008
- handleInput: handleInput$6
7042
+ handleInput: handleInput$4
7009
7043
  };
7010
7044
 
7011
7045
  const create$t = () => {
@@ -7104,16 +7138,16 @@ const create$Button = (label, icon) => {
7104
7138
  return $Button;
7105
7139
  };
7106
7140
 
7107
- const handleClick$7 = index => {
7141
+ const handleClick$6 = index => {
7108
7142
  send(/* Dialog.handleClick */'Dialog.handleClick', /* index */index);
7109
7143
  };
7110
7144
 
7111
- const handleClick$6 = event => {
7145
+ const handleClick$5 = event => {
7112
7146
  const {
7113
7147
  target
7114
7148
  } = event;
7115
7149
  const index = getNodeIndex(target);
7116
- handleClick$7(index);
7150
+ handleClick$6(index);
7117
7151
  };
7118
7152
 
7119
7153
  const create$r = () => {
@@ -7143,7 +7177,7 @@ const create$r = () => {
7143
7177
  $Dialog.setAttribute(AriaLabelledBy, 'DialogTitle');
7144
7178
  $Dialog.setAttribute(AriaDescribedBy, 'DialogBodyErrorMessage');
7145
7179
  $Dialog.append($DialogHeader, $DialogBody);
7146
- $Dialog.onclick = handleClick$6;
7180
+ $Dialog.onclick = handleClick$5;
7147
7181
  return {
7148
7182
  $Viewlet: $Dialog,
7149
7183
  $DialogTitle,
@@ -7206,13 +7240,13 @@ const ViewletDialog = {
7206
7240
  setHeader
7207
7241
  };
7208
7242
 
7209
- const handleWheel$3 = event => {
7243
+ const handleWheel$2 = event => {
7210
7244
  const {
7211
7245
  deltaMode,
7212
7246
  deltaY
7213
7247
  } = event;
7214
7248
  const uid = fromEvent(event);
7215
- handleWheel$5(uid, deltaMode, deltaY);
7249
+ handleWheel$4(uid, deltaMode, deltaY);
7216
7250
  };
7217
7251
 
7218
7252
  const handleScrollBarPointerDown$3 = event => {
@@ -7222,7 +7256,7 @@ const handleScrollBarPointerDown$3 = event => {
7222
7256
  const ViewletDiffEditorEvents = {
7223
7257
  __proto__: null,
7224
7258
  handleScrollBarPointerDown: handleScrollBarPointerDown$3,
7225
- handleWheel: handleWheel$3
7259
+ handleWheel: handleWheel$2
7226
7260
  };
7227
7261
 
7228
7262
  const ViewletDiffEditor = {
@@ -7336,7 +7370,7 @@ const handlePointerDown$5 = event => {
7336
7370
  /**
7337
7371
  * @param {WheelEvent} event
7338
7372
  */
7339
- const handleWheel$2 = event => {
7373
+ const handleWheel$1 = event => {
7340
7374
  const {
7341
7375
  clientX,
7342
7376
  clientY,
@@ -7344,14 +7378,14 @@ const handleWheel$2 = event => {
7344
7378
  deltaY
7345
7379
  } = event;
7346
7380
  const uid = fromEvent(event);
7347
- handleWheel$5(uid, clientX, clientY, deltaX, deltaY);
7381
+ handleWheel$4(uid, clientX, clientY, deltaX, deltaY);
7348
7382
  };
7349
7383
 
7350
7384
  /**
7351
7385
  *
7352
7386
  * @param {MouseEvent} event
7353
7387
  */
7354
- const handleContextMenu$9 = event => {
7388
+ const handleContextMenu$8 = event => {
7355
7389
  preventDefault(event);
7356
7390
  const {
7357
7391
  button,
@@ -7359,7 +7393,7 @@ const handleContextMenu$9 = event => {
7359
7393
  clientY
7360
7394
  } = event;
7361
7395
  const uid = fromEvent(event);
7362
- handleContextMenu$c(uid, button, clientX, clientY);
7396
+ handleContextMenu$b(uid, button, clientX, clientY);
7363
7397
  };
7364
7398
  const handleError$5 = event => {
7365
7399
  const uid = fromEvent(event);
@@ -7384,11 +7418,11 @@ const attachEvents$8 = state => {
7384
7418
  attachEvents$c($Viewlet, {
7385
7419
  [PointerDown]: handlePointerDown$5,
7386
7420
  [PointerUp]: handlePointerUp,
7387
- [ContextMenu]: handleContextMenu$9,
7421
+ [ContextMenu]: handleContextMenu$8,
7388
7422
  [FocusIn]: handleFocus$8
7389
7423
  });
7390
7424
  $Viewlet.addEventListener(Error$3, handleError$5, Capture);
7391
- $Viewlet.addEventListener(Wheel, handleWheel$2, Passive);
7425
+ $Viewlet.addEventListener(Wheel, handleWheel$1, Passive);
7392
7426
  };
7393
7427
  const setTransform = (state, transform) => {
7394
7428
  const {
@@ -7676,7 +7710,7 @@ const handleMouseDown$1 = event => {
7676
7710
  *
7677
7711
  * @param {WheelEvent} event
7678
7712
  */
7679
- const handleWheel$1 = event => {
7713
+ const handleWheel = event => {
7680
7714
  const {
7681
7715
  deltaMode,
7682
7716
  deltaX,
@@ -7750,7 +7784,7 @@ const handleScrollBarContextMenu = event => {
7750
7784
  preventDefault(event);
7751
7785
  stopPropagation(event);
7752
7786
  };
7753
- const handleContextMenu$8 = event => {
7787
+ const handleContextMenu$7 = event => {
7754
7788
  preventDefault(event);
7755
7789
  const {
7756
7790
  button,
@@ -7906,8 +7940,8 @@ const create$n = () => {
7906
7940
  $Editor.role = Code;
7907
7941
  $Editor.append($LayerGutter, $EditorContent);
7908
7942
  attachEventsFunctional($Editor, {
7909
- [ContextMenu]: handleContextMenu$8,
7910
- [Wheel]: handleWheel$1,
7943
+ [ContextMenu]: handleContextMenu$7,
7944
+ [Wheel]: handleWheel,
7911
7945
  returnValue: true
7912
7946
  });
7913
7947
  return {
@@ -8111,7 +8145,7 @@ const ViewletError = {
8111
8145
  setMessage: setMessage$2
8112
8146
  };
8113
8147
 
8114
- const handleContextMenu$7 = event => {
8148
+ const handleContextMenu$6 = event => {
8115
8149
  preventDefault(event);
8116
8150
  const {
8117
8151
  button,
@@ -8119,7 +8153,7 @@ const handleContextMenu$7 = event => {
8119
8153
  clientY
8120
8154
  } = event;
8121
8155
  const uid = fromEvent(event);
8122
- handleContextMenu$c(uid, button, clientX, clientY);
8156
+ handleContextMenu$b(uid, button, clientX, clientY);
8123
8157
  };
8124
8158
 
8125
8159
  const CopyMove = 'copyMove';
@@ -8253,7 +8287,7 @@ const handleBlur$5 = event => {
8253
8287
  const uid = fromEvent(event);
8254
8288
  handleBlur$b(uid);
8255
8289
  };
8256
- const handleClick$5 = event => {
8290
+ const handleClick$4 = event => {
8257
8291
  preventDefault(event);
8258
8292
  const {
8259
8293
  button,
@@ -8313,9 +8347,9 @@ const handleEditingInput = event => {
8313
8347
  const ViewletExplorerEvents = {
8314
8348
  __proto__: null,
8315
8349
  handleBlur: handleBlur$5,
8316
- handleClick: handleClick$5,
8350
+ handleClick: handleClick$4,
8317
8351
  handleClickOpenFolder,
8318
- handleContextMenu: handleContextMenu$7,
8352
+ handleContextMenu: handleContextMenu$6,
8319
8353
  handleDragEnd,
8320
8354
  handleDragLeave,
8321
8355
  handleDragOver: handleDragOver$1,
@@ -8326,7 +8360,7 @@ const ViewletExplorerEvents = {
8326
8360
  handleMouseEnter,
8327
8361
  handleMouseLeave,
8328
8362
  handlePointerDown: handlePointerDown$4,
8329
- handleWheel: handleWheel$3
8363
+ handleWheel: handleWheel$2
8330
8364
  };
8331
8365
 
8332
8366
  const create$i = () => {
@@ -8516,13 +8550,13 @@ const handlePointerDown$3 = event => {
8516
8550
  }
8517
8551
  const $Extension = target.closest('.ExtensionListItem');
8518
8552
  const index = getNodeIndex($Extension);
8519
- handleClick$8(uid, index);
8553
+ handleClick$7(uid, index);
8520
8554
  };
8521
- const handleInput$5 = event => {
8555
+ const handleInput$3 = event => {
8522
8556
  const $Target = event.target;
8523
8557
  const value = $Target.value;
8524
8558
  const uid = fromEvent(event);
8525
- handleInput$9(uid, value);
8559
+ handleInput$7(uid, value);
8526
8560
  // TODO
8527
8561
  // TODO use beforeinput event to set value and extension list items at the same time
8528
8562
  // state.$Viewlet.ariaBusy = 'true'
@@ -8611,11 +8645,11 @@ const attachEvents$7 = state => {
8611
8645
  $ListItems,
8612
8646
  $ScrollBar
8613
8647
  } = state;
8614
- $ExtensionHeader.addEventListener(Input, handleInput$5, Capture);
8648
+ $ExtensionHeader.addEventListener(Input, handleInput$3, Capture);
8615
8649
  // @ts-expect-error
8616
8650
  $ExtensionHeader.addEventListener(Click, undefined);
8617
8651
  attachEvents$c($ListItems, {
8618
- [ContextMenu]: handleContextMenu$7,
8652
+ [ContextMenu]: handleContextMenu$6,
8619
8653
  [PointerDown]: handlePointerDown$3,
8620
8654
  [Focus]: handleFocus$5,
8621
8655
  [Scroll]: handleScroll
@@ -8623,7 +8657,7 @@ const attachEvents$7 = state => {
8623
8657
  $ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
8624
8658
  $ListItems.addEventListener(TouchMove, handleTouchMove, Passive);
8625
8659
  $ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
8626
- $ListItems.addEventListener(Wheel, handleWheel$3, Passive);
8660
+ $ListItems.addEventListener(Wheel, handleWheel$2, Passive);
8627
8661
  attachEvents$c($ScrollBar, {
8628
8662
  [PointerDown]: handleScrollBarPointerDown$2
8629
8663
  });
@@ -8790,32 +8824,6 @@ const ViewletImplementations = {
8790
8824
  setFocusedIndex: setFocusedIndex$3
8791
8825
  };
8792
8826
 
8793
- const handleInput$4 = event => {
8794
- const {
8795
- target
8796
- } = event;
8797
- const {
8798
- value
8799
- } = target;
8800
- const uid = fromEvent(event);
8801
- handleInput$9(uid, value);
8802
- };
8803
- const handleTableClick = event => {
8804
- const {
8805
- clientX,
8806
- clientY
8807
- } = event;
8808
- const uid = fromEvent(event);
8809
- handleClick$8(uid, clientX, clientY);
8810
- };
8811
- const handleTableDoubleClick = event => {
8812
- const {
8813
- clientX,
8814
- clientY
8815
- } = event;
8816
- const uid = fromEvent(event);
8817
- handleDoubleClick(uid, clientX, clientY);
8818
- };
8819
8827
  const handleResizerPointerMove = event => {
8820
8828
  const {
8821
8829
  clientX
@@ -8850,8 +8858,6 @@ const getPointerDownFunction = event => {
8850
8858
  switch (target.className) {
8851
8859
  case 'Resizer':
8852
8860
  return handleResizerPointerDown;
8853
- case 'KeyBindingsTableWrapper':
8854
- return handleTableClick;
8855
8861
  default:
8856
8862
  return undefined;
8857
8863
  }
@@ -8866,15 +8872,10 @@ const handlePointerDown$2 = event => {
8866
8872
 
8867
8873
  const ViewletkeyBindingsEvents = {
8868
8874
  __proto__: null,
8869
- handleContextMenu: handleContextMenu$7,
8870
- handleInput: handleInput$4,
8871
8875
  handlePointerDown: handlePointerDown$2,
8872
8876
  handleResizerPointerDown,
8873
8877
  handleResizerPointerMove,
8874
- handleResizerPointerUp,
8875
- handleTableClick,
8876
- handleTableDoubleClick,
8877
- handleWheel: handleWheel$3
8878
+ handleResizerPointerUp
8878
8879
  };
8879
8880
 
8880
8881
  const setValue$2 = (state, value) => {
@@ -9456,7 +9457,7 @@ const ViewletLayout = {
9456
9457
  setSashes
9457
9458
  };
9458
9459
 
9459
- const handleContextMenu$6 = event => {
9460
+ const handleContextMenu$5 = event => {
9460
9461
  if (event.defaultPrevented) {
9461
9462
  return;
9462
9463
  }
@@ -9466,7 +9467,7 @@ const handleContextMenu$6 = event => {
9466
9467
  clientY
9467
9468
  } = event;
9468
9469
  const uid = fromEvent(event);
9469
- handleContextMenu$c(uid, clientX, clientY);
9470
+ handleContextMenu$b(uid, clientX, clientY);
9470
9471
  };
9471
9472
 
9472
9473
  // TODO Main should not be bound to Editor -> Lazy load Editor
@@ -9500,7 +9501,7 @@ const attachEvents$5 = state => {
9500
9501
  [DragOver]: handleDragOver$1,
9501
9502
  [DragEnd]: handleDragEnd,
9502
9503
  [DragLeave]: handleDragLeave,
9503
- [ContextMenu]: handleContextMenu$6
9504
+ [ContextMenu]: handleContextMenu$5
9504
9505
  });
9505
9506
  };
9506
9507
  const dispose$7 = state => {};
@@ -9786,7 +9787,7 @@ const handleClickAction$1 = (target, uid) => {
9786
9787
  }
9787
9788
  handleClickAction$2(uid, index, command);
9788
9789
  };
9789
- const handleHeaderClick$2 = event => {
9790
+ const handleHeaderClick$1 = event => {
9790
9791
  const {
9791
9792
  target
9792
9793
  } = event;
@@ -9852,7 +9853,7 @@ const attachEvents$3 = state => {
9852
9853
  $PanelHeader
9853
9854
  } = state;
9854
9855
  attachEvents$c($PanelHeader, {
9855
- [Click]: handleHeaderClick$2
9856
+ [Click]: handleHeaderClick$1
9856
9857
  });
9857
9858
  attachEvents$c($ButtonMaximize, {
9858
9859
  [Click]: handleClickMaximize
@@ -9936,7 +9937,7 @@ const handlePointerDown$1 = event => {
9936
9937
  } = event;
9937
9938
  return ['handleClickAt', clientX, clientY];
9938
9939
  };
9939
- const handleContextMenu$5 = event => {
9940
+ const handleContextMenu$4 = event => {
9940
9941
  preventDefault(event);
9941
9942
  const {
9942
9943
  clientX,
@@ -9961,7 +9962,7 @@ const returnValue$5 = true;
9961
9962
  const ViewletProblemsEvents = {
9962
9963
  __proto__: null,
9963
9964
  handleClearFilterClick,
9964
- handleContextMenu: handleContextMenu$5,
9965
+ handleContextMenu: handleContextMenu$4,
9965
9966
  handleFilterInput,
9966
9967
  handlePointerDown: handlePointerDown$1,
9967
9968
  returnValue: returnValue$5
@@ -10102,7 +10103,6 @@ const activeId$1 = 'QuickPickItemActive';
10102
10103
  * @enum {string}
10103
10104
  */
10104
10105
  const Ids = {
10105
- QuickPickHeader: 'QuickPickHeader',
10106
10106
  QuickPickItems: 'QuickPickItems',
10107
10107
  QuickPick: 'QuickPick'
10108
10108
  };
@@ -10187,7 +10187,7 @@ const attachEvents$2 = state => {
10187
10187
  attachEvents$c($QuickPickItems, {
10188
10188
  [PointerDown]: handlePointerDown
10189
10189
  });
10190
- $QuickPickItems.addEventListener(Wheel, handleWheel$3, Passive);
10190
+ $QuickPickItems.addEventListener(Wheel, handleWheel$2, Passive);
10191
10191
  attachEvents$c($QuickPickInput, {
10192
10192
  [Blur]: handleBlur$2,
10193
10193
  [BeforeInput]: handleBeforeInput
@@ -10452,32 +10452,10 @@ const ViewletScreenCapture = {
10452
10452
  setScreenCapture
10453
10453
  };
10454
10454
 
10455
- const User = 1;
10456
-
10457
- const handleInput$3 = event => {
10458
- const {
10459
- target
10460
- } = event;
10461
- const {
10462
- value
10463
- } = target;
10464
- return ['handleInput', value, User];
10465
- };
10466
10455
  const handleFocus$2 = () => {
10467
10456
  // TODO send focus event to search view first
10468
10457
  return ['Focus.setFocus', FocusSearchInput];
10469
10458
  };
10470
- const handleClick$4 = event => {
10471
- const {
10472
- button,
10473
- clientX,
10474
- clientY
10475
- } = event;
10476
- if (button === RightClick) {
10477
- return [];
10478
- }
10479
- return ['handleClickAt', clientX, clientY];
10480
- };
10481
10459
  const handleScrollBarThumbPointerMove = event => {
10482
10460
  const {
10483
10461
  clientY
@@ -10501,99 +10479,6 @@ const handleScrollBarPointerDown$1 = event => {
10501
10479
  startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
10502
10480
  return ['handleScrollBarClick', clientY];
10503
10481
  };
10504
- const handleToggleButtonClick = event => {
10505
- return ['toggleReplace'];
10506
- };
10507
-
10508
- /**
10509
- * @deprecated
10510
- */
10511
- const handleHeaderClick$1 = event => {
10512
- const {
10513
- target
10514
- } = event;
10515
- const {
10516
- title
10517
- } = target;
10518
- switch (title) {
10519
- case 'Toggle Replace':
10520
- return ['toggleReplace'];
10521
- case 'Match Case':
10522
- return ['toggleMatchCase'];
10523
- case 'Use Regular Expression':
10524
- return ['toggleUseRegularExpression'];
10525
- case 'Replace All':
10526
- return ['replaceAll'];
10527
- case 'Match Whole Word':
10528
- return ['toggleMatchWholeWord'];
10529
- case 'Preserve Case':
10530
- return ['togglePreserveCase'];
10531
- case 'Toggle Search Details':
10532
- return ['toggleSearchDetails'];
10533
- case 'Search Only Open Editors':
10534
- return ['toggleOpenEditors'];
10535
- case 'Use Exclude Settings':
10536
- return ['toggleUseIgnoreFiles'];
10537
- default:
10538
- return [];
10539
- }
10540
- // TODO better way to determine which button was clicked
10541
- };
10542
- const handleHeaderClick2 = event => {
10543
- const {
10544
- target
10545
- } = event;
10546
- const {
10547
- name
10548
- } = target;
10549
- if (!name) {
10550
- return [];
10551
- }
10552
- return ['handleHeaderClick', name];
10553
- };
10554
- const handleSharedInput = event => {
10555
- const {
10556
- target
10557
- } = event;
10558
- const {
10559
- value,
10560
- name
10561
- } = target;
10562
- return ['handleSharedInput', name, value];
10563
- };
10564
- const handleReplaceInput = event => {
10565
- const {
10566
- target
10567
- } = event;
10568
- const {
10569
- value
10570
- } = target;
10571
- return ['handleReplaceInput', value];
10572
- };
10573
- const handleIncludeInput = event => {
10574
- const {
10575
- target
10576
- } = event;
10577
- const {
10578
- value
10579
- } = target;
10580
- return ['handleIncludeInput', value];
10581
- };
10582
- const handleExcludeInput = event => {
10583
- const {
10584
- target
10585
- } = event;
10586
- const {
10587
- value
10588
- } = target;
10589
- return ['handleExcludeInput', value];
10590
- };
10591
- const handleListFocus = event => {
10592
- return ['handleListFocus'];
10593
- };
10594
- const handleListBlur = event => {
10595
- return ['handleListBlur'];
10596
- };
10597
10482
  const handleHeaderFocusIn = event => {
10598
10483
  const {
10599
10484
  target
@@ -10604,44 +10489,15 @@ const handleHeaderFocusIn = event => {
10604
10489
  }
10605
10490
  return ['handleFocusIn', key];
10606
10491
  };
10607
- const handleContextMenu$4 = event => {
10608
- preventDefault(event);
10609
- const {
10610
- button,
10611
- clientX,
10612
- clientY
10613
- } = event;
10614
- return ['handleContextMenu', button, clientX, clientY];
10615
- };
10616
- const handleWheel = event => {
10617
- const {
10618
- deltaMode,
10619
- deltaY
10620
- } = event;
10621
- return ['handleWheel', deltaMode, deltaY];
10622
- };
10623
10492
  const returnValue$4 = true;
10624
10493
 
10625
10494
  const ViewletSearchEvents = {
10626
10495
  __proto__: null,
10627
- handleClick: handleClick$4,
10628
- handleContextMenu: handleContextMenu$4,
10629
- handleExcludeInput,
10630
10496
  handleFocus: handleFocus$2,
10631
- handleHeaderClick: handleHeaderClick$1,
10632
- handleHeaderClick2,
10633
10497
  handleHeaderFocusIn,
10634
- handleIncludeInput,
10635
- handleInput: handleInput$3,
10636
- handleListBlur,
10637
- handleListFocus,
10638
- handleReplaceInput,
10639
10498
  handleScrollBarPointerDown: handleScrollBarPointerDown$1,
10640
10499
  handleScrollBarPointerUp,
10641
10500
  handleScrollBarThumbPointerMove,
10642
- handleSharedInput,
10643
- handleToggleButtonClick,
10644
- handleWheel,
10645
10501
  returnValue: returnValue$4
10646
10502
  };
10647
10503
 
@@ -10886,7 +10742,7 @@ const handleClick$3 = event => {
10886
10742
  if (index === -1) {
10887
10743
  return;
10888
10744
  }
10889
- handleClick$8(uid, index);
10745
+ handleClick$7(uid, index);
10890
10746
  };
10891
10747
  const handleMouseOver = event => {
10892
10748
  const {
@@ -10925,18 +10781,18 @@ const handleInput = event => {
10925
10781
  value
10926
10782
  } = target;
10927
10783
  const uid = fromEvent(event);
10928
- handleInput$9(uid, value);
10784
+ handleInput$7(uid, value);
10929
10785
  };
10930
10786
 
10931
10787
  const ViewletSourceControlEvents = {
10932
10788
  __proto__: null,
10933
10789
  handleClick: handleClick$3,
10934
- handleContextMenu: handleContextMenu$7,
10790
+ handleContextMenu: handleContextMenu$6,
10935
10791
  handleFocus,
10936
10792
  handleInput,
10937
10793
  handleMouseOut,
10938
10794
  handleMouseOver,
10939
- handleWheel: handleWheel$3
10795
+ handleWheel: handleWheel$2
10940
10796
  };
10941
10797
 
10942
10798
  const focus$3 = state => {
@@ -10958,7 +10814,7 @@ const handleClick$2 = event => {
10958
10814
  clientX,
10959
10815
  clientY
10960
10816
  } = event;
10961
- handleClick$8(uid, clientX, clientY);
10817
+ handleClick$7(uid, clientX, clientY);
10962
10818
  };
10963
10819
 
10964
10820
  const ViewletStatusBarEvents = {
@@ -11002,7 +10858,7 @@ const ViewletStatusBar = {
11002
10858
 
11003
10859
  const handleClick$1 = event => {
11004
10860
  const uid = fromEvent(event);
11005
- handleClick$8(uid);
10861
+ handleClick$7(uid);
11006
10862
  };
11007
10863
 
11008
10864
  const ViewletStorageEvents = {
@@ -11385,7 +11241,7 @@ const handleClick = event => {
11385
11241
  } = event;
11386
11242
  const index = getIndex(target);
11387
11243
  const uid = fromEvent(event);
11388
- handleClick$8(uid, button, index);
11244
+ handleClick$7(uid, button, index);
11389
11245
  };
11390
11246
  const getLevelAndIndex = event => {
11391
11247
  const {
@@ -11751,7 +11607,7 @@ const handleScrollBarPointerDown = event => {
11751
11607
  const ViewletInlineDiffEditorEvents = {
11752
11608
  __proto__: null,
11753
11609
  handleScrollBarPointerDown,
11754
- handleWheel: handleWheel$3
11610
+ handleWheel: handleWheel$2
11755
11611
  };
11756
11612
 
11757
11613
  const ViewletInlineDiffEditor = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.52.0",
3
+ "version": "10.54.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",