@akinon/projectzero 1.82.0-rc.1 → 1.82.0-rc.10
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 +23 -0
- package/app-template/.env.example +3 -0
- package/app-template/CHANGELOG.md +249 -0
- package/app-template/package.json +18 -18
- package/app-template/src/app/[commerce]/[locale]/[currency]/error.tsx +29 -1
- package/app-template/src/views/header/action-menu.tsx +6 -3
- package/app-template/src/views/header/mini-basket.tsx +6 -1
- package/app-template/src/views/otp-login/index.tsx +12 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @akinon/projectzero
|
|
2
2
|
|
|
3
|
+
## 1.82.0-rc.10
|
|
4
|
+
|
|
5
|
+
## 1.82.0-rc.9
|
|
6
|
+
|
|
7
|
+
## 1.82.0-rc.8
|
|
8
|
+
|
|
9
|
+
## 1.82.0-rc.7
|
|
10
|
+
|
|
11
|
+
## 1.82.0-rc.6
|
|
12
|
+
|
|
13
|
+
## 1.82.0-rc.5
|
|
14
|
+
|
|
15
|
+
## 1.82.0-rc.4
|
|
16
|
+
|
|
17
|
+
## 1.82.0-rc.3
|
|
18
|
+
|
|
19
|
+
## 1.82.0-rc.2
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
24
|
+
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
25
|
+
|
|
3
26
|
## 1.82.0-rc.1
|
|
4
27
|
|
|
5
28
|
## 1.82.0-rc.0
|
|
@@ -4,6 +4,9 @@ NEXT_PUBLIC_MAP_API_KEY=YOUR_MAP_API_KEY
|
|
|
4
4
|
NEXT_PUBLIC_GTM_KEY=GTM_KEY
|
|
5
5
|
NEXT_PUBLIC_URL=http://localhost:3000
|
|
6
6
|
SERVICE_BACKEND_URL=https://02fde10fee4440269e695aa10707dfaf.lb.akinoncloud.com
|
|
7
|
+
|
|
8
|
+
# LOG_LEVEL_DEV=debug # For more details, please refer to the Logging documentation.
|
|
9
|
+
|
|
7
10
|
# CACHE_SECRET=KhvhE1go3GDmYJ7PhZLmskqfhYNlPSm6
|
|
8
11
|
# CACHE_HOST=default:redispw@localhost
|
|
9
12
|
# CACHE_PORT=6379
|
|
@@ -1,5 +1,254 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.82.0-rc.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [624a4eb6]
|
|
8
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.10
|
|
9
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.10
|
|
10
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.10
|
|
11
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.10
|
|
12
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.10
|
|
13
|
+
- @akinon/pz-click-collect@1.82.0-rc.10
|
|
14
|
+
- @akinon/pz-masterpass@1.82.0-rc.10
|
|
15
|
+
- @akinon/pz-saved-card@1.82.0-rc.10
|
|
16
|
+
- @akinon/pz-akifast@1.82.0-rc.10
|
|
17
|
+
- @akinon/pz-gpay@1.82.0-rc.10
|
|
18
|
+
- @akinon/pz-b2b@1.82.0-rc.10
|
|
19
|
+
- @akinon/pz-bkm@1.82.0-rc.10
|
|
20
|
+
- @akinon/pz-otp@1.82.0-rc.10
|
|
21
|
+
- @akinon/next@1.82.0-rc.10
|
|
22
|
+
- @akinon/pz-credit-payment@1.82.0-rc.10
|
|
23
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.10
|
|
24
|
+
|
|
25
|
+
## 1.82.0-rc.9
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- 9abd011: ZERO-3267: Refactor error handling in ErrorPage component to set error details in Sentry scope
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [9abd011]
|
|
34
|
+
- @akinon/next@1.82.0-rc.9
|
|
35
|
+
- @akinon/pz-akifast@1.82.0-rc.9
|
|
36
|
+
- @akinon/pz-b2b@1.82.0-rc.9
|
|
37
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.9
|
|
38
|
+
- @akinon/pz-bkm@1.82.0-rc.9
|
|
39
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.9
|
|
40
|
+
- @akinon/pz-click-collect@1.82.0-rc.9
|
|
41
|
+
- @akinon/pz-credit-payment@1.82.0-rc.9
|
|
42
|
+
- @akinon/pz-gpay@1.82.0-rc.9
|
|
43
|
+
- @akinon/pz-masterpass@1.82.0-rc.9
|
|
44
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.9
|
|
45
|
+
- @akinon/pz-otp@1.82.0-rc.9
|
|
46
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.9
|
|
47
|
+
- @akinon/pz-saved-card@1.82.0-rc.9
|
|
48
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.9
|
|
49
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.9
|
|
50
|
+
|
|
51
|
+
## 1.82.0-rc.8
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- Updated dependencies [17bfadc]
|
|
56
|
+
- @akinon/next@1.82.0-rc.8
|
|
57
|
+
- @akinon/pz-akifast@1.82.0-rc.8
|
|
58
|
+
- @akinon/pz-b2b@1.82.0-rc.8
|
|
59
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.8
|
|
60
|
+
- @akinon/pz-bkm@1.82.0-rc.8
|
|
61
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.8
|
|
62
|
+
- @akinon/pz-click-collect@1.82.0-rc.8
|
|
63
|
+
- @akinon/pz-credit-payment@1.82.0-rc.8
|
|
64
|
+
- @akinon/pz-gpay@1.82.0-rc.8
|
|
65
|
+
- @akinon/pz-masterpass@1.82.0-rc.8
|
|
66
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.8
|
|
67
|
+
- @akinon/pz-otp@1.82.0-rc.8
|
|
68
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.8
|
|
69
|
+
- @akinon/pz-saved-card@1.82.0-rc.8
|
|
70
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.8
|
|
71
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.8
|
|
72
|
+
|
|
73
|
+
## 1.82.0-rc.7
|
|
74
|
+
|
|
75
|
+
### Minor Changes
|
|
76
|
+
|
|
77
|
+
- c3b2f3f: ZERO-3267: Enable sentry client errors and filter them by log type
|
|
78
|
+
|
|
79
|
+
### Patch Changes
|
|
80
|
+
|
|
81
|
+
- Updated dependencies [c3b2f3f]
|
|
82
|
+
- @akinon/next@1.82.0-rc.7
|
|
83
|
+
- @akinon/pz-akifast@1.82.0-rc.7
|
|
84
|
+
- @akinon/pz-b2b@1.82.0-rc.7
|
|
85
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.7
|
|
86
|
+
- @akinon/pz-bkm@1.82.0-rc.7
|
|
87
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.7
|
|
88
|
+
- @akinon/pz-click-collect@1.82.0-rc.7
|
|
89
|
+
- @akinon/pz-credit-payment@1.82.0-rc.7
|
|
90
|
+
- @akinon/pz-gpay@1.82.0-rc.7
|
|
91
|
+
- @akinon/pz-masterpass@1.82.0-rc.7
|
|
92
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.7
|
|
93
|
+
- @akinon/pz-otp@1.82.0-rc.7
|
|
94
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.7
|
|
95
|
+
- @akinon/pz-saved-card@1.82.0-rc.7
|
|
96
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.7
|
|
97
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.7
|
|
98
|
+
|
|
99
|
+
## 1.82.0-rc.6
|
|
100
|
+
|
|
101
|
+
### Patch Changes
|
|
102
|
+
|
|
103
|
+
- Updated dependencies [0b1bd07f]
|
|
104
|
+
- @akinon/next@1.82.0-rc.6
|
|
105
|
+
- @akinon/pz-akifast@1.82.0-rc.6
|
|
106
|
+
- @akinon/pz-b2b@1.82.0-rc.6
|
|
107
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.6
|
|
108
|
+
- @akinon/pz-bkm@1.82.0-rc.6
|
|
109
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.6
|
|
110
|
+
- @akinon/pz-click-collect@1.82.0-rc.6
|
|
111
|
+
- @akinon/pz-credit-payment@1.82.0-rc.6
|
|
112
|
+
- @akinon/pz-gpay@1.82.0-rc.6
|
|
113
|
+
- @akinon/pz-masterpass@1.82.0-rc.6
|
|
114
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.6
|
|
115
|
+
- @akinon/pz-otp@1.82.0-rc.6
|
|
116
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.6
|
|
117
|
+
- @akinon/pz-saved-card@1.82.0-rc.6
|
|
118
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.6
|
|
119
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.6
|
|
120
|
+
|
|
121
|
+
## 1.82.0-rc.5
|
|
122
|
+
|
|
123
|
+
### Minor Changes
|
|
124
|
+
|
|
125
|
+
- 6f506afc: ZERO-3229: Implement mini basket query for basket total quantity
|
|
126
|
+
|
|
127
|
+
### Patch Changes
|
|
128
|
+
|
|
129
|
+
- Updated dependencies [6f506afc]
|
|
130
|
+
- Updated dependencies [c0c19629]
|
|
131
|
+
- Updated dependencies [9be2c081]
|
|
132
|
+
- @akinon/next@1.82.0-rc.5
|
|
133
|
+
- @akinon/pz-akifast@1.82.0-rc.5
|
|
134
|
+
- @akinon/pz-b2b@1.82.0-rc.5
|
|
135
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.5
|
|
136
|
+
- @akinon/pz-bkm@1.82.0-rc.5
|
|
137
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.5
|
|
138
|
+
- @akinon/pz-click-collect@1.82.0-rc.5
|
|
139
|
+
- @akinon/pz-credit-payment@1.82.0-rc.5
|
|
140
|
+
- @akinon/pz-gpay@1.82.0-rc.5
|
|
141
|
+
- @akinon/pz-masterpass@1.82.0-rc.5
|
|
142
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.5
|
|
143
|
+
- @akinon/pz-otp@1.82.0-rc.5
|
|
144
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.5
|
|
145
|
+
- @akinon/pz-saved-card@1.82.0-rc.5
|
|
146
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.5
|
|
147
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.5
|
|
148
|
+
|
|
149
|
+
## 1.82.0-rc.4
|
|
150
|
+
|
|
151
|
+
### Patch Changes
|
|
152
|
+
|
|
153
|
+
- Updated dependencies [b6e5b624]
|
|
154
|
+
- @akinon/next@1.82.0-rc.4
|
|
155
|
+
- @akinon/pz-akifast@1.82.0-rc.4
|
|
156
|
+
- @akinon/pz-b2b@1.82.0-rc.4
|
|
157
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.4
|
|
158
|
+
- @akinon/pz-bkm@1.82.0-rc.4
|
|
159
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.4
|
|
160
|
+
- @akinon/pz-click-collect@1.82.0-rc.4
|
|
161
|
+
- @akinon/pz-credit-payment@1.82.0-rc.4
|
|
162
|
+
- @akinon/pz-gpay@1.82.0-rc.4
|
|
163
|
+
- @akinon/pz-masterpass@1.82.0-rc.4
|
|
164
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.4
|
|
165
|
+
- @akinon/pz-otp@1.82.0-rc.4
|
|
166
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.4
|
|
167
|
+
- @akinon/pz-saved-card@1.82.0-rc.4
|
|
168
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.4
|
|
169
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.4
|
|
170
|
+
|
|
171
|
+
## 1.82.0-rc.3
|
|
172
|
+
|
|
173
|
+
### Minor Changes
|
|
174
|
+
|
|
175
|
+
- a0a1bac4: ZERO-3228 :edit OTP login flow to use Redux for popup visibility and clean up unused props
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- Updated dependencies [a0a1bac4]
|
|
180
|
+
- @akinon/pz-otp@1.82.0-rc.3
|
|
181
|
+
- @akinon/next@1.82.0-rc.3
|
|
182
|
+
- @akinon/pz-akifast@1.82.0-rc.3
|
|
183
|
+
- @akinon/pz-b2b@1.82.0-rc.3
|
|
184
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.3
|
|
185
|
+
- @akinon/pz-bkm@1.82.0-rc.3
|
|
186
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.3
|
|
187
|
+
- @akinon/pz-click-collect@1.82.0-rc.3
|
|
188
|
+
- @akinon/pz-credit-payment@1.82.0-rc.3
|
|
189
|
+
- @akinon/pz-gpay@1.82.0-rc.3
|
|
190
|
+
- @akinon/pz-masterpass@1.82.0-rc.3
|
|
191
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.3
|
|
192
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.3
|
|
193
|
+
- @akinon/pz-saved-card@1.82.0-rc.3
|
|
194
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.3
|
|
195
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.3
|
|
196
|
+
|
|
197
|
+
## 1.82.0-rc.2
|
|
198
|
+
|
|
199
|
+
### Minor Changes
|
|
200
|
+
|
|
201
|
+
- 82174637: ZERO-2887: Add LoaderSpinner to Filters component
|
|
202
|
+
- 4d3deb4f: ZERO-2935: sentry 8 upgrade
|
|
203
|
+
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
204
|
+
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
205
|
+
- 2d305aaf: ZERO-2935: Update Sentry configuration: remove hideSourceMaps option and add it to withPzConfig
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- Updated dependencies [757ee539]
|
|
210
|
+
- Updated dependencies [5dfeea04]
|
|
211
|
+
- Updated dependencies [2d9b2b2c]
|
|
212
|
+
- Updated dependencies [40a46853]
|
|
213
|
+
- Updated dependencies [f49bb74f]
|
|
214
|
+
- Updated dependencies [0e051352]
|
|
215
|
+
- Updated dependencies [e9541a13]
|
|
216
|
+
- Updated dependencies [4d3deb4f]
|
|
217
|
+
- Updated dependencies [72fd4d67]
|
|
218
|
+
- Updated dependencies [c53ef7b9]
|
|
219
|
+
- Updated dependencies [64699d3f]
|
|
220
|
+
- Updated dependencies [7727ae55]
|
|
221
|
+
- Updated dependencies [d552629f]
|
|
222
|
+
- Updated dependencies [17f87524]
|
|
223
|
+
- Updated dependencies [65d3b862]
|
|
224
|
+
- Updated dependencies [bbe18b9f]
|
|
225
|
+
- Updated dependencies [4920742c]
|
|
226
|
+
- Updated dependencies [7e56d6b6]
|
|
227
|
+
- Updated dependencies [43c182ee]
|
|
228
|
+
- Updated dependencies [2d305aaf]
|
|
229
|
+
- Updated dependencies [eeb20bea]
|
|
230
|
+
- Updated dependencies [f2c92d5c]
|
|
231
|
+
- Updated dependencies [7bd3d992]
|
|
232
|
+
- Updated dependencies [fdd255ee]
|
|
233
|
+
- Updated dependencies [49eeebfa]
|
|
234
|
+
- Updated dependencies [3f9b8d7e]
|
|
235
|
+
- @akinon/next@1.82.0-rc.2
|
|
236
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.2
|
|
237
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.2
|
|
238
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.2
|
|
239
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.2
|
|
240
|
+
- @akinon/pz-credit-payment@1.82.0-rc.2
|
|
241
|
+
- @akinon/pz-click-collect@1.82.0-rc.2
|
|
242
|
+
- @akinon/pz-masterpass@1.82.0-rc.2
|
|
243
|
+
- @akinon/pz-akifast@1.82.0-rc.2
|
|
244
|
+
- @akinon/pz-gpay@1.82.0-rc.2
|
|
245
|
+
- @akinon/pz-b2b@1.82.0-rc.2
|
|
246
|
+
- @akinon/pz-bkm@1.82.0-rc.2
|
|
247
|
+
- @akinon/pz-otp@1.82.0-rc.2
|
|
248
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.2
|
|
249
|
+
- @akinon/pz-saved-card@1.82.0-rc.2
|
|
250
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.2
|
|
251
|
+
|
|
3
252
|
## 1.82.0-rc.1
|
|
4
253
|
|
|
5
254
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.82.0-rc.
|
|
3
|
+
"version": "1.82.0-rc.10",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"prestart": "pz-prestart"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@akinon/next": "1.82.0-rc.
|
|
26
|
-
"@akinon/pz-akifast": "1.82.0-rc.
|
|
27
|
-
"@akinon/pz-b2b": "1.82.0-rc.
|
|
28
|
-
"@akinon/pz-basket-gift-pack": "1.82.0-rc.
|
|
29
|
-
"@akinon/pz-bkm": "1.82.0-rc.
|
|
30
|
-
"@akinon/pz-checkout-gift-pack": "1.82.0-rc.
|
|
31
|
-
"@akinon/pz-click-collect": "1.82.0-rc.
|
|
32
|
-
"@akinon/pz-credit-payment": "1.82.0-rc.
|
|
33
|
-
"@akinon/pz-gpay": "1.82.0-rc.
|
|
34
|
-
"@akinon/pz-masterpass": "1.82.0-rc.
|
|
35
|
-
"@akinon/pz-one-click-checkout": "1.82.0-rc.
|
|
36
|
-
"@akinon/pz-otp": "1.82.0-rc.
|
|
37
|
-
"@akinon/pz-pay-on-delivery": "1.82.0-rc.
|
|
38
|
-
"@akinon/pz-saved-card": "1.82.0-rc.
|
|
39
|
-
"@akinon/pz-tabby-extension": "1.82.0-rc.
|
|
40
|
-
"@akinon/pz-tamara-extension": "1.82.0-rc.
|
|
25
|
+
"@akinon/next": "1.82.0-rc.10",
|
|
26
|
+
"@akinon/pz-akifast": "1.82.0-rc.10",
|
|
27
|
+
"@akinon/pz-b2b": "1.82.0-rc.10",
|
|
28
|
+
"@akinon/pz-basket-gift-pack": "1.82.0-rc.10",
|
|
29
|
+
"@akinon/pz-bkm": "1.82.0-rc.10",
|
|
30
|
+
"@akinon/pz-checkout-gift-pack": "1.82.0-rc.10",
|
|
31
|
+
"@akinon/pz-click-collect": "1.82.0-rc.10",
|
|
32
|
+
"@akinon/pz-credit-payment": "1.82.0-rc.10",
|
|
33
|
+
"@akinon/pz-gpay": "1.82.0-rc.10",
|
|
34
|
+
"@akinon/pz-masterpass": "1.82.0-rc.10",
|
|
35
|
+
"@akinon/pz-one-click-checkout": "1.82.0-rc.10",
|
|
36
|
+
"@akinon/pz-otp": "1.82.0-rc.10",
|
|
37
|
+
"@akinon/pz-pay-on-delivery": "1.82.0-rc.10",
|
|
38
|
+
"@akinon/pz-saved-card": "1.82.0-rc.10",
|
|
39
|
+
"@akinon/pz-tabby-extension": "1.82.0-rc.10",
|
|
40
|
+
"@akinon/pz-tamara-extension": "1.82.0-rc.10",
|
|
41
41
|
"@hookform/resolvers": "2.9.0",
|
|
42
42
|
"@next/third-parties": "14.1.0",
|
|
43
43
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"yup": "0.32.11"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@akinon/eslint-plugin-projectzero": "1.82.0-rc.
|
|
65
|
+
"@akinon/eslint-plugin-projectzero": "1.82.0-rc.10",
|
|
66
66
|
"@semantic-release/changelog": "6.0.2",
|
|
67
67
|
"@semantic-release/exec": "6.0.3",
|
|
68
68
|
"@semantic-release/git": "10.0.1",
|
|
@@ -3,10 +3,38 @@
|
|
|
3
3
|
import { useLocalization } from '@akinon/next/hooks';
|
|
4
4
|
import { Link } from '@theme/components';
|
|
5
5
|
import { ROUTES } from '@theme/routes';
|
|
6
|
+
import { useEffect } from 'react';
|
|
7
|
+
import * as Sentry from '@sentry/nextjs';
|
|
8
|
+
import { ClientLogType } from '@akinon/next/sentry';
|
|
6
9
|
|
|
7
|
-
export default function
|
|
10
|
+
export default function ErrorPage({
|
|
11
|
+
error,
|
|
12
|
+
reset
|
|
13
|
+
}: {
|
|
14
|
+
error: Error & { digest?: string };
|
|
15
|
+
reset: () => void;
|
|
16
|
+
}) {
|
|
8
17
|
const { t } = useLocalization();
|
|
9
18
|
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
Sentry.withScope(function (scope) {
|
|
21
|
+
scope.setLevel('fatal');
|
|
22
|
+
scope.setTags({
|
|
23
|
+
APP_TYPE: 'ProjectZeroNext',
|
|
24
|
+
TYPE: 'Client',
|
|
25
|
+
LOG_TYPE: ClientLogType.UNCAUGHT_ERROR_PAGE
|
|
26
|
+
});
|
|
27
|
+
scope.setExtra('error', error);
|
|
28
|
+
|
|
29
|
+
const error_ = new Error('FATAL: Uncaught client error');
|
|
30
|
+
error_.name = 'UNCAUGHT_ERROR_PAGE';
|
|
31
|
+
|
|
32
|
+
Sentry.captureException(error_, {
|
|
33
|
+
fingerprint: ['UNCAUGHT_ERROR_PAGE', error.digest]
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
}, [error]);
|
|
37
|
+
|
|
10
38
|
return (
|
|
11
39
|
<section className="text-center px-6 my-14 md:px-0 md:m-14">
|
|
12
40
|
<div className="text-7xl font-bold md:text-8xl">500</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { ReactNode, useMemo, useRef, useCallback } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useGetMiniBasketQuery } from '@akinon/next/data/client/basket';
|
|
5
5
|
import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
|
|
6
6
|
import {
|
|
7
7
|
closeMiniBasket,
|
|
@@ -29,8 +29,11 @@ interface MenuItem {
|
|
|
29
29
|
export default function ActionMenu() {
|
|
30
30
|
const dispatch = useAppDispatch();
|
|
31
31
|
|
|
32
|
-
const { data } =
|
|
33
|
-
const totalQuantity = useMemo(
|
|
32
|
+
const { data: miniBasket } = useGetMiniBasketQuery();
|
|
33
|
+
const totalQuantity = useMemo(
|
|
34
|
+
() => miniBasket?.total_quantity ?? 0,
|
|
35
|
+
[miniBasket]
|
|
36
|
+
);
|
|
34
37
|
|
|
35
38
|
const { open: miniBasketOpen } = useAppSelector(
|
|
36
39
|
(state) => state.root.miniBasket
|
|
@@ -5,6 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import {
|
|
6
6
|
basketApi,
|
|
7
7
|
useGetBasketQuery,
|
|
8
|
+
useGetMiniBasketQuery,
|
|
8
9
|
useUpdateQuantityMutation
|
|
9
10
|
} from '@akinon/next/data/client/basket';
|
|
10
11
|
import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
|
|
@@ -151,12 +152,16 @@ export default function MiniBasket() {
|
|
|
151
152
|
);
|
|
152
153
|
const dispatch = useAppDispatch();
|
|
153
154
|
const { data: basket, isLoading, isSuccess } = useGetBasketQuery();
|
|
155
|
+
const { data: miniBasket } = useGetMiniBasketQuery();
|
|
154
156
|
const { t } = useLocalization();
|
|
155
157
|
const { highlightedItem } = useAppSelector((state) => state.root.miniBasket);
|
|
156
158
|
const [highlightedItemPk, setHighlightedItemPk] = useState(0);
|
|
157
159
|
const [sortedBasket, setSortedBasket] = useState([]);
|
|
158
160
|
|
|
159
|
-
const totalQuantity = useMemo(
|
|
161
|
+
const totalQuantity = useMemo(
|
|
162
|
+
() => miniBasket?.total_quantity ?? 0,
|
|
163
|
+
[miniBasket]
|
|
164
|
+
);
|
|
160
165
|
const miniBasketList = useRef();
|
|
161
166
|
|
|
162
167
|
useEffect(() => {
|
|
@@ -10,9 +10,10 @@ import { yupResolver } from '@hookform/resolvers/yup';
|
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
import { useLocalization } from '@akinon/next/hooks';
|
|
12
12
|
import { useOtpLoginMutation } from '@akinon/next/data/client/user';
|
|
13
|
-
import { useAppSelector } from '@akinon/next/redux/hooks';
|
|
13
|
+
import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
|
|
14
14
|
import PluginModule, { Component } from '@akinon/next/components/plugin-module';
|
|
15
15
|
import { AuthError } from '@akinon/next/types';
|
|
16
|
+
import { showPopup } from '@akinon/pz-otp/src/redux/reducer';
|
|
16
17
|
|
|
17
18
|
const loginFormSchema = (t) =>
|
|
18
19
|
yup.object().shape({
|
|
@@ -25,9 +26,9 @@ const loginFormSchema = (t) =>
|
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
export const OtpLogin = () => {
|
|
29
|
+
const dispatch = useAppDispatch();
|
|
28
30
|
const { user_phone_format } = useAppSelector((state) => state.config);
|
|
29
31
|
const { t, locale } = useLocalization();
|
|
30
|
-
const [showOtpModal, setShowOtpModal] = useState(false);
|
|
31
32
|
const [otpLoginMutation] = useOtpLoginMutation();
|
|
32
33
|
|
|
33
34
|
const {
|
|
@@ -79,7 +80,7 @@ export const OtpLogin = () => {
|
|
|
79
80
|
})
|
|
80
81
|
.unwrap()
|
|
81
82
|
.then(() => {
|
|
82
|
-
|
|
83
|
+
dispatch(showPopup());
|
|
83
84
|
})
|
|
84
85
|
.catch((error) => {
|
|
85
86
|
if (error.status === 429) {
|
|
@@ -136,17 +137,14 @@ export const OtpLogin = () => {
|
|
|
136
137
|
</Button>
|
|
137
138
|
</form>
|
|
138
139
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}}
|
|
148
|
-
/>
|
|
149
|
-
)}
|
|
140
|
+
<PluginModule
|
|
141
|
+
component={Component.Otp}
|
|
142
|
+
props={{
|
|
143
|
+
data: getValues(),
|
|
144
|
+
submitAction: loginHandler,
|
|
145
|
+
error: formError
|
|
146
|
+
}}
|
|
147
|
+
/>
|
|
150
148
|
</section>
|
|
151
149
|
);
|
|
152
150
|
};
|