@instockng/storefront-ui 1.0.24 → 1.0.26

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 (152) hide show
  1. package/dist/contexts/CartContext.d.ts.map +1 -1
  2. package/dist/index10.mjs +8 -8
  3. package/dist/index132.mjs +1 -1
  4. package/dist/index134.mjs +21 -2
  5. package/dist/index135.mjs +54 -19
  6. package/dist/index136.mjs +28 -55
  7. package/dist/index137.mjs +6 -28
  8. package/dist/index138.mjs +51 -6
  9. package/dist/index139.mjs +5 -51
  10. package/dist/index140.mjs +12 -6
  11. package/dist/index141.mjs +7 -12
  12. package/dist/index142.mjs +27 -6
  13. package/dist/index143.mjs +2 -28
  14. package/dist/index144.mjs +70 -2
  15. package/dist/index145.mjs +164 -67
  16. package/dist/index146.mjs +2 -167
  17. package/dist/index150.mjs +1 -1
  18. package/dist/index151.mjs +1 -1
  19. package/dist/index152.mjs +1 -1
  20. package/dist/index153.mjs +1 -1
  21. package/dist/index154.mjs +1 -1
  22. package/dist/index156.mjs +1 -1
  23. package/dist/index157.mjs +1 -1
  24. package/dist/index159.mjs +2 -2
  25. package/dist/index160.mjs +1 -1
  26. package/dist/index165.mjs +2 -2
  27. package/dist/index167.mjs +1 -1
  28. package/dist/index169.mjs +2 -2
  29. package/dist/index170.mjs +5 -5
  30. package/dist/index173.mjs +1 -1
  31. package/dist/index176.mjs +1 -1
  32. package/dist/index179.mjs +1 -1
  33. package/dist/index180.mjs +1 -1
  34. package/dist/index184.mjs +1 -1
  35. package/dist/index186.mjs +1 -1
  36. package/dist/index190.mjs +1 -1
  37. package/dist/index192.mjs +1 -1
  38. package/dist/index201.mjs +2 -2
  39. package/dist/index203.mjs +1 -1
  40. package/dist/index204.mjs +1 -1
  41. package/dist/index205.mjs +31 -2
  42. package/dist/index206.mjs +11 -2
  43. package/dist/index207.mjs +4 -2
  44. package/dist/index208.mjs +4 -2
  45. package/dist/index209.mjs +13 -2
  46. package/dist/index210.mjs +7 -2
  47. package/dist/index211.mjs +2 -108
  48. package/dist/index212.mjs +2 -2
  49. package/dist/index213.mjs +2 -2
  50. package/dist/index214.mjs +2 -244
  51. package/dist/index215.mjs +2 -2
  52. package/dist/index216.mjs +2 -33
  53. package/dist/index217.mjs +2 -65
  54. package/dist/index218.mjs +2 -25
  55. package/dist/index219.mjs +108 -2
  56. package/dist/index220.mjs +2 -2
  57. package/dist/index221.mjs +12 -2
  58. package/dist/index222.mjs +5 -2
  59. package/dist/index223.mjs +33 -37
  60. package/dist/index224.mjs +31 -2
  61. package/dist/index225.mjs +28 -2
  62. package/dist/index226.mjs +61 -2
  63. package/dist/index227.mjs +2 -2
  64. package/dist/index228.mjs +2 -2
  65. package/dist/index229.mjs +37 -2
  66. package/dist/index230.mjs +2 -2
  67. package/dist/index231.mjs +2 -2
  68. package/dist/index232.mjs +244 -2
  69. package/dist/index233.mjs +2 -4
  70. package/dist/index234.mjs +33 -2
  71. package/dist/index235.mjs +65 -2
  72. package/dist/index236.mjs +24 -30
  73. package/dist/index237.mjs +2 -11
  74. package/dist/index238.mjs +2 -4
  75. package/dist/index239.mjs +2 -4
  76. package/dist/index240.mjs +2 -13
  77. package/dist/index241.mjs +2 -7
  78. package/dist/index242.mjs +2 -12
  79. package/dist/index243.mjs +2 -5
  80. package/dist/index244.mjs +2 -33
  81. package/dist/index245.mjs +4 -31
  82. package/dist/index246.mjs +2 -28
  83. package/dist/index247.mjs +2 -61
  84. package/dist/index248.mjs +2 -2
  85. package/dist/index249.mjs +2 -2
  86. package/dist/index250.mjs +18 -2
  87. package/dist/index251.mjs +47 -2
  88. package/dist/index252.mjs +2 -91
  89. package/dist/index253.mjs +2 -2
  90. package/dist/index254.mjs +2 -2
  91. package/dist/index255.mjs +2 -18
  92. package/dist/index256.mjs +87 -43
  93. package/dist/index257.mjs +2 -1
  94. package/dist/index258.mjs +2 -3
  95. package/dist/index259.mjs +2 -2
  96. package/dist/index260.mjs +2 -2
  97. package/dist/index263.mjs +1 -1
  98. package/dist/index264.mjs +2 -2
  99. package/dist/index265.mjs +2 -2
  100. package/dist/index267.mjs +2 -2
  101. package/dist/index3.mjs +87 -104
  102. package/dist/index32.mjs +1 -1
  103. package/dist/index33.mjs +1 -1
  104. package/dist/index34.mjs +1 -1
  105. package/dist/index35.mjs +1 -1
  106. package/dist/index36.mjs +1 -1
  107. package/dist/index37.mjs +1 -1
  108. package/dist/index38.mjs +1 -1
  109. package/dist/index39.mjs +3 -3
  110. package/dist/index47.mjs +17 -17
  111. package/dist/index48.mjs +2 -2
  112. package/dist/index49.mjs +1 -1
  113. package/dist/index50.mjs +1 -1
  114. package/dist/index51.mjs +1 -1
  115. package/dist/index52.mjs +1 -1
  116. package/dist/index53.mjs +1 -1
  117. package/dist/index54.mjs +1 -1
  118. package/dist/index55.mjs +1 -1
  119. package/dist/index56.mjs +1 -1
  120. package/dist/index57.mjs +1 -1
  121. package/dist/index58.mjs +1 -1
  122. package/dist/index59.mjs +1 -1
  123. package/dist/index61.mjs +153 -2
  124. package/dist/index62.mjs +4 -152
  125. package/dist/index64.mjs +2 -75
  126. package/dist/index65.mjs +74 -14
  127. package/dist/index66.mjs +14 -62
  128. package/dist/index67.mjs +62 -4
  129. package/dist/index73.mjs +1 -1
  130. package/dist/index75.mjs +34 -2
  131. package/dist/index76.mjs +38 -230
  132. package/dist/index77.mjs +233 -4
  133. package/dist/index78.mjs +5 -133
  134. package/dist/index79.mjs +129 -63
  135. package/dist/index80.mjs +67 -86
  136. package/dist/index81.mjs +85 -27
  137. package/dist/index82.mjs +28 -8
  138. package/dist/index83.mjs +8 -74
  139. package/dist/index84.mjs +74 -3
  140. package/dist/index85.mjs +4 -2
  141. package/dist/index86.mjs +2 -83
  142. package/dist/index87.mjs +81 -52
  143. package/dist/index88.mjs +53 -5
  144. package/dist/index89.mjs +5 -4
  145. package/dist/index90.mjs +4 -178
  146. package/dist/index91.mjs +174 -48
  147. package/dist/index92.mjs +51 -67
  148. package/dist/index93.mjs +69 -34
  149. package/dist/index94.mjs +2 -43
  150. package/package.json +2 -2
  151. package/src/components/ShoppingCart.tsx +1 -1
  152. package/src/contexts/CartContext.tsx +4 -21
package/dist/index3.mjs CHANGED
@@ -1,19 +1,19 @@
1
1
  'use client';
2
- import { jsxs as ct, jsx as st } from "react/jsx-runtime";
3
- import { createContext as at, useState as _, useRef as g, useCallback as c, useEffect as d, useContext as ut } from "react";
2
+ import { jsxs as nt, jsx as ct } from "react/jsx-runtime";
3
+ import { createContext as st, useState as k, useRef as S, useCallback as o, useEffect as d, useContext as at } from "react";
4
4
  import "./index20.mjs";
5
- import { useGetCart as it, useCreateCart as ft, useAddCartItem as mt, useUpdateCartItem as dt, useRemoveCartItem as lt, useApplyDiscount as pt, useRemoveDiscount as Ct, useUpdateCart as wt, useCheckoutCart as It } from "./index32.mjs";
5
+ import { useGetCart as ut, useCreateCart as it, useAddCartItem as ft, useUpdateCartItem as dt, useRemoveCartItem as mt, useApplyDiscount as lt, useRemoveDiscount as pt, useUpdateCart as Ct, useCheckoutCart as wt } from "./index32.mjs";
6
6
  import "@tanstack/react-query";
7
- import { ShoppingCart as ht } from "./index10.mjs";
8
- import { useMetaPixel as vt } from "./index4.mjs";
9
- const l = "oms_cart_id", U = at(null);
10
- function bt({ children: p, brandSlug: i, initialCartId: C, shoppingCartProps: L }) {
11
- const [t, f] = _(C || null), [A, S] = _(!1), [j, G] = _(!1), b = g(!1), M = g(!1), h = g(!1), { trackAddToCart: v, trackInitiateCheckout: E, trackPurchase: O } = vt(), N = c(() => {
7
+ import { ShoppingCart as It } from "./index10.mjs";
8
+ import { useMetaPixel as ht } from "./index4.mjs";
9
+ const m = "oms_cart_id", U = st(null);
10
+ function Mt({ children: l, brandSlug: u, initialCartId: p, shoppingCartProps: L }) {
11
+ const [t, i] = k(p || null), [A, M] = k(!1), [j, O] = k(!1), _ = S(!1), E = S(!1), I = S(!1), { trackAddToCart: h, trackInitiateCheckout: b } = ht(), x = o(() => {
12
12
  if (typeof document > "u") return { fbc: void 0, fbp: void 0 };
13
13
  const e = (r) => {
14
- var o;
15
- const n = `; ${document.cookie}`.split(`; ${r}=`);
16
- if (n.length === 2) return (o = n.pop()) == null ? void 0 : o.split(";").shift();
14
+ var n;
15
+ const s = `; ${document.cookie}`.split(`; ${r}=`);
16
+ if (s.length === 2) return (n = s.pop()) == null ? void 0 : n.split(";").shift();
17
17
  };
18
18
  return {
19
19
  fbc: e("_fbc"),
@@ -21,29 +21,29 @@ function bt({ children: p, brandSlug: i, initialCartId: C, shoppingCartProps: L
21
21
  };
22
22
  }, []);
23
23
  d(() => {
24
- G(!0);
24
+ O(!0);
25
25
  }, []), d(() => {
26
- if (C || b.current) return;
27
- b.current = !0;
26
+ if (p || _.current) return;
27
+ _.current = !0;
28
28
  const r = new URLSearchParams(window.location.search).get("cartId");
29
29
  if (r) {
30
- f(r);
30
+ i(r);
31
31
  return;
32
32
  }
33
- const s = localStorage.getItem(l);
34
- s && f(s);
35
- }, [C]);
36
- const { data: m, isLoading: q, error: w, refetch: a } = it(t || "", {
33
+ const c = localStorage.getItem(m);
34
+ c && i(c);
35
+ }, [p]);
36
+ const { data: f, isLoading: G, error: C, refetch: a } = ut(t || "", {
37
37
  enabled: !!t,
38
38
  retry: !1
39
39
  // Don't retry on failure - cart might be invalid/expired
40
- }), y = ft({
40
+ }), v = it({
41
41
  onSuccess: (e) => {
42
42
  if ("error" in e) {
43
43
  console.error("Failed to create cart:", e.error);
44
44
  return;
45
45
  }
46
- f(e.id);
46
+ i(e.id);
47
47
  },
48
48
  onError: (e) => {
49
49
  console.error("Failed to create cart:", e);
@@ -51,151 +51,134 @@ function bt({ children: p, brandSlug: i, initialCartId: C, shoppingCartProps: L
51
51
  retry: 10
52
52
  });
53
53
  d(() => {
54
- if (M.current) return;
55
- M.current = !0;
54
+ if (E.current) return;
55
+ E.current = !0;
56
56
  const e = setTimeout(() => {
57
- !(typeof window < "u" ? localStorage.getItem(l) : null) && !C && y.mutate(i);
57
+ !(typeof window < "u" ? localStorage.getItem(m) : null) && !p && v.mutate(u);
58
58
  }, 150);
59
59
  return () => clearTimeout(e);
60
60
  }, []), d(() => {
61
- w && t && !h.current && (h.current = !0, console.warn("Cart fetch failed, creating new cart:", w), f(null), typeof window < "u" && localStorage.removeItem(l), setTimeout(() => {
62
- y.mutate(i), h.current = !1;
61
+ C && t && !I.current && (I.current = !0, console.warn("Cart fetch failed, creating new cart:", C), i(null), typeof window < "u" && localStorage.removeItem(m), setTimeout(() => {
62
+ v.mutate(u), I.current = !1;
63
63
  }, 100));
64
- }, [w, t, i]);
65
- const H = mt(t || "", {
64
+ }, [C, t, u]);
65
+ const H = ft(t || "", {
66
66
  onSuccess: () => a()
67
67
  }), K = dt(t || "", {
68
68
  onSuccess: () => a()
69
- }), Y = lt(t || "", {
69
+ }), Y = mt(t || "", {
70
70
  onSuccess: () => a()
71
- }), z = pt(t || "", {
71
+ }), z = lt(t || "", {
72
72
  onSuccess: () => a()
73
- }), B = Ct(t || "", {
73
+ }), B = pt(t || "", {
74
74
  onSuccess: () => a()
75
- }), J = wt(t || "", {
75
+ }), J = Ct(t || "", {
76
76
  onSuccess: () => a(),
77
77
  retry: 3
78
- }), Q = It(t || "", {
79
- onSuccess: (e) => {
80
- var n;
81
- if ("error" in e) return;
82
- const r = ((n = e.items) == null ? void 0 : n.map((o) => {
83
- var u;
84
- return {
85
- id: ((u = o.variant) == null ? void 0 : u.sku) || "",
86
- quantity: o.quantity,
87
- item_price: Number(o.priceAtPurchase)
88
- };
89
- })) || [], s = `order_${e.id}`;
90
- O(
91
- Number(e.totalPrice),
92
- "NGN",
93
- e.id,
94
- r,
95
- s
96
- );
78
+ }), Q = wt(t || "", {
79
+ onSuccess: () => {
97
80
  }
98
81
  });
99
82
  d(() => {
100
- t && typeof window < "u" && localStorage.setItem(l, t);
83
+ t && typeof window < "u" && localStorage.setItem(m, t);
101
84
  }, [t]);
102
- const V = c(
103
- async (e, r, s, n, o) => {
104
- var $;
85
+ const V = o(
86
+ async (e, r, c, s, n) => {
87
+ var F;
105
88
  if (!t) throw new Error("No cart ID");
106
- const { fbc: u, fbp: D } = N(), R = await H.mutateAsync({ sku: n, quantity: o, fbc: u, fbp: D });
107
- if ("error" in R) return;
108
- const I = ($ = R.items) == null ? void 0 : $.filter(
109
- (k) => {
110
- var F;
111
- return ((F = k.variant) == null ? void 0 : F.sku) === n;
89
+ const { fbc: y, fbp: D } = x(), N = await H.mutateAsync({ sku: s, quantity: n, fbc: y, fbp: D });
90
+ if ("error" in N) return;
91
+ const w = (F = N.items) == null ? void 0 : F.filter(
92
+ (g) => {
93
+ var $;
94
+ return (($ = g.variant) == null ? void 0 : $.sku) === s;
112
95
  }
113
- ), T = I == null ? void 0 : I[I.length - 1];
96
+ ), T = w == null ? void 0 : w[w.length - 1];
114
97
  if (T) {
115
- const k = `cart_${t}_item_${T.id}`;
116
- v(e, r, s, o, k);
98
+ const g = `cart_${t}_item_${T.id}`;
99
+ h(e, r, c, n, g);
117
100
  } else
118
- v(e, r, s, o);
101
+ h(e, r, c, n);
119
102
  },
120
103
  // eslint-disable-next-line react-hooks/exhaustive-deps
121
- [t, v, N]
122
- ), W = c(
104
+ [t, h, x]
105
+ ), W = o(
123
106
  async (e, r) => {
124
107
  if (!t) throw new Error("No cart ID");
125
108
  await K.mutateAsync({ itemId: e, quantity: r });
126
109
  },
127
110
  // eslint-disable-next-line react-hooks/exhaustive-deps
128
111
  [t]
129
- ), X = c(
112
+ ), X = o(
130
113
  async (e) => {
131
114
  if (!t) throw new Error("No cart ID");
132
115
  await Y.mutateAsync(e);
133
116
  },
134
117
  // eslint-disable-next-line react-hooks/exhaustive-deps
135
118
  [t]
136
- ), Z = c(
119
+ ), Z = o(
137
120
  async (e) => {
138
121
  if (!t) throw new Error("No cart ID");
139
122
  await z.mutateAsync({ code: e });
140
123
  },
141
124
  // eslint-disable-next-line react-hooks/exhaustive-deps
142
125
  [t]
143
- ), tt = c(async () => {
126
+ ), q = o(async () => {
144
127
  if (!t) throw new Error("No cart ID");
145
128
  await B.mutateAsync();
146
- }, [t]), P = c(() => {
147
- f(null), typeof window < "u" && localStorage.removeItem(l);
148
- }, []), et = c(() => {
149
- P(), y.mutate(i);
150
- }, [i]), rt = c(() => {
151
- S(!0);
152
- }, []), x = c(() => {
153
- S(!1);
154
- }, []), ot = c(() => {
155
- var n, o;
156
- if (!m || !t) return;
157
- const e = Number(((n = m.pricing) == null ? void 0 : n.total) || 0), r = ((o = m.items) == null ? void 0 : o.reduce((u, D) => u + D.quantity, 0)) || 0, s = `cart_${t}_checkout`;
158
- E(e, r, s);
159
- }, [m, t, E]), nt = {
160
- cart: m || null,
129
+ }, [t]), R = o(() => {
130
+ i(null), typeof window < "u" && localStorage.removeItem(m);
131
+ }, []), tt = o(() => {
132
+ R(), v.mutate(u);
133
+ }, [u]), et = o(() => {
134
+ M(!0);
135
+ }, []), P = o(() => {
136
+ M(!1);
137
+ }, []), rt = o(() => {
138
+ var s, n;
139
+ if (!f || !t) return;
140
+ const e = Number(((s = f.pricing) == null ? void 0 : s.total) || 0), r = ((n = f.items) == null ? void 0 : n.reduce((y, D) => y + D.quantity, 0)) || 0, c = `cart_${t}_checkout`;
141
+ b(e, r, c);
142
+ }, [f, t, b]), ot = {
143
+ cart: f || null,
161
144
  cartId: t,
162
- isLoading: q,
163
- error: w,
145
+ isLoading: G,
146
+ error: C,
164
147
  updateCartMutation: J,
165
148
  checkoutMutation: Q,
166
149
  addItem: V,
167
150
  updateItem: W,
168
151
  removeItem: X,
169
152
  applyDiscount: Z,
170
- removeDiscount: tt,
171
- trackCheckoutInitiated: ot,
172
- clearCart: P,
173
- clearAndCreateNewCart: et,
153
+ removeDiscount: q,
154
+ trackCheckoutInitiated: rt,
155
+ clearCart: R,
156
+ clearAndCreateNewCart: tt,
174
157
  refetch: a,
175
158
  isOpen: A,
176
- open: rt,
177
- close: x
159
+ open: et,
160
+ close: P
178
161
  };
179
- return /* @__PURE__ */ ct(U.Provider, { value: nt, children: [
180
- p,
181
- j && /* @__PURE__ */ st(
182
- ht,
162
+ return /* @__PURE__ */ nt(U.Provider, { value: ot, children: [
163
+ l,
164
+ j && /* @__PURE__ */ ct(
165
+ It,
183
166
  {
184
167
  isOpen: A,
185
- onClose: x,
168
+ onClose: P,
186
169
  ...L
187
170
  }
188
171
  )
189
172
  ] });
190
173
  }
191
- function Mt() {
192
- const p = ut(U);
193
- if (!p)
174
+ function _t() {
175
+ const l = at(U);
176
+ if (!l)
194
177
  throw new Error("useCart must be used within CartProvider");
195
- return p;
178
+ return l;
196
179
  }
197
180
  export {
198
181
  U as CartContext,
199
- bt as CartProvider,
200
- Mt as useCart
182
+ Mt as CartProvider,
183
+ _t as useCart
201
184
  };
package/dist/index32.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as s, useMutation as i } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as a } from "./index67.mjs";
3
+ import { useQueryUnwrapped as a } from "./index62.mjs";
4
4
  import { queryKeys as r } from "./index29.mjs";
5
5
  import { updateCart as c, createCart as l, applyDiscount as y, removeDiscount as m, addCartItem as p, updateCartItem as C, removeCartItem as q, checkoutCart as f, fetchCart as d } from "./index25.mjs";
6
6
  function Q(e, t) {
package/dist/index33.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 "./index67.mjs";
3
+ import { useQueryUnwrapped as u } from "./index62.mjs";
4
4
  import { queryKeys as n } from "./index29.mjs";
5
5
  import { confirmOrder as i, fetchOrder as m } from "./index26.mjs";
6
6
  function y(e, r, o) {
package/dist/index34.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as u } from "./index67.mjs";
2
+ import { useQueryUnwrapped as u } from "./index62.mjs";
3
3
  import { queryKeys as t } from "./index29.mjs";
4
4
  import { fetchProductsByBrand as o, fetchProductBySlug as c } from "./index24.mjs";
5
5
  function n(r, e) {
package/dist/index35.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as o } from "./index67.mjs";
2
+ import { useQueryUnwrapped as o } from "./index62.mjs";
3
3
  import { queryKeys as i } from "./index29.mjs";
4
4
  import { fetchDeliveryZones as t } from "./index27.mjs";
5
5
  function p(e, r) {
package/dist/index36.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as t } from "./index67.mjs";
2
+ import { useQueryUnwrapped as t } from "./index62.mjs";
3
3
  import { queryKeys as u } from "./index29.mjs";
4
4
  import { fetchBrandBySlug as n } from "./index28.mjs";
5
5
  function i(r, e) {
package/dist/index37.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { getDefaultExportFromCjs as x } from "./index60.mjs";
3
- import { __module as q } from "./index61.mjs";
3
+ import { __module as q } from "./index64.mjs";
4
4
  function S(b, p) {
5
5
  for (var s = 0; s < p.length; s++) {
6
6
  const c = p[s];
package/dist/index38.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { getDefaultExportFromCjs as n } from "./index60.mjs";
3
- import { __require as i } from "./index62.mjs";
3
+ import { __require as i } from "./index61.mjs";
4
4
  function s(t, a) {
5
5
  for (var o = 0; o < a.length; o++) {
6
6
  const e = a[o];
package/dist/index39.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use client';
2
- import { p as S } from "./index64.mjs";
3
- import { t as U } from "./index65.mjs";
4
- import he from "./index66.mjs";
2
+ import { p as S } from "./index65.mjs";
3
+ import { t as U } from "./index66.mjs";
4
+ import he from "./index67.mjs";
5
5
  const fe = Object.prototype.toString, de = Error.prototype.toString, pe = RegExp.prototype.toString, me = typeof Symbol < "u" ? Symbol.prototype.toString : () => "", ye = /^Symbol\((.*)\)(.*)$/;
6
6
  function ge(n) {
7
7
  return n != +n ? "NaN" : n === 0 && 1 / n < 0 ? "-0" : "" + n;
package/dist/index47.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  'use client';
2
- import a from "./index76.mjs";
3
- import p from "./index77.mjs";
4
- import m from "./index78.mjs";
5
- import i from "./index79.mjs";
6
- import f from "./index80.mjs";
7
- import l from "./index81.mjs";
8
- import c from "./index82.mjs";
9
- import d from "./index83.mjs";
10
- import u from "./index84.mjs";
11
- import { VERSION as x } from "./index85.mjs";
12
- import C from "./index86.mjs";
13
- import A from "./index87.mjs";
14
- import E from "./index88.mjs";
15
- import O from "./index89.mjs";
16
- import S from "./index90.mjs";
17
- import H from "./index91.mjs";
18
- import T from "./index92.mjs";
2
+ import a from "./index77.mjs";
3
+ import p from "./index78.mjs";
4
+ import m from "./index79.mjs";
5
+ import i from "./index80.mjs";
6
+ import f from "./index81.mjs";
7
+ import l from "./index82.mjs";
8
+ import c from "./index83.mjs";
9
+ import d from "./index84.mjs";
10
+ import u from "./index85.mjs";
11
+ import { VERSION as x } from "./index86.mjs";
12
+ import C from "./index87.mjs";
13
+ import A from "./index88.mjs";
14
+ import E from "./index89.mjs";
15
+ import O from "./index90.mjs";
16
+ import S from "./index91.mjs";
17
+ import H from "./index92.mjs";
18
+ import T from "./index93.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/index48.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 "./index93.mjs";
6
- import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index94.mjs";
5
+ import { serialize as j } from "./index75.mjs";
6
+ import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index76.mjs";
7
7
  var v = (r, e) => new Proxy(() => {
8
8
  }, {
9
9
  get(t, s) {
package/dist/index49.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as m, useMutation as w } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as p } from "./index67.mjs";
3
+ import { useQueryUnwrapped as p } from "./index62.mjs";
4
4
  import { createAdminRpcClients as d, authHeaders as l } from "./index23.mjs";
5
5
  import { queryKeys as u } from "./index29.mjs";
6
6
  import { useApiConfig as y } from "./index21.mjs";
package/dist/index50.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as m, useMutation as w } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as b } from "./index67.mjs";
3
+ import { useQueryUnwrapped as b } from "./index62.mjs";
4
4
  import { createAdminRpcClients as c, authHeaders as d } from "./index23.mjs";
5
5
  import { queryKeys as u } from "./index29.mjs";
6
6
  import { useApiConfig as l } from "./index21.mjs";
package/dist/index51.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 w } from "./index67.mjs";
3
+ import { useQueryUnwrapped as w } from "./index62.mjs";
4
4
  import { createAdminRpcClients as c, authHeaders as d } from "./index23.mjs";
5
5
  import { queryKeys as a } from "./index29.mjs";
6
6
  import { useApiConfig as l } from "./index21.mjs";
package/dist/index52.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as v, useMutation as m } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as w } from "./index67.mjs";
3
+ import { useQueryUnwrapped as w } from "./index62.mjs";
4
4
  import { createAdminRpcClients as c, authHeaders as d } from "./index23.mjs";
5
5
  import { queryKeys as o } from "./index29.mjs";
6
6
  import { useApiConfig as l } from "./index21.mjs";
package/dist/index53.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as y, useMutation as d } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as m } from "./index67.mjs";
3
+ import { useQueryUnwrapped as m } from "./index62.mjs";
4
4
  import { createAdminRpcClients as c, authHeaders as l } from "./index23.mjs";
5
5
  import { queryKeys as u } from "./index29.mjs";
6
6
  import { useApiConfig as w } from "./index21.mjs";
package/dist/index54.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as w, useMutation as v } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as d } from "./index67.mjs";
3
+ import { useQueryUnwrapped as d } from "./index62.mjs";
4
4
  import { createAdminRpcClients as c, authHeaders as y } from "./index23.mjs";
5
5
  import { queryKeys as i } from "./index29.mjs";
6
6
  import { useApiConfig as l } from "./index21.mjs";
package/dist/index55.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as n } from "./index67.mjs";
2
+ import { useQueryUnwrapped as n } from "./index62.mjs";
3
3
  import { createAdminRpcClients as u, authHeaders as a } from "./index23.mjs";
4
4
  import { queryKeys as c } from "./index29.mjs";
5
5
  import { useApiConfig as m } from "./index21.mjs";
package/dist/index56.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as i } from "./index67.mjs";
2
+ import { useQueryUnwrapped as i } from "./index62.mjs";
3
3
  import { createAdminRpcClients as u, authHeaders as c } from "./index23.mjs";
4
4
  import { queryKeys as a } from "./index29.mjs";
5
5
  import { useApiConfig as d } from "./index21.mjs";
package/dist/index57.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as y, useMutation as b } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as l } from "./index67.mjs";
3
+ import { useQueryUnwrapped as l } from "./index62.mjs";
4
4
  import { createAdminRpcClients as r, authHeaders as i } from "./index23.mjs";
5
5
  import { queryKeys as u } from "./index29.mjs";
6
6
  import { useApiConfig as d } from "./index21.mjs";
package/dist/index58.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as y, useMutation as w } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as C } from "./index67.mjs";
3
+ import { useQueryUnwrapped as C } from "./index62.mjs";
4
4
  import { createAdminRpcClients as a, authHeaders as d } from "./index23.mjs";
5
5
  import { queryKeys as r } from "./index29.mjs";
6
6
  import { useApiConfig as l } from "./index21.mjs";
package/dist/index59.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { useQueryClient as v, useMutation as w } from "@tanstack/react-query";
3
- import { useQueryUnwrapped as m } from "./index67.mjs";
3
+ import { useQueryUnwrapped as m } from "./index62.mjs";
4
4
  import { createAdminRpcClients as l, authHeaders as c } from "./index23.mjs";
5
5
  import { queryKeys as a } from "./index29.mjs";
6
6
  import { useApiConfig as d } from "./index21.mjs";