@lvce-editor/extension-search-view 2.5.0 → 2.6.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
  };
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.6.0",
4
4
  "description": "Extension Search View Worker",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",