@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.
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-ILVGYHNI.js → chunk-6Q7QMPOQ.js} +2 -1
  16. package/dist/{chunk-HTFVROIV.cjs → chunk-7UK3E7SL.cjs} +6 -0
  17. package/dist/chunk-B3BXKMQA.cjs +271 -0
  18. package/dist/chunk-BTR3HLL4.js +14 -0
  19. package/dist/chunk-EGFOTJPC.js +22 -0
  20. package/dist/{chunk-YUPBTD4M.js → chunk-F45S7UWC.js} +1 -139
  21. package/dist/chunk-HAQWCNDY.cjs +24 -0
  22. package/dist/{chunk-Y4NGR42Z.js → chunk-HUIT4JCR.js} +1 -1
  23. package/dist/{chunk-TF2KMTB6.js → chunk-JRYWZMNT.js} +1 -1
  24. package/dist/{chunk-JCOOINQF.cjs → chunk-KLNKIQQM.cjs} +4 -3
  25. package/dist/chunk-L43KF3AC.js +269 -0
  26. package/dist/chunk-LHF5BSWO.cjs +16 -0
  27. package/dist/chunk-LJUGNSQQ.cjs +149 -0
  28. package/dist/chunk-NA5GT4D3.js +75 -0
  29. package/dist/chunk-OSM73ETC.js +139 -0
  30. package/dist/{chunk-4CVKE6CC.cjs → chunk-OTMTHA5C.cjs} +0 -147
  31. package/dist/{chunk-JH4JJBXE.cjs → chunk-TTIQRDHX.cjs} +2 -2
  32. package/dist/chunk-U7EXLQCT.js +32 -0
  33. package/dist/{chunk-LW3V53WJ.js → chunk-UVU7H4E6.js} +6 -1
  34. package/dist/chunk-V447PVRV.cjs +308 -0
  35. package/dist/chunk-VWQR3A7V.cjs +81 -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 +49 -1
@@ -0,0 +1,33 @@
1
+ import React__default from 'react';
2
+ import { U as UseAddressFormOptions, u as useAddressForm } from '../useAddressForm-cO3Au33k.js';
3
+ import 'formik';
4
+ import '../address-DwBZHzbI.js';
5
+
6
+ interface AddressFormRef {
7
+ formik: ReturnType<typeof useAddressForm>["formik"];
8
+ resetForm: () => void;
9
+ }
10
+ interface AddressFormProps extends UseAddressFormOptions {
11
+ /** Custom Button component rendered for the submit action. Receives type, disabled, children. */
12
+ renderButton?: (props: {
13
+ type: "submit";
14
+ disabled: boolean;
15
+ loading: boolean;
16
+ children: React__default.ReactNode;
17
+ }) => React__default.ReactNode;
18
+ /** Called when formik instance is ready (alternative to ref) */
19
+ onFormikReady?: (formik: ReturnType<typeof useAddressForm>["formik"]) => void;
20
+ /** Called when cancel is clicked */
21
+ onCancel?: () => void;
22
+ /** Show cancel button. Default: true */
23
+ showCancel?: boolean;
24
+ /** Show "Make default address" checkbox. Default: true */
25
+ showDefaultCheckbox?: boolean;
26
+ /** Custom class name for the form wrapper */
27
+ className?: string;
28
+ /** Submit button text. Default: "Save" */
29
+ submitLabel?: string;
30
+ }
31
+ declare const AddressForm: React__default.ForwardRefExoticComponent<AddressFormProps & React__default.RefAttributes<AddressFormRef>>;
32
+
33
+ export { type AddressFormProps, type AddressFormRef, AddressForm as default };
@@ -0,0 +1,11 @@
1
+ export { address_form_default as default } from '../chunk-L43KF3AC.js';
2
+ import '../chunk-YK4M3SFP.js';
3
+ import '../chunk-6Q7QMPOQ.js';
4
+ import '../chunk-ZGMLOLTC.js';
5
+ import '../chunk-OSM73ETC.js';
6
+ import '../chunk-F45S7UWC.js';
7
+ import '../chunk-ELP23UGF.js';
8
+ import '../chunk-3SYYP3XV.js';
9
+ import '../chunk-WEMNXIRS.js';
10
+ import '../chunk-BQ256JKN.js';
11
+ import '../chunk-JQMLHRWL.js';
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ var chunkVWQR3A7V_cjs = require('../chunk-VWQR3A7V.cjs');
4
+ require('../chunk-BBRB475I.cjs');
5
+
6
+
7
+
8
+ module.exports = chunkVWQR3A7V_cjs.digital_product_download_modal_default;
@@ -0,0 +1,15 @@
1
+ import { O as Order } from '../orders-CjNmCY5I.cjs';
2
+ import { f as ProductDetail } from '../product-DJMdi4D4.cjs';
3
+ import 'react-toastify';
4
+
5
+ interface DigitalProductDownloadModalProps {
6
+ open: boolean;
7
+ onClose: () => void;
8
+ product: Order.PurchasedProduct | null;
9
+ downloadAttribute: ProductDetail.DigitalProductVariant[];
10
+ onDownload: (attribute: ProductDetail.DigitalProductVariant) => void;
11
+ loading?: boolean;
12
+ }
13
+ declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
14
+
15
+ export { type DigitalProductDownloadModalProps, DigitalProductDownloadModal as default };
@@ -0,0 +1,15 @@
1
+ import { O as Order } from '../orders-L_8eIkUS.js';
2
+ import { f as ProductDetail } from '../product-DJMdi4D4.js';
3
+ import 'react-toastify';
4
+
5
+ interface DigitalProductDownloadModalProps {
6
+ open: boolean;
7
+ onClose: () => void;
8
+ product: Order.PurchasedProduct | null;
9
+ downloadAttribute: ProductDetail.DigitalProductVariant[];
10
+ onDownload: (attribute: ProductDetail.DigitalProductVariant) => void;
11
+ loading?: boolean;
12
+ }
13
+ declare const DigitalProductDownloadModal: React.FC<DigitalProductDownloadModalProps>;
14
+
15
+ export { type DigitalProductDownloadModalProps, DigitalProductDownloadModal as default };
@@ -0,0 +1,2 @@
1
+ export { digital_product_download_modal_default as default } from '../chunk-NA5GT4D3.js';
2
+ import '../chunk-HSF2D56O.js';