@storepecker/storefront-core 2.3.6 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-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-NA5GT4D3.js +75 -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-VWQR3A7V.cjs +81 -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 +49 -1
|
@@ -1,90 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { default as SearchDropdown, SearchDropdownOption, SearchDropdownProps } from './search-dropdown.cjs';
|
|
2
|
+
export { default as AddressForm, AddressFormProps, AddressFormRef } from './address-form.cjs';
|
|
3
|
+
export { default as ShareButton, ShareButtonProps } from './share-button.cjs';
|
|
4
|
+
export { default as ShareIcon } from './share-icon.cjs';
|
|
5
|
+
export { default as DigitalProductDownloadModal, DigitalProductDownloadModalProps } from './digital-product-download-modal.cjs';
|
|
6
|
+
export { default as ThemeDataInitializer } from './theme-data-initializer.cjs';
|
|
7
|
+
import 'react';
|
|
8
|
+
import '../useAddressForm-DGbEn91-.cjs';
|
|
6
9
|
import 'formik';
|
|
7
10
|
import '../address-DwBZHzbI.cjs';
|
|
11
|
+
import '../product-DJMdi4D4.cjs';
|
|
8
12
|
import 'react-toastify';
|
|
9
|
-
import '
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
interface SearchDropdownProps {
|
|
18
|
-
options: SearchDropdownOption[];
|
|
19
|
-
value?: string | number;
|
|
20
|
-
onChange?: (value: string | number, option: SearchDropdownOption) => void;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
searchPlaceholder?: string;
|
|
23
|
-
className?: string;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
error?: string;
|
|
26
|
-
label?: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
renderOption?: (option: SearchDropdownOption) => React__default.ReactNode;
|
|
29
|
-
renderSelected?: (option: SearchDropdownOption | null) => React__default.ReactNode;
|
|
30
|
-
filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
|
|
31
|
-
emptyMessage?: string;
|
|
32
|
-
maxHeight?: string;
|
|
33
|
-
}
|
|
34
|
-
declare const SearchDropdown: React__default.FC<SearchDropdownProps>;
|
|
35
|
-
|
|
36
|
-
interface AddressFormRef {
|
|
37
|
-
formik: ReturnType<typeof useAddressForm>["formik"];
|
|
38
|
-
resetForm: () => void;
|
|
39
|
-
}
|
|
40
|
-
interface AddressFormProps extends UseAddressFormOptions {
|
|
41
|
-
/** Custom Button component rendered for the submit action. Receives type, disabled, children. */
|
|
42
|
-
renderButton?: (props: {
|
|
43
|
-
type: "submit";
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
loading: boolean;
|
|
46
|
-
children: React__default.ReactNode;
|
|
47
|
-
}) => React__default.ReactNode;
|
|
48
|
-
/** Called when formik instance is ready (alternative to ref) */
|
|
49
|
-
onFormikReady?: (formik: ReturnType<typeof useAddressForm>["formik"]) => void;
|
|
50
|
-
/** Called when cancel is clicked */
|
|
51
|
-
onCancel?: () => void;
|
|
52
|
-
/** Show cancel button. Default: true */
|
|
53
|
-
showCancel?: boolean;
|
|
54
|
-
/** Show "Make default address" checkbox. Default: true */
|
|
55
|
-
showDefaultCheckbox?: boolean;
|
|
56
|
-
/** Custom class name for the form wrapper */
|
|
57
|
-
className?: string;
|
|
58
|
-
/** Submit button text. Default: "Save" */
|
|
59
|
-
submitLabel?: string;
|
|
60
|
-
}
|
|
61
|
-
declare const AddressForm: React__default.ForwardRefExoticComponent<AddressFormProps & React__default.RefAttributes<AddressFormRef>>;
|
|
62
|
-
|
|
63
|
-
interface ShareButtonProps {
|
|
64
|
-
product: ProductDetail.Root;
|
|
65
|
-
className?: string;
|
|
66
|
-
iconSize?: number;
|
|
67
|
-
}
|
|
68
|
-
declare const ShareButton: React.FC<ShareButtonProps>;
|
|
69
|
-
|
|
70
|
-
declare function ShareIcon({ width, height, className, }: {
|
|
71
|
-
width?: number;
|
|
72
|
-
height?: number;
|
|
73
|
-
className?: string;
|
|
74
|
-
}): react_jsx_runtime.JSX.Element;
|
|
75
|
-
|
|
76
|
-
interface DigitalProductDownloadModalProps {
|
|
77
|
-
open: boolean;
|
|
78
|
-
onClose: () => void;
|
|
79
|
-
product: Order.PurchasedProduct | null;
|
|
80
|
-
downloadAttribute: ProductDetail.DigitalProductVariant[];
|
|
81
|
-
onDownload: (attribute: ProductDetail.DigitalProductVariant) => void;
|
|
82
|
-
loading?: boolean;
|
|
83
|
-
}
|
|
84
|
-
declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
|
|
85
|
-
|
|
86
|
-
declare function ThemeDataInitializer({ themeData, }: {
|
|
87
|
-
themeData: PageHeaderProps;
|
|
88
|
-
}): null;
|
|
89
|
-
|
|
90
|
-
export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon, ThemeDataInitializer };
|
|
13
|
+
import 'react/jsx-runtime';
|
|
14
|
+
import '../orders-CjNmCY5I.cjs';
|
|
15
|
+
import '../pixelEvents-C1rFPOwb.cjs';
|
|
16
|
+
import '../cart-kJoawc_Z.cjs';
|
|
17
|
+
import '../collections-WzvTO0OQ.cjs';
|
|
@@ -1,90 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { default as SearchDropdown, SearchDropdownOption, SearchDropdownProps } from './search-dropdown.js';
|
|
2
|
+
export { default as AddressForm, AddressFormProps, AddressFormRef } from './address-form.js';
|
|
3
|
+
export { default as ShareButton, ShareButtonProps } from './share-button.js';
|
|
4
|
+
export { default as ShareIcon } from './share-icon.js';
|
|
5
|
+
export { default as DigitalProductDownloadModal, DigitalProductDownloadModalProps } from './digital-product-download-modal.js';
|
|
6
|
+
export { default as ThemeDataInitializer } from './theme-data-initializer.js';
|
|
7
|
+
import 'react';
|
|
8
|
+
import '../useAddressForm-cO3Au33k.js';
|
|
6
9
|
import 'formik';
|
|
7
10
|
import '../address-DwBZHzbI.js';
|
|
11
|
+
import '../product-DJMdi4D4.js';
|
|
8
12
|
import 'react-toastify';
|
|
9
|
-
import '
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
disabled?: boolean;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}
|
|
17
|
-
interface SearchDropdownProps {
|
|
18
|
-
options: SearchDropdownOption[];
|
|
19
|
-
value?: string | number;
|
|
20
|
-
onChange?: (value: string | number, option: SearchDropdownOption) => void;
|
|
21
|
-
placeholder?: string;
|
|
22
|
-
searchPlaceholder?: string;
|
|
23
|
-
className?: string;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
error?: string;
|
|
26
|
-
label?: string;
|
|
27
|
-
name?: string;
|
|
28
|
-
renderOption?: (option: SearchDropdownOption) => React__default.ReactNode;
|
|
29
|
-
renderSelected?: (option: SearchDropdownOption | null) => React__default.ReactNode;
|
|
30
|
-
filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
|
|
31
|
-
emptyMessage?: string;
|
|
32
|
-
maxHeight?: string;
|
|
33
|
-
}
|
|
34
|
-
declare const SearchDropdown: React__default.FC<SearchDropdownProps>;
|
|
35
|
-
|
|
36
|
-
interface AddressFormRef {
|
|
37
|
-
formik: ReturnType<typeof useAddressForm>["formik"];
|
|
38
|
-
resetForm: () => void;
|
|
39
|
-
}
|
|
40
|
-
interface AddressFormProps extends UseAddressFormOptions {
|
|
41
|
-
/** Custom Button component rendered for the submit action. Receives type, disabled, children. */
|
|
42
|
-
renderButton?: (props: {
|
|
43
|
-
type: "submit";
|
|
44
|
-
disabled: boolean;
|
|
45
|
-
loading: boolean;
|
|
46
|
-
children: React__default.ReactNode;
|
|
47
|
-
}) => React__default.ReactNode;
|
|
48
|
-
/** Called when formik instance is ready (alternative to ref) */
|
|
49
|
-
onFormikReady?: (formik: ReturnType<typeof useAddressForm>["formik"]) => void;
|
|
50
|
-
/** Called when cancel is clicked */
|
|
51
|
-
onCancel?: () => void;
|
|
52
|
-
/** Show cancel button. Default: true */
|
|
53
|
-
showCancel?: boolean;
|
|
54
|
-
/** Show "Make default address" checkbox. Default: true */
|
|
55
|
-
showDefaultCheckbox?: boolean;
|
|
56
|
-
/** Custom class name for the form wrapper */
|
|
57
|
-
className?: string;
|
|
58
|
-
/** Submit button text. Default: "Save" */
|
|
59
|
-
submitLabel?: string;
|
|
60
|
-
}
|
|
61
|
-
declare const AddressForm: React__default.ForwardRefExoticComponent<AddressFormProps & React__default.RefAttributes<AddressFormRef>>;
|
|
62
|
-
|
|
63
|
-
interface ShareButtonProps {
|
|
64
|
-
product: ProductDetail.Root;
|
|
65
|
-
className?: string;
|
|
66
|
-
iconSize?: number;
|
|
67
|
-
}
|
|
68
|
-
declare const ShareButton: React.FC<ShareButtonProps>;
|
|
69
|
-
|
|
70
|
-
declare function ShareIcon({ width, height, className, }: {
|
|
71
|
-
width?: number;
|
|
72
|
-
height?: number;
|
|
73
|
-
className?: string;
|
|
74
|
-
}): react_jsx_runtime.JSX.Element;
|
|
75
|
-
|
|
76
|
-
interface DigitalProductDownloadModalProps {
|
|
77
|
-
open: boolean;
|
|
78
|
-
onClose: () => void;
|
|
79
|
-
product: Order.PurchasedProduct | null;
|
|
80
|
-
downloadAttribute: ProductDetail.DigitalProductVariant[];
|
|
81
|
-
onDownload: (attribute: ProductDetail.DigitalProductVariant) => void;
|
|
82
|
-
loading?: boolean;
|
|
83
|
-
}
|
|
84
|
-
declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
|
|
85
|
-
|
|
86
|
-
declare function ThemeDataInitializer({ themeData, }: {
|
|
87
|
-
themeData: PageHeaderProps;
|
|
88
|
-
}): null;
|
|
89
|
-
|
|
90
|
-
export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon, ThemeDataInitializer };
|
|
13
|
+
import 'react/jsx-runtime';
|
|
14
|
+
import '../orders-L_8eIkUS.js';
|
|
15
|
+
import '../pixelEvents-Bo-VjAx8.js';
|
|
16
|
+
import '../cart-y-7RPmnQ.js';
|
|
17
|
+
import '../collections-BDSVfRNo.js';
|