@akinon/pz-masterpass 1.32.0-rc.2 → 1.32.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 CHANGED
@@ -1,14 +1,8 @@
1
1
  # @akinon/pz-masterpass
2
2
 
3
- ## 1.32.0-rc.2
3
+ ## 1.32.0
4
4
 
5
- ## 1.32.0-rc.1
6
-
7
- ### Minor Changes
8
-
9
- - f3b595e: ZERO-2523: fix otp modal re-open state problem
10
-
11
- ## 1.32.0-rc.0
5
+ ## 1.31.1
12
6
 
13
7
  ## 1.31.0
14
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-masterpass",
3
- "version": "1.32.0-rc.2",
3
+ "version": "1.32.0",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.d.ts",
@@ -10,7 +10,7 @@ import { formCreator } from '../../utils';
10
10
  import CountdownTimer from '../countdown-timer/countdown-timer';
11
11
  import { OtpForm, OtpFormProps, defaultTranslations } from './otp-form';
12
12
  import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
13
- import { setOtpModalVisible, setOtpResponse } from '../../redux/reducer';
13
+ import { setOtpResponse } from '../../redux/reducer';
14
14
  import { Image } from '@akinon/next/components/image';
15
15
 
16
16
  export interface MasterpassOtpModalProps {
@@ -97,10 +97,6 @@ export const MasterpassOtpModal = ({
97
97
  setOtpTime(otpTimeout + nowInMs);
98
98
  };
99
99
 
100
- const handleModalVisibility = (visibility: boolean) => {
101
- dispatch(setOtpModalVisible(visibility));
102
- };
103
-
104
100
  useEffect(() => {
105
101
  setIsModalOpen(otp.isModalVisible);
106
102
  }, [otp.isModalVisible]);
@@ -123,7 +119,7 @@ export const MasterpassOtpModal = ({
123
119
  />
124
120
  }
125
121
  open={isModalOpen}
126
- setOpen={handleModalVisibility}
122
+ setOpen={setIsModalOpen}
127
123
  className="w-full sm:w-[28rem] max-h-[90vh] overflow-y-auto"
128
124
  >
129
125
  <div className="px-6 py-4">