@storepecker/storefront-core 2.4.0 → 2.4.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 +25 -25
- package/dist/api/index.js +1 -1
- package/dist/checkout/index.cjs +22 -22
- package/dist/checkout/index.js +2 -2
- package/dist/{chunk-VWQR3A7V.cjs → chunk-6DXB4O6P.cjs} +50 -10
- package/dist/{chunk-7UK3E7SL.cjs → chunk-AOJRQMJZ.cjs} +1 -1
- package/dist/{chunk-JRYWZMNT.js → chunk-BR45AXQP.js} +1 -1
- package/dist/{chunk-NA5GT4D3.js → chunk-LLRSKDH5.js} +48 -8
- package/dist/{chunk-TTIQRDHX.cjs → chunk-QU53I4AA.cjs} +2 -2
- package/dist/{chunk-HUIT4JCR.js → chunk-SFMTL3AQ.js} +1 -1
- package/dist/{chunk-UVU7H4E6.js → chunk-YFF6DWZM.js} +1 -1
- package/dist/{chunk-33TWVRZE.cjs → chunk-ZIALBJZK.cjs} +6 -6
- package/dist/components/digital-product-download-modal.cjs +2 -2
- package/dist/components/digital-product-download-modal.js +1 -1
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +1 -1
- package/dist/hooks/index.cjs +12 -12
- package/dist/hooks/index.js +3 -3
- package/dist/store/index.cjs +5 -5
- package/dist/store/index.js +2 -2
- package/package.json +2 -6
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 chunkAOJRQMJZ_cjs = require('../chunk-AOJRQMJZ.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,99 +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 chunkAOJRQMJZ_cjs.checkPhonepePaymentStatus; }
|
|
236
236
|
});
|
|
237
237
|
Object.defineProperty(exports, "getOrderDetails", {
|
|
238
238
|
enumerable: true,
|
|
239
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunkAOJRQMJZ_cjs.getOrderDetails; }
|
|
240
240
|
});
|
|
241
241
|
Object.defineProperty(exports, "getOrderDetailsByNumber", {
|
|
242
242
|
enumerable: true,
|
|
243
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunkAOJRQMJZ_cjs.getOrderDetailsByNumber; }
|
|
244
244
|
});
|
|
245
245
|
Object.defineProperty(exports, "getOrderDetailsByRef", {
|
|
246
246
|
enumerable: true,
|
|
247
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunkAOJRQMJZ_cjs.getOrderDetailsByRef; }
|
|
248
248
|
});
|
|
249
249
|
Object.defineProperty(exports, "getOrders", {
|
|
250
250
|
enumerable: true,
|
|
251
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunkAOJRQMJZ_cjs.getOrders; }
|
|
252
252
|
});
|
|
253
253
|
Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
|
|
254
254
|
enumerable: true,
|
|
255
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunkAOJRQMJZ_cjs.getPublicOrderDetailsByNumber; }
|
|
256
256
|
});
|
|
257
257
|
Object.defineProperty(exports, "getStripePaymentStatus", {
|
|
258
258
|
enumerable: true,
|
|
259
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunkAOJRQMJZ_cjs.getStripePaymentStatus; }
|
|
260
260
|
});
|
|
261
261
|
Object.defineProperty(exports, "getStripePaymentStatusPublic", {
|
|
262
262
|
enumerable: true,
|
|
263
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunkAOJRQMJZ_cjs.getStripePaymentStatusPublic; }
|
|
264
264
|
});
|
|
265
265
|
Object.defineProperty(exports, "makeCODOrder", {
|
|
266
266
|
enumerable: true,
|
|
267
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunkAOJRQMJZ_cjs.makeCODOrder; }
|
|
268
268
|
});
|
|
269
269
|
Object.defineProperty(exports, "phonepeOrderSuccess", {
|
|
270
270
|
enumerable: true,
|
|
271
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunkAOJRQMJZ_cjs.phonepeOrderSuccess; }
|
|
272
272
|
});
|
|
273
273
|
Object.defineProperty(exports, "phonepePublicOrderSuccess", {
|
|
274
274
|
enumerable: true,
|
|
275
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunkAOJRQMJZ_cjs.phonepePublicOrderSuccess; }
|
|
276
276
|
});
|
|
277
277
|
Object.defineProperty(exports, "placeOrder", {
|
|
278
278
|
enumerable: true,
|
|
279
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunkAOJRQMJZ_cjs.placeOrder; }
|
|
280
280
|
});
|
|
281
281
|
Object.defineProperty(exports, "publicMakeCODOrder", {
|
|
282
282
|
enumerable: true,
|
|
283
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunkAOJRQMJZ_cjs.publicMakeCODOrder; }
|
|
284
284
|
});
|
|
285
285
|
Object.defineProperty(exports, "publicPlaceOrder", {
|
|
286
286
|
enumerable: true,
|
|
287
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunkAOJRQMJZ_cjs.publicPlaceOrder; }
|
|
288
288
|
});
|
|
289
289
|
Object.defineProperty(exports, "razorpayOrderFail", {
|
|
290
290
|
enumerable: true,
|
|
291
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunkAOJRQMJZ_cjs.razorpayOrderFail; }
|
|
292
292
|
});
|
|
293
293
|
Object.defineProperty(exports, "razorpayOrderSuccess", {
|
|
294
294
|
enumerable: true,
|
|
295
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunkAOJRQMJZ_cjs.razorpayOrderSuccess; }
|
|
296
296
|
});
|
|
297
297
|
Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
|
|
298
298
|
enumerable: true,
|
|
299
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunkAOJRQMJZ_cjs.razorpayPublicOrderSuccess; }
|
|
300
300
|
});
|
|
301
301
|
Object.defineProperty(exports, "stripeOrderFail", {
|
|
302
302
|
enumerable: true,
|
|
303
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunkAOJRQMJZ_cjs.stripeOrderFail; }
|
|
304
304
|
});
|
|
305
305
|
Object.defineProperty(exports, "stripeOrderSuccess", {
|
|
306
306
|
enumerable: true,
|
|
307
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunkAOJRQMJZ_cjs.stripeOrderSuccess; }
|
|
308
308
|
});
|
|
309
309
|
Object.defineProperty(exports, "stripePublicOrderSuccess", {
|
|
310
310
|
enumerable: true,
|
|
311
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunkAOJRQMJZ_cjs.stripePublicOrderSuccess; }
|
|
312
312
|
});
|
|
313
313
|
Object.defineProperty(exports, "updateOrder", {
|
|
314
314
|
enumerable: true,
|
|
315
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunkAOJRQMJZ_cjs.updateOrder; }
|
|
316
316
|
});
|
|
317
317
|
Object.defineProperty(exports, "updateOrderCustomization", {
|
|
318
318
|
enumerable: true,
|
|
319
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunkAOJRQMJZ_cjs.updateOrderCustomization; }
|
|
320
320
|
});
|
|
321
321
|
Object.defineProperty(exports, "uploadCustomizationImage", {
|
|
322
322
|
enumerable: true,
|
|
323
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunkAOJRQMJZ_cjs.uploadCustomizationImage; }
|
|
324
324
|
});
|
|
325
325
|
Object.defineProperty(exports, "verifyTabbyPayment", {
|
|
326
326
|
enumerable: true,
|
|
327
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunkAOJRQMJZ_cjs.verifyTabbyPayment; }
|
|
328
328
|
});
|
|
329
329
|
Object.defineProperty(exports, "addAddress", {
|
|
330
330
|
enumerable: true,
|
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, getOrderDetailsByRef, 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-YFF6DWZM.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 chunkZIALBJZK_cjs = require('../chunk-ZIALBJZK.cjs');
|
|
4
4
|
require('../chunk-XFOUNOKO.cjs');
|
|
5
5
|
var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkAOJRQMJZ_cjs = require('../chunk-AOJRQMJZ.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 chunkAOJRQMJZ_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
|
+
chunkAOJRQMJZ_cjs.checkPhonepePaymentStatus(transactionId),
|
|
66
|
+
chunkAOJRQMJZ_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 ? chunkAOJRQMJZ_cjs.getStripePaymentStatusPublic : chunkAOJRQMJZ_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 chunkAOJRQMJZ_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 chunkAOJRQMJZ_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 chunkAOJRQMJZ_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 chunkZIALBJZK_cjs.applyCheckoutCoupon; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "fetchAppliedCoupon", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunkZIALBJZK_cjs.fetchAppliedCoupon; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "fetchAvailableCoupons", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunkZIALBJZK_cjs.fetchAvailableCoupons; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "handleCODPayment", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunkZIALBJZK_cjs.handleCODPayment; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "handlePhonepePayment", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkZIALBJZK_cjs.handlePhonepePayment; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "handleRazorpayFail", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkZIALBJZK_cjs.handleRazorpayFail; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "handleRazorpaySuccess", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkZIALBJZK_cjs.handleRazorpaySuccess; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "handleStripePayment", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkZIALBJZK_cjs.handleStripePayment; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "handleStripeSuccess", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkZIALBJZK_cjs.handleStripeSuccess; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "handleTabbyPayment", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkZIALBJZK_cjs.handleTabbyPayment; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "openRazorpayCheckout", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunkZIALBJZK_cjs.openRazorpayCheckout; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "processPayment", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunkZIALBJZK_cjs.processPayment; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "removeCheckoutCoupon", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunkZIALBJZK_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-SFMTL3AQ.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-YFF6DWZM.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';
|
|
@@ -1,29 +1,69 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkBBRB475I_cjs = require('./chunk-BBRB475I.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('react-
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var reactDom = require('react-dom');
|
|
6
|
+
var clsx = require('clsx');
|
|
6
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
8
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
10
|
|
|
10
|
-
var
|
|
11
|
+
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
11
12
|
|
|
13
|
+
function Modal({
|
|
14
|
+
open,
|
|
15
|
+
onClose,
|
|
16
|
+
className,
|
|
17
|
+
children
|
|
18
|
+
}) {
|
|
19
|
+
react.useEffect(() => {
|
|
20
|
+
if (!open) return;
|
|
21
|
+
const handleKey = (e) => {
|
|
22
|
+
if (e.key === "Escape") onClose();
|
|
23
|
+
};
|
|
24
|
+
document.addEventListener("keydown", handleKey);
|
|
25
|
+
const prevOverflow = document.body.style.overflow;
|
|
26
|
+
document.body.style.overflow = "hidden";
|
|
27
|
+
return () => {
|
|
28
|
+
document.removeEventListener("keydown", handleKey);
|
|
29
|
+
document.body.style.overflow = prevOverflow;
|
|
30
|
+
};
|
|
31
|
+
}, [open, onClose]);
|
|
32
|
+
if (!open || typeof document === "undefined") return null;
|
|
33
|
+
return reactDom.createPortal(
|
|
34
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
38
|
+
onClick: onClose,
|
|
39
|
+
role: "dialog",
|
|
40
|
+
"aria-modal": "true",
|
|
41
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: clsx__default.default(
|
|
45
|
+
"relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg bg-white shadow-xl",
|
|
46
|
+
className
|
|
47
|
+
),
|
|
48
|
+
onClick: (e) => e.stopPropagation(),
|
|
49
|
+
children
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
),
|
|
54
|
+
document.body
|
|
55
|
+
);
|
|
56
|
+
}
|
|
12
57
|
var checkIfLimitReached = (attribute) => {
|
|
13
58
|
return chunkBBRB475I_cjs.isExpired(attribute.expiry_date) || attribute.download_count === 0;
|
|
14
59
|
};
|
|
15
60
|
var DigitalProductDownloadModal = ({ open, onClose, product, downloadAttribute, onDownload, loading }) => {
|
|
16
61
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17
|
-
|
|
62
|
+
Modal,
|
|
18
63
|
{
|
|
19
|
-
classNames: {
|
|
20
|
-
modal: "modal modal-lg modal-confirm",
|
|
21
|
-
closeButton: "modal-close"
|
|
22
|
-
},
|
|
23
64
|
open,
|
|
24
65
|
onClose,
|
|
25
|
-
|
|
26
|
-
closeIcon: null,
|
|
66
|
+
className: "modal modal-lg modal-confirm max-w-2xl",
|
|
27
67
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "modal-body px-4 py-2", children: [
|
|
28
68
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-2xl block mb-2 fw-regular", children: [
|
|
29
69
|
"Download links for ",
|
|
@@ -55,7 +55,7 @@ async function razorpayOrderSuccess(orderDetails) {
|
|
|
55
55
|
return chunkECHV2JSY_cjs.http_service_default.post("/payment/razorpay-order-success/", orderDetails);
|
|
56
56
|
}
|
|
57
57
|
async function razorpayOrderFail(orderDetails) {
|
|
58
|
-
return chunkECHV2JSY_cjs.http_service_default.post("/payment/razorpay-order-
|
|
58
|
+
return chunkECHV2JSY_cjs.http_service_default.post("/payment/razorpay-order-failure/", orderDetails);
|
|
59
59
|
}
|
|
60
60
|
async function phonepePublicOrderSuccess(orderDetails) {
|
|
61
61
|
return chunkECHV2JSY_cjs.http_service_default.post("/payment/public-phonepe-order-success/", orderDetails);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { updateCart, removeFromCart, addToCart, getCart } from './chunk-U25T7M6S.js';
|
|
2
2
|
import { cart_default } from './chunk-QAC72HKO.js';
|
|
3
|
-
import { updateOrderCustomization } from './chunk-
|
|
3
|
+
import { updateOrderCustomization } from './chunk-YFF6DWZM.js';
|
|
4
4
|
import { auth_default } from './chunk-WEMNXIRS.js';
|
|
5
5
|
import { USER_CRED_TOKEN, USER_CREDENTIALS } from './chunk-BQ256JKN.js';
|
|
6
6
|
import { create } from 'zustand';
|
|
@@ -1,8 +1,53 @@
|
|
|
1
1
|
import { timeFromNow, isExpired } from './chunk-HSF2D56O.js';
|
|
2
|
-
import
|
|
3
|
-
import 'react-
|
|
2
|
+
import { useEffect } from 'react';
|
|
3
|
+
import { createPortal } from 'react-dom';
|
|
4
|
+
import clsx from 'clsx';
|
|
4
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
6
|
|
|
7
|
+
function Modal({
|
|
8
|
+
open,
|
|
9
|
+
onClose,
|
|
10
|
+
className,
|
|
11
|
+
children
|
|
12
|
+
}) {
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!open) return;
|
|
15
|
+
const handleKey = (e) => {
|
|
16
|
+
if (e.key === "Escape") onClose();
|
|
17
|
+
};
|
|
18
|
+
document.addEventListener("keydown", handleKey);
|
|
19
|
+
const prevOverflow = document.body.style.overflow;
|
|
20
|
+
document.body.style.overflow = "hidden";
|
|
21
|
+
return () => {
|
|
22
|
+
document.removeEventListener("keydown", handleKey);
|
|
23
|
+
document.body.style.overflow = prevOverflow;
|
|
24
|
+
};
|
|
25
|
+
}, [open, onClose]);
|
|
26
|
+
if (!open || typeof document === "undefined") return null;
|
|
27
|
+
return createPortal(
|
|
28
|
+
/* @__PURE__ */ jsx(
|
|
29
|
+
"div",
|
|
30
|
+
{
|
|
31
|
+
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",
|
|
32
|
+
onClick: onClose,
|
|
33
|
+
role: "dialog",
|
|
34
|
+
"aria-modal": "true",
|
|
35
|
+
children: /* @__PURE__ */ jsx(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: clsx(
|
|
39
|
+
"relative max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg bg-white shadow-xl",
|
|
40
|
+
className
|
|
41
|
+
),
|
|
42
|
+
onClick: (e) => e.stopPropagation(),
|
|
43
|
+
children
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
document.body
|
|
49
|
+
);
|
|
50
|
+
}
|
|
6
51
|
var checkIfLimitReached = (attribute) => {
|
|
7
52
|
return isExpired(attribute.expiry_date) || attribute.download_count === 0;
|
|
8
53
|
};
|
|
@@ -10,14 +55,9 @@ var DigitalProductDownloadModal = ({ open, onClose, product, downloadAttribute,
|
|
|
10
55
|
return /* @__PURE__ */ jsx(
|
|
11
56
|
Modal,
|
|
12
57
|
{
|
|
13
|
-
classNames: {
|
|
14
|
-
modal: "modal modal-lg modal-confirm",
|
|
15
|
-
closeButton: "modal-close"
|
|
16
|
-
},
|
|
17
58
|
open,
|
|
18
59
|
onClose,
|
|
19
|
-
|
|
20
|
-
closeIcon: null,
|
|
60
|
+
className: "modal modal-lg modal-confirm max-w-2xl",
|
|
21
61
|
children: /* @__PURE__ */ jsxs("div", { className: "modal-body px-4 py-2", children: [
|
|
22
62
|
/* @__PURE__ */ jsxs("span", { className: "text-2xl block mb-2 fw-regular", children: [
|
|
23
63
|
"Download links for ",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkY2CPMT34_cjs = require('./chunk-Y2CPMT34.cjs');
|
|
4
4
|
var chunkSMHJRNCR_cjs = require('./chunk-SMHJRNCR.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkAOJRQMJZ_cjs = require('./chunk-AOJRQMJZ.cjs');
|
|
6
6
|
var chunkBBRXE57K_cjs = require('./chunk-BBRXE57K.cjs');
|
|
7
7
|
var chunkNE3ZHELZ_cjs = require('./chunk-NE3ZHELZ.cjs');
|
|
8
8
|
var zustand = require('zustand');
|
|
@@ -123,7 +123,7 @@ var useCartStore = zustand.create((set) => ({
|
|
|
123
123
|
updateCustomization: async (customizationInputs) => {
|
|
124
124
|
set({ status: "loading" /* LOADING */ });
|
|
125
125
|
try {
|
|
126
|
-
await
|
|
126
|
+
await chunkAOJRQMJZ_cjs.updateOrderCustomization({ customization_inputs: customizationInputs });
|
|
127
127
|
} catch {
|
|
128
128
|
} finally {
|
|
129
129
|
set({ status: "idle" /* IDLE */ });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCoupons, getAppliedCoupon, applyCoupon, removeCoupon } from './chunk-7M5CVYZJ.js';
|
|
2
2
|
import { pixelEvents } from './chunk-WFDKKOO7.js';
|
|
3
|
-
import { razorpayOrderSuccess, razorpayOrderFail, publicMakeCODOrder, makeCODOrder, stripeOrderSuccess } from './chunk-
|
|
3
|
+
import { razorpayOrderSuccess, razorpayOrderFail, publicMakeCODOrder, makeCODOrder, stripeOrderSuccess } from './chunk-YFF6DWZM.js';
|
|
4
4
|
import { getCloudFront } from './chunk-JQMLHRWL.js';
|
|
5
5
|
import { AxiosError } from 'axios';
|
|
6
6
|
|
|
@@ -53,7 +53,7 @@ async function razorpayOrderSuccess(orderDetails) {
|
|
|
53
53
|
return http_service_default.post("/payment/razorpay-order-success/", orderDetails);
|
|
54
54
|
}
|
|
55
55
|
async function razorpayOrderFail(orderDetails) {
|
|
56
|
-
return http_service_default.post("/payment/razorpay-order-
|
|
56
|
+
return http_service_default.post("/payment/razorpay-order-failure/", orderDetails);
|
|
57
57
|
}
|
|
58
58
|
async function phonepePublicOrderSuccess(orderDetails) {
|
|
59
59
|
return http_service_default.post("/payment/public-phonepe-order-success/", orderDetails);
|
|
@@ -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 chunkAOJRQMJZ_cjs = require('./chunk-AOJRQMJZ.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 chunkAOJRQMJZ_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 chunkAOJRQMJZ_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 chunkAOJRQMJZ_cjs.publicMakeCODOrder(order.order_number);
|
|
115
115
|
} else {
|
|
116
|
-
await
|
|
116
|
+
await chunkAOJRQMJZ_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 chunkAOJRQMJZ_cjs.stripeOrderSuccess({
|
|
145
145
|
order_id: order.id,
|
|
146
146
|
payment_intent_id: paymentIntentId
|
|
147
147
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6DXB4O6P_cjs = require('../chunk-6DXB4O6P.cjs');
|
|
4
4
|
require('../chunk-BBRB475I.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
module.exports =
|
|
8
|
+
module.exports = chunk6DXB4O6P_cjs.digital_product_download_modal_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { digital_product_download_modal_default as default } from '../chunk-
|
|
1
|
+
export { digital_product_download_modal_default as default } from '../chunk-LLRSKDH5.js';
|
|
2
2
|
import '../chunk-HSF2D56O.js';
|
|
@@ -4,7 +4,7 @@ var chunkB3BXKMQA_cjs = require('../chunk-B3BXKMQA.cjs');
|
|
|
4
4
|
var chunkV447PVRV_cjs = require('../chunk-V447PVRV.cjs');
|
|
5
5
|
var chunkHAQWCNDY_cjs = require('../chunk-HAQWCNDY.cjs');
|
|
6
6
|
var chunk3YRSHPM6_cjs = require('../chunk-3YRSHPM6.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk6DXB4O6P_cjs = require('../chunk-6DXB4O6P.cjs');
|
|
8
8
|
var chunkLHF5BSWO_cjs = require('../chunk-LHF5BSWO.cjs');
|
|
9
9
|
require('../chunk-BBRB475I.cjs');
|
|
10
10
|
require('../chunk-KLNKIQQM.cjs');
|
|
@@ -38,7 +38,7 @@ Object.defineProperty(exports, "ShareIcon", {
|
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DigitalProductDownloadModal", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk6DXB4O6P_cjs.digital_product_download_modal_default; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "ThemeDataInitializer", {
|
|
44
44
|
enumerable: true,
|
package/dist/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@ export { address_form_default as AddressForm } from '../chunk-L43KF3AC.js';
|
|
|
2
2
|
export { search_dropdown_default as SearchDropdown } from '../chunk-YK4M3SFP.js';
|
|
3
3
|
export { share_button_default as ShareButton } from '../chunk-EGFOTJPC.js';
|
|
4
4
|
export { ShareIcon } from '../chunk-U7EXLQCT.js';
|
|
5
|
-
export { digital_product_download_modal_default as DigitalProductDownloadModal } from '../chunk-
|
|
5
|
+
export { digital_product_download_modal_default as DigitalProductDownloadModal } from '../chunk-LLRSKDH5.js';
|
|
6
6
|
export { ThemeDataInitializer } from '../chunk-BTR3HLL4.js';
|
|
7
7
|
import '../chunk-HSF2D56O.js';
|
|
8
8
|
import '../chunk-6Q7QMPOQ.js';
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
4
|
var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkQU53I4AA_cjs = require('../chunk-QU53I4AA.cjs');
|
|
6
6
|
var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
|
|
7
7
|
var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkZIALBJZK_cjs = require('../chunk-ZIALBJZK.cjs');
|
|
9
9
|
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
10
10
|
require('../chunk-K44JZ5NL.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunkAOJRQMJZ_cjs = require('../chunk-AOJRQMJZ.cjs');
|
|
12
12
|
var chunkKLNKIQQM_cjs = require('../chunk-KLNKIQQM.cjs');
|
|
13
13
|
var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
|
|
14
14
|
require('../chunk-LJUGNSQQ.cjs');
|
|
@@ -90,7 +90,7 @@ var useOrders = (filters) => {
|
|
|
90
90
|
try {
|
|
91
91
|
setIsLoading(true);
|
|
92
92
|
const url = `/customer/order/?${queryString}`;
|
|
93
|
-
const result = await
|
|
93
|
+
const result = await chunkAOJRQMJZ_cjs.getOrders(url);
|
|
94
94
|
setData(result);
|
|
95
95
|
setError(null);
|
|
96
96
|
} 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 = chunkQU53I4AA_cjs.useCartStore((s) => s.resetCartCount);
|
|
325
325
|
const callbacks = {
|
|
326
326
|
onSuccess: (order) => {
|
|
327
327
|
setOrderSummary(order);
|
|
@@ -344,7 +344,7 @@ function useCheckoutPayment(options) {
|
|
|
344
344
|
try {
|
|
345
345
|
setIsPlacingOrder(true);
|
|
346
346
|
const isCod = paymentMethod === "cod";
|
|
347
|
-
const response = await
|
|
347
|
+
const response = await chunkAOJRQMJZ_cjs.placeOrder(
|
|
348
348
|
addressId,
|
|
349
349
|
options.phonepeRedirectUrl,
|
|
350
350
|
isCod,
|
|
@@ -353,7 +353,7 @@ function useCheckoutPayment(options) {
|
|
|
353
353
|
);
|
|
354
354
|
const order = response.data;
|
|
355
355
|
setOrderSummary(order);
|
|
356
|
-
|
|
356
|
+
chunkZIALBJZK_cjs.processPayment(order, paymentMethod, callbacks);
|
|
357
357
|
} catch {
|
|
358
358
|
setShowFailureModal(true);
|
|
359
359
|
} finally {
|
|
@@ -383,7 +383,7 @@ function useCheckoutCoupon(options) {
|
|
|
383
383
|
const refreshCoupons = react.useCallback(async () => {
|
|
384
384
|
setIsLoading(true);
|
|
385
385
|
try {
|
|
386
|
-
const coupons = await
|
|
386
|
+
const coupons = await chunkZIALBJZK_cjs.fetchAvailableCoupons();
|
|
387
387
|
setAvailableCoupons(coupons);
|
|
388
388
|
} catch {
|
|
389
389
|
} finally {
|
|
@@ -395,7 +395,7 @@ function useCheckoutCoupon(options) {
|
|
|
395
395
|
setError(null);
|
|
396
396
|
setIsApplying(true);
|
|
397
397
|
try {
|
|
398
|
-
const coupon = await
|
|
398
|
+
const coupon = await chunkZIALBJZK_cjs.applyCheckoutCoupon(code, callbacks);
|
|
399
399
|
setAppliedCoupon(coupon);
|
|
400
400
|
} catch (err) {
|
|
401
401
|
setError(err instanceof Error ? err.message : "Failed to apply coupon");
|
|
@@ -408,7 +408,7 @@ function useCheckoutCoupon(options) {
|
|
|
408
408
|
const removeCouponHandler = react.useCallback(async () => {
|
|
409
409
|
if (!appliedCoupon) return;
|
|
410
410
|
try {
|
|
411
|
-
await
|
|
411
|
+
await chunkZIALBJZK_cjs.removeCheckoutCoupon(appliedCoupon.coupon_code, callbacks);
|
|
412
412
|
setAppliedCoupon(null);
|
|
413
413
|
setError(null);
|
|
414
414
|
} catch {
|
|
@@ -507,8 +507,8 @@ function useVariantSelector(options) {
|
|
|
507
507
|
}
|
|
508
508
|
function useShopCheckout(options) {
|
|
509
509
|
const { product, onNavigateToCart, onToast } = options;
|
|
510
|
-
const { addToCart, setCart } =
|
|
511
|
-
const isUserAuthenticated =
|
|
510
|
+
const { addToCart, setCart } = chunkQU53I4AA_cjs.useCartStore();
|
|
511
|
+
const isUserAuthenticated = chunkQU53I4AA_cjs.useAuthStore((s) => s.isAuthenticated);
|
|
512
512
|
const [isWishlisted, setIsWishlisted] = react.useState(product.is_wishlisted);
|
|
513
513
|
const [isAddedToCart, setIsAddedToCart] = react.useState(false);
|
|
514
514
|
const [loading, setLoading] = react.useState(false);
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
3
|
+
import { useCartStore, useAuthStore } from '../chunk-BR45AXQP.js';
|
|
4
4
|
import { getCart, getProductList, getProductDetail, getWishlist, notifyProductStock, getProductCategories, getCategories } from '../chunk-U25T7M6S.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-SFMTL3AQ.js';
|
|
7
7
|
import { applyCoupon, removeCoupon, getCoupons, getAppliedCoupon } from '../chunk-7M5CVYZJ.js';
|
|
8
8
|
import '../chunk-WFDKKOO7.js';
|
|
9
|
-
import { getOrders, placeOrder } from '../chunk-
|
|
9
|
+
import { getOrders, placeOrder } from '../chunk-YFF6DWZM.js';
|
|
10
10
|
export { useAddressForm } from '../chunk-6Q7QMPOQ.js';
|
|
11
11
|
import { getAddresses } from '../chunk-ZGMLOLTC.js';
|
|
12
12
|
import '../chunk-OSM73ETC.js';
|
package/dist/store/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQU53I4AA_cjs = require('../chunk-QU53I4AA.cjs');
|
|
4
4
|
var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-AOJRQMJZ.cjs');
|
|
7
7
|
var chunkDODFO744_cjs = require('../chunk-DODFO744.cjs');
|
|
8
8
|
require('../chunk-ECHV2JSY.cjs');
|
|
9
9
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -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 chunkQU53I4AA_cjs.loginUser; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "useAuthStore", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkQU53I4AA_cjs.useAuthStore; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "useCartStore", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkQU53I4AA_cjs.useCartStore; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "useThemeData", {
|
|
83
83
|
enumerable: true,
|
package/dist/store/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { loginUser, useAuthStore, useCartStore } from '../chunk-
|
|
1
|
+
export { loginUser, useAuthStore, useCartStore } from '../chunk-BR45AXQP.js';
|
|
2
2
|
import { getWishlist, getProducts } from '../chunk-U25T7M6S.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-YFF6DWZM.js';
|
|
5
5
|
export { useThemeData } from '../chunk-5NUDTIQ2.js';
|
|
6
6
|
import '../chunk-3SYYP3XV.js';
|
|
7
7
|
import '../chunk-WEMNXIRS.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storepecker/storefront-core",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"description": "Shared logic and utilities for Snapstore themes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -149,7 +149,6 @@
|
|
|
149
149
|
"libphonenumber-js": "^1.10.0",
|
|
150
150
|
"react": "^18.0.0 || ^19.0.0",
|
|
151
151
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
152
|
-
"react-responsive-modal": "^6.0.0",
|
|
153
152
|
"typescript-cookie": "^1.0.0",
|
|
154
153
|
"yup": "^1.0.0",
|
|
155
154
|
"zustand": "^5.0.0"
|
|
@@ -169,15 +168,13 @@
|
|
|
169
168
|
},
|
|
170
169
|
"jwt-decode": {
|
|
171
170
|
"optional": true
|
|
172
|
-
},
|
|
173
|
-
"react-responsive-modal": {
|
|
174
|
-
"optional": true
|
|
175
171
|
}
|
|
176
172
|
},
|
|
177
173
|
"devDependencies": {
|
|
178
174
|
"@testing-library/react": "^16.3.2",
|
|
179
175
|
"@types/node": "^25.3.3",
|
|
180
176
|
"@types/react": "^18.0.0",
|
|
177
|
+
"@types/react-dom": "^18.3.7",
|
|
181
178
|
"axios": "^1.7.0",
|
|
182
179
|
"clsx": "^2.1.1",
|
|
183
180
|
"esbuild-css-modules-plugin": "^3.1.5",
|
|
@@ -189,7 +186,6 @@
|
|
|
189
186
|
"react": "^18.3.1",
|
|
190
187
|
"react-dom": "^18.3.1",
|
|
191
188
|
"react-easy-crop": "^5.5.6",
|
|
192
|
-
"react-responsive-modal": "^6.4.0",
|
|
193
189
|
"react-toastify": "^11.0.5",
|
|
194
190
|
"sass": "^1.97.3",
|
|
195
191
|
"tsup": "^8.0.0",
|