@panneau/data 4.0.18 → 4.0.27

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/dist/index.d.ts CHANGED
@@ -363,11 +363,11 @@ declare class Base {
363
363
  routes: {};
364
364
  generateUrl: any;
365
365
  };
366
- requestGet(path: any, query?: any, opts?: any): any;
367
- requestPost(path: any, data: any, opts?: any): any;
368
- requestPut(path: any, data: any, opts?: any): any;
369
- requestPatch(path: any, data: any, opts?: any): any;
370
- requestDelete(path: any): any;
366
+ requestGet(path: any, query?: any, opts?: any): Promise<unknown>;
367
+ requestPost(path: any, data: any, opts?: any): Promise<unknown>;
368
+ requestPut(path: any, data: any, opts?: any): Promise<unknown>;
369
+ requestPatch(path: any, data: any, opts?: any): Promise<unknown>;
370
+ requestDelete(path: any): Promise<unknown>;
371
371
  route(route: any, params: any): any;
372
372
  getFullUrl(path: any): any;
373
373
  onError(err: any): any;
@@ -396,16 +396,16 @@ declare class AccountApi {
396
396
  }
397
397
 
398
398
  declare class MediasApi extends Base {
399
- find(id: any): any;
400
- get(query?: {}, page?: number, count?: number): any;
401
- getTrashed(query?: {}, page?: number, count?: number): any;
402
- getTags(query?: {}, count?: number): any;
403
- create(data: any): any;
404
- update(id: any, data: any): any;
405
- trash(id: any): any;
406
- restore(id: any): any;
407
- delete(id: any): any;
408
- replace(id: any, data: any): any;
399
+ find(id: any): Promise<unknown>;
400
+ get(query?: {}, page?: number, count?: number): Promise<unknown>;
401
+ getTrashed(query?: {}, page?: number, count?: number): Promise<unknown>;
402
+ getTags(query?: {}, count?: number): Promise<unknown>;
403
+ create(data: any): Promise<unknown>;
404
+ update(id: any, data: any): Promise<unknown>;
405
+ trash(id: any): Promise<unknown>;
406
+ restore(id: any): Promise<unknown>;
407
+ delete(id: any): Promise<unknown>;
408
+ replace(id: any, data: any): Promise<unknown>;
409
409
  }
410
410
 
411
411
  declare class ResourcesApi {
package/dist/index.js CHANGED
@@ -651,7 +651,7 @@ var useItemsStore = function useItemsStore(store, _ref) {
651
651
  var paginated = page !== null;
652
652
  var queryKey = useMemo(function () {
653
653
  return paginated ? [store, page || 1, count || 12, queryWithoutPage] : [store, query];
654
- }, [paginated, store, page, count, query, queryWithoutPage, getPage, getItems]);
654
+ }, [paginated, store, page, count, query]);
655
655
  var _useQuery = useQuery(_objectSpread(_objectSpread(_objectSpread({
656
656
  queryKey: queryKey,
657
657
  queryFn: function queryFn(_ref3) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/data",
3
- "version": "4.0.18",
3
+ "version": "4.0.27",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -51,18 +51,18 @@
51
51
  "build": "../../scripts/prepare-package.sh --types"
52
52
  },
53
53
  "devDependencies": {
54
- "react": "^19.0.0",
54
+ "react": "^19.2.0",
55
55
  "react-dom": "^19.0.0"
56
56
  },
57
57
  "peerDependencies": {
58
- "react": "^19.0.0",
58
+ "react": "^19.2.0",
59
59
  "react-dom": "^19.0.0"
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.28.6",
63
63
  "@folklore/fetch": "^0.1.21",
64
64
  "@folklore/routes": "^0.2.44",
65
- "@panneau/core": "^4.0.18",
65
+ "@panneau/core": "^4.0.27",
66
66
  "@tanstack/react-query": "^5.29.2",
67
67
  "lodash": "^4.17.21",
68
68
  "query-string": "^9.0.0"
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "411d098e898c68e293dffd633a695042b6fa19ec"
73
+ "gitHead": "48e48752495d69c6b10ddc2c4fe2319d2cd86ff0"
74
74
  }