@storepecker/storefront-core 2.9.1 → 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.
- package/dist/address-BdIB6IuI.d.cts +42 -0
- package/dist/address-BdIB6IuI.d.ts +42 -0
- package/dist/api/index.cjs +36 -32
- package/dist/api/index.d.cts +20 -17
- package/dist/api/index.d.ts +20 -17
- package/dist/api/index.js +4 -4
- package/dist/{buy-now-BqVWXyy8.d.cts → buy-now-CDug6LJ_.d.ts} +2 -2
- package/dist/{buy-now-DFdnuLjO.d.ts → buy-now-DrKY5_9R.d.cts} +2 -2
- package/dist/checkout/index.cjs +163 -76
- package/dist/checkout/index.d.cts +37 -26
- package/dist/checkout/index.d.ts +37 -26
- package/dist/checkout/index.js +50 -64
- package/dist/checkout-totals-CbmXM9L7.d.cts +220 -0
- package/dist/checkout-totals-DU8l-Wyb.d.ts +220 -0
- package/dist/{chunk-IG4BW3ZB.cjs → chunk-32X4SWN4.cjs} +3 -3
- package/dist/{chunk-NQZ5GUOG.cjs → chunk-3YPE6UPC.cjs} +24 -16
- package/dist/{chunk-RDUT4W3B.cjs → chunk-6APRQ2ED.cjs} +4 -1
- package/dist/{chunk-ICKTXS6B.js → chunk-6IXTFZFS.js} +3 -3
- package/dist/{chunk-7M5CVYZJ.js → chunk-A7EI7XLU.js} +8 -1
- package/dist/chunk-DZPK7GPG.js +601 -0
- package/dist/{chunk-TH7OAMGC.js → chunk-E4D4XOAE.js} +24 -16
- package/dist/{chunk-NRPK5GCJ.cjs → chunk-EFYAFXIS.cjs} +3 -3
- package/dist/{chunk-CBKJ3Y2I.js → chunk-EWZ7TGI7.js} +11 -1
- package/dist/{chunk-5XVHYPOC.js → chunk-FF5N7PTB.js} +1 -1
- package/dist/{chunk-NOT6VKXA.cjs → chunk-H6UZTS5O.cjs} +67 -23
- package/dist/{chunk-XFOUNOKO.cjs → chunk-KNG4OMS5.cjs} +8 -0
- package/dist/{chunk-ZAWZ3RB6.js → chunk-NNE42NMP.js} +1 -1
- package/dist/chunk-PN6KH5PX.cjs +661 -0
- package/dist/{chunk-QQHQTBAM.js → chunk-QSRVMOXT.js} +48 -6
- package/dist/{chunk-W6BDMNSU.js → chunk-QVO56X4E.js} +1 -1
- package/dist/{chunk-6LS5F4R3.cjs → chunk-SGJUMI3M.cjs} +11 -0
- package/dist/{chunk-YLLAP3H2.cjs → chunk-SGKLMS7W.cjs} +2 -2
- package/dist/{chunk-ZGMLOLTC.js → chunk-VRZRV2BR.js} +4 -1
- package/dist/{chunk-IVKJJLG7.cjs → chunk-WWJAPKRQ.cjs} +8 -8
- package/dist/{collections-CXgOv5_G.d.cts → collections-CKNFcE2d.d.cts} +1 -1
- package/dist/{collections-CNh2OGbl.d.ts → collections-CtRKsWVx.d.ts} +1 -1
- package/dist/components/address-form.cjs +6 -6
- package/dist/components/address-form.d.cts +10 -6
- package/dist/components/address-form.d.ts +10 -6
- package/dist/components/address-form.js +5 -5
- 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 +8 -8
- package/dist/components/index.d.cts +6 -7
- package/dist/components/index.d.ts +6 -7
- package/dist/components/index.js +6 -6
- package/dist/components/search-dropdown.d.cts +4 -4
- package/dist/components/search-dropdown.d.ts +4 -4
- package/dist/components/share-button.cjs +3 -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 +2 -2
- package/dist/components/theme-data-initializer.d.cts +4 -5
- package/dist/components/theme-data-initializer.d.ts +4 -5
- package/dist/hooks/index.cjs +672 -44
- package/dist/hooks/index.d.cts +239 -13
- package/dist/hooks/index.d.ts +239 -13
- package/dist/hooks/index.js +630 -11
- package/dist/{instagram-DalreBu6.d.cts → instagram-CSzrxk10.d.cts} +8 -2
- package/dist/{instagram-BADLnNQ3.d.ts → instagram-CagTLmyq.d.ts} +8 -2
- package/dist/models/index.d.cts +8 -8
- package/dist/models/index.d.ts +8 -8
- package/dist/orders-B6BmHCJN.d.ts +337 -0
- package/dist/orders-ZKP0lqRN.d.cts +337 -0
- package/dist/pincode-8u7yWLpQ.d.cts +29 -0
- package/dist/pincode-8u7yWLpQ.d.ts +29 -0
- package/dist/{pixelEvents-LsealscG.d.ts → pixelEvents-DqJ_CEEr.d.ts} +4 -4
- package/dist/{pixelEvents-BtEO5QAR.d.cts → pixelEvents-bahgVW4_.d.cts} +4 -4
- package/dist/{product-D9liEtl4.d.cts → product-D4kol-Z-.d.cts} +26 -2
- package/dist/{product-D9liEtl4.d.ts → product-D4kol-Z-.d.ts} +26 -2
- package/dist/store/index.cjs +20 -30
- package/dist/store/index.d.cts +21 -7
- package/dist/store/index.d.ts +21 -7
- package/dist/store/index.js +9 -26
- package/dist/{useAddressForm-DGbEn91-.d.cts → useAddressForm-fMOb5Z-a.d.ts} +6 -1
- package/dist/{useAddressForm-cO3Au33k.d.ts → useAddressForm-wleIo78M.d.cts} +6 -1
- package/dist/utils/index.cjs +60 -56
- package/dist/utils/index.d.cts +24 -9
- package/dist/utils/index.d.ts +24 -9
- package/dist/utils/index.js +4 -4
- package/dist/{wishlist-Cj0sQxiY.d.ts → wishlist-L3fM5-ie.d.ts} +1 -1
- package/dist/{wishlist-BakHvIFN.d.cts → wishlist-_0x0r1jt.d.cts} +1 -1
- package/package.json +1 -1
- package/dist/address-DwBZHzbI.d.cts +0 -19
- package/dist/address-DwBZHzbI.d.ts +0 -19
- package/dist/cart-DZq1ZEnE.d.ts +0 -153
- package/dist/cart-DwMFBmpC.d.cts +0 -153
- package/dist/chunk-34Y7Y5FU.cjs +0 -246
- package/dist/chunk-VPTN4YXD.js +0 -232
- package/dist/orders-B3G4CyhH.d.cts +0 -166
- package/dist/orders-Bl-Slh72.d.ts +0 -166
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { updateCart, removeFromCart, addToCart, getCart, getCartItemQuantity, mergeCart } from './chunk-
|
|
2
|
-
import { cart_default } from './chunk-
|
|
1
|
+
import { removeFromWishlist, getWishlist, updateCart, removeFromCart, addToCart, getCart, getCartItemQuantity, mergeCart } from './chunk-NNE42NMP.js';
|
|
2
|
+
import { cart_default } from './chunk-E4D4XOAE.js';
|
|
3
3
|
import { updateOrderCustomization } from './chunk-KCLVR6G5.js';
|
|
4
4
|
import { auth_default } from './chunk-WEMNXIRS.js';
|
|
5
5
|
import { USER_CRED_TOKEN, USER_CREDENTIALS } from './chunk-BQ256JKN.js';
|
|
@@ -7,14 +7,55 @@ import { create } from 'zustand';
|
|
|
7
7
|
import { getCookie } from 'typescript-cookie';
|
|
8
8
|
|
|
9
9
|
var initialState = {
|
|
10
|
+
wishlist_count: 0,
|
|
11
|
+
product_variants: []
|
|
12
|
+
};
|
|
13
|
+
var useWishlistStore = create((set, get) => ({
|
|
14
|
+
...initialState,
|
|
15
|
+
loaded: false,
|
|
16
|
+
setWishlist: (wishlist) => set({ ...wishlist, loaded: true }),
|
|
17
|
+
resetWishlist: () => set({ ...initialState, loaded: false }),
|
|
18
|
+
syncWishlist: async () => {
|
|
19
|
+
try {
|
|
20
|
+
const response = await getWishlist("/customer/wishlist/");
|
|
21
|
+
if (response.data) {
|
|
22
|
+
set({
|
|
23
|
+
wishlist_count: response.data.wishlist_count,
|
|
24
|
+
product_variants: response.data.product_variants,
|
|
25
|
+
loaded: true
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
} catch {
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
removeAddedFromWishlist: async (variantIds) => {
|
|
32
|
+
if (!auth_default.getUserDetails() || variantIds.length === 0) return true;
|
|
33
|
+
try {
|
|
34
|
+
if (!get().loaded) await get().syncWishlist();
|
|
35
|
+
const ids = get().product_variants.filter((item) => variantIds.includes(item.id)).map((item) => item.id);
|
|
36
|
+
if (ids.length === 0) return true;
|
|
37
|
+
const response = await removeFromWishlist(ids);
|
|
38
|
+
if (response.data) get().setWishlist(response.data);
|
|
39
|
+
return true;
|
|
40
|
+
} catch {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
function useIsWishlisted(variantId, initial) {
|
|
46
|
+
return useWishlistStore(
|
|
47
|
+
(s) => s.loaded && variantId !== void 0 ? s.product_variants.some((item) => item.id === variantId) : !!initial
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
var initialState2 = {
|
|
10
51
|
cart: null,
|
|
11
52
|
total_quantity: 0,
|
|
12
53
|
status: "idle" /* IDLE */
|
|
13
54
|
};
|
|
14
55
|
var useCartStore = create((set) => ({
|
|
15
|
-
...
|
|
56
|
+
...initialState2,
|
|
16
57
|
setCart: (cart) => set({ cart, total_quantity: cart.total_quantity, status: "idle" /* IDLE */ }),
|
|
17
|
-
resetCart: () => set(
|
|
58
|
+
resetCart: () => set(initialState2),
|
|
18
59
|
resetCartCount: () => set((state) => {
|
|
19
60
|
if (!state.cart) return { ...state, total_quantity: 0 };
|
|
20
61
|
return { cart: { ...state.cart, total_quantity: 0 }, total_quantity: 0 };
|
|
@@ -55,6 +96,7 @@ var useCartStore = create((set) => ({
|
|
|
55
96
|
if (auth_default.getUserDetails()) {
|
|
56
97
|
await addToCart(items, customizationInputs);
|
|
57
98
|
await useCartStore.getState().syncCart(addressId);
|
|
99
|
+
await useWishlistStore.getState().removeAddedFromWishlist(items.map((item) => item.variant_id));
|
|
58
100
|
} else {
|
|
59
101
|
const cart = cart_default.get();
|
|
60
102
|
items.forEach((item) => {
|
|
@@ -95,7 +137,7 @@ var useCartStore = create((set) => ({
|
|
|
95
137
|
total_quantity: updatedCart.total_quantity
|
|
96
138
|
});
|
|
97
139
|
} else {
|
|
98
|
-
set(
|
|
140
|
+
set(initialState2);
|
|
99
141
|
}
|
|
100
142
|
}
|
|
101
143
|
} catch {
|
|
@@ -218,4 +260,4 @@ var loginUser = async (user) => {
|
|
|
218
260
|
auth_default.setRefreshToken(refresh);
|
|
219
261
|
};
|
|
220
262
|
|
|
221
|
-
export { loginUser, useAuthStore, useCartStore };
|
|
263
|
+
export { loginUser, useAuthStore, useCartStore, useIsWishlisted, useWishlistStore };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { search_dropdown_default, DownChevron } from './chunk-YK4M3SFP.js';
|
|
2
|
-
import { useAddressForm } from './chunk-
|
|
2
|
+
import { useAddressForm } from './chunk-6IXTFZFS.js';
|
|
3
3
|
import { forwardRef, useImperativeHandle, useEffect } from 'react';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -228,11 +228,22 @@ function getOrderStatus(order) {
|
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
|
+
function focusFirstInvalidField(errors, root) {
|
|
232
|
+
if (typeof document === "undefined") return;
|
|
233
|
+
const invalid = Object.keys(errors);
|
|
234
|
+
if (invalid.length === 0) return;
|
|
235
|
+
const controls = (root ?? document).querySelectorAll("input[name], select[name], textarea[name]");
|
|
236
|
+
const target = Array.from(controls).find((el) => invalid.includes(el.getAttribute("name") ?? ""));
|
|
237
|
+
if (!target) return;
|
|
238
|
+
target.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
239
|
+
target.focus({ preventScroll: true });
|
|
240
|
+
}
|
|
231
241
|
|
|
232
242
|
exports.constructFilter = constructFilter;
|
|
233
243
|
exports.convertObjectToParams = convertObjectToParams;
|
|
234
244
|
exports.convertToCurrency = convertToCurrency;
|
|
235
245
|
exports.digestMessage = digestMessage;
|
|
246
|
+
exports.focusFirstInvalidField = focusFirstInvalidField;
|
|
236
247
|
exports.formatDateTime = formatDateTime;
|
|
237
248
|
exports.formatPostalLabel = formatPostalLabel;
|
|
238
249
|
exports.getAddressMeta = getAddressMeta;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkV447PVRV_cjs = require('./chunk-V447PVRV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkWWJAPKRQ_cjs = require('./chunk-WWJAPKRQ.cjs');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
@@ -34,7 +34,7 @@ var AddressForm = react.forwardRef(
|
|
|
34
34
|
handlePhoneChange,
|
|
35
35
|
isSubmitting,
|
|
36
36
|
isEditing
|
|
37
|
-
} =
|
|
37
|
+
} = chunkWWJAPKRQ_cjs.useAddressForm({
|
|
38
38
|
address,
|
|
39
39
|
onSuccess,
|
|
40
40
|
onError,
|
|
@@ -23,7 +23,10 @@ var getCountries = async () => {
|
|
|
23
23
|
};
|
|
24
24
|
var getSubdivisions = async (countryId) => {
|
|
25
25
|
return http_service_default.get(`utils/subdivisions/`, {
|
|
26
|
-
params: {
|
|
26
|
+
params: {
|
|
27
|
+
country_id: countryId,
|
|
28
|
+
page_size: 500
|
|
29
|
+
}
|
|
27
30
|
});
|
|
28
31
|
};
|
|
29
32
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var chunk6LS5F4R3_cjs = require('./chunk-6LS5F4R3.cjs');
|
|
3
|
+
var chunk6APRQ2ED_cjs = require('./chunk-6APRQ2ED.cjs');
|
|
4
|
+
var chunkSGJUMI3M_cjs = require('./chunk-SGJUMI3M.cjs');
|
|
6
5
|
var chunkTB72NPRM_cjs = require('./chunk-TB72NPRM.cjs');
|
|
6
|
+
var chunkLJUGNSQQ_cjs = require('./chunk-LJUGNSQQ.cjs');
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var formik = require('formik');
|
|
9
9
|
var libphonenumberJs = require('libphonenumber-js');
|
|
@@ -36,12 +36,12 @@ function useAddressForm(options = {}) {
|
|
|
36
36
|
const payload = chunkTB72NPRM_cjs.buildSubmitPayload(values, selectedCountry, states);
|
|
37
37
|
let response;
|
|
38
38
|
if (isEditing) {
|
|
39
|
-
response = await
|
|
39
|
+
response = await chunk6APRQ2ED_cjs.updateAddress({
|
|
40
40
|
...payload,
|
|
41
41
|
address_id: address.id
|
|
42
42
|
});
|
|
43
43
|
} else {
|
|
44
|
-
response = await
|
|
44
|
+
response = await chunk6APRQ2ED_cjs.addAddress(payload);
|
|
45
45
|
}
|
|
46
46
|
if (response) {
|
|
47
47
|
formik$1.resetForm();
|
|
@@ -58,7 +58,7 @@ function useAddressForm(options = {}) {
|
|
|
58
58
|
react.useEffect(() => {
|
|
59
59
|
const fetchCountries = async () => {
|
|
60
60
|
try {
|
|
61
|
-
const response = await
|
|
61
|
+
const response = await chunk6APRQ2ED_cjs.getCountries();
|
|
62
62
|
const sortedCountries = response?.data?.sort((a, b) => {
|
|
63
63
|
if (a.id === defaultCountryId) return -1;
|
|
64
64
|
if (b.id === defaultCountryId) return 1;
|
|
@@ -89,7 +89,7 @@ function useAddressForm(options = {}) {
|
|
|
89
89
|
if (!selectedCountry) return;
|
|
90
90
|
const fetchStates = async () => {
|
|
91
91
|
try {
|
|
92
|
-
const response = await
|
|
92
|
+
const response = await chunk6APRQ2ED_cjs.getSubdivisions(selectedCountry.id);
|
|
93
93
|
setStates(response.data.results);
|
|
94
94
|
} catch (error) {
|
|
95
95
|
console.error(error);
|
|
@@ -97,7 +97,7 @@ function useAddressForm(options = {}) {
|
|
|
97
97
|
};
|
|
98
98
|
const fetchAddressMeta = async () => {
|
|
99
99
|
try {
|
|
100
|
-
const response = await
|
|
100
|
+
const response = await chunkSGJUMI3M_cjs.getAddressMeta(
|
|
101
101
|
selectedCountry.tld_code
|
|
102
102
|
);
|
|
103
103
|
setAddressMeta(response);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSGKLMS7W_cjs = require('../chunk-SGKLMS7W.cjs');
|
|
4
4
|
require('../chunk-V447PVRV.cjs');
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-6LS5F4R3.cjs');
|
|
5
|
+
require('../chunk-WWJAPKRQ.cjs');
|
|
6
|
+
require('../chunk-6APRQ2ED.cjs');
|
|
7
|
+
require('../chunk-SGJUMI3M.cjs');
|
|
9
8
|
require('../chunk-BBRB475I.cjs');
|
|
10
9
|
require('../chunk-TB72NPRM.cjs');
|
|
10
|
+
require('../chunk-LJUGNSQQ.cjs');
|
|
11
11
|
require('../chunk-ECHV2JSY.cjs');
|
|
12
12
|
require('../chunk-BBRXE57K.cjs');
|
|
13
13
|
require('../chunk-NE3ZHELZ.cjs');
|
|
@@ -15,4 +15,4 @@ require('../chunk-N3CTXRFT.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
module.exports =
|
|
18
|
+
module.exports = chunkSGKLMS7W_cjs.address_form_default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-
|
|
1
|
+
import react__default from 'react';
|
|
2
|
+
import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-wleIo78M.cjs';
|
|
3
3
|
import 'formik';
|
|
4
|
-
import '../address-
|
|
4
|
+
import '../address-BdIB6IuI.cjs';
|
|
5
5
|
|
|
6
6
|
interface AddressFormRef {
|
|
7
7
|
formik: ReturnType<typeof useAddressForm>["formik"];
|
|
@@ -13,8 +13,8 @@ interface AddressFormProps extends UseAddressFormOptions {
|
|
|
13
13
|
type: "submit";
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
loading: boolean;
|
|
16
|
-
children:
|
|
17
|
-
}) =>
|
|
16
|
+
children: react__default.ReactNode;
|
|
17
|
+
}) => react__default.ReactNode;
|
|
18
18
|
/** Called when formik instance is ready (alternative to ref) */
|
|
19
19
|
onFormikReady?: (formik: ReturnType<typeof useAddressForm>["formik"]) => void;
|
|
20
20
|
/** Called when cancel is clicked */
|
|
@@ -28,6 +28,10 @@ interface AddressFormProps extends UseAddressFormOptions {
|
|
|
28
28
|
/** Submit button text. Default: "Save" */
|
|
29
29
|
submitLabel?: string;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Built on the deprecated `useAddressForm`. Build the form's markup
|
|
33
|
+
* in the theme on `useCountryAwareAddressForm` instead. Removed in 3.0.0.
|
|
34
|
+
*/
|
|
35
|
+
declare const AddressForm: react__default.ForwardRefExoticComponent<AddressFormProps & react__default.RefAttributes<AddressFormRef>>;
|
|
32
36
|
|
|
33
37
|
export { type AddressFormProps, type AddressFormRef, AddressForm as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-
|
|
1
|
+
import react__default from 'react';
|
|
2
|
+
import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-fMOb5Z-a.js';
|
|
3
3
|
import 'formik';
|
|
4
|
-
import '../address-
|
|
4
|
+
import '../address-BdIB6IuI.js';
|
|
5
5
|
|
|
6
6
|
interface AddressFormRef {
|
|
7
7
|
formik: ReturnType<typeof useAddressForm>["formik"];
|
|
@@ -13,8 +13,8 @@ interface AddressFormProps extends UseAddressFormOptions {
|
|
|
13
13
|
type: "submit";
|
|
14
14
|
disabled: boolean;
|
|
15
15
|
loading: boolean;
|
|
16
|
-
children:
|
|
17
|
-
}) =>
|
|
16
|
+
children: react__default.ReactNode;
|
|
17
|
+
}) => react__default.ReactNode;
|
|
18
18
|
/** Called when formik instance is ready (alternative to ref) */
|
|
19
19
|
onFormikReady?: (formik: ReturnType<typeof useAddressForm>["formik"]) => void;
|
|
20
20
|
/** Called when cancel is clicked */
|
|
@@ -28,6 +28,10 @@ interface AddressFormProps extends UseAddressFormOptions {
|
|
|
28
28
|
/** Submit button text. Default: "Save" */
|
|
29
29
|
submitLabel?: string;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Built on the deprecated `useAddressForm`. Build the form's markup
|
|
33
|
+
* in the theme on `useCountryAwareAddressForm` instead. Removed in 3.0.0.
|
|
34
|
+
*/
|
|
35
|
+
declare const AddressForm: react__default.ForwardRefExoticComponent<AddressFormProps & react__default.RefAttributes<AddressFormRef>>;
|
|
32
36
|
|
|
33
37
|
export { type AddressFormProps, type AddressFormRef, AddressForm as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { address_form_default as default } from '../chunk-
|
|
1
|
+
export { address_form_default as default } from '../chunk-QVO56X4E.js';
|
|
2
2
|
import '../chunk-YK4M3SFP.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-CBKJ3Y2I.js';
|
|
3
|
+
import '../chunk-6IXTFZFS.js';
|
|
4
|
+
import '../chunk-VRZRV2BR.js';
|
|
5
|
+
import '../chunk-EWZ7TGI7.js';
|
|
7
6
|
import '../chunk-HSF2D56O.js';
|
|
8
7
|
import '../chunk-ELP23UGF.js';
|
|
8
|
+
import '../chunk-OSM73ETC.js';
|
|
9
9
|
import '../chunk-3SYYP3XV.js';
|
|
10
10
|
import '../chunk-WEMNXIRS.js';
|
|
11
11
|
import '../chunk-BQ256JKN.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as Order } from '../orders-
|
|
2
|
-
import { f as ProductDetail } from '../product-
|
|
1
|
+
import { O as Order } from '../orders-ZKP0lqRN.cjs';
|
|
2
|
+
import { f as ProductDetail } from '../product-D4kol-Z-.cjs';
|
|
3
3
|
import 'react-toastify';
|
|
4
4
|
|
|
5
5
|
interface DigitalProductDownloadModalProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as Order } from '../orders-
|
|
2
|
-
import { f as ProductDetail } from '../product-
|
|
1
|
+
import { O as Order } from '../orders-B6BmHCJN.js';
|
|
2
|
+
import { f as ProductDetail } from '../product-D4kol-Z-.js';
|
|
3
3
|
import 'react-toastify';
|
|
4
4
|
|
|
5
5
|
interface DigitalProductDownloadModalProps {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSGKLMS7W_cjs = require('../chunk-SGKLMS7W.cjs');
|
|
4
4
|
var chunkV447PVRV_cjs = require('../chunk-V447PVRV.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk32X4SWN4_cjs = require('../chunk-32X4SWN4.cjs');
|
|
6
6
|
var chunk3YRSHPM6_cjs = require('../chunk-3YRSHPM6.cjs');
|
|
7
7
|
var chunk6DXB4O6P_cjs = require('../chunk-6DXB4O6P.cjs');
|
|
8
8
|
var chunkLHF5BSWO_cjs = require('../chunk-LHF5BSWO.cjs');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-6LS5F4R3.cjs');
|
|
9
|
+
require('../chunk-WWJAPKRQ.cjs');
|
|
10
|
+
require('../chunk-6APRQ2ED.cjs');
|
|
11
|
+
require('../chunk-SGJUMI3M.cjs');
|
|
13
12
|
require('../chunk-BBRB475I.cjs');
|
|
14
13
|
require('../chunk-DODFO744.cjs');
|
|
15
14
|
require('../chunk-TB72NPRM.cjs');
|
|
15
|
+
require('../chunk-LJUGNSQQ.cjs');
|
|
16
16
|
require('../chunk-ECHV2JSY.cjs');
|
|
17
17
|
require('../chunk-BBRXE57K.cjs');
|
|
18
18
|
require('../chunk-NE3ZHELZ.cjs');
|
|
@@ -22,7 +22,7 @@ require('../chunk-N3CTXRFT.cjs');
|
|
|
22
22
|
|
|
23
23
|
Object.defineProperty(exports, "AddressForm", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkSGKLMS7W_cjs.address_form_default; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "SearchDropdown", {
|
|
28
28
|
enumerable: true,
|
|
@@ -30,7 +30,7 @@ Object.defineProperty(exports, "SearchDropdown", {
|
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ShareButton", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk32X4SWN4_cjs.share_button_default; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "ShareIcon", {
|
|
36
36
|
enumerable: true,
|
|
@@ -5,13 +5,12 @@ export { default as ShareIcon } from './share-icon.cjs';
|
|
|
5
5
|
export { default as DigitalProductDownloadModal, DigitalProductDownloadModalProps } from './digital-product-download-modal.cjs';
|
|
6
6
|
export { default as ThemeDataInitializer } from './theme-data-initializer.cjs';
|
|
7
7
|
import 'react';
|
|
8
|
-
import '../useAddressForm-
|
|
8
|
+
import '../useAddressForm-wleIo78M.cjs';
|
|
9
9
|
import 'formik';
|
|
10
|
-
import '../address-
|
|
11
|
-
import '../product-
|
|
10
|
+
import '../address-BdIB6IuI.cjs';
|
|
11
|
+
import '../product-D4kol-Z-.cjs';
|
|
12
12
|
import 'react-toastify';
|
|
13
13
|
import 'react/jsx-runtime';
|
|
14
|
-
import '../orders-
|
|
15
|
-
import '../pixelEvents-
|
|
16
|
-
import '../
|
|
17
|
-
import '../collections-CXgOv5_G.cjs';
|
|
14
|
+
import '../orders-ZKP0lqRN.cjs';
|
|
15
|
+
import '../pixelEvents-bahgVW4_.cjs';
|
|
16
|
+
import '../collections-CKNFcE2d.cjs';
|
|
@@ -5,13 +5,12 @@ export { default as ShareIcon } from './share-icon.js';
|
|
|
5
5
|
export { default as DigitalProductDownloadModal, DigitalProductDownloadModalProps } from './digital-product-download-modal.js';
|
|
6
6
|
export { default as ThemeDataInitializer } from './theme-data-initializer.js';
|
|
7
7
|
import 'react';
|
|
8
|
-
import '../useAddressForm-
|
|
8
|
+
import '../useAddressForm-fMOb5Z-a.js';
|
|
9
9
|
import 'formik';
|
|
10
|
-
import '../address-
|
|
11
|
-
import '../product-
|
|
10
|
+
import '../address-BdIB6IuI.js';
|
|
11
|
+
import '../product-D4kol-Z-.js';
|
|
12
12
|
import 'react-toastify';
|
|
13
13
|
import 'react/jsx-runtime';
|
|
14
|
-
import '../orders-
|
|
15
|
-
import '../pixelEvents-
|
|
16
|
-
import '../
|
|
17
|
-
import '../collections-CNh2OGbl.js';
|
|
14
|
+
import '../orders-B6BmHCJN.js';
|
|
15
|
+
import '../pixelEvents-DqJ_CEEr.js';
|
|
16
|
+
import '../collections-CtRKsWVx.js';
|
package/dist/components/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { address_form_default as AddressForm } from '../chunk-
|
|
1
|
+
export { address_form_default as AddressForm } from '../chunk-QVO56X4E.js';
|
|
2
2
|
export { search_dropdown_default as SearchDropdown } from '../chunk-YK4M3SFP.js';
|
|
3
|
-
export { share_button_default as ShareButton } from '../chunk-
|
|
3
|
+
export { share_button_default as ShareButton } from '../chunk-FF5N7PTB.js';
|
|
4
4
|
export { ShareIcon } from '../chunk-U7EXLQCT.js';
|
|
5
5
|
export { digital_product_download_modal_default as DigitalProductDownloadModal } from '../chunk-LLRSKDH5.js';
|
|
6
6
|
export { ThemeDataInitializer } from '../chunk-BTR3HLL4.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-CBKJ3Y2I.js';
|
|
7
|
+
import '../chunk-6IXTFZFS.js';
|
|
8
|
+
import '../chunk-VRZRV2BR.js';
|
|
9
|
+
import '../chunk-EWZ7TGI7.js';
|
|
11
10
|
import '../chunk-HSF2D56O.js';
|
|
12
11
|
import '../chunk-5NUDTIQ2.js';
|
|
13
12
|
import '../chunk-ELP23UGF.js';
|
|
13
|
+
import '../chunk-OSM73ETC.js';
|
|
14
14
|
import '../chunk-3SYYP3XV.js';
|
|
15
15
|
import '../chunk-WEMNXIRS.js';
|
|
16
16
|
import '../chunk-BQ256JKN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import react__default from 'react';
|
|
2
2
|
|
|
3
3
|
interface SearchDropdownOption {
|
|
4
4
|
value: string | number;
|
|
@@ -17,12 +17,12 @@ interface SearchDropdownProps {
|
|
|
17
17
|
error?: string;
|
|
18
18
|
label?: string;
|
|
19
19
|
name?: string;
|
|
20
|
-
renderOption?: (option: SearchDropdownOption) =>
|
|
21
|
-
renderSelected?: (option: SearchDropdownOption | null) =>
|
|
20
|
+
renderOption?: (option: SearchDropdownOption) => react__default.ReactNode;
|
|
21
|
+
renderSelected?: (option: SearchDropdownOption | null) => react__default.ReactNode;
|
|
22
22
|
filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
|
|
23
23
|
emptyMessage?: string;
|
|
24
24
|
maxHeight?: string;
|
|
25
25
|
}
|
|
26
|
-
declare const SearchDropdown:
|
|
26
|
+
declare const SearchDropdown: react__default.FC<SearchDropdownProps>;
|
|
27
27
|
|
|
28
28
|
export { type SearchDropdownOption, type SearchDropdownProps, SearchDropdown as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import react__default from 'react';
|
|
2
2
|
|
|
3
3
|
interface SearchDropdownOption {
|
|
4
4
|
value: string | number;
|
|
@@ -17,12 +17,12 @@ interface SearchDropdownProps {
|
|
|
17
17
|
error?: string;
|
|
18
18
|
label?: string;
|
|
19
19
|
name?: string;
|
|
20
|
-
renderOption?: (option: SearchDropdownOption) =>
|
|
21
|
-
renderSelected?: (option: SearchDropdownOption | null) =>
|
|
20
|
+
renderOption?: (option: SearchDropdownOption) => react__default.ReactNode;
|
|
21
|
+
renderSelected?: (option: SearchDropdownOption | null) => react__default.ReactNode;
|
|
22
22
|
filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
|
|
23
23
|
emptyMessage?: string;
|
|
24
24
|
maxHeight?: string;
|
|
25
25
|
}
|
|
26
|
-
declare const SearchDropdown:
|
|
26
|
+
declare const SearchDropdown: react__default.FC<SearchDropdownProps>;
|
|
27
27
|
|
|
28
28
|
export { type SearchDropdownOption, type SearchDropdownProps, SearchDropdown as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk32X4SWN4_cjs = require('../chunk-32X4SWN4.cjs');
|
|
4
4
|
require('../chunk-3YRSHPM6.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-SGJUMI3M.cjs');
|
|
6
6
|
require('../chunk-BBRB475I.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
module.exports =
|
|
10
|
+
module.exports = chunk32X4SWN4_cjs.share_button_default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { share_button_default as default } from '../chunk-
|
|
1
|
+
export { share_button_default as default } from '../chunk-FF5N7PTB.js';
|
|
2
2
|
import '../chunk-U7EXLQCT.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-EWZ7TGI7.js';
|
|
4
4
|
import '../chunk-HSF2D56O.js';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
-
import '../
|
|
3
|
-
import '../product-
|
|
1
|
+
import { P as PageHeaderProps } from '../pixelEvents-bahgVW4_.cjs';
|
|
2
|
+
import '../orders-ZKP0lqRN.cjs';
|
|
3
|
+
import '../product-D4kol-Z-.cjs';
|
|
4
4
|
import 'react-toastify';
|
|
5
|
-
import '../collections-
|
|
6
|
-
import '../orders-B3G4CyhH.cjs';
|
|
5
|
+
import '../collections-CKNFcE2d.cjs';
|
|
7
6
|
|
|
8
7
|
declare function ThemeDataInitializer({ themeData, }: {
|
|
9
8
|
themeData: PageHeaderProps;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { P as PageHeaderProps } from '../pixelEvents-
|
|
2
|
-
import '../
|
|
3
|
-
import '../product-
|
|
1
|
+
import { P as PageHeaderProps } from '../pixelEvents-DqJ_CEEr.js';
|
|
2
|
+
import '../orders-B6BmHCJN.js';
|
|
3
|
+
import '../product-D4kol-Z-.js';
|
|
4
4
|
import 'react-toastify';
|
|
5
|
-
import '../collections-
|
|
6
|
-
import '../orders-Bl-Slh72.js';
|
|
5
|
+
import '../collections-CtRKsWVx.js';
|
|
7
6
|
|
|
8
7
|
declare function ThemeDataInitializer({ themeData, }: {
|
|
9
8
|
themeData: PageHeaderProps;
|