@akinon/projectzero 1.84.0 → 1.85.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 +2 -0
- package/app-template/CHANGELOG.md +28 -0
- package/app-template/package.json +18 -18
- package/app-template/src/views/otp-login/index.tsx +12 -14
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.85.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a0a1bac: ZERO-3228 :edit OTP login flow to use Redux for popup visibility and clean up unused props
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [a0a1bac]
|
|
12
|
+
- Updated dependencies [4167dcd]
|
|
13
|
+
- Updated dependencies [0b1bd07]
|
|
14
|
+
- @akinon/pz-otp@1.85.0
|
|
15
|
+
- @akinon/next@1.85.0
|
|
16
|
+
- @akinon/pz-akifast@1.85.0
|
|
17
|
+
- @akinon/pz-b2b@1.85.0
|
|
18
|
+
- @akinon/pz-basket-gift-pack@1.85.0
|
|
19
|
+
- @akinon/pz-bkm@1.85.0
|
|
20
|
+
- @akinon/pz-checkout-gift-pack@1.85.0
|
|
21
|
+
- @akinon/pz-click-collect@1.85.0
|
|
22
|
+
- @akinon/pz-credit-payment@1.85.0
|
|
23
|
+
- @akinon/pz-gpay@1.85.0
|
|
24
|
+
- @akinon/pz-masterpass@1.85.0
|
|
25
|
+
- @akinon/pz-one-click-checkout@1.85.0
|
|
26
|
+
- @akinon/pz-pay-on-delivery@1.85.0
|
|
27
|
+
- @akinon/pz-saved-card@1.85.0
|
|
28
|
+
- @akinon/pz-tabby-extension@1.85.0
|
|
29
|
+
- @akinon/pz-tamara-extension@1.85.0
|
|
30
|
+
|
|
3
31
|
## 1.84.0
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.85.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"prestart": "pz-prestart"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@akinon/next": "1.
|
|
26
|
-
"@akinon/pz-akifast": "1.
|
|
27
|
-
"@akinon/pz-b2b": "1.
|
|
28
|
-
"@akinon/pz-basket-gift-pack": "1.
|
|
29
|
-
"@akinon/pz-bkm": "1.
|
|
30
|
-
"@akinon/pz-checkout-gift-pack": "1.
|
|
31
|
-
"@akinon/pz-click-collect": "1.
|
|
32
|
-
"@akinon/pz-credit-payment": "1.
|
|
33
|
-
"@akinon/pz-gpay": "1.
|
|
34
|
-
"@akinon/pz-masterpass": "1.
|
|
35
|
-
"@akinon/pz-one-click-checkout": "1.
|
|
36
|
-
"@akinon/pz-otp": "1.
|
|
37
|
-
"@akinon/pz-pay-on-delivery": "1.
|
|
38
|
-
"@akinon/pz-saved-card": "1.
|
|
39
|
-
"@akinon/pz-tabby-extension": "1.
|
|
40
|
-
"@akinon/pz-tamara-extension": "1.
|
|
25
|
+
"@akinon/next": "1.85.0",
|
|
26
|
+
"@akinon/pz-akifast": "1.85.0",
|
|
27
|
+
"@akinon/pz-b2b": "1.85.0",
|
|
28
|
+
"@akinon/pz-basket-gift-pack": "1.85.0",
|
|
29
|
+
"@akinon/pz-bkm": "1.85.0",
|
|
30
|
+
"@akinon/pz-checkout-gift-pack": "1.85.0",
|
|
31
|
+
"@akinon/pz-click-collect": "1.85.0",
|
|
32
|
+
"@akinon/pz-credit-payment": "1.85.0",
|
|
33
|
+
"@akinon/pz-gpay": "1.85.0",
|
|
34
|
+
"@akinon/pz-masterpass": "1.85.0",
|
|
35
|
+
"@akinon/pz-one-click-checkout": "1.85.0",
|
|
36
|
+
"@akinon/pz-otp": "1.85.0",
|
|
37
|
+
"@akinon/pz-pay-on-delivery": "1.85.0",
|
|
38
|
+
"@akinon/pz-saved-card": "1.85.0",
|
|
39
|
+
"@akinon/pz-tabby-extension": "1.85.0",
|
|
40
|
+
"@akinon/pz-tamara-extension": "1.85.0",
|
|
41
41
|
"@hookform/resolvers": "2.9.0",
|
|
42
42
|
"@next/third-parties": "14.1.0",
|
|
43
43
|
"@react-google-maps/api": "2.17.1",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"yup": "0.32.11"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@akinon/eslint-plugin-projectzero": "1.
|
|
65
|
+
"@akinon/eslint-plugin-projectzero": "1.85.0",
|
|
66
66
|
"@semantic-release/changelog": "6.0.2",
|
|
67
67
|
"@semantic-release/exec": "6.0.3",
|
|
68
68
|
"@semantic-release/git": "10.0.1",
|
|
@@ -10,9 +10,10 @@ import { yupResolver } from '@hookform/resolvers/yup';
|
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
import { useLocalization } from '@akinon/next/hooks';
|
|
12
12
|
import { useOtpLoginMutation } from '@akinon/next/data/client/user';
|
|
13
|
-
import { useAppSelector } from '@akinon/next/redux/hooks';
|
|
13
|
+
import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
|
|
14
14
|
import PluginModule, { Component } from '@akinon/next/components/plugin-module';
|
|
15
15
|
import { AuthError } from '@akinon/next/types';
|
|
16
|
+
import { showPopup } from '@akinon/pz-otp/src/redux/reducer';
|
|
16
17
|
|
|
17
18
|
const loginFormSchema = (t) =>
|
|
18
19
|
yup.object().shape({
|
|
@@ -25,9 +26,9 @@ const loginFormSchema = (t) =>
|
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
export const OtpLogin = () => {
|
|
29
|
+
const dispatch = useAppDispatch();
|
|
28
30
|
const { user_phone_format } = useAppSelector((state) => state.config);
|
|
29
31
|
const { t, locale } = useLocalization();
|
|
30
|
-
const [showOtpModal, setShowOtpModal] = useState(false);
|
|
31
32
|
const [otpLoginMutation] = useOtpLoginMutation();
|
|
32
33
|
|
|
33
34
|
const {
|
|
@@ -79,7 +80,7 @@ export const OtpLogin = () => {
|
|
|
79
80
|
})
|
|
80
81
|
.unwrap()
|
|
81
82
|
.then(() => {
|
|
82
|
-
|
|
83
|
+
dispatch(showPopup());
|
|
83
84
|
})
|
|
84
85
|
.catch((error) => {
|
|
85
86
|
if (error.status === 429) {
|
|
@@ -136,17 +137,14 @@ export const OtpLogin = () => {
|
|
|
136
137
|
</Button>
|
|
137
138
|
</form>
|
|
138
139
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}}
|
|
148
|
-
/>
|
|
149
|
-
)}
|
|
140
|
+
<PluginModule
|
|
141
|
+
component={Component.Otp}
|
|
142
|
+
props={{
|
|
143
|
+
data: getValues(),
|
|
144
|
+
submitAction: loginHandler,
|
|
145
|
+
error: formError
|
|
146
|
+
}}
|
|
147
|
+
/>
|
|
150
148
|
</section>
|
|
151
149
|
);
|
|
152
150
|
};
|