@akinon/projectzero 1.36.0-rc.3 ā 1.36.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 +1 -50
- package/app-template/CHANGELOG.md +16 -394
- package/app-template/package.json +10 -10
- package/app-template/public/locales/en/account.json +4 -4
- package/app-template/public/locales/tr/account.json +1 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/coupons/page.tsx +4 -4
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/profile/page.tsx +0 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/page.tsx +8 -12
- package/app-template/src/components/checkbox.tsx +2 -2
- package/app-template/src/components/input.tsx +7 -19
- package/app-template/src/components/price.tsx +3 -3
- package/app-template/src/views/account/contact-form.tsx +6 -22
- package/app-template/src/views/account/favourite-products/favourite-products-list.tsx +1 -5
- package/app-template/tsconfig.json +4 -14
- package/commands/create.ts +5 -29
- package/dist/commands/create.js +2 -25
- package/package.json +1 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/[...prettyurl]/page.tsx +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
# @akinon/projectzero
|
|
2
2
|
|
|
3
|
-
## 1.36.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
|
-
|
|
10
|
-
## 1.36.0-rc.2
|
|
11
|
-
|
|
12
|
-
## 1.36.0-rc.1
|
|
13
|
-
|
|
14
|
-
### Minor Changes
|
|
15
|
-
|
|
16
|
-
- 00ffde2: ZERO-2637: enhance create command with improved messaging
|
|
17
|
-
|
|
18
|
-
## 1.36.0-rc.0
|
|
19
|
-
|
|
20
|
-
### Minor Changes
|
|
21
|
-
|
|
22
|
-
- 9b6bf91: ZERO-2660: Change campaings to campaigns
|
|
3
|
+
## 1.36.0
|
|
23
4
|
|
|
24
5
|
## 1.35.0
|
|
25
6
|
|
|
@@ -30,36 +11,6 @@
|
|
|
30
11
|
- cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
|
|
31
12
|
- 735f4f0: ZERO-2661: create .npmignore in app-template
|
|
32
13
|
|
|
33
|
-
## 1.34.0-rc.16
|
|
34
|
-
|
|
35
|
-
### Minor Changes
|
|
36
|
-
|
|
37
|
-
- cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
|
|
38
|
-
|
|
39
|
-
## 1.34.0-rc.15
|
|
40
|
-
|
|
41
|
-
### Minor Changes
|
|
42
|
-
|
|
43
|
-
- 735f4f0: ZERO-2661: create .npmignore in app-template
|
|
44
|
-
|
|
45
|
-
## 1.34.0-rc.14
|
|
46
|
-
|
|
47
|
-
## 1.34.0-rc.13
|
|
48
|
-
|
|
49
|
-
## 1.34.0-rc.12
|
|
50
|
-
|
|
51
|
-
## 1.34.0-rc.11
|
|
52
|
-
|
|
53
|
-
## 1.34.0-rc.10
|
|
54
|
-
|
|
55
|
-
## 1.34.0-rc.9
|
|
56
|
-
|
|
57
|
-
## 1.34.0-rc.8
|
|
58
|
-
|
|
59
|
-
## 1.34.0-rc.7
|
|
60
|
-
|
|
61
|
-
## 1.34.0-rc.6
|
|
62
|
-
|
|
63
14
|
## 1.33.2
|
|
64
15
|
|
|
65
16
|
### Patch Changes
|
|
@@ -1,125 +1,35 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
-
## 1.36.0
|
|
3
|
+
## 1.36.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- 27a5296: ZERO-2631:Fix Checkbox Click
|
|
8
7
|
- 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
8
|
- 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
|
-
- dff0d59: ZERO-2659: add formData support to proxy api requests
|
|
15
9
|
- 3420416: ZERO-2533: extend eslint config from @akinon/next
|
|
16
|
-
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
17
10
|
- 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
|
|
18
11
|
- 202f84e: ZERO-2569: Fix static keys
|
|
19
|
-
- 4614eee: ZERO-2602: The script that checks the build for standalone projects
|
|
20
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
21
12
|
- 12c10a4: ZERO-2570: Category filters routes to absolute url
|
|
22
13
|
|
|
23
14
|
### Patch Changes
|
|
24
15
|
|
|
25
|
-
- Updated dependencies [a4c8d6a]
|
|
26
16
|
- Updated dependencies [8e6e8cf]
|
|
27
|
-
- Updated dependencies [c53ef7b]
|
|
28
17
|
- Updated dependencies [ebb63ce]
|
|
29
18
|
- Updated dependencies [7cebe87]
|
|
30
19
|
- Updated dependencies [616690d]
|
|
31
|
-
- Updated dependencies [91265bb]
|
|
32
20
|
- Updated dependencies [59fb7c3]
|
|
33
|
-
- Updated dependencies [bbe18b9]
|
|
34
|
-
- Updated dependencies [dff0d59]
|
|
35
21
|
- Updated dependencies [3420416]
|
|
36
|
-
- Updated dependencies [beb499e]
|
|
37
22
|
- Updated dependencies [6c18543]
|
|
38
23
|
- Updated dependencies [40ad73e]
|
|
39
|
-
- Updated dependencies [
|
|
40
|
-
- Updated dependencies [f046f8e]
|
|
24
|
+
- Updated dependencies [d1eec6b]
|
|
41
25
|
- Updated dependencies [3e68768]
|
|
42
|
-
- @akinon/next@1.36.0
|
|
43
|
-
- @akinon/pz-one-click-checkout@1.36.0
|
|
44
|
-
- @akinon/pz-b2b@1.36.0
|
|
45
|
-
- @akinon/pz-gpay@1.36.0
|
|
46
|
-
- @akinon/pz-masterpass@1.36.0
|
|
47
|
-
- @akinon/pz-otp@1.36.0
|
|
48
|
-
- @akinon/pz-pay-on-delivery@1.36.0
|
|
49
|
-
|
|
50
|
-
## 1.36.0-rc.2
|
|
51
|
-
|
|
52
|
-
### Minor Changes
|
|
53
|
-
|
|
54
|
-
- dff0d59: ZERO-2659: add formData support to proxy api requests
|
|
55
|
-
|
|
56
|
-
### Patch Changes
|
|
57
|
-
|
|
58
|
-
- Updated dependencies [dff0d59]
|
|
59
|
-
- @akinon/next@1.36.0-rc.2
|
|
60
|
-
- @akinon/pz-b2b@1.36.0-rc.2
|
|
61
|
-
- @akinon/pz-gpay@1.36.0-rc.2
|
|
62
|
-
- @akinon/pz-masterpass@1.36.0-rc.2
|
|
63
|
-
- @akinon/pz-one-click-checkout@1.36.0-rc.2
|
|
64
|
-
- @akinon/pz-otp@1.36.0-rc.2
|
|
65
|
-
- @akinon/pz-pay-on-delivery@1.36.0-rc.2
|
|
66
|
-
|
|
67
|
-
## 1.36.0-rc.1
|
|
68
|
-
|
|
69
|
-
### Patch Changes
|
|
70
|
-
|
|
71
|
-
- @akinon/next@1.36.0-rc.1
|
|
72
|
-
- @akinon/pz-b2b@1.36.0-rc.1
|
|
73
|
-
- @akinon/pz-gpay@1.36.0-rc.1
|
|
74
|
-
- @akinon/pz-masterpass@1.36.0-rc.1
|
|
75
|
-
- @akinon/pz-one-click-checkout@1.36.0-rc.1
|
|
76
|
-
- @akinon/pz-otp@1.36.0-rc.1
|
|
77
|
-
- @akinon/pz-pay-on-delivery@1.36.0-rc.1
|
|
78
|
-
|
|
79
|
-
## 1.36.0-rc.0
|
|
80
|
-
|
|
81
|
-
### Minor Changes
|
|
82
|
-
|
|
83
|
-
- 27a5296: ZERO-2631:Fix Checkbox Click
|
|
84
|
-
- ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
|
|
85
|
-
- 9b6bf91: ZERO-2660: Change campaings to campaigns
|
|
86
|
-
- 74a1269: ZERO-2658:Edit product name clickability on completed order page
|
|
87
|
-
- 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
|
|
88
|
-
- 91265bb: ZERO-2551: Improve pretty url and caching performance
|
|
89
|
-
- 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
|
|
90
|
-
- 3420416: ZERO-2533: extend eslint config from @akinon/next
|
|
91
|
-
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
92
|
-
- 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
|
|
93
|
-
- 202f84e: ZERO-2569: Fix static keys
|
|
94
|
-
- 4614eee: ZERO-2602: The script that checks the build for standalone projects
|
|
95
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
96
|
-
- 12c10a4: ZERO-2570: Category filters routes to absolute url
|
|
97
|
-
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
- Updated dependencies [a4c8d6a]
|
|
101
|
-
- Updated dependencies [8e6e8cf]
|
|
102
|
-
- Updated dependencies [c53ef7b]
|
|
103
|
-
- Updated dependencies [ebb63ce]
|
|
104
|
-
- Updated dependencies [7cebe87]
|
|
105
|
-
- Updated dependencies [616690d]
|
|
106
|
-
- Updated dependencies [91265bb]
|
|
107
|
-
- Updated dependencies [59fb7c3]
|
|
108
|
-
- Updated dependencies [bbe18b9]
|
|
109
|
-
- Updated dependencies [3420416]
|
|
110
|
-
- Updated dependencies [beb499e]
|
|
111
|
-
- Updated dependencies [6c18543]
|
|
112
|
-
- Updated dependencies [40ad73e]
|
|
113
|
-
- Updated dependencies [495d155]
|
|
114
|
-
- Updated dependencies [f046f8e]
|
|
115
|
-
- Updated dependencies [3e68768]
|
|
116
|
-
- @akinon/next@1.36.0-rc.0
|
|
117
|
-
- @akinon/pz-one-click-checkout@1.36.0-rc.0
|
|
118
|
-
- @akinon/pz-b2b@1.36.0-rc.0
|
|
119
|
-
- @akinon/pz-gpay@1.36.0-rc.0
|
|
120
|
-
- @akinon/pz-masterpass@1.36.0-rc.0
|
|
121
|
-
- @akinon/pz-otp@1.36.0-rc.0
|
|
122
|
-
- @akinon/pz-pay-on-delivery@1.36.0-rc.0
|
|
26
|
+
- @akinon/next@1.36.0
|
|
27
|
+
- @akinon/pz-one-click-checkout@1.36.0
|
|
28
|
+
- @akinon/pz-b2b@1.36.0
|
|
29
|
+
- @akinon/pz-gpay@1.36.0
|
|
30
|
+
- @akinon/pz-masterpass@1.36.0
|
|
31
|
+
- @akinon/pz-otp@1.36.0
|
|
32
|
+
- @akinon/pz-pay-on-delivery@1.36.0
|
|
123
33
|
|
|
124
34
|
## 1.35.0
|
|
125
35
|
|
|
@@ -150,301 +60,13 @@
|
|
|
150
60
|
|
|
151
61
|
### Patch Changes
|
|
152
62
|
|
|
153
|
-
-
|
|
154
|
-
-
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
- Updated dependencies [616690d]
|
|
161
|
-
- Updated dependencies [f3b595e]
|
|
162
|
-
- Updated dependencies [91265bb]
|
|
163
|
-
- Updated dependencies [59fb7c3]
|
|
164
|
-
- Updated dependencies [bbe18b9]
|
|
165
|
-
- Updated dependencies [f0c23bc]
|
|
166
|
-
- Updated dependencies [3420416]
|
|
167
|
-
- Updated dependencies [495d155]
|
|
168
|
-
- Updated dependencies [beb499e]
|
|
169
|
-
- Updated dependencies [6c18543]
|
|
170
|
-
- Updated dependencies [40ad73e]
|
|
171
|
-
- Updated dependencies [495d155]
|
|
172
|
-
- Updated dependencies [f046f8e]
|
|
173
|
-
- Updated dependencies [6b2972b]
|
|
174
|
-
- Updated dependencies [3e68768]
|
|
175
|
-
- @akinon/next@1.34.0-rc.20
|
|
176
|
-
- @akinon/pz-masterpass@1.34.0-rc.20
|
|
177
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.20
|
|
178
|
-
- @akinon/pz-b2b@1.34.0-rc.20
|
|
179
|
-
- @akinon/pz-gpay@1.34.0-rc.20
|
|
180
|
-
- @akinon/pz-otp@1.34.0-rc.20
|
|
181
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.20
|
|
182
|
-
|
|
183
|
-
## 1.34.0-rc.19
|
|
184
|
-
|
|
185
|
-
### Patch Changes
|
|
186
|
-
|
|
187
|
-
- Updated dependencies [c53ef7b]
|
|
188
|
-
- @akinon/next@1.34.0-rc.19
|
|
189
|
-
- @akinon/pz-b2b@1.34.0-rc.19
|
|
190
|
-
- @akinon/pz-gpay@1.34.0-rc.19
|
|
191
|
-
- @akinon/pz-masterpass@1.34.0-rc.19
|
|
192
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.19
|
|
193
|
-
- @akinon/pz-otp@1.34.0-rc.19
|
|
194
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.19
|
|
195
|
-
|
|
196
|
-
## 1.34.0-rc.18
|
|
197
|
-
|
|
198
|
-
### Minor Changes
|
|
199
|
-
|
|
200
|
-
- 9b6bf91: ZERO-2660: Change campaings to campaigns
|
|
201
|
-
- 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
|
|
202
|
-
|
|
203
|
-
### Patch Changes
|
|
204
|
-
|
|
205
|
-
- Updated dependencies [a4c8d6a]
|
|
206
|
-
- @akinon/next@1.34.0-rc.18
|
|
207
|
-
- @akinon/pz-b2b@1.34.0-rc.18
|
|
208
|
-
- @akinon/pz-gpay@1.34.0-rc.18
|
|
209
|
-
- @akinon/pz-masterpass@1.34.0-rc.18
|
|
210
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.18
|
|
211
|
-
- @akinon/pz-otp@1.34.0-rc.18
|
|
212
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.18
|
|
213
|
-
|
|
214
|
-
## 1.34.0-rc.17
|
|
215
|
-
|
|
216
|
-
### Minor Changes
|
|
217
|
-
|
|
218
|
-
- 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
|
|
219
|
-
- d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
|
|
220
|
-
- 27a5296: ZERO-2631:Fix Checkbox Click
|
|
221
|
-
- ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
|
|
222
|
-
- 74a1269: ZERO-2658:Edit product name clickability on completed order page
|
|
223
|
-
- 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
|
|
224
|
-
- 91265bb: ZERO-2551: Improve pretty url and caching performance
|
|
225
|
-
- f0c23bc: ZERO-2135: add custom not found page
|
|
226
|
-
- 3420416: ZERO-2533: extend eslint config from @akinon/next
|
|
227
|
-
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
228
|
-
- 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
|
|
229
|
-
- 202f84e: ZERO-2569: Fix static keys
|
|
230
|
-
- 4614eee: ZERO-2602: The script that checks the build for standalone projects
|
|
231
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
232
|
-
- 12c10a4: ZERO-2570: Category filters routes to absolute url
|
|
233
|
-
|
|
234
|
-
### Patch Changes
|
|
235
|
-
|
|
236
|
-
- Updated dependencies [d09b677]
|
|
237
|
-
- Updated dependencies [6d4aadb]
|
|
238
|
-
- Updated dependencies [8e6e8cf]
|
|
239
|
-
- Updated dependencies [ebb63ce]
|
|
240
|
-
- Updated dependencies [7cebe87]
|
|
241
|
-
- Updated dependencies [616690d]
|
|
242
|
-
- Updated dependencies [f3b595e]
|
|
243
|
-
- Updated dependencies [91265bb]
|
|
244
|
-
- Updated dependencies [59fb7c3]
|
|
245
|
-
- Updated dependencies [bbe18b9]
|
|
246
|
-
- Updated dependencies [f0c23bc]
|
|
247
|
-
- Updated dependencies [3420416]
|
|
248
|
-
- Updated dependencies [495d155]
|
|
249
|
-
- Updated dependencies [beb499e]
|
|
250
|
-
- Updated dependencies [6c18543]
|
|
251
|
-
- Updated dependencies [40ad73e]
|
|
252
|
-
- Updated dependencies [495d155]
|
|
253
|
-
- Updated dependencies [f046f8e]
|
|
254
|
-
- Updated dependencies [6b2972b]
|
|
255
|
-
- Updated dependencies [3e68768]
|
|
256
|
-
- @akinon/next@1.34.0-rc.17
|
|
257
|
-
- @akinon/pz-masterpass@1.34.0-rc.17
|
|
258
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.17
|
|
259
|
-
- @akinon/pz-b2b@1.34.0-rc.17
|
|
260
|
-
- @akinon/pz-gpay@1.34.0-rc.17
|
|
261
|
-
- @akinon/pz-otp@1.34.0-rc.17
|
|
262
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.17
|
|
263
|
-
|
|
264
|
-
## 1.34.0-rc.16
|
|
265
|
-
|
|
266
|
-
### Patch Changes
|
|
267
|
-
|
|
268
|
-
- @akinon/next@1.34.0-rc.16
|
|
269
|
-
- @akinon/pz-b2b@1.34.0-rc.16
|
|
270
|
-
- @akinon/pz-gpay@1.34.0-rc.16
|
|
271
|
-
- @akinon/pz-masterpass@1.34.0-rc.16
|
|
272
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.16
|
|
273
|
-
- @akinon/pz-otp@1.34.0-rc.16
|
|
274
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.16
|
|
275
|
-
|
|
276
|
-
## 1.34.0-rc.15
|
|
277
|
-
|
|
278
|
-
### Patch Changes
|
|
279
|
-
|
|
280
|
-
- @akinon/next@1.34.0-rc.15
|
|
281
|
-
- @akinon/pz-b2b@1.34.0-rc.15
|
|
282
|
-
- @akinon/pz-gpay@1.34.0-rc.15
|
|
283
|
-
- @akinon/pz-masterpass@1.34.0-rc.15
|
|
284
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.15
|
|
285
|
-
- @akinon/pz-otp@1.34.0-rc.15
|
|
286
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.15
|
|
287
|
-
|
|
288
|
-
## 1.34.0-rc.14
|
|
289
|
-
|
|
290
|
-
### Minor Changes
|
|
291
|
-
|
|
292
|
-
- 4614eee: ZERO-2602: The script that checks the build for standalone projects
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- @akinon/next@1.34.0-rc.14
|
|
297
|
-
- @akinon/pz-b2b@1.34.0-rc.14
|
|
298
|
-
- @akinon/pz-gpay@1.34.0-rc.14
|
|
299
|
-
- @akinon/pz-masterpass@1.34.0-rc.14
|
|
300
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.14
|
|
301
|
-
- @akinon/pz-otp@1.34.0-rc.14
|
|
302
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.14
|
|
303
|
-
|
|
304
|
-
## 1.34.0-rc.13
|
|
305
|
-
|
|
306
|
-
### Minor Changes
|
|
307
|
-
|
|
308
|
-
- 74a1269: ZERO-2658:Edit product name clickability on completed order page
|
|
309
|
-
|
|
310
|
-
### Patch Changes
|
|
311
|
-
|
|
312
|
-
- @akinon/next@1.34.0-rc.13
|
|
313
|
-
- @akinon/pz-b2b@1.34.0-rc.13
|
|
314
|
-
- @akinon/pz-gpay@1.34.0-rc.13
|
|
315
|
-
- @akinon/pz-masterpass@1.34.0-rc.13
|
|
316
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.13
|
|
317
|
-
- @akinon/pz-otp@1.34.0-rc.13
|
|
318
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.13
|
|
319
|
-
|
|
320
|
-
## 1.34.0-rc.12
|
|
321
|
-
|
|
322
|
-
### Patch Changes
|
|
323
|
-
|
|
324
|
-
- Updated dependencies [616690d]
|
|
325
|
-
- @akinon/next@1.34.0-rc.12
|
|
326
|
-
- @akinon/pz-b2b@1.34.0-rc.12
|
|
327
|
-
- @akinon/pz-gpay@1.34.0-rc.12
|
|
328
|
-
- @akinon/pz-masterpass@1.34.0-rc.12
|
|
329
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.12
|
|
330
|
-
- @akinon/pz-otp@1.34.0-rc.12
|
|
331
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.12
|
|
332
|
-
|
|
333
|
-
## 1.34.0-rc.11
|
|
334
|
-
|
|
335
|
-
### Patch Changes
|
|
336
|
-
|
|
337
|
-
- Updated dependencies [8e6e8cf]
|
|
338
|
-
- @akinon/next@1.34.0-rc.11
|
|
339
|
-
- @akinon/pz-b2b@1.34.0-rc.11
|
|
340
|
-
- @akinon/pz-gpay@1.34.0-rc.11
|
|
341
|
-
- @akinon/pz-masterpass@1.34.0-rc.11
|
|
342
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.11
|
|
343
|
-
- @akinon/pz-otp@1.34.0-rc.11
|
|
344
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.11
|
|
345
|
-
|
|
346
|
-
## 1.34.0-rc.10
|
|
347
|
-
|
|
348
|
-
### Patch Changes
|
|
349
|
-
|
|
350
|
-
- Updated dependencies [bbe18b9]
|
|
351
|
-
- @akinon/next@1.34.0-rc.10
|
|
352
|
-
- @akinon/pz-b2b@1.34.0-rc.10
|
|
353
|
-
- @akinon/pz-gpay@1.34.0-rc.10
|
|
354
|
-
- @akinon/pz-masterpass@1.34.0-rc.10
|
|
355
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.10
|
|
356
|
-
- @akinon/pz-otp@1.34.0-rc.10
|
|
357
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.10
|
|
358
|
-
|
|
359
|
-
## 1.34.0-rc.9
|
|
360
|
-
|
|
361
|
-
### Minor Changes
|
|
362
|
-
|
|
363
|
-
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
364
|
-
|
|
365
|
-
### Patch Changes
|
|
366
|
-
|
|
367
|
-
- Updated dependencies [beb499e]
|
|
368
|
-
- @akinon/next@1.34.0-rc.9
|
|
369
|
-
- @akinon/pz-b2b@1.34.0-rc.9
|
|
370
|
-
- @akinon/pz-gpay@1.34.0-rc.9
|
|
371
|
-
- @akinon/pz-masterpass@1.34.0-rc.9
|
|
372
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.9
|
|
373
|
-
- @akinon/pz-otp@1.34.0-rc.9
|
|
374
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.9
|
|
375
|
-
|
|
376
|
-
## 1.34.0-rc.8
|
|
377
|
-
|
|
378
|
-
### Minor Changes
|
|
379
|
-
|
|
380
|
-
- 91265bb: ZERO-2551: Improve pretty url and caching performance
|
|
381
|
-
|
|
382
|
-
### Patch Changes
|
|
383
|
-
|
|
384
|
-
- Updated dependencies [91265bb]
|
|
385
|
-
- @akinon/next@1.34.0-rc.8
|
|
386
|
-
- @akinon/pz-b2b@1.34.0-rc.8
|
|
387
|
-
- @akinon/pz-gpay@1.34.0-rc.8
|
|
388
|
-
- @akinon/pz-masterpass@1.34.0-rc.8
|
|
389
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.8
|
|
390
|
-
- @akinon/pz-otp@1.34.0-rc.8
|
|
391
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.8
|
|
392
|
-
|
|
393
|
-
## 1.34.0-rc.7
|
|
394
|
-
|
|
395
|
-
### Minor Changes
|
|
396
|
-
|
|
397
|
-
- 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
|
|
398
|
-
|
|
399
|
-
### Patch Changes
|
|
400
|
-
|
|
401
|
-
- @akinon/next@1.34.0-rc.7
|
|
402
|
-
- @akinon/pz-b2b@1.34.0-rc.7
|
|
403
|
-
- @akinon/pz-gpay@1.34.0-rc.7
|
|
404
|
-
- @akinon/pz-masterpass@1.34.0-rc.7
|
|
405
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.7
|
|
406
|
-
- @akinon/pz-otp@1.34.0-rc.7
|
|
407
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.7
|
|
408
|
-
|
|
409
|
-
## 1.34.0-rc.6
|
|
410
|
-
|
|
411
|
-
### Minor Changes
|
|
412
|
-
|
|
413
|
-
- 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
|
|
414
|
-
- d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
|
|
415
|
-
- 27a5296: ZERO-2631:Fix Checkbox Click
|
|
416
|
-
- ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
|
|
417
|
-
- f0c23bc: ZERO-2135: add custom not found page
|
|
418
|
-
- 3420416: ZERO-2533: extend eslint config from @akinon/next
|
|
419
|
-
- 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
|
|
420
|
-
- 202f84e: ZERO-2569: Fix static keys
|
|
421
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
422
|
-
- 12c10a4: ZERO-2570: Category filters routes to absolute url
|
|
423
|
-
|
|
424
|
-
### Patch Changes
|
|
425
|
-
|
|
426
|
-
- Updated dependencies [d09b677]
|
|
427
|
-
- Updated dependencies [6d4aadb]
|
|
428
|
-
- Updated dependencies [ebb63ce]
|
|
429
|
-
- Updated dependencies [7cebe87]
|
|
430
|
-
- Updated dependencies [f3b595e]
|
|
431
|
-
- Updated dependencies [59fb7c3]
|
|
432
|
-
- Updated dependencies [f0c23bc]
|
|
433
|
-
- Updated dependencies [3420416]
|
|
434
|
-
- Updated dependencies [495d155]
|
|
435
|
-
- Updated dependencies [6c18543]
|
|
436
|
-
- Updated dependencies [40ad73e]
|
|
437
|
-
- Updated dependencies [495d155]
|
|
438
|
-
- Updated dependencies [f046f8e]
|
|
439
|
-
- Updated dependencies [6b2972b]
|
|
440
|
-
- Updated dependencies [3e68768]
|
|
441
|
-
- @akinon/next@1.34.0-rc.6
|
|
442
|
-
- @akinon/pz-masterpass@1.34.0-rc.6
|
|
443
|
-
- @akinon/pz-one-click-checkout@1.34.0-rc.6
|
|
444
|
-
- @akinon/pz-b2b@1.34.0-rc.6
|
|
445
|
-
- @akinon/pz-gpay@1.34.0-rc.6
|
|
446
|
-
- @akinon/pz-otp@1.34.0-rc.6
|
|
447
|
-
- @akinon/pz-pay-on-delivery@1.34.0-rc.6
|
|
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
|
|
448
70
|
|
|
449
71
|
## 1.33.2
|
|
450
72
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.36.0
|
|
3
|
+
"version": "1.36.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.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",
|
|
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.36.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": "
|
|
83
|
+
"react-number-format": "4.9.3",
|
|
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
|
-
"
|
|
289
|
+
"campaings": {
|
|
290
290
|
"active": "Active Campaigns",
|
|
291
|
-
"to_be_active": "
|
|
292
|
-
"expired": "Expired
|
|
293
|
-
"used": "Used
|
|
291
|
+
"to_be_active": "Campaings to be Active",
|
|
292
|
+
"expired": "Expired Campaings",
|
|
293
|
+
"used": "Used Campaings"
|
|
294
294
|
},
|
|
295
295
|
"coupons": {
|
|
296
296
|
"active": "Active Coupons",
|
|
@@ -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.
|
|
54
|
+
mainTitle={t('account.my_vouchers.title.campaings.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.
|
|
71
|
+
mainTitle={t('account.my_vouchers.title.campaings.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.
|
|
88
|
+
mainTitle={t('account.my_vouchers.title.campaings.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.
|
|
105
|
+
mainTitle={t('account.my_vouchers.title.campaings.used')}
|
|
106
106
|
subTitles={[
|
|
107
107
|
t('account.my_vouchers.card.campaign_name'),
|
|
108
108
|
t('account.my_vouchers.card.starting_date'),
|
package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/page.tsx
CHANGED
|
@@ -182,25 +182,21 @@ const CheckoutCompleted = ({
|
|
|
182
182
|
}}
|
|
183
183
|
>
|
|
184
184
|
{data.order.orderitem_set.map((item) => (
|
|
185
|
-
<div
|
|
186
|
-
|
|
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
|
-
>
|
|
185
|
+
<div key={`order-item-${item.id}`} className="flex">
|
|
186
|
+
<Link href={item.product.absolute_url} passHref>
|
|
194
187
|
<Image
|
|
195
188
|
src={item.product.image}
|
|
196
189
|
alt={item.product.name}
|
|
197
190
|
width={64}
|
|
198
191
|
height={96}
|
|
199
192
|
/>
|
|
200
|
-
|
|
201
|
-
<span>{item.product.name}</span>
|
|
202
193
|
</Link>
|
|
203
|
-
<div className="flex justify-
|
|
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
|
+
</>
|
|
204
200
|
<div>
|
|
205
201
|
{item.retail_price !== item.price && (
|
|
206
202
|
<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
|
|
6
|
+
const { children, checked, 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
|
-
|
|
15
|
+
checked={checked ?? false}
|
|
16
16
|
className="w-4 h-4 shrink-0"
|
|
17
17
|
/>
|
|
18
18
|
{children && <span className="ml-2">{children}</span>}
|
|
@@ -1,28 +1,17 @@
|
|
|
1
1
|
import clsx from 'clsx';
|
|
2
|
-
import { forwardRef, FocusEvent, useState
|
|
2
|
+
import { forwardRef, FocusEvent, useState } from 'react';
|
|
3
3
|
import { Controller } from 'react-hook-form';
|
|
4
|
-
import {
|
|
4
|
+
import NumberFormat, { NumberFormatProps } 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
|
-
|
|
15
8
|
export const Input = forwardRef<
|
|
16
9
|
HTMLInputElement,
|
|
17
10
|
InputProps &
|
|
18
11
|
Pick<
|
|
19
|
-
|
|
20
|
-
'mask' | 'allowEmptyFormatting' | 'onValueChange'
|
|
21
|
-
>
|
|
22
|
-
format?: string;
|
|
23
|
-
defaultValue?: string;
|
|
24
|
-
type?: string;
|
|
25
|
-
}
|
|
12
|
+
NumberFormatProps,
|
|
13
|
+
'format' | 'mask' | 'allowEmptyFormatting' | 'onValueChange'
|
|
14
|
+
>
|
|
26
15
|
>((props, ref) => {
|
|
27
16
|
const [focused, setFocused] = useState(false);
|
|
28
17
|
const [hasValue, setHasValue] = useState(false);
|
|
@@ -48,7 +37,6 @@ export const Input = forwardRef<
|
|
|
48
37
|
),
|
|
49
38
|
props.className
|
|
50
39
|
);
|
|
51
|
-
|
|
52
40
|
const inputProps: any = {
|
|
53
41
|
id,
|
|
54
42
|
ref,
|
|
@@ -91,14 +79,14 @@ export const Input = forwardRef<
|
|
|
91
79
|
<Controller
|
|
92
80
|
name={props.name ?? ''}
|
|
93
81
|
control={props.control}
|
|
82
|
+
defaultValue={false}
|
|
94
83
|
render={({ field }) => (
|
|
95
|
-
<
|
|
84
|
+
<NumberFormat
|
|
96
85
|
format={format}
|
|
97
86
|
mask={mask ?? ''}
|
|
98
87
|
{...rest}
|
|
99
88
|
{...field}
|
|
100
89
|
{...inputProps}
|
|
101
|
-
type={props.type as 'text' | 'password' | 'tel'}
|
|
102
90
|
/>
|
|
103
91
|
)}
|
|
104
92
|
/>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import NumberFormat, { NumberFormatProps } 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:
|
|
7
|
+
export const Price = (props: NumberFormatProps & PriceProps) => {
|
|
8
8
|
const {
|
|
9
9
|
value,
|
|
10
10
|
currencyCode,
|
|
@@ -38,7 +38,7 @@ export const Price = (props: NumericFormatProps & PriceProps) => {
|
|
|
38
38
|
);
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<NumberFormat
|
|
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,
|
|
7
6
|
LoaderSpinner,
|
|
8
|
-
Select
|
|
7
|
+
Select,
|
|
8
|
+
Link
|
|
9
9
|
} from '@theme/components';
|
|
10
10
|
import { useSession } from 'next-auth/react';
|
|
11
11
|
import { useEffect, useState } from 'react';
|
|
@@ -45,8 +45,7 @@ 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
|
-
})
|
|
49
|
-
file: yup.mixed()
|
|
48
|
+
})
|
|
50
49
|
});
|
|
51
50
|
|
|
52
51
|
const ContactForm = () => {
|
|
@@ -111,18 +110,8 @@ const ContactForm = () => {
|
|
|
111
110
|
resolver: yupResolver(contactFormSchema(t))
|
|
112
111
|
});
|
|
113
112
|
|
|
114
|
-
const onSubmit: SubmitHandler<ContactFormType> = (data
|
|
115
|
-
|
|
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);
|
|
113
|
+
const onSubmit: SubmitHandler<ContactFormType> = (data) => {
|
|
114
|
+
sendContact(data);
|
|
126
115
|
};
|
|
127
116
|
|
|
128
117
|
const handleChange = (e) => {
|
|
@@ -253,12 +242,7 @@ const ContactForm = () => {
|
|
|
253
242
|
<label className="text-xs text-gray-800 mb-2 block">
|
|
254
243
|
{t('account.contact.form.file.title')}
|
|
255
244
|
</label>
|
|
256
|
-
<FileInput
|
|
257
|
-
name="file"
|
|
258
|
-
title="file"
|
|
259
|
-
className="w-full mb-5"
|
|
260
|
-
{...register('file')}
|
|
261
|
-
/>
|
|
245
|
+
<FileInput className="w-full mb-5" title="test" />
|
|
262
246
|
<Button type="submit" className="w-full font-medium">
|
|
263
247
|
{t('account.contact.form.submit_button')}
|
|
264
248
|
</Button>
|
|
@@ -30,11 +30,7 @@ const FavoriteProductsList = () => {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
if (isLoading || isFetching) {
|
|
33
|
-
return
|
|
34
|
-
<div className="flex items-center justify-center h-80">
|
|
35
|
-
<LoaderSpinner />
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
33
|
+
return <LoaderSpinner />; // TODO: Fix loader spinner position
|
|
38
34
|
}
|
|
39
35
|
|
|
40
36
|
return (
|
|
@@ -3,19 +3,7 @@
|
|
|
3
3
|
"display": "Default",
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"baseUrl": "./src",
|
|
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
|
-
},
|
|
6
|
+
"paths": { "@theme/*": ["./*"] },
|
|
19
7
|
"allowSyntheticDefaultImports": true,
|
|
20
8
|
"composite": false,
|
|
21
9
|
"declaration": true,
|
|
@@ -52,5 +40,7 @@
|
|
|
52
40
|
".next/types/**/*.ts",
|
|
53
41
|
"../../packages/**/*"
|
|
54
42
|
],
|
|
55
|
-
"exclude": ["node_modules",
|
|
43
|
+
"exclude": ["node_modules",
|
|
44
|
+
"../../packages/projectzero/app-template"
|
|
45
|
+
]
|
|
56
46
|
}
|
package/commands/create.ts
CHANGED
|
@@ -3,7 +3,6 @@ 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');
|
|
7
6
|
const loadingSpinner = require('loading-spinner');
|
|
8
7
|
|
|
9
8
|
interface Question {
|
|
@@ -140,8 +139,7 @@ export default async (): Promise<void> => {
|
|
|
140
139
|
const answers = await getAnswers();
|
|
141
140
|
const brandName =
|
|
142
141
|
answers.brandName === '.' ? path.basename(workingDir) : answers.brandName;
|
|
143
|
-
const projectDir =
|
|
144
|
-
const relativeProjectDir = answers.brandName === '.' ? '.' : slugify(brandName);
|
|
142
|
+
const projectDir = path.resolve(workingDir, slugify(brandName));
|
|
145
143
|
|
|
146
144
|
if (!fs.existsSync(projectDir)) {
|
|
147
145
|
fs.mkdirSync(projectDir, { recursive: true });
|
|
@@ -174,34 +172,12 @@ export default async (): Promise<void> => {
|
|
|
174
172
|
name: slugify(brandName)
|
|
175
173
|
});
|
|
176
174
|
|
|
177
|
-
|
|
178
|
-
console.log('\x1b[34m%s\x1b[0m', '\nš Installing packages...\n');
|
|
179
|
-
|
|
180
|
-
execSync(`cd ${relativeProjectDir} && yarn install`, { stdio: 'ignore' });
|
|
181
|
-
|
|
182
175
|
loadingSpinner.stop();
|
|
183
176
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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`;
|
|
177
|
+
console.log(
|
|
178
|
+
'\x1b[32m%s\x1b[0m',
|
|
179
|
+
`\n ā ${answers.brandName} project is ready.\n`
|
|
180
|
+
);
|
|
202
181
|
|
|
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');
|
|
206
182
|
console.log('\x1b[33m%s\x1b[0m', 'Project Zero - Akinon\n');
|
|
207
183
|
};
|
package/dist/commands/create.js
CHANGED
|
@@ -39,7 +39,6 @@ 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');
|
|
43
42
|
const loadingSpinner = require('loading-spinner');
|
|
44
43
|
const workingDir = path_1.default.resolve(process.cwd());
|
|
45
44
|
const rl = readline.createInterface({
|
|
@@ -132,8 +131,7 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
132
131
|
}
|
|
133
132
|
const answers = yield getAnswers();
|
|
134
133
|
const brandName = answers.brandName === '.' ? path_1.default.basename(workingDir) : answers.brandName;
|
|
135
|
-
const projectDir =
|
|
136
|
-
const relativeProjectDir = answers.brandName === '.' ? '.' : (0, utils_1.slugify)(brandName);
|
|
134
|
+
const projectDir = path_1.default.resolve(workingDir, (0, utils_1.slugify)(brandName));
|
|
137
135
|
if (!fs.existsSync(projectDir)) {
|
|
138
136
|
fs.mkdirSync(projectDir, { recursive: true });
|
|
139
137
|
}
|
|
@@ -155,28 +153,7 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
155
153
|
updateFileContents(path_1.default.join(projectDir, 'package.json'), {
|
|
156
154
|
name: (0, utils_1.slugify)(brandName)
|
|
157
155
|
});
|
|
158
|
-
console.log('\x1b[34m%s\x1b[0m', '\nš Installing packages...\n');
|
|
159
|
-
execSync(`cd ${relativeProjectDir} && yarn install`, { stdio: 'ignore' });
|
|
160
156
|
loadingSpinner.stop();
|
|
161
|
-
|
|
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');
|
|
157
|
+
console.log('\x1b[32m%s\x1b[0m', `\n ā ${answers.brandName} project is ready.\n`);
|
|
181
158
|
console.log('\x1b[33m%s\x1b[0m', 'Project Zero - Akinon\n');
|
|
182
159
|
});
|
package/package.json
CHANGED