ywana-core8 0.0.715 → 0.0.717

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.
@@ -9999,14 +9999,15 @@ var CollectionContextProvider = function CollectionContextProvider(props) {
9999
9999
  _props$fetching = props.fetching,
10000
10000
  fetching = _props$fetching === void 0 ? true : _props$fetching,
10001
10001
  field = props.field,
10002
- children = props.children;
10002
+ children = props.children,
10003
+ filtersValue = props.filtersValue;
10003
10004
  var API = CollectionAPI(url, host);
10004
10005
 
10005
10006
  var _useState = useState([]),
10006
10007
  all = _useState[0],
10007
10008
  setAll = _useState[1];
10008
10009
 
10009
- var _useState2 = useState(),
10010
+ var _useState2 = useState(filtersValue),
10010
10011
  filters = _useState2[0],
10011
10012
  setFilters = _useState2[1];
10012
10013
 
@@ -10223,8 +10224,7 @@ var DynamicFormField = function DynamicFormField(props) {
10223
10224
 
10224
10225
  var CollectionFilters = function CollectionFilters(props) {
10225
10226
  var schema = props.schema,
10226
- children = props.children,
10227
- value = props.value;
10227
+ children = props.children;
10228
10228
  var context = useContext(CollectionContext);
10229
10229
  var filters = context.filters;
10230
10230
 
@@ -10233,7 +10233,6 @@ var CollectionFilters = function CollectionFilters(props) {
10233
10233
  setOpen = _useState[1];
10234
10234
 
10235
10235
  useEffect(function () {
10236
- context.setFilters(value);
10237
10236
  var likes = Object.keys(schema).filter(function (id) {
10238
10237
  return schema[id].like === true;
10239
10238
  });
@@ -10394,12 +10393,12 @@ var CollectionPage = function CollectionPage(props) {
10394
10393
  className: "collection-page " + layout
10395
10394
  }, /*#__PURE__*/React.createElement(CollectionContextProvider, {
10396
10395
  host: host,
10397
- url: url
10396
+ url: url,
10397
+ filtersValue: filtersValue
10398
10398
  }, /*#__PURE__*/React.createElement(Header, {
10399
10399
  title: title
10400
10400
  }, actions), canFilter ? /*#__PURE__*/React.createElement(CollectionFilters, {
10401
- schema: schema,
10402
- value: filtersValue
10401
+ schema: schema
10403
10402
  }, customFilters) : null, /*#__PURE__*/React.createElement(CollectionList, {
10404
10403
  itemRenderer: listItemRenderer,
10405
10404
  groupBy: listGroupBy,