@lvce-editor/quick-pick-worker 4.24.3 → 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,
@@ -5330,10 +5348,6 @@ const serialize = command => {
5330
5348
  };
5331
5349
  };
5332
5350
 
5333
- const invoke = async (applicationId, method, ...args) => {
5334
- return applicationId === undefined ? invoke$3(method, ...args) : invoke$3('Application.execute', applicationId, method, ...args);
5335
- };
5336
-
5337
5351
  const showQuickInput = async ({
5338
5352
  applicationId,
5339
5353
  id,
@@ -5366,8 +5380,6 @@ const showQuickInput = async ({
5366
5380
  }
5367
5381
  };
5368
5382
 
5369
- const QuickPick = 'QuickPick';
5370
-
5371
5383
  const showQuickPick = async ({
5372
5384
  acceptInput = false,
5373
5385
  applicationId,
@@ -5382,7 +5394,7 @@ const showQuickPick = async ({
5382
5394
  promise
5383
5395
  } = registerCallback();
5384
5396
  try {
5385
- await invoke(applicationId, 'Viewlet.openWidget', QuickPick, 'custom', [], id, {
5397
+ await invoke(applicationId, 'Viewlet.openWidget', QuickPick$2, 'custom', [], id, {
5386
5398
  acceptInput: type === 'text' || acceptInput,
5387
5399
  callbackOwner: 'quickPickWorker',
5388
5400
  customItemsId,
@@ -5424,9 +5436,11 @@ const commandMap = {
5424
5436
  'QuickPick.handleScrollBarPointerDown': wrapCommand(handleScrollBarPointerDown),
5425
5437
  'QuickPick.handleScrollBarPointerMove': wrapCommand(handleScrollBarPointerMove),
5426
5438
  'QuickPick.handleScrollBarPointerUp': wrapCommand(handleScrollBarPointerUp),
5439
+ 'QuickPick.handleStatusBarMessagePort': handleStatusBarMessagePort,
5427
5440
  'QuickPick.handleWheel': wrapCommand(handleWheel),
5428
5441
  'QuickPick.initialize': initialize,
5429
5442
  'QuickPick.loadContent': wrapAsyncCommand(loadContentWithContext),
5443
+ 'QuickPick.openStatusBarPicker': openStatusBarPicker,
5430
5444
  'QuickPick.render2': render2,
5431
5445
  'QuickPick.renderEventListeners': renderEventListeners,
5432
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.3",
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"