@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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.82.0-rc.4
4
+
5
+ ## 1.82.0-rc.3
6
+
3
7
  ## 1.82.0-rc.2
4
8
 
5
9
  ### Minor Changes
@@ -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.2",
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.2",
26
- "@akinon/pz-akifast": "1.82.0-rc.2",
27
- "@akinon/pz-b2b": "1.82.0-rc.2",
28
- "@akinon/pz-basket-gift-pack": "1.82.0-rc.2",
29
- "@akinon/pz-bkm": "1.82.0-rc.2",
30
- "@akinon/pz-checkout-gift-pack": "1.82.0-rc.2",
31
- "@akinon/pz-click-collect": "1.82.0-rc.2",
32
- "@akinon/pz-credit-payment": "1.82.0-rc.2",
33
- "@akinon/pz-gpay": "1.82.0-rc.2",
34
- "@akinon/pz-masterpass": "1.82.0-rc.2",
35
- "@akinon/pz-one-click-checkout": "1.82.0-rc.2",
36
- "@akinon/pz-otp": "1.82.0-rc.2",
37
- "@akinon/pz-pay-on-delivery": "1.82.0-rc.2",
38
- "@akinon/pz-saved-card": "1.82.0-rc.2",
39
- "@akinon/pz-tabby-extension": "1.82.0-rc.2",
40
- "@akinon/pz-tamara-extension": "1.82.0-rc.2",
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.2",
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
- setShowOtpModal(true);
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
- {showOtpModal && (
140
- <PluginModule
141
- component={Component.Otp}
142
- props={{
143
- setShowPopup: setShowOtpModal,
144
- data: getValues(),
145
- submitAction: loginHandler,
146
- error: formError
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.82.0-rc.2",
3
+ "version": "1.82.0-rc.4",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {