ingeniuscliq-core 0.2.43 → 0.2.45

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.js CHANGED
@@ -1776,7 +1776,7 @@ const W5 = (e) => {
1776
1776
  }, dy = async (e) => {
1777
1777
  if (!Rl)
1778
1778
  try {
1779
- Yn.get(`${e}/sanctum/csrf-cookie`), Rl = !0;
1779
+ await Yn.get(`${e}/sanctum/csrf-cookie`), Rl = !0;
1780
1780
  } catch (t) {
1781
1781
  return console.error("Failed to fetch CSRF token:", t), !1;
1782
1782
  }
@@ -8,13 +8,19 @@ export declare class CoreProductBuilder implements CoreBuilder {
8
8
  constructor(service?: CoreProductBaseService, initialState?: any);
9
9
  build(): import('zustand').UseBoundStore<Omit<import('zustand').StoreApi<CoreProductStore<CoreProduct, CoreProductCategory>>, "persist"> & {
10
10
  persist: {
11
- setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, CoreProductStore<CoreProduct, CoreProductCategory>>>) => void;
11
+ setOptions: (options: Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, {
12
+ productDetails: CoreProduct | null;
13
+ products: import('../../..').BasePagination<CoreProduct> | null;
14
+ }>>) => void;
12
15
  clearStorage: () => void;
13
16
  rehydrate: () => Promise<void> | void;
14
17
  hasHydrated: () => boolean;
15
18
  onHydrate: (fn: (state: CoreProductStore<CoreProduct, CoreProductCategory>) => void) => () => void;
16
19
  onFinishHydration: (fn: (state: CoreProductStore<CoreProduct, CoreProductCategory>) => void) => () => void;
17
- getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, CoreProductStore<CoreProduct, CoreProductCategory>>>;
20
+ getOptions: () => Partial<import('zustand/middleware').PersistOptions<CoreProductStore<CoreProduct, CoreProductCategory>, {
21
+ productDetails: CoreProduct | null;
22
+ products: import('../../..').BasePagination<CoreProduct> | null;
23
+ }>>;
18
24
  };
19
25
  }>;
20
26
  }
@@ -33,5 +33,5 @@ export interface CoreProductStore<T extends CoreProduct, K extends CoreProductCa
33
33
  fetchProductDetails: (id: string | number) => Promise<BaseApiResponse<T>>;
34
34
  getProductDetails: () => T | null;
35
35
  fetchCategories: (params?: Record<string, any>) => Promise<BaseApiResponsePagination<K>>;
36
- getCategories: () => K | null;
36
+ getCategories: () => BasePagination<K> | null;
37
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingeniuscliq-core",
3
- "version": "0.2.43",
3
+ "version": "0.2.45",
4
4
  "description": "IngeniusCliq Core UI y lógica compartida",
5
5
  "license": "MIT",
6
6
  "type": "module",