@websolutespa/bom-mixer-checkout 3.0.0 → 3.0.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 (3) hide show
  1. package/CHANGELOG.md +155 -139
  2. package/dist/index.d.ts +14 -14
  3. package/package.json +21 -15
package/CHANGELOG.md CHANGED
@@ -1,139 +1,155 @@
1
- # @websolutespa/bom-mixer-checkout
2
-
3
- ## 3.0.0
4
-
5
- ### Major Changes
6
-
7
- - Release: Bom 3.0
8
-
9
- ## 1.9.3
10
-
11
- ### Patch Changes
12
-
13
- - Added: Tenant
14
- - Updated dependencies
15
- - @websolutespa/bom-mixer-ui@1.10.4
16
-
17
- ## 1.9.2
18
-
19
- ### Patch Changes
20
-
21
- - Added: checkoutUrl & shopUrl options
22
- - Updated dependencies
23
- - @websolutespa/bom-mixer-forms@1.9.3
24
- - @websolutespa/bom-mixer-ui@1.10.1
25
-
26
- ## 1.9.1
27
-
28
- ### Patch Changes
29
-
30
- - Modified: Link component
31
- - Updated dependencies
32
- - @websolutespa/bom-mixer-ui@1.9.14
33
-
34
- ## 1.9.0
35
-
36
- ### Minor Changes
37
-
38
- - Added: useFormSchema
39
-
40
- ### Patch Changes
41
-
42
- - Updated dependencies
43
- - @websolutespa/bom-mixer-auth@1.9.0
44
- - @websolutespa/bom-mixer-forms@1.9.0
45
- - @websolutespa/bom-mixer-ui@1.9.0
46
-
47
- ## 1.8.4
48
-
49
- ### Patch Changes
50
-
51
- - b3a813d: Added: FieldCombobox, FieldRadio, getCurrentUser
52
- - f9b14f6: a11y next
53
- - f106e10: Modified: a11y next Drawer, Auth Handler
54
- - 70da173: Modified: a11y next Tabs, ModalHeader, DrawerHeader, AccordionTitle
55
- - Updated dependencies [b3a813d]
56
- - Updated dependencies [f9b14f6]
57
- - Updated dependencies [f106e10]
58
- - Updated dependencies [70da173]
59
- - @websolutespa/bom-mixer-auth@1.8.4
60
- - @websolutespa/bom-mixer-ui@1.8.15
61
-
62
- ## 1.8.4-next.3
63
-
64
- ### Patch Changes
65
-
66
- - Modified: a11y next
67
- - Updated dependencies
68
- - @websolutespa/bom-mixer-auth@1.8.4-next.3
69
- - @websolutespa/bom-mixer-ui@1.8.15-next.3
70
-
71
- ## 1.8.4-next.2
72
-
73
- ### Patch Changes
74
-
75
- - Modified: a11y next
76
- - Updated dependencies
77
- - @websolutespa/bom-mixer-auth@1.8.4-next.2
78
- - @websolutespa/bom-mixer-ui@1.8.15-next.2
79
-
80
- ## 1.8.4-next.1
81
-
82
- ### Patch Changes
83
-
84
- - Modified: a11y next Tabs, ModalHeader, DrawerHeader, AccordionTitle
85
- - Updated dependencies
86
- - @websolutespa/bom-mixer-auth@1.8.4-next.1
87
- - @websolutespa/bom-mixer-ui@1.8.15-next.1
88
-
89
- ## 1.8.4-next.0
90
-
91
- ### Patch Changes
92
-
93
- - a11y next
94
- - Updated dependencies
95
- - @websolutespa/bom-mixer-auth@1.8.4-next.0
96
- - @websolutespa/bom-mixer-ui@1.8.15-next.0
97
-
98
- ## 1.8.3
99
-
100
- ### Patch Changes
101
-
102
- - 3a7fc91: Modified: Drawer added name
103
- - Updated dependencies [3a7fc91]
104
- - Updated dependencies [3a7fc91]
105
- - Updated dependencies [3a7fc91]
106
- - Updated dependencies [3a7fc91]
107
- - Updated dependencies [3a7fc91]
108
- - Updated dependencies [3a7fc91]
109
- - @websolutespa/bom-mixer-ui@1.8.11
110
- - @websolutespa/bom-mixer-auth@1.8.3
111
- - @websolutespa/bom-mixer-icons@0.2.5
112
- - @websolutespa/bom-mixer-hooks@1.8.9
113
-
114
- ## 1.8.2
115
-
116
- ### Patch Changes
117
-
118
- - Renaming: collection Store -> Retailer
119
-
120
- ## 1.8.1
121
-
122
- ### Patch Changes
123
-
124
- - 15ad595: Modified: checkout remote api
125
- - 15ad595: Updating: test mock auth
126
-
127
- ## 1.8.0
128
-
129
- ### Patch Changes
130
-
131
- - f8a1d97: Added: first release
132
- - Updated dependencies [f8a1d97]
133
- - Updated dependencies [f8a1d97]
134
- - @websolutespa/bom-mixer-models@1.8.0
135
- - @websolutespa/bom-mixer-ui@1.8.0
136
- - @websolutespa/bom-core@1.8.0
137
- - @websolutespa/bom-mixer-auth@1.8.0
138
- - @websolutespa/bom-mixer-hooks@1.8.0
139
- - @websolutespa/bom-mixer-forms@1.8.0
1
+ # @websolutespa/bom-mixer-checkout
2
+
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updating: dependencies
8
+ - Updated dependencies
9
+ - @websolutespa/bom-mixer-emails@3.0.1
10
+ - @websolutespa/bom-mixer-models@3.0.2
11
+ - @websolutespa/bom-mixer-forms@3.0.1
12
+ - @websolutespa/bom-mixer-hooks@3.0.1
13
+ - @websolutespa/bom-mixer-icons@3.0.1
14
+ - @websolutespa/bom-mixer-store@3.0.1
15
+ - @websolutespa/bom-mixer-auth@3.0.1
16
+ - @websolutespa/bom-mixer-ui@3.0.1
17
+ - @websolutespa/bom-core@3.0.1
18
+
19
+ ## 3.0.0
20
+
21
+ ### Major Changes
22
+
23
+ - Release: Bom 3.0
24
+
25
+ ## 1.9.3
26
+
27
+ ### Patch Changes
28
+
29
+ - Added: Tenant
30
+ - Updated dependencies
31
+ - @websolutespa/bom-mixer-ui@1.10.4
32
+
33
+ ## 1.9.2
34
+
35
+ ### Patch Changes
36
+
37
+ - Added: checkoutUrl & shopUrl options
38
+ - Updated dependencies
39
+ - @websolutespa/bom-mixer-forms@1.9.3
40
+ - @websolutespa/bom-mixer-ui@1.10.1
41
+
42
+ ## 1.9.1
43
+
44
+ ### Patch Changes
45
+
46
+ - Modified: Link component
47
+ - Updated dependencies
48
+ - @websolutespa/bom-mixer-ui@1.9.14
49
+
50
+ ## 1.9.0
51
+
52
+ ### Minor Changes
53
+
54
+ - Added: useFormSchema
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies
59
+ - @websolutespa/bom-mixer-auth@1.9.0
60
+ - @websolutespa/bom-mixer-forms@1.9.0
61
+ - @websolutespa/bom-mixer-ui@1.9.0
62
+
63
+ ## 1.8.4
64
+
65
+ ### Patch Changes
66
+
67
+ - b3a813d: Added: FieldCombobox, FieldRadio, getCurrentUser
68
+ - f9b14f6: a11y next
69
+ - f106e10: Modified: a11y next Drawer, Auth Handler
70
+ - 70da173: Modified: a11y next Tabs, ModalHeader, DrawerHeader, AccordionTitle
71
+ - Updated dependencies [b3a813d]
72
+ - Updated dependencies [f9b14f6]
73
+ - Updated dependencies [f106e10]
74
+ - Updated dependencies [70da173]
75
+ - @websolutespa/bom-mixer-auth@1.8.4
76
+ - @websolutespa/bom-mixer-ui@1.8.15
77
+
78
+ ## 1.8.4-next.3
79
+
80
+ ### Patch Changes
81
+
82
+ - Modified: a11y next
83
+ - Updated dependencies
84
+ - @websolutespa/bom-mixer-auth@1.8.4-next.3
85
+ - @websolutespa/bom-mixer-ui@1.8.15-next.3
86
+
87
+ ## 1.8.4-next.2
88
+
89
+ ### Patch Changes
90
+
91
+ - Modified: a11y next
92
+ - Updated dependencies
93
+ - @websolutespa/bom-mixer-auth@1.8.4-next.2
94
+ - @websolutespa/bom-mixer-ui@1.8.15-next.2
95
+
96
+ ## 1.8.4-next.1
97
+
98
+ ### Patch Changes
99
+
100
+ - Modified: a11y next Tabs, ModalHeader, DrawerHeader, AccordionTitle
101
+ - Updated dependencies
102
+ - @websolutespa/bom-mixer-auth@1.8.4-next.1
103
+ - @websolutespa/bom-mixer-ui@1.8.15-next.1
104
+
105
+ ## 1.8.4-next.0
106
+
107
+ ### Patch Changes
108
+
109
+ - a11y next
110
+ - Updated dependencies
111
+ - @websolutespa/bom-mixer-auth@1.8.4-next.0
112
+ - @websolutespa/bom-mixer-ui@1.8.15-next.0
113
+
114
+ ## 1.8.3
115
+
116
+ ### Patch Changes
117
+
118
+ - 3a7fc91: Modified: Drawer added name
119
+ - Updated dependencies [3a7fc91]
120
+ - Updated dependencies [3a7fc91]
121
+ - Updated dependencies [3a7fc91]
122
+ - Updated dependencies [3a7fc91]
123
+ - Updated dependencies [3a7fc91]
124
+ - Updated dependencies [3a7fc91]
125
+ - @websolutespa/bom-mixer-ui@1.8.11
126
+ - @websolutespa/bom-mixer-auth@1.8.3
127
+ - @websolutespa/bom-mixer-icons@0.2.5
128
+ - @websolutespa/bom-mixer-hooks@1.8.9
129
+
130
+ ## 1.8.2
131
+
132
+ ### Patch Changes
133
+
134
+ - Renaming: collection Store -> Retailer
135
+
136
+ ## 1.8.1
137
+
138
+ ### Patch Changes
139
+
140
+ - 15ad595: Modified: checkout remote api
141
+ - 15ad595: Updating: test mock auth
142
+
143
+ ## 1.8.0
144
+
145
+ ### Patch Changes
146
+
147
+ - f8a1d97: Added: first release
148
+ - Updated dependencies [f8a1d97]
149
+ - Updated dependencies [f8a1d97]
150
+ - @websolutespa/bom-mixer-models@1.8.0
151
+ - @websolutespa/bom-mixer-ui@1.8.0
152
+ - @websolutespa/bom-core@1.8.0
153
+ - @websolutespa/bom-mixer-auth@1.8.0
154
+ - @websolutespa/bom-mixer-hooks@1.8.0
155
+ - @websolutespa/bom-mixer-forms@1.8.0
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { IArticle, ICartAddItem, ICartItem, ICheckout, ICheckoutDelivery, ICheckoutDiscount, ICheckoutInfo, ICheckoutItem, ICheckoutPartial, ICheckoutPayment, ICheckoutPaymentRedirect, ICheckoutRetailer, IDelivery, IDiscount, IDiscountType, IOrder, IOrderDetail, IOrderStatus, IOrderStatusValue, IPayment, IRetailer, ITenant } from "./retailer-DdroKqxH.js";
2
2
  import { DrawerProps, UIStyledComponentProps } from "@websolutespa/bom-mixer-ui";
3
- import * as react1 from "react";
3
+ import * as react0 from "react";
4
4
  import * as zustand0 from "zustand";
5
- import * as zustand_middleware1 from "zustand/middleware";
5
+ import * as zustand_middleware0 from "zustand/middleware";
6
6
  import { StateStorage } from "zustand/middleware";
7
7
  import { IUser, IUserAddress } from "@websolutespa/bom-mixer-auth";
8
8
  import { IAddressOptions } from "@websolutespa/bom-mixer-models";
@@ -176,15 +176,15 @@ type CartActions = {
176
176
  type CartState = CartProps & {
177
177
  actions: CartActions;
178
178
  };
179
- declare const CartContext: react1.Context<(Omit<zustand0.StoreApi<CartState>, "persist"> & {
179
+ declare const CartContext: react0.Context<(Omit<zustand0.StoreApi<CartState>, "persist"> & {
180
180
  persist: {
181
- setOptions: (options: Partial<zustand_middleware1.PersistOptions<CartState, unknown>>) => void;
181
+ setOptions: (options: Partial<zustand_middleware0.PersistOptions<CartState, unknown>>) => void;
182
182
  clearStorage: () => void;
183
183
  rehydrate: () => Promise<void> | void;
184
184
  hasHydrated: () => boolean;
185
185
  onHydrate: (fn: (state: CartState) => void) => () => void;
186
186
  onFinishHydration: (fn: (state: CartState) => void) => () => void;
187
- getOptions: () => Partial<zustand_middleware1.PersistOptions<CartState, unknown>>;
187
+ getOptions: () => Partial<zustand_middleware0.PersistOptions<CartState, unknown>>;
188
188
  };
189
189
  }) | null>;
190
190
  type CartProviderProps = React.PropsWithChildren<{
@@ -197,7 +197,7 @@ type CartProviderProps = React.PropsWithChildren<{
197
197
  declare function CartProvider({
198
198
  children,
199
199
  ...props
200
- }: CartProviderProps): react1.JSX.Element;
200
+ }: CartProviderProps): react0.JSX.Element;
201
201
  declare function useCart<T>(selector: (state: CartState) => T): T;
202
202
  //#endregion
203
203
  //#region src/hooks/useCheckout/useCheckout.d.ts
@@ -214,15 +214,15 @@ type CheckoutActions = {
214
214
  type CheckoutState = CheckoutProps & {
215
215
  actions: CheckoutActions;
216
216
  };
217
- declare const CheckoutContext: react1.Context<(Omit<zustand0.StoreApi<CheckoutState>, "persist"> & {
217
+ declare const CheckoutContext: react0.Context<(Omit<zustand0.StoreApi<CheckoutState>, "persist"> & {
218
218
  persist: {
219
- setOptions: (options: Partial<zustand_middleware1.PersistOptions<CheckoutState, unknown>>) => void;
219
+ setOptions: (options: Partial<zustand_middleware0.PersistOptions<CheckoutState, unknown>>) => void;
220
220
  clearStorage: () => void;
221
221
  rehydrate: () => Promise<void> | void;
222
222
  hasHydrated: () => boolean;
223
223
  onHydrate: (fn: (state: CheckoutState) => void) => () => void;
224
224
  onFinishHydration: (fn: (state: CheckoutState) => void) => () => void;
225
- getOptions: () => Partial<zustand_middleware1.PersistOptions<CheckoutState, unknown>>;
225
+ getOptions: () => Partial<zustand_middleware0.PersistOptions<CheckoutState, unknown>>;
226
226
  };
227
227
  }) | null>;
228
228
  type CheckoutProviderProps = React.PropsWithChildren<{
@@ -234,7 +234,7 @@ type CheckoutProviderProps = React.PropsWithChildren<{
234
234
  declare function CheckoutProvider({
235
235
  children,
236
236
  ...props
237
- }: CheckoutProviderProps): react1.JSX.Element;
237
+ }: CheckoutProviderProps): react0.JSX.Element;
238
238
  declare function useCheckout<T>(selector: (state: CheckoutState) => T): T;
239
239
  //#endregion
240
240
  //#region src/hooks/useTenant/useTenant.d.ts
@@ -249,15 +249,15 @@ type TenantActions = {
249
249
  type TenantState = TenantProps & {
250
250
  actions: TenantActions;
251
251
  };
252
- declare const TenantContext: react1.Context<(Omit<zustand0.StoreApi<TenantState>, "persist"> & {
252
+ declare const TenantContext: react0.Context<(Omit<zustand0.StoreApi<TenantState>, "persist"> & {
253
253
  persist: {
254
- setOptions: (options: Partial<zustand_middleware1.PersistOptions<TenantState, unknown>>) => void;
254
+ setOptions: (options: Partial<zustand_middleware0.PersistOptions<TenantState, unknown>>) => void;
255
255
  clearStorage: () => void;
256
256
  rehydrate: () => Promise<void> | void;
257
257
  hasHydrated: () => boolean;
258
258
  onHydrate: (fn: (state: TenantState) => void) => () => void;
259
259
  onFinishHydration: (fn: (state: TenantState) => void) => () => void;
260
- getOptions: () => Partial<zustand_middleware1.PersistOptions<TenantState, unknown>>;
260
+ getOptions: () => Partial<zustand_middleware0.PersistOptions<TenantState, unknown>>;
261
261
  };
262
262
  }) | null>;
263
263
  type TenantProviderProps = React.PropsWithChildren<{
@@ -268,7 +268,7 @@ type TenantProviderProps = React.PropsWithChildren<{
268
268
  declare function TenantProvider({
269
269
  children,
270
270
  ...props
271
- }: TenantProviderProps): react1.JSX.Element;
271
+ }: TenantProviderProps): react0.JSX.Element;
272
272
  declare function useTenant<T>(selector: (state: TenantState) => T): T;
273
273
  //#endregion
274
274
  //#region src/order/order-address.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-checkout",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Mixer Checkout module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -25,15 +25,15 @@
25
25
  },
26
26
  "dependencies": {},
27
27
  "peerDependencies": {
28
- "@websolutespa/bom-core": "*",
29
- "@websolutespa/bom-mixer-auth": "*",
30
- "@websolutespa/bom-mixer-emails": "*",
31
- "@websolutespa/bom-mixer-forms": "*",
32
- "@websolutespa/bom-mixer-hooks": "*",
33
- "@websolutespa/bom-mixer-icons": "*",
34
- "@websolutespa/bom-mixer-models": "*",
35
- "@websolutespa/bom-mixer-store": "*",
36
- "@websolutespa/bom-mixer-ui": "*",
28
+ "@websolutespa/bom-core": "^3.0.1",
29
+ "@websolutespa/bom-mixer-auth": "^3.0.1",
30
+ "@websolutespa/bom-mixer-emails": "^3.0.1",
31
+ "@websolutespa/bom-mixer-forms": "^3.0.1",
32
+ "@websolutespa/bom-mixer-hooks": "^3.0.1",
33
+ "@websolutespa/bom-mixer-icons": "^3.0.1",
34
+ "@websolutespa/bom-mixer-models": "^3.0.2",
35
+ "@websolutespa/bom-mixer-store": "^3.0.1",
36
+ "@websolutespa/bom-mixer-ui": "^3.0.1",
37
37
  "next": "16.1.6",
38
38
  "react-dom": "19.2.3",
39
39
  "react": "19.2.3",
@@ -44,10 +44,10 @@
44
44
  "@types/react-dom": "19.2.3",
45
45
  "@types/react": "19.2.10",
46
46
  "@types/styled-components": "5.1.34",
47
- "@websolutespa/bom-cli": "*",
48
- "@websolutespa/test": "*",
49
- "@websolutespa/tsconfig": "*",
50
- "@websolutespa/eslint-config": "*",
47
+ "@websolutespa/bom-cli": "^3.0.1",
48
+ "@websolutespa/eslint-config": "^3.0.0",
49
+ "@websolutespa/test": "^3.0.1",
50
+ "@websolutespa/tsconfig": "^3.0.0",
51
51
  "eslint": "9.31.0",
52
52
  "npm-run-all": "4.1.5",
53
53
  "raw-loader": "4.0.2",
@@ -58,7 +58,12 @@
58
58
  "vitest": "3.2.3"
59
59
  },
60
60
  "publishConfig": {
61
- "access": "public"
61
+ "access": "public",
62
+ "exports": {
63
+ ".": "./dist/index.js",
64
+ "./exports\\server": "./dist/exports\\server.js",
65
+ "./package.json": "./package.json"
66
+ }
62
67
  },
63
68
  "sideEffects": false,
64
69
  "type": "module",
@@ -95,6 +100,7 @@
95
100
  }
96
101
  }
97
102
  },
103
+ "module": "./dist/index.js",
98
104
  "types": "./dist/index.d.ts",
99
105
  "main": "./dist/index.js",
100
106
  "source": "./src/index.ts",