@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.
- package/dist/contexts/CartContext.d.ts.map +1 -1
- package/dist/index10.mjs +8 -8
- package/dist/index132.mjs +1 -1
- package/dist/index134.mjs +21 -2
- package/dist/index135.mjs +54 -19
- package/dist/index136.mjs +28 -55
- package/dist/index137.mjs +6 -28
- package/dist/index138.mjs +51 -6
- package/dist/index139.mjs +5 -51
- package/dist/index140.mjs +12 -6
- package/dist/index141.mjs +7 -12
- package/dist/index142.mjs +27 -6
- package/dist/index143.mjs +2 -28
- package/dist/index144.mjs +70 -2
- package/dist/index145.mjs +164 -67
- package/dist/index146.mjs +2 -167
- package/dist/index150.mjs +1 -1
- package/dist/index151.mjs +1 -1
- package/dist/index152.mjs +1 -1
- package/dist/index153.mjs +1 -1
- package/dist/index154.mjs +1 -1
- package/dist/index156.mjs +1 -1
- package/dist/index157.mjs +1 -1
- package/dist/index159.mjs +2 -2
- package/dist/index160.mjs +1 -1
- package/dist/index165.mjs +2 -2
- package/dist/index167.mjs +1 -1
- package/dist/index169.mjs +2 -2
- package/dist/index170.mjs +5 -5
- package/dist/index173.mjs +1 -1
- package/dist/index176.mjs +1 -1
- package/dist/index179.mjs +1 -1
- package/dist/index180.mjs +1 -1
- package/dist/index184.mjs +1 -1
- package/dist/index186.mjs +1 -1
- package/dist/index190.mjs +1 -1
- package/dist/index192.mjs +1 -1
- package/dist/index201.mjs +2 -2
- package/dist/index203.mjs +1 -1
- package/dist/index204.mjs +1 -1
- package/dist/index205.mjs +31 -2
- package/dist/index206.mjs +11 -2
- package/dist/index207.mjs +4 -2
- package/dist/index208.mjs +4 -2
- package/dist/index209.mjs +13 -2
- package/dist/index210.mjs +7 -2
- package/dist/index211.mjs +2 -108
- package/dist/index212.mjs +2 -2
- package/dist/index213.mjs +2 -2
- package/dist/index214.mjs +2 -244
- package/dist/index215.mjs +2 -2
- package/dist/index216.mjs +2 -33
- package/dist/index217.mjs +2 -65
- package/dist/index218.mjs +2 -25
- package/dist/index219.mjs +108 -2
- package/dist/index220.mjs +2 -2
- package/dist/index221.mjs +12 -2
- package/dist/index222.mjs +5 -2
- package/dist/index223.mjs +33 -37
- package/dist/index224.mjs +31 -2
- package/dist/index225.mjs +28 -2
- package/dist/index226.mjs +61 -2
- package/dist/index227.mjs +2 -2
- package/dist/index228.mjs +2 -2
- package/dist/index229.mjs +37 -2
- package/dist/index230.mjs +2 -2
- package/dist/index231.mjs +2 -2
- package/dist/index232.mjs +244 -2
- package/dist/index233.mjs +2 -4
- package/dist/index234.mjs +33 -2
- package/dist/index235.mjs +65 -2
- package/dist/index236.mjs +24 -30
- package/dist/index237.mjs +2 -11
- package/dist/index238.mjs +2 -4
- package/dist/index239.mjs +2 -4
- package/dist/index240.mjs +2 -13
- package/dist/index241.mjs +2 -7
- package/dist/index242.mjs +2 -12
- package/dist/index243.mjs +2 -5
- package/dist/index244.mjs +2 -33
- package/dist/index245.mjs +4 -31
- package/dist/index246.mjs +2 -28
- package/dist/index247.mjs +2 -61
- package/dist/index248.mjs +2 -2
- package/dist/index249.mjs +2 -2
- package/dist/index250.mjs +18 -2
- package/dist/index251.mjs +47 -2
- package/dist/index252.mjs +2 -91
- package/dist/index253.mjs +2 -2
- package/dist/index254.mjs +2 -2
- package/dist/index255.mjs +2 -18
- package/dist/index256.mjs +87 -43
- package/dist/index257.mjs +2 -1
- package/dist/index258.mjs +2 -3
- package/dist/index259.mjs +2 -2
- package/dist/index260.mjs +2 -2
- package/dist/index263.mjs +1 -1
- package/dist/index264.mjs +2 -2
- package/dist/index265.mjs +2 -2
- package/dist/index267.mjs +2 -2
- package/dist/index3.mjs +87 -104
- package/dist/index32.mjs +1 -1
- package/dist/index33.mjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.mjs +1 -1
- package/dist/index36.mjs +1 -1
- package/dist/index37.mjs +1 -1
- package/dist/index38.mjs +1 -1
- package/dist/index39.mjs +3 -3
- package/dist/index47.mjs +17 -17
- package/dist/index48.mjs +2 -2
- package/dist/index49.mjs +1 -1
- package/dist/index50.mjs +1 -1
- package/dist/index51.mjs +1 -1
- package/dist/index52.mjs +1 -1
- package/dist/index53.mjs +1 -1
- package/dist/index54.mjs +1 -1
- package/dist/index55.mjs +1 -1
- package/dist/index56.mjs +1 -1
- package/dist/index57.mjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index59.mjs +1 -1
- package/dist/index61.mjs +153 -2
- package/dist/index62.mjs +4 -152
- package/dist/index64.mjs +2 -75
- package/dist/index65.mjs +74 -14
- package/dist/index66.mjs +14 -62
- package/dist/index67.mjs +62 -4
- package/dist/index73.mjs +1 -1
- package/dist/index75.mjs +34 -2
- package/dist/index76.mjs +38 -230
- package/dist/index77.mjs +233 -4
- package/dist/index78.mjs +5 -133
- package/dist/index79.mjs +129 -63
- package/dist/index80.mjs +67 -86
- package/dist/index81.mjs +85 -27
- package/dist/index82.mjs +28 -8
- package/dist/index83.mjs +8 -74
- package/dist/index84.mjs +74 -3
- package/dist/index85.mjs +4 -2
- package/dist/index86.mjs +2 -83
- package/dist/index87.mjs +81 -52
- package/dist/index88.mjs +53 -5
- package/dist/index89.mjs +5 -4
- package/dist/index90.mjs +4 -178
- package/dist/index91.mjs +174 -48
- package/dist/index92.mjs +51 -67
- package/dist/index93.mjs +69 -34
- package/dist/index94.mjs +2 -43
- package/package.json +2 -2
- package/src/components/ShoppingCart.tsx +1 -1
- package/src/contexts/CartContext.tsx +4 -21
package/dist/index3.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { createContext as
|
|
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
|
|
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
|
|
8
|
-
import { useMetaPixel as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
const [t,
|
|
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
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
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
|
-
|
|
24
|
+
O(!0);
|
|
25
25
|
}, []), d(() => {
|
|
26
|
-
if (
|
|
27
|
-
|
|
26
|
+
if (p || _.current) return;
|
|
27
|
+
_.current = !0;
|
|
28
28
|
const r = new URLSearchParams(window.location.search).get("cartId");
|
|
29
29
|
if (r) {
|
|
30
|
-
|
|
30
|
+
i(r);
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
}, [
|
|
36
|
-
const { data:
|
|
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
|
-
}),
|
|
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
|
-
|
|
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 (
|
|
55
|
-
|
|
54
|
+
if (E.current) return;
|
|
55
|
+
E.current = !0;
|
|
56
56
|
const e = setTimeout(() => {
|
|
57
|
-
!(typeof window < "u" ? localStorage.getItem(
|
|
57
|
+
!(typeof window < "u" ? localStorage.getItem(m) : null) && !p && v.mutate(u);
|
|
58
58
|
}, 150);
|
|
59
59
|
return () => clearTimeout(e);
|
|
60
60
|
}, []), d(() => {
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
}, [
|
|
65
|
-
const H =
|
|
64
|
+
}, [C, t, u]);
|
|
65
|
+
const H = ft(t || "", {
|
|
66
66
|
onSuccess: () => a()
|
|
67
67
|
}), K = dt(t || "", {
|
|
68
68
|
onSuccess: () => a()
|
|
69
|
-
}), Y =
|
|
69
|
+
}), Y = mt(t || "", {
|
|
70
70
|
onSuccess: () => a()
|
|
71
|
-
}), z =
|
|
71
|
+
}), z = lt(t || "", {
|
|
72
72
|
onSuccess: () => a()
|
|
73
|
-
}), B =
|
|
73
|
+
}), B = pt(t || "", {
|
|
74
74
|
onSuccess: () => a()
|
|
75
|
-
}), J =
|
|
75
|
+
}), J = Ct(t || "", {
|
|
76
76
|
onSuccess: () => a(),
|
|
77
77
|
retry: 3
|
|
78
|
-
}), Q =
|
|
79
|
-
onSuccess: (
|
|
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(
|
|
83
|
+
t && typeof window < "u" && localStorage.setItem(m, t);
|
|
101
84
|
}, [t]);
|
|
102
|
-
const V =
|
|
103
|
-
async (e, r, s, n
|
|
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:
|
|
107
|
-
if ("error" in
|
|
108
|
-
const
|
|
109
|
-
(
|
|
110
|
-
var
|
|
111
|
-
return ((
|
|
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 =
|
|
96
|
+
), T = w == null ? void 0 : w[w.length - 1];
|
|
114
97
|
if (T) {
|
|
115
|
-
const
|
|
116
|
-
|
|
98
|
+
const g = `cart_${t}_item_${T.id}`;
|
|
99
|
+
h(e, r, c, n, g);
|
|
117
100
|
} else
|
|
118
|
-
|
|
101
|
+
h(e, r, c, n);
|
|
119
102
|
},
|
|
120
103
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
121
|
-
[t,
|
|
122
|
-
), W =
|
|
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 =
|
|
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 =
|
|
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
|
-
),
|
|
126
|
+
), q = o(async () => {
|
|
144
127
|
if (!t) throw new Error("No cart ID");
|
|
145
128
|
await B.mutateAsync();
|
|
146
|
-
}, [t]),
|
|
147
|
-
|
|
148
|
-
}, []),
|
|
149
|
-
|
|
150
|
-
}, [
|
|
151
|
-
|
|
152
|
-
}, []),
|
|
153
|
-
|
|
154
|
-
}, []),
|
|
155
|
-
var
|
|
156
|
-
if (!
|
|
157
|
-
const e = Number(((
|
|
158
|
-
|
|
159
|
-
}, [
|
|
160
|
-
cart:
|
|
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:
|
|
163
|
-
error:
|
|
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:
|
|
171
|
-
trackCheckoutInitiated:
|
|
172
|
-
clearCart:
|
|
173
|
-
clearAndCreateNewCart:
|
|
153
|
+
removeDiscount: q,
|
|
154
|
+
trackCheckoutInitiated: rt,
|
|
155
|
+
clearCart: R,
|
|
156
|
+
clearAndCreateNewCart: tt,
|
|
174
157
|
refetch: a,
|
|
175
158
|
isOpen: A,
|
|
176
|
-
open:
|
|
177
|
-
close:
|
|
159
|
+
open: et,
|
|
160
|
+
close: P
|
|
178
161
|
};
|
|
179
|
-
return /* @__PURE__ */
|
|
180
|
-
|
|
181
|
-
j && /* @__PURE__ */
|
|
182
|
-
|
|
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:
|
|
168
|
+
onClose: P,
|
|
186
169
|
...L
|
|
187
170
|
}
|
|
188
171
|
)
|
|
189
172
|
] });
|
|
190
173
|
}
|
|
191
|
-
function
|
|
192
|
-
const
|
|
193
|
-
if (!
|
|
174
|
+
function _t() {
|
|
175
|
+
const l = at(U);
|
|
176
|
+
if (!l)
|
|
194
177
|
throw new Error("useCart must be used within CartProvider");
|
|
195
|
-
return
|
|
178
|
+
return l;
|
|
196
179
|
}
|
|
197
180
|
export {
|
|
198
181
|
U as CartContext,
|
|
199
|
-
|
|
200
|
-
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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
package/dist/index36.mjs
CHANGED
package/dist/index37.mjs
CHANGED
package/dist/index38.mjs
CHANGED
package/dist/index39.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { p as S } from "./
|
|
3
|
-
import { t as U } from "./
|
|
4
|
-
import he from "./
|
|
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 "./
|
|
3
|
-
import p from "./
|
|
4
|
-
import m from "./
|
|
5
|
-
import i from "./
|
|
6
|
-
import f from "./
|
|
7
|
-
import l from "./
|
|
8
|
-
import c from "./
|
|
9
|
-
import d from "./
|
|
10
|
-
import u from "./
|
|
11
|
-
import { VERSION as x } from "./
|
|
12
|
-
import C from "./
|
|
13
|
-
import A from "./
|
|
14
|
-
import E from "./
|
|
15
|
-
import O from "./
|
|
16
|
-
import S from "./
|
|
17
|
-
import H from "./
|
|
18
|
-
import T from "./
|
|
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 "./
|
|
6
|
-
import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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 "./
|
|
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";
|