@akinon/projectzero 1.35.0 → 1.36.0-rc.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 (44) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/app-template/CHANGELOG.md +340 -7
  3. package/app-template/eslint.config.js +10 -0
  4. package/app-template/package.json +10 -10
  5. package/app-template/public/locales/en/account.json +4 -4
  6. package/app-template/public/locales/tr/account.json +1 -1
  7. package/app-template/src/app/[commerce]/[locale]/[currency]/[...prettyurl]/page.tsx +8 -0
  8. package/app-template/src/app/[commerce]/[locale]/[currency]/account/change-email/page.tsx +0 -2
  9. package/app-template/src/app/[commerce]/[locale]/[currency]/account/coupons/page.tsx +4 -4
  10. package/app-template/src/app/[commerce]/[locale]/[currency]/account/profile/page.tsx +1 -0
  11. package/app-template/src/app/[commerce]/[locale]/[currency]/address/stores/page.tsx +2 -2
  12. package/app-template/src/app/[commerce]/[locale]/[currency]/auth/page.tsx +1 -1
  13. package/app-template/src/app/[commerce]/[locale]/[currency]/landing-page/[pk]/page.tsx +0 -2
  14. package/app-template/src/app/[commerce]/[locale]/[currency]/orders/checkout/page.tsx +2 -2
  15. package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/page.tsx +13 -9
  16. package/app-template/src/app/api/form/[...id]/route.ts +3 -3
  17. package/app-template/src/components/carousel-core.tsx +1 -1
  18. package/app-template/src/components/checkbox.tsx +2 -2
  19. package/app-template/src/components/input.tsx +19 -7
  20. package/app-template/src/components/pagination.tsx +2 -2
  21. package/app-template/src/components/price.tsx +3 -3
  22. package/app-template/src/middleware.ts +13 -13
  23. package/app-template/src/redux/reducers/category.ts +23 -1
  24. package/app-template/src/redux/store.ts +1 -1
  25. package/app-template/src/types/next-auth.d.ts +1 -0
  26. package/app-template/src/views/account/account-menu.tsx +0 -1
  27. package/app-template/src/views/account/address-form.tsx +4 -4
  28. package/app-template/src/views/account/favourite-products/favourite-products-list.tsx +5 -1
  29. package/app-template/src/views/account/orders/order-detail-header.tsx +0 -7
  30. package/app-template/src/views/category/category-active-filters.tsx +24 -35
  31. package/app-template/src/views/category/category-info.tsx +3 -3
  32. package/app-template/src/views/category/filters/index.tsx +23 -13
  33. package/app-template/src/views/checkout/auth.tsx +1 -1
  34. package/app-template/src/views/checkout/steps/payment/options/credit-card/index.tsx +1 -1
  35. package/app-template/src/views/checkout/steps/payment/options/funds-transfer.tsx +2 -3
  36. package/app-template/src/views/checkout/steps/payment/options/redirection.tsx +2 -5
  37. package/app-template/src/views/find-in-store/index.tsx +2 -2
  38. package/app-template/src/views/header/mini-basket.tsx +2 -2
  39. package/app-template/src/views/product/product-info.tsx +9 -2
  40. package/app-template/src/views/product-item/index.tsx +1 -1
  41. package/app-template/src/widgets/footer-subscription/footer-subscription-form.tsx +1 -1
  42. package/app-template/tsconfig.json +14 -4
  43. package/package.json +1 -1
  44. package/app-template/.eslintrc.js +0 -31
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.36.0-rc.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
8
+
3
9
  ## 1.35.0
4
10
 
5
11
  ## 1.34.0
@@ -9,6 +15,36 @@
9
15
  - cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
10
16
  - 735f4f0: ZERO-2661: create .npmignore in app-template
11
17
 
18
+ ## 1.34.0-rc.16
19
+
20
+ ### Minor Changes
21
+
22
+ - cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
23
+
24
+ ## 1.34.0-rc.15
25
+
26
+ ### Minor Changes
27
+
28
+ - 735f4f0: ZERO-2661: create .npmignore in app-template
29
+
30
+ ## 1.34.0-rc.14
31
+
32
+ ## 1.34.0-rc.13
33
+
34
+ ## 1.34.0-rc.12
35
+
36
+ ## 1.34.0-rc.11
37
+
38
+ ## 1.34.0-rc.10
39
+
40
+ ## 1.34.0-rc.9
41
+
42
+ ## 1.34.0-rc.8
43
+
44
+ ## 1.34.0-rc.7
45
+
46
+ ## 1.34.0-rc.6
47
+
12
48
  ## 1.33.2
13
49
 
14
50
  ### Patch Changes
@@ -1,5 +1,50 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.36.0-rc.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 27a5296: ZERO-2631:Fix Checkbox Click
8
+ - ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
9
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
10
+ - 74a1269: ZERO-2658:Edit product name clickability on completed order page
11
+ - 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
12
+ - 91265bb: ZERO-2551: Improve pretty url and caching performance
13
+ - 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
14
+ - 3420416: ZERO-2533: extend eslint config from @akinon/next
15
+ - beb499e: ZERO-2551: Add new tsconfig paths
16
+ - 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
17
+ - 202f84e: ZERO-2569: Fix static keys
18
+ - 4614eee: ZERO-2602: The script that checks the build for standalone projects
19
+ - f046f8e: ZERO-2575: update version for react-number-format
20
+ - 12c10a4: ZERO-2570: Category filters routes to absolute url
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [a4c8d6a]
25
+ - Updated dependencies [8e6e8cf]
26
+ - Updated dependencies [c53ef7b]
27
+ - Updated dependencies [ebb63ce]
28
+ - Updated dependencies [7cebe87]
29
+ - Updated dependencies [616690d]
30
+ - Updated dependencies [91265bb]
31
+ - Updated dependencies [59fb7c3]
32
+ - Updated dependencies [bbe18b9]
33
+ - Updated dependencies [3420416]
34
+ - Updated dependencies [beb499e]
35
+ - Updated dependencies [6c18543]
36
+ - Updated dependencies [40ad73e]
37
+ - Updated dependencies [495d155]
38
+ - Updated dependencies [f046f8e]
39
+ - Updated dependencies [3e68768]
40
+ - @akinon/next@1.36.0-rc.0
41
+ - @akinon/pz-one-click-checkout@1.36.0-rc.0
42
+ - @akinon/pz-b2b@1.36.0-rc.0
43
+ - @akinon/pz-gpay@1.36.0-rc.0
44
+ - @akinon/pz-masterpass@1.36.0-rc.0
45
+ - @akinon/pz-otp@1.36.0-rc.0
46
+ - @akinon/pz-pay-on-delivery@1.36.0-rc.0
47
+
3
48
  ## 1.35.0
4
49
 
5
50
  ### Minor Changes
@@ -29,13 +74,301 @@
29
74
 
30
75
  ### Patch Changes
31
76
 
32
- - @akinon/next@1.34.0
33
- - @akinon/pz-b2b@1.34.0
34
- - @akinon/pz-gpay@1.34.0
35
- - @akinon/pz-masterpass@1.34.0
36
- - @akinon/pz-one-click-checkout@1.34.0
37
- - @akinon/pz-otp@1.34.0
38
- - @akinon/pz-pay-on-delivery@1.34.0
77
+ - Updated dependencies [a4c8d6a]
78
+ - Updated dependencies [d09b677]
79
+ - Updated dependencies [6d4aadb]
80
+ - Updated dependencies [8e6e8cf]
81
+ - Updated dependencies [c53ef7b]
82
+ - Updated dependencies [ebb63ce]
83
+ - Updated dependencies [7cebe87]
84
+ - Updated dependencies [616690d]
85
+ - Updated dependencies [f3b595e]
86
+ - Updated dependencies [91265bb]
87
+ - Updated dependencies [59fb7c3]
88
+ - Updated dependencies [bbe18b9]
89
+ - Updated dependencies [f0c23bc]
90
+ - Updated dependencies [3420416]
91
+ - Updated dependencies [495d155]
92
+ - Updated dependencies [beb499e]
93
+ - Updated dependencies [6c18543]
94
+ - Updated dependencies [40ad73e]
95
+ - Updated dependencies [495d155]
96
+ - Updated dependencies [f046f8e]
97
+ - Updated dependencies [6b2972b]
98
+ - Updated dependencies [3e68768]
99
+ - @akinon/next@1.34.0-rc.20
100
+ - @akinon/pz-masterpass@1.34.0-rc.20
101
+ - @akinon/pz-one-click-checkout@1.34.0-rc.20
102
+ - @akinon/pz-b2b@1.34.0-rc.20
103
+ - @akinon/pz-gpay@1.34.0-rc.20
104
+ - @akinon/pz-otp@1.34.0-rc.20
105
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.20
106
+
107
+ ## 1.34.0-rc.19
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [c53ef7b]
112
+ - @akinon/next@1.34.0-rc.19
113
+ - @akinon/pz-b2b@1.34.0-rc.19
114
+ - @akinon/pz-gpay@1.34.0-rc.19
115
+ - @akinon/pz-masterpass@1.34.0-rc.19
116
+ - @akinon/pz-one-click-checkout@1.34.0-rc.19
117
+ - @akinon/pz-otp@1.34.0-rc.19
118
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.19
119
+
120
+ ## 1.34.0-rc.18
121
+
122
+ ### Minor Changes
123
+
124
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
125
+ - 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
126
+
127
+ ### Patch Changes
128
+
129
+ - Updated dependencies [a4c8d6a]
130
+ - @akinon/next@1.34.0-rc.18
131
+ - @akinon/pz-b2b@1.34.0-rc.18
132
+ - @akinon/pz-gpay@1.34.0-rc.18
133
+ - @akinon/pz-masterpass@1.34.0-rc.18
134
+ - @akinon/pz-one-click-checkout@1.34.0-rc.18
135
+ - @akinon/pz-otp@1.34.0-rc.18
136
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.18
137
+
138
+ ## 1.34.0-rc.17
139
+
140
+ ### Minor Changes
141
+
142
+ - 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
143
+ - d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
144
+ - 27a5296: ZERO-2631:Fix Checkbox Click
145
+ - ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
146
+ - 74a1269: ZERO-2658:Edit product name clickability on completed order page
147
+ - 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
148
+ - 91265bb: ZERO-2551: Improve pretty url and caching performance
149
+ - f0c23bc: ZERO-2135: add custom not found page
150
+ - 3420416: ZERO-2533: extend eslint config from @akinon/next
151
+ - beb499e: ZERO-2551: Add new tsconfig paths
152
+ - 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
153
+ - 202f84e: ZERO-2569: Fix static keys
154
+ - 4614eee: ZERO-2602: The script that checks the build for standalone projects
155
+ - f046f8e: ZERO-2575: update version for react-number-format
156
+ - 12c10a4: ZERO-2570: Category filters routes to absolute url
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [d09b677]
161
+ - Updated dependencies [6d4aadb]
162
+ - Updated dependencies [8e6e8cf]
163
+ - Updated dependencies [ebb63ce]
164
+ - Updated dependencies [7cebe87]
165
+ - Updated dependencies [616690d]
166
+ - Updated dependencies [f3b595e]
167
+ - Updated dependencies [91265bb]
168
+ - Updated dependencies [59fb7c3]
169
+ - Updated dependencies [bbe18b9]
170
+ - Updated dependencies [f0c23bc]
171
+ - Updated dependencies [3420416]
172
+ - Updated dependencies [495d155]
173
+ - Updated dependencies [beb499e]
174
+ - Updated dependencies [6c18543]
175
+ - Updated dependencies [40ad73e]
176
+ - Updated dependencies [495d155]
177
+ - Updated dependencies [f046f8e]
178
+ - Updated dependencies [6b2972b]
179
+ - Updated dependencies [3e68768]
180
+ - @akinon/next@1.34.0-rc.17
181
+ - @akinon/pz-masterpass@1.34.0-rc.17
182
+ - @akinon/pz-one-click-checkout@1.34.0-rc.17
183
+ - @akinon/pz-b2b@1.34.0-rc.17
184
+ - @akinon/pz-gpay@1.34.0-rc.17
185
+ - @akinon/pz-otp@1.34.0-rc.17
186
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.17
187
+
188
+ ## 1.34.0-rc.16
189
+
190
+ ### Patch Changes
191
+
192
+ - @akinon/next@1.34.0-rc.16
193
+ - @akinon/pz-b2b@1.34.0-rc.16
194
+ - @akinon/pz-gpay@1.34.0-rc.16
195
+ - @akinon/pz-masterpass@1.34.0-rc.16
196
+ - @akinon/pz-one-click-checkout@1.34.0-rc.16
197
+ - @akinon/pz-otp@1.34.0-rc.16
198
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.16
199
+
200
+ ## 1.34.0-rc.15
201
+
202
+ ### Patch Changes
203
+
204
+ - @akinon/next@1.34.0-rc.15
205
+ - @akinon/pz-b2b@1.34.0-rc.15
206
+ - @akinon/pz-gpay@1.34.0-rc.15
207
+ - @akinon/pz-masterpass@1.34.0-rc.15
208
+ - @akinon/pz-one-click-checkout@1.34.0-rc.15
209
+ - @akinon/pz-otp@1.34.0-rc.15
210
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.15
211
+
212
+ ## 1.34.0-rc.14
213
+
214
+ ### Minor Changes
215
+
216
+ - 4614eee: ZERO-2602: The script that checks the build for standalone projects
217
+
218
+ ### Patch Changes
219
+
220
+ - @akinon/next@1.34.0-rc.14
221
+ - @akinon/pz-b2b@1.34.0-rc.14
222
+ - @akinon/pz-gpay@1.34.0-rc.14
223
+ - @akinon/pz-masterpass@1.34.0-rc.14
224
+ - @akinon/pz-one-click-checkout@1.34.0-rc.14
225
+ - @akinon/pz-otp@1.34.0-rc.14
226
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.14
227
+
228
+ ## 1.34.0-rc.13
229
+
230
+ ### Minor Changes
231
+
232
+ - 74a1269: ZERO-2658:Edit product name clickability on completed order page
233
+
234
+ ### Patch Changes
235
+
236
+ - @akinon/next@1.34.0-rc.13
237
+ - @akinon/pz-b2b@1.34.0-rc.13
238
+ - @akinon/pz-gpay@1.34.0-rc.13
239
+ - @akinon/pz-masterpass@1.34.0-rc.13
240
+ - @akinon/pz-one-click-checkout@1.34.0-rc.13
241
+ - @akinon/pz-otp@1.34.0-rc.13
242
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.13
243
+
244
+ ## 1.34.0-rc.12
245
+
246
+ ### Patch Changes
247
+
248
+ - Updated dependencies [616690d]
249
+ - @akinon/next@1.34.0-rc.12
250
+ - @akinon/pz-b2b@1.34.0-rc.12
251
+ - @akinon/pz-gpay@1.34.0-rc.12
252
+ - @akinon/pz-masterpass@1.34.0-rc.12
253
+ - @akinon/pz-one-click-checkout@1.34.0-rc.12
254
+ - @akinon/pz-otp@1.34.0-rc.12
255
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.12
256
+
257
+ ## 1.34.0-rc.11
258
+
259
+ ### Patch Changes
260
+
261
+ - Updated dependencies [8e6e8cf]
262
+ - @akinon/next@1.34.0-rc.11
263
+ - @akinon/pz-b2b@1.34.0-rc.11
264
+ - @akinon/pz-gpay@1.34.0-rc.11
265
+ - @akinon/pz-masterpass@1.34.0-rc.11
266
+ - @akinon/pz-one-click-checkout@1.34.0-rc.11
267
+ - @akinon/pz-otp@1.34.0-rc.11
268
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.11
269
+
270
+ ## 1.34.0-rc.10
271
+
272
+ ### Patch Changes
273
+
274
+ - Updated dependencies [bbe18b9]
275
+ - @akinon/next@1.34.0-rc.10
276
+ - @akinon/pz-b2b@1.34.0-rc.10
277
+ - @akinon/pz-gpay@1.34.0-rc.10
278
+ - @akinon/pz-masterpass@1.34.0-rc.10
279
+ - @akinon/pz-one-click-checkout@1.34.0-rc.10
280
+ - @akinon/pz-otp@1.34.0-rc.10
281
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.10
282
+
283
+ ## 1.34.0-rc.9
284
+
285
+ ### Minor Changes
286
+
287
+ - beb499e: ZERO-2551: Add new tsconfig paths
288
+
289
+ ### Patch Changes
290
+
291
+ - Updated dependencies [beb499e]
292
+ - @akinon/next@1.34.0-rc.9
293
+ - @akinon/pz-b2b@1.34.0-rc.9
294
+ - @akinon/pz-gpay@1.34.0-rc.9
295
+ - @akinon/pz-masterpass@1.34.0-rc.9
296
+ - @akinon/pz-one-click-checkout@1.34.0-rc.9
297
+ - @akinon/pz-otp@1.34.0-rc.9
298
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.9
299
+
300
+ ## 1.34.0-rc.8
301
+
302
+ ### Minor Changes
303
+
304
+ - 91265bb: ZERO-2551: Improve pretty url and caching performance
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [91265bb]
309
+ - @akinon/next@1.34.0-rc.8
310
+ - @akinon/pz-b2b@1.34.0-rc.8
311
+ - @akinon/pz-gpay@1.34.0-rc.8
312
+ - @akinon/pz-masterpass@1.34.0-rc.8
313
+ - @akinon/pz-one-click-checkout@1.34.0-rc.8
314
+ - @akinon/pz-otp@1.34.0-rc.8
315
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.8
316
+
317
+ ## 1.34.0-rc.7
318
+
319
+ ### Minor Changes
320
+
321
+ - 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
322
+
323
+ ### Patch Changes
324
+
325
+ - @akinon/next@1.34.0-rc.7
326
+ - @akinon/pz-b2b@1.34.0-rc.7
327
+ - @akinon/pz-gpay@1.34.0-rc.7
328
+ - @akinon/pz-masterpass@1.34.0-rc.7
329
+ - @akinon/pz-one-click-checkout@1.34.0-rc.7
330
+ - @akinon/pz-otp@1.34.0-rc.7
331
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.7
332
+
333
+ ## 1.34.0-rc.6
334
+
335
+ ### Minor Changes
336
+
337
+ - 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
338
+ - d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
339
+ - 27a5296: ZERO-2631:Fix Checkbox Click
340
+ - ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
341
+ - f0c23bc: ZERO-2135: add custom not found page
342
+ - 3420416: ZERO-2533: extend eslint config from @akinon/next
343
+ - 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
344
+ - 202f84e: ZERO-2569: Fix static keys
345
+ - f046f8e: ZERO-2575: update version for react-number-format
346
+ - 12c10a4: ZERO-2570: Category filters routes to absolute url
347
+
348
+ ### Patch Changes
349
+
350
+ - Updated dependencies [d09b677]
351
+ - Updated dependencies [6d4aadb]
352
+ - Updated dependencies [ebb63ce]
353
+ - Updated dependencies [7cebe87]
354
+ - Updated dependencies [f3b595e]
355
+ - Updated dependencies [59fb7c3]
356
+ - Updated dependencies [f0c23bc]
357
+ - Updated dependencies [3420416]
358
+ - Updated dependencies [495d155]
359
+ - Updated dependencies [6c18543]
360
+ - Updated dependencies [40ad73e]
361
+ - Updated dependencies [495d155]
362
+ - Updated dependencies [f046f8e]
363
+ - Updated dependencies [6b2972b]
364
+ - Updated dependencies [3e68768]
365
+ - @akinon/next@1.34.0-rc.6
366
+ - @akinon/pz-masterpass@1.34.0-rc.6
367
+ - @akinon/pz-one-click-checkout@1.34.0-rc.6
368
+ - @akinon/pz-b2b@1.34.0-rc.6
369
+ - @akinon/pz-gpay@1.34.0-rc.6
370
+ - @akinon/pz-otp@1.34.0-rc.6
371
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.6
39
372
 
40
373
  ## 1.33.2
41
374
 
@@ -0,0 +1,10 @@
1
+ const baseConfig = require('@akinon/next/eslint.config')
2
+
3
+ module.exports = {
4
+ ...baseConfig,
5
+ settings: {
6
+ next: {
7
+ rootDir: ['src/*/']
8
+ }
9
+ },
10
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.35.0",
3
+ "version": "1.36.0-rc.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,13 +22,13 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.35.0",
26
- "@akinon/pz-b2b": "1.35.0",
27
- "@akinon/pz-gpay": "1.35.0",
28
- "@akinon/pz-masterpass": "1.35.0",
29
- "@akinon/pz-one-click-checkout": "1.35.0",
30
- "@akinon/pz-otp": "1.35.0",
31
- "@akinon/pz-pay-on-delivery": "1.35.0",
25
+ "@akinon/next": "1.36.0-rc.0",
26
+ "@akinon/pz-b2b": "1.36.0-rc.0",
27
+ "@akinon/pz-gpay": "1.36.0-rc.0",
28
+ "@akinon/pz-masterpass": "1.36.0-rc.0",
29
+ "@akinon/pz-one-click-checkout": "1.36.0-rc.0",
30
+ "@akinon/pz-otp": "1.36.0-rc.0",
31
+ "@akinon/pz-pay-on-delivery": "1.36.0-rc.0",
32
32
  "@hookform/resolvers": "2.9.0",
33
33
  "@next/third-parties": "14.1.0",
34
34
  "@react-google-maps/api": "2.17.1",
@@ -53,7 +53,7 @@
53
53
  "yup": "0.32.11"
54
54
  },
55
55
  "devDependencies": {
56
- "@akinon/eslint-plugin-projectzero": "1.35.0",
56
+ "@akinon/eslint-plugin-projectzero": "1.36.0-rc.0",
57
57
  "@semantic-release/changelog": "6.0.2",
58
58
  "@semantic-release/exec": "6.0.3",
59
59
  "@semantic-release/git": "10.0.1",
@@ -80,7 +80,7 @@
80
80
  "jest-css-modules-transform": "4.3.0",
81
81
  "lint-staged": "13.1.0",
82
82
  "prettier": "2.6.2",
83
- "react-number-format": "4.9.3",
83
+ "react-number-format": "5.3.4",
84
84
  "sass": "1.49.9",
85
85
  "semantic-release": "19.0.5",
86
86
  "server-only": "0.0.1",
@@ -286,11 +286,11 @@
286
286
  "empty_coupon": "You don't have any coupons"
287
287
  },
288
288
  "title": {
289
- "campaings": {
289
+ "campaigns": {
290
290
  "active": "Active Campaigns",
291
- "to_be_active": "Campaings to be Active",
292
- "expired": "Expired Campaings",
293
- "used": "Used Campaings"
291
+ "to_be_active": "Campaigns to be Active",
292
+ "expired": "Expired Campaigns",
293
+ "used": "Used Campaigns"
294
294
  },
295
295
  "coupons": {
296
296
  "active": "Active Coupons",
@@ -286,7 +286,7 @@
286
286
  "empty_coupon": "Herhangi bir kuponunuz yok"
287
287
  },
288
288
  "title": {
289
- "campaings": {
289
+ "campaigns": {
290
290
  "active": "Aktif Kampanyalar",
291
291
  "to_be_active": "Aktif Olacak Kampanyalar",
292
292
  "expired": "Süresi Dolmuş Kampanyalar",
@@ -0,0 +1,8 @@
1
+ import Page, {
2
+ dynamic,
3
+ revalidate,
4
+ generateMetadata
5
+ } from '@akinon/next/routes/pretty-url';
6
+
7
+ export { dynamic, revalidate, generateMetadata };
8
+ export default Page;
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import { useSession } from 'next-auth/react';
4
3
  import { useForm, SubmitHandler } from 'react-hook-form';
5
4
  import { yupResolver } from '@hookform/resolvers/yup';
6
5
  import * as yup from 'yup';
@@ -34,7 +33,6 @@ const accountChangeEmailSchema = (t) =>
34
33
  });
35
34
 
36
35
  export default function Page() {
37
- const { data } = useSession();
38
36
  const { data: profileInfo } = useGetProfileInfoQuery();
39
37
 
40
38
  const { t } = useLocalization();
@@ -51,7 +51,7 @@ export default function Page() {
51
51
  {basketOffersLoading && <LoaderSpinner className="mb-8" />}
52
52
  {basketOffersSuccess && (
53
53
  <CouponItem
54
- mainTitle={t('account.my_vouchers.title.campaings.active')}
54
+ mainTitle={t('account.my_vouchers.title.campaigns.active')}
55
55
  subTitles={[
56
56
  t('account.my_vouchers.card.campaign_name'),
57
57
  t('account.my_vouchers.card.starting_date'),
@@ -68,7 +68,7 @@ export default function Page() {
68
68
  {futureBasketOffersLoading && <LoaderSpinner className="mb-8" />}
69
69
  {futureBasketOffersSuccess && (
70
70
  <CouponItem
71
- mainTitle={t('account.my_vouchers.title.campaings.to_be_active')}
71
+ mainTitle={t('account.my_vouchers.title.campaigns.to_be_active')}
72
72
  subTitles={[
73
73
  t('account.my_vouchers.card.campaign_name'),
74
74
  t('account.my_vouchers.card.starting_date'),
@@ -85,7 +85,7 @@ export default function Page() {
85
85
  {expiredBasketOffersLoading && <LoaderSpinner className="mb-8" />}
86
86
  {expiredBasketOffersSuccess && (
87
87
  <CouponItem
88
- mainTitle={t('account.my_vouchers.title.campaings.expired')}
88
+ mainTitle={t('account.my_vouchers.title.campaigns.expired')}
89
89
  subTitles={[
90
90
  t('account.my_vouchers.card.campaign_name'),
91
91
  t('account.my_vouchers.card.starting_date'),
@@ -102,7 +102,7 @@ export default function Page() {
102
102
  {discountItemsLoading && <LoaderSpinner className="mb-8" />}
103
103
  {discountItemsSuccess && (
104
104
  <CouponItem
105
- mainTitle={t('account.my_vouchers.title.campaings.used')}
105
+ mainTitle={t('account.my_vouchers.title.campaigns.used')}
106
106
  subTitles={[
107
107
  t('account.my_vouchers.card.campaign_name'),
108
108
  t('account.my_vouchers.card.starting_date'),
@@ -247,6 +247,7 @@ export default function Page() {
247
247
  className="mb-5"
248
248
  required
249
249
  />
250
+
250
251
  <div className="mb-5">
251
252
  <Input
252
253
  label={t('account.my_profile.form.phone.placeholder')}
@@ -60,7 +60,7 @@ export default function Stores() {
60
60
  return options;
61
61
  }
62
62
  return [];
63
- }, [country]);
63
+ }, [country]); // eslint-disable-line react-hooks/exhaustive-deps
64
64
 
65
65
  const cityOptions = useMemo(() => {
66
66
  if (city) {
@@ -73,7 +73,7 @@ export default function Stores() {
73
73
  return options;
74
74
  }
75
75
  return [];
76
- }, [city]);
76
+ }, [city]); // eslint-disable-line react-hooks/exhaustive-deps
77
77
 
78
78
  const handleBackButtonClick = () => {
79
79
  setSelectedCityPk(null);
@@ -33,7 +33,7 @@ export default function Auth() {
33
33
  if (session?.user) {
34
34
  router.push(searchParams.get('callbackUrl') ?? '/');
35
35
  }
36
- }, [session?.user]);
36
+ }, [session?.user]); // eslint-disable-line react-hooks/exhaustive-deps
37
37
 
38
38
  return (
39
39
  <section className="container px-4 my-7 md:mt-20 lg:px-0 lg:mx-auto">
@@ -1,8 +1,6 @@
1
1
  import { getLandingPageData } from '@akinon/next/data/server';
2
2
  import { withSegmentDefaults } from '@akinon/next/hocs/server';
3
3
  import { PageProps } from '@akinon/next/types';
4
- import logger from '@akinon/next/utils/log';
5
- import * as console from 'console';
6
4
 
7
5
  async function Page({ params }: PageProps<{ pk: number }>) {
8
6
  const data = await getLandingPageData({ pk: params.pk });
@@ -51,7 +51,7 @@ const Checkout = () => {
51
51
  dispatch(setCurrentStep(CheckoutStep.Payment));
52
52
  initialStepChanged.current = true;
53
53
  }
54
- }, [steps.shipping.completed]);
54
+ }, [steps.shipping.completed]); // eslint-disable-line react-hooks/exhaustive-deps
55
55
 
56
56
  useEffect(() => {
57
57
  if (preOrder && !preOrder.shipping_option) {
@@ -63,7 +63,7 @@ const Checkout = () => {
63
63
  return () => {
64
64
  dispatch(resetCheckoutState());
65
65
  };
66
- }, []);
66
+ }, []); // eslint-disable-line react-hooks/exhaustive-deps
67
67
 
68
68
  useEffect(() => {
69
69
  if (isSuccess) {
@@ -40,7 +40,7 @@ const CheckoutCompleted = ({
40
40
  return () => {
41
41
  dispatch(setCurrentStep(CheckoutStep.Shipping));
42
42
  };
43
- }, []);
43
+ }, []); // eslint-disable-line react-hooks/exhaustive-deps
44
44
 
45
45
  useEffect(() => {
46
46
  if (data?.order) {
@@ -182,21 +182,25 @@ const CheckoutCompleted = ({
182
182
  }}
183
183
  >
184
184
  {data.order.orderitem_set.map((item) => (
185
- <div key={`order-item-${item.id}`} className="flex">
186
- <Link href={item.product.absolute_url} passHref>
185
+ <div
186
+ key={`order-item-${item.id}`}
187
+ className="flex justify-between gap-x-4 w-full"
188
+ >
189
+ <Link
190
+ className="flex justify-between gap-x-4 flex-1 items-center transition-all text-xs text-black-800 hover:text-secondary"
191
+ href={item.product.absolute_url}
192
+ passHref
193
+ >
187
194
  <Image
188
195
  src={item.product.image}
189
196
  alt={item.product.name}
190
197
  width={64}
191
198
  height={96}
192
199
  />
200
+
201
+ <span>{item.product.name}</span>
193
202
  </Link>
194
- <div className="flex justify-between flex-1 items-center ml-4">
195
- <>
196
- <div className="text-xs text-black-800 transition-all w-full hover:text-secondary">
197
- {item.product.name}
198
- </div>
199
- </>
203
+ <div className="flex justify-end items-center">
200
204
  <div>
201
205
  {item.retail_price !== item.price && (
202
206
  <div className="text-black-800 line-through text-xs min-w-max sm:text-sm">
@@ -1,7 +1,7 @@
1
- import { NextRequest, NextResponse } from 'next/server';
1
+ import { NextResponse } from 'next/server';
2
2
 
3
- export async function POST(req: NextRequest) {
3
+ export async function POST() {
4
4
  // TODO: Handle Form Data
5
5
 
6
- return NextResponse.json({message: 'ok'});
6
+ return NextResponse.json({ message: 'ok' });
7
7
  }
@@ -28,7 +28,7 @@ const CarouselCore = forwardRef<Carousel, CarouselProps>((props, ref) => {
28
28
  } else {
29
29
  setAspectRatio(containerAspectRatio.mobile);
30
30
  }
31
- }, [matches]);
31
+ }, [matches, containerAspectRatio]);
32
32
 
33
33
  return (
34
34
  <div className="w-full" style={{ aspectRatio }}>