@storepecker/storefront-core 2.5.1 → 2.5.3
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/api/index.cjs +18 -18
- package/dist/api/index.d.cts +6 -6
- package/dist/api/index.d.ts +6 -6
- package/dist/api/index.js +1 -1
- package/dist/{booking-DX9SU_qm.d.cts → booking-Bpj3o6Av.d.cts} +1 -1
- package/dist/{booking-BVWe8HHh.d.ts → booking-cbb8kh2L.d.ts} +1 -1
- package/dist/{cart-CLf2ljxd.d.ts → cart-DV1HcSC6.d.ts} +7 -1
- package/dist/{cart-CuLMWnfy.d.cts → cart-lJvJzaoH.d.cts} +7 -1
- package/dist/checkout/index.d.cts +3 -3
- package/dist/checkout/index.d.ts +3 -3
- package/dist/{chunk-XURYZRER.js → chunk-CUR7CHR5.js} +2 -1
- package/dist/{chunk-23YAZNVF.cjs → chunk-FU46MZTI.cjs} +7 -7
- package/dist/{chunk-VZAIAQZJ.js → chunk-P252YNRA.js} +1 -1
- package/dist/{chunk-MTSMQAZR.cjs → chunk-PARH5TBK.cjs} +2 -1
- package/dist/{collections-WzvTO0OQ.d.cts → collections-fGX_D_Mi.d.cts} +1 -1
- package/dist/{collections-BDSVfRNo.d.ts → collections-kERS_kZw.d.ts} +1 -1
- package/dist/components/digital-product-download-modal.d.cts +2 -2
- package/dist/components/digital-product-download-modal.d.ts +2 -2
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/share-button.d.cts +1 -1
- package/dist/components/share-button.d.ts +1 -1
- package/dist/components/theme-data-initializer.d.cts +5 -5
- package/dist/components/theme-data-initializer.d.ts +5 -5
- package/dist/hooks/index.cjs +15 -15
- package/dist/hooks/index.d.cts +6 -6
- package/dist/hooks/index.d.ts +6 -6
- package/dist/hooks/index.js +6 -6
- package/dist/models/index.d.cts +6 -6
- package/dist/models/index.d.ts +6 -6
- package/dist/{orders-CjNmCY5I.d.cts → orders-BhmpycYJ.d.ts} +21 -1
- package/dist/{orders-L_8eIkUS.d.ts → orders-CGwKT5L-.d.cts} +21 -1
- package/dist/{pixelEvents-LqK0Ltr_.d.ts → pixelEvents-CA14Tvrs.d.ts} +4 -4
- package/dist/{pixelEvents-CXViXGtV.d.cts → pixelEvents-Do1wT3z_.d.cts} +4 -4
- package/dist/{product-DJMdi4D4.d.ts → product-B8elBN21.d.cts} +4 -0
- package/dist/{product-DJMdi4D4.d.cts → product-B8elBN21.d.ts} +4 -0
- package/dist/store/index.cjs +7 -7
- package/dist/store/index.d.cts +6 -6
- package/dist/store/index.d.ts +6 -6
- package/dist/store/index.js +2 -2
- package/dist/utils/index.d.cts +7 -7
- package/dist/utils/index.d.ts +7 -7
- package/dist/{wishlist-DKYFZR0s.d.ts → wishlist-B-bvvOxv.d.ts} +1 -1
- package/dist/{wishlist-CUuCTSVJ.d.cts → wishlist-BdpIFX5_.d.cts} +1 -1
- package/package.json +1 -1
package/dist/api/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
6
|
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
7
7
|
var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
|
|
@@ -152,71 +152,71 @@ Object.defineProperty(exports, "updateUserDetails", {
|
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "addToCart", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkPARH5TBK_cjs.addToCart; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "addWishlist", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkPARH5TBK_cjs.addWishlist; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "getCart", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkPARH5TBK_cjs.getCart; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "getCartItemQuantity", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkPARH5TBK_cjs.getCartItemQuantity; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "getCategories", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkPARH5TBK_cjs.getCategories; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "getDigitalProductDownloadLink", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkPARH5TBK_cjs.getDigitalProductDownloadLink; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "getProductCategories", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkPARH5TBK_cjs.getProductCategories; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "getProductDetail", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkPARH5TBK_cjs.getProductDetail; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "getProductDetailBySlug", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkPARH5TBK_cjs.getProductDetailBySlug; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "getProductList", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkPARH5TBK_cjs.getProductList; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "getProducts", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkPARH5TBK_cjs.getProducts; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "getWishlist", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkPARH5TBK_cjs.getWishlist; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "notifyProductStock", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkPARH5TBK_cjs.notifyProductStock; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "removeFromCart", {
|
|
206
206
|
enumerable: true,
|
|
207
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunkPARH5TBK_cjs.removeFromCart; }
|
|
208
208
|
});
|
|
209
209
|
Object.defineProperty(exports, "removeFromWishlist", {
|
|
210
210
|
enumerable: true,
|
|
211
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunkPARH5TBK_cjs.removeFromWishlist; }
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "updateCart", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkPARH5TBK_cjs.updateCart; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "updateDigitalProductDownloadLinkCount", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunkPARH5TBK_cjs.updateDigitalProductDownloadLinkCount; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "applyCoupon", {
|
|
222
222
|
enumerable: true,
|
package/dist/api/index.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
2
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
3
3
|
import { A as Address } from '../address-DwBZHzbI.cjs';
|
|
4
|
-
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-
|
|
5
|
-
import { d as Product, f as ProductDetail } from '../product-
|
|
6
|
-
import { O as Order } from '../orders-
|
|
7
|
-
import { W as Wishlist } from '../wishlist-
|
|
8
|
-
import { C as CollectionResponse } from '../collections-
|
|
9
|
-
import { R as Review, A as Analytics, B as Booking } from '../booking-
|
|
4
|
+
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-lJvJzaoH.cjs';
|
|
5
|
+
import { d as Product, f as ProductDetail } from '../product-B8elBN21.cjs';
|
|
6
|
+
import { O as Order } from '../orders-CGwKT5L-.cjs';
|
|
7
|
+
import { W as Wishlist } from '../wishlist-BdpIFX5_.cjs';
|
|
8
|
+
import { C as CollectionResponse } from '../collections-fGX_D_Mi.cjs';
|
|
9
|
+
import { R as Review, A as Analytics, B as Booking } from '../booking-Bpj3o6Av.cjs';
|
|
10
10
|
import 'react-toastify';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
2
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
3
3
|
import { A as Address } from '../address-DwBZHzbI.js';
|
|
4
|
-
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-
|
|
5
|
-
import { d as Product, f as ProductDetail } from '../product-
|
|
6
|
-
import { O as Order } from '../orders-
|
|
7
|
-
import { W as Wishlist } from '../wishlist-
|
|
8
|
-
import { C as CollectionResponse } from '../collections-
|
|
9
|
-
import { R as Review, A as Analytics, B as Booking } from '../booking-
|
|
4
|
+
import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-DV1HcSC6.js';
|
|
5
|
+
import { d as Product, f as ProductDetail } from '../product-B8elBN21.js';
|
|
6
|
+
import { O as Order } from '../orders-BhmpycYJ.js';
|
|
7
|
+
import { W as Wishlist } from '../wishlist-B-bvvOxv.js';
|
|
8
|
+
import { C as CollectionResponse } from '../collections-kERS_kZw.js';
|
|
9
|
+
import { R as Review, A as Analytics, B as Booking } from '../booking-cbb8kh2L.js';
|
|
10
10
|
import 'react-toastify';
|
|
11
11
|
|
|
12
12
|
/**
|
package/dist/api/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { getUserDetails, updateUserDetails } from '../chunk-WYXT5AAG.js';
|
|
2
|
-
export { addToCart, addWishlist, getCart, getCartItemQuantity, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-
|
|
2
|
+
export { addToCart, addWishlist, getCart, getCartItemQuantity, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-CUR7CHR5.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
4
|
export { applyCoupon, getAppliedCoupon, getCoupons, removeCoupon } from '../chunk-7M5CVYZJ.js';
|
|
5
5
|
export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-S3ZZ3ZA7.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-
|
|
1
|
+
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-B8elBN21.js';
|
|
2
2
|
|
|
3
3
|
declare namespace User {
|
|
4
4
|
interface Root {
|
|
@@ -109,6 +109,12 @@ declare namespace Cart {
|
|
|
109
109
|
shipping_options: ShippingOption[];
|
|
110
110
|
selected_shipping_option_id: number | null;
|
|
111
111
|
selected_address_id: number | null;
|
|
112
|
+
split_preview?: {
|
|
113
|
+
has_split: boolean;
|
|
114
|
+
regular_total: string;
|
|
115
|
+
preorder_total: string;
|
|
116
|
+
preorder_ship_days: number;
|
|
117
|
+
} | null;
|
|
112
118
|
}
|
|
113
119
|
interface CustomizationInput {
|
|
114
120
|
id: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-
|
|
1
|
+
import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-B8elBN21.cjs';
|
|
2
2
|
|
|
3
3
|
declare namespace User {
|
|
4
4
|
interface Root {
|
|
@@ -109,6 +109,12 @@ declare namespace Cart {
|
|
|
109
109
|
shipping_options: ShippingOption[];
|
|
110
110
|
selected_shipping_option_id: number | null;
|
|
111
111
|
selected_address_id: number | null;
|
|
112
|
+
split_preview?: {
|
|
113
|
+
has_split: boolean;
|
|
114
|
+
regular_total: string;
|
|
115
|
+
preorder_total: string;
|
|
116
|
+
preorder_ship_days: number;
|
|
117
|
+
} | null;
|
|
112
118
|
}
|
|
113
119
|
interface CustomizationInput {
|
|
114
120
|
id: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Yup from 'yup';
|
|
2
|
-
import { C as Cart, c as Coupon } from '../cart-
|
|
3
|
-
import { O as Order } from '../orders-
|
|
4
|
-
import '../product-
|
|
2
|
+
import { C as Cart, c as Coupon } from '../cart-lJvJzaoH.cjs';
|
|
3
|
+
import { O as Order } from '../orders-CGwKT5L-.cjs';
|
|
4
|
+
import '../product-B8elBN21.cjs';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/checkout/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Yup from 'yup';
|
|
2
|
-
import { C as Cart, c as Coupon } from '../cart-
|
|
3
|
-
import { O as Order } from '../orders-
|
|
4
|
-
import '../product-
|
|
2
|
+
import { C as Cart, c as Coupon } from '../cart-DV1HcSC6.js';
|
|
3
|
+
import { O as Order } from '../orders-BhmpycYJ.js';
|
|
4
|
+
import '../product-B8elBN21.js';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -21,7 +21,8 @@ async function getCart(url, addressId, shippingOptionId) {
|
|
|
21
21
|
applied_coupon: {},
|
|
22
22
|
shipping_options: [],
|
|
23
23
|
selected_shipping_option_id: null,
|
|
24
|
-
selected_address_id: null
|
|
24
|
+
selected_address_id: null,
|
|
25
|
+
split_preview: null
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
async function getCartItemQuantity() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPARH5TBK_cjs = require('./chunk-PARH5TBK.cjs');
|
|
4
4
|
var chunkSMHJRNCR_cjs = require('./chunk-SMHJRNCR.cjs');
|
|
5
5
|
var chunkDXQX7ZIL_cjs = require('./chunk-DXQX7ZIL.cjs');
|
|
6
6
|
var chunkBBRXE57K_cjs = require('./chunk-BBRXE57K.cjs');
|
|
@@ -23,7 +23,7 @@ var useCartStore = zustand.create((set) => ({
|
|
|
23
23
|
}),
|
|
24
24
|
fetchCartQuantity: async () => {
|
|
25
25
|
try {
|
|
26
|
-
const { total_quantity } = await
|
|
26
|
+
const { total_quantity } = await chunkPARH5TBK_cjs.getCartItemQuantity();
|
|
27
27
|
set({ total_quantity });
|
|
28
28
|
} catch (error) {
|
|
29
29
|
console.error("Failed to fetch cart quantity", error);
|
|
@@ -32,7 +32,7 @@ var useCartStore = zustand.create((set) => ({
|
|
|
32
32
|
syncCart: async (addressId, shippingOptionId) => {
|
|
33
33
|
set({ status: "loading" /* LOADING */ });
|
|
34
34
|
try {
|
|
35
|
-
const response = await
|
|
35
|
+
const response = await chunkPARH5TBK_cjs.getCart("/customer/cart/", addressId, shippingOptionId);
|
|
36
36
|
if (response) {
|
|
37
37
|
set({ cart: response, total_quantity: response.total_quantity, status: "idle" /* IDLE */ });
|
|
38
38
|
}
|
|
@@ -43,7 +43,7 @@ var useCartStore = zustand.create((set) => ({
|
|
|
43
43
|
fetchCart: async (addressId, shippingOptionId) => {
|
|
44
44
|
set({ status: "loading" /* LOADING */ });
|
|
45
45
|
try {
|
|
46
|
-
const response = await
|
|
46
|
+
const response = await chunkPARH5TBK_cjs.getCart("/customer/cart/", addressId, shippingOptionId);
|
|
47
47
|
if (response) {
|
|
48
48
|
set({ cart: response, total_quantity: response.total_quantity, status: "idle" /* IDLE */ });
|
|
49
49
|
}
|
|
@@ -55,7 +55,7 @@ var useCartStore = zustand.create((set) => ({
|
|
|
55
55
|
set({ status: "loading" /* LOADING */ });
|
|
56
56
|
try {
|
|
57
57
|
if (chunkBBRXE57K_cjs.auth_default.getUserDetails()) {
|
|
58
|
-
await
|
|
58
|
+
await chunkPARH5TBK_cjs.addToCart(items, customizationInputs);
|
|
59
59
|
await useCartStore.getState().syncCart(addressId);
|
|
60
60
|
} else {
|
|
61
61
|
const cart = chunkSMHJRNCR_cjs.cart_default.get();
|
|
@@ -83,7 +83,7 @@ var useCartStore = zustand.create((set) => ({
|
|
|
83
83
|
set({ status: "loading" /* LOADING */ });
|
|
84
84
|
try {
|
|
85
85
|
if (chunkBBRXE57K_cjs.auth_default.getUserDetails()) {
|
|
86
|
-
await
|
|
86
|
+
await chunkPARH5TBK_cjs.removeFromCart(items);
|
|
87
87
|
await useCartStore.getState().syncCart(addressId);
|
|
88
88
|
} else {
|
|
89
89
|
const cart = chunkSMHJRNCR_cjs.cart_default.get();
|
|
@@ -114,7 +114,7 @@ var useCartStore = zustand.create((set) => ({
|
|
|
114
114
|
set({ status: "loading" /* LOADING */ });
|
|
115
115
|
try {
|
|
116
116
|
if (chunkBBRXE57K_cjs.auth_default.getUserDetails()) {
|
|
117
|
-
await
|
|
117
|
+
await chunkPARH5TBK_cjs.updateCart(items);
|
|
118
118
|
await useCartStore.getState().syncCart(addressId);
|
|
119
119
|
} else {
|
|
120
120
|
const cart = chunkSMHJRNCR_cjs.cart_default.get();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { updateCart, removeFromCart, addToCart, getCart, getCartItemQuantity } from './chunk-
|
|
1
|
+
import { updateCart, removeFromCart, addToCart, getCart, getCartItemQuantity } from './chunk-CUR7CHR5.js';
|
|
2
2
|
import { cart_default } from './chunk-QAC72HKO.js';
|
|
3
3
|
import { updateOrderCustomization } from './chunk-S3ZZ3ZA7.js';
|
|
4
4
|
import { auth_default } from './chunk-WEMNXIRS.js';
|
|
@@ -23,7 +23,8 @@ async function getCart(url, addressId, shippingOptionId) {
|
|
|
23
23
|
applied_coupon: {},
|
|
24
24
|
shipping_options: [],
|
|
25
25
|
selected_shipping_option_id: null,
|
|
26
|
-
selected_address_id: null
|
|
26
|
+
selected_address_id: null,
|
|
27
|
+
split_preview: null
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
30
|
async function getCartItemQuantity() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as Order } from '../orders-
|
|
2
|
-
import { f as ProductDetail } from '../product-
|
|
1
|
+
import { O as Order } from '../orders-CGwKT5L-.cjs';
|
|
2
|
+
import { f as ProductDetail } from '../product-B8elBN21.cjs';
|
|
3
3
|
import 'react-toastify';
|
|
4
4
|
|
|
5
5
|
interface DigitalProductDownloadModalProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as Order } from '../orders-
|
|
2
|
-
import { f as ProductDetail } from '../product-
|
|
1
|
+
import { O as Order } from '../orders-BhmpycYJ.js';
|
|
2
|
+
import { f as ProductDetail } from '../product-B8elBN21.js';
|
|
3
3
|
import 'react-toastify';
|
|
4
4
|
|
|
5
5
|
interface DigitalProductDownloadModalProps {
|
|
@@ -8,10 +8,10 @@ import 'react';
|
|
|
8
8
|
import '../useAddressForm-DGbEn91-.cjs';
|
|
9
9
|
import 'formik';
|
|
10
10
|
import '../address-DwBZHzbI.cjs';
|
|
11
|
-
import '../product-
|
|
11
|
+
import '../product-B8elBN21.cjs';
|
|
12
12
|
import 'react-toastify';
|
|
13
13
|
import 'react/jsx-runtime';
|
|
14
|
-
import '../orders-
|
|
15
|
-
import '../pixelEvents-
|
|
16
|
-
import '../cart-
|
|
17
|
-
import '../collections-
|
|
14
|
+
import '../orders-CGwKT5L-.cjs';
|
|
15
|
+
import '../pixelEvents-Do1wT3z_.cjs';
|
|
16
|
+
import '../cart-lJvJzaoH.cjs';
|
|
17
|
+
import '../collections-fGX_D_Mi.cjs';
|
|
@@ -8,10 +8,10 @@ import 'react';
|
|
|
8
8
|
import '../useAddressForm-cO3Au33k.js';
|
|
9
9
|
import 'formik';
|
|
10
10
|
import '../address-DwBZHzbI.js';
|
|
11
|
-
import '../product-
|
|
11
|
+
import '../product-B8elBN21.js';
|
|
12
12
|
import 'react-toastify';
|
|
13
13
|
import 'react/jsx-runtime';
|
|
14
|
-
import '../orders-
|
|
15
|
-
import '../pixelEvents-
|
|
16
|
-
import '../cart-
|
|
17
|
-
import '../collections-
|
|
14
|
+
import '../orders-BhmpycYJ.js';
|
|
15
|
+
import '../pixelEvents-CA14Tvrs.js';
|
|
16
|
+
import '../cart-DV1HcSC6.js';
|
|
17
|
+
import '../collections-kERS_kZw.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
-
import '../cart-
|
|
3
|
-
import '../product-
|
|
1
|
+
import { P as PageHeaderProps } from '../pixelEvents-Do1wT3z_.cjs';
|
|
2
|
+
import '../cart-lJvJzaoH.cjs';
|
|
3
|
+
import '../product-B8elBN21.cjs';
|
|
4
4
|
import 'react-toastify';
|
|
5
|
-
import '../collections-
|
|
6
|
-
import '../orders-
|
|
5
|
+
import '../collections-fGX_D_Mi.cjs';
|
|
6
|
+
import '../orders-CGwKT5L-.cjs';
|
|
7
7
|
|
|
8
8
|
declare function ThemeDataInitializer({ themeData, }: {
|
|
9
9
|
themeData: PageHeaderProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
-
import '../cart-
|
|
3
|
-
import '../product-
|
|
1
|
+
import { P as PageHeaderProps } from '../pixelEvents-CA14Tvrs.js';
|
|
2
|
+
import '../cart-DV1HcSC6.js';
|
|
3
|
+
import '../product-B8elBN21.js';
|
|
4
4
|
import 'react-toastify';
|
|
5
|
-
import '../collections-
|
|
6
|
-
import '../orders-
|
|
5
|
+
import '../collections-kERS_kZw.js';
|
|
6
|
+
import '../orders-BhmpycYJ.js';
|
|
7
7
|
|
|
8
8
|
declare function ThemeDataInitializer({ themeData, }: {
|
|
9
9
|
themeData: PageHeaderProps;
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
4
|
var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunkFU46MZTI_cjs = require('../chunk-FU46MZTI.cjs');
|
|
6
|
+
var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
|
|
7
7
|
var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
|
|
8
8
|
var chunkPZJT2Y5B_cjs = require('../chunk-PZJT2Y5B.cjs');
|
|
9
9
|
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
@@ -52,10 +52,10 @@ var useCart = (addressId) => {
|
|
|
52
52
|
const [error, setError] = react.useState(null);
|
|
53
53
|
const [isLoading, setIsLoading] = react.useState(true);
|
|
54
54
|
const fetchData = react.useCallback(
|
|
55
|
-
async (addrId) => {
|
|
55
|
+
async (addrId, shippingId) => {
|
|
56
56
|
try {
|
|
57
57
|
setIsLoading(true);
|
|
58
|
-
const result = await
|
|
58
|
+
const result = await chunkPARH5TBK_cjs.getCart("/customer/cart/", addrId ?? addressId, shippingId);
|
|
59
59
|
setData(result);
|
|
60
60
|
setError(null);
|
|
61
61
|
} catch (err) {
|
|
@@ -70,8 +70,8 @@ var useCart = (addressId) => {
|
|
|
70
70
|
fetchData();
|
|
71
71
|
}, [fetchData]);
|
|
72
72
|
const refetchWithParams = react.useCallback(
|
|
73
|
-
(newAddressId) => {
|
|
74
|
-
fetchData(newAddressId);
|
|
73
|
+
(newAddressId, shippingId) => {
|
|
74
|
+
fetchData(newAddressId, shippingId);
|
|
75
75
|
},
|
|
76
76
|
[fetchData]
|
|
77
77
|
);
|
|
@@ -127,7 +127,7 @@ function useGetProducts(initialFilter, options) {
|
|
|
127
127
|
apiParams[key] = value;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
const result = await
|
|
130
|
+
const result = await chunkPARH5TBK_cjs.getProductList(endpoint, apiParams);
|
|
131
131
|
setData(result);
|
|
132
132
|
if (modeRef.current === "append" && isLoadMoreRef.current) {
|
|
133
133
|
setProducts((prev) => [...prev, ...result.results || []]);
|
|
@@ -195,7 +195,7 @@ var useGetProductDetails = (slug) => {
|
|
|
195
195
|
const fetchData = react.useCallback(async () => {
|
|
196
196
|
try {
|
|
197
197
|
setIsLoading(true);
|
|
198
|
-
const result = await
|
|
198
|
+
const result = await chunkPARH5TBK_cjs.getProductDetail("/inventory/products/", slug);
|
|
199
199
|
setData(result);
|
|
200
200
|
} catch (err) {
|
|
201
201
|
} finally {
|
|
@@ -218,7 +218,7 @@ var useGetProductCategories = () => {
|
|
|
218
218
|
const fetchData = async () => {
|
|
219
219
|
try {
|
|
220
220
|
setIsLoading(true);
|
|
221
|
-
const result = await
|
|
221
|
+
const result = await chunkPARH5TBK_cjs.getProductCategories("/store/categories");
|
|
222
222
|
setData(result || []);
|
|
223
223
|
} catch (err) {
|
|
224
224
|
setError(err);
|
|
@@ -263,7 +263,7 @@ var useWishlist = () => {
|
|
|
263
263
|
const fetchData = react.useCallback(async () => {
|
|
264
264
|
try {
|
|
265
265
|
setIsLoading(true);
|
|
266
|
-
const response = await
|
|
266
|
+
const response = await chunkPARH5TBK_cjs.getWishlist("/customer/wishlist/");
|
|
267
267
|
if (response.data) setData(response.data);
|
|
268
268
|
setError(null);
|
|
269
269
|
} catch (err) {
|
|
@@ -321,7 +321,7 @@ function useCheckoutPayment(options) {
|
|
|
321
321
|
const [isConfirmingPayment, setIsConfirmingPayment] = react.useState(false);
|
|
322
322
|
const [showSuccessModal, setShowSuccessModal] = react.useState(false);
|
|
323
323
|
const [showFailureModal, setShowFailureModal] = react.useState(false);
|
|
324
|
-
const resetCartCount =
|
|
324
|
+
const resetCartCount = chunkFU46MZTI_cjs.useCartStore((s) => s.resetCartCount);
|
|
325
325
|
const callbacks = {
|
|
326
326
|
onSuccess: (order) => {
|
|
327
327
|
setOrderSummary(order);
|
|
@@ -508,8 +508,8 @@ function useVariantSelector(options) {
|
|
|
508
508
|
}
|
|
509
509
|
function useShopCheckout(options) {
|
|
510
510
|
const { product, onNavigateToCart, onToast } = options;
|
|
511
|
-
const { addToCart, setCart } =
|
|
512
|
-
const isUserAuthenticated =
|
|
511
|
+
const { addToCart, setCart } = chunkFU46MZTI_cjs.useCartStore();
|
|
512
|
+
const isUserAuthenticated = chunkFU46MZTI_cjs.useAuthStore((s) => s.isAuthenticated);
|
|
513
513
|
const [isWishlisted, setIsWishlisted] = react.useState(product.is_wishlisted);
|
|
514
514
|
const [isAddedToCart, setIsAddedToCart] = react.useState(false);
|
|
515
515
|
const [loading, setLoading] = react.useState(false);
|
|
@@ -520,7 +520,7 @@ function useShopCheckout(options) {
|
|
|
520
520
|
react.useEffect(() => {
|
|
521
521
|
const fetchCategories = async () => {
|
|
522
522
|
try {
|
|
523
|
-
const response = await
|
|
523
|
+
const response = await chunkPARH5TBK_cjs.getCategories();
|
|
524
524
|
setCategories(response.data);
|
|
525
525
|
} catch (error) {
|
|
526
526
|
console.log(error);
|
|
@@ -634,7 +634,7 @@ function useShopCheckout(options) {
|
|
|
634
634
|
const handleNotifyMeFormSubmit = react.useCallback(
|
|
635
635
|
async (values) => {
|
|
636
636
|
try {
|
|
637
|
-
const response = await
|
|
637
|
+
const response = await chunkPARH5TBK_cjs.notifyProductStock({
|
|
638
638
|
...values,
|
|
639
639
|
variant_slug: product.slug
|
|
640
640
|
});
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as Address } from '../address-DwBZHzbI.cjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-
|
|
4
|
-
import { O as Order } from '../orders-
|
|
5
|
-
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-
|
|
6
|
-
import { W as Wishlist } from '../wishlist-
|
|
3
|
+
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-lJvJzaoH.cjs';
|
|
4
|
+
import { O as Order } from '../orders-CGwKT5L-.cjs';
|
|
5
|
+
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-B8elBN21.cjs';
|
|
6
|
+
import { W as Wishlist } from '../wishlist-BdpIFX5_.cjs';
|
|
7
7
|
export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
|
|
8
8
|
import 'react-toastify';
|
|
9
9
|
import 'formik';
|
|
@@ -19,8 +19,8 @@ declare const useCart: (addressId?: number) => {
|
|
|
19
19
|
data: Cart.Root | undefined;
|
|
20
20
|
error: unknown;
|
|
21
21
|
isLoading: boolean;
|
|
22
|
-
mutate: (addrId?: number) => Promise<void>;
|
|
23
|
-
refetchWithParams: (newAddressId?: number) => void;
|
|
22
|
+
mutate: (addrId?: number, shippingId?: number) => Promise<void>;
|
|
23
|
+
refetchWithParams: (newAddressId?: number, shippingId?: number) => void;
|
|
24
24
|
setData: React.Dispatch<React.SetStateAction<Cart.Root | undefined>>;
|
|
25
25
|
};
|
|
26
26
|
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as Address } from '../address-DwBZHzbI.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-
|
|
4
|
-
import { O as Order } from '../orders-
|
|
5
|
-
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-
|
|
6
|
-
import { W as Wishlist } from '../wishlist-
|
|
3
|
+
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-DV1HcSC6.js';
|
|
4
|
+
import { O as Order } from '../orders-BhmpycYJ.js';
|
|
5
|
+
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-B8elBN21.js';
|
|
6
|
+
import { W as Wishlist } from '../wishlist-B-bvvOxv.js';
|
|
7
7
|
export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
|
|
8
8
|
import 'react-toastify';
|
|
9
9
|
import 'formik';
|
|
@@ -19,8 +19,8 @@ declare const useCart: (addressId?: number) => {
|
|
|
19
19
|
data: Cart.Root | undefined;
|
|
20
20
|
error: unknown;
|
|
21
21
|
isLoading: boolean;
|
|
22
|
-
mutate: (addrId?: number) => Promise<void>;
|
|
23
|
-
refetchWithParams: (newAddressId?: number) => void;
|
|
22
|
+
mutate: (addrId?: number, shippingId?: number) => Promise<void>;
|
|
23
|
+
refetchWithParams: (newAddressId?: number, shippingId?: number) => void;
|
|
24
24
|
setData: React.Dispatch<React.SetStateAction<Cart.Root | undefined>>;
|
|
25
25
|
};
|
|
26
26
|
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getUserDetails } from '../chunk-WYXT5AAG.js';
|
|
2
2
|
import { findMatchingVariant, findSimilarVariant, isVariantCombinationAvailable, isColorVariantType } from '../chunk-HEFA67WK.js';
|
|
3
|
-
import { useCartStore, useAuthStore } from '../chunk-
|
|
4
|
-
import { getCart, getProductList, getProductDetail, getWishlist, notifyProductStock, getProductCategories, getCategories } from '../chunk-
|
|
3
|
+
import { useCartStore, useAuthStore } from '../chunk-P252YNRA.js';
|
|
4
|
+
import { getCart, getProductList, getProductDetail, getWishlist, notifyProductStock, getProductCategories, getCategories } from '../chunk-CUR7CHR5.js';
|
|
5
5
|
import { cart_default } from '../chunk-QAC72HKO.js';
|
|
6
6
|
import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-NXQIWB36.js';
|
|
7
7
|
import { applyCoupon, removeCoupon, getCoupons, getAppliedCoupon } from '../chunk-7M5CVYZJ.js';
|
|
@@ -50,10 +50,10 @@ var useCart = (addressId) => {
|
|
|
50
50
|
const [error, setError] = useState(null);
|
|
51
51
|
const [isLoading, setIsLoading] = useState(true);
|
|
52
52
|
const fetchData = useCallback(
|
|
53
|
-
async (addrId) => {
|
|
53
|
+
async (addrId, shippingId) => {
|
|
54
54
|
try {
|
|
55
55
|
setIsLoading(true);
|
|
56
|
-
const result = await getCart("/customer/cart/", addrId ?? addressId);
|
|
56
|
+
const result = await getCart("/customer/cart/", addrId ?? addressId, shippingId);
|
|
57
57
|
setData(result);
|
|
58
58
|
setError(null);
|
|
59
59
|
} catch (err) {
|
|
@@ -68,8 +68,8 @@ var useCart = (addressId) => {
|
|
|
68
68
|
fetchData();
|
|
69
69
|
}, [fetchData]);
|
|
70
70
|
const refetchWithParams = useCallback(
|
|
71
|
-
(newAddressId) => {
|
|
72
|
-
fetchData(newAddressId);
|
|
71
|
+
(newAddressId, shippingId) => {
|
|
72
|
+
fetchData(newAddressId, shippingId);
|
|
73
73
|
},
|
|
74
74
|
[fetchData]
|
|
75
75
|
);
|
package/dist/models/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as Address } from '../address-DwBZHzbI.cjs';
|
|
2
|
-
export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-
|
|
3
|
-
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-
|
|
4
|
-
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-
|
|
5
|
-
export { O as Order } from '../orders-
|
|
2
|
+
export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-Bpj3o6Av.cjs';
|
|
3
|
+
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-lJvJzaoH.cjs';
|
|
4
|
+
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-fGX_D_Mi.cjs';
|
|
5
|
+
export { O as Order } from '../orders-CGwKT5L-.cjs';
|
|
6
6
|
export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.cjs';
|
|
7
|
-
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-
|
|
8
|
-
export { W as Wishlist } from '../wishlist-
|
|
7
|
+
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-B8elBN21.cjs';
|
|
8
|
+
export { W as Wishlist } from '../wishlist-BdpIFX5_.cjs';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare namespace CountryModel {
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as Address } from '../address-DwBZHzbI.js';
|
|
2
|
-
export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-
|
|
3
|
-
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-
|
|
4
|
-
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-
|
|
5
|
-
export { O as Order } from '../orders-
|
|
2
|
+
export { A as Analytics, B as Booking, a as BookingDetails, R as Review } from '../booking-cbb8kh2L.js';
|
|
3
|
+
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-DV1HcSC6.js';
|
|
4
|
+
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-kERS_kZw.js';
|
|
5
|
+
export { O as Order } from '../orders-BhmpycYJ.js';
|
|
6
6
|
export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.js';
|
|
7
|
-
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-
|
|
8
|
-
export { W as Wishlist } from '../wishlist-
|
|
7
|
+
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-B8elBN21.js';
|
|
8
|
+
export { W as Wishlist } from '../wishlist-B-bvvOxv.js';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare namespace CountryModel {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Photos } from './product-
|
|
1
|
+
import { P as Photos } from './product-B8elBN21.js';
|
|
2
2
|
|
|
3
3
|
declare namespace Order {
|
|
4
4
|
interface Root {
|
|
@@ -11,6 +11,7 @@ declare namespace Order {
|
|
|
11
11
|
purchased_products: PurchasedProduct[];
|
|
12
12
|
order_status: OrderStatus;
|
|
13
13
|
order_number: number;
|
|
14
|
+
order_ref: string;
|
|
14
15
|
payment_method: string | null;
|
|
15
16
|
shipping_address: string;
|
|
16
17
|
shipping_city: string;
|
|
@@ -26,6 +27,16 @@ declare namespace Order {
|
|
|
26
27
|
customer_details: CustomerDetails;
|
|
27
28
|
customer_name: string;
|
|
28
29
|
customer_phone: string;
|
|
30
|
+
linked_order: number;
|
|
31
|
+
linked_orders: {
|
|
32
|
+
id: number;
|
|
33
|
+
order_number: number;
|
|
34
|
+
is_preorder: boolean;
|
|
35
|
+
total_amount: number;
|
|
36
|
+
}[];
|
|
37
|
+
is_preorder: boolean;
|
|
38
|
+
selected_shipping_option_name: string;
|
|
39
|
+
shipping_amount: number;
|
|
29
40
|
}
|
|
30
41
|
interface OrderResponse {
|
|
31
42
|
currentPage: number;
|
|
@@ -61,6 +72,7 @@ declare namespace Order {
|
|
|
61
72
|
purchased_products: PurchasedProduct[];
|
|
62
73
|
order_status: string;
|
|
63
74
|
order_number: number;
|
|
75
|
+
order_ref: string;
|
|
64
76
|
payment_method: string | null;
|
|
65
77
|
shipping_address: string;
|
|
66
78
|
shipping_city: string;
|
|
@@ -106,6 +118,14 @@ declare namespace Order {
|
|
|
106
118
|
total_coupon_discount: number;
|
|
107
119
|
stripe_payment_link_url: string;
|
|
108
120
|
tabby_redirect_url?: string;
|
|
121
|
+
linked_order: number;
|
|
122
|
+
linked_orders: {
|
|
123
|
+
id: number;
|
|
124
|
+
order_number: number;
|
|
125
|
+
is_preorder: boolean;
|
|
126
|
+
total_amount: number;
|
|
127
|
+
}[];
|
|
128
|
+
is_preorder: boolean;
|
|
109
129
|
}
|
|
110
130
|
interface PurchasedProduct {
|
|
111
131
|
product_id: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Photos } from './product-
|
|
1
|
+
import { P as Photos } from './product-B8elBN21.cjs';
|
|
2
2
|
|
|
3
3
|
declare namespace Order {
|
|
4
4
|
interface Root {
|
|
@@ -11,6 +11,7 @@ declare namespace Order {
|
|
|
11
11
|
purchased_products: PurchasedProduct[];
|
|
12
12
|
order_status: OrderStatus;
|
|
13
13
|
order_number: number;
|
|
14
|
+
order_ref: string;
|
|
14
15
|
payment_method: string | null;
|
|
15
16
|
shipping_address: string;
|
|
16
17
|
shipping_city: string;
|
|
@@ -26,6 +27,16 @@ declare namespace Order {
|
|
|
26
27
|
customer_details: CustomerDetails;
|
|
27
28
|
customer_name: string;
|
|
28
29
|
customer_phone: string;
|
|
30
|
+
linked_order: number;
|
|
31
|
+
linked_orders: {
|
|
32
|
+
id: number;
|
|
33
|
+
order_number: number;
|
|
34
|
+
is_preorder: boolean;
|
|
35
|
+
total_amount: number;
|
|
36
|
+
}[];
|
|
37
|
+
is_preorder: boolean;
|
|
38
|
+
selected_shipping_option_name: string;
|
|
39
|
+
shipping_amount: number;
|
|
29
40
|
}
|
|
30
41
|
interface OrderResponse {
|
|
31
42
|
currentPage: number;
|
|
@@ -61,6 +72,7 @@ declare namespace Order {
|
|
|
61
72
|
purchased_products: PurchasedProduct[];
|
|
62
73
|
order_status: string;
|
|
63
74
|
order_number: number;
|
|
75
|
+
order_ref: string;
|
|
64
76
|
payment_method: string | null;
|
|
65
77
|
shipping_address: string;
|
|
66
78
|
shipping_city: string;
|
|
@@ -106,6 +118,14 @@ declare namespace Order {
|
|
|
106
118
|
total_coupon_discount: number;
|
|
107
119
|
stripe_payment_link_url: string;
|
|
108
120
|
tabby_redirect_url?: string;
|
|
121
|
+
linked_order: number;
|
|
122
|
+
linked_orders: {
|
|
123
|
+
id: number;
|
|
124
|
+
order_number: number;
|
|
125
|
+
is_preorder: boolean;
|
|
126
|
+
total_amount: number;
|
|
127
|
+
}[];
|
|
128
|
+
is_preorder: boolean;
|
|
109
129
|
}
|
|
110
130
|
interface PurchasedProduct {
|
|
111
131
|
product_id: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as Category$1, C as Cart } from './cart-
|
|
2
|
-
import { C as CollectionResponse } from './collections-
|
|
3
|
-
import { O as Order } from './orders-
|
|
4
|
-
import { f as ProductDetail, d as Product } from './product-
|
|
1
|
+
import { b as Category$1, C as Cart } from './cart-DV1HcSC6.js';
|
|
2
|
+
import { C as CollectionResponse } from './collections-kERS_kZw.js';
|
|
3
|
+
import { O as Order } from './orders-BhmpycYJ.js';
|
|
4
|
+
import { f as ProductDetail, d as Product } from './product-B8elBN21.js';
|
|
5
5
|
|
|
6
6
|
interface PageProps {
|
|
7
7
|
nav_bar: NavBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as Category$1, C as Cart } from './cart-
|
|
2
|
-
import { C as CollectionResponse } from './collections-
|
|
3
|
-
import { O as Order } from './orders-
|
|
4
|
-
import { f as ProductDetail, d as Product } from './product-
|
|
1
|
+
import { b as Category$1, C as Cart } from './cart-lJvJzaoH.cjs';
|
|
2
|
+
import { C as CollectionResponse } from './collections-fGX_D_Mi.cjs';
|
|
3
|
+
import { O as Order } from './orders-CGwKT5L-.cjs';
|
|
4
|
+
import { f as ProductDetail, d as Product } from './product-B8elBN21.cjs';
|
|
5
5
|
|
|
6
6
|
interface PageProps {
|
|
7
7
|
nav_bar: NavBar;
|
|
@@ -127,6 +127,8 @@ declare namespace Product {
|
|
|
127
127
|
[key: string]: number;
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
+
is_preorder: boolean;
|
|
131
|
+
preorder_ship_days: number;
|
|
130
132
|
}
|
|
131
133
|
interface ProductResponse {
|
|
132
134
|
count: number;
|
|
@@ -241,6 +243,8 @@ declare namespace ProductDetail {
|
|
|
241
243
|
[key: string]: number;
|
|
242
244
|
};
|
|
243
245
|
};
|
|
246
|
+
is_preorder: boolean;
|
|
247
|
+
preorder_ship_days: number;
|
|
244
248
|
}
|
|
245
249
|
interface VariantAttribute {
|
|
246
250
|
[key: string]: {
|
|
@@ -127,6 +127,8 @@ declare namespace Product {
|
|
|
127
127
|
[key: string]: number;
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
|
+
is_preorder: boolean;
|
|
131
|
+
preorder_ship_days: number;
|
|
130
132
|
}
|
|
131
133
|
interface ProductResponse {
|
|
132
134
|
count: number;
|
|
@@ -241,6 +243,8 @@ declare namespace ProductDetail {
|
|
|
241
243
|
[key: string]: number;
|
|
242
244
|
};
|
|
243
245
|
};
|
|
246
|
+
is_preorder: boolean;
|
|
247
|
+
preorder_ship_days: number;
|
|
244
248
|
}
|
|
245
249
|
interface VariantAttribute {
|
|
246
250
|
[key: string]: {
|
package/dist/store/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkFU46MZTI_cjs = require('../chunk-FU46MZTI.cjs');
|
|
4
|
+
var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
6
|
require('../chunk-DXQX7ZIL.cjs');
|
|
7
7
|
var chunkDODFO744_cjs = require('../chunk-DODFO744.cjs');
|
|
@@ -21,7 +21,7 @@ var useWishlistStore = zustand.create((set) => ({
|
|
|
21
21
|
resetWishlist: () => set(initialState),
|
|
22
22
|
syncWishlist: async () => {
|
|
23
23
|
try {
|
|
24
|
-
const response = await
|
|
24
|
+
const response = await chunkPARH5TBK_cjs.getWishlist("/customer/wishlist/");
|
|
25
25
|
if (response.data) {
|
|
26
26
|
set({
|
|
27
27
|
wishlist_count: response.data.wishlist_count,
|
|
@@ -49,7 +49,7 @@ var useProductStore = zustand.create((set, get) => ({
|
|
|
49
49
|
data: filter.page === 1 ? [] : state.data
|
|
50
50
|
}));
|
|
51
51
|
try {
|
|
52
|
-
const response = await
|
|
52
|
+
const response = await chunkPARH5TBK_cjs.getProducts({ ...filter });
|
|
53
53
|
if (response.data) {
|
|
54
54
|
const { results, ...meta } = response.data;
|
|
55
55
|
set((state) => ({
|
|
@@ -69,15 +69,15 @@ var useProductStore = zustand.create((set, get) => ({
|
|
|
69
69
|
|
|
70
70
|
Object.defineProperty(exports, "loginUser", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkFU46MZTI_cjs.loginUser; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "useAuthStore", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkFU46MZTI_cjs.useAuthStore; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "useCartStore", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkFU46MZTI_cjs.useCartStore; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "useThemeData", {
|
|
83
83
|
enumerable: true,
|
package/dist/store/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import { a as CartState, C as Cart, U as User } from '../cart-
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import { d as Product } from '../product-
|
|
5
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-lJvJzaoH.cjs';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-BdpIFX5_.cjs';
|
|
4
|
+
import { d as Product } from '../product-B8elBN21.cjs';
|
|
5
|
+
import { P as PageHeaderProps } from '../pixelEvents-Do1wT3z_.cjs';
|
|
6
6
|
import 'react-toastify';
|
|
7
|
-
import '../collections-
|
|
8
|
-
import '../orders-
|
|
7
|
+
import '../collections-fGX_D_Mi.cjs';
|
|
8
|
+
import '../orders-CGwKT5L-.cjs';
|
|
9
9
|
|
|
10
10
|
interface CartStore extends CartState {
|
|
11
11
|
setCart: (cart: Cart.Root) => void;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import { a as CartState, C as Cart, U as User } from '../cart-
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import { d as Product } from '../product-
|
|
5
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-DV1HcSC6.js';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-B-bvvOxv.js';
|
|
4
|
+
import { d as Product } from '../product-B8elBN21.js';
|
|
5
|
+
import { P as PageHeaderProps } from '../pixelEvents-CA14Tvrs.js';
|
|
6
6
|
import 'react-toastify';
|
|
7
|
-
import '../collections-
|
|
8
|
-
import '../orders-
|
|
7
|
+
import '../collections-kERS_kZw.js';
|
|
8
|
+
import '../orders-BhmpycYJ.js';
|
|
9
9
|
|
|
10
10
|
interface CartStore extends CartState {
|
|
11
11
|
setCart: (cart: Cart.Root) => void;
|
package/dist/store/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { loginUser, useAuthStore, useCartStore } from '../chunk-
|
|
2
|
-
import { getWishlist, getProducts } from '../chunk-
|
|
1
|
+
export { loginUser, useAuthStore, useCartStore } from '../chunk-P252YNRA.js';
|
|
2
|
+
import { getWishlist, getProducts } from '../chunk-CUR7CHR5.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
4
|
import '../chunk-S3ZZ3ZA7.js';
|
|
5
5
|
export { useThemeData } from '../chunk-5NUDTIQ2.js';
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-
|
|
2
|
-
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-
|
|
3
|
-
import { C as Cart } from '../cart-
|
|
1
|
+
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-B8elBN21.cjs';
|
|
2
|
+
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-B8elBN21.cjs';
|
|
3
|
+
import { C as Cart } from '../cart-lJvJzaoH.cjs';
|
|
4
4
|
export { S as SnapstoreConfig, g as getApiEndpoint, a as getCloudFront, b as getConfig, c as getPhonePeApiEndpoint, d as getPublicApiEndpoint, e as getSecretKey, f as getStoreId, i as initConfig } from '../index-DTyIuLuI.cjs';
|
|
5
|
-
import { S as SectionFilters } from '../pixelEvents-
|
|
6
|
-
export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-
|
|
5
|
+
import { S as SectionFilters } from '../pixelEvents-Do1wT3z_.cjs';
|
|
6
|
+
export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-Do1wT3z_.cjs';
|
|
7
7
|
import { AxiosResponse } from 'axios';
|
|
8
8
|
import { a as PhonePe } from '../phonepe-dWMLZel6.cjs';
|
|
9
9
|
import 'react-toastify';
|
|
10
|
-
import '../collections-
|
|
11
|
-
import '../orders-
|
|
10
|
+
import '../collections-fGX_D_Mi.cjs';
|
|
11
|
+
import '../orders-CGwKT5L-.cjs';
|
|
12
12
|
|
|
13
13
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
|
14
14
|
declare const Auth: {
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-
|
|
2
|
-
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-
|
|
3
|
-
import { C as Cart } from '../cart-
|
|
1
|
+
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-B8elBN21.js';
|
|
2
|
+
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-B8elBN21.js';
|
|
3
|
+
import { C as Cart } from '../cart-DV1HcSC6.js';
|
|
4
4
|
export { S as SnapstoreConfig, g as getApiEndpoint, a as getCloudFront, b as getConfig, c as getPhonePeApiEndpoint, d as getPublicApiEndpoint, e as getSecretKey, f as getStoreId, i as initConfig } from '../index-DTyIuLuI.js';
|
|
5
|
-
import { S as SectionFilters } from '../pixelEvents-
|
|
6
|
-
export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-
|
|
5
|
+
import { S as SectionFilters } from '../pixelEvents-CA14Tvrs.js';
|
|
6
|
+
export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-CA14Tvrs.js';
|
|
7
7
|
import { AxiosResponse } from 'axios';
|
|
8
8
|
import { a as PhonePe } from '../phonepe-dWMLZel6.js';
|
|
9
9
|
import 'react-toastify';
|
|
10
|
-
import '../collections-
|
|
11
|
-
import '../orders-
|
|
10
|
+
import '../collections-kERS_kZw.js';
|
|
11
|
+
import '../orders-BhmpycYJ.js';
|
|
12
12
|
|
|
13
13
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
|
14
14
|
declare const Auth: {
|