@storepecker/storefront-core 2.10.0 → 2.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/api/index.cjs +20 -20
  2. package/dist/api/index.d.cts +8 -15
  3. package/dist/api/index.d.ts +8 -15
  4. package/dist/api/index.js +2 -2
  5. package/dist/{buy-now-kII0KrhP.d.ts → buy-now-CDug6LJ_.d.ts} +1 -1
  6. package/dist/{buy-now-B_15RUVT.d.cts → buy-now-DrKY5_9R.d.cts} +1 -1
  7. package/dist/checkout/index.cjs +92 -98
  8. package/dist/checkout/index.d.cts +17 -30
  9. package/dist/checkout/index.d.ts +17 -30
  10. package/dist/checkout/index.js +48 -63
  11. package/dist/{pincode-Ch3bZSJz.d.cts → checkout-totals-CbmXM9L7.d.cts} +42 -1
  12. package/dist/{pincode-CHM-ZD3H.d.ts → checkout-totals-DU8l-Wyb.d.ts} +42 -1
  13. package/dist/{chunk-NQZ5GUOG.cjs → chunk-3YPE6UPC.cjs} +24 -16
  14. package/dist/{chunk-Y4RNRPBC.js → chunk-DZPK7GPG.js} +58 -2
  15. package/dist/{chunk-TH7OAMGC.js → chunk-E4D4XOAE.js} +24 -16
  16. package/dist/{chunk-NRPK5GCJ.cjs → chunk-EFYAFXIS.cjs} +3 -3
  17. package/dist/{chunk-NOT6VKXA.cjs → chunk-H6UZTS5O.cjs} +67 -23
  18. package/dist/{chunk-ZAWZ3RB6.js → chunk-NNE42NMP.js} +1 -1
  19. package/dist/{chunk-QED6QJZC.cjs → chunk-PN6KH5PX.cjs} +59 -1
  20. package/dist/{chunk-QQHQTBAM.js → chunk-QSRVMOXT.js} +48 -6
  21. package/dist/{collections-CXgOv5_G.d.cts → collections-CKNFcE2d.d.cts} +1 -1
  22. package/dist/{collections-CNh2OGbl.d.ts → collections-CtRKsWVx.d.ts} +1 -1
  23. package/dist/components/digital-product-download-modal.d.cts +2 -2
  24. package/dist/components/digital-product-download-modal.d.ts +2 -2
  25. package/dist/components/index.d.cts +4 -5
  26. package/dist/components/index.d.ts +4 -5
  27. package/dist/components/share-button.d.cts +1 -1
  28. package/dist/components/share-button.d.ts +1 -1
  29. package/dist/components/theme-data-initializer.d.cts +4 -5
  30. package/dist/components/theme-data-initializer.d.ts +4 -5
  31. package/dist/hooks/index.cjs +62 -58
  32. package/dist/hooks/index.d.cts +9 -7
  33. package/dist/hooks/index.d.ts +9 -7
  34. package/dist/hooks/index.js +8 -5
  35. package/dist/{instagram-DalreBu6.d.cts → instagram-CSzrxk10.d.cts} +8 -2
  36. package/dist/{instagram-BADLnNQ3.d.ts → instagram-CagTLmyq.d.ts} +8 -2
  37. package/dist/models/index.d.cts +6 -7
  38. package/dist/models/index.d.ts +6 -7
  39. package/dist/orders-B6BmHCJN.d.ts +337 -0
  40. package/dist/orders-ZKP0lqRN.d.cts +337 -0
  41. package/dist/{pixelEvents-Ds6fwS9t.d.ts → pixelEvents-DqJ_CEEr.d.ts} +3 -4
  42. package/dist/{pixelEvents-COqZIgTu.d.cts → pixelEvents-bahgVW4_.d.cts} +3 -4
  43. package/dist/{product-D9liEtl4.d.cts → product-D4kol-Z-.d.cts} +26 -2
  44. package/dist/{product-D9liEtl4.d.ts → product-D4kol-Z-.d.ts} +26 -2
  45. package/dist/store/index.cjs +20 -30
  46. package/dist/store/index.d.cts +21 -7
  47. package/dist/store/index.d.ts +21 -7
  48. package/dist/store/index.js +9 -26
  49. package/dist/utils/index.cjs +2 -2
  50. package/dist/utils/index.d.cts +14 -8
  51. package/dist/utils/index.d.ts +14 -8
  52. package/dist/utils/index.js +1 -1
  53. package/dist/{wishlist-Cj0sQxiY.d.ts → wishlist-L3fM5-ie.d.ts} +1 -1
  54. package/dist/{wishlist-BakHvIFN.d.cts → wishlist-_0x0r1jt.d.cts} +1 -1
  55. package/package.json +1 -1
  56. package/dist/cart-DZq1ZEnE.d.ts +0 -153
  57. package/dist/cart-DwMFBmpC.d.cts +0 -153
  58. package/dist/orders-B3G4CyhH.d.cts +0 -166
  59. package/dist/orders-Bl-Slh72.d.ts +0 -166
@@ -1,153 +0,0 @@
1
- import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-D9liEtl4.js';
2
-
3
- declare namespace User {
4
- interface Root {
5
- customer_name: string;
6
- phone: string;
7
- email: string;
8
- date_of_birth: string;
9
- country_code: string;
10
- gender: string;
11
- }
12
- interface UserState {
13
- user: LoginUserData | null;
14
- isAuthenticated: boolean;
15
- status: SLICE_STATUS;
16
- }
17
- interface LoginUserData {
18
- email: string;
19
- first_name: string;
20
- last_name: string;
21
- access: string;
22
- refresh: string;
23
- user_id: number;
24
- phone_number: string;
25
- }
26
- interface UserDetailsPayload {
27
- customer_name: string;
28
- gender: string;
29
- date_of_birth: string;
30
- }
31
- type LoginMethod = "email_otp" | "phone_otp";
32
- }
33
-
34
- declare namespace Category {
35
- interface Root {
36
- id: number;
37
- name: string;
38
- photo: string;
39
- slug: string;
40
- description: string;
41
- children?: Root[];
42
- }
43
- interface CategoriesState {
44
- data: Root[];
45
- status: SLICE_STATUS;
46
- }
47
- }
48
-
49
- type DiscountType = "discount";
50
- type ValueType = "percentage" | "fixed";
51
- type ApplicableTarget = "product_category" | "product_variant" | "product_bundle" | "customer";
52
- type CouponStatus = "active" | "inactive" | "expired";
53
- interface Coupon {
54
- id: number;
55
- coupon_code: string;
56
- discount_type: DiscountType;
57
- value: string;
58
- value_type: ValueType;
59
- min_order_amount: string;
60
- max_discount_amount: string;
61
- start_date: string;
62
- end_date: string;
63
- status: CouponStatus;
64
- is_deleted: boolean;
65
- usage_limit: number;
66
- usage_count: number;
67
- applicable_target: ApplicableTarget;
68
- applicable_product_variants: Product.ProductVariant[];
69
- applicable_product_bundles: any[];
70
- applicable_product_categories: Category.Root[];
71
- applicable_customers: User.Root[];
72
- auto_apply: boolean;
73
- created_at: string;
74
- updated_at: string;
75
- is_cart_applicable: boolean;
76
- coupon_message: string;
77
- }
78
- type Coupons = Coupon[];
79
- interface CouponResponse {
80
- coupon: Coupon;
81
- }
82
-
83
- interface CartState {
84
- cart: Cart.Root | null;
85
- total_quantity: number;
86
- status: SLICE_STATUS;
87
- }
88
- declare namespace Cart {
89
- interface Root {
90
- product_variants: ProductDetail.Root[];
91
- total_amount: number;
92
- total_quantity: number;
93
- products_quantity: ProductsQuantity;
94
- cart_count: number;
95
- missing_items: {
96
- [key: number]: number;
97
- };
98
- missing_cart_items: {
99
- [key: string]: number;
100
- };
101
- customization_inputs: Array<CustomizationInput>;
102
- total_coupon_discount: number;
103
- variant_discounts: {
104
- [key: number]: number;
105
- };
106
- total_shipping: number;
107
- total_tax_amount: number;
108
- applied_coupon: Coupon | {};
109
- shipping_options: ShippingOption[];
110
- selected_shipping_option_id: number | null;
111
- selected_address_id: number | null;
112
- split_preview?: {
113
- has_split: boolean;
114
- regular_total: string;
115
- preorder_total: string;
116
- preorder_ship_days: number;
117
- } | null;
118
- }
119
- interface CustomizationInput {
120
- id: number;
121
- product_variant: number;
122
- customization_option: number;
123
- customer_wishlist: null;
124
- customer_order: null;
125
- customer_cart: number;
126
- customer_input: string;
127
- customization_option_name: string;
128
- customization_option_type: string;
129
- is_mandatory: boolean;
130
- }
131
- interface ProductsQuantity {
132
- [key: number]: number;
133
- }
134
- interface ShippingOption {
135
- id: number;
136
- name: string;
137
- description: string;
138
- pricing_type: string;
139
- base_price: string;
140
- shipping_profile: number | null;
141
- shipping_partner: string;
142
- estimated_days_min: number;
143
- estimated_days_max: number;
144
- display_order: number;
145
- is_active: boolean;
146
- allowed_zones: any[];
147
- price: string | null;
148
- price_note: string | null;
149
- estimated_delivery: string | null;
150
- }
151
- }
152
-
153
- export { type ApplicableTarget as A, Cart as C, type DiscountType as D, User as U, type ValueType as V, type CartState as a, Category as b, type Coupon as c, type CouponResponse as d, type CouponStatus as e, type Coupons as f };
@@ -1,153 +0,0 @@
1
- import { g as SLICE_STATUS, d as Product, f as ProductDetail } from './product-D9liEtl4.cjs';
2
-
3
- declare namespace User {
4
- interface Root {
5
- customer_name: string;
6
- phone: string;
7
- email: string;
8
- date_of_birth: string;
9
- country_code: string;
10
- gender: string;
11
- }
12
- interface UserState {
13
- user: LoginUserData | null;
14
- isAuthenticated: boolean;
15
- status: SLICE_STATUS;
16
- }
17
- interface LoginUserData {
18
- email: string;
19
- first_name: string;
20
- last_name: string;
21
- access: string;
22
- refresh: string;
23
- user_id: number;
24
- phone_number: string;
25
- }
26
- interface UserDetailsPayload {
27
- customer_name: string;
28
- gender: string;
29
- date_of_birth: string;
30
- }
31
- type LoginMethod = "email_otp" | "phone_otp";
32
- }
33
-
34
- declare namespace Category {
35
- interface Root {
36
- id: number;
37
- name: string;
38
- photo: string;
39
- slug: string;
40
- description: string;
41
- children?: Root[];
42
- }
43
- interface CategoriesState {
44
- data: Root[];
45
- status: SLICE_STATUS;
46
- }
47
- }
48
-
49
- type DiscountType = "discount";
50
- type ValueType = "percentage" | "fixed";
51
- type ApplicableTarget = "product_category" | "product_variant" | "product_bundle" | "customer";
52
- type CouponStatus = "active" | "inactive" | "expired";
53
- interface Coupon {
54
- id: number;
55
- coupon_code: string;
56
- discount_type: DiscountType;
57
- value: string;
58
- value_type: ValueType;
59
- min_order_amount: string;
60
- max_discount_amount: string;
61
- start_date: string;
62
- end_date: string;
63
- status: CouponStatus;
64
- is_deleted: boolean;
65
- usage_limit: number;
66
- usage_count: number;
67
- applicable_target: ApplicableTarget;
68
- applicable_product_variants: Product.ProductVariant[];
69
- applicable_product_bundles: any[];
70
- applicable_product_categories: Category.Root[];
71
- applicable_customers: User.Root[];
72
- auto_apply: boolean;
73
- created_at: string;
74
- updated_at: string;
75
- is_cart_applicable: boolean;
76
- coupon_message: string;
77
- }
78
- type Coupons = Coupon[];
79
- interface CouponResponse {
80
- coupon: Coupon;
81
- }
82
-
83
- interface CartState {
84
- cart: Cart.Root | null;
85
- total_quantity: number;
86
- status: SLICE_STATUS;
87
- }
88
- declare namespace Cart {
89
- interface Root {
90
- product_variants: ProductDetail.Root[];
91
- total_amount: number;
92
- total_quantity: number;
93
- products_quantity: ProductsQuantity;
94
- cart_count: number;
95
- missing_items: {
96
- [key: number]: number;
97
- };
98
- missing_cart_items: {
99
- [key: string]: number;
100
- };
101
- customization_inputs: Array<CustomizationInput>;
102
- total_coupon_discount: number;
103
- variant_discounts: {
104
- [key: number]: number;
105
- };
106
- total_shipping: number;
107
- total_tax_amount: number;
108
- applied_coupon: Coupon | {};
109
- shipping_options: ShippingOption[];
110
- selected_shipping_option_id: number | null;
111
- selected_address_id: number | null;
112
- split_preview?: {
113
- has_split: boolean;
114
- regular_total: string;
115
- preorder_total: string;
116
- preorder_ship_days: number;
117
- } | null;
118
- }
119
- interface CustomizationInput {
120
- id: number;
121
- product_variant: number;
122
- customization_option: number;
123
- customer_wishlist: null;
124
- customer_order: null;
125
- customer_cart: number;
126
- customer_input: string;
127
- customization_option_name: string;
128
- customization_option_type: string;
129
- is_mandatory: boolean;
130
- }
131
- interface ProductsQuantity {
132
- [key: number]: number;
133
- }
134
- interface ShippingOption {
135
- id: number;
136
- name: string;
137
- description: string;
138
- pricing_type: string;
139
- base_price: string;
140
- shipping_profile: number | null;
141
- shipping_partner: string;
142
- estimated_days_min: number;
143
- estimated_days_max: number;
144
- display_order: number;
145
- is_active: boolean;
146
- allowed_zones: any[];
147
- price: string | null;
148
- price_note: string | null;
149
- estimated_delivery: string | null;
150
- }
151
- }
152
-
153
- export { type ApplicableTarget as A, Cart as C, type DiscountType as D, User as U, type ValueType as V, type CartState as a, Category as b, type Coupon as c, type CouponResponse as d, type CouponStatus as e, type Coupons as f };
@@ -1,166 +0,0 @@
1
- import { P as Photos } from './product-D9liEtl4.cjs';
2
-
3
- declare namespace Order {
4
- interface Root {
5
- id: number;
6
- store: number;
7
- customer: number;
8
- total_amount: number;
9
- paid_amount: number;
10
- purchased_at: string;
11
- purchased_products: PurchasedProduct[];
12
- order_status: OrderStatus;
13
- order_number: number;
14
- order_ref: string;
15
- payment_method: string | null;
16
- cod_amount?: number;
17
- shipping_address: string;
18
- shipping_city: string;
19
- shipping_state: string;
20
- shipping_country: string;
21
- shipping_zip: string;
22
- tracking_id: string | null;
23
- tracking_url: string | null;
24
- delivery_date?: string;
25
- delivered_at: string | null;
26
- cancelled_at: string | null;
27
- returned_at: string | null;
28
- customer_details: CustomerDetails;
29
- customer_name: string;
30
- customer_phone: string;
31
- linked_order: number;
32
- linked_orders: {
33
- id: number;
34
- order_number: number;
35
- is_preorder: boolean;
36
- total_amount: number;
37
- }[];
38
- is_preorder: boolean;
39
- selected_shipping_option_name: string;
40
- shipping_amount: number;
41
- }
42
- interface OrderResponse {
43
- currentPage: number;
44
- totalPages: number;
45
- results: Root[];
46
- }
47
- interface VariantAttributes {
48
- size: {
49
- name: string;
50
- value: string;
51
- };
52
- color?: {
53
- name: string;
54
- value: string;
55
- };
56
- Color?: {
57
- name: string;
58
- value: string;
59
- };
60
- }
61
- interface CustomerDetails {
62
- name: string;
63
- phone: string;
64
- }
65
- type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid" | "payment_pending" | "refunded" | "returned";
66
- interface OrderSummary {
67
- id: number;
68
- store: number;
69
- customer: number;
70
- total_amount: number;
71
- paid_amount: number;
72
- purchased_at: string;
73
- purchased_products: PurchasedProduct[];
74
- order_status: string;
75
- order_number: number;
76
- order_ref: string;
77
- payment_method: string | null;
78
- shipping_address: string;
79
- shipping_city: string;
80
- shipping_state: string;
81
- shipping_country: string;
82
- shipping_zip: string;
83
- tracking_id: string | null;
84
- tracking_url: string | null;
85
- delivery_date: string | null;
86
- delivered_at: string | null;
87
- cancelled_at: string | null;
88
- returned_at: string | null;
89
- customer_email: string;
90
- customer_name: string;
91
- customer_phone: string;
92
- shipped_at: string | null;
93
- confirmed_at: string | null;
94
- refunded_at: string | null;
95
- store_address: string;
96
- store_city: string;
97
- store_state: string;
98
- store_country: string;
99
- store_zip: string;
100
- cart_count: number;
101
- razorpay_public_token: string;
102
- razorpay_order_id: string;
103
- razorpay_order_status: string;
104
- razorpay_order_amount: number;
105
- razorpay_order_currency: string;
106
- razorpay_payment_id: string;
107
- razorpay_signature: string;
108
- store_color_scheme: {
109
- primary: string;
110
- secondary: string;
111
- };
112
- store_logo: string;
113
- store_name: string;
114
- shipping_amount: number;
115
- phonepe_redirect_url: string;
116
- stripe_client_secret: string;
117
- stripe_payment_intent_id: string;
118
- stripe_publishable_key: string;
119
- total_coupon_discount: number;
120
- stripe_payment_link_url: string;
121
- tabby_redirect_url?: string;
122
- linked_order: number;
123
- linked_orders: {
124
- id: number;
125
- order_number: number;
126
- is_preorder: boolean;
127
- total_amount: number;
128
- }[];
129
- is_preorder: boolean;
130
- cod_amount: number;
131
- }
132
- interface PurchasedProduct {
133
- product_id: number;
134
- product_name: string;
135
- product_variant_id: number;
136
- product_variant_slug: string;
137
- product_variant_name: string;
138
- product_variant_sku: string;
139
- quantity: number;
140
- variant_price: number;
141
- tax_percentage: number;
142
- total_tax_price: number;
143
- total_price: number;
144
- variant_attributes: VariantAttributes;
145
- product_variant_photo: Photos | null;
146
- is_digital: boolean;
147
- discount_amount: number;
148
- }
149
- interface StripePaymentStatus {
150
- order_id: number;
151
- order_status: string;
152
- payment_link_id: string;
153
- payment_link_url: string;
154
- checkout_session_id: string;
155
- status: string;
156
- payment_status: string;
157
- session_status: string;
158
- amount_total: number;
159
- currency: string;
160
- customer_email: string | null;
161
- payment_intent: string;
162
- payment_link: string;
163
- }
164
- }
165
-
166
- export { Order as O };
@@ -1,166 +0,0 @@
1
- import { P as Photos } from './product-D9liEtl4.js';
2
-
3
- declare namespace Order {
4
- interface Root {
5
- id: number;
6
- store: number;
7
- customer: number;
8
- total_amount: number;
9
- paid_amount: number;
10
- purchased_at: string;
11
- purchased_products: PurchasedProduct[];
12
- order_status: OrderStatus;
13
- order_number: number;
14
- order_ref: string;
15
- payment_method: string | null;
16
- cod_amount?: number;
17
- shipping_address: string;
18
- shipping_city: string;
19
- shipping_state: string;
20
- shipping_country: string;
21
- shipping_zip: string;
22
- tracking_id: string | null;
23
- tracking_url: string | null;
24
- delivery_date?: string;
25
- delivered_at: string | null;
26
- cancelled_at: string | null;
27
- returned_at: string | null;
28
- customer_details: CustomerDetails;
29
- customer_name: string;
30
- customer_phone: string;
31
- linked_order: number;
32
- linked_orders: {
33
- id: number;
34
- order_number: number;
35
- is_preorder: boolean;
36
- total_amount: number;
37
- }[];
38
- is_preorder: boolean;
39
- selected_shipping_option_name: string;
40
- shipping_amount: number;
41
- }
42
- interface OrderResponse {
43
- currentPage: number;
44
- totalPages: number;
45
- results: Root[];
46
- }
47
- interface VariantAttributes {
48
- size: {
49
- name: string;
50
- value: string;
51
- };
52
- color?: {
53
- name: string;
54
- value: string;
55
- };
56
- Color?: {
57
- name: string;
58
- value: string;
59
- };
60
- }
61
- interface CustomerDetails {
62
- name: string;
63
- phone: string;
64
- }
65
- type OrderStatus = "pending" | "confirmed" | "packed" | "shipped" | "delivered" | "cancelled" | "failed" | "paid" | "payment_pending" | "refunded" | "returned";
66
- interface OrderSummary {
67
- id: number;
68
- store: number;
69
- customer: number;
70
- total_amount: number;
71
- paid_amount: number;
72
- purchased_at: string;
73
- purchased_products: PurchasedProduct[];
74
- order_status: string;
75
- order_number: number;
76
- order_ref: string;
77
- payment_method: string | null;
78
- shipping_address: string;
79
- shipping_city: string;
80
- shipping_state: string;
81
- shipping_country: string;
82
- shipping_zip: string;
83
- tracking_id: string | null;
84
- tracking_url: string | null;
85
- delivery_date: string | null;
86
- delivered_at: string | null;
87
- cancelled_at: string | null;
88
- returned_at: string | null;
89
- customer_email: string;
90
- customer_name: string;
91
- customer_phone: string;
92
- shipped_at: string | null;
93
- confirmed_at: string | null;
94
- refunded_at: string | null;
95
- store_address: string;
96
- store_city: string;
97
- store_state: string;
98
- store_country: string;
99
- store_zip: string;
100
- cart_count: number;
101
- razorpay_public_token: string;
102
- razorpay_order_id: string;
103
- razorpay_order_status: string;
104
- razorpay_order_amount: number;
105
- razorpay_order_currency: string;
106
- razorpay_payment_id: string;
107
- razorpay_signature: string;
108
- store_color_scheme: {
109
- primary: string;
110
- secondary: string;
111
- };
112
- store_logo: string;
113
- store_name: string;
114
- shipping_amount: number;
115
- phonepe_redirect_url: string;
116
- stripe_client_secret: string;
117
- stripe_payment_intent_id: string;
118
- stripe_publishable_key: string;
119
- total_coupon_discount: number;
120
- stripe_payment_link_url: string;
121
- tabby_redirect_url?: string;
122
- linked_order: number;
123
- linked_orders: {
124
- id: number;
125
- order_number: number;
126
- is_preorder: boolean;
127
- total_amount: number;
128
- }[];
129
- is_preorder: boolean;
130
- cod_amount: number;
131
- }
132
- interface PurchasedProduct {
133
- product_id: number;
134
- product_name: string;
135
- product_variant_id: number;
136
- product_variant_slug: string;
137
- product_variant_name: string;
138
- product_variant_sku: string;
139
- quantity: number;
140
- variant_price: number;
141
- tax_percentage: number;
142
- total_tax_price: number;
143
- total_price: number;
144
- variant_attributes: VariantAttributes;
145
- product_variant_photo: Photos | null;
146
- is_digital: boolean;
147
- discount_amount: number;
148
- }
149
- interface StripePaymentStatus {
150
- order_id: number;
151
- order_status: string;
152
- payment_link_id: string;
153
- payment_link_url: string;
154
- checkout_session_id: string;
155
- status: string;
156
- payment_status: string;
157
- session_status: string;
158
- amount_total: number;
159
- currency: string;
160
- customer_email: string | null;
161
- payment_intent: string;
162
- payment_link: string;
163
- }
164
- }
165
-
166
- export { Order as O };