@lvce-editor/quick-pick-worker 4.24.2 → 4.24.4

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.
@@ -4398,10 +4398,28 @@ const handleRendererProcessMessagePort = async (port, viewletCommandMap, setAsRe
4398
4398
  }
4399
4399
  };
4400
4400
 
4401
+ const handleStatusBarMessagePort = async port => {
4402
+ await create$8({
4403
+ commandMap: commandMapRef,
4404
+ isMessagePortOpen: true,
4405
+ messagePort: port
4406
+ });
4407
+ };
4408
+
4401
4409
  const initialize = async () => {
4402
4410
  // not needed anymore
4403
4411
  };
4404
4412
 
4413
+ const invoke = async (applicationId, method, ...args) => {
4414
+ return applicationId === undefined ? invoke$3(method, ...args) : invoke$3('Application.execute', applicationId, method, ...args);
4415
+ };
4416
+
4417
+ const QuickPick$2 = 'QuickPick';
4418
+
4419
+ const openStatusBarPicker = async (picker, ...args) => {
4420
+ await invoke(undefined, 'Viewlet.openWidget', QuickPick$2, picker, ...args);
4421
+ };
4422
+
4405
4423
  const getCss = (scrollBarHeight, scrollBarTop, quickPickItemsHeight) => {
4406
4424
  return `.QuickPick {
4407
4425
  --QuickPickItemsHeight: ${quickPickItemsHeight}px;
@@ -4894,7 +4912,7 @@ const Label = 'Label';
4894
4912
  const List = 'List';
4895
4913
  const ListItems = 'ListItems';
4896
4914
  const MaskIcon = 'MaskIcon';
4897
- const QuickPick$2 = 'QuickPick';
4915
+ const QuickPick$1 = 'QuickPick';
4898
4916
  const QuickPickHeader = 'QuickPickHeader';
4899
4917
  const QuickPickHighlight = 'QuickPickHighlight';
4900
4918
  const QuickPickItem = 'QuickPickItem';
@@ -4919,7 +4937,7 @@ const HandleScrollbarPointerDown = 'handleScrollbarPointerDown';
4919
4937
  const HandleScrollbarPointerMove = 'handleScrollbarPointerMove';
4920
4938
  const HandleScrollbarPointerUp = 'handleScrollbarPointerUp';
4921
4939
 
4922
- const QuickPick$1 = 'QuickPick';
4940
+ const QuickPick = 'QuickPick';
4923
4941
  const QuickPickItems = 'QuickPickItems';
4924
4942
  const QuickPickItemActive = 'QuickPickItemActive';
4925
4943
 
@@ -5119,8 +5137,8 @@ const getQuickPickVirtualDom = (visibleItems, scrollBarHeight, scrollBarTop, pla
5119
5137
  return [{
5120
5138
  ariaLabel: quickOpen$1,
5121
5139
  childCount: 1,
5122
- className: mergeClassNames(Viewlet, QuickPick$2),
5123
- id: QuickPick$1,
5140
+ className: mergeClassNames(Viewlet, QuickPick$1),
5141
+ id: QuickPick,
5124
5142
  type: Div
5125
5143
  }, ...getQuickPickHeaderVirtualDom(placeholder, inputAriaLabel, true)];
5126
5144
  }
@@ -5130,8 +5148,8 @@ const getQuickPickVirtualDom = (visibleItems, scrollBarHeight, scrollBarTop, pla
5130
5148
  return [{
5131
5149
  ariaLabel: quickOpen$1,
5132
5150
  childCount: 2,
5133
- className: mergeClassNames(Viewlet, QuickPick$2),
5134
- id: QuickPick$1,
5151
+ className: mergeClassNames(Viewlet, QuickPick$1),
5152
+ id: QuickPick,
5135
5153
  type: Div
5136
5154
  }, ...getQuickPickHeaderVirtualDom(placeholder, inputAriaLabel), {
5137
5155
  ariaActivedescendant: QuickPickItemActive,
@@ -5258,7 +5276,9 @@ const renderEventListeners = () => {
5258
5276
  }, {
5259
5277
  name: HandleScrollbarPointerDown,
5260
5278
  params: ['handleScrollBarPointerDown', 'event.clientY', 'event.pointerId'],
5261
- preventDefault: true
5279
+ preventDefault: true,
5280
+ stopPropagation: true,
5281
+ trackPointerEvents: [HandleScrollbarPointerMove, HandleScrollbarPointerUp]
5262
5282
  }, {
5263
5283
  name: HandleScrollbarPointerMove,
5264
5284
  params: ['handleScrollBarPointerMove', 'event.clientY', 'event.pointerId'],
@@ -5328,10 +5348,6 @@ const serialize = command => {
5328
5348
  };
5329
5349
  };
5330
5350
 
5331
- const invoke = async (applicationId, method, ...args) => {
5332
- return applicationId === undefined ? invoke$3(method, ...args) : invoke$3('Application.execute', applicationId, method, ...args);
5333
- };
5334
-
5335
5351
  const showQuickInput = async ({
5336
5352
  applicationId,
5337
5353
  id,
@@ -5364,8 +5380,6 @@ const showQuickInput = async ({
5364
5380
  }
5365
5381
  };
5366
5382
 
5367
- const QuickPick = 'QuickPick';
5368
-
5369
5383
  const showQuickPick = async ({
5370
5384
  acceptInput = false,
5371
5385
  applicationId,
@@ -5380,7 +5394,7 @@ const showQuickPick = async ({
5380
5394
  promise
5381
5395
  } = registerCallback();
5382
5396
  try {
5383
- await invoke(applicationId, 'Viewlet.openWidget', QuickPick, 'custom', [], id, {
5397
+ await invoke(applicationId, 'Viewlet.openWidget', QuickPick$2, 'custom', [], id, {
5384
5398
  acceptInput: type === 'text' || acceptInput,
5385
5399
  callbackOwner: 'quickPickWorker',
5386
5400
  customItemsId,
@@ -5422,9 +5436,11 @@ const commandMap = {
5422
5436
  'QuickPick.handleScrollBarPointerDown': wrapCommand(handleScrollBarPointerDown),
5423
5437
  'QuickPick.handleScrollBarPointerMove': wrapCommand(handleScrollBarPointerMove),
5424
5438
  'QuickPick.handleScrollBarPointerUp': wrapCommand(handleScrollBarPointerUp),
5439
+ 'QuickPick.handleStatusBarMessagePort': handleStatusBarMessagePort,
5425
5440
  'QuickPick.handleWheel': wrapCommand(handleWheel),
5426
5441
  'QuickPick.initialize': initialize,
5427
5442
  'QuickPick.loadContent': wrapAsyncCommand(loadContentWithContext),
5443
+ 'QuickPick.openStatusBarPicker': openStatusBarPicker,
5428
5444
  'QuickPick.render2': render2,
5429
5445
  'QuickPick.renderEventListeners': renderEventListeners,
5430
5446
  'QuickPick.selectCurrentIndex': serialize(wrapCommand(selectCurrentIndex)),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/quick-pick-worker",
3
- "version": "4.24.2",
3
+ "version": "4.24.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/lvce-editor/quick-pick-worker.git"