@storepecker/storefront-core 2.3.5 → 2.4.0
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 +28 -24
- package/dist/api/index.d.cts +2 -1
- package/dist/api/index.d.ts +2 -1
- package/dist/api/index.js +1 -1
- package/dist/checkout/index.cjs +22 -22
- package/dist/checkout/index.js +2 -2
- package/dist/{chunk-BTT3XQ32.cjs → chunk-33TWVRZE.cjs} +6 -6
- package/dist/chunk-3YRSHPM6.cjs +34 -0
- package/dist/chunk-5NUDTIQ2.js +9 -0
- package/dist/{chunk-ILVGYHNI.js → chunk-6Q7QMPOQ.js} +2 -1
- package/dist/{chunk-HTFVROIV.cjs → chunk-7UK3E7SL.cjs} +6 -0
- package/dist/chunk-B3BXKMQA.cjs +271 -0
- package/dist/chunk-BTR3HLL4.js +14 -0
- package/dist/chunk-DODFO744.cjs +11 -0
- package/dist/chunk-EGFOTJPC.js +22 -0
- package/dist/{chunk-YUPBTD4M.js → chunk-F45S7UWC.js} +1 -139
- package/dist/chunk-HAQWCNDY.cjs +24 -0
- package/dist/{chunk-Y4NGR42Z.js → chunk-HUIT4JCR.js} +1 -1
- package/dist/{chunk-TF2KMTB6.js → chunk-JRYWZMNT.js} +1 -1
- package/dist/{chunk-JCOOINQF.cjs → chunk-KLNKIQQM.cjs} +4 -3
- package/dist/chunk-L43KF3AC.js +269 -0
- package/dist/chunk-LHF5BSWO.cjs +16 -0
- package/dist/chunk-LJUGNSQQ.cjs +149 -0
- package/dist/chunk-NA5GT4D3.js +75 -0
- package/dist/chunk-OSM73ETC.js +139 -0
- package/dist/{chunk-4CVKE6CC.cjs → chunk-OTMTHA5C.cjs} +0 -147
- package/dist/{chunk-JH4JJBXE.cjs → chunk-TTIQRDHX.cjs} +2 -2
- package/dist/chunk-U7EXLQCT.js +32 -0
- package/dist/{chunk-LW3V53WJ.js → chunk-UVU7H4E6.js} +6 -1
- package/dist/chunk-V447PVRV.cjs +308 -0
- package/dist/chunk-VWQR3A7V.cjs +81 -0
- package/dist/chunk-YK4M3SFP.js +301 -0
- package/dist/components/address-form.cjs +17 -0
- package/dist/components/address-form.css +329 -0
- package/dist/components/address-form.d.cts +33 -0
- package/dist/components/address-form.d.ts +33 -0
- package/dist/components/address-form.js +11 -0
- package/dist/components/digital-product-download-modal.cjs +8 -0
- package/dist/components/digital-product-download-modal.d.cts +15 -0
- package/dist/components/digital-product-download-modal.d.ts +15 -0
- package/dist/components/digital-product-download-modal.js +2 -0
- package/dist/components/index.cjs +35 -684
- package/dist/components/index.d.cts +14 -82
- package/dist/components/index.d.ts +14 -82
- package/dist/components/index.js +11 -678
- package/dist/components/search-dropdown.cjs +7 -0
- package/dist/components/search-dropdown.css +200 -0
- package/dist/components/search-dropdown.d.cts +28 -0
- package/dist/components/search-dropdown.d.ts +28 -0
- package/dist/components/search-dropdown.js +1 -0
- package/dist/components/share-button.cjs +9 -0
- package/dist/components/share-button.d.cts +11 -0
- package/dist/components/share-button.d.ts +11 -0
- package/dist/components/share-button.js +3 -0
- package/dist/components/share-icon.cjs +7 -0
- package/dist/components/share-icon.d.cts +9 -0
- package/dist/components/share-icon.d.ts +9 -0
- package/dist/components/share-icon.js +1 -0
- package/dist/components/theme-data-initializer.cjs +8 -0
- package/dist/components/theme-data-initializer.d.cts +12 -0
- package/dist/components/theme-data-initializer.d.ts +12 -0
- package/dist/components/theme-data-initializer.js +2 -0
- package/dist/hooks/index.cjs +18 -17
- package/dist/hooks/index.js +6 -5
- package/dist/pixelEvents-Bo-VjAx8.d.ts +371 -0
- package/dist/pixelEvents-C1rFPOwb.d.cts +371 -0
- package/dist/store/index.cjs +10 -5
- package/dist/store/index.d.cts +10 -1
- package/dist/store/index.d.ts +10 -1
- package/dist/store/index.js +3 -2
- package/dist/utils/index.cjs +44 -43
- package/dist/utils/index.d.cts +7 -370
- package/dist/utils/index.d.ts +7 -370
- package/dist/utils/index.js +3 -2
- package/package.json +49 -1
package/dist/api/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
|
4
4
|
var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
6
|
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk7UK3E7SL_cjs = require('../chunk-7UK3E7SL.cjs');
|
|
8
8
|
var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
|
|
9
9
|
var chunkECHV2JSY_cjs = require('../chunk-ECHV2JSY.cjs');
|
|
10
10
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -232,95 +232,99 @@ Object.defineProperty(exports, "removeCoupon", {
|
|
|
232
232
|
});
|
|
233
233
|
Object.defineProperty(exports, "checkPhonepePaymentStatus", {
|
|
234
234
|
enumerable: true,
|
|
235
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunk7UK3E7SL_cjs.checkPhonepePaymentStatus; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "getOrderDetails", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunk7UK3E7SL_cjs.getOrderDetails; }
|
|
240
240
|
});
|
|
241
241
|
Object.defineProperty(exports, "getOrderDetailsByNumber", {
|
|
242
242
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunk7UK3E7SL_cjs.getOrderDetailsByNumber; }
|
|
244
|
+
});
|
|
245
|
+
Object.defineProperty(exports, "getOrderDetailsByRef", {
|
|
246
|
+
enumerable: true,
|
|
247
|
+
get: function () { return chunk7UK3E7SL_cjs.getOrderDetailsByRef; }
|
|
244
248
|
});
|
|
245
249
|
Object.defineProperty(exports, "getOrders", {
|
|
246
250
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunk7UK3E7SL_cjs.getOrders; }
|
|
248
252
|
});
|
|
249
253
|
Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
|
|
250
254
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunk7UK3E7SL_cjs.getPublicOrderDetailsByNumber; }
|
|
252
256
|
});
|
|
253
257
|
Object.defineProperty(exports, "getStripePaymentStatus", {
|
|
254
258
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunk7UK3E7SL_cjs.getStripePaymentStatus; }
|
|
256
260
|
});
|
|
257
261
|
Object.defineProperty(exports, "getStripePaymentStatusPublic", {
|
|
258
262
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunk7UK3E7SL_cjs.getStripePaymentStatusPublic; }
|
|
260
264
|
});
|
|
261
265
|
Object.defineProperty(exports, "makeCODOrder", {
|
|
262
266
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunk7UK3E7SL_cjs.makeCODOrder; }
|
|
264
268
|
});
|
|
265
269
|
Object.defineProperty(exports, "phonepeOrderSuccess", {
|
|
266
270
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunk7UK3E7SL_cjs.phonepeOrderSuccess; }
|
|
268
272
|
});
|
|
269
273
|
Object.defineProperty(exports, "phonepePublicOrderSuccess", {
|
|
270
274
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunk7UK3E7SL_cjs.phonepePublicOrderSuccess; }
|
|
272
276
|
});
|
|
273
277
|
Object.defineProperty(exports, "placeOrder", {
|
|
274
278
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunk7UK3E7SL_cjs.placeOrder; }
|
|
276
280
|
});
|
|
277
281
|
Object.defineProperty(exports, "publicMakeCODOrder", {
|
|
278
282
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunk7UK3E7SL_cjs.publicMakeCODOrder; }
|
|
280
284
|
});
|
|
281
285
|
Object.defineProperty(exports, "publicPlaceOrder", {
|
|
282
286
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunk7UK3E7SL_cjs.publicPlaceOrder; }
|
|
284
288
|
});
|
|
285
289
|
Object.defineProperty(exports, "razorpayOrderFail", {
|
|
286
290
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunk7UK3E7SL_cjs.razorpayOrderFail; }
|
|
288
292
|
});
|
|
289
293
|
Object.defineProperty(exports, "razorpayOrderSuccess", {
|
|
290
294
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunk7UK3E7SL_cjs.razorpayOrderSuccess; }
|
|
292
296
|
});
|
|
293
297
|
Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
|
|
294
298
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunk7UK3E7SL_cjs.razorpayPublicOrderSuccess; }
|
|
296
300
|
});
|
|
297
301
|
Object.defineProperty(exports, "stripeOrderFail", {
|
|
298
302
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunk7UK3E7SL_cjs.stripeOrderFail; }
|
|
300
304
|
});
|
|
301
305
|
Object.defineProperty(exports, "stripeOrderSuccess", {
|
|
302
306
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunk7UK3E7SL_cjs.stripeOrderSuccess; }
|
|
304
308
|
});
|
|
305
309
|
Object.defineProperty(exports, "stripePublicOrderSuccess", {
|
|
306
310
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunk7UK3E7SL_cjs.stripePublicOrderSuccess; }
|
|
308
312
|
});
|
|
309
313
|
Object.defineProperty(exports, "updateOrder", {
|
|
310
314
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunk7UK3E7SL_cjs.updateOrder; }
|
|
312
316
|
});
|
|
313
317
|
Object.defineProperty(exports, "updateOrderCustomization", {
|
|
314
318
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunk7UK3E7SL_cjs.updateOrderCustomization; }
|
|
316
320
|
});
|
|
317
321
|
Object.defineProperty(exports, "uploadCustomizationImage", {
|
|
318
322
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunk7UK3E7SL_cjs.uploadCustomizationImage; }
|
|
320
324
|
});
|
|
321
325
|
Object.defineProperty(exports, "verifyTabbyPayment", {
|
|
322
326
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunk7UK3E7SL_cjs.verifyTabbyPayment; }
|
|
324
328
|
});
|
|
325
329
|
Object.defineProperty(exports, "addAddress", {
|
|
326
330
|
enumerable: true,
|
package/dist/api/index.d.cts
CHANGED
|
@@ -71,6 +71,7 @@ declare const getSubdivisions: (countryId: number) => Promise<AxiosResponse<Coun
|
|
|
71
71
|
declare function getOrders(url: string): Promise<Order.OrderResponse>;
|
|
72
72
|
declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.Root>>;
|
|
73
73
|
declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
74
|
+
declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
74
75
|
declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
75
76
|
declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
76
77
|
interface PublicOrderDetails {
|
|
@@ -163,4 +164,4 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
|
|
|
163
164
|
results: Booking[];
|
|
164
165
|
}>>;
|
|
165
166
|
|
|
166
|
-
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
|
167
|
+
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
package/dist/api/index.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ declare const getSubdivisions: (countryId: number) => Promise<AxiosResponse<Coun
|
|
|
71
71
|
declare function getOrders(url: string): Promise<Order.OrderResponse>;
|
|
72
72
|
declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.Root>>;
|
|
73
73
|
declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
74
|
+
declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
74
75
|
declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
75
76
|
declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
|
|
76
77
|
interface PublicOrderDetails {
|
|
@@ -163,4 +164,4 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
|
|
|
163
164
|
results: Booking[];
|
|
164
165
|
}>>;
|
|
165
166
|
|
|
166
|
-
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
|
167
|
+
export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getReviewSummary, getReviews, getServerHttpService, getStripePaymentStatus, getStripePaymentStatusPublic, getSubdivisions, getUserBookings, getUserDetails, getWishlist, httpService, makeCODOrder, notifyProductStock, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, postAnalytics, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, removeCoupon, removeFromCart, removeFromWishlist, resetHttpService, sendOTP, serverHttpService, setSessionExpiredCallback, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateAddress, updateCart, updateDigitalProductDownloadLinkCount, updateOrder, updateOrderCustomization, updateUserDetails, uploadCustomizationImage, uploadReviewImages, verifyOTP, verifyTabbyPayment };
|
package/dist/api/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { getUserDetails, updateUserDetails } from '../chunk-WYXT5AAG.js';
|
|
|
2
2
|
export { addToCart, addWishlist, getCart, getCategories, getDigitalProductDownloadLink, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getWishlist, notifyProductStock, removeFromCart, removeFromWishlist, updateCart, updateDigitalProductDownloadLinkCount } from '../chunk-U25T7M6S.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
4
|
export { applyCoupon, getAppliedCoupon, getCoupons, removeCoupon } from '../chunk-7M5CVYZJ.js';
|
|
5
|
-
export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-
|
|
5
|
+
export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrders, getPublicOrderDetailsByNumber, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-UVU7H4E6.js';
|
|
6
6
|
export { addAddress, deleteAddress, getAddresses, getCountries, getSubdivisions, updateAddress } from '../chunk-ZGMLOLTC.js';
|
|
7
7
|
import { http_service_default } from '../chunk-3SYYP3XV.js';
|
|
8
8
|
export { getHttpService, http_service_default as httpService, resetHttpService, setSessionExpiredCallback } from '../chunk-3SYYP3XV.js';
|
package/dist/checkout/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk33TWVRZE_cjs = require('../chunk-33TWVRZE.cjs');
|
|
4
4
|
require('../chunk-XFOUNOKO.cjs');
|
|
5
5
|
var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk7UK3E7SL_cjs = require('../chunk-7UK3E7SL.cjs');
|
|
7
7
|
var chunkTB72NPRM_cjs = require('../chunk-TB72NPRM.cjs');
|
|
8
8
|
require('../chunk-ECHV2JSY.cjs');
|
|
9
9
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -49,7 +49,7 @@ function calculateCartTotals(cart) {
|
|
|
49
49
|
// src/checkout/payment-status.ts
|
|
50
50
|
async function checkPhonepeReturnStatus(transactionId, callbacks) {
|
|
51
51
|
try {
|
|
52
|
-
const response = await
|
|
52
|
+
const response = await chunk7UK3E7SL_cjs.checkPhonepePaymentStatus(transactionId);
|
|
53
53
|
if (response.data.success) {
|
|
54
54
|
callbacks.onSuccess(void 0);
|
|
55
55
|
} else {
|
|
@@ -62,8 +62,8 @@ async function checkPhonepeReturnStatus(transactionId, callbacks) {
|
|
|
62
62
|
async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, callbacks) {
|
|
63
63
|
try {
|
|
64
64
|
const [paymentResponse, orderResponse] = await Promise.all([
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
chunk7UK3E7SL_cjs.checkPhonepePaymentStatus(transactionId),
|
|
66
|
+
chunk7UK3E7SL_cjs.getOrderDetailsByNumber(orderNumber)
|
|
67
67
|
]);
|
|
68
68
|
const order = orderResponse.data;
|
|
69
69
|
callbacks.onOrderLoaded?.(order);
|
|
@@ -80,12 +80,12 @@ async function checkPhonepeReturnStatusWithOrder(transactionId, orderNumber, cal
|
|
|
80
80
|
}
|
|
81
81
|
async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, callbacks, options) {
|
|
82
82
|
try {
|
|
83
|
-
const getStatus = options?.isPublic ?
|
|
83
|
+
const getStatus = options?.isPublic ? chunk7UK3E7SL_cjs.getStripePaymentStatusPublic : chunk7UK3E7SL_cjs.getStripePaymentStatus;
|
|
84
84
|
const response = await getStatus(sessionId, orderNumber, paymentLinkUrl);
|
|
85
85
|
const data = response.data;
|
|
86
86
|
if (data.payment_status === "paid" || data.status === "complete") {
|
|
87
87
|
try {
|
|
88
|
-
const orderResponse = await
|
|
88
|
+
const orderResponse = await chunk7UK3E7SL_cjs.getOrderDetailsByNumber(orderNumber);
|
|
89
89
|
const order = orderResponse.data;
|
|
90
90
|
callbacks.onOrderLoaded?.(order);
|
|
91
91
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
@@ -103,10 +103,10 @@ async function checkStripeReturnStatus(sessionId, orderNumber, paymentLinkUrl, c
|
|
|
103
103
|
}
|
|
104
104
|
async function checkTabbyReturnStatus(orderNumber, callbacks) {
|
|
105
105
|
try {
|
|
106
|
-
const response = await
|
|
106
|
+
const response = await chunk7UK3E7SL_cjs.verifyTabbyPayment(orderNumber);
|
|
107
107
|
if (response.data.order_status === "paid" || response.data.order_status === "confirmed") {
|
|
108
108
|
try {
|
|
109
|
-
const orderResponse = await
|
|
109
|
+
const orderResponse = await chunk7UK3E7SL_cjs.getOrderDetailsByNumber(orderNumber);
|
|
110
110
|
const order = orderResponse.data;
|
|
111
111
|
callbacks.onOrderLoaded?.(order);
|
|
112
112
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
@@ -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 chunk33TWVRZE_cjs.applyCheckoutCoupon; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "fetchAppliedCoupon", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunk33TWVRZE_cjs.fetchAppliedCoupon; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "fetchAvailableCoupons", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunk33TWVRZE_cjs.fetchAvailableCoupons; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "handleCODPayment", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk33TWVRZE_cjs.handleCODPayment; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "handlePhonepePayment", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk33TWVRZE_cjs.handlePhonepePayment; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "handleRazorpayFail", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk33TWVRZE_cjs.handleRazorpayFail; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "handleRazorpaySuccess", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk33TWVRZE_cjs.handleRazorpaySuccess; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "handleStripePayment", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk33TWVRZE_cjs.handleStripePayment; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "handleStripeSuccess", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunk33TWVRZE_cjs.handleStripeSuccess; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "handleTabbyPayment", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunk33TWVRZE_cjs.handleTabbyPayment; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "openRazorpayCheckout", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk33TWVRZE_cjs.openRazorpayCheckout; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "processPayment", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunk33TWVRZE_cjs.processPayment; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "removeCheckoutCoupon", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunk33TWVRZE_cjs.removeCheckoutCoupon; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "IP_API_CACHE_KEY", {
|
|
179
179
|
enumerable: true,
|
package/dist/checkout/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-HUIT4JCR.js';
|
|
2
2
|
import '../chunk-7M5CVYZJ.js';
|
|
3
3
|
import { pixelEvents } from '../chunk-WFDKKOO7.js';
|
|
4
|
-
import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-
|
|
4
|
+
import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-UVU7H4E6.js';
|
|
5
5
|
export { IP_API_CACHE_KEY, addressFormInitialValues, addressValidationSchema, buildAddressPayload, buildSubmitPayload, clearAddressFormSession, decodeAddress, encodeAddress, isValidPhoneNumber, loadAddressFormFromSession, parseEditAddress, sanitizePhoneNumber, saveAddressFormToSession } from '../chunk-ELP23UGF.js';
|
|
6
6
|
import '../chunk-3SYYP3XV.js';
|
|
7
7
|
import '../chunk-WEMNXIRS.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkXFOUNOKO_cjs = require('./chunk-XFOUNOKO.cjs');
|
|
4
4
|
var chunkK44JZ5NL_cjs = require('./chunk-K44JZ5NL.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk7UK3E7SL_cjs = require('./chunk-7UK3E7SL.cjs');
|
|
6
6
|
var chunkN3CTXRFT_cjs = require('./chunk-N3CTXRFT.cjs');
|
|
7
7
|
var axios = require('axios');
|
|
8
8
|
|
|
@@ -66,7 +66,7 @@ function openRazorpayCheckout(order, callbacks) {
|
|
|
66
66
|
async function handleRazorpaySuccess(data, order, callbacks) {
|
|
67
67
|
try {
|
|
68
68
|
callbacks.onPaymentStart?.();
|
|
69
|
-
await
|
|
69
|
+
await chunk7UK3E7SL_cjs.razorpayOrderSuccess(data);
|
|
70
70
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
71
71
|
chunkK44JZ5NL_cjs.pixelEvents.checkoutCompleted(order);
|
|
72
72
|
callbacks.onCartReset();
|
|
@@ -79,7 +79,7 @@ async function handleRazorpaySuccess(data, order, callbacks) {
|
|
|
79
79
|
}
|
|
80
80
|
async function handleRazorpayFail(order, callbacks) {
|
|
81
81
|
try {
|
|
82
|
-
await
|
|
82
|
+
await chunk7UK3E7SL_cjs.razorpayOrderFail({
|
|
83
83
|
order_id: order.id,
|
|
84
84
|
razorpay_order_id: order.razorpay_order_id
|
|
85
85
|
});
|
|
@@ -111,9 +111,9 @@ async function handleCODPayment(order, callbacks, options) {
|
|
|
111
111
|
callbacks.onPaymentStart?.();
|
|
112
112
|
chunkK44JZ5NL_cjs.pixelEvents.initiateCheckout(order, "cod");
|
|
113
113
|
if (options?.isPublic) {
|
|
114
|
-
await
|
|
114
|
+
await chunk7UK3E7SL_cjs.publicMakeCODOrder(order.order_number);
|
|
115
115
|
} else {
|
|
116
|
-
await
|
|
116
|
+
await chunk7UK3E7SL_cjs.makeCODOrder(order.id);
|
|
117
117
|
}
|
|
118
118
|
chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
|
|
119
119
|
chunkK44JZ5NL_cjs.pixelEvents.checkoutCompleted(order);
|
|
@@ -141,7 +141,7 @@ function handleStripePayment(order, callbacks) {
|
|
|
141
141
|
async function handleStripeSuccess(order, paymentIntentId, callbacks) {
|
|
142
142
|
try {
|
|
143
143
|
callbacks.onPaymentStart?.();
|
|
144
|
-
await
|
|
144
|
+
await chunk7UK3E7SL_cjs.stripeOrderSuccess({
|
|
145
145
|
order_id: order.id,
|
|
146
146
|
payment_intent_id: paymentIntentId
|
|
147
147
|
});
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
// src/components/icons/share.tsx
|
|
6
|
+
function ShareIcon({
|
|
7
|
+
width = 20,
|
|
8
|
+
height = 23,
|
|
9
|
+
className
|
|
10
|
+
}) {
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12
|
+
"svg",
|
|
13
|
+
{
|
|
14
|
+
width,
|
|
15
|
+
height,
|
|
16
|
+
viewBox: "0 0 20 23",
|
|
17
|
+
fill: "none",
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
className,
|
|
20
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
+
"path",
|
|
22
|
+
{
|
|
23
|
+
d: "M5.0745 10.357C4.82568 9.90934 4.43524 9.55692 3.96446 9.35513C3.49369 9.15333 2.96923 9.11357 2.47341 9.24209C1.97759 9.37061 1.53848 9.66013 1.22501 10.0652C0.911539 10.4703 0.741455 10.968 0.741455 11.4802C0.741455 11.9924 0.911539 12.4901 1.22501 12.8952C1.53848 13.3003 1.97759 13.5898 2.47341 13.7183C2.96923 13.8469 3.49369 13.8071 3.96446 13.6053C4.43524 13.4035 4.82568 13.0511 5.0745 12.6034M5.0745 10.357C5.25947 10.69 5.36531 11.0723 5.36531 11.4802C5.36531 11.8882 5.25947 12.2715 5.0745 12.6034M5.0745 10.357L14.9045 4.89641M5.0745 12.6034L14.9045 18.064M14.9045 4.89641C15.0486 5.16783 15.2454 5.4078 15.4833 5.60229C15.7213 5.79678 15.9956 5.94187 16.2903 6.0291C16.585 6.11633 16.8941 6.14393 17.1996 6.1103C17.5051 6.07667 17.8008 5.98247 18.0694 5.83323C18.338 5.68398 18.5742 5.48267 18.7642 5.24108C18.9541 4.99948 19.094 4.72244 19.1756 4.42616C19.2572 4.12988 19.279 3.8203 19.2395 3.51552C19.2001 3.21074 19.1003 2.91687 18.946 2.65111C18.6419 2.12739 18.1445 1.74388 17.5606 1.58304C16.9768 1.4222 16.3531 1.49685 15.8237 1.79096C15.2943 2.08507 14.9014 2.57515 14.7295 3.15586C14.5577 3.73656 14.6205 4.36152 14.9045 4.89641ZM14.9045 18.064C14.757 18.3295 14.6632 18.6215 14.6286 18.9232C14.5939 19.225 14.619 19.5306 14.7025 19.8226C14.7859 20.1146 14.9261 20.3874 15.1149 20.6253C15.3038 20.8631 15.5376 21.0615 15.8031 21.209C16.0686 21.3565 16.3606 21.4502 16.6623 21.4849C16.9641 21.5196 17.2697 21.4944 17.5617 21.411C17.8537 21.3276 18.1265 21.1874 18.3644 20.9986C18.6022 20.8097 18.8006 20.5758 18.9481 20.3103C19.246 19.7741 19.3186 19.1415 19.1501 18.5517C18.9816 17.962 18.5857 17.4633 18.0494 17.1654C17.5132 16.8675 16.8806 16.7948 16.2908 16.9634C15.7011 17.1319 15.2024 17.5278 14.9045 18.064Z",
|
|
24
|
+
stroke: "currentColor",
|
|
25
|
+
strokeWidth: "1.5",
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round"
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
exports.ShareIcon = ShareIcon;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { updateAddress, addAddress, getCountries, getSubdivisions } from './chunk-ZGMLOLTC.js';
|
|
2
|
-
import { getCache
|
|
2
|
+
import { getCache } from './chunk-OSM73ETC.js';
|
|
3
|
+
import { getAddressMeta } from './chunk-F45S7UWC.js';
|
|
3
4
|
import { addressFormInitialValues, IP_API_CACHE_KEY, addressValidationSchema, buildSubmitPayload } from './chunk-ELP23UGF.js';
|
|
4
5
|
import { useState, useEffect, useMemo, useCallback } from 'react';
|
|
5
6
|
import { useFormik } from 'formik';
|
|
@@ -17,6 +17,11 @@ async function getOrderDetailsByNumber(orderNumber) {
|
|
|
17
17
|
params: { order_number: orderNumber }
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
+
async function getOrderDetailsByRef(orderRef) {
|
|
21
|
+
return chunkECHV2JSY_cjs.http_service_default.get("/customer/order-detail/", {
|
|
22
|
+
params: { order_ref: orderRef }
|
|
23
|
+
});
|
|
24
|
+
}
|
|
20
25
|
async function getPublicOrderDetailsByNumber(orderNumber) {
|
|
21
26
|
return chunkECHV2JSY_cjs.http_service_default.get("/customer/public_order/", {
|
|
22
27
|
params: { order_number: orderNumber }
|
|
@@ -111,6 +116,7 @@ async function verifyTabbyPayment(orderNumber) {
|
|
|
111
116
|
exports.checkPhonepePaymentStatus = checkPhonepePaymentStatus;
|
|
112
117
|
exports.getOrderDetails = getOrderDetails;
|
|
113
118
|
exports.getOrderDetailsByNumber = getOrderDetailsByNumber;
|
|
119
|
+
exports.getOrderDetailsByRef = getOrderDetailsByRef;
|
|
114
120
|
exports.getOrders = getOrders;
|
|
115
121
|
exports.getPublicOrderDetailsByNumber = getPublicOrderDetailsByNumber;
|
|
116
122
|
exports.getStripePaymentStatus = getStripePaymentStatus;
|