@instockng/storefront-ui 1.0.11 → 1.0.13

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.
Files changed (75) hide show
  1. package/dist/components/Checkout.d.ts.map +1 -1
  2. package/dist/components/ShoppingCart.d.ts.map +1 -1
  3. package/dist/contexts/CartContext.d.ts +2 -0
  4. package/dist/contexts/CartContext.d.ts.map +1 -1
  5. package/dist/index10.mjs +70 -70
  6. package/dist/index101.mjs +1 -1
  7. package/dist/index102.mjs +3 -3
  8. package/dist/index103.mjs +3 -3
  9. package/dist/index105.mjs +1 -1
  10. package/dist/index111.mjs +1 -1
  11. package/dist/index29.mjs +1 -1
  12. package/dist/index3.mjs +83 -78
  13. package/dist/index30.mjs +1 -1
  14. package/dist/index31.mjs +1 -1
  15. package/dist/index32.mjs +1 -1
  16. package/dist/index42.mjs +17 -17
  17. package/dist/index43.mjs +2 -2
  18. package/dist/index44.mjs +1 -1
  19. package/dist/index45.mjs +1 -1
  20. package/dist/index46.mjs +1 -1
  21. package/dist/index47.mjs +1 -1
  22. package/dist/index48.mjs +1 -1
  23. package/dist/index49.mjs +1 -1
  24. package/dist/index50.mjs +1 -1
  25. package/dist/index51.mjs +1 -1
  26. package/dist/index52.mjs +1 -1
  27. package/dist/index53.mjs +1 -1
  28. package/dist/index54.mjs +1 -1
  29. package/dist/index58.mjs +2 -2
  30. package/dist/index59.mjs +3 -4
  31. package/dist/index60.mjs +2 -4
  32. package/dist/index61.mjs +5 -2
  33. package/dist/index62.mjs +231 -30
  34. package/dist/index63.mjs +5 -42
  35. package/dist/index64.mjs +127 -228
  36. package/dist/index65.mjs +66 -4
  37. package/dist/index66.mjs +77 -124
  38. package/dist/index67.mjs +26 -65
  39. package/dist/index68.mjs +6 -84
  40. package/dist/index69.mjs +72 -26
  41. package/dist/index70.mjs +3 -8
  42. package/dist/index71.mjs +2 -75
  43. package/dist/index72.mjs +82 -3
  44. package/dist/index73.mjs +54 -2
  45. package/dist/index74.mjs +5 -82
  46. package/dist/index75.mjs +4 -53
  47. package/dist/index76.mjs +178 -5
  48. package/dist/index77.mjs +53 -5
  49. package/dist/index78.mjs +68 -178
  50. package/dist/index79.mjs +31 -50
  51. package/dist/index8.mjs +8 -7
  52. package/dist/index80.mjs +43 -69
  53. package/dist/index81.mjs +2 -2
  54. package/dist/index82.mjs +1 -1
  55. package/dist/index83.mjs +6 -6
  56. package/dist/index84.mjs +2 -2
  57. package/dist/index85.mjs +2 -2
  58. package/dist/index87.mjs +2 -2
  59. package/dist/index88.mjs +2 -2
  60. package/dist/index89.mjs +1 -1
  61. package/dist/index91.mjs +4 -4
  62. package/dist/index92.mjs +3 -3
  63. package/dist/index93.mjs +12 -30
  64. package/dist/index94.mjs +7 -11
  65. package/dist/index95.mjs +30 -3
  66. package/dist/index96.mjs +10 -3
  67. package/dist/index97.mjs +4 -13
  68. package/dist/index98.mjs +4 -7
  69. package/dist/index99.mjs +1 -1
  70. package/dist/test-utils/MockCartProvider.d.ts.map +1 -1
  71. package/package.json +1 -1
  72. package/src/components/Checkout.tsx +9 -1
  73. package/src/components/ShoppingCart.tsx +1 -0
  74. package/src/contexts/CartContext.tsx +51 -24
  75. package/src/test-utils/MockCartProvider.tsx +8 -0
package/dist/index3.mjs CHANGED
@@ -1,145 +1,150 @@
1
1
  'use client';
2
- import { jsxs as H, jsx as K } from "react/jsx-runtime";
3
- import { createContext as Y, useState as d, useRef as h, useEffect as c, useCallback as r, useContext as q } from "react";
2
+ import { jsxs as z, jsx as B } from "react/jsx-runtime";
3
+ import { createContext as J, useState as w, useRef as C, useEffect as c, useCallback as r, useContext as Q } from "react";
4
4
  import "./index18.mjs";
5
- import { useGetCart as B, useCreateCart as J, useAddCartItem as Q, useUpdateCartItem as V, useRemoveCartItem as W, useApplyDiscount as X, useRemoveDiscount as Z, useUpdateCart as $, useCheckoutCart as tt } from "./index29.mjs";
5
+ import { useGetCart as V, useCreateCart as W, useAddCartItem as X, useUpdateCartItem as Z, useRemoveCartItem as $, useApplyDiscount as b, useRemoveDiscount as tt, useUpdateCart as et, useCheckoutCart as rt } from "./index29.mjs";
6
6
  import "@tanstack/react-query";
7
- import { ShoppingCart as et } from "./index8.mjs";
8
- const m = "oms_cart_id", y = Y(null);
9
- function ut({ children: a, brandSlug: v, initialCartId: u, shoppingCartProps: S }) {
10
- const [t, s] = d(u || null), [w, p] = d(!1), [D, g] = d(!1), i = h(!1), f = h(!1);
7
+ import { ShoppingCart as ot } from "./index8.mjs";
8
+ const u = "oms_cart_id", A = J(null);
9
+ function mt({ children: i, brandSlug: s, initialCartId: m, shoppingCartProps: E }) {
10
+ const [t, a] = w(m || null), [p, I] = w(!1), [M, g] = w(!1), y = C(!1), h = C(!1), l = C(!1);
11
11
  c(() => {
12
12
  g(!0);
13
13
  }, []), c(() => {
14
- if (u || i.current) return;
14
+ if (m || y.current) return;
15
+ y.current = !0;
15
16
  const n = new URLSearchParams(window.location.search).get("cartId");
16
17
  if (n) {
17
- s(n);
18
+ a(n);
18
19
  return;
19
20
  }
20
- const C = localStorage.getItem(m);
21
- C && s(C);
22
- }, [u]);
23
- const { data: E, isLoading: M, error: l, refetch: o } = B(t || "", {
21
+ const S = localStorage.getItem(u);
22
+ S && a(S);
23
+ }, [m]);
24
+ const { data: R, isLoading: x, error: f, refetch: o } = V(t || "", {
24
25
  enabled: !!t,
25
26
  retry: !1
26
27
  // Don't retry on failure - cart might be invalid/expired
27
- }), A = J({
28
+ }), d = W({
28
29
  onSuccess: (e) => {
29
30
  if ("error" in e) {
30
31
  console.error("Failed to create cart:", e.error);
31
32
  return;
32
33
  }
33
- s(e.id);
34
+ a(e.id);
34
35
  },
35
36
  onError: (e) => {
36
37
  console.error("Failed to create cart:", e);
37
- }
38
+ },
39
+ retry: 10
38
40
  });
39
41
  c(() => {
40
- if (!i.current && !t && !u) {
41
- i.current = !0;
42
- const e = setTimeout(() => {
43
- i.current && A.mutate(v);
44
- }, 0);
45
- return () => clearTimeout(e);
46
- }
42
+ if (h.current) return;
43
+ h.current = !0;
44
+ const e = setTimeout(() => {
45
+ !(typeof window < "u" ? localStorage.getItem(u) : null) && !m && d.mutate(s);
46
+ }, 150);
47
+ return () => clearTimeout(e);
47
48
  }, []), c(() => {
48
- l && t && !f.current && (f.current = !0, console.warn("Cart fetch failed, clearing invalid cart:", l), Promise.resolve().then(() => {
49
- s(null), typeof window < "u" && localStorage.removeItem(m), f.current = !1;
50
- }));
51
- }, [l, t]);
52
- const x = Q(t || "", {
49
+ f && t && !l.current && (l.current = !0, console.warn("Cart fetch failed, creating new cart:", f), a(null), typeof window < "u" && localStorage.removeItem(u), setTimeout(() => {
50
+ d.mutate(s), l.current = !1;
51
+ }, 100));
52
+ }, [f, t, s]);
53
+ const N = X(t || "", {
53
54
  onSuccess: () => o()
54
- }), P = V(t || "", {
55
+ }), P = Z(t || "", {
55
56
  onSuccess: () => o()
56
- }), R = W(t || "", {
57
+ }), F = $(t || "", {
57
58
  onSuccess: () => o()
58
- }), N = X(t || "", {
59
+ }), T = b(t || "", {
59
60
  onSuccess: () => o()
60
- }), U = Z(t || "", {
61
+ }), U = tt(t || "", {
61
62
  onSuccess: () => o()
62
- }), _ = $(t || "", {
63
- onSuccess: () => o()
64
- }), b = tt(t || "");
63
+ }), _ = et(t || "", {
64
+ onSuccess: () => o(),
65
+ retry: 3
66
+ }), k = rt(t || "");
65
67
  c(() => {
66
- t && typeof window < "u" && localStorage.setItem(m, t);
68
+ t && typeof window < "u" && localStorage.setItem(u, t);
67
69
  }, [t]);
68
- const k = r(
70
+ const L = r(
69
71
  async (e, n) => {
70
72
  if (!t) throw new Error("No cart ID");
71
- await x.mutateAsync({ sku: e, quantity: n });
73
+ await N.mutateAsync({ sku: e, quantity: n });
72
74
  },
73
75
  // eslint-disable-next-line react-hooks/exhaustive-deps
74
76
  [t]
75
- ), F = r(
77
+ ), j = r(
76
78
  async (e, n) => {
77
79
  if (!t) throw new Error("No cart ID");
78
80
  await P.mutateAsync({ itemId: e, quantity: n });
79
81
  },
80
82
  // eslint-disable-next-line react-hooks/exhaustive-deps
81
83
  [t]
82
- ), T = r(
84
+ ), O = r(
83
85
  async (e) => {
84
86
  if (!t) throw new Error("No cart ID");
85
- await R.mutateAsync(e);
87
+ await F.mutateAsync(e);
86
88
  },
87
89
  // eslint-disable-next-line react-hooks/exhaustive-deps
88
90
  [t]
89
- ), j = r(
91
+ ), G = r(
90
92
  async (e) => {
91
93
  if (!t) throw new Error("No cart ID");
92
- await N.mutateAsync({ code: e });
94
+ await T.mutateAsync({ code: e });
93
95
  },
94
96
  // eslint-disable-next-line react-hooks/exhaustive-deps
95
97
  [t]
96
- ), L = r(async () => {
98
+ ), H = r(async () => {
97
99
  if (!t) throw new Error("No cart ID");
98
100
  await U.mutateAsync();
99
- }, [t]), O = r(() => {
100
- s(null), typeof window < "u" && localStorage.removeItem(m);
101
- }, []), z = r(() => {
102
- p(!0);
103
- }, []), I = r(() => {
104
- p(!1);
105
- }, []), G = {
106
- cart: E || null,
101
+ }, [t]), v = r(() => {
102
+ a(null), typeof window < "u" && localStorage.removeItem(u);
103
+ }, []), K = r(() => {
104
+ v(), d.mutate(s);
105
+ }, [s]), Y = r(() => {
106
+ I(!0);
107
+ }, []), D = r(() => {
108
+ I(!1);
109
+ }, []), q = {
110
+ cart: R || null,
107
111
  cartId: t,
108
- isLoading: M,
109
- error: l,
112
+ isLoading: x,
113
+ error: f,
110
114
  updateCartMutation: _,
111
- checkoutMutation: b,
112
- addItem: k,
113
- updateItem: F,
114
- removeItem: T,
115
- applyDiscount: j,
116
- removeDiscount: L,
117
- clearCart: O,
115
+ checkoutMutation: k,
116
+ addItem: L,
117
+ updateItem: j,
118
+ removeItem: O,
119
+ applyDiscount: G,
120
+ removeDiscount: H,
121
+ clearCart: v,
122
+ clearAndCreateNewCart: K,
118
123
  refetch: o,
119
- isOpen: w,
120
- open: z,
121
- close: I
124
+ isOpen: p,
125
+ open: Y,
126
+ close: D
122
127
  };
123
- return /* @__PURE__ */ H(y.Provider, { value: G, children: [
124
- a,
125
- D && /* @__PURE__ */ K(
126
- et,
128
+ return /* @__PURE__ */ z(A.Provider, { value: q, children: [
129
+ i,
130
+ M && /* @__PURE__ */ B(
131
+ ot,
127
132
  {
128
- isOpen: w,
129
- onClose: I,
130
- ...S
133
+ isOpen: p,
134
+ onClose: D,
135
+ ...E
131
136
  }
132
137
  )
133
138
  ] });
134
139
  }
135
- function it() {
136
- const a = q(y);
137
- if (!a)
140
+ function ft() {
141
+ const i = Q(A);
142
+ if (!i)
138
143
  throw new Error("useCart must be used within CartProvider");
139
- return a;
144
+ return i;
140
145
  }
141
146
  export {
142
- y as CartContext,
143
- ut as CartProvider,
144
- it as useCart
147
+ A as CartContext,
148
+ mt as CartProvider,
149
+ ft as useCart
145
150
  };
package/dist/index30.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useMutation as t } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as u } from "./index59.mjs";
3
+ import { useQueryUnwrapped as u } from "./index61.mjs";
4
4
  import { queryKeys as n } from "./index26.mjs";
5
5
  import { confirmOrder as i, fetchOrder as m } from "./index24.mjs";
6
6
  function y(e, r, o) {
package/dist/index31.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as u } from "./index59.mjs";
2
+ import { useQueryUnwrapped as u } from "./index61.mjs";
3
3
  import { queryKeys as t } from "./index26.mjs";
4
4
  import { fetchProductsByBrand as o, fetchProductBySlug as c } from "./index22.mjs";
5
5
  function n(r, e) {
package/dist/index32.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as o } from "./index59.mjs";
2
+ import { useQueryUnwrapped as o } from "./index61.mjs";
3
3
  import { queryKeys as i } from "./index26.mjs";
4
4
  import { fetchDeliveryZones as t } from "./index25.mjs";
5
5
  function p(e, r) {
package/dist/index42.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  'use client';
2
- import a from "./index64.mjs";
3
- import p from "./index65.mjs";
4
- import m from "./index66.mjs";
5
- import i from "./index67.mjs";
6
- import f from "./index68.mjs";
7
- import l from "./index69.mjs";
8
- import c from "./index70.mjs";
9
- import d from "./index71.mjs";
10
- import u from "./index72.mjs";
11
- import { VERSION as x } from "./index73.mjs";
12
- import C from "./index74.mjs";
13
- import A from "./index75.mjs";
14
- import E from "./index76.mjs";
15
- import O from "./index77.mjs";
16
- import S from "./index78.mjs";
17
- import H from "./index79.mjs";
18
- import T from "./index80.mjs";
2
+ import a from "./index62.mjs";
3
+ import p from "./index63.mjs";
4
+ import m from "./index64.mjs";
5
+ import i from "./index65.mjs";
6
+ import f from "./index66.mjs";
7
+ import l from "./index67.mjs";
8
+ import c from "./index68.mjs";
9
+ import d from "./index69.mjs";
10
+ import u from "./index70.mjs";
11
+ import { VERSION as x } from "./index71.mjs";
12
+ import C from "./index72.mjs";
13
+ import A from "./index73.mjs";
14
+ import E from "./index74.mjs";
15
+ import O from "./index75.mjs";
16
+ import S from "./index76.mjs";
17
+ import H from "./index77.mjs";
18
+ import T from "./index78.mjs";
19
19
  function n(o) {
20
20
  const t = new m(o), e = p(m.prototype.request, t);
21
21
  return a.extend(e, m.prototype, t, { allOwnKeys: !0 }), a.extend(e, t, null, { allOwnKeys: !0 }), e.create = function(s) {
package/dist/index43.mjs CHANGED
@@ -2,8 +2,8 @@
2
2
  var p = Object.defineProperty;
3
3
  var k = (r, e, i) => e in r ? p(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i;
4
4
  var h = (r, e, i) => k(r, typeof e != "symbol" ? e + "" : e, i);
5
- import { serialize as j } from "./index62.mjs";
6
- import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index63.mjs";
5
+ import { serialize as j } from "./index79.mjs";
6
+ import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index80.mjs";
7
7
  var v = (r, e) => new Proxy(() => {
8
8
  }, {
9
9
  get(t, s) {
package/dist/index44.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as y, useMutation as m } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as p } from "./index59.mjs";
3
+ import { useQueryUnwrapped as p } from "./index61.mjs";
4
4
  import { createAdminRpcClients as d, authHeaders as c } from "./index21.mjs";
5
5
  import { queryKeys as i } from "./index26.mjs";
6
6
  import { useApiConfig as l } from "./index19.mjs";
package/dist/index45.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as y, useMutation as m } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as b } from "./index59.mjs";
3
+ import { useQueryUnwrapped as b } from "./index61.mjs";
4
4
  import { createAdminRpcClients as u, authHeaders as c } from "./index21.mjs";
5
5
  import { queryKeys as o } from "./index26.mjs";
6
6
  import { useApiConfig as d } from "./index19.mjs";
package/dist/index46.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as p, useMutation as y } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as m } from "./index59.mjs";
3
+ import { useQueryUnwrapped as m } from "./index61.mjs";
4
4
  import { createAdminRpcClients as a, authHeaders as c } from "./index21.mjs";
5
5
  import { queryKeys as i } from "./index26.mjs";
6
6
  import { useApiConfig as d } from "./index19.mjs";
package/dist/index47.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as y, useMutation as v } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as m } from "./index59.mjs";
3
+ import { useQueryUnwrapped as m } from "./index61.mjs";
4
4
  import { createAdminRpcClients as u, authHeaders as c } from "./index21.mjs";
5
5
  import { queryKeys as i } from "./index26.mjs";
6
6
  import { useApiConfig as d } from "./index19.mjs";
package/dist/index48.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as w, useMutation as y } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as d } from "./index59.mjs";
3
+ import { useQueryUnwrapped as d } from "./index61.mjs";
4
4
  import { createAdminRpcClients as i, authHeaders as c } from "./index21.mjs";
5
5
  import { queryKeys as u } from "./index26.mjs";
6
6
  import { useApiConfig as l } from "./index19.mjs";
package/dist/index49.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as d, useMutation as v } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as l } from "./index59.mjs";
3
+ import { useQueryUnwrapped as l } from "./index61.mjs";
4
4
  import { createAdminRpcClients as u, authHeaders as c } from "./index21.mjs";
5
5
  import { queryKeys as s } from "./index26.mjs";
6
6
  import { useApiConfig as y } from "./index19.mjs";
package/dist/index50.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as i } from "./index59.mjs";
2
+ import { useQueryUnwrapped as i } from "./index61.mjs";
3
3
  import { createAdminRpcClients as n, authHeaders as u } from "./index21.mjs";
4
4
  import { queryKeys as m } from "./index26.mjs";
5
5
  import { useApiConfig as a } from "./index19.mjs";
package/dist/index51.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as s } from "./index59.mjs";
2
+ import { useQueryUnwrapped as s } from "./index61.mjs";
3
3
  import { createAdminRpcClients as i, authHeaders as u } from "./index21.mjs";
4
4
  import { queryKeys as c } from "./index26.mjs";
5
5
  import { useApiConfig as d } from "./index19.mjs";
package/dist/index52.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as l, useMutation as y } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as c } from "./index59.mjs";
3
+ import { useQueryUnwrapped as c } from "./index61.mjs";
4
4
  import { createAdminRpcClients as s, authHeaders as o } from "./index21.mjs";
5
5
  import { queryKeys as i } from "./index26.mjs";
6
6
  import { useApiConfig as u } from "./index19.mjs";
package/dist/index53.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as l, useMutation as y } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as C } from "./index59.mjs";
3
+ import { useQueryUnwrapped as C } from "./index61.mjs";
4
4
  import { createAdminRpcClients as c, authHeaders as a } from "./index21.mjs";
5
5
  import { queryKeys as r } from "./index26.mjs";
6
6
  import { useApiConfig as d } from "./index19.mjs";
package/dist/index54.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as y, useMutation as v } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as m } from "./index59.mjs";
3
+ import { useQueryUnwrapped as m } from "./index61.mjs";
4
4
  import { createAdminRpcClients as u, authHeaders as l } from "./index21.mjs";
5
5
  import { queryKeys as o } from "./index26.mjs";
6
6
  import { useApiConfig as c } from "./index19.mjs";
package/dist/index58.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { getDefaultExportFromCjs as d } from "./index60.mjs";
3
- import { __module as v } from "./index61.mjs";
2
+ import { getDefaultExportFromCjs as d } from "./index59.mjs";
3
+ import { __module as v } from "./index60.mjs";
4
4
  v.exports = function(n) {
5
5
  return g(m(n), n);
6
6
  };
package/dist/index59.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  'use client';
2
- import { useQuery as e } from "@tanstack/react-query";
3
- function n(r) {
4
- return e(r);
2
+ function e(t) {
3
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
4
  }
6
5
  export {
7
- n as useQueryUnwrapped
6
+ e as getDefaultExportFromCjs
8
7
  };
package/dist/index60.mjs CHANGED
@@ -1,7 +1,5 @@
1
1
  'use client';
2
- function e(t) {
3
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
4
- }
2
+ var o = { exports: {} };
5
3
  export {
6
- e as getDefaultExportFromCjs
4
+ o as __module
7
5
  };
package/dist/index61.mjs CHANGED
@@ -1,5 +1,8 @@
1
1
  'use client';
2
- var o = { exports: {} };
2
+ import { useQuery as e } from "@tanstack/react-query";
3
+ function n(r) {
4
+ return e(r);
5
+ }
3
6
  export {
4
- o as __module
7
+ n as useQueryUnwrapped
5
8
  };