@storepecker/storefront-core 2.3.6 → 2.4.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.
- package/dist/api/index.cjs +28 -24
- package/dist/api/index.d.cts +8 -5
- package/dist/api/index.d.ts +8 -5
- package/dist/api/index.js +1 -1
- package/dist/{booking-CG6tul9l.d.ts → booking-BVWe8HHh.d.ts} +1 -1
- package/dist/{booking-DNVf5ZAS.d.cts → booking-DX9SU_qm.d.cts} +1 -1
- package/dist/cart-kJoawc_Z.d.cts +126 -0
- package/dist/cart-y-7RPmnQ.d.ts +126 -0
- package/dist/checkout/index.cjs +22 -22
- package/dist/checkout/index.d.cts +3 -1
- package/dist/checkout/index.d.ts +3 -1
- package/dist/checkout/index.js +2 -2
- package/dist/{chunk-BTT3XQ32.cjs → chunk-33TWVRZE.cjs} +6 -6
- package/dist/chunk-3YRSHPM6.cjs +34 -0
- package/dist/chunk-6DXB4O6P.cjs +121 -0
- package/dist/{chunk-ILVGYHNI.js → chunk-6Q7QMPOQ.js} +2 -1
- package/dist/{chunk-HTFVROIV.cjs → chunk-7UK3E7SL.cjs} +6 -0
- package/dist/chunk-B3BXKMQA.cjs +271 -0
- package/dist/chunk-BTR3HLL4.js +14 -0
- package/dist/chunk-EGFOTJPC.js +22 -0
- package/dist/{chunk-YUPBTD4M.js → chunk-F45S7UWC.js} +1 -139
- package/dist/chunk-HAQWCNDY.cjs +24 -0
- package/dist/{chunk-Y4NGR42Z.js → chunk-HUIT4JCR.js} +1 -1
- package/dist/{chunk-TF2KMTB6.js → chunk-JRYWZMNT.js} +1 -1
- package/dist/{chunk-JCOOINQF.cjs → chunk-KLNKIQQM.cjs} +4 -3
- package/dist/chunk-L43KF3AC.js +269 -0
- package/dist/chunk-LHF5BSWO.cjs +16 -0
- package/dist/chunk-LJUGNSQQ.cjs +149 -0
- package/dist/chunk-LLRSKDH5.js +115 -0
- package/dist/chunk-OSM73ETC.js +139 -0
- package/dist/{chunk-4CVKE6CC.cjs → chunk-OTMTHA5C.cjs} +0 -147
- package/dist/{chunk-JH4JJBXE.cjs → chunk-TTIQRDHX.cjs} +2 -2
- package/dist/chunk-U7EXLQCT.js +32 -0
- package/dist/{chunk-LW3V53WJ.js → chunk-UVU7H4E6.js} +6 -1
- package/dist/chunk-V447PVRV.cjs +308 -0
- package/dist/chunk-YK4M3SFP.js +301 -0
- package/dist/{collections-Bz9KD7Na.d.cts → collections-BDSVfRNo.d.ts} +1 -1
- package/dist/{collections-CkEUi3BR.d.ts → collections-WzvTO0OQ.d.cts} +1 -1
- package/dist/components/address-form.cjs +17 -0
- package/dist/components/address-form.css +329 -0
- package/dist/components/address-form.d.cts +33 -0
- package/dist/components/address-form.d.ts +33 -0
- package/dist/components/address-form.js +11 -0
- package/dist/components/digital-product-download-modal.cjs +8 -0
- package/dist/components/digital-product-download-modal.d.cts +15 -0
- package/dist/components/digital-product-download-modal.d.ts +15 -0
- package/dist/components/digital-product-download-modal.js +2 -0
- package/dist/components/index.cjs +35 -695
- package/dist/components/index.d.cts +14 -87
- package/dist/components/index.d.ts +14 -87
- package/dist/components/index.js +11 -688
- package/dist/components/search-dropdown.cjs +7 -0
- package/dist/components/search-dropdown.css +200 -0
- package/dist/components/search-dropdown.d.cts +28 -0
- package/dist/components/search-dropdown.d.ts +28 -0
- package/dist/components/search-dropdown.js +1 -0
- package/dist/components/share-button.cjs +9 -0
- package/dist/components/share-button.d.cts +11 -0
- package/dist/components/share-button.d.ts +11 -0
- package/dist/components/share-button.js +3 -0
- package/dist/components/share-icon.cjs +7 -0
- package/dist/components/share-icon.d.cts +9 -0
- package/dist/components/share-icon.d.ts +9 -0
- package/dist/components/share-icon.js +1 -0
- package/dist/components/theme-data-initializer.cjs +8 -0
- package/dist/components/theme-data-initializer.d.cts +12 -0
- package/dist/components/theme-data-initializer.d.ts +12 -0
- package/dist/components/theme-data-initializer.js +2 -0
- package/dist/hooks/index.cjs +18 -17
- package/dist/hooks/index.d.cts +4 -2
- package/dist/hooks/index.d.ts +4 -2
- package/dist/hooks/index.js +6 -5
- package/dist/models/index.d.cts +6 -4
- package/dist/models/index.d.ts +6 -4
- package/dist/orders-CjNmCY5I.d.cts +144 -0
- package/dist/orders-L_8eIkUS.d.ts +144 -0
- package/dist/{pixelEvents-OVIkPw-J.d.ts → pixelEvents-Bo-VjAx8.d.ts} +4 -2
- package/dist/{pixelEvents-DYkiTkb2.d.cts → pixelEvents-C1rFPOwb.d.cts} +4 -2
- package/dist/{orders-fIdANHSl.d.ts → product-DJMdi4D4.d.cts} +1 -265
- package/dist/{orders-fIdANHSl.d.cts → product-DJMdi4D4.d.ts} +1 -265
- package/dist/store/index.cjs +5 -5
- package/dist/store/index.d.cts +6 -4
- package/dist/store/index.d.ts +6 -4
- package/dist/store/index.js +2 -2
- package/dist/utils/index.cjs +44 -43
- package/dist/utils/index.d.cts +7 -5
- package/dist/utils/index.d.ts +7 -5
- package/dist/utils/index.js +3 -2
- package/dist/{wishlist-stNzfvIP.d.cts → wishlist-CUuCTSVJ.d.cts} +1 -1
- package/dist/{wishlist-_bd4gLyQ.d.ts → wishlist-DKYFZR0s.d.ts} +1 -1
- package/package.json +50 -6
|
@@ -18,37 +18,6 @@ declare const DEFAULT_TOAST_CONFIG: ToastOptions;
|
|
|
18
18
|
declare const ALLOWED_COUNTRIES: string[];
|
|
19
19
|
declare const ADDRESS_FORM_SESSION_KEY = "address_form_values";
|
|
20
20
|
|
|
21
|
-
declare namespace User {
|
|
22
|
-
interface Root {
|
|
23
|
-
customer_name: string;
|
|
24
|
-
phone: string;
|
|
25
|
-
email: string;
|
|
26
|
-
date_of_birth: string;
|
|
27
|
-
country_code: string;
|
|
28
|
-
gender: string;
|
|
29
|
-
}
|
|
30
|
-
interface UserState {
|
|
31
|
-
user: LoginUserData | null;
|
|
32
|
-
isAuthenticated: boolean;
|
|
33
|
-
status: SLICE_STATUS;
|
|
34
|
-
}
|
|
35
|
-
interface LoginUserData {
|
|
36
|
-
email: string;
|
|
37
|
-
first_name: string;
|
|
38
|
-
last_name: string;
|
|
39
|
-
access: string;
|
|
40
|
-
refresh: string;
|
|
41
|
-
user_id: number;
|
|
42
|
-
phone_number: string;
|
|
43
|
-
}
|
|
44
|
-
interface UserDetailsPayload {
|
|
45
|
-
customer_name: string;
|
|
46
|
-
gender: string;
|
|
47
|
-
date_of_birth: string;
|
|
48
|
-
}
|
|
49
|
-
type LoginMethod = "email_otp" | "phone_otp";
|
|
50
|
-
}
|
|
51
|
-
|
|
52
21
|
declare namespace Product {
|
|
53
22
|
interface Variant {
|
|
54
23
|
id: number;
|
|
@@ -365,237 +334,4 @@ interface TimeSlot {
|
|
|
365
334
|
interface SpecialHours {
|
|
366
335
|
}
|
|
367
336
|
|
|
368
|
-
|
|
369
|
-
interface Root {
|
|
370
|
-
id: number;
|
|
371
|
-
name: string;
|
|
372
|
-
photo: string;
|
|
373
|
-
slug: string;
|
|
374
|
-
description: string;
|
|
375
|
-
children?: Root[];
|
|
376
|
-
}
|
|
377
|
-
interface CategoriesState {
|
|
378
|
-
data: Root[];
|
|
379
|
-
status: SLICE_STATUS;
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
type DiscountType = "discount";
|
|
384
|
-
type ValueType = "percentage" | "fixed";
|
|
385
|
-
type ApplicableTarget = "product_category" | "product_variant" | "product_bundle" | "customer";
|
|
386
|
-
type CouponStatus = "active" | "inactive" | "expired";
|
|
387
|
-
interface Coupon {
|
|
388
|
-
id: number;
|
|
389
|
-
coupon_code: string;
|
|
390
|
-
discount_type: DiscountType;
|
|
391
|
-
value: string;
|
|
392
|
-
value_type: ValueType;
|
|
393
|
-
min_order_amount: string;
|
|
394
|
-
max_discount_amount: string;
|
|
395
|
-
start_date: string;
|
|
396
|
-
end_date: string;
|
|
397
|
-
status: CouponStatus;
|
|
398
|
-
is_deleted: boolean;
|
|
399
|
-
usage_limit: number;
|
|
400
|
-
usage_count: number;
|
|
401
|
-
applicable_target: ApplicableTarget;
|
|
402
|
-
applicable_product_variants: Product.ProductVariant[];
|
|
403
|
-
applicable_product_bundles: any[];
|
|
404
|
-
applicable_product_categories: Category.Root[];
|
|
405
|
-
applicable_customers: User.Root[];
|
|
406
|
-
auto_apply: boolean;
|
|
407
|
-
created_at: string;
|
|
408
|
-
updated_at: string;
|
|
409
|
-
is_cart_applicable: boolean;
|
|
410
|
-
coupon_message: string;
|
|
411
|
-
}
|
|
412
|
-
type Coupons = Coupon[];
|
|
413
|
-
interface CouponResponse {
|
|
414
|
-
coupon: Coupon;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
interface CartState {
|
|
418
|
-
cart: Cart.Root | null;
|
|
419
|
-
status: SLICE_STATUS;
|
|
420
|
-
}
|
|
421
|
-
declare namespace Cart {
|
|
422
|
-
interface Root {
|
|
423
|
-
product_variants: ProductDetail.Root[];
|
|
424
|
-
total_amount: number;
|
|
425
|
-
total_quantity: number;
|
|
426
|
-
products_quantity: ProductsQuantity;
|
|
427
|
-
cart_count: number;
|
|
428
|
-
missing_items: {
|
|
429
|
-
[key: number]: number;
|
|
430
|
-
};
|
|
431
|
-
missing_cart_items: {
|
|
432
|
-
[key: string]: number;
|
|
433
|
-
};
|
|
434
|
-
customization_inputs: Array<CustomizationInput>;
|
|
435
|
-
total_coupon_discount: number;
|
|
436
|
-
variant_discounts: {
|
|
437
|
-
[key: number]: number;
|
|
438
|
-
};
|
|
439
|
-
total_shipping: number;
|
|
440
|
-
total_tax_amount: number;
|
|
441
|
-
applied_coupon: Coupon | {};
|
|
442
|
-
}
|
|
443
|
-
interface CustomizationInput {
|
|
444
|
-
id: number;
|
|
445
|
-
product_variant: number;
|
|
446
|
-
customization_option: number;
|
|
447
|
-
customer_wishlist: null;
|
|
448
|
-
customer_order: null;
|
|
449
|
-
customer_cart: number;
|
|
450
|
-
customer_input: string;
|
|
451
|
-
customization_option_name: string;
|
|
452
|
-
customization_option_type: string;
|
|
453
|
-
is_mandatory: boolean;
|
|
454
|
-
}
|
|
455
|
-
interface ProductsQuantity {
|
|
456
|
-
[key: number]: number;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
declare namespace Order {
|
|
461
|
-
interface Root {
|
|
462
|
-
id: number;
|
|
463
|
-
store: number;
|
|
464
|
-
customer: number;
|
|
465
|
-
total_amount: number;
|
|
466
|
-
paid_amount: number;
|
|
467
|
-
purchased_at: string;
|
|
468
|
-
purchased_products: PurchasedProduct[];
|
|
469
|
-
order_status: OrderStatus;
|
|
470
|
-
order_number: number;
|
|
471
|
-
payment_method: string | null;
|
|
472
|
-
shipping_address: string;
|
|
473
|
-
shipping_city: string;
|
|
474
|
-
shipping_state: string;
|
|
475
|
-
shipping_country: string;
|
|
476
|
-
shipping_zip: string;
|
|
477
|
-
tracking_id: string | null;
|
|
478
|
-
tracking_url: string | null;
|
|
479
|
-
delivery_date?: string;
|
|
480
|
-
delivered_at: string | null;
|
|
481
|
-
cancelled_at: string | null;
|
|
482
|
-
returned_at: string | null;
|
|
483
|
-
customer_details: CustomerDetails;
|
|
484
|
-
customer_name: string;
|
|
485
|
-
customer_phone: string;
|
|
486
|
-
}
|
|
487
|
-
interface OrderResponse {
|
|
488
|
-
currentPage: number;
|
|
489
|
-
totalPages: number;
|
|
490
|
-
results: Root[];
|
|
491
|
-
}
|
|
492
|
-
interface VariantAttributes {
|
|
493
|
-
size: {
|
|
494
|
-
name: string;
|
|
495
|
-
value: string;
|
|
496
|
-
};
|
|
497
|
-
color?: {
|
|
498
|
-
name: string;
|
|
499
|
-
value: string;
|
|
500
|
-
};
|
|
501
|
-
Color?: {
|
|
502
|
-
name: string;
|
|
503
|
-
value: string;
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
interface CustomerDetails {
|
|
507
|
-
name: string;
|
|
508
|
-
phone: string;
|
|
509
|
-
}
|
|
510
|
-
type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid";
|
|
511
|
-
interface OrderSummary {
|
|
512
|
-
id: number;
|
|
513
|
-
store: number;
|
|
514
|
-
customer: number;
|
|
515
|
-
total_amount: number;
|
|
516
|
-
paid_amount: number;
|
|
517
|
-
purchased_at: string;
|
|
518
|
-
purchased_products: PurchasedProduct[];
|
|
519
|
-
order_status: string;
|
|
520
|
-
order_number: number;
|
|
521
|
-
payment_method: string | null;
|
|
522
|
-
shipping_address: string;
|
|
523
|
-
shipping_city: string;
|
|
524
|
-
shipping_state: string;
|
|
525
|
-
shipping_country: string;
|
|
526
|
-
shipping_zip: string;
|
|
527
|
-
tracking_id: string | null;
|
|
528
|
-
tracking_url: string | null;
|
|
529
|
-
delivery_date: string | null;
|
|
530
|
-
delivered_at: string | null;
|
|
531
|
-
cancelled_at: string | null;
|
|
532
|
-
returned_at: string | null;
|
|
533
|
-
customer_email: string;
|
|
534
|
-
customer_name: string;
|
|
535
|
-
customer_phone: string;
|
|
536
|
-
shipped_at: string | null;
|
|
537
|
-
confirmed_at: string | null;
|
|
538
|
-
refunded_at: string | null;
|
|
539
|
-
store_address: string;
|
|
540
|
-
store_city: string;
|
|
541
|
-
store_state: string;
|
|
542
|
-
store_country: string;
|
|
543
|
-
store_zip: string;
|
|
544
|
-
cart_count: number;
|
|
545
|
-
razorpay_public_token: string;
|
|
546
|
-
razorpay_order_id: string;
|
|
547
|
-
razorpay_order_status: string;
|
|
548
|
-
razorpay_order_amount: number;
|
|
549
|
-
razorpay_order_currency: string;
|
|
550
|
-
razorpay_payment_id: string;
|
|
551
|
-
razorpay_signature: string;
|
|
552
|
-
store_color_scheme: {
|
|
553
|
-
primary: string;
|
|
554
|
-
secondary: string;
|
|
555
|
-
};
|
|
556
|
-
store_logo: string;
|
|
557
|
-
store_name: string;
|
|
558
|
-
shipping_amount: number;
|
|
559
|
-
phonepe_redirect_url: string;
|
|
560
|
-
stripe_client_secret: string;
|
|
561
|
-
stripe_payment_intent_id: string;
|
|
562
|
-
stripe_publishable_key: string;
|
|
563
|
-
total_coupon_discount: number;
|
|
564
|
-
stripe_payment_link_url: string;
|
|
565
|
-
tabby_redirect_url?: string;
|
|
566
|
-
}
|
|
567
|
-
interface PurchasedProduct {
|
|
568
|
-
product_id: number;
|
|
569
|
-
product_name: string;
|
|
570
|
-
product_variant_id: number;
|
|
571
|
-
product_variant_slug: string;
|
|
572
|
-
product_variant_name: string;
|
|
573
|
-
product_variant_sku: string;
|
|
574
|
-
quantity: number;
|
|
575
|
-
variant_price: number;
|
|
576
|
-
tax_percentage: number;
|
|
577
|
-
total_tax_price: number;
|
|
578
|
-
total_price: number;
|
|
579
|
-
variant_attributes: VariantAttributes;
|
|
580
|
-
product_variant_photo: Photos | null;
|
|
581
|
-
is_digital: boolean;
|
|
582
|
-
discount_amount: number;
|
|
583
|
-
}
|
|
584
|
-
interface StripePaymentStatus {
|
|
585
|
-
order_id: number;
|
|
586
|
-
order_status: string;
|
|
587
|
-
payment_link_id: string;
|
|
588
|
-
payment_link_url: string;
|
|
589
|
-
checkout_session_id: string;
|
|
590
|
-
status: string;
|
|
591
|
-
payment_status: string;
|
|
592
|
-
session_status: string;
|
|
593
|
-
amount_total: number;
|
|
594
|
-
currency: string;
|
|
595
|
-
customer_email: string | null;
|
|
596
|
-
payment_intent: string;
|
|
597
|
-
payment_link: string;
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
export { type ApplicableTarget as A, type BaseProduct as B, Cart as C, type DiscountType as D, type OperatingHours as O, type Photos as P, type SpecialHours as S, type TimeSlot as T, User as U, type ValueType as V, type WishlistState as W, type Attributes as a, type BookingService as b, type BookingServiceDate as c, type Brand as d, type CartState as e, Category as f, type Coupon as g, type CouponResponse as h, type CouponStatus as i, type Coupons as j, type CustomField as k, Order as l, Product as m, type ProductAttribute as n, ProductDetail as o, ADDRESS_FORM_SESSION_KEY as p, ALLOWED_COUNTRIES as q, DEFAULT_TOAST_CONFIG as r, PRODUCT_STATUSES as s, SLICE_STATUS as t, USER_CART as u, USER_CREDENTIALS as v, USER_CRED_REFRESH_TOKEN as w, USER_CRED_TOKEN as x, pathNameMap as y };
|
|
337
|
+
export { type Attributes as A, type BaseProduct as B, type CustomField as C, DEFAULT_TOAST_CONFIG as D, type OperatingHours as O, type Photos as P, type SpecialHours as S, type TimeSlot as T, USER_CART as U, type WishlistState as W, type BookingService as a, type BookingServiceDate as b, type Brand as c, Product as d, type ProductAttribute as e, ProductDetail as f, SLICE_STATUS as g, ADDRESS_FORM_SESSION_KEY as h, ALLOWED_COUNTRIES as i, PRODUCT_STATUSES as j, USER_CREDENTIALS as k, USER_CRED_REFRESH_TOKEN as l, USER_CRED_TOKEN as m, pathNameMap as p };
|
package/dist/store/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTTIQRDHX_cjs = require('../chunk-TTIQRDHX.cjs');
|
|
4
4
|
var chunkY2CPMT34_cjs = require('../chunk-Y2CPMT34.cjs');
|
|
5
5
|
require('../chunk-SMHJRNCR.cjs');
|
|
6
|
-
require('../chunk-
|
|
6
|
+
require('../chunk-7UK3E7SL.cjs');
|
|
7
7
|
var chunkDODFO744_cjs = require('../chunk-DODFO744.cjs');
|
|
8
8
|
require('../chunk-ECHV2JSY.cjs');
|
|
9
9
|
require('../chunk-BBRXE57K.cjs');
|
|
@@ -69,15 +69,15 @@ var useProductStore = zustand.create((set, get) => ({
|
|
|
69
69
|
|
|
70
70
|
Object.defineProperty(exports, "loginUser", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkTTIQRDHX_cjs.loginUser; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "useAuthStore", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkTTIQRDHX_cjs.useAuthStore; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "useCartStore", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkTTIQRDHX_cjs.useCartStore; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "useThemeData", {
|
|
83
83
|
enumerable: true,
|
package/dist/store/index.d.cts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import {
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import {
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-kJoawc_Z.cjs';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-CUuCTSVJ.cjs';
|
|
4
|
+
import { d as Product } from '../product-DJMdi4D4.cjs';
|
|
5
|
+
import { P as PageHeaderProps } from '../pixelEvents-C1rFPOwb.cjs';
|
|
5
6
|
import 'react-toastify';
|
|
6
|
-
import '../collections-
|
|
7
|
+
import '../collections-WzvTO0OQ.cjs';
|
|
8
|
+
import '../orders-CjNmCY5I.cjs';
|
|
7
9
|
|
|
8
10
|
interface CartStore extends CartState {
|
|
9
11
|
setCart: (cart: Cart.Root) => void;
|
package/dist/store/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import {
|
|
3
|
-
import { W as Wishlist } from '../wishlist-
|
|
4
|
-
import {
|
|
2
|
+
import { a as CartState, C as Cart, U as User } from '../cart-y-7RPmnQ.js';
|
|
3
|
+
import { W as Wishlist } from '../wishlist-DKYFZR0s.js';
|
|
4
|
+
import { d as Product } from '../product-DJMdi4D4.js';
|
|
5
|
+
import { P as PageHeaderProps } from '../pixelEvents-Bo-VjAx8.js';
|
|
5
6
|
import 'react-toastify';
|
|
6
|
-
import '../collections-
|
|
7
|
+
import '../collections-BDSVfRNo.js';
|
|
8
|
+
import '../orders-L_8eIkUS.js';
|
|
7
9
|
|
|
8
10
|
interface CartStore extends CartState {
|
|
9
11
|
setCart: (cart: Cart.Root) => void;
|
package/dist/store/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { loginUser, useAuthStore, useCartStore } from '../chunk-
|
|
1
|
+
export { loginUser, useAuthStore, useCartStore } from '../chunk-JRYWZMNT.js';
|
|
2
2
|
import { getWishlist, getProducts } from '../chunk-U25T7M6S.js';
|
|
3
3
|
import '../chunk-QAC72HKO.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-UVU7H4E6.js';
|
|
5
5
|
export { useThemeData } from '../chunk-5NUDTIQ2.js';
|
|
6
6
|
import '../chunk-3SYYP3XV.js';
|
|
7
7
|
import '../chunk-WEMNXIRS.js';
|
package/dist/utils/index.cjs
CHANGED
|
@@ -5,7 +5,8 @@ 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
7
|
var chunkBBRB475I_cjs = require('../chunk-BBRB475I.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkLJUGNSQQ_cjs = require('../chunk-LJUGNSQQ.cjs');
|
|
9
|
+
var chunkOTMTHA5C_cjs = require('../chunk-OTMTHA5C.cjs');
|
|
9
10
|
var chunkBBRXE57K_cjs = require('../chunk-BBRXE57K.cjs');
|
|
10
11
|
var chunkNE3ZHELZ_cjs = require('../chunk-NE3ZHELZ.cjs');
|
|
11
12
|
var chunkN3CTXRFT_cjs = require('../chunk-N3CTXRFT.cjs');
|
|
@@ -86,7 +87,7 @@ var constructPaymentPayload = async (amount, orderId, userId, phoneNumber, merch
|
|
|
86
87
|
const dataPayload = JSON.stringify(paymentPayload);
|
|
87
88
|
console.log(dataPayload);
|
|
88
89
|
const dataBase64 = Buffer.from(dataPayload).toString("base64");
|
|
89
|
-
const checksum = await
|
|
90
|
+
const checksum = await chunkOTMTHA5C_cjs.digestMessage(`${dataBase64}/pg/v1/pay${saltKey}`);
|
|
90
91
|
const finalChecksum = `${checksum}###${saltIndex}`;
|
|
91
92
|
return {
|
|
92
93
|
base64Payload: dataBase64,
|
|
@@ -94,7 +95,7 @@ var constructPaymentPayload = async (amount, orderId, userId, phoneNumber, merch
|
|
|
94
95
|
};
|
|
95
96
|
};
|
|
96
97
|
var createXVerifyHeader = async (merchantId, transactionId, saltKey, saltIndex) => {
|
|
97
|
-
const checksum = await
|
|
98
|
+
const checksum = await chunkOTMTHA5C_cjs.digestMessage(
|
|
98
99
|
`/pg/v1/status/${merchantId}/${transactionId}${saltKey}`
|
|
99
100
|
);
|
|
100
101
|
const finalChecksum = `${checksum}###${saltIndex}`;
|
|
@@ -370,91 +371,91 @@ Object.defineProperty(exports, "timeFromNow", {
|
|
|
370
371
|
});
|
|
371
372
|
Object.defineProperty(exports, "CacheManager", {
|
|
372
373
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunkLJUGNSQQ_cjs.CacheManager; }
|
|
374
375
|
});
|
|
375
376
|
Object.defineProperty(exports, "cache", {
|
|
376
377
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunkLJUGNSQQ_cjs.cache; }
|
|
378
379
|
});
|
|
379
380
|
Object.defineProperty(exports, "clearCache", {
|
|
380
381
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunkLJUGNSQQ_cjs.clearCache; }
|
|
382
383
|
});
|
|
383
|
-
Object.defineProperty(exports, "
|
|
384
|
+
Object.defineProperty(exports, "deleteCache", {
|
|
384
385
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunkLJUGNSQQ_cjs.deleteCache; }
|
|
386
387
|
});
|
|
387
|
-
Object.defineProperty(exports, "
|
|
388
|
+
Object.defineProperty(exports, "generateCacheKey", {
|
|
388
389
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunkLJUGNSQQ_cjs.generateCacheKey; }
|
|
390
391
|
});
|
|
391
|
-
Object.defineProperty(exports, "
|
|
392
|
+
Object.defineProperty(exports, "getCache", {
|
|
392
393
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunkLJUGNSQQ_cjs.getCache; }
|
|
394
395
|
});
|
|
395
|
-
Object.defineProperty(exports, "
|
|
396
|
+
Object.defineProperty(exports, "hasCache", {
|
|
396
397
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunkLJUGNSQQ_cjs.hasCache; }
|
|
398
399
|
});
|
|
399
|
-
Object.defineProperty(exports, "
|
|
400
|
+
Object.defineProperty(exports, "invalidateCache", {
|
|
400
401
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
402
|
+
get: function () { return chunkLJUGNSQQ_cjs.invalidateCache; }
|
|
402
403
|
});
|
|
403
|
-
Object.defineProperty(exports, "
|
|
404
|
+
Object.defineProperty(exports, "setCache", {
|
|
404
405
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
406
|
+
get: function () { return chunkLJUGNSQQ_cjs.setCache; }
|
|
406
407
|
});
|
|
407
|
-
Object.defineProperty(exports, "
|
|
408
|
+
Object.defineProperty(exports, "constructFilter", {
|
|
408
409
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
410
|
+
get: function () { return chunkOTMTHA5C_cjs.constructFilter; }
|
|
410
411
|
});
|
|
411
|
-
Object.defineProperty(exports, "
|
|
412
|
+
Object.defineProperty(exports, "convertObjectToParams", {
|
|
412
413
|
enumerable: true,
|
|
413
|
-
get: function () { return
|
|
414
|
+
get: function () { return chunkOTMTHA5C_cjs.convertObjectToParams; }
|
|
414
415
|
});
|
|
415
|
-
Object.defineProperty(exports, "
|
|
416
|
+
Object.defineProperty(exports, "convertToCurrency", {
|
|
416
417
|
enumerable: true,
|
|
417
|
-
get: function () { return
|
|
418
|
+
get: function () { return chunkOTMTHA5C_cjs.convertToCurrency; }
|
|
418
419
|
});
|
|
419
|
-
Object.defineProperty(exports, "
|
|
420
|
+
Object.defineProperty(exports, "digestMessage", {
|
|
420
421
|
enumerable: true,
|
|
421
|
-
get: function () { return
|
|
422
|
+
get: function () { return chunkOTMTHA5C_cjs.digestMessage; }
|
|
422
423
|
});
|
|
423
|
-
Object.defineProperty(exports, "
|
|
424
|
+
Object.defineProperty(exports, "formatDateTime", {
|
|
424
425
|
enumerable: true,
|
|
425
|
-
get: function () { return
|
|
426
|
+
get: function () { return chunkOTMTHA5C_cjs.formatDateTime; }
|
|
426
427
|
});
|
|
427
|
-
Object.defineProperty(exports, "
|
|
428
|
+
Object.defineProperty(exports, "formatPostalLabel", {
|
|
428
429
|
enumerable: true,
|
|
429
|
-
get: function () { return
|
|
430
|
+
get: function () { return chunkOTMTHA5C_cjs.formatPostalLabel; }
|
|
430
431
|
});
|
|
431
|
-
Object.defineProperty(exports, "
|
|
432
|
+
Object.defineProperty(exports, "getAddressMeta", {
|
|
432
433
|
enumerable: true,
|
|
433
|
-
get: function () { return
|
|
434
|
+
get: function () { return chunkOTMTHA5C_cjs.getAddressMeta; }
|
|
434
435
|
});
|
|
435
|
-
Object.defineProperty(exports, "
|
|
436
|
+
Object.defineProperty(exports, "getDelayInMilliseconds", {
|
|
436
437
|
enumerable: true,
|
|
437
|
-
get: function () { return
|
|
438
|
+
get: function () { return chunkOTMTHA5C_cjs.getDelayInMilliseconds; }
|
|
438
439
|
});
|
|
439
|
-
Object.defineProperty(exports, "
|
|
440
|
+
Object.defineProperty(exports, "getParamsFromURL", {
|
|
440
441
|
enumerable: true,
|
|
441
|
-
get: function () { return
|
|
442
|
+
get: function () { return chunkOTMTHA5C_cjs.getParamsFromURL; }
|
|
442
443
|
});
|
|
443
|
-
Object.defineProperty(exports, "
|
|
444
|
+
Object.defineProperty(exports, "getQueryParams", {
|
|
444
445
|
enumerable: true,
|
|
445
|
-
get: function () { return
|
|
446
|
+
get: function () { return chunkOTMTHA5C_cjs.getQueryParams; }
|
|
446
447
|
});
|
|
447
|
-
Object.defineProperty(exports, "
|
|
448
|
+
Object.defineProperty(exports, "pluralize", {
|
|
448
449
|
enumerable: true,
|
|
449
|
-
get: function () { return
|
|
450
|
+
get: function () { return chunkOTMTHA5C_cjs.pluralize; }
|
|
450
451
|
});
|
|
451
|
-
Object.defineProperty(exports, "
|
|
452
|
+
Object.defineProperty(exports, "pushParamsToURL", {
|
|
452
453
|
enumerable: true,
|
|
453
|
-
get: function () { return
|
|
454
|
+
get: function () { return chunkOTMTHA5C_cjs.pushParamsToURL; }
|
|
454
455
|
});
|
|
455
456
|
Object.defineProperty(exports, "shareLink", {
|
|
456
457
|
enumerable: true,
|
|
457
|
-
get: function () { return
|
|
458
|
+
get: function () { return chunkOTMTHA5C_cjs.shareLink; }
|
|
458
459
|
});
|
|
459
460
|
Object.defineProperty(exports, "Auth", {
|
|
460
461
|
enumerable: true,
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-DJMdi4D4.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-DJMdi4D4.cjs';
|
|
3
|
+
import { C as Cart } from '../cart-kJoawc_Z.cjs';
|
|
3
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';
|
|
4
|
-
import { S as SectionFilters } from '../pixelEvents-
|
|
5
|
-
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-
|
|
5
|
+
import { S as SectionFilters } from '../pixelEvents-C1rFPOwb.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-C1rFPOwb.cjs';
|
|
6
7
|
import { AxiosResponse } from 'axios';
|
|
7
8
|
import { a as PhonePe } from '../phonepe-dWMLZel6.cjs';
|
|
8
9
|
import 'react-toastify';
|
|
9
|
-
import '../collections-
|
|
10
|
+
import '../collections-WzvTO0OQ.cjs';
|
|
11
|
+
import '../orders-CjNmCY5I.cjs';
|
|
10
12
|
|
|
11
13
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
|
12
14
|
declare const Auth: {
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { f as ProductDetail, O as OperatingHours, T as TimeSlot, A as Attributes } from '../product-DJMdi4D4.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-DJMdi4D4.js';
|
|
3
|
+
import { C as Cart } from '../cart-y-7RPmnQ.js';
|
|
3
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';
|
|
4
|
-
import { S as SectionFilters } from '../pixelEvents-
|
|
5
|
-
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-
|
|
5
|
+
import { S as SectionFilters } from '../pixelEvents-Bo-VjAx8.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-Bo-VjAx8.js';
|
|
6
7
|
import { AxiosResponse } from 'axios';
|
|
7
8
|
import { a as PhonePe } from '../phonepe-dWMLZel6.js';
|
|
8
9
|
import 'react-toastify';
|
|
9
|
-
import '../collections-
|
|
10
|
+
import '../collections-BDSVfRNo.js';
|
|
11
|
+
import '../orders-L_8eIkUS.js';
|
|
10
12
|
|
|
11
13
|
declare function setAuthTokenChangeCallback(callback: (token: string | undefined) => void): void;
|
|
12
14
|
declare const Auth: {
|
package/dist/utils/index.js
CHANGED
|
@@ -3,8 +3,9 @@ export { findMatchingVariant, findSimilarVariant, isColorVariantType, isVariantC
|
|
|
3
3
|
export { cart_default as LocalCart } from '../chunk-QAC72HKO.js';
|
|
4
4
|
export { pixelEvents } from '../chunk-WFDKKOO7.js';
|
|
5
5
|
export { isExpired, timeFromNow } from '../chunk-HSF2D56O.js';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export { CacheManager, cache, clearCache, deleteCache, generateCacheKey, getCache, hasCache, invalidateCache, setCache } from '../chunk-OSM73ETC.js';
|
|
7
|
+
import { digestMessage } from '../chunk-F45S7UWC.js';
|
|
8
|
+
export { constructFilter, convertObjectToParams, convertToCurrency, digestMessage, formatDateTime, formatPostalLabel, getAddressMeta, getDelayInMilliseconds, getParamsFromURL, getQueryParams, pluralize, pushParamsToURL, shareLink } from '../chunk-F45S7UWC.js';
|
|
8
9
|
export { auth_default as Auth, setAuthTokenChangeCallback } from '../chunk-WEMNXIRS.js';
|
|
9
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';
|
|
10
11
|
import { getPhonePeApiEndpoint, getPublicApiEndpoint } from '../chunk-JQMLHRWL.js';
|