@blocklet/list 0.12.49 → 0.12.50

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.
@@ -23,7 +23,9 @@ const propTypes = {
23
23
  onFilterChange: _propTypes.default.func,
24
24
  onSearchSelect: _propTypes.default.func,
25
25
  locale: _propTypes.default.oneOf(['zh', 'en']),
26
- baseSearch: _propTypes.default.bool
26
+ baseSearch: _propTypes.default.bool,
27
+ // sometimes blocklet list can be rendered only before the category is fetched
28
+ fetchCategoryDelay: _propTypes.default.number
27
29
  };
28
30
  exports.propTypes = propTypes;
29
31
  const defaultProps = {
@@ -38,6 +40,7 @@ const defaultProps = {
38
40
  },
39
41
  wrapChildren: children => children,
40
42
  extraFilter: list => list,
41
- baseSearch: false
43
+ baseSearch: false,
44
+ fetchCategoryDelay: 0
42
45
  };
43
46
  exports.defaultProps = defaultProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/list",
3
- "version": "0.12.49",
3
+ "version": "0.12.50",
4
4
  "description": "Common ux components of blocklet",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -83,5 +83,5 @@
83
83
  "prettier": "^2.7.1",
84
84
  "vite": "^4.4.9"
85
85
  },
86
- "gitHead": "dbd8f7da7a2e562913826a76e795b9e3b5112833"
86
+ "gitHead": "af46f3ffab375a71fdd9ebfff2632f434c21c93e"
87
87
  }