@storepecker/storefront-core 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.cts +7 -6
- package/dist/api/index.d.ts +7 -6
- package/dist/{blog-ICspYuDq.d.ts → blog-kdn4wDjq.d.ts} +1 -1
- package/dist/{blog-DDOl23BM.d.cts → blog-yhzC2V0C.d.cts} +1 -1
- package/dist/{cart-DV1HcSC6.d.ts → cart-BGIsIZdM.d.ts} +1 -1
- package/dist/{cart-lJvJzaoH.d.cts → cart-CyN2JQTw.d.cts} +1 -1
- package/dist/checkout/index.cjs +1 -1
- package/dist/checkout/index.d.cts +3 -3
- package/dist/checkout/index.d.ts +3 -3
- package/dist/checkout/index.js +1 -1
- package/dist/{chunk-EGFOTJPC.js → chunk-5XVHYPOC.js} +1 -1
- package/dist/{chunk-OTMTHA5C.cjs → chunk-6LS5F4R3.cjs} +80 -0
- package/dist/{chunk-6NFWEJSD.js → chunk-6PF4TQXP.js} +2 -2
- package/dist/{chunk-F45S7UWC.js → chunk-CBKJ3Y2I.js} +80 -1
- package/dist/{chunk-DY7PNIB3.cjs → chunk-COO7PUZH.cjs} +2 -2
- package/dist/{chunk-6Q7QMPOQ.js → chunk-ICKTXS6B.js} +1 -1
- package/dist/{chunk-HAQWCNDY.cjs → chunk-IG4BW3ZB.cjs} +3 -3
- package/dist/{chunk-KLNKIQQM.cjs → chunk-IVKJJLG7.cjs} +2 -2
- package/dist/{chunk-L43KF3AC.js → chunk-W6BDMNSU.js} +1 -1
- package/dist/{chunk-B3BXKMQA.cjs → chunk-YLLAP3H2.cjs} +2 -2
- package/dist/{collections-fGX_D_Mi.d.cts → collections-8YdINtUf.d.cts} +1 -1
- package/dist/{collections-kERS_kZw.d.ts → collections-ycrA2cPL.d.ts} +1 -1
- package/dist/components/address-form.cjs +5 -4
- package/dist/components/address-form.js +4 -3
- package/dist/components/digital-product-download-modal.d.cts +2 -2
- package/dist/components/digital-product-download-modal.d.ts +2 -2
- package/dist/components/index.cjs +7 -7
- package/dist/components/index.d.cts +5 -5
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +5 -5
- package/dist/components/share-button.cjs +4 -3
- package/dist/components/share-button.d.cts +1 -1
- package/dist/components/share-button.d.ts +1 -1
- package/dist/components/share-button.js +3 -2
- package/dist/components/theme-data-initializer.d.cts +5 -5
- package/dist/components/theme-data-initializer.d.ts +5 -5
- package/dist/hooks/index.cjs +10 -9
- package/dist/hooks/index.d.cts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.js +4 -3
- package/dist/models/index.d.cts +6 -6
- package/dist/models/index.d.ts +6 -6
- package/dist/{orders-CGhcSTMg.d.ts → orders-9_scVq_M.d.cts} +3 -2
- package/dist/{orders-1vcg6whk.d.cts → orders-C1XZr8tx.d.ts} +3 -2
- package/dist/{pixelEvents-BEzVCIBj.d.ts → pixelEvents-D0sH22Er.d.ts} +4 -4
- package/dist/{pixelEvents-Bob6N-g5.d.cts → pixelEvents-uiPHbiAQ.d.cts} +4 -4
- package/dist/{product-B8elBN21.d.cts → product-CZtFWhxO.d.cts} +3 -0
- package/dist/{product-B8elBN21.d.ts → product-CZtFWhxO.d.ts} +3 -0
- package/dist/store/index.cjs +4 -4
- package/dist/store/index.d.cts +7 -7
- package/dist/store/index.d.ts +7 -7
- package/dist/store/index.js +1 -1
- package/dist/utils/index.cjs +29 -25
- package/dist/utils/index.d.cts +12 -8
- package/dist/utils/index.d.ts +12 -8
- package/dist/utils/index.js +3 -3
- package/dist/{wishlist-B-bvvOxv.d.ts → wishlist-CRNbfFIx.d.ts} +1 -1
- package/dist/{wishlist-BdpIFX5_.d.cts → wishlist-Cx9Vrszq.d.cts} +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
-
import '../cart-
|
|
3
|
-
import '../product-
|
|
1
|
+
import { P as PageHeaderProps } from '../pixelEvents-uiPHbiAQ.cjs';
|
|
2
|
+
import '../cart-CyN2JQTw.cjs';
|
|
3
|
+
import '../product-CZtFWhxO.cjs';
|
|
4
4
|
import 'react-toastify';
|
|
5
|
-
import '../collections-
|
|
6
|
-
import '../orders-
|
|
5
|
+
import '../collections-8YdINtUf.cjs';
|
|
6
|
+
import '../orders-9_scVq_M.cjs';
|
|
7
7
|
|
|
8
8
|
declare function ThemeDataInitializer({ themeData, }: {
|
|
9
9
|
themeData: PageHeaderProps;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
-
import '../cart-
|
|
3
|
-
import '../product-
|
|
1
|
+
import { P as PageHeaderProps } from '../pixelEvents-D0sH22Er.js';
|
|
2
|
+
import '../cart-BGIsIZdM.js';
|
|
3
|
+
import '../product-CZtFWhxO.js';
|
|
4
4
|
import 'react-toastify';
|
|
5
|
-
import '../collections-
|
|
6
|
-
import '../orders-
|
|
5
|
+
import '../collections-ycrA2cPL.js';
|
|
6
|
+
import '../orders-C1XZr8tx.js';
|
|
7
7
|
|
|
8
8
|
declare function ThemeDataInitializer({ themeData, }: {
|
|
9
9
|
themeData: PageHeaderProps;
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkY46EHRJQ_cjs = require('../chunk-Y46EHRJQ.cjs');
|
|
4
4
|
var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkCOO7PUZH_cjs = require('../chunk-COO7PUZH.cjs');
|
|
6
6
|
var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
|
|
7
7
|
var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
|
|
8
8
|
var chunkQSHOJ3NJ_cjs = require('../chunk-QSHOJ3NJ.cjs');
|
|
9
9
|
var chunkXFOUNOKO_cjs = require('../chunk-XFOUNOKO.cjs');
|
|
10
10
|
require('../chunk-K44JZ5NL.cjs');
|
|
11
11
|
var chunkLZADKC4Y_cjs = require('../chunk-LZADKC4Y.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkIVKJJLG7_cjs = require('../chunk-IVKJJLG7.cjs');
|
|
13
13
|
var chunkRDUT4W3B_cjs = require('../chunk-RDUT4W3B.cjs');
|
|
14
14
|
require('../chunk-LJUGNSQQ.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunk6LS5F4R3_cjs = require('../chunk-6LS5F4R3.cjs');
|
|
16
|
+
require('../chunk-BBRB475I.cjs');
|
|
16
17
|
require('../chunk-TB72NPRM.cjs');
|
|
17
18
|
require('../chunk-ECHV2JSY.cjs');
|
|
18
19
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -321,7 +322,7 @@ function useCheckoutPayment(options) {
|
|
|
321
322
|
const [isConfirmingPayment, setIsConfirmingPayment] = react.useState(false);
|
|
322
323
|
const [showSuccessModal, setShowSuccessModal] = react.useState(false);
|
|
323
324
|
const [showFailureModal, setShowFailureModal] = react.useState(false);
|
|
324
|
-
const resetCartCount =
|
|
325
|
+
const resetCartCount = chunkCOO7PUZH_cjs.useCartStore((s) => s.resetCartCount);
|
|
325
326
|
const callbacks = {
|
|
326
327
|
onSuccess: (order) => {
|
|
327
328
|
setOrderSummary(order);
|
|
@@ -508,8 +509,8 @@ function useVariantSelector(options) {
|
|
|
508
509
|
}
|
|
509
510
|
function useShopCheckout(options) {
|
|
510
511
|
const { product, onNavigateToCart, onToast } = options;
|
|
511
|
-
const { addToCart, setCart } =
|
|
512
|
-
const isUserAuthenticated =
|
|
512
|
+
const { addToCart, setCart } = chunkCOO7PUZH_cjs.useCartStore();
|
|
513
|
+
const isUserAuthenticated = chunkCOO7PUZH_cjs.useAuthStore((s) => s.isAuthenticated);
|
|
513
514
|
const [isWishlisted, setIsWishlisted] = react.useState(product.is_wishlisted);
|
|
514
515
|
const [isAddedToCart, setIsAddedToCart] = react.useState(false);
|
|
515
516
|
const [loading, setLoading] = react.useState(false);
|
|
@@ -615,8 +616,8 @@ function useShopCheckout(options) {
|
|
|
615
616
|
setQuantity(value);
|
|
616
617
|
}, []);
|
|
617
618
|
const handleShare = react.useCallback(() => {
|
|
618
|
-
|
|
619
|
-
`Buy ${product.name} at ${
|
|
619
|
+
chunk6LS5F4R3_cjs.shareLink(
|
|
620
|
+
`Buy ${product.name} at ${chunk6LS5F4R3_cjs.convertToCurrency(
|
|
620
621
|
Number(product.selling_price)
|
|
621
622
|
)}`,
|
|
622
623
|
product.name
|
|
@@ -769,7 +770,7 @@ function useCoupon(options = {}) {
|
|
|
769
770
|
|
|
770
771
|
Object.defineProperty(exports, "useAddressForm", {
|
|
771
772
|
enumerable: true,
|
|
772
|
-
get: function () { return
|
|
773
|
+
get: function () { return chunkIVKJJLG7_cjs.useAddressForm; }
|
|
773
774
|
});
|
|
774
775
|
exports.useAddress = useAddress;
|
|
775
776
|
exports.useCart = useCart;
|
package/dist/hooks/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as Address } from '../address-DwBZHzbI.cjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-
|
|
4
|
-
import { O as Order } from '../orders-
|
|
5
|
-
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-
|
|
6
|
-
import { W as Wishlist } from '../wishlist-
|
|
3
|
+
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-CyN2JQTw.cjs';
|
|
4
|
+
import { O as Order } from '../orders-9_scVq_M.cjs';
|
|
5
|
+
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-CZtFWhxO.cjs';
|
|
6
|
+
import { W as Wishlist } from '../wishlist-Cx9Vrszq.cjs';
|
|
7
7
|
export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
|
|
8
8
|
import 'react-toastify';
|
|
9
9
|
import 'formik';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as Address } from '../address-DwBZHzbI.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-
|
|
4
|
-
import { O as Order } from '../orders-
|
|
5
|
-
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-
|
|
6
|
-
import { W as Wishlist } from '../wishlist-
|
|
3
|
+
import { C as Cart, b as Category, U as User, c as Coupon } from '../cart-BGIsIZdM.js';
|
|
4
|
+
import { O as Order } from '../orders-C1XZr8tx.js';
|
|
5
|
+
import { d as Product, f as ProductDetail, e as ProductAttribute, A as Attributes } from '../product-CZtFWhxO.js';
|
|
6
|
+
import { W as Wishlist } from '../wishlist-CRNbfFIx.js';
|
|
7
7
|
export { U as UseAddressFormOptions, a as UseAddressFormReturn, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
|
|
8
8
|
import 'react-toastify';
|
|
9
9
|
import 'formik';
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { getUserDetails } from '../chunk-WYXT5AAG.js';
|
|
2
2
|
import { findMatchingVariant, findSimilarVariant, isVariantCombinationAvailable, isColorVariantType } from '../chunk-HEFA67WK.js';
|
|
3
|
-
import { useCartStore, useAuthStore } from '../chunk-
|
|
3
|
+
import { useCartStore, useAuthStore } from '../chunk-6PF4TQXP.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
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
9
|
import { getOrders, placeOrder } from '../chunk-ME6Z7TZW.js';
|
|
10
|
-
export { useAddressForm } from '../chunk-
|
|
10
|
+
export { useAddressForm } from '../chunk-ICKTXS6B.js';
|
|
11
11
|
import { getAddresses } from '../chunk-ZGMLOLTC.js';
|
|
12
12
|
import '../chunk-OSM73ETC.js';
|
|
13
|
-
import { shareLink, convertToCurrency } from '../chunk-
|
|
13
|
+
import { shareLink, convertToCurrency } from '../chunk-CBKJ3Y2I.js';
|
|
14
|
+
import '../chunk-HSF2D56O.js';
|
|
14
15
|
import '../chunk-ELP23UGF.js';
|
|
15
16
|
import '../chunk-3SYYP3XV.js';
|
|
16
17
|
import '../chunk-WEMNXIRS.js';
|
package/dist/models/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as Address } from '../address-DwBZHzbI.cjs';
|
|
2
|
-
export { A as Analytics, B as Blog, a as Booking, b as BookingDetails, R as Review } from '../blog-
|
|
3
|
-
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-
|
|
4
|
-
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-
|
|
5
|
-
export { O as Order } from '../orders-
|
|
2
|
+
export { A as Analytics, B as Blog, a as Booking, b as BookingDetails, R as Review } from '../blog-yhzC2V0C.cjs';
|
|
3
|
+
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-CyN2JQTw.cjs';
|
|
4
|
+
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-8YdINtUf.cjs';
|
|
5
|
+
export { O as Order } from '../orders-9_scVq_M.cjs';
|
|
6
6
|
export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.cjs';
|
|
7
|
-
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-
|
|
8
|
-
export { W as Wishlist } from '../wishlist-
|
|
7
|
+
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-CZtFWhxO.cjs';
|
|
8
|
+
export { W as Wishlist } from '../wishlist-Cx9Vrszq.cjs';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare namespace CountryModel {
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { A as Address } from '../address-DwBZHzbI.js';
|
|
2
|
-
export { A as Analytics, B as Blog, a as Booking, b as BookingDetails, R as Review } from '../blog-
|
|
3
|
-
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-
|
|
4
|
-
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-
|
|
5
|
-
export { O as Order } from '../orders-
|
|
2
|
+
export { A as Analytics, B as Blog, a as Booking, b as BookingDetails, R as Review } from '../blog-kdn4wDjq.js';
|
|
3
|
+
export { A as ApplicableTarget, C as Cart, a as CartState, b as Category, c as Coupon, d as CouponResponse, e as CouponStatus, f as Coupons, D as DiscountType, U as User, V as ValueType } from '../cart-BGIsIZdM.js';
|
|
4
|
+
export { A as CollectionAttributes, C as CollectionResponse, s as singleCollection } from '../collections-ycrA2cPL.js';
|
|
5
|
+
export { O as Order } from '../orders-C1XZr8tx.js';
|
|
6
6
|
export { D as Data, P as PaymentInstrument, a as PhonePe } from '../phonepe-dWMLZel6.js';
|
|
7
|
-
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-
|
|
8
|
-
export { W as Wishlist } from '../wishlist-
|
|
7
|
+
export { A as Attributes, B as BaseProduct, a as BookingService, b as BookingServiceDate, c as Brand, C as CustomField, O as OperatingHours, P as Photos, d as Product, e as ProductAttribute, f as ProductDetail, S as SpecialHours, T as TimeSlot, W as WishlistState } from '../product-CZtFWhxO.js';
|
|
8
|
+
export { W as Wishlist } from '../wishlist-CRNbfFIx.js';
|
|
9
9
|
import 'react-toastify';
|
|
10
10
|
|
|
11
11
|
declare namespace CountryModel {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Photos } from './product-
|
|
1
|
+
import { P as Photos } from './product-CZtFWhxO.cjs';
|
|
2
2
|
|
|
3
3
|
declare namespace Order {
|
|
4
4
|
interface Root {
|
|
@@ -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" | "payment_pending" | "refunded";
|
|
64
|
+
type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid" | "payment_pending" | "refunded" | "returned";
|
|
65
65
|
interface OrderSummary {
|
|
66
66
|
id: number;
|
|
67
67
|
store: number;
|
|
@@ -126,6 +126,7 @@ declare namespace Order {
|
|
|
126
126
|
total_amount: number;
|
|
127
127
|
}[];
|
|
128
128
|
is_preorder: boolean;
|
|
129
|
+
cod_amount: number;
|
|
129
130
|
}
|
|
130
131
|
interface PurchasedProduct {
|
|
131
132
|
product_id: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Photos } from './product-
|
|
1
|
+
import { P as Photos } from './product-CZtFWhxO.js';
|
|
2
2
|
|
|
3
3
|
declare namespace Order {
|
|
4
4
|
interface Root {
|
|
@@ -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" | "payment_pending" | "refunded";
|
|
64
|
+
type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid" | "payment_pending" | "refunded" | "returned";
|
|
65
65
|
interface OrderSummary {
|
|
66
66
|
id: number;
|
|
67
67
|
store: number;
|
|
@@ -126,6 +126,7 @@ declare namespace Order {
|
|
|
126
126
|
total_amount: number;
|
|
127
127
|
}[];
|
|
128
128
|
is_preorder: boolean;
|
|
129
|
+
cod_amount: number;
|
|
129
130
|
}
|
|
130
131
|
interface PurchasedProduct {
|
|
131
132
|
product_id: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as Category$1, C as Cart } from './cart-
|
|
2
|
-
import { C as CollectionResponse } from './collections-
|
|
3
|
-
import { O as Order } from './orders-
|
|
4
|
-
import { f as ProductDetail, d as Product } from './product-
|
|
1
|
+
import { b as Category$1, C as Cart } from './cart-BGIsIZdM.js';
|
|
2
|
+
import { C as CollectionResponse } from './collections-ycrA2cPL.js';
|
|
3
|
+
import { O as Order } from './orders-C1XZr8tx.js';
|
|
4
|
+
import { f as ProductDetail, d as Product } from './product-CZtFWhxO.js';
|
|
5
5
|
|
|
6
6
|
interface PageProps {
|
|
7
7
|
nav_bar: NavBar;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as Category$1, C as Cart } from './cart-
|
|
2
|
-
import { C as CollectionResponse } from './collections-
|
|
3
|
-
import { O as Order } from './orders-
|
|
4
|
-
import { f as ProductDetail, d as Product } from './product-
|
|
1
|
+
import { b as Category$1, C as Cart } from './cart-CyN2JQTw.cjs';
|
|
2
|
+
import { C as CollectionResponse } from './collections-8YdINtUf.cjs';
|
|
3
|
+
import { O as Order } from './orders-9_scVq_M.cjs';
|
|
4
|
+
import { f as ProductDetail, d as Product } from './product-CZtFWhxO.cjs';
|
|
5
5
|
|
|
6
6
|
interface PageProps {
|
|
7
7
|
nav_bar: NavBar;
|
|
@@ -89,6 +89,7 @@ declare namespace Product {
|
|
|
89
89
|
status: string;
|
|
90
90
|
is_active: boolean;
|
|
91
91
|
product_variants: ProductVariant[];
|
|
92
|
+
is_whatsapp_checkout_enabled: boolean;
|
|
92
93
|
}
|
|
93
94
|
interface ProductList {
|
|
94
95
|
id: number;
|
|
@@ -129,6 +130,7 @@ declare namespace Product {
|
|
|
129
130
|
};
|
|
130
131
|
is_preorder: boolean;
|
|
131
132
|
preorder_ship_days: number;
|
|
133
|
+
is_whatsapp_checkout_enabled: boolean;
|
|
132
134
|
}
|
|
133
135
|
interface ProductResponse {
|
|
134
136
|
count: number;
|
|
@@ -245,6 +247,7 @@ declare namespace ProductDetail {
|
|
|
245
247
|
};
|
|
246
248
|
is_preorder: boolean;
|
|
247
249
|
preorder_ship_days: number;
|
|
250
|
+
is_whatsapp_checkout_enabled: boolean;
|
|
248
251
|
}
|
|
249
252
|
interface VariantAttribute {
|
|
250
253
|
[key: string]: {
|
|
@@ -89,6 +89,7 @@ declare namespace Product {
|
|
|
89
89
|
status: string;
|
|
90
90
|
is_active: boolean;
|
|
91
91
|
product_variants: ProductVariant[];
|
|
92
|
+
is_whatsapp_checkout_enabled: boolean;
|
|
92
93
|
}
|
|
93
94
|
interface ProductList {
|
|
94
95
|
id: number;
|
|
@@ -129,6 +130,7 @@ declare namespace Product {
|
|
|
129
130
|
};
|
|
130
131
|
is_preorder: boolean;
|
|
131
132
|
preorder_ship_days: number;
|
|
133
|
+
is_whatsapp_checkout_enabled: boolean;
|
|
132
134
|
}
|
|
133
135
|
interface ProductResponse {
|
|
134
136
|
count: number;
|
|
@@ -245,6 +247,7 @@ declare namespace ProductDetail {
|
|
|
245
247
|
};
|
|
246
248
|
is_preorder: boolean;
|
|
247
249
|
preorder_ship_days: number;
|
|
250
|
+
is_whatsapp_checkout_enabled: boolean;
|
|
248
251
|
}
|
|
249
252
|
interface VariantAttribute {
|
|
250
253
|
[key: string]: {
|
package/dist/store/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCOO7PUZH_cjs = require('../chunk-COO7PUZH.cjs');
|
|
4
4
|
var chunkPARH5TBK_cjs = require('../chunk-PARH5TBK.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
6
|
require('../chunk-LZADKC4Y.cjs');
|
|
@@ -69,15 +69,15 @@ var useProductStore = zustand.create((set, get) => ({
|
|
|
69
69
|
|
|
70
70
|
Object.defineProperty(exports, "loginUser", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkCOO7PUZH_cjs.loginUser; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "useAuthStore", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkCOO7PUZH_cjs.useAuthStore; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "useCartStore", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkCOO7PUZH_cjs.useCartStore; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "useThemeData", {
|
|
83
83
|
enumerable: true,
|
package/dist/store/index.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import { a as CartState, C as Cart, U as User } from '../cart-
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import { d as Product } from '../product-
|
|
5
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-CyN2JQTw.cjs';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-Cx9Vrszq.cjs';
|
|
4
|
+
import { d as Product } from '../product-CZtFWhxO.cjs';
|
|
5
|
+
import { P as PageHeaderProps } from '../pixelEvents-uiPHbiAQ.cjs';
|
|
6
6
|
import 'react-toastify';
|
|
7
|
-
import '../collections-
|
|
8
|
-
import '../orders-
|
|
7
|
+
import '../collections-8YdINtUf.cjs';
|
|
8
|
+
import '../orders-9_scVq_M.cjs';
|
|
9
9
|
|
|
10
10
|
interface CartStore extends CartState {
|
|
11
11
|
setCart: (cart: Cart.Root) => void;
|
|
@@ -16,7 +16,7 @@ interface CartStore extends CartState {
|
|
|
16
16
|
*/
|
|
17
17
|
syncCart: (addressId?: number, shippingOptionId?: number) => Promise<void>;
|
|
18
18
|
fetchCart: (addressId?: number, shippingOptionId?: number) => Promise<void>;
|
|
19
|
-
|
|
19
|
+
fetchCartItemQuantity: () => Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* Cart modification helpers that call the corresponding API and
|
|
22
22
|
* automatically synchronize the store afterwards.
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import { a as CartState, C as Cart, U as User } from '../cart-
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import { d as Product } from '../product-
|
|
5
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-BGIsIZdM.js';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-CRNbfFIx.js';
|
|
4
|
+
import { d as Product } from '../product-CZtFWhxO.js';
|
|
5
|
+
import { P as PageHeaderProps } from '../pixelEvents-D0sH22Er.js';
|
|
6
6
|
import 'react-toastify';
|
|
7
|
-
import '../collections-
|
|
8
|
-
import '../orders-
|
|
7
|
+
import '../collections-ycrA2cPL.js';
|
|
8
|
+
import '../orders-C1XZr8tx.js';
|
|
9
9
|
|
|
10
10
|
interface CartStore extends CartState {
|
|
11
11
|
setCart: (cart: Cart.Root) => void;
|
|
@@ -16,7 +16,7 @@ interface CartStore extends CartState {
|
|
|
16
16
|
*/
|
|
17
17
|
syncCart: (addressId?: number, shippingOptionId?: number) => Promise<void>;
|
|
18
18
|
fetchCart: (addressId?: number, shippingOptionId?: number) => Promise<void>;
|
|
19
|
-
|
|
19
|
+
fetchCartItemQuantity: () => Promise<void>;
|
|
20
20
|
/**
|
|
21
21
|
* Cart modification helpers that call the corresponding API and
|
|
22
22
|
* automatically synchronize the store afterwards.
|
package/dist/store/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { loginUser, useAuthStore, useCartStore } from '../chunk-
|
|
1
|
+
export { loginUser, useAuthStore, useCartStore } from '../chunk-6PF4TQXP.js';
|
|
2
2
|
import { getWishlist, getProducts } from '../chunk-CUR7CHR5.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
4
|
import '../chunk-ME6Z7TZW.js';
|
package/dist/utils/index.cjs
CHANGED
|
@@ -4,9 +4,9 @@ var chunkGTV42PDK_cjs = require('../chunk-GTV42PDK.cjs');
|
|
|
4
4
|
var chunk2AHH3XBW_cjs = require('../chunk-2AHH3XBW.cjs');
|
|
5
5
|
var chunkSMHJRNCR_cjs = require('../chunk-SMHJRNCR.cjs');
|
|
6
6
|
var chunkK44JZ5NL_cjs = require('../chunk-K44JZ5NL.cjs');
|
|
7
|
-
var chunkBBRB475I_cjs = require('../chunk-BBRB475I.cjs');
|
|
8
7
|
var chunkLJUGNSQQ_cjs = require('../chunk-LJUGNSQQ.cjs');
|
|
9
|
-
var
|
|
8
|
+
var chunk6LS5F4R3_cjs = require('../chunk-6LS5F4R3.cjs');
|
|
9
|
+
var chunkBBRB475I_cjs = require('../chunk-BBRB475I.cjs');
|
|
10
10
|
var chunkBBRXE57K_cjs = require('../chunk-BBRXE57K.cjs');
|
|
11
11
|
var chunkNE3ZHELZ_cjs = require('../chunk-NE3ZHELZ.cjs');
|
|
12
12
|
var chunkN3CTXRFT_cjs = require('../chunk-N3CTXRFT.cjs');
|
|
@@ -87,7 +87,7 @@ var constructPaymentPayload = async (amount, orderId, userId, phoneNumber, merch
|
|
|
87
87
|
const dataPayload = JSON.stringify(paymentPayload);
|
|
88
88
|
console.log(dataPayload);
|
|
89
89
|
const dataBase64 = Buffer.from(dataPayload).toString("base64");
|
|
90
|
-
const checksum = await
|
|
90
|
+
const checksum = await chunk6LS5F4R3_cjs.digestMessage(`${dataBase64}/pg/v1/pay${saltKey}`);
|
|
91
91
|
const finalChecksum = `${checksum}###${saltIndex}`;
|
|
92
92
|
return {
|
|
93
93
|
base64Payload: dataBase64,
|
|
@@ -95,7 +95,7 @@ var constructPaymentPayload = async (amount, orderId, userId, phoneNumber, merch
|
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
var createXVerifyHeader = async (merchantId, transactionId, saltKey, saltIndex) => {
|
|
98
|
-
const checksum = await
|
|
98
|
+
const checksum = await chunk6LS5F4R3_cjs.digestMessage(
|
|
99
99
|
`/pg/v1/status/${merchantId}/${transactionId}${saltKey}`
|
|
100
100
|
);
|
|
101
101
|
const finalChecksum = `${checksum}###${saltIndex}`;
|
|
@@ -361,14 +361,6 @@ Object.defineProperty(exports, "pixelEvents", {
|
|
|
361
361
|
enumerable: true,
|
|
362
362
|
get: function () { return chunkK44JZ5NL_cjs.pixelEvents; }
|
|
363
363
|
});
|
|
364
|
-
Object.defineProperty(exports, "isExpired", {
|
|
365
|
-
enumerable: true,
|
|
366
|
-
get: function () { return chunkBBRB475I_cjs.isExpired; }
|
|
367
|
-
});
|
|
368
|
-
Object.defineProperty(exports, "timeFromNow", {
|
|
369
|
-
enumerable: true,
|
|
370
|
-
get: function () { return chunkBBRB475I_cjs.timeFromNow; }
|
|
371
|
-
});
|
|
372
364
|
Object.defineProperty(exports, "CacheManager", {
|
|
373
365
|
enumerable: true,
|
|
374
366
|
get: function () { return chunkLJUGNSQQ_cjs.CacheManager; }
|
|
@@ -407,55 +399,67 @@ Object.defineProperty(exports, "setCache", {
|
|
|
407
399
|
});
|
|
408
400
|
Object.defineProperty(exports, "constructFilter", {
|
|
409
401
|
enumerable: true,
|
|
410
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunk6LS5F4R3_cjs.constructFilter; }
|
|
411
403
|
});
|
|
412
404
|
Object.defineProperty(exports, "convertObjectToParams", {
|
|
413
405
|
enumerable: true,
|
|
414
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunk6LS5F4R3_cjs.convertObjectToParams; }
|
|
415
407
|
});
|
|
416
408
|
Object.defineProperty(exports, "convertToCurrency", {
|
|
417
409
|
enumerable: true,
|
|
418
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunk6LS5F4R3_cjs.convertToCurrency; }
|
|
419
411
|
});
|
|
420
412
|
Object.defineProperty(exports, "digestMessage", {
|
|
421
413
|
enumerable: true,
|
|
422
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunk6LS5F4R3_cjs.digestMessage; }
|
|
423
415
|
});
|
|
424
416
|
Object.defineProperty(exports, "formatDateTime", {
|
|
425
417
|
enumerable: true,
|
|
426
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunk6LS5F4R3_cjs.formatDateTime; }
|
|
427
419
|
});
|
|
428
420
|
Object.defineProperty(exports, "formatPostalLabel", {
|
|
429
421
|
enumerable: true,
|
|
430
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunk6LS5F4R3_cjs.formatPostalLabel; }
|
|
431
423
|
});
|
|
432
424
|
Object.defineProperty(exports, "getAddressMeta", {
|
|
433
425
|
enumerable: true,
|
|
434
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunk6LS5F4R3_cjs.getAddressMeta; }
|
|
435
427
|
});
|
|
436
428
|
Object.defineProperty(exports, "getDelayInMilliseconds", {
|
|
437
429
|
enumerable: true,
|
|
438
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunk6LS5F4R3_cjs.getDelayInMilliseconds; }
|
|
431
|
+
});
|
|
432
|
+
Object.defineProperty(exports, "getOrderStatus", {
|
|
433
|
+
enumerable: true,
|
|
434
|
+
get: function () { return chunk6LS5F4R3_cjs.getOrderStatus; }
|
|
439
435
|
});
|
|
440
436
|
Object.defineProperty(exports, "getParamsFromURL", {
|
|
441
437
|
enumerable: true,
|
|
442
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunk6LS5F4R3_cjs.getParamsFromURL; }
|
|
443
439
|
});
|
|
444
440
|
Object.defineProperty(exports, "getQueryParams", {
|
|
445
441
|
enumerable: true,
|
|
446
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunk6LS5F4R3_cjs.getQueryParams; }
|
|
447
443
|
});
|
|
448
444
|
Object.defineProperty(exports, "pluralize", {
|
|
449
445
|
enumerable: true,
|
|
450
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunk6LS5F4R3_cjs.pluralize; }
|
|
451
447
|
});
|
|
452
448
|
Object.defineProperty(exports, "pushParamsToURL", {
|
|
453
449
|
enumerable: true,
|
|
454
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunk6LS5F4R3_cjs.pushParamsToURL; }
|
|
455
451
|
});
|
|
456
452
|
Object.defineProperty(exports, "shareLink", {
|
|
457
453
|
enumerable: true,
|
|
458
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunk6LS5F4R3_cjs.shareLink; }
|
|
455
|
+
});
|
|
456
|
+
Object.defineProperty(exports, "isExpired", {
|
|
457
|
+
enumerable: true,
|
|
458
|
+
get: function () { return chunkBBRB475I_cjs.isExpired; }
|
|
459
|
+
});
|
|
460
|
+
Object.defineProperty(exports, "timeFromNow", {
|
|
461
|
+
enumerable: true,
|
|
462
|
+
get: function () { return chunkBBRB475I_cjs.timeFromNow; }
|
|
459
463
|
});
|
|
460
464
|
Object.defineProperty(exports, "Auth", {
|
|
461
465
|
enumerable: true,
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-
|
|
2
|
-
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-
|
|
3
|
-
import { C as Cart } from '../cart-
|
|
1
|
+
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-CZtFWhxO.cjs';
|
|
2
|
+
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-CZtFWhxO.cjs';
|
|
3
|
+
import { C as Cart } from '../cart-CyN2JQTw.cjs';
|
|
4
4
|
export { S as SnapstoreConfig, g as getApiEndpoint, a as getCloudFront, b as getConfig, c as getPhonePeApiEndpoint, d as getPublicApiEndpoint, e as getSecretKey, f as getStoreId, i as initConfig } from '../index-DTyIuLuI.cjs';
|
|
5
|
-
import { S as SectionFilters } from '../pixelEvents-
|
|
6
|
-
export { A as AvailableFilter, B as Banner, 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-
|
|
5
|
+
import { S as SectionFilters } from '../pixelEvents-uiPHbiAQ.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-uiPHbiAQ.cjs';
|
|
7
|
+
import { O as Order } from '../orders-9_scVq_M.cjs';
|
|
7
8
|
import { AxiosResponse } from 'axios';
|
|
8
9
|
import { a as PhonePe } from '../phonepe-dWMLZel6.cjs';
|
|
9
10
|
import 'react-toastify';
|
|
10
|
-
import '../collections-
|
|
11
|
-
import '../orders-1vcg6whk.cjs';
|
|
11
|
+
import '../collections-8YdINtUf.cjs';
|
|
12
12
|
|
|
13
13
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
|
14
14
|
declare const Auth: {
|
|
@@ -90,6 +90,10 @@ declare function getAddressMeta(countryCode: string): Promise<{
|
|
|
90
90
|
postalLabel: string;
|
|
91
91
|
hasPostal: boolean;
|
|
92
92
|
}>;
|
|
93
|
+
declare function getOrderStatus(order: Order.Root | Order.OrderSummary): {
|
|
94
|
+
title: string;
|
|
95
|
+
info?: string;
|
|
96
|
+
};
|
|
93
97
|
|
|
94
98
|
declare class PhonepePayment {
|
|
95
99
|
private readonly amount;
|
|
@@ -207,4 +211,4 @@ declare function isProductCustomized(customizationInputs: Array<{
|
|
|
207
211
|
[key: string]: any;
|
|
208
212
|
}> | undefined, productId: number): boolean;
|
|
209
213
|
|
|
210
|
-
export { Auth, CacheManager, LocalCart, PhonepePayment, SectionFilters, authRoutes, cache, calculateDiscountPercent, clearCache, constructFilter, convertObjectToParams, convertToCurrency, cropImage, debounce, deleteCache, digestMessage, findMatchingVariant, findSimilarVariant, formatBookingDateTime, formatDateTime, formatPostalLabel, generateCacheKey, generateTimeOptions, getAddressMeta, getAvailableDaysText, getCache, getDelayInMilliseconds, getNextAvailableDate, getParamsFromURL, getQueryParams, getTimeConstraints, getUniqueId, hasCache, invalidateCache, isAvailableDay, isColorVariantType, isExpired, isProductCustomized, isVariantCombinationAvailable, pluralize, protectedRoutes, publicRoutes, pushParamsToURL, setAuthTokenChangeCallback, setCache, shareLink, timeFromNow, urls };
|
|
214
|
+
export { Auth, CacheManager, LocalCart, PhonepePayment, SectionFilters, authRoutes, cache, calculateDiscountPercent, clearCache, constructFilter, convertObjectToParams, convertToCurrency, cropImage, debounce, deleteCache, digestMessage, findMatchingVariant, findSimilarVariant, formatBookingDateTime, formatDateTime, formatPostalLabel, generateCacheKey, generateTimeOptions, getAddressMeta, getAvailableDaysText, getCache, getDelayInMilliseconds, getNextAvailableDate, getOrderStatus, getParamsFromURL, getQueryParams, getTimeConstraints, getUniqueId, hasCache, invalidateCache, isAvailableDay, isColorVariantType, isExpired, isProductCustomized, isVariantCombinationAvailable, pluralize, protectedRoutes, publicRoutes, pushParamsToURL, setAuthTokenChangeCallback, setCache, shareLink, timeFromNow, urls };
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-
|
|
2
|
-
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-
|
|
3
|
-
import { C as Cart } from '../cart-
|
|
1
|
+
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-CZtFWhxO.js';
|
|
2
|
+
export { h as ADDRESS_FORM_SESSION_KEY, i as ALLOWED_COUNTRIES, D as DEFAULT_TOAST_CONFIG, j as PRODUCT_STATUSES, g as SLICE_STATUS, U as USER_CART, k as USER_CREDENTIALS, l as USER_CRED_REFRESH_TOKEN, m as USER_CRED_TOKEN, p as pathNameMap } from '../product-CZtFWhxO.js';
|
|
3
|
+
import { C as Cart } from '../cart-BGIsIZdM.js';
|
|
4
4
|
export { S as SnapstoreConfig, g as getApiEndpoint, a as getCloudFront, b as getConfig, c as getPhonePeApiEndpoint, d as getPublicApiEndpoint, e as getSecretKey, f as getStoreId, i as initConfig } from '../index-DTyIuLuI.js';
|
|
5
|
-
import { S as SectionFilters } from '../pixelEvents-
|
|
6
|
-
export { A as AvailableFilter, B as Banner, 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-
|
|
5
|
+
import { S as SectionFilters } from '../pixelEvents-D0sH22Er.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-D0sH22Er.js';
|
|
7
|
+
import { O as Order } from '../orders-C1XZr8tx.js';
|
|
7
8
|
import { AxiosResponse } from 'axios';
|
|
8
9
|
import { a as PhonePe } from '../phonepe-dWMLZel6.js';
|
|
9
10
|
import 'react-toastify';
|
|
10
|
-
import '../collections-
|
|
11
|
-
import '../orders-CGhcSTMg.js';
|
|
11
|
+
import '../collections-ycrA2cPL.js';
|
|
12
12
|
|
|
13
13
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
|
14
14
|
declare const Auth: {
|
|
@@ -90,6 +90,10 @@ declare function getAddressMeta(countryCode: string): Promise<{
|
|
|
90
90
|
postalLabel: string;
|
|
91
91
|
hasPostal: boolean;
|
|
92
92
|
}>;
|
|
93
|
+
declare function getOrderStatus(order: Order.Root | Order.OrderSummary): {
|
|
94
|
+
title: string;
|
|
95
|
+
info?: string;
|
|
96
|
+
};
|
|
93
97
|
|
|
94
98
|
declare class PhonepePayment {
|
|
95
99
|
private readonly amount;
|
|
@@ -207,4 +211,4 @@ declare function isProductCustomized(customizationInputs: Array<{
|
|
|
207
211
|
[key: string]: any;
|
|
208
212
|
}> | undefined, productId: number): boolean;
|
|
209
213
|
|
|
210
|
-
export { Auth, CacheManager, LocalCart, PhonepePayment, SectionFilters, authRoutes, cache, calculateDiscountPercent, clearCache, constructFilter, convertObjectToParams, convertToCurrency, cropImage, debounce, deleteCache, digestMessage, findMatchingVariant, findSimilarVariant, formatBookingDateTime, formatDateTime, formatPostalLabel, generateCacheKey, generateTimeOptions, getAddressMeta, getAvailableDaysText, getCache, getDelayInMilliseconds, getNextAvailableDate, getParamsFromURL, getQueryParams, getTimeConstraints, getUniqueId, hasCache, invalidateCache, isAvailableDay, isColorVariantType, isExpired, isProductCustomized, isVariantCombinationAvailable, pluralize, protectedRoutes, publicRoutes, pushParamsToURL, setAuthTokenChangeCallback, setCache, shareLink, timeFromNow, urls };
|
|
214
|
+
export { Auth, CacheManager, LocalCart, PhonepePayment, SectionFilters, authRoutes, cache, calculateDiscountPercent, clearCache, constructFilter, convertObjectToParams, convertToCurrency, cropImage, debounce, deleteCache, digestMessage, findMatchingVariant, findSimilarVariant, formatBookingDateTime, formatDateTime, formatPostalLabel, generateCacheKey, generateTimeOptions, getAddressMeta, getAvailableDaysText, getCache, getDelayInMilliseconds, getNextAvailableDate, getOrderStatus, getParamsFromURL, getQueryParams, getTimeConstraints, getUniqueId, hasCache, invalidateCache, isAvailableDay, isColorVariantType, isExpired, isProductCustomized, isVariantCombinationAvailable, pluralize, protectedRoutes, publicRoutes, pushParamsToURL, setAuthTokenChangeCallback, setCache, shareLink, timeFromNow, urls };
|
package/dist/utils/index.js
CHANGED
|
@@ -2,10 +2,10 @@ export { authRoutes, protectedRoutes, publicRoutes, routes_default as urls } fro
|
|
|
2
2
|
export { findMatchingVariant, findSimilarVariant, isColorVariantType, isVariantCombinationAvailable } from '../chunk-HEFA67WK.js';
|
|
3
3
|
export { cart_default as LocalCart } from '../chunk-QAC72HKO.js';
|
|
4
4
|
export { pixelEvents } from '../chunk-WFDKKOO7.js';
|
|
5
|
-
export { isExpired, timeFromNow } from '../chunk-HSF2D56O.js';
|
|
6
5
|
export { CacheManager, cache, clearCache, deleteCache, generateCacheKey, getCache, hasCache, invalidateCache, setCache } from '../chunk-OSM73ETC.js';
|
|
7
|
-
import { digestMessage } from '../chunk-
|
|
8
|
-
export { constructFilter, convertObjectToParams, convertToCurrency, digestMessage, formatDateTime, formatPostalLabel, getAddressMeta, getDelayInMilliseconds, getParamsFromURL, getQueryParams, pluralize, pushParamsToURL, shareLink } from '../chunk-
|
|
6
|
+
import { digestMessage } from '../chunk-CBKJ3Y2I.js';
|
|
7
|
+
export { constructFilter, convertObjectToParams, convertToCurrency, digestMessage, formatDateTime, formatPostalLabel, getAddressMeta, getDelayInMilliseconds, getOrderStatus, getParamsFromURL, getQueryParams, pluralize, pushParamsToURL, shareLink } from '../chunk-CBKJ3Y2I.js';
|
|
8
|
+
export { isExpired, timeFromNow } from '../chunk-HSF2D56O.js';
|
|
9
9
|
export { auth_default as Auth, setAuthTokenChangeCallback } from '../chunk-WEMNXIRS.js';
|
|
10
10
|
export { ADDRESS_FORM_SESSION_KEY, ALLOWED_COUNTRIES, DEFAULT_TOAST_CONFIG, PRODUCT_STATUSES, SLICE_STATUS, USER_CART, USER_CREDENTIALS, USER_CRED_REFRESH_TOKEN, USER_CRED_TOKEN, pathNameMap } from '../chunk-BQ256JKN.js';
|
|
11
11
|
import { getPhonePeApiEndpoint, getPublicApiEndpoint } from '../chunk-JQMLHRWL.js';
|