@websolutespa/bom-mixer-checkout 1.9.3 → 2.0.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/CHANGELOG.md +139 -133
- package/dist/types/hooks/useCart/useCart.d.ts +1 -1
- package/dist/types/hooks/useCart/useCart.d.ts.map +1 -1
- package/dist/types/hooks/useCheckout/useCheckout.d.ts +1 -1
- package/dist/types/hooks/useCheckout/useCheckout.d.ts.map +1 -1
- package/dist/types/hooks/useTenant/useTenant.d.ts +1 -1
- package/dist/types/hooks/useTenant/useTenant.d.ts.map +1 -1
- package/package.json +14 -14
- package/src/hooks/useCart/useCart.test.tsx +1 -1
- package/src/hooks/useCart/useCart.tsx +1 -1
- package/src/hooks/useCheckout/useCheckout.tsx +1 -1
- package/src/hooks/useTenant/useTenant.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,133 +1,139 @@
|
|
|
1
|
-
# @websolutespa/bom-mixer-checkout
|
|
2
|
-
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
###
|
|
6
|
-
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
-
|
|
113
|
-
|
|
114
|
-
## 1.8.
|
|
115
|
-
|
|
116
|
-
### Patch Changes
|
|
117
|
-
|
|
118
|
-
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
1
|
+
# @websolutespa/bom-mixer-checkout
|
|
2
|
+
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Release: Bom 2.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,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ITenant } from 'src/models/tenant/tenant';
|
|
3
2
|
import { StateStorage } from 'zustand/middleware';
|
|
4
3
|
import { IArticle, ICartItem } from '../../models';
|
|
4
|
+
import { ITenant } from '../../models/tenant/tenant';
|
|
5
5
|
type CartProps = {
|
|
6
6
|
hydrated: boolean;
|
|
7
7
|
items: ICartItem[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCart.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCart/useCart.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"useCart.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCart/useCart.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,YAAY,EAA8B,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAGrD,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,KAAK,IAAI,MAAM,CAAC;IAChB,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC;IAC7B,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAC5C,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IAChC,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAC;IAC9B,KAAK,IAAI,IAAI,CAAC;CACf,CAAC;AAEF,KAAK,SAAS,GAAG,SAAS,GAAG;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB,CAAC;AAuFF,eAAO,MAAM,WAAW;;;;;;;;;;UAAwC,CAAC;AAEjE,KAAK,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC/C,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC,CAAC;AAEH,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAmB9D;AAED,iBAAS,OAAO,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,CAAC,GAAG,CAAC,CAIxD;AAED,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IAddressOptions } from '@websolutespa/bom-mixer-models';
|
|
3
|
-
import { ITenant } from 'src/models/tenant/tenant';
|
|
4
3
|
import { StateStorage } from 'zustand/middleware';
|
|
5
4
|
import { ICheckoutPartial } from '../../models';
|
|
5
|
+
import { ITenant } from '../../models/tenant/tenant';
|
|
6
6
|
type CheckoutProps = {
|
|
7
7
|
hydrated: boolean;
|
|
8
8
|
data: IAddressOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCheckout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCheckout/useCheckout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"useCheckout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useCheckout/useCheckout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE,OAAO,EAAE,YAAY,EAA8B,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AASrD,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,WAAW,CAAC,QAAQ,EAAE,gBAAgB,GAAG,IAAI,CAAC;CAC/C,CAAC;AAEF,KAAK,aAAa,GAAG,aAAa,GAAG;IACnC,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC;AAmDF,eAAO,MAAM,eAAe;;;;;;;;;;UAA4C,CAAC;AAEzE,KAAK,qBAAqB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACnD,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC,CAAC;AAEH,iBAAS,gBAAgB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAmBtE;AAED,iBAAS,WAAW,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,CAAC,GAAG,CAAC,CAIhE;AAED,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTenant.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTenant/useTenant.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"useTenant.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTenant/useTenant.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAA8B,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAMrD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,KAAK,WAAW,GAAG,WAAW,GAAG;IAC/B,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AA2CF,eAAO,MAAM,aAAa;;;;;;;;;;UAA0C,CAAC;AAErE,KAAK,mBAAmB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACjD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,CAAC,CAAC;AAEH,iBAAS,cAAc,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,2CAUlE;AAED,iBAAS,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,CAAC,GAAG,CAAC,CAM5D;AAED,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/bom-mixer-checkout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Mixer Checkout module of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bom",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@websolutespa/bom-core": "
|
|
28
|
-
"@websolutespa/bom-mixer-auth": "
|
|
29
|
-
"@websolutespa/bom-mixer-emails": "
|
|
30
|
-
"@websolutespa/bom-mixer-forms": "
|
|
31
|
-
"@websolutespa/bom-mixer-hooks": "
|
|
32
|
-
"@websolutespa/bom-mixer-icons": "
|
|
33
|
-
"@websolutespa/bom-mixer-models": "
|
|
34
|
-
"@websolutespa/bom-mixer-store": "
|
|
35
|
-
"@websolutespa/bom-mixer-ui": "
|
|
27
|
+
"@websolutespa/bom-core": "^2.0.0",
|
|
28
|
+
"@websolutespa/bom-mixer-auth": "^2.0.0",
|
|
29
|
+
"@websolutespa/bom-mixer-emails": "^2.0.0",
|
|
30
|
+
"@websolutespa/bom-mixer-forms": "^2.0.0",
|
|
31
|
+
"@websolutespa/bom-mixer-hooks": "^2.0.0",
|
|
32
|
+
"@websolutespa/bom-mixer-icons": "^2.0.0",
|
|
33
|
+
"@websolutespa/bom-mixer-models": "^2.0.0",
|
|
34
|
+
"@websolutespa/bom-mixer-store": "^2.0.0",
|
|
35
|
+
"@websolutespa/bom-mixer-ui": "^2.0.0",
|
|
36
36
|
"next": ">= 14.1.4",
|
|
37
37
|
"react-dom": ">= 18.2.0",
|
|
38
38
|
"react": ">= 18.2.0",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@types/react-dom": "^18.2.24",
|
|
44
44
|
"@types/react": "^18.2.75",
|
|
45
45
|
"@types/styled-components": "^5.1.26",
|
|
46
|
-
"@websolutespa/bom-cli": "
|
|
47
|
-
"@websolutespa/test": "
|
|
48
|
-
"@websolutespa/tsconfig": "
|
|
49
|
-
"eslint-config-websolute": "
|
|
46
|
+
"@websolutespa/bom-cli": "^2.0.0",
|
|
47
|
+
"@websolutespa/test": "^2.0.0",
|
|
48
|
+
"@websolutespa/tsconfig": "^2.0.0",
|
|
49
|
+
"eslint-config-websolute": "^2.0.0",
|
|
50
50
|
"eslint": "^8.56.0",
|
|
51
51
|
"npm-run-all": "^4.1.5",
|
|
52
52
|
"raw-loader": "^4.0.2",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
// readme https://testing-library.com/
|
|
4
4
|
import { act, renderHook } from '@testing-library/react';
|
|
5
|
-
import { IArticle } from '
|
|
5
|
+
import { IArticle } from '../../models';
|
|
6
6
|
import { CartProvider, useCart } from './useCart';
|
|
7
7
|
|
|
8
8
|
const wrapper = (props: { children: React.ReactNode }) => (
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isObject } from '@websolutespa/bom-core';
|
|
2
2
|
import { createContext, useContext, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { ITenant } from 'src/models/tenant/tenant';
|
|
4
3
|
import { createStore, useStore } from 'zustand';
|
|
5
4
|
import { StateStorage, createJSONStorage, persist } from 'zustand/middleware';
|
|
6
5
|
import { IArticle, ICartItem } from '../../models';
|
|
6
|
+
import { ITenant } from '../../models/tenant/tenant';
|
|
7
7
|
import { useTenant } from '../useTenant/useTenant';
|
|
8
8
|
|
|
9
9
|
type CartProps = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { IAddressOptions } from '@websolutespa/bom-mixer-models';
|
|
2
2
|
import { createContext, useContext, useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { ITenant } from 'src/models/tenant/tenant';
|
|
4
3
|
import { createStore, useStore } from 'zustand';
|
|
5
4
|
import { StateStorage, createJSONStorage, persist } from 'zustand/middleware';
|
|
6
5
|
import { ICheckoutPartial } from '../../models';
|
|
6
|
+
import { ITenant } from '../../models/tenant/tenant';
|
|
7
7
|
import { useTenant } from '../useTenant/useTenant';
|
|
8
8
|
|
|
9
9
|
type CheckoutInitialProps = Partial<
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext, useContext, useRef } from 'react';
|
|
2
|
-
import { ITenant } from 'src/models/tenant/tenant';
|
|
3
2
|
import { createStore, useStore } from 'zustand';
|
|
4
3
|
import { StateStorage, createJSONStorage, persist } from 'zustand/middleware';
|
|
4
|
+
import { ITenant } from '../../models/tenant/tenant';
|
|
5
5
|
|
|
6
6
|
type TenantInitialProps = Partial<
|
|
7
7
|
Omit<TenantProps, 'hydrated'>
|