@lvce-editor/renderer-process 5.0.1 → 6.0.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.
@@ -2677,7 +2677,6 @@ const setHeight = ($Element, height) => {
2677
2677
 
2678
2678
  const FocusDebugInput = 6;
2679
2679
  const FocusEditorRename = 11;
2680
- const FocusExplorer = 13;
2681
2680
  const FocusExplorerEditBox = 14;
2682
2681
  const FocusLocationList = 17;
2683
2682
  const FocusMenu = 18;
@@ -4987,7 +4986,7 @@ const ModuleWorkerAndMessagePort = 8;
4987
4986
  const getData$1 = event => {
4988
4987
  return event.data;
4989
4988
  };
4990
- const attachEvents$d = that => {
4989
+ const attachEvents$c = that => {
4991
4990
  const handleMessage = (...args) => {
4992
4991
  const data = that.getData(...args);
4993
4992
  that.dispatchEvent(new MessageEvent('message', {
@@ -5004,7 +5003,7 @@ class Ipc extends EventTarget {
5004
5003
  constructor(rawIpc) {
5005
5004
  super();
5006
5005
  this._rawIpc = rawIpc;
5007
- attachEvents$d(this);
5006
+ attachEvents$c(this);
5008
5007
  }
5009
5008
  }
5010
5009
  const readyMessage = 'ready';
@@ -5773,11 +5772,11 @@ const ViewletActivityBarEvents = {
5773
5772
  returnValue: returnValue$6
5774
5773
  };
5775
5774
 
5776
- const Events$9 = ViewletActivityBarEvents;
5775
+ const Events$a = ViewletActivityBarEvents;
5777
5776
 
5778
5777
  const ViewletActivityBar = {
5779
5778
  __proto__: null,
5780
- Events: Events$9
5779
+ Events: Events$a
5781
5780
  };
5782
5781
 
5783
5782
  const executeViewletCommand = (uid, command, ...args) => {
@@ -5915,11 +5914,11 @@ const ViewletAudioEvents = {
5915
5914
  handleAudioError
5916
5915
  };
5917
5916
 
5918
- const Events$8 = ViewletAudioEvents;
5917
+ const Events$9 = ViewletAudioEvents;
5919
5918
 
5920
5919
  const ViewletAudio = {
5921
5920
  __proto__: null,
5922
- Events: Events$8
5921
+ Events: Events$9
5923
5922
  };
5924
5923
 
5925
5924
  const create$x = () => {
@@ -6295,7 +6294,7 @@ const ViewletDiffEditor = {
6295
6294
  setScrollBar: setScrollBar$2
6296
6295
  };
6297
6296
 
6298
- const attachEvents$c = ($Node, eventMap) => {
6297
+ const attachEvents$b = ($Node, eventMap) => {
6299
6298
  for (const [key, value] of Object.entries(eventMap)) {
6300
6299
  $Node.addEventListener(key, value);
6301
6300
  }
@@ -6417,17 +6416,17 @@ const create$s = () => {
6417
6416
  $ScrollBarThumb
6418
6417
  };
6419
6418
  };
6420
- const attachEvents$b = state => {
6419
+ const attachEvents$a = state => {
6421
6420
  const {
6422
6421
  $Viewlet,
6423
6422
  $ListItems,
6424
6423
  $ScrollBar
6425
6424
  } = state;
6426
6425
  $Viewlet.addEventListener(Wheel, handleWheel$3, Passive);
6427
- attachEvents$c($ListItems, {
6426
+ attachEvents$b($ListItems, {
6428
6427
  [MouseDown]: handleMousedown
6429
6428
  });
6430
- attachEvents$c($ScrollBar, {
6429
+ attachEvents$b($ScrollBar, {
6431
6430
  [PointerDown]: handleScrollBarPointerDown$3
6432
6431
  });
6433
6432
  };
@@ -6475,7 +6474,7 @@ const setBounds$4 = (state, x, y, width, height) => {
6475
6474
 
6476
6475
  const ViewletEditorCompletion = {
6477
6476
  __proto__: null,
6478
- attachEvents: attachEvents$b,
6477
+ attachEvents: attachEvents$a,
6479
6478
  create: create$s,
6480
6479
  dispose: dispose$c,
6481
6480
  handleError: handleError$6,
@@ -6719,11 +6718,11 @@ const create$p = () => {
6719
6718
  $Viewlet
6720
6719
  };
6721
6720
  };
6722
- const attachEvents$a = state => {
6721
+ const attachEvents$9 = state => {
6723
6722
  const {
6724
6723
  $Viewlet
6725
6724
  } = state;
6726
- attachEvents$c($Viewlet, {
6725
+ attachEvents$b($Viewlet, {
6727
6726
  [PointerDown]: handlePointerDown$5,
6728
6727
  [PointerUp]: handlePointerUp,
6729
6728
  [ContextMenu]: handleContextMenu$7,
@@ -6754,7 +6753,7 @@ const setDom$5 = (state, dom) => {
6754
6753
 
6755
6754
  const ViewletEditorImage = {
6756
6755
  __proto__: null,
6757
- attachEvents: attachEvents$a,
6756
+ attachEvents: attachEvents$9,
6758
6757
  create: create$p,
6759
6758
  setDom: setDom$5,
6760
6759
  setDragging,
@@ -7657,8 +7656,6 @@ const ViewletExplorerEvents = {
7657
7656
  handleWheel: handleWheel$3
7658
7657
  };
7659
7658
 
7660
- const activeId$2 = 'TreeItemActive';
7661
- const focusClassName = 'FocusOutline';
7662
7659
  const create$i = () => {
7663
7660
  const $Viewlet = document.createElement('div');
7664
7661
  $Viewlet.className = 'Viewlet Explorer';
@@ -7669,25 +7666,7 @@ const create$i = () => {
7669
7666
  $Viewlet
7670
7667
  };
7671
7668
  };
7672
- const attachEvents$9 = state => {
7673
- const {
7674
- $Viewlet
7675
- } = state;
7676
- // TODO use the other mouse events that capture automatically
7677
- $Viewlet.addEventListener(MouseEnter, handleMouseEnter, Capture);
7678
- $Viewlet.addEventListener(MouseLeave, handleMouseLeave, Capture);
7679
- $Viewlet.addEventListener(Wheel, handleWheel$3, Passive);
7680
- attachEvents$c($Viewlet, {
7681
- [Blur]: handleBlur$5,
7682
- [Click]: handleClick$6,
7683
- [ContextMenu]: handleContextMenu$5,
7684
- [DragOver]: handleDragOver,
7685
- [DragStart]: handleDragStart$1,
7686
- [Drop]: handleDrop,
7687
- [Focus]: handleFocus$7,
7688
- [PointerDown]: handlePointerDown$4
7689
- });
7690
- };
7669
+ const Events$8 = ViewletExplorerEvents;
7691
7670
  const handleError$3 = (state, message) => {
7692
7671
  object(state);
7693
7672
  string(message);
@@ -7696,59 +7675,6 @@ const handleError$3 = (state, message) => {
7696
7675
  } = state;
7697
7676
  $Viewlet.textContent = message;
7698
7677
  };
7699
- const setFocusedIndex$4 = (state, oldIndex, newIndex, focused) => {
7700
- object(state);
7701
- number(oldIndex);
7702
- number(newIndex);
7703
- const {
7704
- $Viewlet
7705
- } = state;
7706
- switch (oldIndex) {
7707
- case -2:
7708
- break;
7709
- case -1:
7710
- $Viewlet.classList.remove(focusClassName);
7711
- break;
7712
- default:
7713
- const $Dirent = $Viewlet.children[oldIndex];
7714
- if ($Dirent) {
7715
- $Dirent.classList.remove(activeId$2);
7716
- $Dirent.classList.remove(focusClassName);
7717
- $Dirent.removeAttribute('id');
7718
- }
7719
- break;
7720
- }
7721
- switch (newIndex) {
7722
- case -2:
7723
- $Viewlet.classList.remove(focusClassName);
7724
- $Viewlet.removeAttribute(AriaActiveDescendant);
7725
- break;
7726
- case -1:
7727
- if (focused) {
7728
- $Viewlet.classList.add(focusClassName);
7729
- $Viewlet.removeAttribute(AriaActiveDescendant);
7730
- }
7731
- break;
7732
- default:
7733
- if (newIndex >= 0) {
7734
- const $Dirent = $Viewlet.children[newIndex];
7735
- if (!$Dirent) {
7736
- break;
7737
- }
7738
- $Dirent.id = activeId$2;
7739
- $Dirent.classList.add(activeId$2);
7740
- $Viewlet.setAttribute(AriaActiveDescendant, activeId$2);
7741
- if (focused) {
7742
- $Dirent.classList.add(focusClassName);
7743
- }
7744
- }
7745
- break;
7746
- }
7747
- if (focused) {
7748
- $Viewlet.focus();
7749
- send('Focus.setFocus', FocusExplorer);
7750
- }
7751
- };
7752
7678
  const focusInput = (state, id) => {
7753
7679
  const $Input = document.getElementById(id);
7754
7680
  if (!$Input) {
@@ -7787,14 +7713,13 @@ const setDom$4 = (state, dom) => {
7787
7713
 
7788
7714
  const ViewletExplorer = {
7789
7715
  __proto__: null,
7790
- attachEvents: attachEvents$9,
7716
+ Events: Events$8,
7791
7717
  create: create$i,
7792
7718
  dispose: dispose$9,
7793
7719
  focusInput,
7794
7720
  handleError: handleError$3,
7795
7721
  setDom: setDom$4,
7796
- setDropTargets,
7797
- setFocusedIndex: setFocusedIndex$4
7722
+ setDropTargets
7798
7723
  };
7799
7724
 
7800
7725
  const handleIconError = event => {
@@ -7981,7 +7906,7 @@ const attachEvents$8 = state => {
7981
7906
  $ExtensionHeader.addEventListener(Input, handleInput$6, Capture);
7982
7907
  // @ts-expect-error
7983
7908
  $ExtensionHeader.addEventListener(Click, undefined);
7984
- attachEvents$c($ListItems, {
7909
+ attachEvents$b($ListItems, {
7985
7910
  [ContextMenu]: handleContextMenu$5,
7986
7911
  [PointerDown]: handlePointerDown$3,
7987
7912
  [Focus]: handleFocus$6,
@@ -7991,7 +7916,7 @@ const attachEvents$8 = state => {
7991
7916
  $ListItems.addEventListener(TouchMove, handleTouchMove, Passive);
7992
7917
  $ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
7993
7918
  $ListItems.addEventListener(Wheel, handleWheel$3, Passive);
7994
- attachEvents$c($ScrollBar, {
7919
+ attachEvents$b($ScrollBar, {
7995
7920
  [PointerDown]: handleScrollBarPointerDown$2
7996
7921
  });
7997
7922
  };
@@ -8897,15 +8822,15 @@ const attachEvents$7 = state => {
8897
8822
  $SashSideBar,
8898
8823
  $SashPanel
8899
8824
  } = state;
8900
- attachEvents$c($SashSideBar, {
8825
+ attachEvents$b($SashSideBar, {
8901
8826
  [PointerDown]: handleSashPointerDown,
8902
8827
  [DoubleClick]: handleSashDoubleClick
8903
8828
  });
8904
- attachEvents$c($SashPanel, {
8829
+ attachEvents$b($SashPanel, {
8905
8830
  [PointerDown]: handleSashPointerDown,
8906
8831
  [DoubleClick]: handleSashDoubleClick
8907
8832
  });
8908
- attachEvents$c(window, {
8833
+ attachEvents$b(window, {
8909
8834
  [Resize]: handleResize,
8910
8835
  [Focus]: handleFocus$3,
8911
8836
  [Blur]: handleBlur$3,
@@ -8970,7 +8895,7 @@ const attachEvents$6 = state => {
8970
8895
  const {
8971
8896
  $Viewlet
8972
8897
  } = state;
8973
- attachEvents$c($Viewlet, {
8898
+ attachEvents$b($Viewlet, {
8974
8899
  [Drop]: handleDrop,
8975
8900
  [DragOver]: handleDragOver,
8976
8901
  [DragEnd]: handleDragEnd,
@@ -9108,7 +9033,7 @@ const attachEvents$5 = state => {
9108
9033
  const {
9109
9034
  $MainTabs
9110
9035
  } = state;
9111
- attachEvents$c($MainTabs, {
9036
+ attachEvents$b($MainTabs, {
9112
9037
  [MouseDown]: handleTabsMouseDown,
9113
9038
  [ContextMenu]: handleTabsContextMenu,
9114
9039
  [DragStart]: handleDragStart
@@ -9285,13 +9210,13 @@ const attachEvents$4 = state => {
9285
9210
  $ButtonClose,
9286
9211
  $PanelHeader
9287
9212
  } = state;
9288
- attachEvents$c($PanelHeader, {
9213
+ attachEvents$b($PanelHeader, {
9289
9214
  [Click]: handleHeaderClick$2
9290
9215
  });
9291
- attachEvents$c($ButtonMaximize, {
9216
+ attachEvents$b($ButtonMaximize, {
9292
9217
  [Click]: handleClickMaximize
9293
9218
  });
9294
- attachEvents$c($ButtonClose, {
9219
+ attachEvents$b($ButtonClose, {
9295
9220
  [Click]: handleClickClose$1
9296
9221
  });
9297
9222
  };
@@ -9607,11 +9532,11 @@ const attachEvents$3 = state => {
9607
9532
  $QuickPickItems,
9608
9533
  $QuickPickInput
9609
9534
  } = state;
9610
- attachEvents$c($QuickPickItems, {
9535
+ attachEvents$b($QuickPickItems, {
9611
9536
  [PointerDown]: handlePointerDown
9612
9537
  });
9613
9538
  $QuickPickItems.addEventListener(Wheel, handleWheel$3, Passive);
9614
- attachEvents$c($QuickPickInput, {
9539
+ attachEvents$b($QuickPickInput, {
9615
9540
  [Blur]: handleBlur$2,
9616
9541
  [BeforeInput]: handleBeforeInput
9617
9542
  });
@@ -10086,7 +10011,7 @@ const attachEvents$2 = state => {
10086
10011
  const {
10087
10012
  $SideBarTitleArea
10088
10013
  } = state;
10089
- attachEvents$c($SideBarTitleArea, {
10014
+ attachEvents$b($SideBarTitleArea, {
10090
10015
  [Click]: handleHeaderClick
10091
10016
  });
10092
10017
  };
@@ -10659,7 +10584,7 @@ const attachEvents = state => {
10659
10584
  const {
10660
10585
  $Viewlet
10661
10586
  } = state;
10662
- attachEvents$c($Viewlet, {
10587
+ attachEvents$b($Viewlet, {
10663
10588
  [ContextMenu]: handleContextMenu$1
10664
10589
  });
10665
10590
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "5.0.1",
3
+ "version": "6.0.0",
4
4
  "description": "",
5
5
  "main": "dist/diffWorkerMain.js",
6
6
  "type": "module",