@instockng/storefront-ui 1.0.54 → 1.0.56
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/components/Checkout.d.ts.map +1 -1
- package/dist/components/ProductAddOns.d.ts +22 -0
- package/dist/components/ProductAddOns.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/index.mjs +58 -56
- package/dist/index101.mjs +1 -1
- package/dist/index102.mjs +1 -1
- package/dist/index103.mjs +8 -8
- package/dist/index104.mjs +6 -6
- package/dist/index105.mjs +3 -3
- package/dist/index106.mjs +1 -1
- package/dist/index107.mjs +1 -1
- package/dist/index108.mjs +1 -1
- package/dist/index109.mjs +2 -2
- package/dist/index110.mjs +2 -2
- package/dist/index111.mjs +3 -3
- package/dist/index112.mjs +1 -1
- package/dist/index113.mjs +3 -3
- package/dist/index114.mjs +2 -2
- package/dist/index115.mjs +2 -2
- package/dist/index116.mjs +1 -1
- package/dist/index117.mjs +3 -3
- package/dist/index118.mjs +1 -1
- package/dist/index119.mjs +1 -1
- package/dist/index120.mjs +3 -3
- package/dist/index121.mjs +2 -2
- package/dist/index122.mjs +4 -4
- package/dist/index123.mjs +1 -1
- package/dist/index124.mjs +3 -3
- package/dist/index125.mjs +4 -4
- package/dist/index126.mjs +1 -1
- package/dist/index127.mjs +1 -1
- package/dist/index128.mjs +1 -1
- package/dist/index129.mjs +1 -1
- package/dist/index13.mjs +266 -238
- package/dist/index130.mjs +1 -1
- package/dist/index131.mjs +1 -1
- package/dist/index132.mjs +1 -1
- package/dist/index133.mjs +2 -2
- package/dist/index134.mjs +3 -3
- package/dist/index137.mjs +1 -1
- package/dist/index139.mjs +1 -1
- package/dist/index140.mjs +1 -1
- package/dist/index141.mjs +5 -5
- package/dist/index143.mjs +2 -2
- package/dist/index145.mjs +2 -2
- package/dist/index147.mjs +1 -1
- package/dist/index149.mjs +4 -4
- package/dist/index150.mjs +3 -3
- package/dist/index151.mjs +2 -2
- package/dist/index153.mjs +2 -2
- package/dist/index154.mjs +18 -2
- package/dist/index155.mjs +25 -11
- package/dist/index156.mjs +32 -26
- package/dist/index157.mjs +12 -32
- package/dist/index158.mjs +9 -9
- package/dist/index159.mjs +2 -18
- package/dist/index160.mjs +20 -2
- package/dist/index161.mjs +39 -13
- package/dist/index162.mjs +2 -46
- package/dist/index163.mjs +30 -2
- package/dist/index164.mjs +12 -24
- package/dist/index165.mjs +2 -18
- package/dist/index166.mjs +2 -2
- package/dist/index167.mjs +2 -2
- package/dist/index168.mjs +2 -2
- package/dist/index169.mjs +72 -2
- package/dist/index170.mjs +2 -72
- package/dist/index171.mjs +53 -2
- package/dist/index172.mjs +2 -53
- package/dist/index173.mjs +36 -2
- package/dist/index174.mjs +146 -30
- package/dist/index175.mjs +2 -152
- package/dist/index176.mjs +2 -2
- package/dist/index177.mjs +19 -2
- package/dist/index178.mjs +2 -19
- package/dist/index179.mjs +2 -2
- package/dist/index180.mjs +26 -2
- package/dist/index181.mjs +2 -26
- package/dist/index182.mjs +2 -2
- package/dist/index183.mjs +24 -2
- package/dist/index184.mjs +16 -17
- package/dist/index185.mjs +2 -23
- package/dist/index187.mjs +2 -2
- package/dist/index188.mjs +23 -2
- package/dist/index189.mjs +2 -23
- package/dist/index190.mjs +23 -2
- package/dist/index191.mjs +2 -23
- package/dist/index192.mjs +2 -2
- package/dist/index194.mjs +23 -2
- package/dist/index195.mjs +2 -23
- package/dist/index196.mjs +23 -2
- package/dist/index197.mjs +2 -23
- package/dist/index198.mjs +2 -2
- package/dist/index199.mjs +2 -2
- package/dist/index20.mjs +24 -22
- package/dist/index201.mjs +2 -2
- package/dist/index202.mjs +2 -2
- package/dist/index203.mjs +2 -2
- package/dist/index204.mjs +2 -2
- package/dist/index205.mjs +127 -2
- package/dist/index206.mjs +2 -127
- package/dist/index207.mjs +74 -2
- package/dist/index208.mjs +60 -60
- package/dist/index209.mjs +2 -74
- package/dist/index210.mjs +1 -1
- package/dist/index211.mjs +3 -3
- package/dist/index216.mjs +1 -1
- package/dist/index218.mjs +1 -1
- package/dist/index219.mjs +3 -3
- package/dist/index220.mjs +3 -3
- package/dist/index222.mjs +2 -2
- package/dist/index223.mjs +108 -2
- package/dist/index224.mjs +2 -2
- package/dist/index226.mjs +2 -2
- package/dist/index227.mjs +2 -2
- package/dist/index228.mjs +2 -108
- package/dist/index229.mjs +2 -2
- package/dist/index231.mjs +2 -37
- package/dist/index232.mjs +2 -2
- package/dist/index233.mjs +36 -243
- package/dist/index234.mjs +2 -2
- package/dist/index235.mjs +243 -32
- package/dist/index236.mjs +2 -65
- package/dist/index237.mjs +24 -16
- package/dist/index238.mjs +65 -2
- package/dist/index239.mjs +25 -2
- package/dist/index24.mjs +28 -26
- package/dist/index240.mjs +2 -2
- package/dist/index241.mjs +2 -2
- package/dist/index242.mjs +2 -2
- package/dist/index244.mjs +2 -2
- package/dist/index246.mjs +2 -2
- package/dist/index247.mjs +2 -2
- package/dist/index248.mjs +2 -2
- package/dist/index25.mjs +18 -8
- package/dist/index250.mjs +1 -1
- package/dist/index259.mjs +1 -1
- package/dist/index262.mjs +2 -2
- package/dist/index263.mjs +2 -18
- package/dist/index264.mjs +2 -47
- package/dist/index265.mjs +91 -2
- package/dist/index266.mjs +2 -2
- package/dist/index267.mjs +18 -2
- package/dist/index268.mjs +43 -87
- package/dist/index30.mjs +6 -4
- package/dist/index31.mjs +13 -12
- package/dist/index32.mjs +56 -54
- package/dist/index33.mjs +1 -1
- package/dist/index34.mjs +1 -1
- package/dist/index35.mjs +20 -12
- package/dist/index36.mjs +1 -1
- package/dist/index37.mjs +1 -1
- package/dist/index38.mjs +2 -2
- package/dist/index40.mjs +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index52.mjs +17 -17
- package/dist/index53.mjs +2 -2
- package/dist/index54.mjs +1 -1
- package/dist/index55.mjs +1 -1
- package/dist/index56.mjs +68 -38
- package/dist/index57.mjs +1 -1
- package/dist/index58.mjs +1 -1
- package/dist/index59.mjs +1 -1
- package/dist/index60.mjs +1 -1
- package/dist/index61.mjs +1 -1
- package/dist/index62.mjs +1 -1
- package/dist/index63.mjs +1 -1
- package/dist/index64.mjs +1 -1
- package/dist/index65.mjs +23 -4
- package/dist/index66.mjs +2 -23
- package/dist/index67.mjs +4 -23
- package/dist/index68.mjs +23 -2
- package/dist/index69.mjs +7 -7
- package/dist/index72.mjs +1 -1
- package/dist/index73.mjs +2 -235
- package/dist/index74.mjs +5 -5
- package/dist/index75.mjs +1125 -125
- package/dist/index76.mjs +19 -67
- package/dist/index77.mjs +50 -82
- package/dist/index78.mjs +32 -28
- package/dist/index79.mjs +2 -9
- package/dist/index80.mjs +229 -69
- package/dist/index81.mjs +5 -3
- package/dist/index82.mjs +134 -2
- package/dist/index83.mjs +64 -79
- package/dist/index84.mjs +84 -51
- package/dist/index85.mjs +28 -5
- package/dist/index86.mjs +8 -4
- package/dist/index87.mjs +69 -173
- package/dist/index88.mjs +4 -53
- package/dist/index89.mjs +2 -69
- package/dist/index90.mjs +80 -31
- package/dist/index91.mjs +52 -41
- package/dist/index92.mjs +6 -2
- package/dist/index93.mjs +4 -5
- package/dist/index94.mjs +168 -1123
- package/dist/index95.mjs +53 -20
- package/dist/index96.mjs +69 -55
- package/dist/index97.mjs +34 -33
- package/dist/index98.mjs +43 -2
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
- package/src/components/Checkout.stories.tsx +9 -4
- package/src/components/Checkout.tsx +33 -0
- package/src/components/ProductAddOns.stories.tsx +109 -0
- package/src/components/ProductAddOns.tsx +242 -0
- package/src/components/ShoppingCart.stories.tsx +4 -1
- package/src/components/ui/switch.tsx +37 -0
- package/src/lib/utils.ts +3 -1
- package/src/test-utils/MockCartProvider.tsx +14 -7
package/dist/index268.mjs
CHANGED
|
@@ -1,94 +1,50 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
throw new TypeError("argument str must be a string");
|
|
21
|
-
for (var a = {}, e = n || {}, o = i.split(y), s = e.decode || w, r = 0; r < o.length; r++) {
|
|
22
|
-
var t = o[r], p = t.indexOf("=");
|
|
23
|
-
if (!(p < 0)) {
|
|
24
|
-
var d = t.substr(0, p).trim(), u = t.substr(++p, t.length).trim();
|
|
25
|
-
u[0] == '"' && (u = u.slice(1, -1)), a[d] == null && (a[d] = _(u, s));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return a;
|
|
29
|
-
}
|
|
30
|
-
function x(i, n, a) {
|
|
31
|
-
var e = a || {}, o = e.encode || h;
|
|
32
|
-
if (typeof o != "function")
|
|
33
|
-
throw new TypeError("option encode is invalid");
|
|
34
|
-
if (!f.test(i))
|
|
35
|
-
throw new TypeError("argument name is invalid");
|
|
36
|
-
var s = o(n);
|
|
37
|
-
if (s && !f.test(s))
|
|
38
|
-
throw new TypeError("argument val is invalid");
|
|
39
|
-
var r = i + "=" + s;
|
|
40
|
-
if (e.maxAge != null) {
|
|
41
|
-
var t = e.maxAge - 0;
|
|
42
|
-
if (isNaN(t) || !isFinite(t))
|
|
43
|
-
throw new TypeError("option maxAge is invalid");
|
|
44
|
-
r += "; Max-Age=" + Math.floor(t);
|
|
45
|
-
}
|
|
46
|
-
if (e.domain) {
|
|
47
|
-
if (!f.test(e.domain))
|
|
48
|
-
throw new TypeError("option domain is invalid");
|
|
49
|
-
r += "; Domain=" + e.domain;
|
|
50
|
-
}
|
|
51
|
-
if (e.path) {
|
|
52
|
-
if (!f.test(e.path))
|
|
53
|
-
throw new TypeError("option path is invalid");
|
|
54
|
-
r += "; Path=" + e.path;
|
|
55
|
-
}
|
|
56
|
-
if (e.expires) {
|
|
57
|
-
if (typeof e.expires.toUTCString != "function")
|
|
58
|
-
throw new TypeError("option expires is invalid");
|
|
59
|
-
r += "; Expires=" + e.expires.toUTCString();
|
|
60
|
-
}
|
|
61
|
-
if (e.httpOnly && (r += "; HttpOnly"), e.secure && (r += "; Secure"), e.sameSite) {
|
|
62
|
-
var p = typeof e.sameSite == "string" ? e.sameSite.toLowerCase() : e.sameSite;
|
|
63
|
-
switch (p) {
|
|
64
|
-
case !0:
|
|
65
|
-
r += "; SameSite=Strict";
|
|
66
|
-
break;
|
|
67
|
-
case "lax":
|
|
68
|
-
r += "; SameSite=Lax";
|
|
69
|
-
break;
|
|
70
|
-
case "strict":
|
|
71
|
-
r += "; SameSite=Strict";
|
|
72
|
-
break;
|
|
73
|
-
case "none":
|
|
74
|
-
r += "; SameSite=None";
|
|
75
|
-
break;
|
|
76
|
-
default:
|
|
77
|
-
throw new TypeError("option sameSite is invalid");
|
|
78
|
-
}
|
|
79
|
-
}
|
|
2
|
+
import { __exports as u } from "./index271.mjs";
|
|
3
|
+
var _;
|
|
4
|
+
function g() {
|
|
5
|
+
return _ ? u : (_ = 1, function(i) {
|
|
6
|
+
Object.defineProperty(i, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
function a(e, n) {
|
|
10
|
+
for (var t in n) Object.defineProperty(e, t, {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: n[t]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
a(i, {
|
|
16
|
+
DEFAULT_SEGMENT_KEY: function() {
|
|
17
|
+
return E;
|
|
18
|
+
},
|
|
19
|
+
PAGE_SEGMENT_KEY: function() {
|
|
80
20
|
return r;
|
|
21
|
+
},
|
|
22
|
+
addSearchParamsIfPageSegment: function() {
|
|
23
|
+
return s;
|
|
24
|
+
},
|
|
25
|
+
isGroupSegment: function() {
|
|
26
|
+
return c;
|
|
27
|
+
},
|
|
28
|
+
isParallelRouteSegment: function() {
|
|
29
|
+
return f;
|
|
81
30
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
31
|
+
});
|
|
32
|
+
function c(e) {
|
|
33
|
+
return e[0] === "(" && e.endsWith(")");
|
|
34
|
+
}
|
|
35
|
+
function f(e) {
|
|
36
|
+
return e.startsWith("@") && e !== "@children";
|
|
37
|
+
}
|
|
38
|
+
function s(e, n) {
|
|
39
|
+
if (e.includes(r)) {
|
|
40
|
+
const o = JSON.stringify(n);
|
|
41
|
+
return o !== "{}" ? r + "?" + o : r;
|
|
88
42
|
}
|
|
89
|
-
|
|
90
|
-
|
|
43
|
+
return e;
|
|
44
|
+
}
|
|
45
|
+
const r = "__PAGE__", E = "__DEFAULT__";
|
|
46
|
+
}(u), u);
|
|
91
47
|
}
|
|
92
48
|
export {
|
|
93
|
-
|
|
49
|
+
g as __require
|
|
94
50
|
};
|
package/dist/index30.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
const
|
|
2
|
+
const d = {
|
|
3
3
|
// Public API keys (RPC is now the default)
|
|
4
4
|
public: {
|
|
5
5
|
all: ["public"],
|
|
@@ -16,7 +16,8 @@ const n = {
|
|
|
16
16
|
products: {
|
|
17
17
|
all: ["public", "products"],
|
|
18
18
|
list: (a) => ["public", "products", a],
|
|
19
|
-
detail: (a) => ["public", "products", a]
|
|
19
|
+
detail: (a) => ["public", "products", a],
|
|
20
|
+
addons: (a, s) => ["public", "products", a, "addons", s]
|
|
20
21
|
},
|
|
21
22
|
deliveryZones: {
|
|
22
23
|
all: ["public", "delivery-zones"],
|
|
@@ -43,7 +44,8 @@ const n = {
|
|
|
43
44
|
products: {
|
|
44
45
|
all: ["admin", "products"],
|
|
45
46
|
list: (a) => ["admin", "products", "list", a],
|
|
46
|
-
detail: (a) => ["admin", "products", a]
|
|
47
|
+
detail: (a) => ["admin", "products", a],
|
|
48
|
+
addons: (a) => ["admin", "products", a, "addons"]
|
|
47
49
|
},
|
|
48
50
|
variants: {
|
|
49
51
|
all: ["admin", "variants"],
|
|
@@ -102,5 +104,5 @@ const n = {
|
|
|
102
104
|
}
|
|
103
105
|
};
|
|
104
106
|
export {
|
|
105
|
-
|
|
107
|
+
d as queryKeys
|
|
106
108
|
};
|
package/dist/index31.mjs
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useAddCartItem as r, useApplyDiscount as
|
|
2
|
+
import { useAddCartItem as r, useApplyDiscount as s, useCheckoutCart as o, useCreateCart as u, useGetCart as d, useGetCartRecommendations as m, useRemoveCartItem as a, useRemoveDiscount as C, useUpdateCart as n, useUpdateCartItem as p } from "./index33.mjs";
|
|
3
3
|
import { useConfirmOrder as c, useGetOrder as f, useGetOrderRecommendations as i } from "./index34.mjs";
|
|
4
|
-
import { useGetProduct as R, useGetProducts as v } from "./index35.mjs";
|
|
5
|
-
import { useGetDeliveryZones as
|
|
6
|
-
import { useGetBrand as
|
|
4
|
+
import { useGetProduct as O, useGetProductAddOns as R, useGetProducts as v } from "./index35.mjs";
|
|
5
|
+
import { useGetDeliveryZones as D } from "./index36.mjs";
|
|
6
|
+
import { useGetBrand as P } from "./index37.mjs";
|
|
7
7
|
export {
|
|
8
8
|
r as useAddCartItem,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
s as useApplyDiscount,
|
|
10
|
+
o as useCheckoutCart,
|
|
11
11
|
c as useConfirmOrder,
|
|
12
12
|
u as useCreateCart,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
P as useGetBrand,
|
|
14
|
+
d as useGetCart,
|
|
15
|
+
m as useGetCartRecommendations,
|
|
16
|
+
D as useGetDeliveryZones,
|
|
17
17
|
f as useGetOrder,
|
|
18
18
|
i as useGetOrderRecommendations,
|
|
19
|
-
|
|
19
|
+
O as useGetProduct,
|
|
20
|
+
R as useGetProductAddOns,
|
|
20
21
|
v as useGetProducts,
|
|
21
|
-
|
|
22
|
+
a as useRemoveCartItem,
|
|
22
23
|
C as useRemoveDiscount,
|
|
23
24
|
n as useUpdateCart,
|
|
24
25
|
p as useUpdateCartItem
|
package/dist/index32.mjs
CHANGED
|
@@ -1,69 +1,71 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useAddOrderNote as s, useCreateOrder as r, useDeleteOrder as u, useGetOrder as o, useListOrders as a, useUpdateOrder as
|
|
3
|
-
import { useCreateBrand as p, useDeleteBrand as C, useGetBrand as
|
|
4
|
-
import { useCreateProduct as f, useDeleteProduct as m, useGetProduct as v,
|
|
5
|
-
import { useCreateVariant as
|
|
6
|
-
import { useCreateWarehouse as
|
|
7
|
-
import { useAdjustInventory as
|
|
8
|
-
import { useGetCustomerHistory as
|
|
9
|
-
import { useGetStats as
|
|
10
|
-
import { useCleanupExpiredCarts as
|
|
11
|
-
import { useBulkGenerateDiscountCodes as
|
|
12
|
-
import { useCreateDeliveryZone as
|
|
2
|
+
import { useAddOrderNote as s, useCreateOrder as r, useDeleteOrder as u, useGetOrder as o, useListOrders as a, useUpdateOrder as d, useUpdateOrderStatus as n } from "./index54.mjs";
|
|
3
|
+
import { useCreateBrand as p, useDeleteBrand as C, useGetBrand as c, useListBrands as D, useUpdateBrand as G } from "./index55.mjs";
|
|
4
|
+
import { useCreateProduct as f, useDeleteProduct as m, useGetProduct as v, useGetProductAddOns as x, useListProducts as y, useUpdateProduct as L, useUpdateProductAddOns as O } from "./index56.mjs";
|
|
5
|
+
import { useCreateVariant as U, useDeleteVariant as A, useGetVariantInventory as P, useListProductVariants as V, useSearchVariants as h, useUpdateVariant as B } from "./index57.mjs";
|
|
6
|
+
import { useCreateWarehouse as W, useDeleteWarehouse as Z, useGetWarehouseInventory as b, useListWarehouses as k, useUpdateWarehouse as w } from "./index58.mjs";
|
|
7
|
+
import { useAdjustInventory as j, useGetInventoryTransactions as E, useGetLowStockVariants as H, useListInventory as N, useTransferInventory as g } from "./index59.mjs";
|
|
8
|
+
import { useGetCustomerHistory as z } from "./index60.mjs";
|
|
9
|
+
import { useGetStats as J } from "./index61.mjs";
|
|
10
|
+
import { useCleanupExpiredCarts as M, useGetAbandonedCart as Q, useGetAbandonedCartStats as R, useListAbandonedCarts as X } from "./index62.mjs";
|
|
11
|
+
import { useBulkGenerateDiscountCodes as _, useCreateDiscountCode as $, useDeleteDiscountCode as ee, useGetDiscountCode as te, useGetDiscountCodeAnalytics as se, useGetDiscountCodeOverviewStats as re, useListDiscountCodes as ue, useUpdateDiscountCode as oe } from "./index63.mjs";
|
|
12
|
+
import { useCreateDeliveryZone as de, useCreateState as ne, useDeleteDeliveryZone as ie, useDeleteState as pe, useListDeliveryZones as Ce, useListStates as ce, useUpdateDeliveryZone as De, useUpdateState as Ge } from "./index64.mjs";
|
|
13
13
|
export {
|
|
14
14
|
s as useAddOrderNote,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
j as useAdjustInventory,
|
|
16
|
+
_ as useBulkGenerateDiscountCodes,
|
|
17
|
+
M as useCleanupExpiredCarts,
|
|
18
18
|
p as useCreateBrand,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
de as useCreateDeliveryZone,
|
|
20
|
+
$ as useCreateDiscountCode,
|
|
21
21
|
r as useCreateOrder,
|
|
22
22
|
f as useCreateProduct,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
ne as useCreateState,
|
|
24
|
+
U as useCreateVariant,
|
|
25
|
+
W as useCreateWarehouse,
|
|
26
26
|
C as useDeleteBrand,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
ie as useDeleteDeliveryZone,
|
|
28
|
+
ee as useDeleteDiscountCode,
|
|
29
29
|
u as useDeleteOrder,
|
|
30
30
|
m as useDeleteProduct,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
pe as useDeleteState,
|
|
32
|
+
A as useDeleteVariant,
|
|
33
|
+
Z as useDeleteWarehouse,
|
|
34
|
+
Q as useGetAbandonedCart,
|
|
35
|
+
R as useGetAbandonedCartStats,
|
|
36
|
+
c as useGetBrand,
|
|
37
|
+
z as useGetCustomerHistory,
|
|
38
|
+
te as useGetDiscountCode,
|
|
39
|
+
se as useGetDiscountCodeAnalytics,
|
|
40
|
+
re as useGetDiscountCodeOverviewStats,
|
|
41
|
+
E as useGetInventoryTransactions,
|
|
42
|
+
H as useGetLowStockVariants,
|
|
43
43
|
o as useGetOrder,
|
|
44
44
|
v as useGetProduct,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
45
|
+
x as useGetProductAddOns,
|
|
46
|
+
J as useGetStats,
|
|
47
|
+
P as useGetVariantInventory,
|
|
48
|
+
b as useGetWarehouseInventory,
|
|
49
|
+
X as useListAbandonedCarts,
|
|
50
|
+
D as useListBrands,
|
|
51
|
+
Ce as useListDeliveryZones,
|
|
52
|
+
ue as useListDiscountCodes,
|
|
53
|
+
N as useListInventory,
|
|
53
54
|
a as useListOrders,
|
|
54
55
|
V as useListProductVariants,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
y as useListProducts,
|
|
57
|
+
ce as useListStates,
|
|
58
|
+
k as useListWarehouses,
|
|
58
59
|
h as useSearchVariants,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
g as useTransferInventory,
|
|
61
|
+
G as useUpdateBrand,
|
|
62
|
+
De as useUpdateDeliveryZone,
|
|
63
|
+
oe as useUpdateDiscountCode,
|
|
64
|
+
d as useUpdateOrder,
|
|
65
|
+
n as useUpdateOrderStatus,
|
|
66
|
+
L as useUpdateProduct,
|
|
67
|
+
O as useUpdateProductAddOns,
|
|
68
|
+
Ge as useUpdateState,
|
|
69
|
+
B as useUpdateVariant,
|
|
70
|
+
w as useUpdateWarehouse
|
|
69
71
|
};
|
package/dist/index33.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useQueryClient as s, useMutation as r } from "@tanstack/react-query";
|
|
3
|
-
import { useQueryUnwrapped as c } from "./
|
|
3
|
+
import { useQueryUnwrapped as c } from "./index67.mjs";
|
|
4
4
|
import { queryKeys as i } from "./index30.mjs";
|
|
5
5
|
import { updateCart as a, createCart as l, applyDiscount as m, removeDiscount as y, addCartItem as p, updateCartItem as C, removeCartItem as q, checkoutCart as f, fetchCart as d, fetchCartRecommendations as b } from "./index26.mjs";
|
|
6
6
|
function S(e, t) {
|
package/dist/index34.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { useMutation as m } from "@tanstack/react-query";
|
|
3
|
-
import { useQueryUnwrapped as u } from "./
|
|
3
|
+
import { useQueryUnwrapped as u } from "./index67.mjs";
|
|
4
4
|
import { queryKeys as o } from "./index30.mjs";
|
|
5
5
|
import { confirmOrder as i, fetchOrder as c, fetchOrderRecommendations as f } from "./index27.mjs";
|
|
6
6
|
function a(e, r, n) {
|
package/dist/index35.mjs
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { useQueryUnwrapped as
|
|
2
|
+
import { useQueryUnwrapped as e } from "./index67.mjs";
|
|
3
3
|
import { queryKeys as t } from "./index30.mjs";
|
|
4
|
-
import { fetchProductsByBrand as
|
|
5
|
-
function
|
|
6
|
-
return
|
|
4
|
+
import { fetchProductsByBrand as c, fetchProductBySlug as d, fetchProductAddons as n } from "./index25.mjs";
|
|
5
|
+
function f(r, u) {
|
|
6
|
+
return e({
|
|
7
7
|
queryKey: t.public.products.list(r),
|
|
8
|
-
queryFn: () =>
|
|
9
|
-
...
|
|
8
|
+
queryFn: () => c(r),
|
|
9
|
+
...u
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
12
|
+
function i(r, u) {
|
|
13
|
+
return e({
|
|
14
14
|
queryKey: t.public.products.detail(r),
|
|
15
|
-
queryFn: () =>
|
|
16
|
-
...
|
|
15
|
+
queryFn: () => d(r),
|
|
16
|
+
...u
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function q(r, u, o) {
|
|
20
|
+
return e({
|
|
21
|
+
queryKey: t.public.products.addons(r, u),
|
|
22
|
+
queryFn: () => n(r, u),
|
|
23
|
+
...o
|
|
17
24
|
});
|
|
18
25
|
}
|
|
19
26
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
i as useGetProduct,
|
|
28
|
+
q as useGetProductAddOns,
|
|
29
|
+
f as useGetProducts
|
|
22
30
|
};
|
package/dist/index36.mjs
CHANGED
package/dist/index37.mjs
CHANGED
package/dist/index38.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { getDefaultExportFromCjs as x } from "./
|
|
3
|
-
import { __module as q } from "./
|
|
2
|
+
import { getDefaultExportFromCjs as x } from "./index65.mjs";
|
|
3
|
+
import { __module as q } from "./index66.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/index40.mjs
CHANGED
package/dist/index47.mjs
CHANGED
package/dist/index52.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 "./index80.mjs";
|
|
3
|
+
import p from "./index81.mjs";
|
|
4
|
+
import m from "./index82.mjs";
|
|
5
|
+
import i from "./index83.mjs";
|
|
6
|
+
import f from "./index84.mjs";
|
|
7
|
+
import l from "./index85.mjs";
|
|
8
|
+
import c from "./index86.mjs";
|
|
9
|
+
import d from "./index87.mjs";
|
|
10
|
+
import u from "./index88.mjs";
|
|
11
|
+
import { VERSION as x } from "./index89.mjs";
|
|
12
|
+
import C from "./index90.mjs";
|
|
13
|
+
import A from "./index91.mjs";
|
|
14
|
+
import E from "./index92.mjs";
|
|
15
|
+
import O from "./index93.mjs";
|
|
16
|
+
import S from "./index94.mjs";
|
|
17
|
+
import H from "./index95.mjs";
|
|
18
|
+
import T from "./index96.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/index53.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 "./index97.mjs";
|
|
6
|
+
import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index98.mjs";
|
|
7
7
|
var v = (r, e) => new Proxy(() => {
|
|
8
8
|
}, {
|
|
9
9
|
get(t, s) {
|
package/dist/index54.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 f } from "./
|
|
3
|
+
import { useQueryUnwrapped as f } from "./index67.mjs";
|
|
4
4
|
import { createAdminRpcClients as d, authHeaders as l } from "./index24.mjs";
|
|
5
5
|
import { queryKeys as c } from "./index30.mjs";
|
|
6
6
|
import { useApiConfig as y } from "./index22.mjs";
|
package/dist/index55.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 "./index67.mjs";
|
|
4
4
|
import { createAdminRpcClients as c, authHeaders as d } from "./index24.mjs";
|
|
5
5
|
import { queryKeys as u } from "./index30.mjs";
|
|
6
6
|
import { useApiConfig as l } from "./index22.mjs";
|