@storepecker/storefront-core 2.5.3 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/api/index.cjs +46 -26
  2. package/dist/api/index.d.cts +16 -3
  3. package/dist/api/index.d.ts +16 -3
  4. package/dist/api/index.js +15 -2
  5. package/dist/{booking-Bpj3o6Av.d.cts → blog-DDOl23BM.d.cts} +28 -1
  6. package/dist/{booking-cbb8kh2L.d.ts → blog-ICspYuDq.d.ts} +28 -1
  7. package/dist/checkout/index.cjs +22 -22
  8. package/dist/checkout/index.d.cts +1 -1
  9. package/dist/checkout/index.d.ts +1 -1
  10. package/dist/checkout/index.js +2 -2
  11. package/dist/{chunk-P252YNRA.js → chunk-6NFWEJSD.js} +1 -1
  12. package/dist/{chunk-FU46MZTI.cjs → chunk-DY7PNIB3.cjs} +2 -2
  13. package/dist/{chunk-DXQX7ZIL.cjs → chunk-LZADKC4Y.cjs} +6 -0
  14. package/dist/{chunk-S3ZZ3ZA7.js → chunk-ME6Z7TZW.js} +6 -1
  15. package/dist/{chunk-PZJT2Y5B.cjs → chunk-QSHOJ3NJ.cjs} +7 -7
  16. package/dist/{chunk-NXQIWB36.js → chunk-VYHAWRJR.js} +2 -2
  17. package/dist/components/digital-product-download-modal.d.cts +1 -1
  18. package/dist/components/digital-product-download-modal.d.ts +1 -1
  19. package/dist/components/index.d.cts +2 -2
  20. package/dist/components/index.d.ts +2 -2
  21. package/dist/components/theme-data-initializer.d.cts +2 -2
  22. package/dist/components/theme-data-initializer.d.ts +2 -2
  23. package/dist/hooks/index.cjs +12 -12
  24. package/dist/hooks/index.d.cts +1 -1
  25. package/dist/hooks/index.d.ts +1 -1
  26. package/dist/hooks/index.js +3 -3
  27. package/dist/models/index.d.cts +2 -2
  28. package/dist/models/index.d.ts +2 -2
  29. package/dist/{orders-CGwKT5L-.d.cts → orders-1vcg6whk.d.cts} +1 -1
  30. package/dist/{orders-BhmpycYJ.d.ts → orders-CGhcSTMg.d.ts} +1 -1
  31. package/dist/{pixelEvents-CA14Tvrs.d.ts → pixelEvents-BEzVCIBj.d.ts} +11 -4
  32. package/dist/{pixelEvents-Do1wT3z_.d.cts → pixelEvents-Bob6N-g5.d.cts} +11 -4
  33. package/dist/store/index.cjs +5 -5
  34. package/dist/store/index.d.cts +2 -2
  35. package/dist/store/index.d.ts +2 -2
  36. package/dist/store/index.js +2 -2
  37. package/dist/utils/index.d.cts +3 -3
  38. package/dist/utils/index.d.ts +3 -3
  39. package/package.json +1 -1
@@ -4,7 +4,7 @@ var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
4
4
  var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
5
5
  require('../chunk-SMHJRNCR.cjs');
6
6
  var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
7
- var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
7
+ var chunkLZADKC4Y_cjs = require('../chunk-LZADKC4Y.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');
@@ -142,6 +142,19 @@ async function getUserBookings(filter) {
142
142
  });
143
143
  }
144
144
 
145
+ // src/api/blog.ts
146
+ async function getBlogPostsList(filter) {
147
+ return await chunkECHV2JSY_cjs.http_service_default.get("/blogs/public/posts/", { params: filter });
148
+ }
149
+ async function getBlogPostBySlug(slug) {
150
+ return await chunkECHV2JSY_cjs.http_service_default.get(`/blogs/public/posts/${slug}/`);
151
+ }
152
+ async function getMultipleBlogsBySlugs(slugs) {
153
+ return await chunkECHV2JSY_cjs.http_service_default.get(`/blogs/public/posts/multiple/`, {
154
+ params: { slugs }
155
+ });
156
+ }
157
+
145
158
  Object.defineProperty(exports, "getUserDetails", {
146
159
  enumerable: true,
147
160
  get: function () { return chunkY46EHRJQ_cjs.getUserDetails; }
@@ -236,103 +249,107 @@ Object.defineProperty(exports, "removeCoupon", {
236
249
  });
237
250
  Object.defineProperty(exports, "checkPhonepePaymentStatus", {
238
251
  enumerable: true,
239
- get: function () { return chunkDXQX7ZIL_cjs.checkPhonepePaymentStatus; }
252
+ get: function () { return chunkLZADKC4Y_cjs.checkPhonepePaymentStatus; }
240
253
  });
241
254
  Object.defineProperty(exports, "getOrderDetails", {
242
255
  enumerable: true,
243
- get: function () { return chunkDXQX7ZIL_cjs.getOrderDetails; }
256
+ get: function () { return chunkLZADKC4Y_cjs.getOrderDetails; }
244
257
  });
245
258
  Object.defineProperty(exports, "getOrderDetailsByNumber", {
246
259
  enumerable: true,
247
- get: function () { return chunkDXQX7ZIL_cjs.getOrderDetailsByNumber; }
260
+ get: function () { return chunkLZADKC4Y_cjs.getOrderDetailsByNumber; }
248
261
  });
249
262
  Object.defineProperty(exports, "getOrderDetailsByRef", {
250
263
  enumerable: true,
251
- get: function () { return chunkDXQX7ZIL_cjs.getOrderDetailsByRef; }
264
+ get: function () { return chunkLZADKC4Y_cjs.getOrderDetailsByRef; }
252
265
  });
253
266
  Object.defineProperty(exports, "getOrderDetailsByRefV2", {
254
267
  enumerable: true,
255
- get: function () { return chunkDXQX7ZIL_cjs.getOrderDetailsByRefV2; }
268
+ get: function () { return chunkLZADKC4Y_cjs.getOrderDetailsByRefV2; }
256
269
  });
257
270
  Object.defineProperty(exports, "getOrders", {
258
271
  enumerable: true,
259
- get: function () { return chunkDXQX7ZIL_cjs.getOrders; }
272
+ get: function () { return chunkLZADKC4Y_cjs.getOrders; }
260
273
  });
261
274
  Object.defineProperty(exports, "getPublicOrderDetailsByNumber", {
262
275
  enumerable: true,
263
- get: function () { return chunkDXQX7ZIL_cjs.getPublicOrderDetailsByNumber; }
276
+ get: function () { return chunkLZADKC4Y_cjs.getPublicOrderDetailsByNumber; }
277
+ });
278
+ Object.defineProperty(exports, "getPublicOrderDetailsByRef", {
279
+ enumerable: true,
280
+ get: function () { return chunkLZADKC4Y_cjs.getPublicOrderDetailsByRef; }
264
281
  });
265
282
  Object.defineProperty(exports, "getStripePaymentStatus", {
266
283
  enumerable: true,
267
- get: function () { return chunkDXQX7ZIL_cjs.getStripePaymentStatus; }
284
+ get: function () { return chunkLZADKC4Y_cjs.getStripePaymentStatus; }
268
285
  });
269
286
  Object.defineProperty(exports, "getStripePaymentStatusPublic", {
270
287
  enumerable: true,
271
- get: function () { return chunkDXQX7ZIL_cjs.getStripePaymentStatusPublic; }
288
+ get: function () { return chunkLZADKC4Y_cjs.getStripePaymentStatusPublic; }
272
289
  });
273
290
  Object.defineProperty(exports, "makeCODOrder", {
274
291
  enumerable: true,
275
- get: function () { return chunkDXQX7ZIL_cjs.makeCODOrder; }
292
+ get: function () { return chunkLZADKC4Y_cjs.makeCODOrder; }
276
293
  });
277
294
  Object.defineProperty(exports, "phonepeOrderSuccess", {
278
295
  enumerable: true,
279
- get: function () { return chunkDXQX7ZIL_cjs.phonepeOrderSuccess; }
296
+ get: function () { return chunkLZADKC4Y_cjs.phonepeOrderSuccess; }
280
297
  });
281
298
  Object.defineProperty(exports, "phonepePublicOrderSuccess", {
282
299
  enumerable: true,
283
- get: function () { return chunkDXQX7ZIL_cjs.phonepePublicOrderSuccess; }
300
+ get: function () { return chunkLZADKC4Y_cjs.phonepePublicOrderSuccess; }
284
301
  });
285
302
  Object.defineProperty(exports, "placeOrder", {
286
303
  enumerable: true,
287
- get: function () { return chunkDXQX7ZIL_cjs.placeOrder; }
304
+ get: function () { return chunkLZADKC4Y_cjs.placeOrder; }
288
305
  });
289
306
  Object.defineProperty(exports, "publicMakeCODOrder", {
290
307
  enumerable: true,
291
- get: function () { return chunkDXQX7ZIL_cjs.publicMakeCODOrder; }
308
+ get: function () { return chunkLZADKC4Y_cjs.publicMakeCODOrder; }
292
309
  });
293
310
  Object.defineProperty(exports, "publicPlaceOrder", {
294
311
  enumerable: true,
295
- get: function () { return chunkDXQX7ZIL_cjs.publicPlaceOrder; }
312
+ get: function () { return chunkLZADKC4Y_cjs.publicPlaceOrder; }
296
313
  });
297
314
  Object.defineProperty(exports, "razorpayOrderFail", {
298
315
  enumerable: true,
299
- get: function () { return chunkDXQX7ZIL_cjs.razorpayOrderFail; }
316
+ get: function () { return chunkLZADKC4Y_cjs.razorpayOrderFail; }
300
317
  });
301
318
  Object.defineProperty(exports, "razorpayOrderSuccess", {
302
319
  enumerable: true,
303
- get: function () { return chunkDXQX7ZIL_cjs.razorpayOrderSuccess; }
320
+ get: function () { return chunkLZADKC4Y_cjs.razorpayOrderSuccess; }
304
321
  });
305
322
  Object.defineProperty(exports, "razorpayPublicOrderSuccess", {
306
323
  enumerable: true,
307
- get: function () { return chunkDXQX7ZIL_cjs.razorpayPublicOrderSuccess; }
324
+ get: function () { return chunkLZADKC4Y_cjs.razorpayPublicOrderSuccess; }
308
325
  });
309
326
  Object.defineProperty(exports, "stripeOrderFail", {
310
327
  enumerable: true,
311
- get: function () { return chunkDXQX7ZIL_cjs.stripeOrderFail; }
328
+ get: function () { return chunkLZADKC4Y_cjs.stripeOrderFail; }
312
329
  });
313
330
  Object.defineProperty(exports, "stripeOrderSuccess", {
314
331
  enumerable: true,
315
- get: function () { return chunkDXQX7ZIL_cjs.stripeOrderSuccess; }
332
+ get: function () { return chunkLZADKC4Y_cjs.stripeOrderSuccess; }
316
333
  });
317
334
  Object.defineProperty(exports, "stripePublicOrderSuccess", {
318
335
  enumerable: true,
319
- get: function () { return chunkDXQX7ZIL_cjs.stripePublicOrderSuccess; }
336
+ get: function () { return chunkLZADKC4Y_cjs.stripePublicOrderSuccess; }
320
337
  });
321
338
  Object.defineProperty(exports, "updateOrder", {
322
339
  enumerable: true,
323
- get: function () { return chunkDXQX7ZIL_cjs.updateOrder; }
340
+ get: function () { return chunkLZADKC4Y_cjs.updateOrder; }
324
341
  });
325
342
  Object.defineProperty(exports, "updateOrderCustomization", {
326
343
  enumerable: true,
327
- get: function () { return chunkDXQX7ZIL_cjs.updateOrderCustomization; }
344
+ get: function () { return chunkLZADKC4Y_cjs.updateOrderCustomization; }
328
345
  });
329
346
  Object.defineProperty(exports, "uploadCustomizationImage", {
330
347
  enumerable: true,
331
- get: function () { return chunkDXQX7ZIL_cjs.uploadCustomizationImage; }
348
+ get: function () { return chunkLZADKC4Y_cjs.uploadCustomizationImage; }
332
349
  });
333
350
  Object.defineProperty(exports, "verifyTabbyPayment", {
334
351
  enumerable: true,
335
- get: function () { return chunkDXQX7ZIL_cjs.verifyTabbyPayment; }
352
+ get: function () { return chunkLZADKC4Y_cjs.verifyTabbyPayment; }
336
353
  });
337
354
  Object.defineProperty(exports, "addAddress", {
338
355
  enumerable: true,
@@ -377,9 +394,12 @@ Object.defineProperty(exports, "setSessionExpiredCallback", {
377
394
  exports.addReview = addReview;
378
395
  exports.createBooking = createBooking;
379
396
  exports.getAffiliateRedirect = getAffiliateRedirect;
397
+ exports.getBlogPostBySlug = getBlogPostBySlug;
398
+ exports.getBlogPostsList = getBlogPostsList;
380
399
  exports.getCollection = getCollection;
381
400
  exports.getFilters = getFilters;
382
401
  exports.getLoginMethod = getLoginMethod;
402
+ exports.getMultipleBlogsBySlugs = getMultipleBlogsBySlugs;
383
403
  exports.getMultipleCollections = getMultipleCollections;
384
404
  exports.getNewToken = getNewToken;
385
405
  exports.getReviewSummary = getReviewSummary;
@@ -3,10 +3,10 @@ import { AxiosInstance, AxiosResponse } from 'axios';
3
3
  import { A as Address } from '../address-DwBZHzbI.cjs';
4
4
  import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-lJvJzaoH.cjs';
5
5
  import { d as Product, f as ProductDetail } from '../product-B8elBN21.cjs';
6
- import { O as Order } from '../orders-CGwKT5L-.cjs';
6
+ import { O as Order } from '../orders-1vcg6whk.cjs';
7
7
  import { W as Wishlist } from '../wishlist-BdpIFX5_.cjs';
8
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';
9
+ import { R as Review, A as Analytics, a as Booking, B as Blog } from '../blog-DDOl23BM.cjs';
10
10
  import 'react-toastify';
11
11
 
12
12
  /**
@@ -79,7 +79,11 @@ declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.R
79
79
  declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
80
80
  declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
81
81
  declare function getOrderDetailsByRefV2(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
82
+ /**
83
+ * @deprecated Use getPublicOrderDetailsByRef instead
84
+ */
82
85
  declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
86
+ declare function getPublicOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
83
87
  declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, shipping_option_id?: number, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
84
88
  interface PublicOrderDetails {
85
89
  email: string;
@@ -171,4 +175,13 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
171
175
  results: Booking[];
172
176
  }>>;
173
177
 
174
- export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, 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 };
178
+ declare function getBlogPostsList(filter: any): Promise<AxiosResponse<{
179
+ results: Blog.Post[];
180
+ links: any;
181
+ }>>;
182
+ declare function getBlogPostBySlug(slug: string): Promise<AxiosResponse<Blog.Post>>;
183
+ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
184
+ results: Blog.Post[];
185
+ }>>;
186
+
187
+ export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getBlogPostBySlug, getBlogPostsList, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleBlogsBySlugs, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, 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 };
@@ -3,10 +3,10 @@ import { AxiosInstance, AxiosResponse } from 'axios';
3
3
  import { A as Address } from '../address-DwBZHzbI.js';
4
4
  import { U as User, C as Cart, d as CouponResponse, c as Coupon, b as Category } from '../cart-DV1HcSC6.js';
5
5
  import { d as Product, f as ProductDetail } from '../product-B8elBN21.js';
6
- import { O as Order } from '../orders-BhmpycYJ.js';
6
+ import { O as Order } from '../orders-CGhcSTMg.js';
7
7
  import { W as Wishlist } from '../wishlist-B-bvvOxv.js';
8
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';
9
+ import { R as Review, A as Analytics, a as Booking, B as Blog } from '../blog-ICspYuDq.js';
10
10
  import 'react-toastify';
11
11
 
12
12
  /**
@@ -79,7 +79,11 @@ declare function getOrderDetails(orderId: number): Promise<AxiosResponse<Order.R
79
79
  declare function getOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
80
80
  declare function getOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
81
81
  declare function getOrderDetailsByRefV2(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
82
+ /**
83
+ * @deprecated Use getPublicOrderDetailsByRef instead
84
+ */
82
85
  declare function getPublicOrderDetailsByNumber(orderNumber: number): Promise<AxiosResponse<Order.OrderSummary>>;
86
+ declare function getPublicOrderDetailsByRef(orderRef: string): Promise<AxiosResponse<Order.OrderSummary>>;
83
87
  declare function placeOrder(address_id: number, redirect: string, isCod?: boolean, shipping_option_id?: number, stripeRedirect?: string, tabbyRedirect?: string): Promise<AxiosResponse<Order.OrderSummary>>;
84
88
  interface PublicOrderDetails {
85
89
  email: string;
@@ -171,4 +175,13 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
171
175
  results: Booking[];
172
176
  }>>;
173
177
 
174
- export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, 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 };
178
+ declare function getBlogPostsList(filter: any): Promise<AxiosResponse<{
179
+ results: Blog.Post[];
180
+ links: any;
181
+ }>>;
182
+ declare function getBlogPostBySlug(slug: string): Promise<AxiosResponse<Blog.Post>>;
183
+ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
184
+ results: Blog.Post[];
185
+ }>>;
186
+
187
+ export { type BookingFilter, type OTPCredentials, type VerifyOTPCredentials, addAddress, addReview, addToCart, addWishlist, applyCoupon, checkPhonepePaymentStatus, createBooking, deleteAddress, getAddresses, getAffiliateRedirect, getAppliedCoupon, getBlogPostBySlug, getBlogPostsList, getCart, getCartItemQuantity, getCategories, getCollection, getCountries, getCoupons, getDigitalProductDownloadLink, getFilters, getHttpService, getLoginMethod, getMultipleBlogsBySlugs, getMultipleCollections, getNewToken, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getProductCategories, getProductDetail, getProductDetailBySlug, getProductList, getProducts, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, 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, 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
- 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';
5
+ export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment } from '../chunk-ME6Z7TZW.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';
@@ -137,4 +137,17 @@ async function getUserBookings(filter) {
137
137
  });
138
138
  }
139
139
 
140
- export { addReview, createBooking, getAffiliateRedirect, getCollection, getFilters, getLoginMethod, getMultipleCollections, getNewToken, getReviewSummary, getReviews, getServerHttpService, getUserBookings, postAnalytics, sendOTP, server_http_service_default as serverHttpService, uploadReviewImages, verifyOTP };
140
+ // src/api/blog.ts
141
+ async function getBlogPostsList(filter) {
142
+ return await http_service_default.get("/blogs/public/posts/", { params: filter });
143
+ }
144
+ async function getBlogPostBySlug(slug) {
145
+ return await http_service_default.get(`/blogs/public/posts/${slug}/`);
146
+ }
147
+ async function getMultipleBlogsBySlugs(slugs) {
148
+ return await http_service_default.get(`/blogs/public/posts/multiple/`, {
149
+ params: { slugs }
150
+ });
151
+ }
152
+
153
+ export { addReview, createBooking, getAffiliateRedirect, getBlogPostBySlug, getBlogPostsList, getCollection, getFilters, getLoginMethod, getMultipleBlogsBySlugs, getMultipleCollections, getNewToken, getReviewSummary, getReviews, getServerHttpService, getUserBookings, postAnalytics, sendOTP, server_http_service_default as serverHttpService, uploadReviewImages, verifyOTP };
@@ -89,4 +89,31 @@ interface Booking {
89
89
  service_details: ProductDetail.Root;
90
90
  }
91
91
 
92
- export { Analytics as A, type Booking as B, Review as R, type BookingDetails as a };
92
+ declare namespace Blog {
93
+ interface Post {
94
+ id: number;
95
+ title: string;
96
+ slug: string;
97
+ content: string;
98
+ og_image?: string;
99
+ category?: string;
100
+ category_detail?: {
101
+ id: number;
102
+ name: string;
103
+ slug: string;
104
+ };
105
+ meta_title?: string;
106
+ meta_description?: string;
107
+ date?: string;
108
+ created_at: string;
109
+ updated_at: string;
110
+ status: "draft" | "published" | "scheduled";
111
+ author: {
112
+ name: string;
113
+ };
114
+ store_name: string;
115
+ store_logo: string;
116
+ }
117
+ }
118
+
119
+ export { Analytics as A, Blog as B, Review as R, type Booking as a, type BookingDetails as b };
@@ -89,4 +89,31 @@ interface Booking {
89
89
  service_details: ProductDetail.Root;
90
90
  }
91
91
 
92
- export { Analytics as A, type Booking as B, Review as R, type BookingDetails as a };
92
+ declare namespace Blog {
93
+ interface Post {
94
+ id: number;
95
+ title: string;
96
+ slug: string;
97
+ content: string;
98
+ og_image?: string;
99
+ category?: string;
100
+ category_detail?: {
101
+ id: number;
102
+ name: string;
103
+ slug: string;
104
+ };
105
+ meta_title?: string;
106
+ meta_description?: string;
107
+ date?: string;
108
+ created_at: string;
109
+ updated_at: string;
110
+ status: "draft" | "published" | "scheduled";
111
+ author: {
112
+ name: string;
113
+ };
114
+ store_name: string;
115
+ store_logo: string;
116
+ }
117
+ }
118
+
119
+ export { Analytics as A, Blog as B, Review as R, type Booking as a, type BookingDetails as b };
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkPZJT2Y5B_cjs = require('../chunk-PZJT2Y5B.cjs');
3
+ var chunkQSHOJ3NJ_cjs = require('../chunk-QSHOJ3NJ.cjs');
4
4
  require('../chunk-XFOUNOKO.cjs');
5
5
  var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
6
- var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
6
+ var chunkLZADKC4Y_cjs = require('../chunk-LZADKC4Y.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 chunkDXQX7ZIL_cjs.checkPhonepePaymentStatus(transactionId);
52
+ const response = await chunkLZADKC4Y_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
- chunkDXQX7ZIL_cjs.checkPhonepePaymentStatus(transactionId),
66
- chunkDXQX7ZIL_cjs.getOrderDetailsByNumber(orderNumber)
65
+ chunkLZADKC4Y_cjs.checkPhonepePaymentStatus(transactionId),
66
+ chunkLZADKC4Y_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 ? chunkDXQX7ZIL_cjs.getStripePaymentStatusPublic : chunkDXQX7ZIL_cjs.getStripePaymentStatus;
83
+ const getStatus = options?.isPublic ? chunkLZADKC4Y_cjs.getStripePaymentStatusPublic : chunkLZADKC4Y_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 chunkDXQX7ZIL_cjs.getOrderDetailsByNumber(orderNumber);
88
+ const orderResponse = await chunkLZADKC4Y_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 chunkDXQX7ZIL_cjs.verifyTabbyPayment(orderNumber);
106
+ const response = await chunkLZADKC4Y_cjs.verifyTabbyPayment(orderNumber);
107
107
  if (response.data.order_status === "paid" || response.data.order_status === "confirmed") {
108
108
  try {
109
- const orderResponse = await chunkDXQX7ZIL_cjs.getOrderDetailsByNumber(orderNumber);
109
+ const orderResponse = await chunkLZADKC4Y_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 chunkPZJT2Y5B_cjs.applyCheckoutCoupon; }
128
+ get: function () { return chunkQSHOJ3NJ_cjs.applyCheckoutCoupon; }
129
129
  });
130
130
  Object.defineProperty(exports, "fetchAppliedCoupon", {
131
131
  enumerable: true,
132
- get: function () { return chunkPZJT2Y5B_cjs.fetchAppliedCoupon; }
132
+ get: function () { return chunkQSHOJ3NJ_cjs.fetchAppliedCoupon; }
133
133
  });
134
134
  Object.defineProperty(exports, "fetchAvailableCoupons", {
135
135
  enumerable: true,
136
- get: function () { return chunkPZJT2Y5B_cjs.fetchAvailableCoupons; }
136
+ get: function () { return chunkQSHOJ3NJ_cjs.fetchAvailableCoupons; }
137
137
  });
138
138
  Object.defineProperty(exports, "handleCODPayment", {
139
139
  enumerable: true,
140
- get: function () { return chunkPZJT2Y5B_cjs.handleCODPayment; }
140
+ get: function () { return chunkQSHOJ3NJ_cjs.handleCODPayment; }
141
141
  });
142
142
  Object.defineProperty(exports, "handlePhonepePayment", {
143
143
  enumerable: true,
144
- get: function () { return chunkPZJT2Y5B_cjs.handlePhonepePayment; }
144
+ get: function () { return chunkQSHOJ3NJ_cjs.handlePhonepePayment; }
145
145
  });
146
146
  Object.defineProperty(exports, "handleRazorpayFail", {
147
147
  enumerable: true,
148
- get: function () { return chunkPZJT2Y5B_cjs.handleRazorpayFail; }
148
+ get: function () { return chunkQSHOJ3NJ_cjs.handleRazorpayFail; }
149
149
  });
150
150
  Object.defineProperty(exports, "handleRazorpaySuccess", {
151
151
  enumerable: true,
152
- get: function () { return chunkPZJT2Y5B_cjs.handleRazorpaySuccess; }
152
+ get: function () { return chunkQSHOJ3NJ_cjs.handleRazorpaySuccess; }
153
153
  });
154
154
  Object.defineProperty(exports, "handleStripePayment", {
155
155
  enumerable: true,
156
- get: function () { return chunkPZJT2Y5B_cjs.handleStripePayment; }
156
+ get: function () { return chunkQSHOJ3NJ_cjs.handleStripePayment; }
157
157
  });
158
158
  Object.defineProperty(exports, "handleStripeSuccess", {
159
159
  enumerable: true,
160
- get: function () { return chunkPZJT2Y5B_cjs.handleStripeSuccess; }
160
+ get: function () { return chunkQSHOJ3NJ_cjs.handleStripeSuccess; }
161
161
  });
162
162
  Object.defineProperty(exports, "handleTabbyPayment", {
163
163
  enumerable: true,
164
- get: function () { return chunkPZJT2Y5B_cjs.handleTabbyPayment; }
164
+ get: function () { return chunkQSHOJ3NJ_cjs.handleTabbyPayment; }
165
165
  });
166
166
  Object.defineProperty(exports, "openRazorpayCheckout", {
167
167
  enumerable: true,
168
- get: function () { return chunkPZJT2Y5B_cjs.openRazorpayCheckout; }
168
+ get: function () { return chunkQSHOJ3NJ_cjs.openRazorpayCheckout; }
169
169
  });
170
170
  Object.defineProperty(exports, "processPayment", {
171
171
  enumerable: true,
172
- get: function () { return chunkPZJT2Y5B_cjs.processPayment; }
172
+ get: function () { return chunkQSHOJ3NJ_cjs.processPayment; }
173
173
  });
174
174
  Object.defineProperty(exports, "removeCheckoutCoupon", {
175
175
  enumerable: true,
176
- get: function () { return chunkPZJT2Y5B_cjs.removeCheckoutCoupon; }
176
+ get: function () { return chunkQSHOJ3NJ_cjs.removeCheckoutCoupon; }
177
177
  });
178
178
  Object.defineProperty(exports, "IP_API_CACHE_KEY", {
179
179
  enumerable: true,
@@ -1,6 +1,6 @@
1
1
  import * as Yup from 'yup';
2
2
  import { C as Cart, c as Coupon } from '../cart-lJvJzaoH.cjs';
3
- import { O as Order } from '../orders-CGwKT5L-.cjs';
3
+ import { O as Order } from '../orders-1vcg6whk.cjs';
4
4
  import '../product-B8elBN21.cjs';
5
5
  import 'react-toastify';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as Yup from 'yup';
2
2
  import { C as Cart, c as Coupon } from '../cart-DV1HcSC6.js';
3
- import { O as Order } from '../orders-BhmpycYJ.js';
3
+ import { O as Order } from '../orders-CGhcSTMg.js';
4
4
  import '../product-B8elBN21.js';
5
5
  import 'react-toastify';
6
6
 
@@ -1,7 +1,7 @@
1
- export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-NXQIWB36.js';
1
+ export { applyCheckoutCoupon, fetchAppliedCoupon, fetchAvailableCoupons, handleCODPayment, handlePhonepePayment, handleRazorpayFail, handleRazorpaySuccess, handleStripePayment, handleStripeSuccess, handleTabbyPayment, openRazorpayCheckout, processPayment, removeCheckoutCoupon } from '../chunk-VYHAWRJR.js';
2
2
  import '../chunk-7M5CVYZJ.js';
3
3
  import { pixelEvents } from '../chunk-WFDKKOO7.js';
4
- import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-S3ZZ3ZA7.js';
4
+ import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-ME6Z7TZW.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,6 +1,6 @@
1
1
  import { updateCart, removeFromCart, addToCart, getCart, getCartItemQuantity } from './chunk-CUR7CHR5.js';
2
2
  import { cart_default } from './chunk-QAC72HKO.js';
3
- import { updateOrderCustomization } from './chunk-S3ZZ3ZA7.js';
3
+ import { updateOrderCustomization } from './chunk-ME6Z7TZW.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';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var chunkPARH5TBK_cjs = require('./chunk-PARH5TBK.cjs');
4
4
  var chunkSMHJRNCR_cjs = require('./chunk-SMHJRNCR.cjs');
5
- var chunkDXQX7ZIL_cjs = require('./chunk-DXQX7ZIL.cjs');
5
+ var chunkLZADKC4Y_cjs = require('./chunk-LZADKC4Y.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');
@@ -142,7 +142,7 @@ var useCartStore = zustand.create((set) => ({
142
142
  updateCustomization: async (customizationInputs) => {
143
143
  set({ status: "loading" /* LOADING */ });
144
144
  try {
145
- await chunkDXQX7ZIL_cjs.updateOrderCustomization({ customization_inputs: customizationInputs });
145
+ await chunkLZADKC4Y_cjs.updateOrderCustomization({ customization_inputs: customizationInputs });
146
146
  } catch {
147
147
  } finally {
148
148
  set({ status: "idle" /* IDLE */ });
@@ -32,6 +32,11 @@ async function getPublicOrderDetailsByNumber(orderNumber) {
32
32
  params: { order_number: orderNumber }
33
33
  });
34
34
  }
35
+ async function getPublicOrderDetailsByRef(orderRef) {
36
+ return chunkECHV2JSY_cjs.http_service_default.get("/customer/public_order/", {
37
+ params: { order_ref: orderRef }
38
+ });
39
+ }
35
40
  async function placeOrder(address_id, redirect, isCod, shipping_option_id, stripeRedirect, tabbyRedirect) {
36
41
  return chunkECHV2JSY_cjs.http_service_default.post("/customer/order/", {
37
42
  address_id,
@@ -126,6 +131,7 @@ exports.getOrderDetailsByRef = getOrderDetailsByRef;
126
131
  exports.getOrderDetailsByRefV2 = getOrderDetailsByRefV2;
127
132
  exports.getOrders = getOrders;
128
133
  exports.getPublicOrderDetailsByNumber = getPublicOrderDetailsByNumber;
134
+ exports.getPublicOrderDetailsByRef = getPublicOrderDetailsByRef;
129
135
  exports.getStripePaymentStatus = getStripePaymentStatus;
130
136
  exports.getStripePaymentStatusPublic = getStripePaymentStatusPublic;
131
137
  exports.makeCODOrder = makeCODOrder;
@@ -30,6 +30,11 @@ async function getPublicOrderDetailsByNumber(orderNumber) {
30
30
  params: { order_number: orderNumber }
31
31
  });
32
32
  }
33
+ async function getPublicOrderDetailsByRef(orderRef) {
34
+ return http_service_default.get("/customer/public_order/", {
35
+ params: { order_ref: orderRef }
36
+ });
37
+ }
33
38
  async function placeOrder(address_id, redirect, isCod, shipping_option_id, stripeRedirect, tabbyRedirect) {
34
39
  return http_service_default.post("/customer/order/", {
35
40
  address_id,
@@ -117,4 +122,4 @@ async function verifyTabbyPayment(orderNumber) {
117
122
  });
118
123
  }
119
124
 
120
- 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 };
125
+ export { checkPhonepePaymentStatus, getOrderDetails, getOrderDetailsByNumber, getOrderDetailsByRef, getOrderDetailsByRefV2, getOrders, getPublicOrderDetailsByNumber, getPublicOrderDetailsByRef, getStripePaymentStatus, getStripePaymentStatusPublic, makeCODOrder, phonepeOrderSuccess, phonepePublicOrderSuccess, placeOrder, publicMakeCODOrder, publicPlaceOrder, razorpayOrderFail, razorpayOrderSuccess, razorpayPublicOrderSuccess, stripeOrderFail, stripeOrderSuccess, stripePublicOrderSuccess, updateOrder, updateOrderCustomization, uploadCustomizationImage, verifyTabbyPayment };
@@ -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 chunkDXQX7ZIL_cjs = require('./chunk-DXQX7ZIL.cjs');
5
+ var chunkLZADKC4Y_cjs = require('./chunk-LZADKC4Y.cjs');
6
6
  var chunkN3CTXRFT_cjs = require('./chunk-N3CTXRFT.cjs');
7
7
  var axios = require('axios');
8
8
 
@@ -50,7 +50,7 @@ function openRazorpayCheckout(order, callbacks) {
50
50
  },
51
51
  prefill: {
52
52
  name: customer_name,
53
- email: customer_email,
53
+ email: customer_email?.endsWith("@test.com") ? void 0 : customer_email,
54
54
  phone: customer_phone
55
55
  },
56
56
  modal: {
@@ -69,7 +69,7 @@ function openRazorpayCheckout(order, callbacks) {
69
69
  async function handleRazorpaySuccess(data, order, callbacks) {
70
70
  try {
71
71
  callbacks.onPaymentStart?.();
72
- await chunkDXQX7ZIL_cjs.razorpayOrderSuccess(data);
72
+ await chunkLZADKC4Y_cjs.razorpayOrderSuccess(data);
73
73
  chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
74
74
  chunkK44JZ5NL_cjs.pixelEvents.checkoutCompleted(order);
75
75
  callbacks.onCartReset();
@@ -82,7 +82,7 @@ async function handleRazorpaySuccess(data, order, callbacks) {
82
82
  }
83
83
  async function handleRazorpayFail(order, callbacks, error) {
84
84
  try {
85
- await chunkDXQX7ZIL_cjs.razorpayOrderFail({
85
+ await chunkLZADKC4Y_cjs.razorpayOrderFail({
86
86
  order_id: order.id,
87
87
  razorpay_order_id: order.razorpay_order_id,
88
88
  error
@@ -115,9 +115,9 @@ async function handleCODPayment(order, callbacks, options) {
115
115
  callbacks.onPaymentStart?.();
116
116
  chunkK44JZ5NL_cjs.pixelEvents.initiateCheckout(order, "cod");
117
117
  if (options?.isPublic) {
118
- await chunkDXQX7ZIL_cjs.publicMakeCODOrder(order.order_number);
118
+ await chunkLZADKC4Y_cjs.publicMakeCODOrder(order.order_number);
119
119
  } else {
120
- await chunkDXQX7ZIL_cjs.makeCODOrder(order.id);
120
+ await chunkLZADKC4Y_cjs.makeCODOrder(order.id);
121
121
  }
122
122
  chunkK44JZ5NL_cjs.pixelEvents.purchase(order);
123
123
  chunkK44JZ5NL_cjs.pixelEvents.checkoutCompleted(order);
@@ -145,7 +145,7 @@ function handleStripePayment(order, callbacks) {
145
145
  async function handleStripeSuccess(order, paymentIntentId, callbacks) {
146
146
  try {
147
147
  callbacks.onPaymentStart?.();
148
- await chunkDXQX7ZIL_cjs.stripeOrderSuccess({
148
+ await chunkLZADKC4Y_cjs.stripeOrderSuccess({
149
149
  order_id: order.id,
150
150
  payment_intent_id: paymentIntentId
151
151
  });
@@ -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-S3ZZ3ZA7.js';
3
+ import { razorpayOrderSuccess, razorpayOrderFail, publicMakeCODOrder, makeCODOrder, stripeOrderSuccess } from './chunk-ME6Z7TZW.js';
4
4
  import { getCloudFront } from './chunk-JQMLHRWL.js';
5
5
  import { AxiosError } from 'axios';
6
6
 
@@ -48,7 +48,7 @@ function openRazorpayCheckout(order, callbacks) {
48
48
  },
49
49
  prefill: {
50
50
  name: customer_name,
51
- email: customer_email,
51
+ email: customer_email?.endsWith("@test.com") ? void 0 : customer_email,
52
52
  phone: customer_phone
53
53
  },
54
54
  modal: {
@@ -1,4 +1,4 @@
1
- import { O as Order } from '../orders-CGwKT5L-.cjs';
1
+ import { O as Order } from '../orders-1vcg6whk.cjs';
2
2
  import { f as ProductDetail } from '../product-B8elBN21.cjs';
3
3
  import 'react-toastify';
4
4
 
@@ -1,4 +1,4 @@
1
- import { O as Order } from '../orders-BhmpycYJ.js';
1
+ import { O as Order } from '../orders-CGhcSTMg.js';
2
2
  import { f as ProductDetail } from '../product-B8elBN21.js';
3
3
  import 'react-toastify';
4
4
 
@@ -11,7 +11,7 @@ import '../address-DwBZHzbI.cjs';
11
11
  import '../product-B8elBN21.cjs';
12
12
  import 'react-toastify';
13
13
  import 'react/jsx-runtime';
14
- import '../orders-CGwKT5L-.cjs';
15
- import '../pixelEvents-Do1wT3z_.cjs';
14
+ import '../orders-1vcg6whk.cjs';
15
+ import '../pixelEvents-Bob6N-g5.cjs';
16
16
  import '../cart-lJvJzaoH.cjs';
17
17
  import '../collections-fGX_D_Mi.cjs';
@@ -11,7 +11,7 @@ import '../address-DwBZHzbI.js';
11
11
  import '../product-B8elBN21.js';
12
12
  import 'react-toastify';
13
13
  import 'react/jsx-runtime';
14
- import '../orders-BhmpycYJ.js';
15
- import '../pixelEvents-CA14Tvrs.js';
14
+ import '../orders-CGhcSTMg.js';
15
+ import '../pixelEvents-BEzVCIBj.js';
16
16
  import '../cart-DV1HcSC6.js';
17
17
  import '../collections-kERS_kZw.js';
@@ -1,9 +1,9 @@
1
- import { P as PageHeaderProps } from '../pixelEvents-Do1wT3z_.cjs';
1
+ import { P as PageHeaderProps } from '../pixelEvents-Bob6N-g5.cjs';
2
2
  import '../cart-lJvJzaoH.cjs';
3
3
  import '../product-B8elBN21.cjs';
4
4
  import 'react-toastify';
5
5
  import '../collections-fGX_D_Mi.cjs';
6
- import '../orders-CGwKT5L-.cjs';
6
+ import '../orders-1vcg6whk.cjs';
7
7
 
8
8
  declare function ThemeDataInitializer({ themeData, }: {
9
9
  themeData: PageHeaderProps;
@@ -1,9 +1,9 @@
1
- import { P as PageHeaderProps } from '../pixelEvents-CA14Tvrs.js';
1
+ import { P as PageHeaderProps } from '../pixelEvents-BEzVCIBj.js';
2
2
  import '../cart-DV1HcSC6.js';
3
3
  import '../product-B8elBN21.js';
4
4
  import 'react-toastify';
5
5
  import '../collections-kERS_kZw.js';
6
- import '../orders-BhmpycYJ.js';
6
+ import '../orders-CGhcSTMg.js';
7
7
 
8
8
  declare function ThemeDataInitializer({ themeData, }: {
9
9
  themeData: PageHeaderProps;
@@ -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 chunkFU46MZTI_cjs = require('../chunk-FU46MZTI.cjs');
5
+ var chunkDY7PNIB3_cjs = require('../chunk-DY7PNIB3.cjs');
6
6
  var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
7
7
  var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
8
- var chunkPZJT2Y5B_cjs = require('../chunk-PZJT2Y5B.cjs');
8
+ var chunkQSHOJ3NJ_cjs = require('../chunk-QSHOJ3NJ.cjs');
9
9
  var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
10
10
  require('../chunk-K44JZ5NL.cjs');
11
- var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
11
+ var chunkLZADKC4Y_cjs = require('../chunk-LZADKC4Y.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 chunkDXQX7ZIL_cjs.getOrders(url);
93
+ const result = await chunkLZADKC4Y_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 = chunkFU46MZTI_cjs.useCartStore((s) => s.resetCartCount);
324
+ const resetCartCount = chunkDY7PNIB3_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 chunkDXQX7ZIL_cjs.placeOrder(
347
+ const response = await chunkLZADKC4Y_cjs.placeOrder(
348
348
  addressId,
349
349
  options.phonepeRedirectUrl,
350
350
  isCod,
@@ -354,7 +354,7 @@ function useCheckoutPayment(options) {
354
354
  );
355
355
  const order = response.data;
356
356
  setOrderSummary(order);
357
- chunkPZJT2Y5B_cjs.processPayment(order, paymentMethod, callbacks);
357
+ chunkQSHOJ3NJ_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 chunkPZJT2Y5B_cjs.fetchAvailableCoupons();
387
+ const coupons = await chunkQSHOJ3NJ_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 chunkPZJT2Y5B_cjs.applyCheckoutCoupon(code, callbacks);
399
+ const coupon = await chunkQSHOJ3NJ_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 chunkPZJT2Y5B_cjs.removeCheckoutCoupon(appliedCoupon.coupon_code, callbacks);
412
+ await chunkQSHOJ3NJ_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 } = chunkFU46MZTI_cjs.useCartStore();
512
- const isUserAuthenticated = chunkFU46MZTI_cjs.useAuthStore((s) => s.isAuthenticated);
511
+ const { addToCart, setCart } = chunkDY7PNIB3_cjs.useCartStore();
512
+ const isUserAuthenticated = chunkDY7PNIB3_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);
@@ -1,7 +1,7 @@
1
1
  import { A as Address } from '../address-DwBZHzbI.cjs';
2
2
  import * as React from 'react';
3
3
  import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-lJvJzaoH.cjs';
4
- import { O as Order } from '../orders-CGwKT5L-.cjs';
4
+ import { O as Order } from '../orders-1vcg6whk.cjs';
5
5
  import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-B8elBN21.cjs';
6
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';
@@ -1,7 +1,7 @@
1
1
  import { A as Address } from '../address-DwBZHzbI.js';
2
2
  import * as React from 'react';
3
3
  import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-DV1HcSC6.js';
4
- import { O as Order } from '../orders-BhmpycYJ.js';
4
+ import { O as Order } from '../orders-CGhcSTMg.js';
5
5
  import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-B8elBN21.js';
6
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';
@@ -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-P252YNRA.js';
3
+ import { useCartStore, useAuthStore } from '../chunk-6NFWEJSD.js';
4
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-NXQIWB36.js';
6
+ import { processPayment, fetchAvailableCoupons, applyCheckoutCoupon, removeCheckoutCoupon } from '../chunk-VYHAWRJR.js';
7
7
  import { applyCoupon, removeCoupon, getCoupons, getAppliedCoupon } from '../chunk-7M5CVYZJ.js';
8
8
  import '../chunk-WFDKKOO7.js';
9
- import { getOrders, placeOrder } from '../chunk-S3ZZ3ZA7.js';
9
+ import { getOrders, placeOrder } from '../chunk-ME6Z7TZW.js';
10
10
  export { useAddressForm } from '../chunk-6Q7QMPOQ.js';
11
11
  import { getAddresses } from '../chunk-ZGMLOLTC.js';
12
12
  import '../chunk-OSM73ETC.js';
@@ -1,8 +1,8 @@
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-Bpj3o6Av.cjs';
2
+ export { A as Analytics, B as Blog, a as Booking, b as BookingDetails, R as Review } from '../blog-DDOl23BM.cjs';
3
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
4
  export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-fGX_D_Mi.cjs';
5
- export { O as Order } from '../orders-CGwKT5L-.cjs';
5
+ export { O as Order } from '../orders-1vcg6whk.cjs';
6
6
  export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.cjs';
7
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
8
  export { W as Wishlist } from '../wishlist-BdpIFX5_.cjs';
@@ -1,8 +1,8 @@
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-cbb8kh2L.js';
2
+ export { A as Analytics, B as Blog, a as Booking, b as BookingDetails, R as Review } from '../blog-ICspYuDq.js';
3
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
4
  export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-kERS_kZw.js';
5
- export { O as Order } from '../orders-BhmpycYJ.js';
5
+ export { O as Order } from '../orders-CGhcSTMg.js';
6
6
  export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.js';
7
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
8
  export { W as Wishlist } from '../wishlist-B-bvvOxv.js';
@@ -61,7 +61,7 @@ declare namespace Order {
61
61
  name: string;
62
62
  phone: string;
63
63
  }
64
- type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid";
64
+ type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid" | "payment_pending" | "refunded";
65
65
  interface OrderSummary {
66
66
  id: number;
67
67
  store: number;
@@ -61,7 +61,7 @@ declare namespace Order {
61
61
  name: string;
62
62
  phone: string;
63
63
  }
64
- type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid";
64
+ type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid" | "payment_pending" | "refunded";
65
65
  interface OrderSummary {
66
66
  id: number;
67
67
  store: number;
@@ -1,6 +1,6 @@
1
1
  import { b as Category$1, C as Cart } from './cart-DV1HcSC6.js';
2
2
  import { C as CollectionResponse } from './collections-kERS_kZw.js';
3
- import { O as Order } from './orders-BhmpycYJ.js';
3
+ import { O as Order } from './orders-CGhcSTMg.js';
4
4
  import { f as ProductDetail, d as Product } from './product-B8elBN21.js';
5
5
 
6
6
  interface PageProps {
@@ -308,14 +308,21 @@ interface ValueHighlights {
308
308
  social: null | string;
309
309
  }[];
310
310
  }
311
- type SectionType = "product-collection" | "categories" | "banner" | "sub-categories" | "pre-footer" | "category-highlights" | "store-review" | "product-highlight" | "image-with-text" | "collections" | "value-highlights";
312
- type Section = ProductCollection | Category | Banner | PreFooter | StoreReview | CategoryHighlights | SubCategorySection | ProductHighlight | ImageWithText | Collections | ValueHighlights;
311
+ interface Blogs {
312
+ type: "blogs";
313
+ id: string;
314
+ title: string;
315
+ slugs: string[];
316
+ }
317
+ type SectionType = "product-collection" | "categories" | "banner" | "sub-categories" | "pre-footer" | "category-highlights" | "store-review" | "product-highlight" | "image-with-text" | "collections" | "value-highlights" | "blogs";
318
+ type Section = ProductCollection | Category | Banner | PreFooter | StoreReview | CategoryHighlights | SubCategorySection | ProductHighlight | ImageWithText | Collections | ValueHighlights | Blogs;
313
319
  interface Footer {
314
320
  showSocialLinks: boolean;
315
321
  showContactDetails: boolean;
316
322
  showNameWithLogo: boolean;
317
323
  showWhatsappBubble: boolean;
318
324
  showMadeWithStorepecker: boolean;
325
+ showBlogLink: boolean;
319
326
  }
320
327
  interface SocialLinks {
321
328
  }
@@ -368,4 +375,4 @@ declare const pixelEvents: {
368
375
  pageViewed: () => void;
369
376
  };
370
377
 
371
- export { type AvailableFilter as A, type Banner as B, type Category as C, pixelEvents as D, type preFooterContent as E, type FilterOption as F, type HeaderCategory as H, type ImageWithText as I, type LocationData as L, type Menuitem as M, type NavBar as N, type PageHeaderProps as P, type RibbonBar as R, type SectionFilters as S, type TemplateTheme as T, type ValueHighlights as V, type CategoryHighlights as a, type Collections as b, type ColorScheme as c, type FilterType as d, type Footer as e, type Hero as f, type HomePageContents as g, type Logo as h, type NavElement as i, type NavElementOld as j, type PageMeta as k, type PageProps as l, type PagePropsFull as m, type PreFooter as n, type ProductCollection as o, type ProductHighlight as p, type RibbonMessage as q, type Section as r, type SectionType as s, type SliderSettings as t, type SocialLinks as u, type SocialMedia as v, type StoreReview as w, type SubCategory as x, type SubCategorySection as y, type Theme as z };
378
+ export { type AvailableFilter as A, type Banner as B, type Category as C, type Theme as D, pixelEvents as E, type FilterOption as F, type preFooterContent as G, type HeaderCategory as H, type ImageWithText as I, type LocationData as L, type Menuitem as M, type NavBar as N, type PageHeaderProps as P, type RibbonBar as R, type SectionFilters as S, type TemplateTheme as T, type ValueHighlights as V, type Blogs as a, type CategoryHighlights as b, type Collections as c, type ColorScheme as d, type FilterType as e, type Footer as f, type Hero as g, type HomePageContents as h, type Logo as i, type NavElement as j, type NavElementOld as k, type PageMeta as l, type PageProps as m, type PagePropsFull as n, type PreFooter as o, type ProductCollection as p, type ProductHighlight as q, type RibbonMessage as r, type Section as s, type SectionType as t, type SliderSettings as u, type SocialLinks as v, type SocialMedia as w, type StoreReview as x, type SubCategory as y, type SubCategorySection as z };
@@ -1,6 +1,6 @@
1
1
  import { b as Category$1, C as Cart } from './cart-lJvJzaoH.cjs';
2
2
  import { C as CollectionResponse } from './collections-fGX_D_Mi.cjs';
3
- import { O as Order } from './orders-CGwKT5L-.cjs';
3
+ import { O as Order } from './orders-1vcg6whk.cjs';
4
4
  import { f as ProductDetail, d as Product } from './product-B8elBN21.cjs';
5
5
 
6
6
  interface PageProps {
@@ -308,14 +308,21 @@ interface ValueHighlights {
308
308
  social: null | string;
309
309
  }[];
310
310
  }
311
- type SectionType = "product-collection" | "categories" | "banner" | "sub-categories" | "pre-footer" | "category-highlights" | "store-review" | "product-highlight" | "image-with-text" | "collections" | "value-highlights";
312
- type Section = ProductCollection | Category | Banner | PreFooter | StoreReview | CategoryHighlights | SubCategorySection | ProductHighlight | ImageWithText | Collections | ValueHighlights;
311
+ interface Blogs {
312
+ type: "blogs";
313
+ id: string;
314
+ title: string;
315
+ slugs: string[];
316
+ }
317
+ type SectionType = "product-collection" | "categories" | "banner" | "sub-categories" | "pre-footer" | "category-highlights" | "store-review" | "product-highlight" | "image-with-text" | "collections" | "value-highlights" | "blogs";
318
+ type Section = ProductCollection | Category | Banner | PreFooter | StoreReview | CategoryHighlights | SubCategorySection | ProductHighlight | ImageWithText | Collections | ValueHighlights | Blogs;
313
319
  interface Footer {
314
320
  showSocialLinks: boolean;
315
321
  showContactDetails: boolean;
316
322
  showNameWithLogo: boolean;
317
323
  showWhatsappBubble: boolean;
318
324
  showMadeWithStorepecker: boolean;
325
+ showBlogLink: boolean;
319
326
  }
320
327
  interface SocialLinks {
321
328
  }
@@ -368,4 +375,4 @@ declare const pixelEvents: {
368
375
  pageViewed: () => void;
369
376
  };
370
377
 
371
- export { type AvailableFilter as A, type Banner as B, type Category as C, pixelEvents as D, type preFooterContent as E, type FilterOption as F, type HeaderCategory as H, type ImageWithText as I, type LocationData as L, type Menuitem as M, type NavBar as N, type PageHeaderProps as P, type RibbonBar as R, type SectionFilters as S, type TemplateTheme as T, type ValueHighlights as V, type CategoryHighlights as a, type Collections as b, type ColorScheme as c, type FilterType as d, type Footer as e, type Hero as f, type HomePageContents as g, type Logo as h, type NavElement as i, type NavElementOld as j, type PageMeta as k, type PageProps as l, type PagePropsFull as m, type PreFooter as n, type ProductCollection as o, type ProductHighlight as p, type RibbonMessage as q, type Section as r, type SectionType as s, type SliderSettings as t, type SocialLinks as u, type SocialMedia as v, type StoreReview as w, type SubCategory as x, type SubCategorySection as y, type Theme as z };
378
+ export { type AvailableFilter as A, type Banner as B, type Category as C, type Theme as D, pixelEvents as E, type FilterOption as F, type preFooterContent as G, type HeaderCategory as H, type ImageWithText as I, type LocationData as L, type Menuitem as M, type NavBar as N, type PageHeaderProps as P, type RibbonBar as R, type SectionFilters as S, type TemplateTheme as T, type ValueHighlights as V, type Blogs as a, type CategoryHighlights as b, type Collections as c, type ColorScheme as d, type FilterType as e, type Footer as f, type Hero as g, type HomePageContents as h, type Logo as i, type NavElement as j, type NavElementOld as k, type PageMeta as l, type PageProps as m, type PagePropsFull as n, type PreFooter as o, type ProductCollection as p, type ProductHighlight as q, type RibbonMessage as r, type Section as s, type SectionType as t, type SliderSettings as u, type SocialLinks as v, type SocialMedia as w, type StoreReview as x, type SubCategory as y, type SubCategorySection as z };
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkFU46MZTI_cjs = require('../chunk-FU46MZTI.cjs');
3
+ var chunkDY7PNIB3_cjs = require('../chunk-DY7PNIB3.cjs');
4
4
  var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
5
5
  require('../chunk-SMHJRNCR.cjs');
6
- require('../chunk-DXQX7ZIL.cjs');
6
+ require('../chunk-LZADKC4Y.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 chunkFU46MZTI_cjs.loginUser; }
72
+ get: function () { return chunkDY7PNIB3_cjs.loginUser; }
73
73
  });
74
74
  Object.defineProperty(exports, "useAuthStore", {
75
75
  enumerable: true,
76
- get: function () { return chunkFU46MZTI_cjs.useAuthStore; }
76
+ get: function () { return chunkDY7PNIB3_cjs.useAuthStore; }
77
77
  });
78
78
  Object.defineProperty(exports, "useCartStore", {
79
79
  enumerable: true,
80
- get: function () { return chunkFU46MZTI_cjs.useCartStore; }
80
+ get: function () { return chunkDY7PNIB3_cjs.useCartStore; }
81
81
  });
82
82
  Object.defineProperty(exports, "useThemeData", {
83
83
  enumerable: true,
@@ -2,10 +2,10 @@ import * as zustand from 'zustand';
2
2
  import { a as CartState, C as Cart, U as User } from '../cart-lJvJzaoH.cjs';
3
3
  import { W as Wishlist } from '../wishlist-BdpIFX5_.cjs';
4
4
  import { d as Product } from '../product-B8elBN21.cjs';
5
- import { P as PageHeaderProps } from '../pixelEvents-Do1wT3z_.cjs';
5
+ import { P as PageHeaderProps } from '../pixelEvents-Bob6N-g5.cjs';
6
6
  import 'react-toastify';
7
7
  import '../collections-fGX_D_Mi.cjs';
8
- import '../orders-CGwKT5L-.cjs';
8
+ import '../orders-1vcg6whk.cjs';
9
9
 
10
10
  interface CartStore extends CartState {
11
11
  setCart: (cart: Cart.Root) => void;
@@ -2,10 +2,10 @@ import * as zustand from 'zustand';
2
2
  import { a as CartState, C as Cart, U as User } from '../cart-DV1HcSC6.js';
3
3
  import { W as Wishlist } from '../wishlist-B-bvvOxv.js';
4
4
  import { d as Product } from '../product-B8elBN21.js';
5
- import { P as PageHeaderProps } from '../pixelEvents-CA14Tvrs.js';
5
+ import { P as PageHeaderProps } from '../pixelEvents-BEzVCIBj.js';
6
6
  import 'react-toastify';
7
7
  import '../collections-kERS_kZw.js';
8
- import '../orders-BhmpycYJ.js';
8
+ import '../orders-CGhcSTMg.js';
9
9
 
10
10
  interface CartStore extends CartState {
11
11
  setCart: (cart: Cart.Root) => void;
@@ -1,7 +1,7 @@
1
- export { loginUser, useAuthStore, useCartStore } from '../chunk-P252YNRA.js';
1
+ export { loginUser, useAuthStore, useCartStore } from '../chunk-6NFWEJSD.js';
2
2
  import { getWishlist, getProducts } from '../chunk-CUR7CHR5.js';
3
3
  import '../chunk-QAC72HKO.js';
4
- import '../chunk-S3ZZ3ZA7.js';
4
+ import '../chunk-ME6Z7TZW.js';
5
5
  export { useThemeData } from '../chunk-5NUDTIQ2.js';
6
6
  import '../chunk-3SYYP3XV.js';
7
7
  import '../chunk-WEMNXIRS.js';
@@ -2,13 +2,13 @@ import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes
2
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
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-Do1wT3z_.cjs';
6
- export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-Do1wT3z_.cjs';
5
+ import { S as SectionFilters } from '../pixelEvents-Bob6N-g5.cjs';
6
+ export { A as AvailableFilter, B as Banner, a as Blogs, C as Category, b as CategoryHighlights, c as Collections, d as ColorScheme, F as FilterOption, e as FilterType, f as Footer, H as HeaderCategory, g as Hero, h as HomePageContents, I as ImageWithText, L as LocationData, i as Logo, M as Menuitem, N as NavBar, j as NavElement, k as NavElementOld, P as PageHeaderProps, l as PageMeta, m as PageProps, n as PagePropsFull, o as PreFooter, p as ProductCollection, q as ProductHighlight, R as RibbonBar, r as RibbonMessage, s as Section, t as SectionType, u as SliderSettings, v as SocialLinks, w as SocialMedia, x as StoreReview, y as SubCategory, z as SubCategorySection, T as TemplateTheme, D as Theme, V as ValueHighlights, E as pixelEvents, G as preFooterContent } from '../pixelEvents-Bob6N-g5.cjs';
7
7
  import { AxiosResponse } from 'axios';
8
8
  import { a as PhonePe } from '../phonepe-dWMLZel6.cjs';
9
9
  import 'react-toastify';
10
10
  import '../collections-fGX_D_Mi.cjs';
11
- import '../orders-CGwKT5L-.cjs';
11
+ import '../orders-1vcg6whk.cjs';
12
12
 
13
13
  declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
14
14
  declare const Auth: {
@@ -2,13 +2,13 @@ import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes
2
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
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-CA14Tvrs.js';
6
- export { A as AvailableFilter, B as Banner, C as Category, a as CategoryHighlights, b as Collections, c as ColorScheme, F as FilterOption, d as FilterType, e as Footer, H as HeaderCategory, f as Hero, g as HomePageContents, I as ImageWithText, L as LocationData, h as Logo, M as Menuitem, N as NavBar, i as NavElement, j as NavElementOld, P as PageHeaderProps, k as PageMeta, l as PageProps, m as PagePropsFull, n as PreFooter, o as ProductCollection, p as ProductHighlight, R as RibbonBar, q as RibbonMessage, r as Section, s as SectionType, t as SliderSettings, u as SocialLinks, v as SocialMedia, w as StoreReview, x as SubCategory, y as SubCategorySection, T as TemplateTheme, z as Theme, V as ValueHighlights, D as pixelEvents, E as preFooterContent } from '../pixelEvents-CA14Tvrs.js';
5
+ import { S as SectionFilters } from '../pixelEvents-BEzVCIBj.js';
6
+ export { A as AvailableFilter, B as Banner, a as Blogs, C as Category, b as CategoryHighlights, c as Collections, d as ColorScheme, F as FilterOption, e as FilterType, f as Footer, H as HeaderCategory, g as Hero, h as HomePageContents, I as ImageWithText, L as LocationData, i as Logo, M as Menuitem, N as NavBar, j as NavElement, k as NavElementOld, P as PageHeaderProps, l as PageMeta, m as PageProps, n as PagePropsFull, o as PreFooter, p as ProductCollection, q as ProductHighlight, R as RibbonBar, r as RibbonMessage, s as Section, t as SectionType, u as SliderSettings, v as SocialLinks, w as SocialMedia, x as StoreReview, y as SubCategory, z as SubCategorySection, T as TemplateTheme, D as Theme, V as ValueHighlights, E as pixelEvents, G as preFooterContent } from '../pixelEvents-BEzVCIBj.js';
7
7
  import { AxiosResponse } from 'axios';
8
8
  import { a as PhonePe } from '../phonepe-dWMLZel6.js';
9
9
  import 'react-toastify';
10
10
  import '../collections-kERS_kZw.js';
11
- import '../orders-BhmpycYJ.js';
11
+ import '../orders-CGhcSTMg.js';
12
12
 
13
13
  declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
14
14
  declare const Auth: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storepecker/storefront-core",
3
- "version": "2.5.3",
3
+ "version": "2.6.1",
4
4
  "description": "Shared logic and utilities for Snapstore themes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",