@lvce-editor/extension-search-view 7.13.2 → 7.14.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.
|
@@ -1770,7 +1770,6 @@ const Installing$1 = 'Installing';
|
|
|
1770
1770
|
const Uninstalling$1 = 'Uninstalling';
|
|
1771
1771
|
const InstallAnotherVersion = 'Install Another Version';
|
|
1772
1772
|
const SearchExtensionsInMarketplace = 'Search Extensions in Marketplace';
|
|
1773
|
-
const ViewsAndMoreActions = 'Views and more Actions...';
|
|
1774
1773
|
const Extensions$2 = 'Extensions';
|
|
1775
1774
|
const Installed$1 = 'Installed';
|
|
1776
1775
|
const Marketplace = 'Marketplace';
|
|
@@ -1873,9 +1872,6 @@ const copyExtensionId$1 = () => {
|
|
|
1873
1872
|
const searchExtensionsInMarketPlace = () => {
|
|
1874
1873
|
return i18nString(SearchExtensionsInMarketplace);
|
|
1875
1874
|
};
|
|
1876
|
-
const viewsAndMoreActions = () => {
|
|
1877
|
-
return i18nString(ViewsAndMoreActions);
|
|
1878
|
-
};
|
|
1879
1875
|
const installed = () => {
|
|
1880
1876
|
return i18nString(Installed$1);
|
|
1881
1877
|
};
|
|
@@ -1955,7 +1951,6 @@ const HandleInputBlur = 24;
|
|
|
1955
1951
|
const ClearAll = 'ClearAll';
|
|
1956
1952
|
const Filter = 'Filter';
|
|
1957
1953
|
const Refresh = 'Refresh';
|
|
1958
|
-
const Ellipsis = 'Ellipsis';
|
|
1959
1954
|
|
|
1960
1955
|
const getInputActions = hasValue => {
|
|
1961
1956
|
const clearEnabled = hasValue;
|
|
@@ -2689,13 +2684,18 @@ const addFilter = (searchValue, filter) => {
|
|
|
2689
2684
|
}
|
|
2690
2685
|
return `${searchValue.trim()} ${filter}`.trim();
|
|
2691
2686
|
};
|
|
2692
|
-
const
|
|
2687
|
+
const filterByValueWithContext = async (context, filter) => {
|
|
2693
2688
|
const {
|
|
2694
2689
|
searchValue
|
|
2695
2690
|
} = context.getState();
|
|
2696
|
-
const value = addFilter(searchValue,
|
|
2691
|
+
const value = addFilter(searchValue, filter);
|
|
2697
2692
|
await handleInputWithContext(context, value, Script);
|
|
2698
2693
|
};
|
|
2694
|
+
const createFilterCommand = filter => {
|
|
2695
|
+
return context => filterByValueWithContext(context, filter);
|
|
2696
|
+
};
|
|
2697
|
+
|
|
2698
|
+
const filterByMostPopularWithContext = createFilterCommand(MostPopular);
|
|
2699
2699
|
|
|
2700
2700
|
// TODO optimize this function to return the minimum number
|
|
2701
2701
|
// of visible items needed, e.g. when not scrolled 5 items with
|
|
@@ -2873,11 +2873,6 @@ const getActions = () => {
|
|
|
2873
2873
|
icon: Refresh,
|
|
2874
2874
|
id: refresh(),
|
|
2875
2875
|
type: Button
|
|
2876
|
-
}, {
|
|
2877
|
-
command: '',
|
|
2878
|
-
icon: Ellipsis,
|
|
2879
|
-
id: viewsAndMoreActions(),
|
|
2880
|
-
type: Button
|
|
2881
2876
|
}];
|
|
2882
2877
|
};
|
|
2883
2878
|
|
|
@@ -3031,12 +3026,12 @@ const getMenuEntriesList = (builtin, disabled = false, status) => {
|
|
|
3031
3026
|
|
|
3032
3027
|
const getMenuEntriesFilter = () => {
|
|
3033
3028
|
return [{
|
|
3034
|
-
command: '
|
|
3029
|
+
command: 'Extensions.filterByFeatured',
|
|
3035
3030
|
flags: None$1,
|
|
3036
3031
|
id: 'filterByFeatured',
|
|
3037
3032
|
label: featured()
|
|
3038
3033
|
}, {
|
|
3039
|
-
command: '
|
|
3034
|
+
command: 'Extensions.filterByMcpServers',
|
|
3040
3035
|
flags: None$1,
|
|
3041
3036
|
id: 'filterByMcpServers',
|
|
3042
3037
|
label: mcpServers()
|
|
@@ -3046,12 +3041,12 @@ const getMenuEntriesFilter = () => {
|
|
|
3046
3041
|
id: 'filterByMostPopular',
|
|
3047
3042
|
label: mostPopular()
|
|
3048
3043
|
}, {
|
|
3049
|
-
command: '
|
|
3044
|
+
command: 'Extensions.filterByRecentlyPublished',
|
|
3050
3045
|
flags: None$1,
|
|
3051
3046
|
id: 'filterByRecentlyPublished',
|
|
3052
3047
|
label: recentlyPublished()
|
|
3053
3048
|
}, {
|
|
3054
|
-
command: '
|
|
3049
|
+
command: 'Extensions.filterByRecommended',
|
|
3055
3050
|
flags: None$1,
|
|
3056
3051
|
id: 'filterByRecommended',
|
|
3057
3052
|
label: recommended()
|
|
@@ -3066,32 +3061,32 @@ const getMenuEntriesFilter = () => {
|
|
|
3066
3061
|
id: 'filterByCategory',
|
|
3067
3062
|
label: category()
|
|
3068
3063
|
}, {
|
|
3069
|
-
command: '
|
|
3064
|
+
command: 'Extensions.filterByInstalled',
|
|
3070
3065
|
flags: None$1,
|
|
3071
3066
|
id: 'filterByInstalled',
|
|
3072
3067
|
label: installed()
|
|
3073
3068
|
}, {
|
|
3074
|
-
command: '
|
|
3069
|
+
command: 'Extensions.filterByUpdates',
|
|
3075
3070
|
flags: None$1,
|
|
3076
3071
|
id: 'filterByUpdates',
|
|
3077
3072
|
label: updates()
|
|
3078
3073
|
}, {
|
|
3079
|
-
command: '
|
|
3074
|
+
command: 'Extensions.filterByBuiltin',
|
|
3080
3075
|
flags: None$1,
|
|
3081
3076
|
id: 'filterByBuiltin',
|
|
3082
3077
|
label: builtIn()
|
|
3083
3078
|
}, {
|
|
3084
|
-
command: '
|
|
3079
|
+
command: 'Extensions.filterByEnabled',
|
|
3085
3080
|
flags: None$1,
|
|
3086
3081
|
id: 'filterByEnabled',
|
|
3087
3082
|
label: enabled()
|
|
3088
3083
|
}, {
|
|
3089
|
-
command: '
|
|
3084
|
+
command: 'Extensions.filterByDisabled',
|
|
3090
3085
|
flags: None$1,
|
|
3091
3086
|
id: 'filterByDisabled',
|
|
3092
3087
|
label: disabled()
|
|
3093
3088
|
}, {
|
|
3094
|
-
command: '
|
|
3089
|
+
command: 'Extensions.filterByWorkspaceUnsupported',
|
|
3095
3090
|
flags: None$1,
|
|
3096
3091
|
id: 'filterByWorkspaceUnsupported',
|
|
3097
3092
|
label: workspaceUnsupported()
|
|
@@ -5179,7 +5174,17 @@ const commandMap = {
|
|
|
5179
5174
|
'SearchExtensions.dispose': dispose,
|
|
5180
5175
|
'SearchExtensions.enable': wrapCommand(enable$1),
|
|
5181
5176
|
'SearchExtensions.enableWorkspace': wrapCommand(enableWorkspace),
|
|
5177
|
+
'SearchExtensions.filterByBuiltin': wrapAsyncCommand(createFilterCommand(Builtin)),
|
|
5178
|
+
'SearchExtensions.filterByDisabled': wrapAsyncCommand(createFilterCommand(Disabled$2)),
|
|
5179
|
+
'SearchExtensions.filterByEnabled': wrapAsyncCommand(createFilterCommand(Enabled$1)),
|
|
5180
|
+
'SearchExtensions.filterByFeatured': wrapAsyncCommand(createFilterCommand(Featured)),
|
|
5181
|
+
'SearchExtensions.filterByInstalled': wrapAsyncCommand(createFilterCommand(Installed)),
|
|
5182
|
+
'SearchExtensions.filterByMcpServers': wrapAsyncCommand(createFilterCommand(McpServers)),
|
|
5182
5183
|
'SearchExtensions.filterByMostPopular': wrapAsyncCommand(filterByMostPopularWithContext),
|
|
5184
|
+
'SearchExtensions.filterByRecentlyPublished': wrapAsyncCommand(createFilterCommand(RecentlyPublished)),
|
|
5185
|
+
'SearchExtensions.filterByRecommended': wrapAsyncCommand(createFilterCommand(Recommended)),
|
|
5186
|
+
'SearchExtensions.filterByUpdates': wrapAsyncCommand(createFilterCommand(Outdated)),
|
|
5187
|
+
'SearchExtensions.filterByWorkspaceUnsupported': wrapAsyncCommand(createFilterCommand(WorkspaceUnsupported)),
|
|
5183
5188
|
'SearchExtensions.focusFirst': wrapCommand(focusFirst),
|
|
5184
5189
|
'SearchExtensions.focusIndex': wrapCommand(focusIndex),
|
|
5185
5190
|
'SearchExtensions.focusLast': wrapCommand(focusLast),
|