@storepecker/storefront-core 2.5.0 → 2.5.2
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.cjs +14 -14
- package/dist/checkout/index.d.cts +4 -4
- package/dist/checkout/index.d.ts +4 -4
- package/dist/checkout/index.js +1 -1
- package/dist/{chunk-XURYZRER.js → chunk-CUR7CHR5.js} +2 -1
- package/dist/{chunk-23YAZNVF.cjs → chunk-FU46MZTI.cjs} +7 -7
- package/dist/{chunk-VETLYY7W.js → chunk-NXQIWB36.js} +9 -5
- package/dist/{chunk-VZAIAQZJ.js → chunk-P252YNRA.js} +1 -1
- package/dist/{chunk-MTSMQAZR.cjs → chunk-PARH5TBK.cjs} +2 -1
- package/dist/{chunk-TLNCCSTQ.cjs → chunk-PZJT2Y5B.cjs} +9 -5
- 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 +17 -17
- package/dist/hooks/index.d.cts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +3 -3
- package/dist/models/index.d.cts +6 -6
- package/dist/models/index.d.ts +6 -6
- package/dist/{orders-L_8eIkUS.d.ts → orders--jclZ94W.d.cts} +17 -1
- package/dist/{orders-CjNmCY5I.d.cts → orders-D1fVTlCj.d.ts} +17 -1
- package/dist/{pixelEvents-LqK0Ltr_.d.ts → pixelEvents-BhKaV1r5.d.ts} +4 -4
- package/dist/{pixelEvents-CXViXGtV.d.cts → pixelEvents-CdYQsgEH.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--jclZ94W.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-D1fVTlCj.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;
|
package/dist/checkout/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkPZJT2Y5B_cjs = require('../chunk-PZJT2Y5B.cjs');
|
|
4
4
|
require('../chunk-XFOUNOKO.cjs');
|
|
5
5
|
var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
|
|
6
6
|
var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
|
|
@@ -125,55 +125,55 @@ async function checkTabbyReturnStatus(orderNumber, callbacks) {
|
|
|
125
125
|
|
|
126
126
|
Object.defineProperty(exports, "applyCheckoutCoupon", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunkPZJT2Y5B_cjs.applyCheckoutCoupon; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "fetchAppliedCoupon", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkPZJT2Y5B_cjs.fetchAppliedCoupon; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "fetchAvailableCoupons", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkPZJT2Y5B_cjs.fetchAvailableCoupons; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "handleCODPayment", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkPZJT2Y5B_cjs.handleCODPayment; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "handlePhonepePayment", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkPZJT2Y5B_cjs.handlePhonepePayment; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "handleRazorpayFail", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkPZJT2Y5B_cjs.handleRazorpayFail; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "handleRazorpaySuccess", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkPZJT2Y5B_cjs.handleRazorpaySuccess; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "handleStripePayment", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkPZJT2Y5B_cjs.handleStripePayment; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "handleStripeSuccess", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkPZJT2Y5B_cjs.handleStripeSuccess; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "handleTabbyPayment", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkPZJT2Y5B_cjs.handleTabbyPayment; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "openRazorpayCheckout", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkPZJT2Y5B_cjs.openRazorpayCheckout; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "processPayment", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkPZJT2Y5B_cjs.processPayment; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "removeCheckoutCoupon", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkPZJT2Y5B_cjs.removeCheckoutCoupon; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "IP_API_CACHE_KEY", {
|
|
179
179
|
enumerable: true,
|
|
@@ -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--jclZ94W.cjs';
|
|
4
|
+
import '../product-B8elBN21.cjs';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -194,7 +194,7 @@ declare function handleRazorpaySuccess(data: {
|
|
|
194
194
|
/**
|
|
195
195
|
* Handle Razorpay payment failure — notify the backend.
|
|
196
196
|
*/
|
|
197
|
-
declare function handleRazorpayFail(order: Order.OrderSummary, callbacks: PaymentCallbacks): Promise<void>;
|
|
197
|
+
declare function handleRazorpayFail(order: Order.OrderSummary, callbacks: PaymentCallbacks, error?: any): Promise<void>;
|
|
198
198
|
/**
|
|
199
199
|
* Handle PhonePe payment — redirect to the PhonePe URL.
|
|
200
200
|
*/
|
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-D1fVTlCj.js';
|
|
4
|
+
import '../product-B8elBN21.js';
|
|
5
5
|
import 'react-toastify';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -194,7 +194,7 @@ declare function handleRazorpaySuccess(data: {
|
|
|
194
194
|
/**
|
|
195
195
|
* Handle Razorpay payment failure — notify the backend.
|
|
196
196
|
*/
|
|
197
|
-
declare function handleRazorpayFail(order: Order.OrderSummary, callbacks: PaymentCallbacks): Promise<void>;
|
|
197
|
+
declare function handleRazorpayFail(order: Order.OrderSummary, callbacks: PaymentCallbacks, error?: any): Promise<void>;
|
|
198
198
|
/**
|
|
199
199
|
* Handle PhonePe payment — redirect to the PhonePe URL.
|
|
200
200
|
*/
|
package/dist/checkout/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-
|
|
1
|
+
export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-NXQIWB36.js';
|
|
2
2
|
import '../chunk-7M5CVYZJ.js';
|
|
3
3
|
import { pixelEvents } from '../chunk-WFDKKOO7.js';
|
|
4
4
|
import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-S3ZZ3ZA7.js';
|
|
@@ -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();
|
|
@@ -52,12 +52,15 @@ function openRazorpayCheckout(order, callbacks) {
|
|
|
52
52
|
phone: customer_phone
|
|
53
53
|
},
|
|
54
54
|
modal: {
|
|
55
|
-
ondismiss: () => handleRazorpayFail(order, callbacks
|
|
55
|
+
ondismiss: () => handleRazorpayFail(order, callbacks, {
|
|
56
|
+
description: "User cancelled the payment manually",
|
|
57
|
+
reason: "user_cancelled_payment_manually"
|
|
58
|
+
})
|
|
56
59
|
}
|
|
57
60
|
};
|
|
58
61
|
const paymentObject = new window.Razorpay(options);
|
|
59
|
-
paymentObject.on("payment.failed", () => {
|
|
60
|
-
handleRazorpayFail(order, callbacks);
|
|
62
|
+
paymentObject.on("payment.failed", (response) => {
|
|
63
|
+
handleRazorpayFail(order, callbacks, response?.error);
|
|
61
64
|
});
|
|
62
65
|
paymentObject.open();
|
|
63
66
|
}
|
|
@@ -75,11 +78,12 @@ async function handleRazorpaySuccess(data, order, callbacks) {
|
|
|
75
78
|
callbacks.onPaymentEnd?.();
|
|
76
79
|
}
|
|
77
80
|
}
|
|
78
|
-
async function handleRazorpayFail(order, callbacks) {
|
|
81
|
+
async function handleRazorpayFail(order, callbacks, error) {
|
|
79
82
|
try {
|
|
80
83
|
await razorpayOrderFail({
|
|
81
84
|
order_id: order.id,
|
|
82
|
-
razorpay_order_id: order.razorpay_order_id
|
|
85
|
+
razorpay_order_id: order.razorpay_order_id,
|
|
86
|
+
error
|
|
83
87
|
});
|
|
84
88
|
} catch {
|
|
85
89
|
}
|
|
@@ -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() {
|
|
@@ -54,12 +54,15 @@ function openRazorpayCheckout(order, callbacks) {
|
|
|
54
54
|
phone: customer_phone
|
|
55
55
|
},
|
|
56
56
|
modal: {
|
|
57
|
-
ondismiss: () => handleRazorpayFail(order, callbacks
|
|
57
|
+
ondismiss: () => handleRazorpayFail(order, callbacks, {
|
|
58
|
+
description: "User cancelled the payment manually",
|
|
59
|
+
reason: "user_cancelled_payment_manually"
|
|
60
|
+
})
|
|
58
61
|
}
|
|
59
62
|
};
|
|
60
63
|
const paymentObject = new window.Razorpay(options);
|
|
61
|
-
paymentObject.on("payment.failed", () => {
|
|
62
|
-
handleRazorpayFail(order, callbacks);
|
|
64
|
+
paymentObject.on("payment.failed", (response) => {
|
|
65
|
+
handleRazorpayFail(order, callbacks, response?.error);
|
|
63
66
|
});
|
|
64
67
|
paymentObject.open();
|
|
65
68
|
}
|
|
@@ -77,11 +80,12 @@ async function handleRazorpaySuccess(data, order, callbacks) {
|
|
|
77
80
|
callbacks.onPaymentEnd?.();
|
|
78
81
|
}
|
|
79
82
|
}
|
|
80
|
-
async function handleRazorpayFail(order, callbacks) {
|
|
83
|
+
async function handleRazorpayFail(order, callbacks, error) {
|
|
81
84
|
try {
|
|
82
85
|
await chunkDXQX7ZIL_cjs.razorpayOrderFail({
|
|
83
86
|
order_id: order.id,
|
|
84
|
-
razorpay_order_id: order.razorpay_order_id
|
|
87
|
+
razorpay_order_id: order.razorpay_order_id,
|
|
88
|
+
error
|
|
85
89
|
});
|
|
86
90
|
} catch {
|
|
87
91
|
}
|
|
@@ -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--jclZ94W.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-D1fVTlCj.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--jclZ94W.cjs';
|
|
15
|
+
import '../pixelEvents-CdYQsgEH.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-D1fVTlCj.js';
|
|
15
|
+
import '../pixelEvents-BhKaV1r5.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-CdYQsgEH.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--jclZ94W.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-BhKaV1r5.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-D1fVTlCj.js';
|
|
7
7
|
|
|
8
8
|
declare function ThemeDataInitializer({ themeData, }: {
|
|
9
9
|
themeData: PageHeaderProps;
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
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
|
-
var
|
|
8
|
+
var chunkPZJT2Y5B_cjs = require('../chunk-PZJT2Y5B.cjs');
|
|
9
9
|
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
10
10
|
require('../chunk-K44JZ5NL.cjs');
|
|
11
11
|
var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
|
|
@@ -55,7 +55,7 @@ var useCart = (addressId) => {
|
|
|
55
55
|
async (addrId) => {
|
|
56
56
|
try {
|
|
57
57
|
setIsLoading(true);
|
|
58
|
-
const result = await
|
|
58
|
+
const result = await chunkPARH5TBK_cjs.getCart("/customer/cart/", addrId ?? addressId);
|
|
59
59
|
setData(result);
|
|
60
60
|
setError(null);
|
|
61
61
|
} catch (err) {
|
|
@@ -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);
|
|
@@ -354,7 +354,7 @@ function useCheckoutPayment(options) {
|
|
|
354
354
|
);
|
|
355
355
|
const order = response.data;
|
|
356
356
|
setOrderSummary(order);
|
|
357
|
-
|
|
357
|
+
chunkPZJT2Y5B_cjs.processPayment(order, paymentMethod, callbacks);
|
|
358
358
|
} catch {
|
|
359
359
|
setShowFailureModal(true);
|
|
360
360
|
} finally {
|
|
@@ -384,7 +384,7 @@ function useCheckoutCoupon(options) {
|
|
|
384
384
|
const refreshCoupons = react.useCallback(async () => {
|
|
385
385
|
setIsLoading(true);
|
|
386
386
|
try {
|
|
387
|
-
const coupons = await
|
|
387
|
+
const coupons = await chunkPZJT2Y5B_cjs.fetchAvailableCoupons();
|
|
388
388
|
setAvailableCoupons(coupons);
|
|
389
389
|
} catch {
|
|
390
390
|
} finally {
|
|
@@ -396,7 +396,7 @@ function useCheckoutCoupon(options) {
|
|
|
396
396
|
setError(null);
|
|
397
397
|
setIsApplying(true);
|
|
398
398
|
try {
|
|
399
|
-
const coupon = await
|
|
399
|
+
const coupon = await chunkPZJT2Y5B_cjs.applyCheckoutCoupon(code, callbacks);
|
|
400
400
|
setAppliedCoupon(coupon);
|
|
401
401
|
} catch (err) {
|
|
402
402
|
setError(err instanceof Error ? err.message : "Failed to apply coupon");
|
|
@@ -409,7 +409,7 @@ function useCheckoutCoupon(options) {
|
|
|
409
409
|
const removeCouponHandler = react.useCallback(async () => {
|
|
410
410
|
if (!appliedCoupon) return;
|
|
411
411
|
try {
|
|
412
|
-
await
|
|
412
|
+
await chunkPZJT2Y5B_cjs.removeCheckoutCoupon(appliedCoupon.coupon_code, callbacks);
|
|
413
413
|
setAppliedCoupon(null);
|
|
414
414
|
setError(null);
|
|
415
415
|
} catch {
|
|
@@ -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--jclZ94W.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';
|
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-D1fVTlCj.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';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-
|
|
6
|
+
import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-NXQIWB36.js';
|
|
7
7
|
import { applyCoupon, removeCoupon, getCoupons, getAppliedCoupon } from '../chunk-7M5CVYZJ.js';
|
|
8
8
|
import '../chunk-WFDKKOO7.js';
|
|
9
9
|
import { getOrders, placeOrder } from '../chunk-S3ZZ3ZA7.js';
|
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--jclZ94W.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-D1fVTlCj.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.cjs';
|
|
2
2
|
|
|
3
3
|
declare namespace Order {
|
|
4
4
|
interface Root {
|
|
@@ -26,6 +26,14 @@ declare namespace Order {
|
|
|
26
26
|
customer_details: CustomerDetails;
|
|
27
27
|
customer_name: string;
|
|
28
28
|
customer_phone: string;
|
|
29
|
+
linked_order: number;
|
|
30
|
+
linked_orders: {
|
|
31
|
+
id: number;
|
|
32
|
+
order_number: number;
|
|
33
|
+
is_preorder: boolean;
|
|
34
|
+
total_amount: number;
|
|
35
|
+
}[];
|
|
36
|
+
is_preorder: boolean;
|
|
29
37
|
}
|
|
30
38
|
interface OrderResponse {
|
|
31
39
|
currentPage: number;
|
|
@@ -106,6 +114,14 @@ declare namespace Order {
|
|
|
106
114
|
total_coupon_discount: number;
|
|
107
115
|
stripe_payment_link_url: string;
|
|
108
116
|
tabby_redirect_url?: string;
|
|
117
|
+
linked_order: number;
|
|
118
|
+
linked_orders: {
|
|
119
|
+
id: number;
|
|
120
|
+
order_number: number;
|
|
121
|
+
is_preorder: boolean;
|
|
122
|
+
total_amount: number;
|
|
123
|
+
}[];
|
|
124
|
+
is_preorder: boolean;
|
|
109
125
|
}
|
|
110
126
|
interface PurchasedProduct {
|
|
111
127
|
product_id: number;
|
|
@@ -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 {
|
|
@@ -26,6 +26,14 @@ declare namespace Order {
|
|
|
26
26
|
customer_details: CustomerDetails;
|
|
27
27
|
customer_name: string;
|
|
28
28
|
customer_phone: string;
|
|
29
|
+
linked_order: number;
|
|
30
|
+
linked_orders: {
|
|
31
|
+
id: number;
|
|
32
|
+
order_number: number;
|
|
33
|
+
is_preorder: boolean;
|
|
34
|
+
total_amount: number;
|
|
35
|
+
}[];
|
|
36
|
+
is_preorder: boolean;
|
|
29
37
|
}
|
|
30
38
|
interface OrderResponse {
|
|
31
39
|
currentPage: number;
|
|
@@ -106,6 +114,14 @@ declare namespace Order {
|
|
|
106
114
|
total_coupon_discount: number;
|
|
107
115
|
stripe_payment_link_url: string;
|
|
108
116
|
tabby_redirect_url?: string;
|
|
117
|
+
linked_order: number;
|
|
118
|
+
linked_orders: {
|
|
119
|
+
id: number;
|
|
120
|
+
order_number: number;
|
|
121
|
+
is_preorder: boolean;
|
|
122
|
+
total_amount: number;
|
|
123
|
+
}[];
|
|
124
|
+
is_preorder: boolean;
|
|
109
125
|
}
|
|
110
126
|
interface PurchasedProduct {
|
|
111
127
|
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-D1fVTlCj.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--jclZ94W.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-CdYQsgEH.cjs';
|
|
6
6
|
import 'react-toastify';
|
|
7
|
-
import '../collections-
|
|
8
|
-
import '../orders
|
|
7
|
+
import '../collections-fGX_D_Mi.cjs';
|
|
8
|
+
import '../orders--jclZ94W.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-BhKaV1r5.js';
|
|
6
6
|
import 'react-toastify';
|
|
7
|
-
import '../collections-
|
|
8
|
-
import '../orders-
|
|
7
|
+
import '../collections-kERS_kZw.js';
|
|
8
|
+
import '../orders-D1fVTlCj.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-CdYQsgEH.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-CdYQsgEH.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--jclZ94W.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-BhKaV1r5.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-BhKaV1r5.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-D1fVTlCj.js';
|
|
12
12
|
|
|
13
13
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
|
14
14
|
declare const Auth: {
|