@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.
Files changed (91) hide show
  1. package/dist/api/index.cjs +28 -24
  2. package/dist/api/index.d.cts +8 -5
  3. package/dist/api/index.d.ts +8 -5
  4. package/dist/api/index.js +1 -1
  5. package/dist/{booking-CG6tul9l.d.ts → booking-BVWe8HHh.d.ts} +1 -1
  6. package/dist/{booking-DNVf5ZAS.d.cts → booking-DX9SU_qm.d.cts} +1 -1
  7. package/dist/cart-kJoawc_Z.d.cts +126 -0
  8. package/dist/cart-y-7RPmnQ.d.ts +126 -0
  9. package/dist/checkout/index.cjs +22 -22
  10. package/dist/checkout/index.d.cts +3 -1
  11. package/dist/checkout/index.d.ts +3 -1
  12. package/dist/checkout/index.js +2 -2
  13. package/dist/{chunk-BTT3XQ32.cjs → chunk-33TWVRZE.cjs} +6 -6
  14. package/dist/chunk-3YRSHPM6.cjs +34 -0
  15. package/dist/chunk-6DXB4O6P.cjs +121 -0
  16. package/dist/{chunk-ILVGYHNI.js → chunk-6Q7QMPOQ.js} +2 -1
  17. package/dist/{chunk-HTFVROIV.cjs → chunk-7UK3E7SL.cjs} +6 -0
  18. package/dist/chunk-B3BXKMQA.cjs +271 -0
  19. package/dist/chunk-BTR3HLL4.js +14 -0
  20. package/dist/chunk-EGFOTJPC.js +22 -0
  21. package/dist/{chunk-YUPBTD4M.js → chunk-F45S7UWC.js} +1 -139
  22. package/dist/chunk-HAQWCNDY.cjs +24 -0
  23. package/dist/{chunk-Y4NGR42Z.js → chunk-HUIT4JCR.js} +1 -1
  24. package/dist/{chunk-TF2KMTB6.js → chunk-JRYWZMNT.js} +1 -1
  25. package/dist/{chunk-JCOOINQF.cjs → chunk-KLNKIQQM.cjs} +4 -3
  26. package/dist/chunk-L43KF3AC.js +269 -0
  27. package/dist/chunk-LHF5BSWO.cjs +16 -0
  28. package/dist/chunk-LJUGNSQQ.cjs +149 -0
  29. package/dist/chunk-LLRSKDH5.js +115 -0
  30. package/dist/chunk-OSM73ETC.js +139 -0
  31. package/dist/{chunk-4CVKE6CC.cjs → chunk-OTMTHA5C.cjs} +0 -147
  32. package/dist/{chunk-JH4JJBXE.cjs → chunk-TTIQRDHX.cjs} +2 -2
  33. package/dist/chunk-U7EXLQCT.js +32 -0
  34. package/dist/{chunk-LW3V53WJ.js → chunk-UVU7H4E6.js} +6 -1
  35. package/dist/chunk-V447PVRV.cjs +308 -0
  36. package/dist/chunk-YK4M3SFP.js +301 -0
  37. package/dist/{collections-Bz9KD7Na.d.cts → collections-BDSVfRNo.d.ts} +1 -1
  38. package/dist/{collections-CkEUi3BR.d.ts → collections-WzvTO0OQ.d.cts} +1 -1
  39. package/dist/components/address-form.cjs +17 -0
  40. package/dist/components/address-form.css +329 -0
  41. package/dist/components/address-form.d.cts +33 -0
  42. package/dist/components/address-form.d.ts +33 -0
  43. package/dist/components/address-form.js +11 -0
  44. package/dist/components/digital-product-download-modal.cjs +8 -0
  45. package/dist/components/digital-product-download-modal.d.cts +15 -0
  46. package/dist/components/digital-product-download-modal.d.ts +15 -0
  47. package/dist/components/digital-product-download-modal.js +2 -0
  48. package/dist/components/index.cjs +35 -695
  49. package/dist/components/index.d.cts +14 -87
  50. package/dist/components/index.d.ts +14 -87
  51. package/dist/components/index.js +11 -688
  52. package/dist/components/search-dropdown.cjs +7 -0
  53. package/dist/components/search-dropdown.css +200 -0
  54. package/dist/components/search-dropdown.d.cts +28 -0
  55. package/dist/components/search-dropdown.d.ts +28 -0
  56. package/dist/components/search-dropdown.js +1 -0
  57. package/dist/components/share-button.cjs +9 -0
  58. package/dist/components/share-button.d.cts +11 -0
  59. package/dist/components/share-button.d.ts +11 -0
  60. package/dist/components/share-button.js +3 -0
  61. package/dist/components/share-icon.cjs +7 -0
  62. package/dist/components/share-icon.d.cts +9 -0
  63. package/dist/components/share-icon.d.ts +9 -0
  64. package/dist/components/share-icon.js +1 -0
  65. package/dist/components/theme-data-initializer.cjs +8 -0
  66. package/dist/components/theme-data-initializer.d.cts +12 -0
  67. package/dist/components/theme-data-initializer.d.ts +12 -0
  68. package/dist/components/theme-data-initializer.js +2 -0
  69. package/dist/hooks/index.cjs +18 -17
  70. package/dist/hooks/index.d.cts +4 -2
  71. package/dist/hooks/index.d.ts +4 -2
  72. package/dist/hooks/index.js +6 -5
  73. package/dist/models/index.d.cts +6 -4
  74. package/dist/models/index.d.ts +6 -4
  75. package/dist/orders-CjNmCY5I.d.cts +144 -0
  76. package/dist/orders-L_8eIkUS.d.ts +144 -0
  77. package/dist/{pixelEvents-OVIkPw-J.d.ts → pixelEvents-Bo-VjAx8.d.ts} +4 -2
  78. package/dist/{pixelEvents-DYkiTkb2.d.cts → pixelEvents-C1rFPOwb.d.cts} +4 -2
  79. package/dist/{orders-fIdANHSl.d.ts → product-DJMdi4D4.d.cts} +1 -265
  80. package/dist/{orders-fIdANHSl.d.cts → product-DJMdi4D4.d.ts} +1 -265
  81. package/dist/store/index.cjs +5 -5
  82. package/dist/store/index.d.cts +6 -4
  83. package/dist/store/index.d.ts +6 -4
  84. package/dist/store/index.js +2 -2
  85. package/dist/utils/index.cjs +44 -43
  86. package/dist/utils/index.d.cts +7 -5
  87. package/dist/utils/index.d.ts +7 -5
  88. package/dist/utils/index.js +3 -2
  89. package/dist/{wishlist-stNzfvIP.d.cts → wishlist-CUuCTSVJ.d.cts} +1 -1
  90. package/dist/{wishlist-_bd4gLyQ.d.ts → wishlist-DKYFZR0s.d.ts} +1 -1
  91. package/package.json +50 -6
@@ -1,90 +1,17 @@
1
- import React__default from 'react';
2
- import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
3
- import { o as ProductDetail, l as Order } from '../orders-fIdANHSl.cjs';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { P as PageHeaderProps } from '../pixelEvents-DYkiTkb2.cjs';
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 '../collections-Bz9KD7Na.cjs';
10
-
11
- interface SearchDropdownOption {
12
- value: string | number;
13
- label: string;
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
- import React__default from 'react';
2
- import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
3
- import { o as ProductDetail, l as Order } from '../orders-fIdANHSl.js';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { P as PageHeaderProps } from '../pixelEvents-OVIkPw-J.js';
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 '../collections-CkEUi3BR.js';
10
-
11
- interface SearchDropdownOption {
12
- value: string | number;
13
- label: string;
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';