@lvce-editor/extension-search-view 5.2.0 → 5.3.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.
@@ -3009,6 +3009,7 @@ const SearchFieldButton = 'SearchFieldButton';
3009
3009
  const SearchFieldButtons = 'SearchFieldButtons';
3010
3010
  const SearchFieldContainer = 'SearchFieldContainer';
3011
3011
  const SearchFieldButtonDisabled = 'SearchFieldButtonDisabled';
3012
+ const NoExtensionsFoundMessage = 'NoExtensionsFoundMessage';
3012
3013
  const Viewlet = 'Viewlet';
3013
3014
 
3014
3015
  const List = 'list';
@@ -3197,6 +3198,14 @@ const getExtensionsVirtualDom = visibleExtensions => {
3197
3198
  return dom;
3198
3199
  };
3199
3200
 
3201
+ const getNoExtensionsFoundVirtualDom = message => {
3202
+ return [{
3203
+ childCount: 1,
3204
+ className: NoExtensionsFoundMessage,
3205
+ type: Div
3206
+ }, text(message)];
3207
+ };
3208
+
3200
3209
  const px = value => {
3201
3210
  return `${value}px`;
3202
3211
  };
@@ -3270,10 +3279,7 @@ const getVisible = state => {
3270
3279
 
3271
3280
  const getContentVirtualDom = (visibleExtensions, message, scrollBarHeight, scrollBarY) => {
3272
3281
  if (message) {
3273
- return [{
3274
- childCount: 1,
3275
- type: Div
3276
- }, text(message)];
3282
+ return getNoExtensionsFoundVirtualDom(message);
3277
3283
  }
3278
3284
  return [{
3279
3285
  childCount: 2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-search-view",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "Extension Search View Worker",
5
5
  "repository": {
6
6
  "type": "git",