@storepecker/storefront-core 2.5.3 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/api/index.cjs +16 -0
  2. package/dist/api/index.d.cts +12 -3
  3. package/dist/api/index.d.ts +12 -3
  4. package/dist/api/index.js +14 -1
  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 +14 -14
  8. package/dist/checkout/index.d.cts +1 -1
  9. package/dist/checkout/index.d.ts +1 -1
  10. package/dist/checkout/index.js +1 -1
  11. package/dist/{chunk-NXQIWB36.js → chunk-CEVCKVNX.js} +1 -1
  12. package/dist/{chunk-PZJT2Y5B.cjs → chunk-F7CI6FHE.cjs} +1 -1
  13. package/dist/components/digital-product-download-modal.d.cts +1 -1
  14. package/dist/components/digital-product-download-modal.d.ts +1 -1
  15. package/dist/components/index.d.cts +2 -2
  16. package/dist/components/index.d.ts +2 -2
  17. package/dist/components/theme-data-initializer.d.cts +2 -2
  18. package/dist/components/theme-data-initializer.d.ts +2 -2
  19. package/dist/hooks/index.cjs +5 -5
  20. package/dist/hooks/index.d.cts +1 -1
  21. package/dist/hooks/index.d.ts +1 -1
  22. package/dist/hooks/index.js +1 -1
  23. package/dist/models/index.d.cts +2 -2
  24. package/dist/models/index.d.ts +2 -2
  25. package/dist/{orders-CGwKT5L-.d.cts → orders-1vcg6whk.d.cts} +1 -1
  26. package/dist/{orders-BhmpycYJ.d.ts → orders-CGhcSTMg.d.ts} +1 -1
  27. package/dist/{pixelEvents-Do1wT3z_.d.cts → pixelEvents-BbTa1-8B.d.cts} +1 -1
  28. package/dist/{pixelEvents-CA14Tvrs.d.ts → pixelEvents-D8iynEYj.d.ts} +1 -1
  29. package/dist/store/index.d.cts +2 -2
  30. package/dist/store/index.d.ts +2 -2
  31. package/dist/utils/index.d.cts +3 -3
  32. package/dist/utils/index.d.ts +3 -3
  33. package/package.json +1 -1
@@ -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; }
@@ -377,9 +390,12 @@ Object.defineProperty(exports, "setSessionExpiredCallback", {
377
390
  exports.addReview = addReview;
378
391
  exports.createBooking = createBooking;
379
392
  exports.getAffiliateRedirect = getAffiliateRedirect;
393
+ exports.getBlogPostBySlug = getBlogPostBySlug;
394
+ exports.getBlogPostsList = getBlogPostsList;
380
395
  exports.getCollection = getCollection;
381
396
  exports.getFilters = getFilters;
382
397
  exports.getLoginMethod = getLoginMethod;
398
+ exports.getMultipleBlogsBySlugs = getMultipleBlogsBySlugs;
383
399
  exports.getMultipleCollections = getMultipleCollections;
384
400
  exports.getNewToken = getNewToken;
385
401
  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
  /**
@@ -171,4 +171,13 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
171
171
  results: Booking[];
172
172
  }>>;
173
173
 
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 };
174
+ declare function getBlogPostsList(filter: any): Promise<AxiosResponse<{
175
+ results: Blog.Post[];
176
+ links: any;
177
+ }>>;
178
+ declare function getBlogPostBySlug(slug: string): Promise<AxiosResponse<Blog.Post>>;
179
+ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
180
+ results: Blog.Post[];
181
+ }>>;
182
+
183
+ 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, 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
  /**
@@ -171,4 +171,13 @@ declare function getUserBookings(filter: BookingFilter): Promise<AxiosResponse<{
171
171
  results: Booking[];
172
172
  }>>;
173
173
 
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 };
174
+ declare function getBlogPostsList(filter: any): Promise<AxiosResponse<{
175
+ results: Blog.Post[];
176
+ links: any;
177
+ }>>;
178
+ declare function getBlogPostBySlug(slug: string): Promise<AxiosResponse<Blog.Post>>;
179
+ declare function getMultipleBlogsBySlugs(slugs: string): Promise<AxiosResponse<{
180
+ results: Blog.Post[];
181
+ }>>;
182
+
183
+ 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, 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
@@ -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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkPZJT2Y5B_cjs = require('../chunk-PZJT2Y5B.cjs');
3
+ var chunkF7CI6FHE_cjs = require('../chunk-F7CI6FHE.cjs');
4
4
  require('../chunk-XFOUNOKO.cjs');
5
5
  var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
6
6
  var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
@@ -125,55 +125,55 @@ async function checkTabbyReturnStatus(orderNumber, callbacks) {
125
125
 
126
126
  Object.defineProperty(exports, "applyCheckoutCoupon", {
127
127
  enumerable: true,
128
- get: function () { return chunkPZJT2Y5B_cjs.applyCheckoutCoupon; }
128
+ get: function () { return chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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,4 +1,4 @@
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-CEVCKVNX.js';
2
2
  import '../chunk-7M5CVYZJ.js';
3
3
  import { pixelEvents } from '../chunk-WFDKKOO7.js';
4
4
  import { checkPhonepePaymentStatus, getOrderDetailsByNumber, getStripePaymentStatusPublic, getStripePaymentStatus, verifyTabbyPayment } from '../chunk-S3ZZ3ZA7.js';
@@ -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: {
@@ -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: {
@@ -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-BbTa1-8B.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-D8iynEYj.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-BbTa1-8B.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-D8iynEYj.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;
@@ -5,7 +5,7 @@ var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
5
5
  var chunkFU46MZTI_cjs = require('../chunk-FU46MZTI.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 chunkF7CI6FHE_cjs = require('../chunk-F7CI6FHE.cjs');
9
9
  var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
10
10
  require('../chunk-K44JZ5NL.cjs');
11
11
  var chunkDXQX7ZIL_cjs = require('../chunk-DXQX7ZIL.cjs');
@@ -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
+ chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_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 chunkF7CI6FHE_cjs.removeCheckoutCoupon(appliedCoupon.coupon_code, callbacks);
413
413
  setAppliedCoupon(null);
414
414
  setError(null);
415
415
  } catch {
@@ -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';
@@ -3,7 +3,7 @@ import { findMatchingVariant, findSimilarVariant, isVariantCombinationAvailable,
3
3
  import { useCartStore, useAuthStore } from '../chunk-P252YNRA.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-CEVCKVNX.js';
7
7
  import { applyCoupon, removeCoupon, getCoupons, getAppliedCoupon } from '../chunk-7M5CVYZJ.js';
8
8
  import '../chunk-WFDKKOO7.js';
9
9
  import { getOrders, placeOrder } from '../chunk-S3ZZ3ZA7.js';
@@ -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-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 {
@@ -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 {
@@ -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-BbTa1-8B.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-D8iynEYj.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;
@@ -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-BbTa1-8B.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-BbTa1-8B.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-D8iynEYj.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-D8iynEYj.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.0",
4
4
  "description": "Shared logic and utilities for Snapstore themes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",