@storepecker/storefront-core 2.3.5 → 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.
Files changed (75) hide show
  1. package/dist/api/index.cjs +28 -24
  2. package/dist/api/index.d.cts +2 -1
  3. package/dist/api/index.d.ts +2 -1
  4. package/dist/api/index.js +1 -1
  5. package/dist/checkout/index.cjs +22 -22
  6. package/dist/checkout/index.js +2 -2
  7. package/dist/{chunk-BTT3XQ32.cjs → chunk-33TWVRZE.cjs} +6 -6
  8. package/dist/chunk-3YRSHPM6.cjs +34 -0
  9. package/dist/chunk-5NUDTIQ2.js +9 -0
  10. package/dist/{chunk-ILVGYHNI.js → chunk-6Q7QMPOQ.js} +2 -1
  11. package/dist/{chunk-HTFVROIV.cjs → chunk-7UK3E7SL.cjs} +6 -0
  12. package/dist/chunk-B3BXKMQA.cjs +271 -0
  13. package/dist/chunk-BTR3HLL4.js +14 -0
  14. package/dist/chunk-DODFO744.cjs +11 -0
  15. package/dist/chunk-EGFOTJPC.js +22 -0
  16. package/dist/{chunk-YUPBTD4M.js → chunk-F45S7UWC.js} +1 -139
  17. package/dist/chunk-HAQWCNDY.cjs +24 -0
  18. package/dist/{chunk-Y4NGR42Z.js → chunk-HUIT4JCR.js} +1 -1
  19. package/dist/{chunk-TF2KMTB6.js → chunk-JRYWZMNT.js} +1 -1
  20. package/dist/{chunk-JCOOINQF.cjs → chunk-KLNKIQQM.cjs} +4 -3
  21. package/dist/chunk-L43KF3AC.js +269 -0
  22. package/dist/chunk-LHF5BSWO.cjs +16 -0
  23. package/dist/chunk-LJUGNSQQ.cjs +149 -0
  24. package/dist/chunk-NA5GT4D3.js +75 -0
  25. package/dist/chunk-OSM73ETC.js +139 -0
  26. package/dist/{chunk-4CVKE6CC.cjs → chunk-OTMTHA5C.cjs} +0 -147
  27. package/dist/{chunk-JH4JJBXE.cjs → chunk-TTIQRDHX.cjs} +2 -2
  28. package/dist/chunk-U7EXLQCT.js +32 -0
  29. package/dist/{chunk-LW3V53WJ.js → chunk-UVU7H4E6.js} +6 -1
  30. package/dist/chunk-V447PVRV.cjs +308 -0
  31. package/dist/chunk-VWQR3A7V.cjs +81 -0
  32. package/dist/chunk-YK4M3SFP.js +301 -0
  33. package/dist/components/address-form.cjs +17 -0
  34. package/dist/components/address-form.css +329 -0
  35. package/dist/components/address-form.d.cts +33 -0
  36. package/dist/components/address-form.d.ts +33 -0
  37. package/dist/components/address-form.js +11 -0
  38. package/dist/components/digital-product-download-modal.cjs +8 -0
  39. package/dist/components/digital-product-download-modal.d.cts +15 -0
  40. package/dist/components/digital-product-download-modal.d.ts +15 -0
  41. package/dist/components/digital-product-download-modal.js +2 -0
  42. package/dist/components/index.cjs +35 -684
  43. package/dist/components/index.d.cts +14 -82
  44. package/dist/components/index.d.ts +14 -82
  45. package/dist/components/index.js +11 -678
  46. package/dist/components/search-dropdown.cjs +7 -0
  47. package/dist/components/search-dropdown.css +200 -0
  48. package/dist/components/search-dropdown.d.cts +28 -0
  49. package/dist/components/search-dropdown.d.ts +28 -0
  50. package/dist/components/search-dropdown.js +1 -0
  51. package/dist/components/share-button.cjs +9 -0
  52. package/dist/components/share-button.d.cts +11 -0
  53. package/dist/components/share-button.d.ts +11 -0
  54. package/dist/components/share-button.js +3 -0
  55. package/dist/components/share-icon.cjs +7 -0
  56. package/dist/components/share-icon.d.cts +9 -0
  57. package/dist/components/share-icon.d.ts +9 -0
  58. package/dist/components/share-icon.js +1 -0
  59. package/dist/components/theme-data-initializer.cjs +8 -0
  60. package/dist/components/theme-data-initializer.d.cts +12 -0
  61. package/dist/components/theme-data-initializer.d.ts +12 -0
  62. package/dist/components/theme-data-initializer.js +2 -0
  63. package/dist/hooks/index.cjs +18 -17
  64. package/dist/hooks/index.js +6 -5
  65. package/dist/pixelEvents-Bo-VjAx8.d.ts +371 -0
  66. package/dist/pixelEvents-C1rFPOwb.d.cts +371 -0
  67. package/dist/store/index.cjs +10 -5
  68. package/dist/store/index.d.cts +10 -1
  69. package/dist/store/index.d.ts +10 -1
  70. package/dist/store/index.js +3 -2
  71. package/dist/utils/index.cjs +44 -43
  72. package/dist/utils/index.d.cts +7 -370
  73. package/dist/utils/index.d.ts +7 -370
  74. package/dist/utils/index.js +3 -2
  75. package/package.json +49 -1
@@ -1,85 +1,17 @@
1
- import React__default from 'react';
2
- import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-DGbEn91-.cjs';
3
- import { f as ProductDetail } from '../product-DJMdi4D4.cjs';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { O as Order } from '../orders-CjNmCY5I.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
-
10
- interface SearchDropdownOption {
11
- value: string | number;
12
- label: string;
13
- disabled?: boolean;
14
- [key: string]: any;
15
- }
16
- interface SearchDropdownProps {
17
- options: SearchDropdownOption[];
18
- value?: string | number;
19
- onChange?: (value: string | number, option: SearchDropdownOption) => void;
20
- placeholder?: string;
21
- searchPlaceholder?: string;
22
- className?: string;
23
- disabled?: boolean;
24
- error?: string;
25
- label?: string;
26
- name?: string;
27
- renderOption?: (option: SearchDropdownOption) => React__default.ReactNode;
28
- renderSelected?: (option: SearchDropdownOption | null) => React__default.ReactNode;
29
- filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
30
- emptyMessage?: string;
31
- maxHeight?: string;
32
- }
33
- declare const SearchDropdown: React__default.FC<SearchDropdownProps>;
34
-
35
- interface AddressFormRef {
36
- formik: ReturnType<typeof useAddressForm>["formik"];
37
- resetForm: () => void;
38
- }
39
- interface AddressFormProps extends UseAddressFormOptions {
40
- /** Custom Button component rendered for the submit action. Receives type, disabled, children. */
41
- renderButton?: (props: {
42
- type: "submit";
43
- disabled: boolean;
44
- loading: boolean;
45
- children: React__default.ReactNode;
46
- }) => React__default.ReactNode;
47
- /** Called when formik instance is ready (alternative to ref) */
48
- onFormikReady?: (formik: ReturnType<typeof useAddressForm>["formik"]) => void;
49
- /** Called when cancel is clicked */
50
- onCancel?: () => void;
51
- /** Show cancel button. Default: true */
52
- showCancel?: boolean;
53
- /** Show "Make default address" checkbox. Default: true */
54
- showDefaultCheckbox?: boolean;
55
- /** Custom class name for the form wrapper */
56
- className?: string;
57
- /** Submit button text. Default: "Save" */
58
- submitLabel?: string;
59
- }
60
- declare const AddressForm: React__default.ForwardRefExoticComponent<AddressFormProps & React__default.RefAttributes<AddressFormRef>>;
61
-
62
- interface ShareButtonProps {
63
- product: ProductDetail.Root;
64
- className?: string;
65
- iconSize?: number;
66
- }
67
- declare const ShareButton: React.FC<ShareButtonProps>;
68
-
69
- declare function ShareIcon({ width, height, className, }: {
70
- width?: number;
71
- height?: number;
72
- className?: string;
73
- }): react_jsx_runtime.JSX.Element;
74
-
75
- interface DigitalProductDownloadModalProps {
76
- open: boolean;
77
- onClose: () => void;
78
- product: Order.PurchasedProduct | null;
79
- downloadAttribute: ProductDetail.DigitalProductVariant[];
80
- onDownload: (attribute: ProductDetail.DigitalProductVariant) => void;
81
- loading?: boolean;
82
- }
83
- declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
84
-
85
- export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon };
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,85 +1,17 @@
1
- import React__default from 'react';
2
- import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
3
- import { f as ProductDetail } from '../product-DJMdi4D4.js';
4
- import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { O as Order } from '../orders-L_8eIkUS.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
-
10
- interface SearchDropdownOption {
11
- value: string | number;
12
- label: string;
13
- disabled?: boolean;
14
- [key: string]: any;
15
- }
16
- interface SearchDropdownProps {
17
- options: SearchDropdownOption[];
18
- value?: string | number;
19
- onChange?: (value: string | number, option: SearchDropdownOption) => void;
20
- placeholder?: string;
21
- searchPlaceholder?: string;
22
- className?: string;
23
- disabled?: boolean;
24
- error?: string;
25
- label?: string;
26
- name?: string;
27
- renderOption?: (option: SearchDropdownOption) => React__default.ReactNode;
28
- renderSelected?: (option: SearchDropdownOption | null) => React__default.ReactNode;
29
- filterFunction?: (option: SearchDropdownOption, searchTerm: string) => boolean;
30
- emptyMessage?: string;
31
- maxHeight?: string;
32
- }
33
- declare const SearchDropdown: React__default.FC<SearchDropdownProps>;
34
-
35
- interface AddressFormRef {
36
- formik: ReturnType<typeof useAddressForm>["formik"];
37
- resetForm: () => void;
38
- }
39
- interface AddressFormProps extends UseAddressFormOptions {
40
- /** Custom Button component rendered for the submit action. Receives type, disabled, children. */
41
- renderButton?: (props: {
42
- type: "submit";
43
- disabled: boolean;
44
- loading: boolean;
45
- children: React__default.ReactNode;
46
- }) => React__default.ReactNode;
47
- /** Called when formik instance is ready (alternative to ref) */
48
- onFormikReady?: (formik: ReturnType<typeof useAddressForm>["formik"]) => void;
49
- /** Called when cancel is clicked */
50
- onCancel?: () => void;
51
- /** Show cancel button. Default: true */
52
- showCancel?: boolean;
53
- /** Show "Make default address" checkbox. Default: true */
54
- showDefaultCheckbox?: boolean;
55
- /** Custom class name for the form wrapper */
56
- className?: string;
57
- /** Submit button text. Default: "Save" */
58
- submitLabel?: string;
59
- }
60
- declare const AddressForm: React__default.ForwardRefExoticComponent<AddressFormProps & React__default.RefAttributes<AddressFormRef>>;
61
-
62
- interface ShareButtonProps {
63
- product: ProductDetail.Root;
64
- className?: string;
65
- iconSize?: number;
66
- }
67
- declare const ShareButton: React.FC<ShareButtonProps>;
68
-
69
- declare function ShareIcon({ width, height, className, }: {
70
- width?: number;
71
- height?: number;
72
- className?: string;
73
- }): react_jsx_runtime.JSX.Element;
74
-
75
- interface DigitalProductDownloadModalProps {
76
- open: boolean;
77
- onClose: () => void;
78
- product: Order.PurchasedProduct | null;
79
- downloadAttribute: ProductDetail.DigitalProductVariant[];
80
- onDownload: (attribute: ProductDetail.DigitalProductVariant) => void;
81
- loading?: boolean;
82
- }
83
- declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
84
-
85
- export { AddressForm, type AddressFormProps, type AddressFormRef, DigitalProductDownloadModal, type DigitalProductDownloadModalProps, SearchDropdown, type SearchDropdownOption, type SearchDropdownProps, ShareButton, type ShareButtonProps, ShareIcon };
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';