@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.
Files changed (213) hide show
  1. package/dist/components/Checkout.d.ts.map +1 -1
  2. package/dist/components/ProductAddOns.d.ts +22 -0
  3. package/dist/components/ProductAddOns.d.ts.map +1 -0
  4. package/dist/components/ui/switch.d.ts +8 -0
  5. package/dist/components/ui/switch.d.ts.map +1 -0
  6. package/dist/index.mjs +58 -56
  7. package/dist/index101.mjs +1 -1
  8. package/dist/index102.mjs +1 -1
  9. package/dist/index103.mjs +8 -8
  10. package/dist/index104.mjs +6 -6
  11. package/dist/index105.mjs +3 -3
  12. package/dist/index106.mjs +1 -1
  13. package/dist/index107.mjs +1 -1
  14. package/dist/index108.mjs +1 -1
  15. package/dist/index109.mjs +2 -2
  16. package/dist/index110.mjs +2 -2
  17. package/dist/index111.mjs +3 -3
  18. package/dist/index112.mjs +1 -1
  19. package/dist/index113.mjs +3 -3
  20. package/dist/index114.mjs +2 -2
  21. package/dist/index115.mjs +2 -2
  22. package/dist/index116.mjs +1 -1
  23. package/dist/index117.mjs +3 -3
  24. package/dist/index118.mjs +1 -1
  25. package/dist/index119.mjs +1 -1
  26. package/dist/index120.mjs +3 -3
  27. package/dist/index121.mjs +2 -2
  28. package/dist/index122.mjs +4 -4
  29. package/dist/index123.mjs +1 -1
  30. package/dist/index124.mjs +3 -3
  31. package/dist/index125.mjs +4 -4
  32. package/dist/index126.mjs +1 -1
  33. package/dist/index127.mjs +1 -1
  34. package/dist/index128.mjs +1 -1
  35. package/dist/index129.mjs +1 -1
  36. package/dist/index13.mjs +266 -238
  37. package/dist/index130.mjs +1 -1
  38. package/dist/index131.mjs +1 -1
  39. package/dist/index132.mjs +1 -1
  40. package/dist/index133.mjs +2 -2
  41. package/dist/index134.mjs +3 -3
  42. package/dist/index137.mjs +1 -1
  43. package/dist/index139.mjs +1 -1
  44. package/dist/index140.mjs +1 -1
  45. package/dist/index141.mjs +5 -5
  46. package/dist/index143.mjs +2 -2
  47. package/dist/index145.mjs +2 -2
  48. package/dist/index147.mjs +1 -1
  49. package/dist/index149.mjs +4 -4
  50. package/dist/index150.mjs +3 -3
  51. package/dist/index151.mjs +2 -2
  52. package/dist/index153.mjs +2 -2
  53. package/dist/index154.mjs +18 -2
  54. package/dist/index155.mjs +25 -11
  55. package/dist/index156.mjs +32 -26
  56. package/dist/index157.mjs +12 -32
  57. package/dist/index158.mjs +9 -9
  58. package/dist/index159.mjs +2 -18
  59. package/dist/index160.mjs +20 -2
  60. package/dist/index161.mjs +39 -13
  61. package/dist/index162.mjs +2 -46
  62. package/dist/index163.mjs +30 -2
  63. package/dist/index164.mjs +12 -24
  64. package/dist/index165.mjs +2 -18
  65. package/dist/index166.mjs +2 -2
  66. package/dist/index167.mjs +2 -2
  67. package/dist/index168.mjs +2 -2
  68. package/dist/index169.mjs +72 -2
  69. package/dist/index170.mjs +2 -72
  70. package/dist/index171.mjs +53 -2
  71. package/dist/index172.mjs +2 -53
  72. package/dist/index173.mjs +36 -2
  73. package/dist/index174.mjs +146 -30
  74. package/dist/index175.mjs +2 -152
  75. package/dist/index176.mjs +2 -2
  76. package/dist/index177.mjs +19 -2
  77. package/dist/index178.mjs +2 -19
  78. package/dist/index179.mjs +2 -2
  79. package/dist/index180.mjs +26 -2
  80. package/dist/index181.mjs +2 -26
  81. package/dist/index182.mjs +2 -2
  82. package/dist/index183.mjs +24 -2
  83. package/dist/index184.mjs +16 -17
  84. package/dist/index185.mjs +2 -23
  85. package/dist/index187.mjs +2 -2
  86. package/dist/index188.mjs +23 -2
  87. package/dist/index189.mjs +2 -23
  88. package/dist/index190.mjs +23 -2
  89. package/dist/index191.mjs +2 -23
  90. package/dist/index192.mjs +2 -2
  91. package/dist/index194.mjs +23 -2
  92. package/dist/index195.mjs +2 -23
  93. package/dist/index196.mjs +23 -2
  94. package/dist/index197.mjs +2 -23
  95. package/dist/index198.mjs +2 -2
  96. package/dist/index199.mjs +2 -2
  97. package/dist/index20.mjs +24 -22
  98. package/dist/index201.mjs +2 -2
  99. package/dist/index202.mjs +2 -2
  100. package/dist/index203.mjs +2 -2
  101. package/dist/index204.mjs +2 -2
  102. package/dist/index205.mjs +127 -2
  103. package/dist/index206.mjs +2 -127
  104. package/dist/index207.mjs +74 -2
  105. package/dist/index208.mjs +60 -60
  106. package/dist/index209.mjs +2 -74
  107. package/dist/index210.mjs +1 -1
  108. package/dist/index211.mjs +3 -3
  109. package/dist/index216.mjs +1 -1
  110. package/dist/index218.mjs +1 -1
  111. package/dist/index219.mjs +3 -3
  112. package/dist/index220.mjs +3 -3
  113. package/dist/index222.mjs +2 -2
  114. package/dist/index223.mjs +108 -2
  115. package/dist/index224.mjs +2 -2
  116. package/dist/index226.mjs +2 -2
  117. package/dist/index227.mjs +2 -2
  118. package/dist/index228.mjs +2 -108
  119. package/dist/index229.mjs +2 -2
  120. package/dist/index231.mjs +2 -37
  121. package/dist/index232.mjs +2 -2
  122. package/dist/index233.mjs +36 -243
  123. package/dist/index234.mjs +2 -2
  124. package/dist/index235.mjs +243 -32
  125. package/dist/index236.mjs +2 -65
  126. package/dist/index237.mjs +24 -16
  127. package/dist/index238.mjs +65 -2
  128. package/dist/index239.mjs +25 -2
  129. package/dist/index24.mjs +28 -26
  130. package/dist/index240.mjs +2 -2
  131. package/dist/index241.mjs +2 -2
  132. package/dist/index242.mjs +2 -2
  133. package/dist/index244.mjs +2 -2
  134. package/dist/index246.mjs +2 -2
  135. package/dist/index247.mjs +2 -2
  136. package/dist/index248.mjs +2 -2
  137. package/dist/index25.mjs +18 -8
  138. package/dist/index250.mjs +1 -1
  139. package/dist/index259.mjs +1 -1
  140. package/dist/index262.mjs +2 -2
  141. package/dist/index263.mjs +2 -18
  142. package/dist/index264.mjs +2 -47
  143. package/dist/index265.mjs +91 -2
  144. package/dist/index266.mjs +2 -2
  145. package/dist/index267.mjs +18 -2
  146. package/dist/index268.mjs +43 -87
  147. package/dist/index30.mjs +6 -4
  148. package/dist/index31.mjs +13 -12
  149. package/dist/index32.mjs +56 -54
  150. package/dist/index33.mjs +1 -1
  151. package/dist/index34.mjs +1 -1
  152. package/dist/index35.mjs +20 -12
  153. package/dist/index36.mjs +1 -1
  154. package/dist/index37.mjs +1 -1
  155. package/dist/index38.mjs +2 -2
  156. package/dist/index40.mjs +1 -1
  157. package/dist/index47.mjs +1 -1
  158. package/dist/index52.mjs +17 -17
  159. package/dist/index53.mjs +2 -2
  160. package/dist/index54.mjs +1 -1
  161. package/dist/index55.mjs +1 -1
  162. package/dist/index56.mjs +68 -38
  163. package/dist/index57.mjs +1 -1
  164. package/dist/index58.mjs +1 -1
  165. package/dist/index59.mjs +1 -1
  166. package/dist/index60.mjs +1 -1
  167. package/dist/index61.mjs +1 -1
  168. package/dist/index62.mjs +1 -1
  169. package/dist/index63.mjs +1 -1
  170. package/dist/index64.mjs +1 -1
  171. package/dist/index65.mjs +23 -4
  172. package/dist/index66.mjs +2 -23
  173. package/dist/index67.mjs +4 -23
  174. package/dist/index68.mjs +23 -2
  175. package/dist/index69.mjs +7 -7
  176. package/dist/index72.mjs +1 -1
  177. package/dist/index73.mjs +2 -235
  178. package/dist/index74.mjs +5 -5
  179. package/dist/index75.mjs +1125 -125
  180. package/dist/index76.mjs +19 -67
  181. package/dist/index77.mjs +50 -82
  182. package/dist/index78.mjs +32 -28
  183. package/dist/index79.mjs +2 -9
  184. package/dist/index80.mjs +229 -69
  185. package/dist/index81.mjs +5 -3
  186. package/dist/index82.mjs +134 -2
  187. package/dist/index83.mjs +64 -79
  188. package/dist/index84.mjs +84 -51
  189. package/dist/index85.mjs +28 -5
  190. package/dist/index86.mjs +8 -4
  191. package/dist/index87.mjs +69 -173
  192. package/dist/index88.mjs +4 -53
  193. package/dist/index89.mjs +2 -69
  194. package/dist/index90.mjs +80 -31
  195. package/dist/index91.mjs +52 -41
  196. package/dist/index92.mjs +6 -2
  197. package/dist/index93.mjs +4 -5
  198. package/dist/index94.mjs +168 -1123
  199. package/dist/index95.mjs +53 -20
  200. package/dist/index96.mjs +69 -55
  201. package/dist/index97.mjs +34 -33
  202. package/dist/index98.mjs +43 -2
  203. package/dist/lib/utils.d.ts.map +1 -1
  204. package/dist/styles.css +1 -1
  205. package/package.json +3 -3
  206. package/src/components/Checkout.stories.tsx +9 -4
  207. package/src/components/Checkout.tsx +33 -0
  208. package/src/components/ProductAddOns.stories.tsx +109 -0
  209. package/src/components/ProductAddOns.tsx +242 -0
  210. package/src/components/ShoppingCart.stories.tsx +4 -1
  211. package/src/components/ui/switch.tsx +37 -0
  212. package/src/lib/utils.ts +3 -1
  213. package/src/test-utils/MockCartProvider.tsx +14 -7
package/dist/index268.mjs CHANGED
@@ -1,94 +1,50 @@
1
1
  'use client';
2
- import { __module as c } from "./index272.mjs";
3
- var l;
4
- function T() {
5
- return l ? c.exports : (l = 1, (() => {
6
- typeof __nccwpck_require__ < "u" && (__nccwpck_require__.ab = __dirname + "/");
7
- var m = {};
8
- (() => {
9
- var v = m;
10
- /*!
11
- * cookie
12
- * Copyright(c) 2012-2014 Roman Shtylman
13
- * Copyright(c) 2015 Douglas Christopher Wilson
14
- * MIT Licensed
15
- */
16
- v.parse = S, v.serialize = x;
17
- var w = decodeURIComponent, h = encodeURIComponent, y = /; */, f = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
18
- function S(i, n) {
19
- if (typeof i != "string")
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
- function _(i, n) {
83
- try {
84
- return n(i);
85
- } catch {
86
- return i;
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
- })(), c.exports = m;
90
- })(), c.exports);
43
+ return e;
44
+ }
45
+ const r = "__PAGE__", E = "__DEFAULT__";
46
+ }(u), u);
91
47
  }
92
48
  export {
93
- T as __require
49
+ g as __require
94
50
  };
package/dist/index30.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- const n = {
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
- n as queryKeys
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 o, useCheckoutCart as s, useCreateCart as u, useGetCart as m, useGetCartRecommendations as a, useRemoveCartItem as d, useRemoveDiscount as C, useUpdateCart as n, useUpdateCartItem as p } from "./index33.mjs";
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 I } from "./index36.mjs";
6
- import { useGetBrand as l } from "./index37.mjs";
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
- o as useApplyDiscount,
10
- s as useCheckoutCart,
9
+ s as useApplyDiscount,
10
+ o as useCheckoutCart,
11
11
  c as useConfirmOrder,
12
12
  u as useCreateCart,
13
- l as useGetBrand,
14
- m as useGetCart,
15
- a as useGetCartRecommendations,
16
- I as useGetDeliveryZones,
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
- R as useGetProduct,
19
+ O as useGetProduct,
20
+ R as useGetProductAddOns,
20
21
  v as useGetProducts,
21
- d as useRemoveCartItem,
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 n, useUpdateOrderStatus as d } from "./index54.mjs";
3
- import { useCreateBrand as p, useDeleteBrand as C, useGetBrand as D, useListBrands as c, useUpdateBrand as l } from "./index55.mjs";
4
- import { useCreateProduct as f, useDeleteProduct as m, useGetProduct as v, useListProducts as x, useUpdateProduct as y } from "./index56.mjs";
5
- import { useCreateVariant as S, useDeleteVariant as U, useGetVariantInventory as O, useListProductVariants as V, useSearchVariants as h, useUpdateVariant as A } from "./index57.mjs";
6
- import { useCreateWarehouse as I, useDeleteWarehouse as P, useGetWarehouseInventory as W, useListWarehouses as Z, useUpdateWarehouse as b } from "./index58.mjs";
7
- import { useAdjustInventory as w, useGetInventoryTransactions as T, useGetLowStockVariants as j, useListInventory as E, useTransferInventory as H } from "./index59.mjs";
8
- import { useGetCustomerHistory as g } from "./index60.mjs";
9
- import { useGetStats as z } from "./index61.mjs";
10
- import { useCleanupExpiredCarts as J, useGetAbandonedCart as K, useGetAbandonedCartStats as M, useListAbandonedCarts as Q } from "./index62.mjs";
11
- import { useBulkGenerateDiscountCodes as X, useCreateDiscountCode as Y, useDeleteDiscountCode as _, useGetDiscountCode as $, useGetDiscountCodeAnalytics as ee, useGetDiscountCodeOverviewStats as te, useListDiscountCodes as se, useUpdateDiscountCode as re } from "./index63.mjs";
12
- import { useCreateDeliveryZone as oe, useCreateState as ae, useDeleteDeliveryZone as ne, useDeleteState as de, useListDeliveryZones as ie, useListStates as pe, useUpdateDeliveryZone as Ce, useUpdateState as De } from "./index64.mjs";
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
- w as useAdjustInventory,
16
- X as useBulkGenerateDiscountCodes,
17
- J as useCleanupExpiredCarts,
15
+ j as useAdjustInventory,
16
+ _ as useBulkGenerateDiscountCodes,
17
+ M as useCleanupExpiredCarts,
18
18
  p as useCreateBrand,
19
- oe as useCreateDeliveryZone,
20
- Y as useCreateDiscountCode,
19
+ de as useCreateDeliveryZone,
20
+ $ as useCreateDiscountCode,
21
21
  r as useCreateOrder,
22
22
  f as useCreateProduct,
23
- ae as useCreateState,
24
- S as useCreateVariant,
25
- I as useCreateWarehouse,
23
+ ne as useCreateState,
24
+ U as useCreateVariant,
25
+ W as useCreateWarehouse,
26
26
  C as useDeleteBrand,
27
- ne as useDeleteDeliveryZone,
28
- _ as useDeleteDiscountCode,
27
+ ie as useDeleteDeliveryZone,
28
+ ee as useDeleteDiscountCode,
29
29
  u as useDeleteOrder,
30
30
  m as useDeleteProduct,
31
- de as useDeleteState,
32
- U as useDeleteVariant,
33
- P as useDeleteWarehouse,
34
- K as useGetAbandonedCart,
35
- M as useGetAbandonedCartStats,
36
- D as useGetBrand,
37
- g as useGetCustomerHistory,
38
- $ as useGetDiscountCode,
39
- ee as useGetDiscountCodeAnalytics,
40
- te as useGetDiscountCodeOverviewStats,
41
- T as useGetInventoryTransactions,
42
- j as useGetLowStockVariants,
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
- z as useGetStats,
46
- O as useGetVariantInventory,
47
- W as useGetWarehouseInventory,
48
- Q as useListAbandonedCarts,
49
- c as useListBrands,
50
- ie as useListDeliveryZones,
51
- se as useListDiscountCodes,
52
- E as useListInventory,
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
- x as useListProducts,
56
- pe as useListStates,
57
- Z as useListWarehouses,
56
+ y as useListProducts,
57
+ ce as useListStates,
58
+ k as useListWarehouses,
58
59
  h as useSearchVariants,
59
- H as useTransferInventory,
60
- l as useUpdateBrand,
61
- Ce as useUpdateDeliveryZone,
62
- re as useUpdateDiscountCode,
63
- n as useUpdateOrder,
64
- d as useUpdateOrderStatus,
65
- y as useUpdateProduct,
66
- De as useUpdateState,
67
- A as useUpdateVariant,
68
- b as useUpdateWarehouse
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 "./index65.mjs";
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 "./index65.mjs";
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 u } from "./index65.mjs";
2
+ import { useQueryUnwrapped as e } from "./index67.mjs";
3
3
  import { queryKeys as t } from "./index30.mjs";
4
- import { fetchProductsByBrand as o, fetchProductBySlug as c } from "./index25.mjs";
5
- function n(r, e) {
6
- return u({
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: () => o(r),
9
- ...e
8
+ queryFn: () => c(r),
9
+ ...u
10
10
  });
11
11
  }
12
- function s(r, e) {
13
- return u({
12
+ function i(r, u) {
13
+ return e({
14
14
  queryKey: t.public.products.detail(r),
15
- queryFn: () => c(r),
16
- ...e
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
- s as useGetProduct,
21
- n as useGetProducts
27
+ i as useGetProduct,
28
+ q as useGetProductAddOns,
29
+ f as useGetProducts
22
30
  };
package/dist/index36.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as o } from "./index65.mjs";
2
+ import { useQueryUnwrapped as o } from "./index67.mjs";
3
3
  import { queryKeys as i } from "./index30.mjs";
4
4
  import { fetchDeliveryZones as t } from "./index28.mjs";
5
5
  function p(e, r) {
package/dist/index37.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { useQueryUnwrapped as t } from "./index65.mjs";
2
+ import { useQueryUnwrapped as t } from "./index67.mjs";
3
3
  import { queryKeys as u } from "./index30.mjs";
4
4
  import { fetchBrandBySlug as n } from "./index29.mjs";
5
5
  function i(r, e) {
package/dist/index38.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { getDefaultExportFromCjs as x } from "./index67.mjs";
3
- import { __module as q } from "./index68.mjs";
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
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { getDefaultExportFromCjs as n } from "./index67.mjs";
2
+ import { getDefaultExportFromCjs as n } from "./index65.mjs";
3
3
  import { __require as i } from "./index69.mjs";
4
4
  function s(t, a) {
5
5
  for (var o = 0; o < a.length; o++) {
package/dist/index47.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import * as l from "react";
3
- import { composeRefs as m } from "./index66.mjs";
3
+ import { composeRefs as m } from "./index68.mjs";
4
4
  import { jsx as u } from "react/jsx-runtime";
5
5
  // @__NO_SIDE_EFFECTS__
6
6
  function y(e) {
package/dist/index52.mjs CHANGED
@@ -1,21 +1,21 @@
1
1
  'use client';
2
- import a from "./index73.mjs";
3
- import p from "./index74.mjs";
4
- import m from "./index75.mjs";
5
- import i from "./index76.mjs";
6
- import f from "./index77.mjs";
7
- import l from "./index78.mjs";
8
- import c from "./index79.mjs";
9
- import d from "./index80.mjs";
10
- import u from "./index81.mjs";
11
- import { VERSION as x } from "./index82.mjs";
12
- import C from "./index83.mjs";
13
- import A from "./index84.mjs";
14
- import E from "./index85.mjs";
15
- import O from "./index86.mjs";
16
- import S from "./index87.mjs";
17
- import H from "./index88.mjs";
18
- import T from "./index89.mjs";
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 "./index90.mjs";
6
- import { mergePath as U, replaceUrlParam as P, buildSearchParams as S, removeIndexString as w, replaceUrlProtocol as x, deepMerge as C } from "./index91.mjs";
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 "./index65.mjs";
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 "./index65.mjs";
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";