@lvce-editor/extension-search-view 2.5.0 → 2.7.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.
@@ -1083,7 +1083,7 @@ const sortExtensions = extensions => {
1083
1083
  return toSorted(extensions, compareExtension);
1084
1084
  };
1085
1085
 
1086
- const getExtensions = async (extensions, parsedValue, platform, assetDir = '') => {
1086
+ const getExtensions = async (extensions, parsedValue, platform, assetDir) => {
1087
1087
  const filteredExtensions = [];
1088
1088
  for (const extension of extensions) {
1089
1089
  if (matchesParsedValue(extension, parsedValue)) {
@@ -1191,32 +1191,32 @@ const set$1 = (uid, oldState, newState) => {
1191
1191
  };
1192
1192
  };
1193
1193
 
1194
- const create = (id, uri, x, y, width, height, platform) => {
1194
+ const create = (id, uri, x, y, width, height, platform, assetDir) => {
1195
1195
  const state = {
1196
- searchValue: '',
1197
- minLineY: 0,
1198
- maxLineY: 0,
1196
+ allExtensions: [],
1197
+ assetDir,
1198
+ deltaY: 0,
1199
+ finalDeltaY: 0,
1200
+ focusedIndex: 0,
1201
+ handleOffset: 0,
1202
+ headerHeight: 41,
1203
+ height,
1199
1204
  itemHeight: 72,
1200
1205
  items: [],
1201
- height,
1206
+ maxLineY: 0,
1202
1207
  message: '',
1203
- allExtensions: [],
1208
+ minimumSliderSize: 0,
1209
+ minLineY: 0,
1210
+ negativeMargin: 0,
1204
1211
  placeholder: '',
1205
1212
  platform,
1206
- finalDeltaY: 0,
1207
- focusedIndex: 0,
1208
- minimumSliderSize: 0,
1209
- deltaY: 0,
1213
+ scrollBarActive: false,
1210
1214
  scrollBarHeight: 0,
1211
- width,
1215
+ searchValue: '',
1212
1216
  size: 0,
1213
- negativeMargin: 0,
1214
- scrollBarActive: false,
1217
+ width,
1215
1218
  x,
1216
- y,
1217
- handleOffset: 0,
1218
- assetDir: '',
1219
- headerHeight: 41
1219
+ y
1220
1220
  };
1221
1221
  set$1(id, state, state);
1222
1222
  };
@@ -1410,7 +1410,7 @@ const getActions = () => {
1410
1410
  }];
1411
1411
  };
1412
1412
 
1413
- const commandIds = ['clearSearchResults', 'closeSuggest', 'closeSuggest', 'focusFirst', 'focusLast', 'focusNext', 'focusNextPage', 'focusPrevious', 'focusPreviousPage', 'handleBlur', 'handleBlur', 'handleBlur', 'handleContextMenu', 'handleDisable', 'handleFocus', 'handleFocus', 'handleInput', 'handleInstall', 'handleScrollBarCaptureLost', 'handleScrollBarClick', 'handleScrollBarMove', 'handleUninstall', 'handleWheel', 'openSuggest', 'openSuggest', 'render', 'saveState', 'scrollDown', 'selectIndex', 'setDeltaY', 'toggleSuggest', 'toggleSuggest'];
1413
+ const commandIds = ['clearSearchResults', 'closeSuggest', 'focusFirst', 'focusLast', 'focusNext', 'focusNextPage', 'focusPrevious', 'focusPreviousPage', 'handleBlur', 'handleClick', 'handleContextMenu', 'handleDisable', 'handleFocus', 'handleInput', 'handleInstall', 'handleScrollBarCaptureLost', 'handleScrollBarClick', 'handleScrollBarMove', 'handleUninstall', 'handleWheel', 'openSuggest', 'render', 'saveState', 'scrollDown', 'selectIndex', 'setDeltaY', 'toggleSuggest'];
1414
1414
 
1415
1415
  const getCommandIds = () => {
1416
1416
  return commandIds;
@@ -1473,8 +1473,8 @@ const getKeyBindings = () => {
1473
1473
  }];
1474
1474
  };
1475
1475
 
1476
- const handleBlur = () => {
1477
- // TODO
1476
+ const handleBlur = state => {
1477
+ return state;
1478
1478
  };
1479
1479
 
1480
1480
  const RendererWorker = 1;
@@ -1550,8 +1550,9 @@ const setFocus = async focusId => {
1550
1550
  await invoke('Focus.setFocus', focusId);
1551
1551
  };
1552
1552
 
1553
- const handleFocus = async () => {
1553
+ const handleFocus = async state => {
1554
1554
  await setFocus(FocusExtensions);
1555
+ return state;
1555
1556
  };
1556
1557
 
1557
1558
  // TODO show error / warning when installment fails / times out
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-search-view",
3
- "version": "2.5.0",
3
+ "version": "2.7.0",
4
4
  "description": "Extension Search View Worker",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",