@akinon/projectzero 1.71.0-rc.7 → 1.71.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 -19
- package/app-template/.gitignore +0 -2
- package/app-template/CHANGELOG.md +31 -412
- package/app-template/next.config.mjs +1 -2
- package/app-template/package.json +20 -20
- package/app-template/sentry.edge.config.ts +3 -0
- package/app-template/sentry.server.config.ts +3 -0
- package/app-template/src/components/pagination.tsx +35 -55
- package/app-template/src/components/types/index.ts +0 -1
- package/app-template/src/settings.js +0 -3
- package/app-template/src/views/category/category-active-filters.tsx +3 -3
- package/app-template/src/views/category/filters/filter-item.tsx +1 -1
- package/app-template/src/views/category/filters/index.tsx +1 -1
- package/app-template/src/views/category/layout.tsx +3 -3
- package/app-template/src/views/checkout/steps/payment/index.tsx +1 -7
- package/package.json +1 -1
- package/app-template/src/views/checkout/steps/payment/options/hepsipay.tsx +0 -135
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
# @akinon/projectzero
|
|
2
2
|
|
|
3
|
-
## 1.71.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 1ebe1da: ZERO-3016:move pagination fixes and add optional chaining
|
|
8
|
-
|
|
9
|
-
## 1.71.0-rc.6
|
|
10
|
-
|
|
11
|
-
## 1.71.0-rc.5
|
|
12
|
-
|
|
13
|
-
## 1.71.0-rc.4
|
|
14
|
-
|
|
15
|
-
## 1.71.0-rc.3
|
|
16
|
-
|
|
17
|
-
## 1.71.0-rc.2
|
|
18
|
-
|
|
19
|
-
## 1.71.0-rc.1
|
|
20
|
-
|
|
21
|
-
## 1.71.0-rc.0
|
|
3
|
+
## 1.71.0
|
|
22
4
|
|
|
23
5
|
## 1.70.0
|
|
24
6
|
|
package/app-template/.gitignore
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
-
## 1.71.0
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 1ebe1da: ZERO-3016:move pagination fixes and add optional chaining
|
|
8
|
-
|
|
9
|
-
### Patch Changes
|
|
10
|
-
|
|
11
|
-
- @akinon/next@1.71.0-rc.7
|
|
12
|
-
- @akinon/pz-akifast@1.71.0-rc.7
|
|
13
|
-
- @akinon/pz-b2b@1.71.0-rc.7
|
|
14
|
-
- @akinon/pz-basket-gift-pack@1.71.0-rc.7
|
|
15
|
-
- @akinon/pz-bkm@1.71.0-rc.7
|
|
16
|
-
- @akinon/pz-checkout-gift-pack@1.71.0-rc.7
|
|
17
|
-
- @akinon/pz-click-collect@1.71.0-rc.7
|
|
18
|
-
- @akinon/pz-credit-payment@1.71.0-rc.7
|
|
19
|
-
- @akinon/pz-gpay@1.71.0-rc.7
|
|
20
|
-
- @akinon/pz-masterpass@1.71.0-rc.7
|
|
21
|
-
- @akinon/pz-one-click-checkout@1.71.0-rc.7
|
|
22
|
-
- @akinon/pz-otp@1.71.0-rc.7
|
|
23
|
-
- @akinon/pz-pay-on-delivery@1.71.0-rc.7
|
|
24
|
-
- @akinon/pz-saved-card@1.71.0-rc.7
|
|
25
|
-
- @akinon/pz-tabby-extension@1.71.0-rc.7
|
|
26
|
-
|
|
27
|
-
## 1.71.0-rc.6
|
|
3
|
+
## 1.71.0
|
|
28
4
|
|
|
29
5
|
### Minor Changes
|
|
30
6
|
|
|
@@ -33,161 +9,21 @@
|
|
|
33
9
|
### Patch Changes
|
|
34
10
|
|
|
35
11
|
- Updated dependencies [f34454a]
|
|
36
|
-
- @akinon/next@1.71.0
|
|
37
|
-
- @akinon/pz-akifast@1.71.0
|
|
38
|
-
- @akinon/pz-b2b@1.71.0
|
|
39
|
-
- @akinon/pz-basket-gift-pack@1.71.0
|
|
40
|
-
- @akinon/pz-bkm@1.71.0
|
|
41
|
-
- @akinon/pz-checkout-gift-pack@1.71.0
|
|
42
|
-
- @akinon/pz-click-collect@1.71.0
|
|
43
|
-
- @akinon/pz-credit-payment@1.71.0
|
|
44
|
-
- @akinon/pz-gpay@1.71.0
|
|
45
|
-
- @akinon/pz-masterpass@1.71.0
|
|
46
|
-
- @akinon/pz-one-click-checkout@1.71.0
|
|
47
|
-
- @akinon/pz-otp@1.71.0
|
|
48
|
-
- @akinon/pz-pay-on-delivery@1.71.0
|
|
49
|
-
- @akinon/pz-saved-card@1.71.0
|
|
50
|
-
- @akinon/pz-tabby-extension@1.71.0
|
|
51
|
-
|
|
52
|
-
## 1.71.0-rc.5
|
|
53
|
-
|
|
54
|
-
### Patch Changes
|
|
55
|
-
|
|
56
|
-
- Updated dependencies [0ab91e5]
|
|
57
|
-
- @akinon/pz-akifast@1.71.0-rc.5
|
|
58
|
-
- @akinon/next@1.71.0-rc.5
|
|
59
|
-
- @akinon/pz-b2b@1.71.0-rc.5
|
|
60
|
-
- @akinon/pz-basket-gift-pack@1.71.0-rc.5
|
|
61
|
-
- @akinon/pz-bkm@1.71.0-rc.5
|
|
62
|
-
- @akinon/pz-checkout-gift-pack@1.71.0-rc.5
|
|
63
|
-
- @akinon/pz-click-collect@1.71.0-rc.5
|
|
64
|
-
- @akinon/pz-credit-payment@1.71.0-rc.5
|
|
65
|
-
- @akinon/pz-gpay@1.71.0-rc.5
|
|
66
|
-
- @akinon/pz-masterpass@1.71.0-rc.5
|
|
67
|
-
- @akinon/pz-one-click-checkout@1.71.0-rc.5
|
|
68
|
-
- @akinon/pz-otp@1.71.0-rc.5
|
|
69
|
-
- @akinon/pz-pay-on-delivery@1.71.0-rc.5
|
|
70
|
-
- @akinon/pz-saved-card@1.71.0-rc.5
|
|
71
|
-
- @akinon/pz-tabby-extension@1.71.0-rc.5
|
|
72
|
-
|
|
73
|
-
## 1.71.0-rc.4
|
|
74
|
-
|
|
75
|
-
### Minor Changes
|
|
76
|
-
|
|
77
|
-
- 7d2d66e: ZERO-3012: Upgrade version for tailwindcss
|
|
78
|
-
|
|
79
|
-
### Patch Changes
|
|
80
|
-
|
|
81
|
-
- @akinon/next@1.71.0-rc.4
|
|
82
|
-
- @akinon/pz-akifast@1.71.0-rc.4
|
|
83
|
-
- @akinon/pz-b2b@1.71.0-rc.4
|
|
84
|
-
- @akinon/pz-basket-gift-pack@1.71.0-rc.4
|
|
85
|
-
- @akinon/pz-bkm@1.71.0-rc.4
|
|
86
|
-
- @akinon/pz-checkout-gift-pack@1.71.0-rc.4
|
|
87
|
-
- @akinon/pz-click-collect@1.71.0-rc.4
|
|
88
|
-
- @akinon/pz-credit-payment@1.71.0-rc.4
|
|
89
|
-
- @akinon/pz-gpay@1.71.0-rc.4
|
|
90
|
-
- @akinon/pz-masterpass@1.71.0-rc.4
|
|
91
|
-
- @akinon/pz-one-click-checkout@1.71.0-rc.4
|
|
92
|
-
- @akinon/pz-otp@1.71.0-rc.4
|
|
93
|
-
- @akinon/pz-pay-on-delivery@1.71.0-rc.4
|
|
94
|
-
- @akinon/pz-saved-card@1.71.0-rc.4
|
|
95
|
-
- @akinon/pz-tabby-extension@1.71.0-rc.4
|
|
96
|
-
|
|
97
|
-
## 1.71.0-rc.3
|
|
98
|
-
|
|
99
|
-
### Minor Changes
|
|
100
|
-
|
|
101
|
-
- 3344bca: ZERO-3013: Enable web vitals tracking in settings.js
|
|
102
|
-
|
|
103
|
-
### Patch Changes
|
|
104
|
-
|
|
105
|
-
- Updated dependencies [3344bca]
|
|
106
|
-
- @akinon/next@1.71.0-rc.3
|
|
107
|
-
- @akinon/pz-akifast@1.71.0-rc.3
|
|
108
|
-
- @akinon/pz-b2b@1.71.0-rc.3
|
|
109
|
-
- @akinon/pz-basket-gift-pack@1.71.0-rc.3
|
|
110
|
-
- @akinon/pz-bkm@1.71.0-rc.3
|
|
111
|
-
- @akinon/pz-checkout-gift-pack@1.71.0-rc.3
|
|
112
|
-
- @akinon/pz-click-collect@1.71.0-rc.3
|
|
113
|
-
- @akinon/pz-credit-payment@1.71.0-rc.3
|
|
114
|
-
- @akinon/pz-gpay@1.71.0-rc.3
|
|
115
|
-
- @akinon/pz-masterpass@1.71.0-rc.3
|
|
116
|
-
- @akinon/pz-one-click-checkout@1.71.0-rc.3
|
|
117
|
-
- @akinon/pz-otp@1.71.0-rc.3
|
|
118
|
-
- @akinon/pz-pay-on-delivery@1.71.0-rc.3
|
|
119
|
-
- @akinon/pz-saved-card@1.71.0-rc.3
|
|
120
|
-
- @akinon/pz-tabby-extension@1.71.0-rc.3
|
|
121
|
-
|
|
122
|
-
## 1.71.0-rc.2
|
|
123
|
-
|
|
124
|
-
### Patch Changes
|
|
125
|
-
|
|
126
|
-
- Updated dependencies [56cdddc]
|
|
127
|
-
- @akinon/next@1.71.0-rc.2
|
|
128
|
-
- @akinon/pz-akifast@1.71.0-rc.2
|
|
129
|
-
- @akinon/pz-b2b@1.71.0-rc.2
|
|
130
|
-
- @akinon/pz-basket-gift-pack@1.71.0-rc.2
|
|
131
|
-
- @akinon/pz-bkm@1.71.0-rc.2
|
|
132
|
-
- @akinon/pz-checkout-gift-pack@1.71.0-rc.2
|
|
133
|
-
- @akinon/pz-click-collect@1.71.0-rc.2
|
|
134
|
-
- @akinon/pz-credit-payment@1.71.0-rc.2
|
|
135
|
-
- @akinon/pz-gpay@1.71.0-rc.2
|
|
136
|
-
- @akinon/pz-masterpass@1.71.0-rc.2
|
|
137
|
-
- @akinon/pz-one-click-checkout@1.71.0-rc.2
|
|
138
|
-
- @akinon/pz-otp@1.71.0-rc.2
|
|
139
|
-
- @akinon/pz-pay-on-delivery@1.71.0-rc.2
|
|
140
|
-
- @akinon/pz-saved-card@1.71.0-rc.2
|
|
141
|
-
- @akinon/pz-tabby-extension@1.71.0-rc.2
|
|
142
|
-
|
|
143
|
-
## 1.71.0-rc.1
|
|
144
|
-
|
|
145
|
-
### Patch Changes
|
|
146
|
-
|
|
147
|
-
- Updated dependencies [9a50730]
|
|
148
|
-
- @akinon/next@1.71.0-rc.1
|
|
149
|
-
- @akinon/pz-akifast@1.71.0-rc.1
|
|
150
|
-
- @akinon/pz-b2b@1.71.0-rc.1
|
|
151
|
-
- @akinon/pz-basket-gift-pack@1.71.0-rc.1
|
|
152
|
-
- @akinon/pz-bkm@1.71.0-rc.1
|
|
153
|
-
- @akinon/pz-checkout-gift-pack@1.71.0-rc.1
|
|
154
|
-
- @akinon/pz-click-collect@1.71.0-rc.1
|
|
155
|
-
- @akinon/pz-credit-payment@1.71.0-rc.1
|
|
156
|
-
- @akinon/pz-gpay@1.71.0-rc.1
|
|
157
|
-
- @akinon/pz-masterpass@1.71.0-rc.1
|
|
158
|
-
- @akinon/pz-one-click-checkout@1.71.0-rc.1
|
|
159
|
-
- @akinon/pz-otp@1.71.0-rc.1
|
|
160
|
-
- @akinon/pz-pay-on-delivery@1.71.0-rc.1
|
|
161
|
-
- @akinon/pz-saved-card@1.71.0-rc.1
|
|
162
|
-
- @akinon/pz-tabby-extension@1.71.0-rc.1
|
|
163
|
-
|
|
164
|
-
## 1.71.0-rc.0
|
|
165
|
-
|
|
166
|
-
### Minor Changes
|
|
167
|
-
|
|
168
|
-
- 4d3deb4: ZERO-2935: sentry 8 upgrade
|
|
169
|
-
|
|
170
|
-
### Patch Changes
|
|
171
|
-
|
|
172
|
-
- Updated dependencies [3bfa12a]
|
|
173
|
-
- Updated dependencies [4d3deb4]
|
|
174
|
-
- Updated dependencies [3010514]
|
|
175
|
-
- Updated dependencies [ca774b3]
|
|
176
|
-
- @akinon/next@1.71.0-rc.0
|
|
177
|
-
- @akinon/pz-akifast@1.71.0-rc.0
|
|
178
|
-
- @akinon/pz-b2b@1.71.0-rc.0
|
|
179
|
-
- @akinon/pz-basket-gift-pack@1.71.0-rc.0
|
|
180
|
-
- @akinon/pz-bkm@1.71.0-rc.0
|
|
181
|
-
- @akinon/pz-checkout-gift-pack@1.71.0-rc.0
|
|
182
|
-
- @akinon/pz-click-collect@1.71.0-rc.0
|
|
183
|
-
- @akinon/pz-credit-payment@1.71.0-rc.0
|
|
184
|
-
- @akinon/pz-gpay@1.71.0-rc.0
|
|
185
|
-
- @akinon/pz-masterpass@1.71.0-rc.0
|
|
186
|
-
- @akinon/pz-one-click-checkout@1.71.0-rc.0
|
|
187
|
-
- @akinon/pz-otp@1.71.0-rc.0
|
|
188
|
-
- @akinon/pz-pay-on-delivery@1.71.0-rc.0
|
|
189
|
-
- @akinon/pz-saved-card@1.71.0-rc.0
|
|
190
|
-
- @akinon/pz-tabby-extension@1.71.0-rc.0
|
|
12
|
+
- @akinon/next@1.71.0
|
|
13
|
+
- @akinon/pz-akifast@1.71.0
|
|
14
|
+
- @akinon/pz-b2b@1.71.0
|
|
15
|
+
- @akinon/pz-basket-gift-pack@1.71.0
|
|
16
|
+
- @akinon/pz-bkm@1.71.0
|
|
17
|
+
- @akinon/pz-checkout-gift-pack@1.71.0
|
|
18
|
+
- @akinon/pz-click-collect@1.71.0
|
|
19
|
+
- @akinon/pz-credit-payment@1.71.0
|
|
20
|
+
- @akinon/pz-gpay@1.71.0
|
|
21
|
+
- @akinon/pz-masterpass@1.71.0
|
|
22
|
+
- @akinon/pz-one-click-checkout@1.71.0
|
|
23
|
+
- @akinon/pz-otp@1.71.0
|
|
24
|
+
- @akinon/pz-pay-on-delivery@1.71.0
|
|
25
|
+
- @akinon/pz-saved-card@1.71.0
|
|
26
|
+
- @akinon/pz-tabby-extension@1.71.0
|
|
191
27
|
|
|
192
28
|
## 1.70.0
|
|
193
29
|
|
|
@@ -218,249 +54,32 @@
|
|
|
218
54
|
|
|
219
55
|
### Minor Changes
|
|
220
56
|
|
|
221
|
-
- 4d3deb4: ZERO-2935: sentry 8 upgrade
|
|
222
|
-
- f046f8e: ZERO-2575: update version for react-number-format
|
|
223
|
-
|
|
224
|
-
### Patch Changes
|
|
225
|
-
|
|
226
|
-
- Updated dependencies [3bfa12a]
|
|
227
|
-
- Updated dependencies [4d3deb4]
|
|
228
|
-
- Updated dependencies [3010514]
|
|
229
|
-
- Updated dependencies [ca774b3]
|
|
230
|
-
- Updated dependencies [f046f8e]
|
|
231
|
-
- @akinon/next@1.69.0-rc.9
|
|
232
|
-
- @akinon/pz-akifast@1.69.0-rc.9
|
|
233
|
-
- @akinon/pz-b2b@1.69.0-rc.9
|
|
234
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.9
|
|
235
|
-
- @akinon/pz-bkm@1.69.0-rc.9
|
|
236
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.9
|
|
237
|
-
- @akinon/pz-click-collect@1.69.0-rc.9
|
|
238
|
-
- @akinon/pz-credit-payment@1.69.0-rc.9
|
|
239
|
-
- @akinon/pz-gpay@1.69.0-rc.9
|
|
240
|
-
- @akinon/pz-masterpass@1.69.0-rc.9
|
|
241
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.9
|
|
242
|
-
- @akinon/pz-otp@1.69.0-rc.9
|
|
243
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.9
|
|
244
|
-
- @akinon/pz-saved-card@1.69.0-rc.9
|
|
245
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.9
|
|
246
|
-
|
|
247
|
-
## 1.69.0-rc.8
|
|
248
|
-
|
|
249
|
-
### Patch Changes
|
|
250
|
-
|
|
251
|
-
- Updated dependencies [3010514]
|
|
252
|
-
- Updated dependencies [ca774b3]
|
|
253
|
-
- @akinon/next@1.69.0-rc.8
|
|
254
|
-
- @akinon/pz-akifast@1.69.0-rc.8
|
|
255
|
-
- @akinon/pz-b2b@1.69.0-rc.8
|
|
256
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.8
|
|
257
|
-
- @akinon/pz-bkm@1.69.0-rc.8
|
|
258
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.8
|
|
259
|
-
- @akinon/pz-click-collect@1.69.0-rc.8
|
|
260
|
-
- @akinon/pz-credit-payment@1.69.0-rc.8
|
|
261
|
-
- @akinon/pz-gpay@1.69.0-rc.8
|
|
262
|
-
- @akinon/pz-masterpass@1.69.0-rc.8
|
|
263
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.8
|
|
264
|
-
- @akinon/pz-otp@1.69.0-rc.8
|
|
265
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.8
|
|
266
|
-
- @akinon/pz-saved-card@1.69.0-rc.8
|
|
267
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.8
|
|
268
|
-
|
|
269
|
-
## 1.69.0-rc.7
|
|
270
|
-
|
|
271
|
-
### Patch Changes
|
|
272
|
-
|
|
273
|
-
- Updated dependencies [3bfa12a]
|
|
274
|
-
- @akinon/next@1.69.0-rc.7
|
|
275
|
-
- @akinon/pz-akifast@1.69.0-rc.7
|
|
276
|
-
- @akinon/pz-b2b@1.69.0-rc.7
|
|
277
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.7
|
|
278
|
-
- @akinon/pz-bkm@1.69.0-rc.7
|
|
279
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.7
|
|
280
|
-
- @akinon/pz-click-collect@1.69.0-rc.7
|
|
281
|
-
- @akinon/pz-credit-payment@1.69.0-rc.7
|
|
282
|
-
- @akinon/pz-gpay@1.69.0-rc.7
|
|
283
|
-
- @akinon/pz-masterpass@1.69.0-rc.7
|
|
284
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.7
|
|
285
|
-
- @akinon/pz-otp@1.69.0-rc.7
|
|
286
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.7
|
|
287
|
-
- @akinon/pz-saved-card@1.69.0-rc.7
|
|
288
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.7
|
|
289
|
-
|
|
290
|
-
## 1.69.0-rc.6
|
|
291
|
-
|
|
292
|
-
### Minor Changes
|
|
293
|
-
|
|
294
|
-
- 4d3deb4: ZERO-2935: sentry 8 upgrade
|
|
295
57
|
- 063da74: ZERO-3010: Remove pz-iyzico-saved-card package
|
|
296
58
|
- cbdb0c8: ZERO-3010: Move pretty url page into project
|
|
297
59
|
- 80c869b: ZERO-3010: Remove savedCardMiddleware from redux middlewares
|
|
298
60
|
|
|
299
61
|
### Patch Changes
|
|
300
62
|
|
|
301
|
-
- Updated dependencies [4d3deb4]
|
|
302
63
|
- Updated dependencies [063da74]
|
|
303
64
|
- Updated dependencies [72da021]
|
|
304
65
|
- Updated dependencies [5632a99]
|
|
305
66
|
- Updated dependencies [cbdb0c8]
|
|
306
67
|
- Updated dependencies [80c869b]
|
|
307
|
-
- @akinon/next@1.69.0
|
|
308
|
-
- @akinon/pz-akifast@1.69.0
|
|
309
|
-
- @akinon/pz-b2b@1.69.0
|
|
310
|
-
- @akinon/pz-basket-gift-pack@1.69.0
|
|
311
|
-
- @akinon/pz-bkm@1.69.0
|
|
312
|
-
- @akinon/pz-checkout-gift-pack@1.69.0
|
|
313
|
-
- @akinon/pz-click-collect@1.69.0
|
|
314
|
-
- @akinon/pz-credit-payment@1.69.0
|
|
315
|
-
- @akinon/pz-gpay@1.69.0
|
|
316
|
-
- @akinon/pz-masterpass@1.69.0
|
|
317
|
-
- @akinon/pz-one-click-checkout@1.69.0
|
|
318
|
-
- @akinon/pz-otp@1.69.0
|
|
319
|
-
- @akinon/pz-pay-on-delivery@1.69.0
|
|
320
|
-
- @akinon/pz-saved-card@1.69.0
|
|
321
|
-
- @akinon/pz-tabby-extension@1.69.0
|
|
322
|
-
|
|
323
|
-
## 1.69.0-rc.5
|
|
324
|
-
|
|
325
|
-
### Minor Changes
|
|
326
|
-
|
|
327
|
-
- 80c869b: ZERO-3010: Remove savedCardMiddleware from redux middlewares
|
|
328
|
-
|
|
329
|
-
### Patch Changes
|
|
330
|
-
|
|
331
|
-
- Updated dependencies [80c869b]
|
|
332
|
-
- @akinon/next@1.69.0-rc.5
|
|
333
|
-
- @akinon/pz-akifast@1.69.0-rc.5
|
|
334
|
-
- @akinon/pz-b2b@1.69.0-rc.5
|
|
335
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.5
|
|
336
|
-
- @akinon/pz-bkm@1.69.0-rc.5
|
|
337
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.5
|
|
338
|
-
- @akinon/pz-click-collect@1.69.0-rc.5
|
|
339
|
-
- @akinon/pz-credit-payment@1.69.0-rc.5
|
|
340
|
-
- @akinon/pz-gpay@1.69.0-rc.5
|
|
341
|
-
- @akinon/pz-masterpass@1.69.0-rc.5
|
|
342
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.5
|
|
343
|
-
- @akinon/pz-otp@1.69.0-rc.5
|
|
344
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.5
|
|
345
|
-
- @akinon/pz-saved-card@1.69.0-rc.5
|
|
346
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.5
|
|
347
|
-
|
|
348
|
-
## 1.69.0-rc.4
|
|
349
|
-
|
|
350
|
-
### Minor Changes
|
|
351
|
-
|
|
352
|
-
- 063da74: ZERO-3010: Remove pz-iyzico-saved-card package
|
|
353
|
-
|
|
354
|
-
### Patch Changes
|
|
355
|
-
|
|
356
|
-
- Updated dependencies [063da74]
|
|
357
|
-
- @akinon/next@1.69.0-rc.4
|
|
358
|
-
- @akinon/pz-akifast@1.69.0-rc.4
|
|
359
|
-
- @akinon/pz-b2b@1.69.0-rc.4
|
|
360
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.4
|
|
361
|
-
- @akinon/pz-bkm@1.69.0-rc.4
|
|
362
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.4
|
|
363
|
-
- @akinon/pz-click-collect@1.69.0-rc.4
|
|
364
|
-
- @akinon/pz-credit-payment@1.69.0-rc.4
|
|
365
|
-
- @akinon/pz-gpay@1.69.0-rc.4
|
|
366
|
-
- @akinon/pz-masterpass@1.69.0-rc.4
|
|
367
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.4
|
|
368
|
-
- @akinon/pz-otp@1.69.0-rc.4
|
|
369
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.4
|
|
370
|
-
- @akinon/pz-saved-card@1.69.0-rc.4
|
|
371
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.4
|
|
372
|
-
|
|
373
|
-
## 1.69.0-rc.3
|
|
374
|
-
|
|
375
|
-
### Minor Changes
|
|
376
|
-
|
|
377
|
-
- cbdb0c8: ZERO-3010: Move pretty url page into project
|
|
378
|
-
|
|
379
|
-
### Patch Changes
|
|
380
|
-
|
|
381
|
-
- Updated dependencies [cbdb0c8]
|
|
382
|
-
- @akinon/next@1.69.0-rc.3
|
|
383
|
-
- @akinon/pz-akifast@1.69.0-rc.3
|
|
384
|
-
- @akinon/pz-b2b@1.69.0-rc.3
|
|
385
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.3
|
|
386
|
-
- @akinon/pz-bkm@1.69.0-rc.3
|
|
387
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.3
|
|
388
|
-
- @akinon/pz-click-collect@1.69.0-rc.3
|
|
389
|
-
- @akinon/pz-credit-payment@1.69.0-rc.3
|
|
390
|
-
- @akinon/pz-gpay@1.69.0-rc.3
|
|
391
|
-
- @akinon/pz-masterpass@1.69.0-rc.3
|
|
392
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.3
|
|
393
|
-
- @akinon/pz-otp@1.69.0-rc.3
|
|
394
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.3
|
|
395
|
-
- @akinon/pz-saved-card@1.69.0-rc.3
|
|
396
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.3
|
|
397
|
-
|
|
398
|
-
## 1.69.0-rc.2
|
|
399
|
-
|
|
400
|
-
### Patch Changes
|
|
401
|
-
|
|
402
|
-
- Updated dependencies [5632a99]
|
|
403
|
-
- @akinon/next@1.69.0-rc.2
|
|
404
|
-
- @akinon/pz-akifast@1.69.0-rc.2
|
|
405
|
-
- @akinon/pz-b2b@1.69.0-rc.2
|
|
406
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.2
|
|
407
|
-
- @akinon/pz-bkm@1.69.0-rc.2
|
|
408
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.2
|
|
409
|
-
- @akinon/pz-click-collect@1.69.0-rc.2
|
|
410
|
-
- @akinon/pz-credit-payment@1.69.0-rc.2
|
|
411
|
-
- @akinon/pz-gpay@1.69.0-rc.2
|
|
412
|
-
- @akinon/pz-masterpass@1.69.0-rc.2
|
|
413
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.2
|
|
414
|
-
- @akinon/pz-otp@1.69.0-rc.2
|
|
415
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.2
|
|
416
|
-
- @akinon/pz-saved-card@1.69.0-rc.2
|
|
417
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.2
|
|
418
|
-
|
|
419
|
-
## 1.69.0-rc.1
|
|
420
|
-
|
|
421
|
-
### Patch Changes
|
|
422
|
-
|
|
423
|
-
- Updated dependencies [72da021]
|
|
424
|
-
- @akinon/next@1.69.0-rc.1
|
|
425
|
-
- @akinon/pz-akifast@1.69.0-rc.1
|
|
426
|
-
- @akinon/pz-b2b@1.69.0-rc.1
|
|
427
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.1
|
|
428
|
-
- @akinon/pz-bkm@1.69.0-rc.1
|
|
429
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.1
|
|
430
|
-
- @akinon/pz-click-collect@1.69.0-rc.1
|
|
431
|
-
- @akinon/pz-credit-payment@1.69.0-rc.1
|
|
432
|
-
- @akinon/pz-gpay@1.69.0-rc.1
|
|
433
|
-
- @akinon/pz-masterpass@1.69.0-rc.1
|
|
434
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.1
|
|
435
|
-
- @akinon/pz-otp@1.69.0-rc.1
|
|
436
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.1
|
|
437
|
-
- @akinon/pz-saved-card@1.69.0-rc.1
|
|
438
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.1
|
|
439
|
-
|
|
440
|
-
## 1.69.0-rc.0
|
|
441
|
-
|
|
442
|
-
### Minor Changes
|
|
443
|
-
|
|
444
|
-
- 4d3deb4: ZERO-2935: sentry 8 upgrade
|
|
445
|
-
|
|
446
|
-
### Patch Changes
|
|
447
|
-
|
|
448
|
-
- Updated dependencies [4d3deb4]
|
|
449
|
-
- @akinon/next@1.69.0-rc.0
|
|
450
|
-
- @akinon/pz-akifast@1.69.0-rc.0
|
|
451
|
-
- @akinon/pz-b2b@1.69.0-rc.0
|
|
452
|
-
- @akinon/pz-basket-gift-pack@1.69.0-rc.0
|
|
453
|
-
- @akinon/pz-bkm@1.69.0-rc.0
|
|
454
|
-
- @akinon/pz-checkout-gift-pack@1.69.0-rc.0
|
|
455
|
-
- @akinon/pz-click-collect@1.69.0-rc.0
|
|
456
|
-
- @akinon/pz-credit-payment@1.69.0-rc.0
|
|
457
|
-
- @akinon/pz-gpay@1.69.0-rc.0
|
|
458
|
-
- @akinon/pz-masterpass@1.69.0-rc.0
|
|
459
|
-
- @akinon/pz-one-click-checkout@1.69.0-rc.0
|
|
460
|
-
- @akinon/pz-otp@1.69.0-rc.0
|
|
461
|
-
- @akinon/pz-pay-on-delivery@1.69.0-rc.0
|
|
462
|
-
- @akinon/pz-saved-card@1.69.0-rc.0
|
|
463
|
-
- @akinon/pz-tabby-extension@1.69.0-rc.0
|
|
68
|
+
- @akinon/next@1.69.0
|
|
69
|
+
- @akinon/pz-akifast@1.69.0
|
|
70
|
+
- @akinon/pz-b2b@1.69.0
|
|
71
|
+
- @akinon/pz-basket-gift-pack@1.69.0
|
|
72
|
+
- @akinon/pz-bkm@1.69.0
|
|
73
|
+
- @akinon/pz-checkout-gift-pack@1.69.0
|
|
74
|
+
- @akinon/pz-click-collect@1.69.0
|
|
75
|
+
- @akinon/pz-credit-payment@1.69.0
|
|
76
|
+
- @akinon/pz-gpay@1.69.0
|
|
77
|
+
- @akinon/pz-masterpass@1.69.0
|
|
78
|
+
- @akinon/pz-one-click-checkout@1.69.0
|
|
79
|
+
- @akinon/pz-otp@1.69.0
|
|
80
|
+
- @akinon/pz-pay-on-delivery@1.69.0
|
|
81
|
+
- @akinon/pz-saved-card@1.69.0
|
|
82
|
+
- @akinon/pz-tabby-extension@1.69.0
|
|
464
83
|
|
|
465
84
|
## 1.68.0
|
|
466
85
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.71.0
|
|
3
|
+
"version": "1.71.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,25 +22,25 @@
|
|
|
22
22
|
"prestart": "pz-prestart"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@akinon/next": "1.71.0
|
|
26
|
-
"@akinon/pz-akifast": "1.71.0
|
|
27
|
-
"@akinon/pz-b2b": "1.71.0
|
|
28
|
-
"@akinon/pz-basket-gift-pack": "1.71.0
|
|
29
|
-
"@akinon/pz-bkm": "1.71.0
|
|
30
|
-
"@akinon/pz-checkout-gift-pack": "1.71.0
|
|
31
|
-
"@akinon/pz-click-collect": "1.71.0
|
|
32
|
-
"@akinon/pz-credit-payment": "1.71.0
|
|
33
|
-
"@akinon/pz-gpay": "1.71.0
|
|
34
|
-
"@akinon/pz-masterpass": "1.71.0
|
|
35
|
-
"@akinon/pz-one-click-checkout": "1.71.0
|
|
36
|
-
"@akinon/pz-otp": "1.71.0
|
|
37
|
-
"@akinon/pz-pay-on-delivery": "1.71.0
|
|
38
|
-
"@akinon/pz-saved-card": "1.71.0
|
|
39
|
-
"@akinon/pz-tabby-extension": "1.71.0
|
|
25
|
+
"@akinon/next": "1.71.0",
|
|
26
|
+
"@akinon/pz-akifast": "1.71.0",
|
|
27
|
+
"@akinon/pz-b2b": "1.71.0",
|
|
28
|
+
"@akinon/pz-basket-gift-pack": "1.71.0",
|
|
29
|
+
"@akinon/pz-bkm": "1.71.0",
|
|
30
|
+
"@akinon/pz-checkout-gift-pack": "1.71.0",
|
|
31
|
+
"@akinon/pz-click-collect": "1.71.0",
|
|
32
|
+
"@akinon/pz-credit-payment": "1.71.0",
|
|
33
|
+
"@akinon/pz-gpay": "1.71.0",
|
|
34
|
+
"@akinon/pz-masterpass": "1.71.0",
|
|
35
|
+
"@akinon/pz-one-click-checkout": "1.71.0",
|
|
36
|
+
"@akinon/pz-otp": "1.71.0",
|
|
37
|
+
"@akinon/pz-pay-on-delivery": "1.71.0",
|
|
38
|
+
"@akinon/pz-saved-card": "1.71.0",
|
|
39
|
+
"@akinon/pz-tabby-extension": "1.71.0",
|
|
40
40
|
"@hookform/resolvers": "2.9.0",
|
|
41
41
|
"@next/third-parties": "14.1.0",
|
|
42
42
|
"@react-google-maps/api": "2.17.1",
|
|
43
|
-
"@sentry/nextjs": "
|
|
43
|
+
"@sentry/nextjs": "7.116.0",
|
|
44
44
|
"dayjs": "1.11.5",
|
|
45
45
|
"lossless-json": "2.0.5",
|
|
46
46
|
"next": "14.2.5",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"yup": "0.32.11"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@akinon/eslint-plugin-projectzero": "1.71.0
|
|
63
|
+
"@akinon/eslint-plugin-projectzero": "1.71.0",
|
|
64
64
|
"@semantic-release/changelog": "6.0.2",
|
|
65
65
|
"@semantic-release/exec": "6.0.3",
|
|
66
66
|
"@semantic-release/git": "10.0.1",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@types/react-dom": "18.2.12",
|
|
76
76
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|
|
77
77
|
"@typescript-eslint/parser": "6.7.4",
|
|
78
|
-
"autoprefixer": "10.4.
|
|
78
|
+
"autoprefixer": "10.4.13",
|
|
79
79
|
"client-only": "0.0.1",
|
|
80
80
|
"clsx": "1.1.1",
|
|
81
81
|
"currency-symbol-map": "5.1.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"stylelint-config-standard": "25.0.0",
|
|
97
97
|
"stylelint-scss": "4.2.0",
|
|
98
98
|
"stylelint-selector-bem-pattern": "2.1.1",
|
|
99
|
-
"tailwindcss": "3.4.
|
|
99
|
+
"tailwindcss": "3.4.12",
|
|
100
100
|
"ts-jest": "29.1.1",
|
|
101
101
|
"ts-node": "10.7.0",
|
|
102
102
|
"typescript": "5.2.2"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { PaginationProps } from '@theme/components/types';
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import {
|
|
5
|
+
import { Button } from '@theme/components';
|
|
6
6
|
import usePagination from '@akinon/next/hooks/use-pagination';
|
|
7
7
|
import { useLocalization } from '@akinon/next/hooks';
|
|
8
8
|
import { useRouter } from '@akinon/next/hooks';
|
|
@@ -25,8 +25,7 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
25
25
|
type = 'list',
|
|
26
26
|
onPageChange,
|
|
27
27
|
direction,
|
|
28
|
-
render
|
|
29
|
-
isLoading
|
|
28
|
+
render
|
|
30
29
|
} = props;
|
|
31
30
|
|
|
32
31
|
const pagination = usePagination(total, limit, currentPage, numberOfPages);
|
|
@@ -93,9 +92,7 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
93
92
|
}
|
|
94
93
|
}, [numberOfPages, page, pageList, threshold]);
|
|
95
94
|
|
|
96
|
-
const handleClick = (
|
|
97
|
-
e.preventDefault();
|
|
98
|
-
|
|
95
|
+
const handleClick = (url: string) => {
|
|
99
96
|
const newUrl = new URL(url, window.location.origin);
|
|
100
97
|
const page = newUrl.searchParams.get('page');
|
|
101
98
|
|
|
@@ -120,13 +117,6 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
120
117
|
onPageChange(changingPage);
|
|
121
118
|
};
|
|
122
119
|
|
|
123
|
-
useEffect(() => {
|
|
124
|
-
if (type === 'infinite' && page === 1) {
|
|
125
|
-
setPrevPage(1);
|
|
126
|
-
setNextPage(1);
|
|
127
|
-
}
|
|
128
|
-
}, [page]);
|
|
129
|
-
|
|
130
120
|
useEffect(() => {
|
|
131
121
|
if (inView) {
|
|
132
122
|
handlePageChange();
|
|
@@ -137,7 +127,7 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
137
127
|
if (type === 'list') {
|
|
138
128
|
createListItems();
|
|
139
129
|
}
|
|
140
|
-
}, [
|
|
130
|
+
}, [createListItems, type]);
|
|
141
131
|
|
|
142
132
|
useEffect(() => {
|
|
143
133
|
if (total && total !== paginationTotal) {
|
|
@@ -157,23 +147,21 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
157
147
|
|
|
158
148
|
return direction === 'prev' && type !== 'list' ? (
|
|
159
149
|
<>
|
|
160
|
-
|
|
161
|
-
<
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
</Button>
|
|
171
|
-
</div>
|
|
150
|
+
{Number(prevPage) !== 1 && (
|
|
151
|
+
<div className="flex justify-center items-center">
|
|
152
|
+
<Button
|
|
153
|
+
className={twMerge('px-5', moreButtonClassName)}
|
|
154
|
+
onClick={() => handlePageChange()}
|
|
155
|
+
>
|
|
156
|
+
{t('category.pagination.load_previous_page')}
|
|
157
|
+
</Button>
|
|
158
|
+
</div>
|
|
159
|
+
)}
|
|
172
160
|
</>
|
|
173
161
|
) : (
|
|
174
162
|
<>
|
|
175
163
|
{type === 'more' && (
|
|
176
|
-
<div className="flex
|
|
164
|
+
<div className="flex justify-center items-center">
|
|
177
165
|
<Button
|
|
178
166
|
className={twMerge(
|
|
179
167
|
'px-5',
|
|
@@ -185,11 +173,7 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
185
173
|
onClick={() => handlePageChange()}
|
|
186
174
|
disabled={Number(nextPage) === Number(last)}
|
|
187
175
|
>
|
|
188
|
-
{
|
|
189
|
-
<LoaderSpinner className="h-4 w-4" />
|
|
190
|
-
) : (
|
|
191
|
-
t('category.pagination.more')
|
|
192
|
-
)}
|
|
176
|
+
{t('category.pagination.more')}
|
|
193
177
|
</Button>
|
|
194
178
|
</div>
|
|
195
179
|
)}
|
|
@@ -199,9 +183,8 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
199
183
|
)}
|
|
200
184
|
|
|
201
185
|
{(type === 'infinite' || type === 'more') &&
|
|
202
|
-
Number(nextPage) === last &&
|
|
203
|
-
|
|
204
|
-
<p className="mt-8 text-center">
|
|
186
|
+
Number(nextPage) === last && (
|
|
187
|
+
<p className="text-center mt-8">
|
|
205
188
|
{t('category.pagination.shown_items')}
|
|
206
189
|
</p>
|
|
207
190
|
)}
|
|
@@ -209,37 +192,35 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
209
192
|
{type === 'list' && (
|
|
210
193
|
<ul
|
|
211
194
|
className={twMerge(
|
|
212
|
-
'
|
|
195
|
+
'flex mt-8 mb-4 justify-center items-center',
|
|
213
196
|
containerClassName
|
|
214
197
|
)}
|
|
215
198
|
>
|
|
216
199
|
{prev && currentPage !== 1 && (
|
|
217
200
|
<li>
|
|
218
|
-
<
|
|
219
|
-
onClick={(
|
|
220
|
-
href={prev}
|
|
201
|
+
<button
|
|
202
|
+
onClick={() => handleClick(prev)}
|
|
221
203
|
className={twMerge(
|
|
222
|
-
'flex cursor-pointer
|
|
204
|
+
'flex cursor-pointer text-sm px-2',
|
|
223
205
|
prevClassName
|
|
224
206
|
)}
|
|
225
207
|
>
|
|
226
208
|
<span><</span>
|
|
227
|
-
<span className="
|
|
209
|
+
<span className="hidden lg:inline-block ms-4">
|
|
228
210
|
{t('category.pagination.previous')}
|
|
229
211
|
</span>
|
|
230
|
-
</
|
|
212
|
+
</button>
|
|
231
213
|
</li>
|
|
232
214
|
)}
|
|
233
215
|
|
|
234
216
|
{paginationItems.map((item, i) => (
|
|
235
217
|
<li key={i}>
|
|
236
218
|
{item?.url != '#' ? (
|
|
237
|
-
<
|
|
238
|
-
onClick={(
|
|
239
|
-
href={item.url}
|
|
219
|
+
<button
|
|
220
|
+
onClick={() => handleClick(item.url)}
|
|
240
221
|
className={twMerge(
|
|
241
222
|
clsx(
|
|
242
|
-
'
|
|
223
|
+
'text-xs px-2 cursor-pointer',
|
|
243
224
|
{ 'pointer-events-none': item.url === null },
|
|
244
225
|
Number(page) === Number(item?.page)
|
|
245
226
|
? 'font-semibold text-black-800'
|
|
@@ -249,9 +230,9 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
249
230
|
)}
|
|
250
231
|
>
|
|
251
232
|
{item?.page}
|
|
252
|
-
</
|
|
233
|
+
</button>
|
|
253
234
|
) : (
|
|
254
|
-
<span className="
|
|
235
|
+
<span className="cursor-default text-xs flex items-center justify-center">
|
|
255
236
|
{item?.page}
|
|
256
237
|
</span>
|
|
257
238
|
)}
|
|
@@ -260,19 +241,18 @@ export const Pagination = (props: PaginationProps) => {
|
|
|
260
241
|
|
|
261
242
|
{showNext && (
|
|
262
243
|
<li>
|
|
263
|
-
<
|
|
264
|
-
onClick={(
|
|
265
|
-
href={next}
|
|
244
|
+
<button
|
|
245
|
+
onClick={() => handleClick(next)}
|
|
266
246
|
className={twMerge(
|
|
267
|
-
'flex cursor-pointer
|
|
247
|
+
'flex cursor-pointer text-xs px-2',
|
|
268
248
|
nextClassName
|
|
269
249
|
)}
|
|
270
250
|
>
|
|
271
|
-
<span className="
|
|
251
|
+
<span className="hidden lg:inline-block me-4">
|
|
272
252
|
{t('category.pagination.next')}
|
|
273
253
|
</span>
|
|
274
254
|
<span>></span>
|
|
275
|
-
</
|
|
255
|
+
</button>
|
|
276
256
|
</li>
|
|
277
257
|
)}
|
|
278
258
|
</ul>
|
|
@@ -5,9 +5,6 @@ const commerceUrl = encodeURI(process.env.SERVICE_BACKEND_URL ?? 'default');
|
|
|
5
5
|
|
|
6
6
|
/** @type {import('@akinon/next/types').Settings} */
|
|
7
7
|
module.exports = {
|
|
8
|
-
webVitals: {
|
|
9
|
-
enabled: true
|
|
10
|
-
},
|
|
11
8
|
commerceUrl,
|
|
12
9
|
commonProductAttributes: [
|
|
13
10
|
{ translationKey: 'color', key: 'color' },
|
|
@@ -70,9 +70,9 @@ const CategoryActiveFilters = () => {
|
|
|
70
70
|
return (
|
|
71
71
|
<div className="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-2 mb-4">
|
|
72
72
|
{facets.map((facet) =>
|
|
73
|
-
facet
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
facet.data.choices
|
|
74
|
+
.filter((choice) => choice.is_selected)
|
|
75
|
+
.map(
|
|
76
76
|
(choice) =>
|
|
77
77
|
Number(choice.real_depth) !== 2 && (
|
|
78
78
|
<div
|
|
@@ -112,7 +112,7 @@ export const FilterItem = ({ facet, isPending, startTransition }: Props) => {
|
|
|
112
112
|
};
|
|
113
113
|
|
|
114
114
|
const Component = getComponentByWidgetType(facet.widget_type, facet.key);
|
|
115
|
-
const choices = sortChoices(facet
|
|
115
|
+
const choices = sortChoices(facet.key, [...facet.data.choices]);
|
|
116
116
|
|
|
117
117
|
return (
|
|
118
118
|
<Accordion
|
|
@@ -24,7 +24,7 @@ export const Filters = (props: Props) => {
|
|
|
24
24
|
|
|
25
25
|
const haveFilter = useMemo(() => {
|
|
26
26
|
return facets.some((facet) =>
|
|
27
|
-
facet
|
|
27
|
+
facet.data.choices.some((choice) => choice.is_selected)
|
|
28
28
|
);
|
|
29
29
|
}, [facets]);
|
|
30
30
|
|
|
@@ -17,7 +17,7 @@ export default async function Layout({
|
|
|
17
17
|
<>
|
|
18
18
|
<div
|
|
19
19
|
className={clsx(
|
|
20
|
-
data
|
|
20
|
+
data.category?.attributes?.category_banner
|
|
21
21
|
? 'relative w-full'
|
|
22
22
|
: 'container px-4 mx-auto lg:px-0 lg:my-4'
|
|
23
23
|
)}
|
|
@@ -26,13 +26,13 @@ export default async function Layout({
|
|
|
26
26
|
<div
|
|
27
27
|
className={clsx(
|
|
28
28
|
'my-4 lg:mt-7',
|
|
29
|
-
data
|
|
29
|
+
data.category?.attributes?.category_banner &&
|
|
30
30
|
'lg:absolute lg:inset-x-0 z-10 container lg:my-4 mx-auto'
|
|
31
31
|
)}
|
|
32
32
|
>
|
|
33
33
|
<Breadcrumb breadcrumbList={breadcrumbData} />
|
|
34
34
|
</div>
|
|
35
|
-
<CategoryBanner {...data
|
|
35
|
+
<CategoryBanner {...data.category?.attributes?.category_banner} />
|
|
36
36
|
</div>
|
|
37
37
|
<ListPage data={data} />
|
|
38
38
|
</>
|
|
@@ -4,14 +4,8 @@ import { CheckoutPaymentOption } from '@akinon/next/types';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { RootState } from '@theme/redux/store';
|
|
6
6
|
import PaymentOptionButtons from './payment-option-buttons';
|
|
7
|
-
import HepsiPay from './options/hepsipay';
|
|
8
7
|
|
|
9
|
-
export const PaymentOptionViews: Array<CheckoutPaymentOption> = [
|
|
10
|
-
{
|
|
11
|
-
slug: 'hepsipay',
|
|
12
|
-
view: HepsiPay
|
|
13
|
-
}
|
|
14
|
-
];
|
|
8
|
+
export const PaymentOptionViews: Array<CheckoutPaymentOption> = [];
|
|
15
9
|
|
|
16
10
|
const PaymentStep = () => {
|
|
17
11
|
const isPaymentStepBusy = useAppSelector(
|
package/package.json
CHANGED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { Button, Icon } from '@theme/components';
|
|
2
|
-
import Script from 'next/script';
|
|
3
|
-
import { useEffect, useCallback, useState } from 'react';
|
|
4
|
-
import { RootState } from '@theme/redux/store';
|
|
5
|
-
import { useAppSelector } from '@akinon/next/redux/hooks';
|
|
6
|
-
import { useSetWalletCompletePageMutation } from '@akinon/next/data/client/checkout';
|
|
7
|
-
import * as yup from 'yup';
|
|
8
|
-
import { SubmitHandler, useForm } from 'react-hook-form';
|
|
9
|
-
import { yupResolver } from '@hookform/resolvers/yup';
|
|
10
|
-
import CheckoutAgreements from '../agreements';
|
|
11
|
-
|
|
12
|
-
interface InitOptions {
|
|
13
|
-
frameUrl: string;
|
|
14
|
-
frameDivId: string;
|
|
15
|
-
paymentStatusCallback: (isPaymentAllowed: boolean) => void;
|
|
16
|
-
frameFailureCallback: () => void;
|
|
17
|
-
onPaymentSuccessCallback: (payload: any) => void;
|
|
18
|
-
maxHeight: string;
|
|
19
|
-
disableDynamicHeight: boolean;
|
|
20
|
-
showFramePaymentButton: boolean;
|
|
21
|
-
useApiCallOnSuccessCallback: boolean;
|
|
22
|
-
selectedPaymentInfoCallback: (payload: any) => void;
|
|
23
|
-
overrideFontFamily: string;
|
|
24
|
-
hideHeader: boolean;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const hepsiPayFormSchema = () =>
|
|
28
|
-
yup.object().shape({
|
|
29
|
-
agreement: yup.boolean().oneOf([true], 'Bu Alan Zorunlu')
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export default function HepsiPay() {
|
|
33
|
-
const {
|
|
34
|
-
handleSubmit,
|
|
35
|
-
control,
|
|
36
|
-
formState: { errors }
|
|
37
|
-
} = useForm({
|
|
38
|
-
resolver: yupResolver(hepsiPayFormSchema())
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const [isPaymentSuccessful, setIsPaymentSuccessful] = useState(false);
|
|
42
|
-
|
|
43
|
-
const context_extras = useAppSelector(
|
|
44
|
-
(state: RootState) => state.checkout.preOrder?.context_extras
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
const hepsipayAvailability = useAppSelector(
|
|
48
|
-
(state: RootState) => state.checkout?.hepsipayAvailability
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
const frameUrl = context_extras?.FrameUrl;
|
|
52
|
-
|
|
53
|
-
const [setWalletCompletePage] = useSetWalletCompletePageMutation();
|
|
54
|
-
|
|
55
|
-
const initHepsipay = useCallback(() => {
|
|
56
|
-
if (!frameUrl || !window.HepsipaySdk) return;
|
|
57
|
-
|
|
58
|
-
const initOptions: InitOptions = {
|
|
59
|
-
frameUrl,
|
|
60
|
-
frameDivId: 'hepsipay-frame',
|
|
61
|
-
paymentStatusCallback: () => {},
|
|
62
|
-
frameFailureCallback: () => {},
|
|
63
|
-
onPaymentSuccessCallback: () => {
|
|
64
|
-
setIsPaymentSuccessful(true);
|
|
65
|
-
setWalletCompletePage();
|
|
66
|
-
},
|
|
67
|
-
maxHeight: '800',
|
|
68
|
-
disableDynamicHeight: false,
|
|
69
|
-
showFramePaymentButton: false,
|
|
70
|
-
useApiCallOnSuccessCallback: false,
|
|
71
|
-
selectedPaymentInfoCallback: () => {},
|
|
72
|
-
overrideFontFamily: 'Inter',
|
|
73
|
-
hideHeader: false
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
window.HepsipaySdk.init(initOptions);
|
|
77
|
-
}, [frameUrl, setWalletCompletePage]);
|
|
78
|
-
|
|
79
|
-
useEffect(() => {
|
|
80
|
-
if (window.HepsipaySdk) {
|
|
81
|
-
initHepsipay();
|
|
82
|
-
}
|
|
83
|
-
}, [initHepsipay]);
|
|
84
|
-
|
|
85
|
-
const onSubmit: SubmitHandler<null> = async () => {
|
|
86
|
-
if (window.HepsipaySdk) {
|
|
87
|
-
window.HepsipaySdk.initPayment();
|
|
88
|
-
} else {
|
|
89
|
-
console.error('Hepsipay SDK is not available');
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
return (
|
|
94
|
-
<div className="p-4 sm:px-6">
|
|
95
|
-
{isPaymentSuccessful ? (
|
|
96
|
-
<></>
|
|
97
|
-
) : hepsipayAvailability ? (
|
|
98
|
-
<>
|
|
99
|
-
<div id="hepsipay-frame"></div>
|
|
100
|
-
<form onSubmit={handleSubmit(onSubmit)}>
|
|
101
|
-
<div className="flex items-start flex-col border-t border-solid border-gray-400 py-4 space-y-4">
|
|
102
|
-
<CheckoutAgreements
|
|
103
|
-
control={control}
|
|
104
|
-
error={errors.agreement}
|
|
105
|
-
fieldId="agreement"
|
|
106
|
-
/>
|
|
107
|
-
<Button
|
|
108
|
-
className="group uppercase mt-4 inline-flex items-center justify-center w-full"
|
|
109
|
-
type="submit"
|
|
110
|
-
data-testid="checkout-bank-account-place-order"
|
|
111
|
-
>
|
|
112
|
-
<span>PLACE ORDER</span>
|
|
113
|
-
<Icon
|
|
114
|
-
name="chevron-end"
|
|
115
|
-
size={12}
|
|
116
|
-
className="fill-primary-foreground ml-2 h-3 group-hover:fill-primary"
|
|
117
|
-
/>
|
|
118
|
-
</Button>
|
|
119
|
-
</div>
|
|
120
|
-
</form>
|
|
121
|
-
|
|
122
|
-
<Script
|
|
123
|
-
src="https://images.hepsiburada.net/hepsipay/packages/pf/hepsipay-latest.min.js"
|
|
124
|
-
defer
|
|
125
|
-
/>
|
|
126
|
-
</>
|
|
127
|
-
) : (
|
|
128
|
-
<div className="py-12 px-4">
|
|
129
|
-
Bu kullanıcı için hepsipay kullanılamıyor. Lütfen başka bir ödeme
|
|
130
|
-
yöntemi seçin.
|
|
131
|
-
</div>
|
|
132
|
-
)}
|
|
133
|
-
</div>
|
|
134
|
-
);
|
|
135
|
-
}
|