@akinon/projectzero 1.108.0-rc.4 → 1.108.0-rc.6
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 +4 -0
- package/app-template/CHANGELOG.md +60 -0
- package/app-template/package.json +24 -24
- package/app-template/public/locales/en/account.json +3 -1
- package/app-template/public/locales/tr/account.json +3 -1
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/orders/[id]/page.tsx +20 -1
- package/app-template/src/components/modal.tsx +2 -0
- package/app-template/src/components/select.tsx +1 -1
- package/app-template/src/views/account/orders/order-detail-header.tsx +1 -1
- package/app-template/src/views/checkout/steps/shipping/address-box.tsx +30 -17
- package/app-template/src/views/checkout/steps/shipping/addresses.tsx +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,65 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.108.0-rc.6
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 4449f3a3: ZERO-3681: Add order details localization and improve order handling in AccountOrderDetail
|
|
8
|
+
- b87517ff: ZERO-3680: Enhance select component styling to ensure focus state is consistent
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- @akinon/next@1.108.0-rc.6
|
|
13
|
+
- @akinon/pz-akifast@1.108.0-rc.6
|
|
14
|
+
- @akinon/pz-apple-pay@1.108.0-rc.6
|
|
15
|
+
- @akinon/pz-b2b@1.108.0-rc.6
|
|
16
|
+
- @akinon/pz-basket-gift-pack@1.108.0-rc.6
|
|
17
|
+
- @akinon/pz-bkm@1.108.0-rc.6
|
|
18
|
+
- @akinon/pz-checkout-gift-pack@1.108.0-rc.6
|
|
19
|
+
- @akinon/pz-click-collect@1.108.0-rc.6
|
|
20
|
+
- @akinon/pz-credit-payment@1.108.0-rc.6
|
|
21
|
+
- @akinon/pz-cybersource-uc@1.108.0-rc.6
|
|
22
|
+
- @akinon/pz-flow-payment@1.108.0-rc.6
|
|
23
|
+
- @akinon/pz-gpay@1.108.0-rc.6
|
|
24
|
+
- @akinon/pz-hepsipay@1.108.0-rc.6
|
|
25
|
+
- @akinon/pz-masterpass@1.108.0-rc.6
|
|
26
|
+
- @akinon/pz-multi-basket@1.108.0-rc.6
|
|
27
|
+
- @akinon/pz-one-click-checkout@1.108.0-rc.6
|
|
28
|
+
- @akinon/pz-otp@1.108.0-rc.6
|
|
29
|
+
- @akinon/pz-pay-on-delivery@1.108.0-rc.6
|
|
30
|
+
- @akinon/pz-saved-card@1.108.0-rc.6
|
|
31
|
+
- @akinon/pz-tabby-extension@1.108.0-rc.6
|
|
32
|
+
- @akinon/pz-tamara-extension@1.108.0-rc.6
|
|
33
|
+
- @akinon/pz-virtual-try-on@1.108.0-rc.6
|
|
34
|
+
|
|
35
|
+
## 1.108.0-rc.5
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Updated dependencies [31a2d35]
|
|
40
|
+
- @akinon/pz-flow-payment@1.108.0-rc.5
|
|
41
|
+
- @akinon/pz-apple-pay@1.108.0-rc.5
|
|
42
|
+
- @akinon/next@1.108.0-rc.5
|
|
43
|
+
- @akinon/pz-hepsipay@1.108.0-rc.5
|
|
44
|
+
- @akinon/pz-virtual-try-on@1.108.0-rc.5
|
|
45
|
+
- @akinon/pz-akifast@1.108.0-rc.5
|
|
46
|
+
- @akinon/pz-b2b@1.108.0-rc.5
|
|
47
|
+
- @akinon/pz-basket-gift-pack@1.108.0-rc.5
|
|
48
|
+
- @akinon/pz-bkm@1.108.0-rc.5
|
|
49
|
+
- @akinon/pz-checkout-gift-pack@1.108.0-rc.5
|
|
50
|
+
- @akinon/pz-click-collect@1.108.0-rc.5
|
|
51
|
+
- @akinon/pz-credit-payment@1.108.0-rc.5
|
|
52
|
+
- @akinon/pz-cybersource-uc@1.108.0-rc.5
|
|
53
|
+
- @akinon/pz-gpay@1.108.0-rc.5
|
|
54
|
+
- @akinon/pz-masterpass@1.108.0-rc.5
|
|
55
|
+
- @akinon/pz-multi-basket@1.108.0-rc.5
|
|
56
|
+
- @akinon/pz-one-click-checkout@1.108.0-rc.5
|
|
57
|
+
- @akinon/pz-otp@1.108.0-rc.5
|
|
58
|
+
- @akinon/pz-pay-on-delivery@1.108.0-rc.5
|
|
59
|
+
- @akinon/pz-saved-card@1.108.0-rc.5
|
|
60
|
+
- @akinon/pz-tabby-extension@1.108.0-rc.5
|
|
61
|
+
- @akinon/pz-tamara-extension@1.108.0-rc.5
|
|
62
|
+
|
|
3
63
|
## 1.108.0-rc.4
|
|
4
64
|
|
|
5
65
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.108.0-rc.
|
|
3
|
+
"version": "1.108.0-rc.6",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"test:middleware": "jest middleware-matcher.test.ts --bail"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@akinon/next": "1.108.0-rc.
|
|
28
|
-
"@akinon/pz-akifast": "1.108.0-rc.
|
|
29
|
-
"@akinon/pz-apple-pay": "1.108.0-rc.
|
|
30
|
-
"@akinon/pz-b2b": "1.108.0-rc.
|
|
31
|
-
"@akinon/pz-basket-gift-pack": "1.108.0-rc.
|
|
32
|
-
"@akinon/pz-bkm": "1.108.0-rc.
|
|
33
|
-
"@akinon/pz-checkout-gift-pack": "1.108.0-rc.
|
|
34
|
-
"@akinon/pz-click-collect": "1.108.0-rc.
|
|
35
|
-
"@akinon/pz-credit-payment": "1.108.0-rc.
|
|
36
|
-
"@akinon/pz-cybersource-uc": "1.108.0-rc.
|
|
37
|
-
"@akinon/pz-flow-payment": "1.108.0-rc.
|
|
38
|
-
"@akinon/pz-gpay": "1.108.0-rc.
|
|
39
|
-
"@akinon/pz-hepsipay": "1.108.0-rc.
|
|
40
|
-
"@akinon/pz-masterpass": "1.108.0-rc.
|
|
41
|
-
"@akinon/pz-multi-basket": "1.108.0-rc.
|
|
42
|
-
"@akinon/pz-one-click-checkout": "1.108.0-rc.
|
|
43
|
-
"@akinon/pz-otp": "1.108.0-rc.
|
|
44
|
-
"@akinon/pz-pay-on-delivery": "1.108.0-rc.
|
|
45
|
-
"@akinon/pz-saved-card": "1.108.0-rc.
|
|
46
|
-
"@akinon/pz-tabby-extension": "1.108.0-rc.
|
|
47
|
-
"@akinon/pz-tamara-extension": "1.108.0-rc.
|
|
48
|
-
"@akinon/pz-virtual-try-on": "1.108.0-rc.
|
|
27
|
+
"@akinon/next": "1.108.0-rc.6",
|
|
28
|
+
"@akinon/pz-akifast": "1.108.0-rc.6",
|
|
29
|
+
"@akinon/pz-apple-pay": "1.108.0-rc.6",
|
|
30
|
+
"@akinon/pz-b2b": "1.108.0-rc.6",
|
|
31
|
+
"@akinon/pz-basket-gift-pack": "1.108.0-rc.6",
|
|
32
|
+
"@akinon/pz-bkm": "1.108.0-rc.6",
|
|
33
|
+
"@akinon/pz-checkout-gift-pack": "1.108.0-rc.6",
|
|
34
|
+
"@akinon/pz-click-collect": "1.108.0-rc.6",
|
|
35
|
+
"@akinon/pz-credit-payment": "1.108.0-rc.6",
|
|
36
|
+
"@akinon/pz-cybersource-uc": "1.108.0-rc.6",
|
|
37
|
+
"@akinon/pz-flow-payment": "1.108.0-rc.6",
|
|
38
|
+
"@akinon/pz-gpay": "1.108.0-rc.6",
|
|
39
|
+
"@akinon/pz-hepsipay": "1.108.0-rc.6",
|
|
40
|
+
"@akinon/pz-masterpass": "1.108.0-rc.6",
|
|
41
|
+
"@akinon/pz-multi-basket": "1.108.0-rc.6",
|
|
42
|
+
"@akinon/pz-one-click-checkout": "1.108.0-rc.6",
|
|
43
|
+
"@akinon/pz-otp": "1.108.0-rc.6",
|
|
44
|
+
"@akinon/pz-pay-on-delivery": "1.108.0-rc.6",
|
|
45
|
+
"@akinon/pz-saved-card": "1.108.0-rc.6",
|
|
46
|
+
"@akinon/pz-tabby-extension": "1.108.0-rc.6",
|
|
47
|
+
"@akinon/pz-tamara-extension": "1.108.0-rc.6",
|
|
48
|
+
"@akinon/pz-virtual-try-on": "1.108.0-rc.6",
|
|
49
49
|
"@hookform/resolvers": "2.9.0",
|
|
50
50
|
"@next/third-parties": "14.1.0",
|
|
51
51
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"yup": "0.32.11"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@akinon/eslint-plugin-projectzero": "1.108.0-rc.
|
|
71
|
+
"@akinon/eslint-plugin-projectzero": "1.108.0-rc.6",
|
|
72
72
|
"@semantic-release/changelog": "6.0.2",
|
|
73
73
|
"@semantic-release/exec": "6.0.3",
|
|
74
74
|
"@semantic-release/git": "10.0.1",
|
|
@@ -242,7 +242,9 @@
|
|
|
242
242
|
"total": "Total",
|
|
243
243
|
"items": "items",
|
|
244
244
|
"packages": "Packages",
|
|
245
|
-
"package_no": "Package no"
|
|
245
|
+
"package_no": "Package no",
|
|
246
|
+
"back_to_orders": "Back to Orders",
|
|
247
|
+
"no_orders_found": "No orders found"
|
|
246
248
|
},
|
|
247
249
|
"return": {
|
|
248
250
|
"title": "Return Items",
|
|
@@ -242,7 +242,9 @@
|
|
|
242
242
|
"total": "Toplam",
|
|
243
243
|
"items": "adet",
|
|
244
244
|
"packages": "paket",
|
|
245
|
-
"package_no": "Paket no"
|
|
245
|
+
"package_no": "Paket no",
|
|
246
|
+
"back_to_orders": "Siparişlere geri dön",
|
|
247
|
+
"no_orders_found": "Sipariş bulunamadı"
|
|
246
248
|
},
|
|
247
249
|
"return": {
|
|
248
250
|
"title": "İade Ürünleri",
|
|
@@ -61,7 +61,26 @@ const AccountOrderDetail = ({ params: { id } }) => {
|
|
|
61
61
|
}, [order, isSuccess, localeValue]);
|
|
62
62
|
|
|
63
63
|
if (isLoading && isFetching) {
|
|
64
|
-
return
|
|
64
|
+
return (
|
|
65
|
+
<div className="flex flex-col items-center justify-center h-96">
|
|
66
|
+
<LoaderSpinner />
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (!order) {
|
|
72
|
+
return (
|
|
73
|
+
<div className="flex flex-col items-center justify-center h-96">
|
|
74
|
+
<p className="mt-5 text-start text-lg mb-4">
|
|
75
|
+
{t('account.my_orders.detail.no_orders_found')}
|
|
76
|
+
</p>
|
|
77
|
+
<Link href={`/account/orders/`}>
|
|
78
|
+
<Button className="px-4" appearance="filled">
|
|
79
|
+
{t('account.my_orders.detail.back_to_orders')}
|
|
80
|
+
</Button>
|
|
81
|
+
</Link>
|
|
82
|
+
</div>
|
|
83
|
+
);
|
|
65
84
|
}
|
|
66
85
|
|
|
67
86
|
return (
|
|
@@ -41,12 +41,14 @@ export const Modal = (props: ModalProps) => {
|
|
|
41
41
|
'fixed top-0 left-0 w-screen h-screen bg-primary bg-opacity-60 z-50',
|
|
42
42
|
overlayClassName
|
|
43
43
|
)}
|
|
44
|
+
onClick={(e) => e.stopPropagation()}
|
|
44
45
|
/>
|
|
45
46
|
<section
|
|
46
47
|
className={twMerge(
|
|
47
48
|
'fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 bg-white',
|
|
48
49
|
className
|
|
49
50
|
)}
|
|
51
|
+
onClick={(e) => e.stopPropagation()}
|
|
50
52
|
>
|
|
51
53
|
{(showCloseButton || title) && (
|
|
52
54
|
<div
|
|
@@ -48,7 +48,7 @@ const Select = forwardRef<HTMLSelectElement, SelectProps>((props, ref) => {
|
|
|
48
48
|
clsx(
|
|
49
49
|
'cursor-pointer truncate h-10 w-40 px-2.5 shrink-0 outline-none',
|
|
50
50
|
!borderless &&
|
|
51
|
-
'border border-gray-200 transition-all duration-150 hover:border-primary',
|
|
51
|
+
'border border-gray-200 transition-all duration-150 hover:border-primary focus:border-primary',
|
|
52
52
|
'appearance-none bg-transparent'
|
|
53
53
|
),
|
|
54
54
|
className
|
|
@@ -21,7 +21,7 @@ export const OrderDetailHeader = ({ title, order, children }: Props) => {
|
|
|
21
21
|
<div>
|
|
22
22
|
<span>{t('account.my_orders.detail.order_number')}</span>:{' '}
|
|
23
23
|
<span data-testid="account-orders-return-order-id">
|
|
24
|
-
{order
|
|
24
|
+
{order?.number}
|
|
25
25
|
</span>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
@@ -85,7 +85,7 @@ const AddressBox = ({
|
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
const onSubmit = (data) => {
|
|
88
|
-
editAddress({ ...data, invalidateTag: '
|
|
88
|
+
editAddress({ ...data, invalidateTag: 'Checkout' })
|
|
89
89
|
.unwrap()
|
|
90
90
|
.then((editAddressResponse) => {
|
|
91
91
|
handleAddressClick(addressType, editAddressResponse);
|
|
@@ -96,7 +96,7 @@ const AddressBox = ({
|
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
const handleRemoveAddress = async (addressPk: number) => {
|
|
99
|
-
await removeAddress({ id: addressPk, invalidateTag: '
|
|
99
|
+
await removeAddress({ id: addressPk, invalidateTag: 'Checkout' });
|
|
100
100
|
setRemoveAddressModalOpen(false);
|
|
101
101
|
dispatch(resetCheckoutState());
|
|
102
102
|
|
|
@@ -168,7 +168,10 @@ const AddressBox = ({
|
|
|
168
168
|
<Button
|
|
169
169
|
appearance="ghost"
|
|
170
170
|
className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
|
|
171
|
-
onClick={() =>
|
|
171
|
+
onClick={(e) => {
|
|
172
|
+
e.stopPropagation();
|
|
173
|
+
setIsEditAddressModalOpen(true);
|
|
174
|
+
}}
|
|
172
175
|
data-testid="checkout-address-edit"
|
|
173
176
|
>
|
|
174
177
|
{t('checkout.address.box.edit')}
|
|
@@ -180,21 +183,26 @@ const AddressBox = ({
|
|
|
180
183
|
setOpen={setIsEditAddressModalOpen}
|
|
181
184
|
className="w-full sm:w-[28rem] max-h-[90vh] overflow-y-auto"
|
|
182
185
|
>
|
|
183
|
-
<
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
186
|
+
<div onClick={(e) => e.stopPropagation()}>
|
|
187
|
+
<AddressForm
|
|
188
|
+
data={{
|
|
189
|
+
...address,
|
|
190
|
+
country: address.country?.pk,
|
|
191
|
+
city: address.city?.pk,
|
|
192
|
+
township: address.township?.pk,
|
|
193
|
+
district: address.district?.pk
|
|
194
|
+
}}
|
|
195
|
+
onSubmit={onSubmit}
|
|
196
|
+
/>
|
|
197
|
+
</div>
|
|
193
198
|
</Modal>
|
|
194
199
|
<Button
|
|
195
200
|
appearance="ghost"
|
|
196
201
|
className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
|
|
197
|
-
onClick={() =>
|
|
202
|
+
onClick={(e) => {
|
|
203
|
+
e.stopPropagation();
|
|
204
|
+
setRemoveAddressModalOpen(true);
|
|
205
|
+
}}
|
|
198
206
|
data-testid="checkout-address-remove"
|
|
199
207
|
>
|
|
200
208
|
{t('checkout.address.box.remove')}
|
|
@@ -207,14 +215,18 @@ const AddressBox = ({
|
|
|
207
215
|
setOpen={setRemoveAddressModalOpen}
|
|
208
216
|
showCloseButton={false}
|
|
209
217
|
>
|
|
210
|
-
<div
|
|
218
|
+
<div
|
|
219
|
+
className="text-center px-6 py-10"
|
|
220
|
+
onClick={(e) => e.stopPropagation()}
|
|
221
|
+
>
|
|
211
222
|
<p className="mb-4">
|
|
212
223
|
{t('account.address_book.modal.delete_description')}
|
|
213
224
|
</p>
|
|
214
225
|
<div className="space-x-3 flex justify-center">
|
|
215
226
|
<Button
|
|
216
227
|
appearance="outlined"
|
|
217
|
-
onClick={() => {
|
|
228
|
+
onClick={(e) => {
|
|
229
|
+
e.stopPropagation();
|
|
218
230
|
setRemoveAddressModalOpen(false);
|
|
219
231
|
}}
|
|
220
232
|
data-testid="remove-address-modal-cancel"
|
|
@@ -224,7 +236,8 @@ const AddressBox = ({
|
|
|
224
236
|
<Button
|
|
225
237
|
appearance="filled"
|
|
226
238
|
disabled={removeAddressLoading}
|
|
227
|
-
onClick={() => {
|
|
239
|
+
onClick={(e) => {
|
|
240
|
+
e.stopPropagation();
|
|
228
241
|
handleRemoveAddress(address.pk);
|
|
229
242
|
}}
|
|
230
243
|
className={
|
|
@@ -77,7 +77,7 @@ const Addresses = () => {
|
|
|
77
77
|
}, [billing_and_shipping_same]);
|
|
78
78
|
|
|
79
79
|
const onSubmit = (data) => {
|
|
80
|
-
addAddress({ ...data, invalidateTag: '
|
|
80
|
+
addAddress({ ...data, invalidateTag: 'Checkout' })
|
|
81
81
|
.unwrap()
|
|
82
82
|
.then((addAddressResponse) => {
|
|
83
83
|
if (addressList.length === 0) {
|