@lvce-editor/file-search-worker 4.4.0 → 4.5.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.
@@ -858,11 +858,6 @@ const WebWorkerRpcClient = {
858
858
  create: create$3
859
859
  };
860
860
 
861
- const User = 1;
862
- const Script = 2;
863
-
864
- const minimumSliderSize = 20;
865
-
866
861
  const RendererWorker = 1;
867
862
 
868
863
  const rpcs = Object.create(null);
@@ -879,6 +874,20 @@ const invoke$1 = (method, ...params) => {
879
874
  return rpc.invoke(method, ...params);
880
875
  };
881
876
 
877
+ const closeWidget = async id => {
878
+ await invoke$1('Viewlet.closeWidget', id);
879
+ };
880
+
881
+ const close = async state => {
882
+ await closeWidget(state.uid);
883
+ return state;
884
+ };
885
+
886
+ const User = 1;
887
+ const Script = 2;
888
+
889
+ const minimumSliderSize = 20;
890
+
882
891
  const handleError = async (error, notify = true, prefix = '') => {
883
892
  console.error(error);
884
893
  };
@@ -2090,7 +2099,7 @@ const focusPrevious = state => {
2090
2099
  return focusIndex(state, previousIndex);
2091
2100
  };
2092
2101
 
2093
- const commandIds = ['dispose', 'focusFirst', 'focusIndex', 'focusLast', 'focusNext', 'focusPrevious', 'handleBeforeInput', 'handleBlur', 'handleClickAt', 'handleFocus', 'handleInput', 'handleWheel', 'renderEventListeners', 'selectCurrentIndex', 'selectIndex', 'selectItem', 'setValue'];
2102
+ const commandIds = ['close', 'dispose', 'focusFirst', 'focusIndex', 'focusLast', 'focusNext', 'focusPrevious', 'handleBeforeInput', 'handleBlur', 'handleClickAt', 'handleFocus', 'handleInput', 'handleWheel', 'renderEventListeners', 'selectCurrentIndex', 'selectIndex', 'selectItem', 'setValue'];
2094
2103
 
2095
2104
  const getCommandIds = () => {
2096
2105
  return commandIds;
@@ -2328,10 +2337,6 @@ const handleBlur$1 = async state => {
2328
2337
  return state;
2329
2338
  };
2330
2339
 
2331
- const closeWidget = async id => {
2332
- await invoke$1('Viewlet.closeWidget', id);
2333
- };
2334
-
2335
2340
  const getPick = (items, index) => {
2336
2341
  array(items);
2337
2342
  number(index);
@@ -2961,7 +2966,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2961
2966
  parent.childCount++;
2962
2967
  dom.push({
2963
2968
  type: Div$1,
2964
- className: `QuickPickMaskIcon MaskIcon MaskIcon${icon}`,
2969
+ className: mergeClassNames(`QuickPickMaskIcon`, 'MaskIcon', `MaskIcon${icon}`),
2965
2970
  childCount: 0
2966
2971
  });
2967
2972
  }
@@ -2978,6 +2983,7 @@ const getQuickPickItemVirtualDom = visibleItem => {
2978
2983
  };
2979
2984
 
2980
2985
  const getQuickPickNoResultsVirtualDom = () => {
2986
+ const noResults$1 = noResults();
2981
2987
  return [{
2982
2988
  type: Div$1,
2983
2989
  className: 'QuickPickItem QuickPickItemActive QuickPickStatus',
@@ -2986,7 +2992,7 @@ const getQuickPickNoResultsVirtualDom = () => {
2986
2992
  type: Div$1,
2987
2993
  className: Label,
2988
2994
  childCount: 1
2989
- }, text('No Results')];
2995
+ }, text(noResults$1)];
2990
2996
  };
2991
2997
 
2992
2998
  const getQuickPickItemsVirtualDom = visibleItems => {
@@ -3166,6 +3172,7 @@ const wrapCommand = fn => {
3166
3172
 
3167
3173
  const commandMap = {
3168
3174
  'QuickPick.addMenuEntries': add,
3175
+ 'QuickPick.close': close,
3169
3176
  'QuickPick.create2': create,
3170
3177
  'QuickPick.dispose': dispose,
3171
3178
  'QuickPick.focusFirst': wrapCommand(focusFirst),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-search-worker",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "text-search"