@akinon/projectzero 1.82.0-rc.2 → 1.82.0-rc.4
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 +48 -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,53 @@
|
|
|
1
1
|
# projectzeronext
|
|
2
2
|
|
|
3
|
+
## 1.82.0-rc.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b6e5b624]
|
|
8
|
+
- @akinon/next@1.82.0-rc.4
|
|
9
|
+
- @akinon/pz-akifast@1.82.0-rc.4
|
|
10
|
+
- @akinon/pz-b2b@1.82.0-rc.4
|
|
11
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.4
|
|
12
|
+
- @akinon/pz-bkm@1.82.0-rc.4
|
|
13
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.4
|
|
14
|
+
- @akinon/pz-click-collect@1.82.0-rc.4
|
|
15
|
+
- @akinon/pz-credit-payment@1.82.0-rc.4
|
|
16
|
+
- @akinon/pz-gpay@1.82.0-rc.4
|
|
17
|
+
- @akinon/pz-masterpass@1.82.0-rc.4
|
|
18
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.4
|
|
19
|
+
- @akinon/pz-otp@1.82.0-rc.4
|
|
20
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.4
|
|
21
|
+
- @akinon/pz-saved-card@1.82.0-rc.4
|
|
22
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.4
|
|
23
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.4
|
|
24
|
+
|
|
25
|
+
## 1.82.0-rc.3
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- a0a1bac4: ZERO-3228 :edit OTP login flow to use Redux for popup visibility and clean up unused props
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- Updated dependencies [a0a1bac4]
|
|
34
|
+
- @akinon/pz-otp@1.82.0-rc.3
|
|
35
|
+
- @akinon/next@1.82.0-rc.3
|
|
36
|
+
- @akinon/pz-akifast@1.82.0-rc.3
|
|
37
|
+
- @akinon/pz-b2b@1.82.0-rc.3
|
|
38
|
+
- @akinon/pz-basket-gift-pack@1.82.0-rc.3
|
|
39
|
+
- @akinon/pz-bkm@1.82.0-rc.3
|
|
40
|
+
- @akinon/pz-checkout-gift-pack@1.82.0-rc.3
|
|
41
|
+
- @akinon/pz-click-collect@1.82.0-rc.3
|
|
42
|
+
- @akinon/pz-credit-payment@1.82.0-rc.3
|
|
43
|
+
- @akinon/pz-gpay@1.82.0-rc.3
|
|
44
|
+
- @akinon/pz-masterpass@1.82.0-rc.3
|
|
45
|
+
- @akinon/pz-one-click-checkout@1.82.0-rc.3
|
|
46
|
+
- @akinon/pz-pay-on-delivery@1.82.0-rc.3
|
|
47
|
+
- @akinon/pz-saved-card@1.82.0-rc.3
|
|
48
|
+
- @akinon/pz-tabby-extension@1.82.0-rc.3
|
|
49
|
+
- @akinon/pz-tamara-extension@1.82.0-rc.3
|
|
50
|
+
|
|
3
51
|
## 1.82.0-rc.2
|
|
4
52
|
|
|
5
53
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "projectzeronext",
|
|
3
|
-
"version": "1.82.0-rc.
|
|
3
|
+
"version": "1.82.0-rc.4",
|
|
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.82.0-rc.
|
|
26
|
-
"@akinon/pz-akifast": "1.82.0-rc.
|
|
27
|
-
"@akinon/pz-b2b": "1.82.0-rc.
|
|
28
|
-
"@akinon/pz-basket-gift-pack": "1.82.0-rc.
|
|
29
|
-
"@akinon/pz-bkm": "1.82.0-rc.
|
|
30
|
-
"@akinon/pz-checkout-gift-pack": "1.82.0-rc.
|
|
31
|
-
"@akinon/pz-click-collect": "1.82.0-rc.
|
|
32
|
-
"@akinon/pz-credit-payment": "1.82.0-rc.
|
|
33
|
-
"@akinon/pz-gpay": "1.82.0-rc.
|
|
34
|
-
"@akinon/pz-masterpass": "1.82.0-rc.
|
|
35
|
-
"@akinon/pz-one-click-checkout": "1.82.0-rc.
|
|
36
|
-
"@akinon/pz-otp": "1.82.0-rc.
|
|
37
|
-
"@akinon/pz-pay-on-delivery": "1.82.0-rc.
|
|
38
|
-
"@akinon/pz-saved-card": "1.82.0-rc.
|
|
39
|
-
"@akinon/pz-tabby-extension": "1.82.0-rc.
|
|
40
|
-
"@akinon/pz-tamara-extension": "1.82.0-rc.
|
|
25
|
+
"@akinon/next": "1.82.0-rc.4",
|
|
26
|
+
"@akinon/pz-akifast": "1.82.0-rc.4",
|
|
27
|
+
"@akinon/pz-b2b": "1.82.0-rc.4",
|
|
28
|
+
"@akinon/pz-basket-gift-pack": "1.82.0-rc.4",
|
|
29
|
+
"@akinon/pz-bkm": "1.82.0-rc.4",
|
|
30
|
+
"@akinon/pz-checkout-gift-pack": "1.82.0-rc.4",
|
|
31
|
+
"@akinon/pz-click-collect": "1.82.0-rc.4",
|
|
32
|
+
"@akinon/pz-credit-payment": "1.82.0-rc.4",
|
|
33
|
+
"@akinon/pz-gpay": "1.82.0-rc.4",
|
|
34
|
+
"@akinon/pz-masterpass": "1.82.0-rc.4",
|
|
35
|
+
"@akinon/pz-one-click-checkout": "1.82.0-rc.4",
|
|
36
|
+
"@akinon/pz-otp": "1.82.0-rc.4",
|
|
37
|
+
"@akinon/pz-pay-on-delivery": "1.82.0-rc.4",
|
|
38
|
+
"@akinon/pz-saved-card": "1.82.0-rc.4",
|
|
39
|
+
"@akinon/pz-tabby-extension": "1.82.0-rc.4",
|
|
40
|
+
"@akinon/pz-tamara-extension": "1.82.0-rc.4",
|
|
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.82.0-rc.
|
|
65
|
+
"@akinon/eslint-plugin-projectzero": "1.82.0-rc.4",
|
|
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
|
};
|