@panneau/data 3.0.175 → 3.0.178

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.
package/es/index.js CHANGED
@@ -207,8 +207,10 @@ var useItems$2 = function useItems(_ref) {
207
207
  _ref6$data = _ref6.data,
208
208
  items = _ref6$data === void 0 ? [] : _ref6$data,
209
209
  _ref6$pagination = _ref6.pagination,
210
- pagination = _ref6$pagination === void 0 ? null : _ref6$pagination;
211
- var _ref7 = pagination || {},
210
+ pagination = _ref6$pagination === void 0 ? null : _ref6$pagination,
211
+ _ref6$meta = _ref6.meta,
212
+ meta = _ref6$meta === void 0 ? null : _ref6$meta;
213
+ var _ref7 = pagination || meta || {},
212
214
  _ref7$page = _ref7.page,
213
215
  currentPage = _ref7$page === void 0 ? null : _ref7$page,
214
216
  _ref7$last_page = _ref7.last_page,
@@ -652,9 +654,9 @@ var useItemsStore = function useItemsStore(store, _ref) {
652
654
  items = _ref4$data === void 0 ? [] : _ref4$data,
653
655
  _ref4$pagination = _ref4.pagination,
654
656
  pagination = _ref4$pagination === void 0 ? null : _ref4$pagination,
655
- _ref4$metadata = _ref4.metadata,
656
- metadata = _ref4$metadata === void 0 ? null : _ref4$metadata;
657
- var _ref5 = pagination || metadata || {},
657
+ _ref4$meta = _ref4.meta,
658
+ meta = _ref4$meta === void 0 ? null : _ref4$meta;
659
+ var _ref5 = pagination || meta || {},
658
660
  _ref5$page = _ref5.page,
659
661
  currentPage = _ref5$page === void 0 ? null : _ref5$page,
660
662
  _ref5$last_page = _ref5.last_page,
@@ -741,7 +743,6 @@ var useItemsStore = function useItemsStore(store, _ref) {
741
743
  return (_pages$current$k = pages.current[k]) === null || _pages$current$k === void 0 ? void 0 : _pages$current$k.data;
742
744
  })) : finalItems;
743
745
  var finalLoading = isLoading || isFetching || isRefetching;
744
- console.log(isLoading, isFetching, isRefetching, otherProps);
745
746
  return _objectSpread(_objectSpread({}, otherProps), {}, {
746
747
  isLoading: isLoading,
747
748
  isFetching: isFetching,
package/lib/index.js CHANGED
@@ -871,8 +871,10 @@ var useItems$2 = function useItems(_ref) {
871
871
  _ref6$data = _ref6.data,
872
872
  items = _ref6$data === void 0 ? [] : _ref6$data,
873
873
  _ref6$pagination = _ref6.pagination,
874
- pagination = _ref6$pagination === void 0 ? null : _ref6$pagination;
875
- var _ref7 = pagination || {},
874
+ pagination = _ref6$pagination === void 0 ? null : _ref6$pagination,
875
+ _ref6$meta = _ref6.meta,
876
+ meta = _ref6$meta === void 0 ? null : _ref6$meta;
877
+ var _ref7 = pagination || meta || {},
876
878
  _ref7$page = _ref7.page,
877
879
  currentPage = _ref7$page === void 0 ? null : _ref7$page,
878
880
  _ref7$last_page = _ref7.last_page,
@@ -1316,9 +1318,9 @@ var useItemsStore = function useItemsStore(store, _ref) {
1316
1318
  items = _ref4$data === void 0 ? [] : _ref4$data,
1317
1319
  _ref4$pagination = _ref4.pagination,
1318
1320
  pagination = _ref4$pagination === void 0 ? null : _ref4$pagination,
1319
- _ref4$metadata = _ref4.metadata,
1320
- metadata = _ref4$metadata === void 0 ? null : _ref4$metadata;
1321
- var _ref5 = pagination || metadata || {},
1321
+ _ref4$meta = _ref4.meta,
1322
+ meta = _ref4$meta === void 0 ? null : _ref4$meta;
1323
+ var _ref5 = pagination || meta || {},
1322
1324
  _ref5$page = _ref5.page,
1323
1325
  currentPage = _ref5$page === void 0 ? null : _ref5$page,
1324
1326
  _ref5$last_page = _ref5.last_page,
@@ -1405,7 +1407,6 @@ var useItemsStore = function useItemsStore(store, _ref) {
1405
1407
  return (_pages$current$k = pages.current[k]) === null || _pages$current$k === void 0 ? void 0 : _pages$current$k.data;
1406
1408
  })) : finalItems;
1407
1409
  var finalLoading = isLoading || isFetching || isRefetching;
1408
- console.log(isLoading, isFetching, isRefetching, otherProps);
1409
1410
  return _objectSpread(_objectSpread({}, otherProps), {}, {
1410
1411
  isLoading: isLoading,
1411
1412
  isFetching: isFetching,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/data",
3
- "version": "3.0.175",
3
+ "version": "3.0.178",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -56,7 +56,7 @@
56
56
  "@babel/runtime": "^7.12.5",
57
57
  "@folklore/fetch": "^0.1.17",
58
58
  "@folklore/routes": "^0.2.26",
59
- "@panneau/core": "^3.0.175",
59
+ "@panneau/core": "^3.0.176",
60
60
  "@tanstack/react-query": "^5.29.2",
61
61
  "lodash": "^4.17.21",
62
62
  "prop-types": "^15.7.2",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "cb8320f1041e7ced6bcf77dd6d32661950215a92"
68
+ "gitHead": "8001eb333f3ee12b610e93a05bb4aa9e7660141c"
69
69
  }