@akinon/pz-otp 1.92.0-rc.9 → 1.92.0-snapshot-ZERO-3449-20250618101111
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 +1 -42
- package/package.json +1 -1
- package/readme.md +4 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,50 +1,9 @@
|
|
|
1
1
|
# @akinon/pz-otp
|
|
2
2
|
|
|
3
|
-
## 1.92.0-
|
|
4
|
-
|
|
5
|
-
## 1.92.0-rc.8
|
|
6
|
-
|
|
7
|
-
## 1.92.0-rc.7
|
|
8
|
-
|
|
9
|
-
## 1.91.0-rc.6
|
|
10
|
-
|
|
11
|
-
## 1.91.0-rc.5
|
|
12
|
-
|
|
13
|
-
## 1.91.0-rc.4
|
|
14
|
-
|
|
15
|
-
### Minor Changes
|
|
16
|
-
|
|
17
|
-
- 7eb51ca: ZERO-3424 :Update package versions
|
|
18
|
-
- ae010f0: ZERO-3410: Update readme
|
|
19
|
-
|
|
20
|
-
<<<<<<< HEAD
|
|
21
|
-
|
|
22
|
-
## 1.91.0-rc.3
|
|
23
|
-
|
|
24
|
-
### Minor Changes
|
|
25
|
-
|
|
26
|
-
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
27
|
-
- e974d8e8: ZERO-3406: Fix rc build
|
|
28
|
-
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
29
|
-
- 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
|
|
30
|
-
|
|
31
|
-
## 1.91.0-rc.2
|
|
32
|
-
|
|
33
|
-
## 1.91.0-rc.1
|
|
34
|
-
|
|
35
|
-
## 1.91.0-rc.0
|
|
36
|
-
|
|
37
|
-
### Minor Changes
|
|
38
|
-
|
|
39
|
-
- 64699d3f: ZERO-2761: Fix invalid import for plugin module
|
|
40
|
-
- e974d8e: ZERO-3406: Fix rc build
|
|
41
|
-
- 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
|
|
42
|
-
- # 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
|
|
3
|
+
## 1.92.0-snapshot-ZERO-3449-20250618101111
|
|
43
4
|
|
|
44
5
|
## 1.91.0
|
|
45
6
|
|
|
46
|
-
> > > > > > > origin/ZERO-3418
|
|
47
|
-
|
|
48
7
|
## 1.90.0
|
|
49
8
|
|
|
50
9
|
### Minor Changes
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -12,29 +12,13 @@ npx @akinon/projectzero@latest --plugins
|
|
|
12
12
|
|
|
13
13
|
### Props
|
|
14
14
|
|
|
15
|
-
| Property | Type |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| `customUIRender` | `React.ReactNode` |
|
|
18
|
-
| `submitAction` | `SubmitHandler<{ [key: string]: any }>` | `Required` | A submit handler function triggered when OTP form is submitted. |
|
|
19
|
-
| `data` | `{ [key: string]: any }` | `Required` | Data object containing required fields like phone number. OTP code will be appended here before submission |
|
|
20
|
-
|
|
21
|
-
### Default Usage
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import PluginModule, { Component } from '@akinon/next/components/plugin-module';
|
|
25
|
-
|
|
26
|
-
<PluginModule
|
|
27
|
-
component={Component.Otp}
|
|
28
|
-
props={{
|
|
29
|
-
data: getValues(),
|
|
30
|
-
submitAction: registerHandler
|
|
31
|
-
}}
|
|
32
|
-
/>;
|
|
33
|
-
```
|
|
15
|
+
| Property | Type | Description |
|
|
16
|
+
| --- | --- | --- |
|
|
17
|
+
| `customUIRender` | `React.ReactNode` | Optional function to fully customize the otp. Receives closeHandler, resendHandler, otp, setOtp, hasError, error, canResend, time, codeLength, setHasError and onSubmit props. |
|
|
34
18
|
|
|
35
19
|
### Customizing OTP
|
|
36
20
|
|
|
37
|
-
```
|
|
21
|
+
```javascript
|
|
38
22
|
import PluginModule, { Component } from '@akinon/next/components/plugin-module';
|
|
39
23
|
|
|
40
24
|
<PluginModule
|