@lvce-editor/extension-search-view 6.2.0 → 6.4.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.
|
@@ -1282,6 +1282,16 @@ const Publisher = 'Publisher';
|
|
|
1282
1282
|
const MarketplaceLink = 'Marketplace Link';
|
|
1283
1283
|
const Category$1 = 'Category';
|
|
1284
1284
|
const Disabled$1 = 'Disabled';
|
|
1285
|
+
const Featured = 'Featured';
|
|
1286
|
+
const McpServers = 'MCP Servers';
|
|
1287
|
+
const MostPopular = 'Most Popular';
|
|
1288
|
+
const RecentlyPublished = 'Recently Published';
|
|
1289
|
+
const Recommended = 'Recommended';
|
|
1290
|
+
const Updates = 'Updates';
|
|
1291
|
+
const BuiltIn = 'Built-in';
|
|
1292
|
+
const Enabled$1 = 'Enabled';
|
|
1293
|
+
const WorkspaceUnsupported = 'Workspace Unsupported';
|
|
1294
|
+
const SortBy = 'Sort By';
|
|
1285
1295
|
|
|
1286
1296
|
const noExtensionsFound = () => {
|
|
1287
1297
|
return i18nString(NoExtensionsFound);
|
|
@@ -1352,6 +1362,36 @@ const category = () => {
|
|
|
1352
1362
|
const disabled = () => {
|
|
1353
1363
|
return i18nString(Disabled$1);
|
|
1354
1364
|
};
|
|
1365
|
+
const featured = () => {
|
|
1366
|
+
return i18nString(Featured);
|
|
1367
|
+
};
|
|
1368
|
+
const mcpServers = () => {
|
|
1369
|
+
return i18nString(McpServers);
|
|
1370
|
+
};
|
|
1371
|
+
const mostPopular = () => {
|
|
1372
|
+
return i18nString(MostPopular);
|
|
1373
|
+
};
|
|
1374
|
+
const recentlyPublished = () => {
|
|
1375
|
+
return i18nString(RecentlyPublished);
|
|
1376
|
+
};
|
|
1377
|
+
const recommended = () => {
|
|
1378
|
+
return i18nString(Recommended);
|
|
1379
|
+
};
|
|
1380
|
+
const updates = () => {
|
|
1381
|
+
return i18nString(Updates);
|
|
1382
|
+
};
|
|
1383
|
+
const builtIn = () => {
|
|
1384
|
+
return i18nString(BuiltIn);
|
|
1385
|
+
};
|
|
1386
|
+
const enabled = () => {
|
|
1387
|
+
return i18nString(Enabled$1);
|
|
1388
|
+
};
|
|
1389
|
+
const workspaceUnsupported = () => {
|
|
1390
|
+
return i18nString(WorkspaceUnsupported);
|
|
1391
|
+
};
|
|
1392
|
+
const sortBy = () => {
|
|
1393
|
+
return i18nString(SortBy);
|
|
1394
|
+
};
|
|
1355
1395
|
|
|
1356
1396
|
const getFinalDeltaY = (height, itemHeight, itemsLength) => {
|
|
1357
1397
|
const contentHeight = itemsLength * itemHeight;
|
|
@@ -1577,7 +1617,7 @@ const handleChange = async (state, update) => {
|
|
|
1577
1617
|
...update
|
|
1578
1618
|
};
|
|
1579
1619
|
try {
|
|
1580
|
-
const value = fullNewState.searchValue;
|
|
1620
|
+
const value = fullNewState.searchValue.trim();
|
|
1581
1621
|
const {
|
|
1582
1622
|
inputSource
|
|
1583
1623
|
} = fullNewState;
|
|
@@ -2066,6 +2106,7 @@ const getKeyBindings = () => {
|
|
|
2066
2106
|
|
|
2067
2107
|
const Separator = 1;
|
|
2068
2108
|
const None$2 = 0;
|
|
2109
|
+
const SubMenu = 4;
|
|
2069
2110
|
|
|
2070
2111
|
const getMenuEntries = () => {
|
|
2071
2112
|
return [{
|
|
@@ -2118,25 +2159,80 @@ const getMenuEntries = () => {
|
|
|
2118
2159
|
|
|
2119
2160
|
const getMenuEntriesFilter = () => {
|
|
2120
2161
|
return [{
|
|
2121
|
-
command: 'SearchExtensions.
|
|
2162
|
+
command: 'SearchExtensions.filterByFeatured',
|
|
2122
2163
|
flags: None$2,
|
|
2123
|
-
id: '
|
|
2124
|
-
label:
|
|
2164
|
+
id: 'filterByFeatured',
|
|
2165
|
+
label: featured()
|
|
2166
|
+
}, {
|
|
2167
|
+
command: 'SearchExtensions.filterByMcpServers',
|
|
2168
|
+
flags: None$2,
|
|
2169
|
+
id: 'filterByMcpServers',
|
|
2170
|
+
label: mcpServers()
|
|
2171
|
+
}, {
|
|
2172
|
+
command: 'SearchExtensions.filterByMostPopular',
|
|
2173
|
+
flags: None$2,
|
|
2174
|
+
id: 'filterByMostPopular',
|
|
2175
|
+
label: mostPopular()
|
|
2125
2176
|
}, {
|
|
2126
|
-
command: 'SearchExtensions.
|
|
2177
|
+
command: 'SearchExtensions.filterByRecentlyPublished',
|
|
2127
2178
|
flags: None$2,
|
|
2128
|
-
id: '
|
|
2129
|
-
label:
|
|
2179
|
+
id: 'filterByRecentlyPublished',
|
|
2180
|
+
label: recentlyPublished()
|
|
2181
|
+
}, {
|
|
2182
|
+
command: 'SearchExtensions.filterByRecommended',
|
|
2183
|
+
flags: None$2,
|
|
2184
|
+
id: 'filterByRecommended',
|
|
2185
|
+
label: recommended()
|
|
2186
|
+
}, {
|
|
2187
|
+
command: '',
|
|
2188
|
+
flags: Separator,
|
|
2189
|
+
id: 'separator1',
|
|
2190
|
+
label: ''
|
|
2191
|
+
}, {
|
|
2192
|
+
command: 'SearchExtensions.filterByCategory',
|
|
2193
|
+
flags: SubMenu,
|
|
2194
|
+
id: 'filterByCategory',
|
|
2195
|
+
label: category()
|
|
2130
2196
|
}, {
|
|
2131
2197
|
command: 'SearchExtensions.filterByInstalled',
|
|
2132
2198
|
flags: None$2,
|
|
2133
2199
|
id: 'filterByInstalled',
|
|
2134
2200
|
label: installed()
|
|
2201
|
+
}, {
|
|
2202
|
+
command: 'SearchExtensions.filterByUpdates',
|
|
2203
|
+
flags: None$2,
|
|
2204
|
+
id: 'filterByUpdates',
|
|
2205
|
+
label: updates()
|
|
2206
|
+
}, {
|
|
2207
|
+
command: 'SearchExtensions.filterByBuiltin',
|
|
2208
|
+
flags: None$2,
|
|
2209
|
+
id: 'filterByBuiltin',
|
|
2210
|
+
label: builtIn()
|
|
2211
|
+
}, {
|
|
2212
|
+
command: 'SearchExtensions.filterByEnabled',
|
|
2213
|
+
flags: None$2,
|
|
2214
|
+
id: 'filterByEnabled',
|
|
2215
|
+
label: enabled()
|
|
2135
2216
|
}, {
|
|
2136
2217
|
command: 'SearchExtensions.filterByDisabled',
|
|
2137
2218
|
flags: None$2,
|
|
2138
2219
|
id: 'filterByDisabled',
|
|
2139
2220
|
label: disabled()
|
|
2221
|
+
}, {
|
|
2222
|
+
command: 'SearchExtensions.filterByWorkspaceUnsupported',
|
|
2223
|
+
flags: None$2,
|
|
2224
|
+
id: 'filterByWorkspaceUnsupported',
|
|
2225
|
+
label: workspaceUnsupported()
|
|
2226
|
+
}, {
|
|
2227
|
+
command: '',
|
|
2228
|
+
flags: Separator,
|
|
2229
|
+
id: 'separator2',
|
|
2230
|
+
label: ''
|
|
2231
|
+
}, {
|
|
2232
|
+
command: 'SearchExtensions.filterBySortBy',
|
|
2233
|
+
flags: SubMenu,
|
|
2234
|
+
id: 'filterBySortBy',
|
|
2235
|
+
label: sortBy()
|
|
2140
2236
|
}];
|
|
2141
2237
|
};
|
|
2142
2238
|
|
|
@@ -2259,11 +2355,15 @@ const show2 = async (uid, menuId, x, y, args) => {
|
|
|
2259
2355
|
|
|
2260
2356
|
const handleClickFilter = async state => {
|
|
2261
2357
|
const {
|
|
2358
|
+
headerHeight,
|
|
2262
2359
|
uid,
|
|
2360
|
+
width,
|
|
2263
2361
|
x,
|
|
2264
2362
|
y
|
|
2265
2363
|
} = state;
|
|
2266
|
-
|
|
2364
|
+
const menuX = x + width + 80;
|
|
2365
|
+
const menuY = y + headerHeight + 100;
|
|
2366
|
+
await show2(uid, ExtensionSearchFilter, menuX, menuY, {
|
|
2267
2367
|
menuId: ExtensionSearchFilter
|
|
2268
2368
|
});
|
|
2269
2369
|
return state;
|