@akinon/projectzero 1.36.0 → 1.37.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.37.0-rc.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
8
+ - 00ffde2: ZERO-2637: enhance create command with improved messaging
9
+
3
10
  ## 1.36.0
4
11
 
5
12
  ## 1.35.0
@@ -11,6 +18,36 @@
11
18
  - cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
12
19
  - 735f4f0: ZERO-2661: create .npmignore in app-template
13
20
 
21
+ ## 1.34.0-rc.16
22
+
23
+ ### Minor Changes
24
+
25
+ - cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
26
+
27
+ ## 1.34.0-rc.15
28
+
29
+ ### Minor Changes
30
+
31
+ - 735f4f0: ZERO-2661: create .npmignore in app-template
32
+
33
+ ## 1.34.0-rc.14
34
+
35
+ ## 1.34.0-rc.13
36
+
37
+ ## 1.34.0-rc.12
38
+
39
+ ## 1.34.0-rc.11
40
+
41
+ ## 1.34.0-rc.10
42
+
43
+ ## 1.34.0-rc.9
44
+
45
+ ## 1.34.0-rc.8
46
+
47
+ ## 1.34.0-rc.7
48
+
49
+ ## 1.34.0-rc.6
50
+
14
51
  ## 1.33.2
15
52
 
16
53
  ### Patch Changes
@@ -1,5 +1,36 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.37.0-rc.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 27a5296: ZERO-2631:Fix Checkbox Click
8
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
9
+ - 74a1269: ZERO-2658:Edit product name clickability on completed order page
10
+ - 91265bb: ZERO-2551: Improve pretty url and caching performance
11
+ - 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
12
+ - dff0d59: ZERO-2659: add formData support to proxy api requests
13
+ - beb499e: ZERO-2551: Add new tsconfig paths
14
+ - 4614eee: ZERO-2602: The script that checks the build for standalone projects
15
+ - f046f8e: ZERO-2575: update version for react-number-format
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [a4c8d6a]
20
+ - Updated dependencies [c53ef7b]
21
+ - Updated dependencies [91265bb]
22
+ - Updated dependencies [bbe18b9]
23
+ - Updated dependencies [dff0d59]
24
+ - Updated dependencies [beb499e]
25
+ - Updated dependencies [f046f8e]
26
+ - @akinon/next@1.37.0-rc.0
27
+ - @akinon/pz-b2b@1.37.0-rc.0
28
+ - @akinon/pz-gpay@1.37.0-rc.0
29
+ - @akinon/pz-masterpass@1.37.0-rc.0
30
+ - @akinon/pz-one-click-checkout@1.37.0-rc.0
31
+ - @akinon/pz-otp@1.37.0-rc.0
32
+ - @akinon/pz-pay-on-delivery@1.37.0-rc.0
33
+
3
34
  ## 1.36.0
4
35
 
5
36
  ### Minor Changes
@@ -60,13 +91,301 @@
60
91
 
61
92
  ### Patch Changes
62
93
 
63
- - @akinon/next@1.34.0
64
- - @akinon/pz-b2b@1.34.0
65
- - @akinon/pz-gpay@1.34.0
66
- - @akinon/pz-masterpass@1.34.0
67
- - @akinon/pz-one-click-checkout@1.34.0
68
- - @akinon/pz-otp@1.34.0
69
- - @akinon/pz-pay-on-delivery@1.34.0
94
+ - Updated dependencies [a4c8d6a]
95
+ - Updated dependencies [d09b677]
96
+ - Updated dependencies [6d4aadb]
97
+ - Updated dependencies [8e6e8cf]
98
+ - Updated dependencies [c53ef7b]
99
+ - Updated dependencies [ebb63ce]
100
+ - Updated dependencies [7cebe87]
101
+ - Updated dependencies [616690d]
102
+ - Updated dependencies [f3b595e]
103
+ - Updated dependencies [91265bb]
104
+ - Updated dependencies [59fb7c3]
105
+ - Updated dependencies [bbe18b9]
106
+ - Updated dependencies [f0c23bc]
107
+ - Updated dependencies [3420416]
108
+ - Updated dependencies [495d155]
109
+ - Updated dependencies [beb499e]
110
+ - Updated dependencies [6c18543]
111
+ - Updated dependencies [40ad73e]
112
+ - Updated dependencies [495d155]
113
+ - Updated dependencies [f046f8e]
114
+ - Updated dependencies [6b2972b]
115
+ - Updated dependencies [3e68768]
116
+ - @akinon/next@1.34.0-rc.20
117
+ - @akinon/pz-masterpass@1.34.0-rc.20
118
+ - @akinon/pz-one-click-checkout@1.34.0-rc.20
119
+ - @akinon/pz-b2b@1.34.0-rc.20
120
+ - @akinon/pz-gpay@1.34.0-rc.20
121
+ - @akinon/pz-otp@1.34.0-rc.20
122
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.20
123
+
124
+ ## 1.34.0-rc.19
125
+
126
+ ### Patch Changes
127
+
128
+ - Updated dependencies [c53ef7b]
129
+ - @akinon/next@1.34.0-rc.19
130
+ - @akinon/pz-b2b@1.34.0-rc.19
131
+ - @akinon/pz-gpay@1.34.0-rc.19
132
+ - @akinon/pz-masterpass@1.34.0-rc.19
133
+ - @akinon/pz-one-click-checkout@1.34.0-rc.19
134
+ - @akinon/pz-otp@1.34.0-rc.19
135
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.19
136
+
137
+ ## 1.34.0-rc.18
138
+
139
+ ### Minor Changes
140
+
141
+ - 9b6bf91: ZERO-2660: Change campaings to campaigns
142
+ - 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
143
+
144
+ ### Patch Changes
145
+
146
+ - Updated dependencies [a4c8d6a]
147
+ - @akinon/next@1.34.0-rc.18
148
+ - @akinon/pz-b2b@1.34.0-rc.18
149
+ - @akinon/pz-gpay@1.34.0-rc.18
150
+ - @akinon/pz-masterpass@1.34.0-rc.18
151
+ - @akinon/pz-one-click-checkout@1.34.0-rc.18
152
+ - @akinon/pz-otp@1.34.0-rc.18
153
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.18
154
+
155
+ ## 1.34.0-rc.17
156
+
157
+ ### Minor Changes
158
+
159
+ - 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
160
+ - d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
161
+ - 27a5296: ZERO-2631:Fix Checkbox Click
162
+ - ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
163
+ - 74a1269: ZERO-2658:Edit product name clickability on completed order page
164
+ - 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
165
+ - 91265bb: ZERO-2551: Improve pretty url and caching performance
166
+ - f0c23bc: ZERO-2135: add custom not found page
167
+ - 3420416: ZERO-2533: extend eslint config from @akinon/next
168
+ - beb499e: ZERO-2551: Add new tsconfig paths
169
+ - 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
170
+ - 202f84e: ZERO-2569: Fix static keys
171
+ - 4614eee: ZERO-2602: The script that checks the build for standalone projects
172
+ - f046f8e: ZERO-2575: update version for react-number-format
173
+ - 12c10a4: ZERO-2570: Category filters routes to absolute url
174
+
175
+ ### Patch Changes
176
+
177
+ - Updated dependencies [d09b677]
178
+ - Updated dependencies [6d4aadb]
179
+ - Updated dependencies [8e6e8cf]
180
+ - Updated dependencies [ebb63ce]
181
+ - Updated dependencies [7cebe87]
182
+ - Updated dependencies [616690d]
183
+ - Updated dependencies [f3b595e]
184
+ - Updated dependencies [91265bb]
185
+ - Updated dependencies [59fb7c3]
186
+ - Updated dependencies [bbe18b9]
187
+ - Updated dependencies [f0c23bc]
188
+ - Updated dependencies [3420416]
189
+ - Updated dependencies [495d155]
190
+ - Updated dependencies [beb499e]
191
+ - Updated dependencies [6c18543]
192
+ - Updated dependencies [40ad73e]
193
+ - Updated dependencies [495d155]
194
+ - Updated dependencies [f046f8e]
195
+ - Updated dependencies [6b2972b]
196
+ - Updated dependencies [3e68768]
197
+ - @akinon/next@1.34.0-rc.17
198
+ - @akinon/pz-masterpass@1.34.0-rc.17
199
+ - @akinon/pz-one-click-checkout@1.34.0-rc.17
200
+ - @akinon/pz-b2b@1.34.0-rc.17
201
+ - @akinon/pz-gpay@1.34.0-rc.17
202
+ - @akinon/pz-otp@1.34.0-rc.17
203
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.17
204
+
205
+ ## 1.34.0-rc.16
206
+
207
+ ### Patch Changes
208
+
209
+ - @akinon/next@1.34.0-rc.16
210
+ - @akinon/pz-b2b@1.34.0-rc.16
211
+ - @akinon/pz-gpay@1.34.0-rc.16
212
+ - @akinon/pz-masterpass@1.34.0-rc.16
213
+ - @akinon/pz-one-click-checkout@1.34.0-rc.16
214
+ - @akinon/pz-otp@1.34.0-rc.16
215
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.16
216
+
217
+ ## 1.34.0-rc.15
218
+
219
+ ### Patch Changes
220
+
221
+ - @akinon/next@1.34.0-rc.15
222
+ - @akinon/pz-b2b@1.34.0-rc.15
223
+ - @akinon/pz-gpay@1.34.0-rc.15
224
+ - @akinon/pz-masterpass@1.34.0-rc.15
225
+ - @akinon/pz-one-click-checkout@1.34.0-rc.15
226
+ - @akinon/pz-otp@1.34.0-rc.15
227
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.15
228
+
229
+ ## 1.34.0-rc.14
230
+
231
+ ### Minor Changes
232
+
233
+ - 4614eee: ZERO-2602: The script that checks the build for standalone projects
234
+
235
+ ### Patch Changes
236
+
237
+ - @akinon/next@1.34.0-rc.14
238
+ - @akinon/pz-b2b@1.34.0-rc.14
239
+ - @akinon/pz-gpay@1.34.0-rc.14
240
+ - @akinon/pz-masterpass@1.34.0-rc.14
241
+ - @akinon/pz-one-click-checkout@1.34.0-rc.14
242
+ - @akinon/pz-otp@1.34.0-rc.14
243
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.14
244
+
245
+ ## 1.34.0-rc.13
246
+
247
+ ### Minor Changes
248
+
249
+ - 74a1269: ZERO-2658:Edit product name clickability on completed order page
250
+
251
+ ### Patch Changes
252
+
253
+ - @akinon/next@1.34.0-rc.13
254
+ - @akinon/pz-b2b@1.34.0-rc.13
255
+ - @akinon/pz-gpay@1.34.0-rc.13
256
+ - @akinon/pz-masterpass@1.34.0-rc.13
257
+ - @akinon/pz-one-click-checkout@1.34.0-rc.13
258
+ - @akinon/pz-otp@1.34.0-rc.13
259
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.13
260
+
261
+ ## 1.34.0-rc.12
262
+
263
+ ### Patch Changes
264
+
265
+ - Updated dependencies [616690d]
266
+ - @akinon/next@1.34.0-rc.12
267
+ - @akinon/pz-b2b@1.34.0-rc.12
268
+ - @akinon/pz-gpay@1.34.0-rc.12
269
+ - @akinon/pz-masterpass@1.34.0-rc.12
270
+ - @akinon/pz-one-click-checkout@1.34.0-rc.12
271
+ - @akinon/pz-otp@1.34.0-rc.12
272
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.12
273
+
274
+ ## 1.34.0-rc.11
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies [8e6e8cf]
279
+ - @akinon/next@1.34.0-rc.11
280
+ - @akinon/pz-b2b@1.34.0-rc.11
281
+ - @akinon/pz-gpay@1.34.0-rc.11
282
+ - @akinon/pz-masterpass@1.34.0-rc.11
283
+ - @akinon/pz-one-click-checkout@1.34.0-rc.11
284
+ - @akinon/pz-otp@1.34.0-rc.11
285
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.11
286
+
287
+ ## 1.34.0-rc.10
288
+
289
+ ### Patch Changes
290
+
291
+ - Updated dependencies [bbe18b9]
292
+ - @akinon/next@1.34.0-rc.10
293
+ - @akinon/pz-b2b@1.34.0-rc.10
294
+ - @akinon/pz-gpay@1.34.0-rc.10
295
+ - @akinon/pz-masterpass@1.34.0-rc.10
296
+ - @akinon/pz-one-click-checkout@1.34.0-rc.10
297
+ - @akinon/pz-otp@1.34.0-rc.10
298
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.10
299
+
300
+ ## 1.34.0-rc.9
301
+
302
+ ### Minor Changes
303
+
304
+ - beb499e: ZERO-2551: Add new tsconfig paths
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [beb499e]
309
+ - @akinon/next@1.34.0-rc.9
310
+ - @akinon/pz-b2b@1.34.0-rc.9
311
+ - @akinon/pz-gpay@1.34.0-rc.9
312
+ - @akinon/pz-masterpass@1.34.0-rc.9
313
+ - @akinon/pz-one-click-checkout@1.34.0-rc.9
314
+ - @akinon/pz-otp@1.34.0-rc.9
315
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.9
316
+
317
+ ## 1.34.0-rc.8
318
+
319
+ ### Minor Changes
320
+
321
+ - 91265bb: ZERO-2551: Improve pretty url and caching performance
322
+
323
+ ### Patch Changes
324
+
325
+ - Updated dependencies [91265bb]
326
+ - @akinon/next@1.34.0-rc.8
327
+ - @akinon/pz-b2b@1.34.0-rc.8
328
+ - @akinon/pz-gpay@1.34.0-rc.8
329
+ - @akinon/pz-masterpass@1.34.0-rc.8
330
+ - @akinon/pz-one-click-checkout@1.34.0-rc.8
331
+ - @akinon/pz-otp@1.34.0-rc.8
332
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.8
333
+
334
+ ## 1.34.0-rc.7
335
+
336
+ ### Minor Changes
337
+
338
+ - 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
339
+
340
+ ### Patch Changes
341
+
342
+ - @akinon/next@1.34.0-rc.7
343
+ - @akinon/pz-b2b@1.34.0-rc.7
344
+ - @akinon/pz-gpay@1.34.0-rc.7
345
+ - @akinon/pz-masterpass@1.34.0-rc.7
346
+ - @akinon/pz-one-click-checkout@1.34.0-rc.7
347
+ - @akinon/pz-otp@1.34.0-rc.7
348
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.7
349
+
350
+ ## 1.34.0-rc.6
351
+
352
+ ### Minor Changes
353
+
354
+ - 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
355
+ - d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
356
+ - 27a5296: ZERO-2631:Fix Checkbox Click
357
+ - ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
358
+ - f0c23bc: ZERO-2135: add custom not found page
359
+ - 3420416: ZERO-2533: extend eslint config from @akinon/next
360
+ - 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
361
+ - 202f84e: ZERO-2569: Fix static keys
362
+ - f046f8e: ZERO-2575: update version for react-number-format
363
+ - 12c10a4: ZERO-2570: Category filters routes to absolute url
364
+
365
+ ### Patch Changes
366
+
367
+ - Updated dependencies [d09b677]
368
+ - Updated dependencies [6d4aadb]
369
+ - Updated dependencies [ebb63ce]
370
+ - Updated dependencies [7cebe87]
371
+ - Updated dependencies [f3b595e]
372
+ - Updated dependencies [59fb7c3]
373
+ - Updated dependencies [f0c23bc]
374
+ - Updated dependencies [3420416]
375
+ - Updated dependencies [495d155]
376
+ - Updated dependencies [6c18543]
377
+ - Updated dependencies [40ad73e]
378
+ - Updated dependencies [495d155]
379
+ - Updated dependencies [f046f8e]
380
+ - Updated dependencies [6b2972b]
381
+ - Updated dependencies [3e68768]
382
+ - @akinon/next@1.34.0-rc.6
383
+ - @akinon/pz-masterpass@1.34.0-rc.6
384
+ - @akinon/pz-one-click-checkout@1.34.0-rc.6
385
+ - @akinon/pz-b2b@1.34.0-rc.6
386
+ - @akinon/pz-gpay@1.34.0-rc.6
387
+ - @akinon/pz-otp@1.34.0-rc.6
388
+ - @akinon/pz-pay-on-delivery@1.34.0-rc.6
70
389
 
71
390
  ## 1.33.2
72
391
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.36.0",
3
+ "version": "1.37.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.36.0",
26
- "@akinon/pz-b2b": "1.36.0",
27
- "@akinon/pz-gpay": "1.36.0",
28
- "@akinon/pz-masterpass": "1.36.0",
29
- "@akinon/pz-one-click-checkout": "1.36.0",
30
- "@akinon/pz-otp": "1.36.0",
31
- "@akinon/pz-pay-on-delivery": "1.36.0",
25
+ "@akinon/next": "1.37.0-rc.0",
26
+ "@akinon/pz-b2b": "1.37.0-rc.0",
27
+ "@akinon/pz-gpay": "1.37.0-rc.0",
28
+ "@akinon/pz-masterpass": "1.37.0-rc.0",
29
+ "@akinon/pz-one-click-checkout": "1.37.0-rc.0",
30
+ "@akinon/pz-otp": "1.37.0-rc.0",
31
+ "@akinon/pz-pay-on-delivery": "1.37.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.36.0",
56
+ "@akinon/eslint-plugin-projectzero": "1.37.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;
@@ -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')}
@@ -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">
@@ -3,7 +3,7 @@ import { CheckboxProps } from '@theme/components/types';
3
3
  import { twMerge } from 'tailwind-merge';
4
4
 
5
5
  const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
6
- const { children, checked, error, ...rest } = props;
6
+ const { children, checked = false, error, ...rest } = props;
7
7
 
8
8
  return (
9
9
  <label className={twMerge('flex flex-col text-xs', props.className)}>
@@ -12,7 +12,7 @@ const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
12
12
  type="checkbox"
13
13
  {...rest}
14
14
  ref={ref}
15
- checked={checked ?? false}
15
+ defaultChecked={checked}
16
16
  className="w-4 h-4 shrink-0"
17
17
  />
18
18
  {children && <span className="ml-2">{children}</span>}
@@ -1,17 +1,28 @@
1
1
  import clsx from 'clsx';
2
- import { forwardRef, FocusEvent, useState } from 'react';
2
+ import { forwardRef, FocusEvent, useState, Ref } from 'react';
3
3
  import { Controller } from 'react-hook-form';
4
- import NumberFormat, { NumberFormatProps } from 'react-number-format';
4
+ import { PatternFormat, PatternFormatProps } from 'react-number-format';
5
5
  import { InputProps } from '@theme/components/types';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
 
8
+ const PatternFormatWithRef = forwardRef(
9
+ (props: PatternFormatProps, ref: Ref<HTMLInputElement>) => {
10
+ return <PatternFormat {...props} getInputRef={ref} />;
11
+ }
12
+ );
13
+ PatternFormatWithRef.displayName = 'PatternFormatWithRef';
14
+
8
15
  export const Input = forwardRef<
9
16
  HTMLInputElement,
10
17
  InputProps &
11
18
  Pick<
12
- NumberFormatProps,
13
- 'format' | 'mask' | 'allowEmptyFormatting' | 'onValueChange'
14
- >
19
+ PatternFormatProps,
20
+ 'mask' | 'allowEmptyFormatting' | 'onValueChange'
21
+ > & {
22
+ format?: string;
23
+ defaultValue?: string;
24
+ type?: string;
25
+ }
15
26
  >((props, ref) => {
16
27
  const [focused, setFocused] = useState(false);
17
28
  const [hasValue, setHasValue] = useState(false);
@@ -37,6 +48,7 @@ export const Input = forwardRef<
37
48
  ),
38
49
  props.className
39
50
  );
51
+
40
52
  const inputProps: any = {
41
53
  id,
42
54
  ref,
@@ -79,14 +91,14 @@ export const Input = forwardRef<
79
91
  <Controller
80
92
  name={props.name ?? ''}
81
93
  control={props.control}
82
- defaultValue={false}
83
94
  render={({ field }) => (
84
- <NumberFormat
95
+ <PatternFormatWithRef
85
96
  format={format}
86
97
  mask={mask ?? ''}
87
98
  {...rest}
88
99
  {...field}
89
100
  {...inputProps}
101
+ type={props.type as 'text' | 'password' | 'tel'}
90
102
  />
91
103
  )}
92
104
  />
@@ -1,10 +1,10 @@
1
1
  import { useMemo } from 'react';
2
- import NumberFormat, { NumberFormatProps } from 'react-number-format';
2
+ import { NumericFormat, NumericFormatProps } from 'react-number-format';
3
3
  import { getCurrency } from '@akinon/next/utils';
4
4
  import { PriceProps } from '@theme/types';
5
5
  import { useLocalization } from '@akinon/next/hooks';
6
6
 
7
- export const Price = (props: NumberFormatProps & PriceProps) => {
7
+ export const Price = (props: NumericFormatProps & PriceProps) => {
8
8
  const {
9
9
  value,
10
10
  currencyCode,
@@ -38,7 +38,7 @@ export const Price = (props: NumberFormatProps & PriceProps) => {
38
38
  );
39
39
 
40
40
  return (
41
- <NumberFormat
41
+ <NumericFormat
42
42
  value={useNegative ? `-${useNegativeSpace}${_value}` : _value}
43
43
  {...{
44
44
  [useCurrencyAfterPrice ? 'suffix' : 'prefix']: currency
@@ -3,9 +3,9 @@ import {
3
3
  Button,
4
4
  FileInput,
5
5
  Input,
6
+ Link,
6
7
  LoaderSpinner,
7
- Select,
8
- Link
8
+ Select
9
9
  } from '@theme/components';
10
10
  import { useSession } from 'next-auth/react';
11
11
  import { useEffect, useState } from 'react';
@@ -45,7 +45,8 @@ const contactFormSchema = (t) =>
45
45
  .when('subject', {
46
46
  is: (value) => value === '2',
47
47
  then: yup.string().required(t('account.contact.form.error.required'))
48
- })
48
+ }),
49
+ file: yup.mixed()
49
50
  });
50
51
 
51
52
  const ContactForm = () => {
@@ -110,8 +111,18 @@ const ContactForm = () => {
110
111
  resolver: yupResolver(contactFormSchema(t))
111
112
  });
112
113
 
113
- const onSubmit: SubmitHandler<ContactFormType> = (data) => {
114
- sendContact(data);
114
+ const onSubmit: SubmitHandler<ContactFormType> = (data, event) => {
115
+ const formData = new FormData()
116
+
117
+ Object.keys(data ?? {}).forEach((key) => {
118
+ if (key === "file" && data[key]){
119
+ formData.append(key, data[key][0]);
120
+ } else if (data[key]) {
121
+ formData.append(key, data[key]);
122
+ }
123
+ });
124
+
125
+ sendContact(formData);
115
126
  };
116
127
 
117
128
  const handleChange = (e) => {
@@ -242,7 +253,12 @@ const ContactForm = () => {
242
253
  <label className="text-xs text-gray-800 mb-2 block">
243
254
  {t('account.contact.form.file.title')}
244
255
  </label>
245
- <FileInput className="w-full mb-5" title="test" />
256
+ <FileInput
257
+ name="file"
258
+ title="file"
259
+ className="w-full mb-5"
260
+ {...register('file')}
261
+ />
246
262
  <Button type="submit" className="w-full font-medium">
247
263
  {t('account.contact.form.submit_button')}
248
264
  </Button>
@@ -30,7 +30,11 @@ const FavoriteProductsList = () => {
30
30
  }
31
31
 
32
32
  if (isLoading || isFetching) {
33
- return <LoaderSpinner />; // TODO: Fix loader spinner position
33
+ return (
34
+ <div className="flex items-center justify-center h-80">
35
+ <LoaderSpinner />
36
+ </div>
37
+ );
34
38
  }
35
39
 
36
40
  return (
@@ -3,7 +3,19 @@
3
3
  "display": "Default",
4
4
  "compilerOptions": {
5
5
  "baseUrl": "./src",
6
- "paths": { "@theme/*": ["./*"] },
6
+ "paths": {
7
+ "@theme/*": ["./*"],
8
+ "@root/*": ["./app/[commerce]/[locale]/[currency]/*"],
9
+ "@product/*": ["./app/[commerce]/[locale]/[currency]/product/*"],
10
+ "@group-product/*": [
11
+ "./app/[commerce]/[locale]/[currency]/group-product/*"
12
+ ],
13
+ "@category/*": ["./app/[commerce]/[locale]/[currency]/category/*"],
14
+ "@special-page/*": [
15
+ "./app/[commerce]/[locale]/[currency]/special-page/*"
16
+ ],
17
+ "@flat-page/*": ["./app/[commerce]/[locale]/[currency]/flat-page/*"]
18
+ },
7
19
  "allowSyntheticDefaultImports": true,
8
20
  "composite": false,
9
21
  "declaration": true,
@@ -40,7 +52,5 @@
40
52
  ".next/types/**/*.ts",
41
53
  "../../packages/**/*"
42
54
  ],
43
- "exclude": ["node_modules",
44
- "../../packages/projectzero/app-template"
45
- ]
55
+ "exclude": ["node_modules", "../../packages/projectzero/app-template"]
46
56
  }
@@ -3,6 +3,7 @@ import * as fs from 'fs';
3
3
  import * as readline from 'readline';
4
4
  import { slugify } from '../utils';
5
5
 
6
+ const { execSync } = require('child_process');
6
7
  const loadingSpinner = require('loading-spinner');
7
8
 
8
9
  interface Question {
@@ -139,7 +140,8 @@ export default async (): Promise<void> => {
139
140
  const answers = await getAnswers();
140
141
  const brandName =
141
142
  answers.brandName === '.' ? path.basename(workingDir) : answers.brandName;
142
- const projectDir = path.resolve(workingDir, slugify(brandName));
143
+ const projectDir = answers.brandName === '.' ? workingDir : path.resolve(workingDir, slugify(brandName));
144
+ const relativeProjectDir = answers.brandName === '.' ? '.' : slugify(brandName);
143
145
 
144
146
  if (!fs.existsSync(projectDir)) {
145
147
  fs.mkdirSync(projectDir, { recursive: true });
@@ -172,12 +174,34 @@ export default async (): Promise<void> => {
172
174
  name: slugify(brandName)
173
175
  });
174
176
 
177
+
178
+ console.log('\x1b[34m%s\x1b[0m', '\nšŸš€ Installing packages...\n');
179
+
180
+ execSync(`cd ${relativeProjectDir} && yarn install`, { stdio: 'ignore' });
181
+
175
182
  loadingSpinner.stop();
176
183
 
177
- console.log(
178
- '\x1b[32m%s\x1b[0m',
179
- `\n āœ“ ${answers.brandName} project is ready.\n`
180
- );
184
+ const successMessage = `
185
+ ✨ ${brandName} project is ready at \x1b[4m${projectDir}\x1b[0m
186
+
187
+ Within the directory, the following commands are available:
188
+
189
+ \x1b[35m$ yarn dev\x1b[0m
190
+ \x1b[32mLaunches the development server.\x1b[0m
191
+
192
+ \x1b[35m$ yarn build\x1b[0m
193
+ \x1b[32mCompiles the app into static files for production.\x1b[0m
194
+
195
+ \x1b[35m$ yarn start\x1b[0m
196
+ \x1b[32mRuns the production server.\x1b[0m
197
+ `;
198
+
199
+ const getStartedMessage = answers.brandName === '.'
200
+ ? 'To get started, you can type:\n\n \x1b[35m$ yarn dev\x1b[0m\n'
201
+ : `To get started, you can type:\n\n \x1b[35m$ cd ${relativeProjectDir}\x1b[0m\n \x1b[35m$ yarn dev\x1b[0m\n`;
181
202
 
203
+ console.log('\x1b[32m%s\x1b[0m', successMessage);
204
+ console.log('\x1b[36m%s\x1b[0m', getStartedMessage);
205
+ console.log('\x1b[33m%s\x1b[0m', 'Project setup is complete\n');
182
206
  console.log('\x1b[33m%s\x1b[0m', 'Project Zero - Akinon\n');
183
207
  };
@@ -39,6 +39,7 @@ const path_1 = __importDefault(require("path"));
39
39
  const fs = __importStar(require("fs"));
40
40
  const readline = __importStar(require("readline"));
41
41
  const utils_1 = require("../utils");
42
+ const { execSync } = require('child_process');
42
43
  const loadingSpinner = require('loading-spinner');
43
44
  const workingDir = path_1.default.resolve(process.cwd());
44
45
  const rl = readline.createInterface({
@@ -131,7 +132,8 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
131
132
  }
132
133
  const answers = yield getAnswers();
133
134
  const brandName = answers.brandName === '.' ? path_1.default.basename(workingDir) : answers.brandName;
134
- const projectDir = path_1.default.resolve(workingDir, (0, utils_1.slugify)(brandName));
135
+ const projectDir = answers.brandName === '.' ? workingDir : path_1.default.resolve(workingDir, (0, utils_1.slugify)(brandName));
136
+ const relativeProjectDir = answers.brandName === '.' ? '.' : (0, utils_1.slugify)(brandName);
135
137
  if (!fs.existsSync(projectDir)) {
136
138
  fs.mkdirSync(projectDir, { recursive: true });
137
139
  }
@@ -153,7 +155,28 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
153
155
  updateFileContents(path_1.default.join(projectDir, 'package.json'), {
154
156
  name: (0, utils_1.slugify)(brandName)
155
157
  });
158
+ console.log('\x1b[34m%s\x1b[0m', '\nšŸš€ Installing packages...\n');
159
+ execSync(`cd ${relativeProjectDir} && yarn install`, { stdio: 'ignore' });
156
160
  loadingSpinner.stop();
157
- console.log('\x1b[32m%s\x1b[0m', `\n āœ“ ${answers.brandName} project is ready.\n`);
161
+ const successMessage = `
162
+ ✨ ${brandName} project is ready at \x1b[4m${projectDir}\x1b[0m
163
+
164
+ Within the directory, the following commands are available:
165
+
166
+ \x1b[35m$ yarn dev\x1b[0m
167
+ \x1b[32mLaunches the development server.\x1b[0m
168
+
169
+ \x1b[35m$ yarn build\x1b[0m
170
+ \x1b[32mCompiles the app into static files for production.\x1b[0m
171
+
172
+ \x1b[35m$ yarn start\x1b[0m
173
+ \x1b[32mRuns the production server.\x1b[0m
174
+ `;
175
+ const getStartedMessage = answers.brandName === '.'
176
+ ? 'To get started, you can type:\n\n \x1b[35m$ yarn dev\x1b[0m\n'
177
+ : `To get started, you can type:\n\n \x1b[35m$ cd ${relativeProjectDir}\x1b[0m\n \x1b[35m$ yarn dev\x1b[0m\n`;
178
+ console.log('\x1b[32m%s\x1b[0m', successMessage);
179
+ console.log('\x1b[36m%s\x1b[0m', getStartedMessage);
180
+ console.log('\x1b[33m%s\x1b[0m', 'Project setup is complete\n');
158
181
  console.log('\x1b[33m%s\x1b[0m', 'Project Zero - Akinon\n');
159
182
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.36.0",
3
+ "version": "1.37.0-rc.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {