@lvce-editor/renderer-process 30.17.0 → 30.18.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.
@@ -4039,7 +4039,7 @@ const handleContextMenu$7 = event => {
4039
4039
  preventDefault(event);
4040
4040
  };
4041
4041
  const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom = [], mouseBlocking = false) => {
4042
- if (mouseBlocking) {
4042
+ if (mouseBlocking && !state$3.$BackDrop) {
4043
4043
  const $BackDrop = create$BackDrop();
4044
4044
  $BackDrop.onmousedown = handleBackDropMouseDown;
4045
4045
  $BackDrop.oncontextmenu = handleContextMenu$7;
@@ -5133,11 +5133,11 @@ const ViewletActivityBarEvents = {
5133
5133
  returnValue: returnValue$8
5134
5134
  };
5135
5135
 
5136
- const Events$5 = ViewletActivityBarEvents;
5136
+ const Events$6 = ViewletActivityBarEvents;
5137
5137
 
5138
5138
  const ViewletActivityBar = {
5139
5139
  __proto__: null,
5140
- Events: Events$5
5140
+ Events: Events$6
5141
5141
  };
5142
5142
 
5143
5143
  const executeViewletCommand = (uid, command, ...args) => {
@@ -5284,11 +5284,11 @@ const ViewletAudioEvents = {
5284
5284
  handleAudioError
5285
5285
  };
5286
5286
 
5287
- const Events$4 = ViewletAudioEvents;
5287
+ const Events$5 = ViewletAudioEvents;
5288
5288
 
5289
5289
  const ViewletAudio = {
5290
5290
  __proto__: null,
5291
- Events: Events$4
5291
+ Events: Events$5
5292
5292
  };
5293
5293
 
5294
5294
  const create$p = () => {
@@ -6780,11 +6780,11 @@ const setBounds$2 = (state, x, y, width, height) => {
6780
6780
  const dispose$8 = state => {
6781
6781
  remove$1(state.$Viewlet);
6782
6782
  };
6783
- const Events$3 = ViewletFindWidgetEvents;
6783
+ const Events$4 = ViewletFindWidgetEvents;
6784
6784
 
6785
6785
  const ViewletFindWidget = {
6786
6786
  __proto__: null,
6787
- Events: Events$3,
6787
+ Events: Events$4,
6788
6788
  appendWidget: appendWidget$1,
6789
6789
  create: create$b,
6790
6790
  dispose: dispose$8,
@@ -6940,11 +6940,11 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
6940
6940
  $Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
6941
6941
  $Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
6942
6942
  };
6943
- const Events$2 = ViewletkeyBindingsEvents;
6943
+ const Events$3 = ViewletkeyBindingsEvents;
6944
6944
 
6945
6945
  const ViewletKeyBindings = {
6946
6946
  __proto__: null,
6947
- Events: Events$2,
6947
+ Events: Events$3,
6948
6948
  setColumnWidths,
6949
6949
  setScrollBar,
6950
6950
  setSize,
@@ -8082,11 +8082,11 @@ const ViewletStorageEvents = {
8082
8082
  handleClick: handleClick$1
8083
8083
  };
8084
8084
 
8085
- const Events$1 = ViewletStorageEvents;
8085
+ const Events$2 = ViewletStorageEvents;
8086
8086
 
8087
8087
  const ViewletStorage = {
8088
8088
  __proto__: null,
8089
- Events: Events$1
8089
+ Events: Events$2
8090
8090
  };
8091
8091
 
8092
8092
  const handleClickTab = event => {
@@ -8094,10 +8094,21 @@ const handleClickTab = event => {
8094
8094
  const {
8095
8095
  target
8096
8096
  } = event;
8097
- const index = getNodeIndex(target);
8098
- handleClickTab$2(uid, index);
8097
+ const tab = target.closest?.('.TerminalTab');
8098
+ if (!tab) {
8099
+ return;
8100
+ }
8101
+ const index = getNodeIndex(tab);
8102
+ const shouldDelete = Boolean(target.closest?.('.TerminalTabDeleteButton'));
8103
+ handleClickTab$2(uid, index, shouldDelete);
8104
+ };
8105
+
8106
+ const ViewletTerminalsEvents = {
8107
+ __proto__: null,
8108
+ handleClickTab
8099
8109
  };
8100
8110
 
8111
+ const Events$1 = ViewletTerminalsEvents;
8101
8112
  const create$4 = () => {
8102
8113
  const $Viewlet = document.createElement('div');
8103
8114
  $Viewlet.className = 'Viewlet Terminals';
@@ -8125,6 +8136,7 @@ const setTabsDom = (state, dom) => {
8125
8136
 
8126
8137
  const ViewletTerminals = {
8127
8138
  __proto__: null,
8139
+ Events: Events$1,
8128
8140
  create: create$4,
8129
8141
  setTabsDom
8130
8142
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "30.17.0",
3
+ "version": "30.18.0",
4
4
  "keywords": [
5
5
  "lvce-editor",
6
6
  "renderer-process"