@lvce-editor/renderer-process 10.52.0 → 10.53.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
  };
@@ -1703,6 +1718,24 @@ var getEventListenerArg = (param, event) => {
1703
1718
  return event.deltaY;
1704
1719
  case "event.detail":
1705
1720
  return event.detail;
1721
+ case "event.target.name":
1722
+ return event.target.name;
1723
+ case "event.target.href":
1724
+ return event.target.href;
1725
+ case "event.target.src":
1726
+ return event.target.src;
1727
+ case "event.altKey":
1728
+ return event.altKey;
1729
+ case "event.key":
1730
+ return event.key;
1731
+ case "event.ctrlKey":
1732
+ return event.ctrlKey;
1733
+ case "event.shiftKey":
1734
+ return event.shiftKey;
1735
+ case "event.inputType":
1736
+ return event.inputType;
1737
+ case "event.data":
1738
+ return event.data;
1706
1739
  default:
1707
1740
  return param;
1708
1741
  }
@@ -1732,6 +1765,9 @@ var createFn = info => {
1732
1765
  ipc.send("Viewlet.executeViewletCommand", uid, ...args);
1733
1766
  };
1734
1767
  nameAnonymousFunction$1(fn, info.name);
1768
+ if (info.passive) {
1769
+ fn.passive = true;
1770
+ }
1735
1771
  return fn;
1736
1772
  };
1737
1773
 
@@ -1877,8 +1913,6 @@ const setHeight = ($Element, height) => {
1877
1913
 
1878
1914
  // TODO this file is not needed when all elements are position fixed
1879
1915
  const state$7 = {
1880
- isInDom: false,
1881
- $PreviousFocusElement: undefined,
1882
1916
  widgetSet: new Set(),
1883
1917
  $Widgets: undefined
1884
1918
  };
@@ -2175,7 +2209,7 @@ const handleBeforeInput$2 = forwardViewletCommand('handleBeforeInput');
2175
2209
  forwardViewletCommand('handleBeforeInputFromContentEditable');
2176
2210
  const handleBlur$b = forwardViewletCommand('handleBlur');
2177
2211
  const handleButtonClick = forwardViewletCommand('handleButtonClick');
2178
- const handleClick$8 = forwardViewletCommand('handleClick');
2212
+ const handleClick$7 = forwardViewletCommand('handleClick');
2179
2213
  const handleClickAction$2 = forwardViewletCommand('handleClickAction');
2180
2214
  forwardViewletCommand('handleClickAdd');
2181
2215
  const handleClickAt$3 = forwardViewletCommand('handleClickAt');
@@ -2188,8 +2222,8 @@ const handleClickOpenFolder$1 = forwardViewletCommand('handleClickOpenFolder');
2188
2222
  forwardViewletCommand('handleClickRestore');
2189
2223
  const handleClickTab$2 = forwardViewletCommand('handleClickTab');
2190
2224
  forwardViewletCommand('handleClickToggleMaximize');
2191
- const handleContextMenu$c = forwardViewletCommand('handleContextMenu');
2192
- const handleDoubleClick = forwardViewletCommand('handleDoubleClick');
2225
+ const handleContextMenu$b = forwardViewletCommand('handleContextMenu');
2226
+ forwardViewletCommand('handleDoubleClick');
2193
2227
  const handleDragEnd$1 = forwardViewletCommand('handleDragEnd');
2194
2228
  const handleDragLeave$1 = forwardViewletCommand('handleDragLeave');
2195
2229
  const handleDragOver$2 = forwardViewletCommand('handleDragOver');
@@ -2205,7 +2239,7 @@ const handleFocus$c = forwardViewletCommand('handleFocus');
2205
2239
  const handleFocusIn$4 = forwardViewletCommand('handleFocusIn');
2206
2240
  const handleIconError$1 = forwardViewletCommand('handleIconError');
2207
2241
  const handleImageError$1 = forwardViewletCommand('handleImageError');
2208
- const handleInput$9 = forwardViewletCommand('handleInput');
2242
+ const handleInput$7 = forwardViewletCommand('handleInput');
2209
2243
  const handleKeyDown$5 = forwardViewletCommand('handleKeyDown');
2210
2244
  forwardViewletCommand('handleListBlur');
2211
2245
  forwardViewletCommand('handleListFocus');
@@ -2245,7 +2279,7 @@ const handleTabsWheel$1 = forwardViewletCommand('handleTabsWheel');
2245
2279
  const handleTouchEnd$1 = forwardViewletCommand('handleTouchEnd');
2246
2280
  const handleTouchMove$1 = forwardViewletCommand('handleTouchMove');
2247
2281
  const handleTouchStart$1 = forwardViewletCommand('handleTouchStart');
2248
- const handleWheel$5 = forwardViewletCommand('handleWheel');
2282
+ const handleWheel$4 = forwardViewletCommand('handleWheel');
2249
2283
  const hidePanel = forwardViewletCommand('hidePanel');
2250
2284
  forwardViewletCommand('moveRectangleSelectionPx');
2251
2285
  forwardViewletCommand('moveSelectionPx');
@@ -2405,7 +2439,7 @@ const handleScrollBarPointerDown$4 = event => {
2405
2439
  const uid = fromEvent(event);
2406
2440
  handleScrollBarClick(uid, clientY);
2407
2441
  };
2408
- const handleWheel$4 = event => {
2442
+ const handleWheel$3 = event => {
2409
2443
  const {
2410
2444
  deltaMode,
2411
2445
  deltaY
@@ -2501,7 +2535,7 @@ const attachEvents$b = state => {
2501
2535
  $ListItems,
2502
2536
  $ScrollBar
2503
2537
  } = state;
2504
- $Viewlet.addEventListener(Wheel, handleWheel$4, Passive);
2538
+ $Viewlet.addEventListener(Wheel, handleWheel$3, Passive);
2505
2539
  attachEvents$c($ListItems, {
2506
2540
  [MouseDown]: handleMousedown
2507
2541
  });
@@ -2691,7 +2725,7 @@ const handleBlur$9 = event => {
2691
2725
  const uid = fromEvent(event);
2692
2726
  executeViewletCommand(uid, 'EditorRename.handleBlur');
2693
2727
  };
2694
- const handleInput$8 = event => {
2728
+ const handleInput$6 = event => {
2695
2729
  const {
2696
2730
  target
2697
2731
  } = event;
@@ -2706,7 +2740,7 @@ const ViewletEditorRenameEvents = {
2706
2740
  __proto__: null,
2707
2741
  handleBlur: handleBlur$9,
2708
2742
  handleFocusIn: handleFocusIn$2,
2709
- handleInput: handleInput$8
2743
+ handleInput: handleInput$6
2710
2744
  };
2711
2745
 
2712
2746
  const setBounds$5 = (state, x, y, width, height) => {
@@ -2770,7 +2804,7 @@ const ViewletEditorSourceActions = {
2770
2804
  setBounds: setBounds$4
2771
2805
  };
2772
2806
 
2773
- const handleInput$7 = event => {
2807
+ const handleInput$5 = event => {
2774
2808
  const {
2775
2809
  target
2776
2810
  } = event;
@@ -2806,7 +2840,7 @@ const handleClickToggleReplace = event => {
2806
2840
  const handleInputBlur = event => {
2807
2841
  return ['FindWidget.handleBlur'];
2808
2842
  };
2809
- const handleReplaceInput$1 = event => {
2843
+ const handleReplaceInput = event => {
2810
2844
  const {
2811
2845
  target
2812
2846
  } = event;
@@ -2851,10 +2885,10 @@ const ViewletFindWidgetEvents = {
2851
2885
  handleFocusNext,
2852
2886
  handleFocusPrevious,
2853
2887
  handleFocusReplaceAll,
2854
- handleInput: handleInput$7,
2888
+ handleInput: handleInput$5,
2855
2889
  handleInputBlur,
2856
2890
  handleReplaceFocus,
2857
- handleReplaceInput: handleReplaceInput$1,
2891
+ handleReplaceInput,
2858
2892
  handleToggleReplaceFocus,
2859
2893
  returnValue: returnValue$7
2860
2894
  };
@@ -2992,8 +3026,6 @@ const EditorCodeGenerator = 'EditorCodeGenerator';
2992
3026
 
2993
3027
  const state$6 = {
2994
3028
  instances: Object.create(null),
2995
- currentSideBarView: undefined,
2996
- currentPanelView: undefined,
2997
3029
  modules: Object.create(null)
2998
3030
  };
2999
3031
 
@@ -4808,9 +4840,7 @@ const state$2 = {
4808
4840
  /**
4809
4841
  * @type {HTMLElement|undefined}
4810
4842
  */
4811
- $PreviousFocusElement: undefined,
4812
- currentFocus: ''
4813
- };
4843
+ $PreviousFocusElement: undefined};
4814
4844
  const setElement = $Element => {
4815
4845
  state$2.$PreviousFocusElement = $Element;
4816
4846
  };
@@ -4973,7 +5003,7 @@ const create$Menu$1 = () => {
4973
5003
  // })
4974
5004
  $Menu.onkeydown = handleKeyDown$4;
4975
5005
  $Menu.addEventListener(FocusOut, handleFocusOut$1);
4976
- $Menu.oncontextmenu = handleContextMenu$b;
5006
+ $Menu.oncontextmenu = handleContextMenu$a;
4977
5007
  // $ContextMenu.onfocus = handleFocus
4978
5008
  // $ContextMenu.onblur = handleBlur
4979
5009
  return $Menu;
@@ -5002,14 +5032,14 @@ const handleBackDropMouseDown = event => {
5002
5032
  stopPropagation(event);
5003
5033
  send(/* Menu.hide */'Menu.hide');
5004
5034
  };
5005
- const handleContextMenu$b = event => {
5035
+ const handleContextMenu$a = event => {
5006
5036
  preventDefault(event);
5007
5037
  };
5008
5038
  const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mouseBlocking = false) => {
5009
5039
  if (mouseBlocking) {
5010
5040
  const $BackDrop = create$BackDrop();
5011
5041
  $BackDrop.onmousedown = handleBackDropMouseDown;
5012
- $BackDrop.oncontextmenu = handleContextMenu$b;
5042
+ $BackDrop.oncontextmenu = handleContextMenu$a;
5013
5043
  // @ts-expect-error
5014
5044
  state$1.$BackDrop = $BackDrop;
5015
5045
  append$1($BackDrop);
@@ -6890,7 +6920,7 @@ const handleFocus$a = () => {
6890
6920
 
6891
6921
  // TODO use context menu events function again
6892
6922
 
6893
- const handleContextMenu$a = event => {
6923
+ const handleContextMenu$9 = event => {
6894
6924
  preventDefault(event);
6895
6925
  const {
6896
6926
  button,
@@ -6904,7 +6934,7 @@ const returnValue$6 = true;
6904
6934
  const ViewletActivityBarEvents = {
6905
6935
  __proto__: null,
6906
6936
  handleBlur: handleBlur$8,
6907
- handleContextMenu: handleContextMenu$a,
6937
+ handleContextMenu: handleContextMenu$9,
6908
6938
  handleFocus: handleFocus$a,
6909
6939
  handleMouseDown: handleMouseDown$2,
6910
6940
  returnValue: returnValue$6
@@ -6987,7 +7017,7 @@ const ViewletClock = {
6987
7017
  setTime
6988
7018
  };
6989
7019
 
6990
- const handleInput$6 = event => {
7020
+ const handleInput$4 = event => {
6991
7021
  const uid = fromEvent(event);
6992
7022
  const {
6993
7023
  target
@@ -6995,7 +7025,7 @@ const handleInput$6 = event => {
6995
7025
  const {
6996
7026
  value
6997
7027
  } = target;
6998
- handleInput$9(uid, value);
7028
+ handleInput$7(uid, value);
6999
7029
  };
7000
7030
  const handleFocus$9 = event => {
7001
7031
  const uid = fromEvent(event);
@@ -7005,7 +7035,7 @@ const handleFocus$9 = event => {
7005
7035
  const ViewletDebugConsoleEvents = {
7006
7036
  __proto__: null,
7007
7037
  handleFocus: handleFocus$9,
7008
- handleInput: handleInput$6
7038
+ handleInput: handleInput$4
7009
7039
  };
7010
7040
 
7011
7041
  const create$t = () => {
@@ -7104,16 +7134,16 @@ const create$Button = (label, icon) => {
7104
7134
  return $Button;
7105
7135
  };
7106
7136
 
7107
- const handleClick$7 = index => {
7137
+ const handleClick$6 = index => {
7108
7138
  send(/* Dialog.handleClick */'Dialog.handleClick', /* index */index);
7109
7139
  };
7110
7140
 
7111
- const handleClick$6 = event => {
7141
+ const handleClick$5 = event => {
7112
7142
  const {
7113
7143
  target
7114
7144
  } = event;
7115
7145
  const index = getNodeIndex(target);
7116
- handleClick$7(index);
7146
+ handleClick$6(index);
7117
7147
  };
7118
7148
 
7119
7149
  const create$r = () => {
@@ -7143,7 +7173,7 @@ const create$r = () => {
7143
7173
  $Dialog.setAttribute(AriaLabelledBy, 'DialogTitle');
7144
7174
  $Dialog.setAttribute(AriaDescribedBy, 'DialogBodyErrorMessage');
7145
7175
  $Dialog.append($DialogHeader, $DialogBody);
7146
- $Dialog.onclick = handleClick$6;
7176
+ $Dialog.onclick = handleClick$5;
7147
7177
  return {
7148
7178
  $Viewlet: $Dialog,
7149
7179
  $DialogTitle,
@@ -7206,13 +7236,13 @@ const ViewletDialog = {
7206
7236
  setHeader
7207
7237
  };
7208
7238
 
7209
- const handleWheel$3 = event => {
7239
+ const handleWheel$2 = event => {
7210
7240
  const {
7211
7241
  deltaMode,
7212
7242
  deltaY
7213
7243
  } = event;
7214
7244
  const uid = fromEvent(event);
7215
- handleWheel$5(uid, deltaMode, deltaY);
7245
+ handleWheel$4(uid, deltaMode, deltaY);
7216
7246
  };
7217
7247
 
7218
7248
  const handleScrollBarPointerDown$3 = event => {
@@ -7222,7 +7252,7 @@ const handleScrollBarPointerDown$3 = event => {
7222
7252
  const ViewletDiffEditorEvents = {
7223
7253
  __proto__: null,
7224
7254
  handleScrollBarPointerDown: handleScrollBarPointerDown$3,
7225
- handleWheel: handleWheel$3
7255
+ handleWheel: handleWheel$2
7226
7256
  };
7227
7257
 
7228
7258
  const ViewletDiffEditor = {
@@ -7336,7 +7366,7 @@ const handlePointerDown$5 = event => {
7336
7366
  /**
7337
7367
  * @param {WheelEvent} event
7338
7368
  */
7339
- const handleWheel$2 = event => {
7369
+ const handleWheel$1 = event => {
7340
7370
  const {
7341
7371
  clientX,
7342
7372
  clientY,
@@ -7344,14 +7374,14 @@ const handleWheel$2 = event => {
7344
7374
  deltaY
7345
7375
  } = event;
7346
7376
  const uid = fromEvent(event);
7347
- handleWheel$5(uid, clientX, clientY, deltaX, deltaY);
7377
+ handleWheel$4(uid, clientX, clientY, deltaX, deltaY);
7348
7378
  };
7349
7379
 
7350
7380
  /**
7351
7381
  *
7352
7382
  * @param {MouseEvent} event
7353
7383
  */
7354
- const handleContextMenu$9 = event => {
7384
+ const handleContextMenu$8 = event => {
7355
7385
  preventDefault(event);
7356
7386
  const {
7357
7387
  button,
@@ -7359,7 +7389,7 @@ const handleContextMenu$9 = event => {
7359
7389
  clientY
7360
7390
  } = event;
7361
7391
  const uid = fromEvent(event);
7362
- handleContextMenu$c(uid, button, clientX, clientY);
7392
+ handleContextMenu$b(uid, button, clientX, clientY);
7363
7393
  };
7364
7394
  const handleError$5 = event => {
7365
7395
  const uid = fromEvent(event);
@@ -7384,11 +7414,11 @@ const attachEvents$8 = state => {
7384
7414
  attachEvents$c($Viewlet, {
7385
7415
  [PointerDown]: handlePointerDown$5,
7386
7416
  [PointerUp]: handlePointerUp,
7387
- [ContextMenu]: handleContextMenu$9,
7417
+ [ContextMenu]: handleContextMenu$8,
7388
7418
  [FocusIn]: handleFocus$8
7389
7419
  });
7390
7420
  $Viewlet.addEventListener(Error$3, handleError$5, Capture);
7391
- $Viewlet.addEventListener(Wheel, handleWheel$2, Passive);
7421
+ $Viewlet.addEventListener(Wheel, handleWheel$1, Passive);
7392
7422
  };
7393
7423
  const setTransform = (state, transform) => {
7394
7424
  const {
@@ -7676,7 +7706,7 @@ const handleMouseDown$1 = event => {
7676
7706
  *
7677
7707
  * @param {WheelEvent} event
7678
7708
  */
7679
- const handleWheel$1 = event => {
7709
+ const handleWheel = event => {
7680
7710
  const {
7681
7711
  deltaMode,
7682
7712
  deltaX,
@@ -7750,7 +7780,7 @@ const handleScrollBarContextMenu = event => {
7750
7780
  preventDefault(event);
7751
7781
  stopPropagation(event);
7752
7782
  };
7753
- const handleContextMenu$8 = event => {
7783
+ const handleContextMenu$7 = event => {
7754
7784
  preventDefault(event);
7755
7785
  const {
7756
7786
  button,
@@ -7906,8 +7936,8 @@ const create$n = () => {
7906
7936
  $Editor.role = Code;
7907
7937
  $Editor.append($LayerGutter, $EditorContent);
7908
7938
  attachEventsFunctional($Editor, {
7909
- [ContextMenu]: handleContextMenu$8,
7910
- [Wheel]: handleWheel$1,
7939
+ [ContextMenu]: handleContextMenu$7,
7940
+ [Wheel]: handleWheel,
7911
7941
  returnValue: true
7912
7942
  });
7913
7943
  return {
@@ -8111,7 +8141,7 @@ const ViewletError = {
8111
8141
  setMessage: setMessage$2
8112
8142
  };
8113
8143
 
8114
- const handleContextMenu$7 = event => {
8144
+ const handleContextMenu$6 = event => {
8115
8145
  preventDefault(event);
8116
8146
  const {
8117
8147
  button,
@@ -8119,7 +8149,7 @@ const handleContextMenu$7 = event => {
8119
8149
  clientY
8120
8150
  } = event;
8121
8151
  const uid = fromEvent(event);
8122
- handleContextMenu$c(uid, button, clientX, clientY);
8152
+ handleContextMenu$b(uid, button, clientX, clientY);
8123
8153
  };
8124
8154
 
8125
8155
  const CopyMove = 'copyMove';
@@ -8253,7 +8283,7 @@ const handleBlur$5 = event => {
8253
8283
  const uid = fromEvent(event);
8254
8284
  handleBlur$b(uid);
8255
8285
  };
8256
- const handleClick$5 = event => {
8286
+ const handleClick$4 = event => {
8257
8287
  preventDefault(event);
8258
8288
  const {
8259
8289
  button,
@@ -8313,9 +8343,9 @@ const handleEditingInput = event => {
8313
8343
  const ViewletExplorerEvents = {
8314
8344
  __proto__: null,
8315
8345
  handleBlur: handleBlur$5,
8316
- handleClick: handleClick$5,
8346
+ handleClick: handleClick$4,
8317
8347
  handleClickOpenFolder,
8318
- handleContextMenu: handleContextMenu$7,
8348
+ handleContextMenu: handleContextMenu$6,
8319
8349
  handleDragEnd,
8320
8350
  handleDragLeave,
8321
8351
  handleDragOver: handleDragOver$1,
@@ -8326,7 +8356,7 @@ const ViewletExplorerEvents = {
8326
8356
  handleMouseEnter,
8327
8357
  handleMouseLeave,
8328
8358
  handlePointerDown: handlePointerDown$4,
8329
- handleWheel: handleWheel$3
8359
+ handleWheel: handleWheel$2
8330
8360
  };
8331
8361
 
8332
8362
  const create$i = () => {
@@ -8516,13 +8546,13 @@ const handlePointerDown$3 = event => {
8516
8546
  }
8517
8547
  const $Extension = target.closest('.ExtensionListItem');
8518
8548
  const index = getNodeIndex($Extension);
8519
- handleClick$8(uid, index);
8549
+ handleClick$7(uid, index);
8520
8550
  };
8521
- const handleInput$5 = event => {
8551
+ const handleInput$3 = event => {
8522
8552
  const $Target = event.target;
8523
8553
  const value = $Target.value;
8524
8554
  const uid = fromEvent(event);
8525
- handleInput$9(uid, value);
8555
+ handleInput$7(uid, value);
8526
8556
  // TODO
8527
8557
  // TODO use beforeinput event to set value and extension list items at the same time
8528
8558
  // state.$Viewlet.ariaBusy = 'true'
@@ -8611,11 +8641,11 @@ const attachEvents$7 = state => {
8611
8641
  $ListItems,
8612
8642
  $ScrollBar
8613
8643
  } = state;
8614
- $ExtensionHeader.addEventListener(Input, handleInput$5, Capture);
8644
+ $ExtensionHeader.addEventListener(Input, handleInput$3, Capture);
8615
8645
  // @ts-expect-error
8616
8646
  $ExtensionHeader.addEventListener(Click, undefined);
8617
8647
  attachEvents$c($ListItems, {
8618
- [ContextMenu]: handleContextMenu$7,
8648
+ [ContextMenu]: handleContextMenu$6,
8619
8649
  [PointerDown]: handlePointerDown$3,
8620
8650
  [Focus]: handleFocus$5,
8621
8651
  [Scroll]: handleScroll
@@ -8623,7 +8653,7 @@ const attachEvents$7 = state => {
8623
8653
  $ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
8624
8654
  $ListItems.addEventListener(TouchMove, handleTouchMove, Passive);
8625
8655
  $ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
8626
- $ListItems.addEventListener(Wheel, handleWheel$3, Passive);
8656
+ $ListItems.addEventListener(Wheel, handleWheel$2, Passive);
8627
8657
  attachEvents$c($ScrollBar, {
8628
8658
  [PointerDown]: handleScrollBarPointerDown$2
8629
8659
  });
@@ -8790,32 +8820,6 @@ const ViewletImplementations = {
8790
8820
  setFocusedIndex: setFocusedIndex$3
8791
8821
  };
8792
8822
 
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
8823
  const handleResizerPointerMove = event => {
8820
8824
  const {
8821
8825
  clientX
@@ -8850,8 +8854,6 @@ const getPointerDownFunction = event => {
8850
8854
  switch (target.className) {
8851
8855
  case 'Resizer':
8852
8856
  return handleResizerPointerDown;
8853
- case 'KeyBindingsTableWrapper':
8854
- return handleTableClick;
8855
8857
  default:
8856
8858
  return undefined;
8857
8859
  }
@@ -8866,15 +8868,10 @@ const handlePointerDown$2 = event => {
8866
8868
 
8867
8869
  const ViewletkeyBindingsEvents = {
8868
8870
  __proto__: null,
8869
- handleContextMenu: handleContextMenu$7,
8870
- handleInput: handleInput$4,
8871
8871
  handlePointerDown: handlePointerDown$2,
8872
8872
  handleResizerPointerDown,
8873
8873
  handleResizerPointerMove,
8874
- handleResizerPointerUp,
8875
- handleTableClick,
8876
- handleTableDoubleClick,
8877
- handleWheel: handleWheel$3
8874
+ handleResizerPointerUp
8878
8875
  };
8879
8876
 
8880
8877
  const setValue$2 = (state, value) => {
@@ -9456,7 +9453,7 @@ const ViewletLayout = {
9456
9453
  setSashes
9457
9454
  };
9458
9455
 
9459
- const handleContextMenu$6 = event => {
9456
+ const handleContextMenu$5 = event => {
9460
9457
  if (event.defaultPrevented) {
9461
9458
  return;
9462
9459
  }
@@ -9466,7 +9463,7 @@ const handleContextMenu$6 = event => {
9466
9463
  clientY
9467
9464
  } = event;
9468
9465
  const uid = fromEvent(event);
9469
- handleContextMenu$c(uid, clientX, clientY);
9466
+ handleContextMenu$b(uid, clientX, clientY);
9470
9467
  };
9471
9468
 
9472
9469
  // TODO Main should not be bound to Editor -> Lazy load Editor
@@ -9500,7 +9497,7 @@ const attachEvents$5 = state => {
9500
9497
  [DragOver]: handleDragOver$1,
9501
9498
  [DragEnd]: handleDragEnd,
9502
9499
  [DragLeave]: handleDragLeave,
9503
- [ContextMenu]: handleContextMenu$6
9500
+ [ContextMenu]: handleContextMenu$5
9504
9501
  });
9505
9502
  };
9506
9503
  const dispose$7 = state => {};
@@ -9786,7 +9783,7 @@ const handleClickAction$1 = (target, uid) => {
9786
9783
  }
9787
9784
  handleClickAction$2(uid, index, command);
9788
9785
  };
9789
- const handleHeaderClick$2 = event => {
9786
+ const handleHeaderClick$1 = event => {
9790
9787
  const {
9791
9788
  target
9792
9789
  } = event;
@@ -9852,7 +9849,7 @@ const attachEvents$3 = state => {
9852
9849
  $PanelHeader
9853
9850
  } = state;
9854
9851
  attachEvents$c($PanelHeader, {
9855
- [Click]: handleHeaderClick$2
9852
+ [Click]: handleHeaderClick$1
9856
9853
  });
9857
9854
  attachEvents$c($ButtonMaximize, {
9858
9855
  [Click]: handleClickMaximize
@@ -9936,7 +9933,7 @@ const handlePointerDown$1 = event => {
9936
9933
  } = event;
9937
9934
  return ['handleClickAt', clientX, clientY];
9938
9935
  };
9939
- const handleContextMenu$5 = event => {
9936
+ const handleContextMenu$4 = event => {
9940
9937
  preventDefault(event);
9941
9938
  const {
9942
9939
  clientX,
@@ -9961,7 +9958,7 @@ const returnValue$5 = true;
9961
9958
  const ViewletProblemsEvents = {
9962
9959
  __proto__: null,
9963
9960
  handleClearFilterClick,
9964
- handleContextMenu: handleContextMenu$5,
9961
+ handleContextMenu: handleContextMenu$4,
9965
9962
  handleFilterInput,
9966
9963
  handlePointerDown: handlePointerDown$1,
9967
9964
  returnValue: returnValue$5
@@ -10102,7 +10099,6 @@ const activeId$1 = 'QuickPickItemActive';
10102
10099
  * @enum {string}
10103
10100
  */
10104
10101
  const Ids = {
10105
- QuickPickHeader: 'QuickPickHeader',
10106
10102
  QuickPickItems: 'QuickPickItems',
10107
10103
  QuickPick: 'QuickPick'
10108
10104
  };
@@ -10187,7 +10183,7 @@ const attachEvents$2 = state => {
10187
10183
  attachEvents$c($QuickPickItems, {
10188
10184
  [PointerDown]: handlePointerDown
10189
10185
  });
10190
- $QuickPickItems.addEventListener(Wheel, handleWheel$3, Passive);
10186
+ $QuickPickItems.addEventListener(Wheel, handleWheel$2, Passive);
10191
10187
  attachEvents$c($QuickPickInput, {
10192
10188
  [Blur]: handleBlur$2,
10193
10189
  [BeforeInput]: handleBeforeInput
@@ -10452,32 +10448,10 @@ const ViewletScreenCapture = {
10452
10448
  setScreenCapture
10453
10449
  };
10454
10450
 
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
10451
  const handleFocus$2 = () => {
10467
10452
  // TODO send focus event to search view first
10468
10453
  return ['Focus.setFocus', FocusSearchInput];
10469
10454
  };
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
10455
  const handleScrollBarThumbPointerMove = event => {
10482
10456
  const {
10483
10457
  clientY
@@ -10501,99 +10475,6 @@ const handleScrollBarPointerDown$1 = event => {
10501
10475
  startTracking(target, pointerId, handleScrollBarThumbPointerMove, handleScrollBarPointerUp);
10502
10476
  return ['handleScrollBarClick', clientY];
10503
10477
  };
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
10478
  const handleHeaderFocusIn = event => {
10598
10479
  const {
10599
10480
  target
@@ -10604,44 +10485,15 @@ const handleHeaderFocusIn = event => {
10604
10485
  }
10605
10486
  return ['handleFocusIn', key];
10606
10487
  };
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
10488
  const returnValue$4 = true;
10624
10489
 
10625
10490
  const ViewletSearchEvents = {
10626
10491
  __proto__: null,
10627
- handleClick: handleClick$4,
10628
- handleContextMenu: handleContextMenu$4,
10629
- handleExcludeInput,
10630
10492
  handleFocus: handleFocus$2,
10631
- handleHeaderClick: handleHeaderClick$1,
10632
- handleHeaderClick2,
10633
10493
  handleHeaderFocusIn,
10634
- handleIncludeInput,
10635
- handleInput: handleInput$3,
10636
- handleListBlur,
10637
- handleListFocus,
10638
- handleReplaceInput,
10639
10494
  handleScrollBarPointerDown: handleScrollBarPointerDown$1,
10640
10495
  handleScrollBarPointerUp,
10641
10496
  handleScrollBarThumbPointerMove,
10642
- handleSharedInput,
10643
- handleToggleButtonClick,
10644
- handleWheel,
10645
10497
  returnValue: returnValue$4
10646
10498
  };
10647
10499
 
@@ -10886,7 +10738,7 @@ const handleClick$3 = event => {
10886
10738
  if (index === -1) {
10887
10739
  return;
10888
10740
  }
10889
- handleClick$8(uid, index);
10741
+ handleClick$7(uid, index);
10890
10742
  };
10891
10743
  const handleMouseOver = event => {
10892
10744
  const {
@@ -10925,18 +10777,18 @@ const handleInput = event => {
10925
10777
  value
10926
10778
  } = target;
10927
10779
  const uid = fromEvent(event);
10928
- handleInput$9(uid, value);
10780
+ handleInput$7(uid, value);
10929
10781
  };
10930
10782
 
10931
10783
  const ViewletSourceControlEvents = {
10932
10784
  __proto__: null,
10933
10785
  handleClick: handleClick$3,
10934
- handleContextMenu: handleContextMenu$7,
10786
+ handleContextMenu: handleContextMenu$6,
10935
10787
  handleFocus,
10936
10788
  handleInput,
10937
10789
  handleMouseOut,
10938
10790
  handleMouseOver,
10939
- handleWheel: handleWheel$3
10791
+ handleWheel: handleWheel$2
10940
10792
  };
10941
10793
 
10942
10794
  const focus$3 = state => {
@@ -10958,7 +10810,7 @@ const handleClick$2 = event => {
10958
10810
  clientX,
10959
10811
  clientY
10960
10812
  } = event;
10961
- handleClick$8(uid, clientX, clientY);
10813
+ handleClick$7(uid, clientX, clientY);
10962
10814
  };
10963
10815
 
10964
10816
  const ViewletStatusBarEvents = {
@@ -11002,7 +10854,7 @@ const ViewletStatusBar = {
11002
10854
 
11003
10855
  const handleClick$1 = event => {
11004
10856
  const uid = fromEvent(event);
11005
- handleClick$8(uid);
10857
+ handleClick$7(uid);
11006
10858
  };
11007
10859
 
11008
10860
  const ViewletStorageEvents = {
@@ -11385,7 +11237,7 @@ const handleClick = event => {
11385
11237
  } = event;
11386
11238
  const index = getIndex(target);
11387
11239
  const uid = fromEvent(event);
11388
- handleClick$8(uid, button, index);
11240
+ handleClick$7(uid, button, index);
11389
11241
  };
11390
11242
  const getLevelAndIndex = event => {
11391
11243
  const {
@@ -11751,7 +11603,7 @@ const handleScrollBarPointerDown = event => {
11751
11603
  const ViewletInlineDiffEditorEvents = {
11752
11604
  __proto__: null,
11753
11605
  handleScrollBarPointerDown,
11754
- handleWheel: handleWheel$3
11606
+ handleWheel: handleWheel$2
11755
11607
  };
11756
11608
 
11757
11609
  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.53.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",