@akinon/projectzero 2.0.0-beta.14 → 2.0.0-beta.16
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 +83 -0
- package/app-template/package.json +28 -28
- 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/[pz]/users/reset/[[...id]]/page.tsx +45 -3
- package/app-template/src/components/select.tsx +1 -1
- package/app-template/src/views/account/orders/order-detail-header.tsx +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.16
|
|
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
|
+
- Updated dependencies [823d82f9]
|
|
13
|
+
- Updated dependencies [d2c0e759]
|
|
14
|
+
- Updated dependencies [d35e8ac1]
|
|
15
|
+
- Updated dependencies [68bbcb27]
|
|
16
|
+
- Updated dependencies [9b7d0de6]
|
|
17
|
+
- Updated dependencies [2e436c13]
|
|
18
|
+
- Updated dependencies [9cfbf6cd]
|
|
19
|
+
- Updated dependencies [187208d2]
|
|
20
|
+
- Updated dependencies [5ec0faf8]
|
|
21
|
+
- @akinon/next@2.0.0-beta.16
|
|
22
|
+
- @akinon/pz-bkm@2.0.0-beta.16
|
|
23
|
+
- @akinon/pz-gpay@2.0.0-beta.16
|
|
24
|
+
- @akinon/pz-akifast@2.0.0-beta.16
|
|
25
|
+
- @akinon/pz-virtual-try-on@2.0.0-beta.16
|
|
26
|
+
- @akinon/pz-apple-pay@2.0.0-beta.16
|
|
27
|
+
- @akinon/pz-b2b@2.0.0-beta.16
|
|
28
|
+
- @akinon/pz-basket-gift-pack@2.0.0-beta.16
|
|
29
|
+
- @akinon/pz-checkout-gift-pack@2.0.0-beta.16
|
|
30
|
+
- @akinon/pz-click-collect@2.0.0-beta.16
|
|
31
|
+
- @akinon/pz-credit-payment@2.0.0-beta.16
|
|
32
|
+
- @akinon/pz-cybersource-uc@2.0.0-beta.16
|
|
33
|
+
- @akinon/pz-flow-payment@2.0.0-beta.16
|
|
34
|
+
- @akinon/pz-google-pay@2.0.0-beta.16
|
|
35
|
+
- @akinon/pz-haso@2.0.0-beta.16
|
|
36
|
+
- @akinon/pz-hepsipay@2.0.0-beta.16
|
|
37
|
+
- @akinon/pz-masterpass@2.0.0-beta.16
|
|
38
|
+
- @akinon/pz-masterpass-rest@2.0.0-beta.16
|
|
39
|
+
- @akinon/pz-multi-basket@2.0.0-beta.16
|
|
40
|
+
- @akinon/pz-one-click-checkout@2.0.0-beta.16
|
|
41
|
+
- @akinon/pz-otp@2.0.0-beta.16
|
|
42
|
+
- @akinon/pz-pay-on-delivery@2.0.0-beta.16
|
|
43
|
+
- @akinon/pz-saved-card@2.0.0-beta.16
|
|
44
|
+
- @akinon/pz-similar-products@2.0.0-beta.16
|
|
45
|
+
- @akinon/pz-tabby-extension@2.0.0-beta.16
|
|
46
|
+
- @akinon/pz-tamara-extension@2.0.0-beta.16
|
|
47
|
+
|
|
48
|
+
## 2.0.0-beta.15
|
|
49
|
+
|
|
50
|
+
### Minor Changes
|
|
51
|
+
|
|
52
|
+
- b59fdd1c: ZERO-4009: Add password reset token validation
|
|
53
|
+
|
|
54
|
+
### Patch Changes
|
|
55
|
+
|
|
56
|
+
- Updated dependencies [49c82e1a]
|
|
57
|
+
- Updated dependencies [d7e5178b]
|
|
58
|
+
- Updated dependencies [b59fdd1c]
|
|
59
|
+
- @akinon/next@2.0.0-beta.15
|
|
60
|
+
- @akinon/pz-virtual-try-on@2.0.0-beta.15
|
|
61
|
+
- @akinon/pz-akifast@2.0.0-beta.15
|
|
62
|
+
- @akinon/pz-apple-pay@2.0.0-beta.15
|
|
63
|
+
- @akinon/pz-b2b@2.0.0-beta.15
|
|
64
|
+
- @akinon/pz-basket-gift-pack@2.0.0-beta.15
|
|
65
|
+
- @akinon/pz-bkm@2.0.0-beta.15
|
|
66
|
+
- @akinon/pz-checkout-gift-pack@2.0.0-beta.15
|
|
67
|
+
- @akinon/pz-click-collect@2.0.0-beta.15
|
|
68
|
+
- @akinon/pz-credit-payment@2.0.0-beta.15
|
|
69
|
+
- @akinon/pz-cybersource-uc@2.0.0-beta.15
|
|
70
|
+
- @akinon/pz-flow-payment@2.0.0-beta.15
|
|
71
|
+
- @akinon/pz-google-pay@2.0.0-beta.15
|
|
72
|
+
- @akinon/pz-gpay@2.0.0-beta.15
|
|
73
|
+
- @akinon/pz-haso@2.0.0-beta.15
|
|
74
|
+
- @akinon/pz-hepsipay@2.0.0-beta.15
|
|
75
|
+
- @akinon/pz-masterpass@2.0.0-beta.15
|
|
76
|
+
- @akinon/pz-masterpass-rest@2.0.0-beta.15
|
|
77
|
+
- @akinon/pz-multi-basket@2.0.0-beta.15
|
|
78
|
+
- @akinon/pz-one-click-checkout@2.0.0-beta.15
|
|
79
|
+
- @akinon/pz-otp@2.0.0-beta.15
|
|
80
|
+
- @akinon/pz-pay-on-delivery@2.0.0-beta.15
|
|
81
|
+
- @akinon/pz-saved-card@2.0.0-beta.15
|
|
82
|
+
- @akinon/pz-similar-products@2.0.0-beta.15
|
|
83
|
+
- @akinon/pz-tabby-extension@2.0.0-beta.15
|
|
84
|
+
- @akinon/pz-tamara-extension@2.0.0-beta.15
|
|
85
|
+
|
|
3
86
|
## 2.0.0-beta.14
|
|
4
87
|
|
|
5
88
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.16",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -24,32 +24,32 @@
|
|
|
24
24
|
"test:middleware": "jest middleware-matcher.test.ts --bail"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@akinon/next": "2.0.0-beta.
|
|
28
|
-
"@akinon/pz-akifast": "2.0.0-beta.
|
|
29
|
-
"@akinon/pz-apple-pay": "2.0.0-beta.
|
|
30
|
-
"@akinon/pz-b2b": "2.0.0-beta.
|
|
31
|
-
"@akinon/pz-basket-gift-pack": "2.0.0-beta.
|
|
32
|
-
"@akinon/pz-bkm": "2.0.0-beta.
|
|
33
|
-
"@akinon/pz-checkout-gift-pack": "2.0.0-beta.
|
|
34
|
-
"@akinon/pz-click-collect": "2.0.0-beta.
|
|
35
|
-
"@akinon/pz-credit-payment": "2.0.0-beta.
|
|
36
|
-
"@akinon/pz-cybersource-uc": "2.0.0-beta.
|
|
37
|
-
"@akinon/pz-flow-payment": "2.0.0-beta.
|
|
38
|
-
"@akinon/pz-google-pay": "2.0.0-beta.
|
|
39
|
-
"@akinon/pz-gpay": "2.0.0-beta.
|
|
40
|
-
"@akinon/pz-haso": "2.0.0-beta.
|
|
41
|
-
"@akinon/pz-hepsipay": "2.0.0-beta.
|
|
42
|
-
"@akinon/pz-masterpass": "2.0.0-beta.
|
|
43
|
-
"@akinon/pz-masterpass-rest": "2.0.0-beta.
|
|
44
|
-
"@akinon/pz-multi-basket": "2.0.0-beta.
|
|
45
|
-
"@akinon/pz-one-click-checkout": "2.0.0-beta.
|
|
46
|
-
"@akinon/pz-otp": "2.0.0-beta.
|
|
47
|
-
"@akinon/pz-pay-on-delivery": "2.0.0-beta.
|
|
48
|
-
"@akinon/pz-saved-card": "2.0.0-beta.
|
|
49
|
-
"@akinon/pz-similar-products": "2.0.0-beta.
|
|
50
|
-
"@akinon/pz-tabby-extension": "2.0.0-beta.
|
|
51
|
-
"@akinon/pz-tamara-extension": "2.0.0-beta.
|
|
52
|
-
"@akinon/pz-virtual-try-on": "2.0.0-beta.
|
|
27
|
+
"@akinon/next": "2.0.0-beta.16",
|
|
28
|
+
"@akinon/pz-akifast": "2.0.0-beta.16",
|
|
29
|
+
"@akinon/pz-apple-pay": "2.0.0-beta.16",
|
|
30
|
+
"@akinon/pz-b2b": "2.0.0-beta.16",
|
|
31
|
+
"@akinon/pz-basket-gift-pack": "2.0.0-beta.16",
|
|
32
|
+
"@akinon/pz-bkm": "2.0.0-beta.16",
|
|
33
|
+
"@akinon/pz-checkout-gift-pack": "2.0.0-beta.16",
|
|
34
|
+
"@akinon/pz-click-collect": "2.0.0-beta.16",
|
|
35
|
+
"@akinon/pz-credit-payment": "2.0.0-beta.16",
|
|
36
|
+
"@akinon/pz-cybersource-uc": "2.0.0-beta.16",
|
|
37
|
+
"@akinon/pz-flow-payment": "2.0.0-beta.16",
|
|
38
|
+
"@akinon/pz-google-pay": "2.0.0-beta.16",
|
|
39
|
+
"@akinon/pz-gpay": "2.0.0-beta.16",
|
|
40
|
+
"@akinon/pz-haso": "2.0.0-beta.16",
|
|
41
|
+
"@akinon/pz-hepsipay": "2.0.0-beta.16",
|
|
42
|
+
"@akinon/pz-masterpass": "2.0.0-beta.16",
|
|
43
|
+
"@akinon/pz-masterpass-rest": "2.0.0-beta.16",
|
|
44
|
+
"@akinon/pz-multi-basket": "2.0.0-beta.16",
|
|
45
|
+
"@akinon/pz-one-click-checkout": "2.0.0-beta.16",
|
|
46
|
+
"@akinon/pz-otp": "2.0.0-beta.16",
|
|
47
|
+
"@akinon/pz-pay-on-delivery": "2.0.0-beta.16",
|
|
48
|
+
"@akinon/pz-saved-card": "2.0.0-beta.16",
|
|
49
|
+
"@akinon/pz-similar-products": "2.0.0-beta.16",
|
|
50
|
+
"@akinon/pz-tabby-extension": "2.0.0-beta.16",
|
|
51
|
+
"@akinon/pz-tamara-extension": "2.0.0-beta.16",
|
|
52
|
+
"@akinon/pz-virtual-try-on": "2.0.0-beta.16",
|
|
53
53
|
"@hookform/resolvers": "2.9.0",
|
|
54
54
|
"@next/third-parties": "16.1.6",
|
|
55
55
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"yup": "0.32.11"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@akinon/eslint-plugin-projectzero": "2.0.0-beta.
|
|
75
|
+
"@akinon/eslint-plugin-projectzero": "2.0.0-beta.16",
|
|
76
76
|
"@semantic-release/changelog": "6.0.2",
|
|
77
77
|
"@semantic-release/exec": "6.0.3",
|
|
78
78
|
"@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",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { Button, Input, Link } from '@theme/components';
|
|
3
|
+
import { Button, Input, Link, LoaderSpinner } from '@theme/components';
|
|
4
4
|
import { useForm, SubmitHandler } from 'react-hook-form';
|
|
5
5
|
import { yupResolver } from '@hookform/resolvers/yup';
|
|
6
6
|
import * as yup from 'yup';
|
|
7
7
|
import {
|
|
8
8
|
usePasswordResetMutation,
|
|
9
|
+
useGetValidatePasswordResetTokenQuery,
|
|
9
10
|
PasswordResetType
|
|
10
11
|
} from '@akinon/next/data/client/account';
|
|
11
12
|
import { useLocalization } from '@akinon/next/hooks';
|
|
@@ -17,6 +18,16 @@ export default function NewPassword() {
|
|
|
17
18
|
const { t } = useLocalization();
|
|
18
19
|
const [newPassword, { isSuccess: formSuccess }] = usePasswordResetMutation();
|
|
19
20
|
|
|
21
|
+
const token = id?.join('/');
|
|
22
|
+
|
|
23
|
+
const {
|
|
24
|
+
data: validationData,
|
|
25
|
+
isLoading: isValidating,
|
|
26
|
+
error: validationError
|
|
27
|
+
} = useGetValidatePasswordResetTokenQuery(token, {
|
|
28
|
+
skip: !token
|
|
29
|
+
});
|
|
30
|
+
|
|
20
31
|
const newPasswordFormSchema = (t) =>
|
|
21
32
|
yup.object().shape({
|
|
22
33
|
password: yup
|
|
@@ -26,7 +37,10 @@ export default function NewPassword() {
|
|
|
26
37
|
/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{6,}$/,
|
|
27
38
|
t('forgot_password.create_new_password.form.error.password_rule')
|
|
28
39
|
)
|
|
29
|
-
.max(
|
|
40
|
+
.max(
|
|
41
|
+
50,
|
|
42
|
+
t('forgot_password.create_new_password.form.error.password_max')
|
|
43
|
+
),
|
|
30
44
|
repeatPassword: yup
|
|
31
45
|
.string()
|
|
32
46
|
.required(t('forgot_password.create_new_password.form.error.required'))
|
|
@@ -47,6 +61,31 @@ export default function NewPassword() {
|
|
|
47
61
|
newPassword(data);
|
|
48
62
|
};
|
|
49
63
|
|
|
64
|
+
if (isValidating) {
|
|
65
|
+
return (
|
|
66
|
+
<div className="container my-12 flex flex-col items-center px-4">
|
|
67
|
+
<div className="w-full xl:w-5/12 text-center">
|
|
68
|
+
<LoaderSpinner />
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (validationError || !validationData?.validlink) {
|
|
75
|
+
return (
|
|
76
|
+
<div className="container my-12 flex flex-col items-center px-4">
|
|
77
|
+
<div className="w-full xl:w-5/12 text-center">
|
|
78
|
+
<div className="text-2xl mb-4 text-error">
|
|
79
|
+
{t('account.password_reset.expired_link_message')}
|
|
80
|
+
</div>
|
|
81
|
+
<Link href="/users/password/reset" className="underline text-primary">
|
|
82
|
+
{t('account.password_reset.continue_password_reset')}
|
|
83
|
+
</Link>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
50
89
|
return (
|
|
51
90
|
<div className="container my-12 flex flex-col items-center px-4">
|
|
52
91
|
<div className="w-full xl:w-5/12 text-center">
|
|
@@ -81,7 +120,10 @@ export default function NewPassword() {
|
|
|
81
120
|
required
|
|
82
121
|
/>
|
|
83
122
|
|
|
84
|
-
<PasswordRulesFeedback
|
|
123
|
+
<PasswordRulesFeedback
|
|
124
|
+
password={passwordValue}
|
|
125
|
+
isVisible={errors?.password ? true : false}
|
|
126
|
+
/>
|
|
85
127
|
</div>
|
|
86
128
|
|
|
87
129
|
<div className="mb-2 text-left">
|
|
@@ -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
|
|