@lvce-editor/main-area-worker 9.74.3 → 9.74.5

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.
@@ -4010,6 +4010,7 @@ const HandleTabDragOver = 31;
4010
4010
  const HandleTabsDragOver = 32;
4011
4011
  const HandleFocus = 33;
4012
4012
  const HandleGroupMouseDown = 34;
4013
+ const HandleCloseButtonMouseDown = 35;
4013
4014
 
4014
4015
  const dragOverlayVirtualDom = {
4015
4016
  childCount: 0,
@@ -4418,6 +4419,7 @@ const renderTabActions = (isDirty, tabIndex, groupIndex) => {
4418
4419
  'data-groupIndex': groupIndex,
4419
4420
  'data-index': tabIndex,
4420
4421
  onClick: HandleClickClose,
4422
+ onMouseDown: HandleCloseButtonMouseDown,
4421
4423
  type: Button$2
4422
4424
  }, dirtyIconNode];
4423
4425
  }
@@ -4428,6 +4430,7 @@ const renderTabActions = (isDirty, tabIndex, groupIndex) => {
4428
4430
  'data-groupIndex': groupIndex,
4429
4431
  'data-index': tabIndex,
4430
4432
  onClick: HandleClickClose,
4433
+ onMouseDown: HandleCloseButtonMouseDown,
4431
4434
  type: Button$2
4432
4435
  }, closeIconNode$1];
4433
4436
  };
@@ -7317,6 +7320,13 @@ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcessFa
7317
7320
  };
7318
7321
  const rpc = await create$8({
7319
7322
  commandMap: {
7323
+ 'MainArea.hasOpenTextEditor': async uid => {
7324
+ const fn = viewletCommandMap['MainArea.hasOpenTextEditor'];
7325
+ if (typeof fn !== 'function') {
7326
+ throw new TypeError('Viewlet getter not found: hasOpenTextEditor');
7327
+ }
7328
+ return fn(uid);
7329
+ },
7320
7330
  'Viewlet.executeViewletCommand': executeViewletCommand
7321
7331
  },
7322
7332
  messagePort: port
@@ -8949,6 +8959,10 @@ const renderEventListeners = () => {
8949
8959
  name: HandleClickClose,
8950
8960
  params: ['handleClickCloseTab', 'event.currentTarget.dataset.groupIndex', 'event.currentTarget.dataset.index'],
8951
8961
  stopPropagation: true
8962
+ }, {
8963
+ name: HandleCloseButtonMouseDown,
8964
+ params: ['handleCloseButtonMouseDown'],
8965
+ stopPropagation: true
8952
8966
  }, {
8953
8967
  name: HandleClickTab,
8954
8968
  params: ['handleClickTab', 'event.currentTarget.dataset.groupIndex', 'event.currentTarget.dataset.index', Button$1]
@@ -9611,6 +9625,7 @@ const commandMap = {
9611
9625
  'MainArea.handleClickCloseTab': wrapSerialCommand(handleClickCloseTab),
9612
9626
  'MainArea.handleClickTab': wrapSerialCommand(handleClickTab),
9613
9627
  'MainArea.handleClickTogglePreview': wrapSerialCommand(handleClickTogglePreview),
9628
+ 'MainArea.handleCloseButtonMouseDown': state => state,
9614
9629
  'MainArea.handleContextMenu': wrapSerialCommand(handleContextMenu),
9615
9630
  'MainArea.handleDoubleClick': wrapSerialCommand(handleDoubleClick),
9616
9631
  'MainArea.handleDragEnd': wrapSerialCommand(resetPointerDown),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-area-worker",
3
- "version": "9.74.3",
3
+ "version": "9.74.5",
4
4
  "description": "Main Area Worker",
5
5
  "repository": {
6
6
  "type": "git",