@techlabi/kycrazy-ui-kit 0.63.0-beta.2 → 0.64.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 +12 -0
- package/README.md +3 -1
- package/dist/index.es.js +5298 -5296
- package/dist/index.umd.js +32 -32
- package/dist/types/types.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ function App() {
|
|
|
59
59
|
'business_license',
|
|
60
60
|
'void_cheque',
|
|
61
61
|
]} // optional
|
|
62
|
+
onInit={(requestId: string, status: 'inProgress') => {}} // optional
|
|
62
63
|
onComplete={(token: string, data: KYCRequestData | KYBRequestData) => {}}
|
|
63
64
|
onDoneClick={() => {}}
|
|
64
65
|
/>
|
|
@@ -73,7 +74,7 @@ function App() {
|
|
|
73
74
|
| ----------------------- | --------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
74
75
|
| `apiEndpoint` | `string` | - | no | provide backend API endpoint where the data will be posted upon KYC verification flow |
|
|
75
76
|
| `apiKey` | `string` | - | no | provide API key to access backend |
|
|
76
|
-
| `appIntegrationKey` | `string` | - | yes | Optional app integration key (`app_key`) used to associate the KYC/KYB request with a specific app integration
|
|
77
|
+
| `appIntegrationKey` | `string` | - | yes | Optional app integration key (`app_key`) used to associate the KYC/KYB request with a specific app integration |
|
|
77
78
|
| `isKYB` | `boolean` | false | yes | use in KYB mode |
|
|
78
79
|
| `userEmail` | `string` | - | yes | Email of the user undergoing KYC/KYB verification |
|
|
79
80
|
| `userId` | `string` | - | no | Unique identifier of the user to save the progress |
|
|
@@ -81,5 +82,6 @@ function App() {
|
|
|
81
82
|
| `hideCompanyActivity` | `boolean` | false | yes | hide the company activity (KYB mode) section |
|
|
82
83
|
| `hideQuestionary` | `boolean` | false | yes | hide the questionnaire section (KYB mode) |
|
|
83
84
|
| `companyDocumentsTypes` | `Array<string>` | - | yes | Optional list of company document uppload fields for KYB: <br>`bank_statement`, `company_structure`, `certificate_of_registration`, `business_license`, `void_cheque` <br> If prop is not used then all of the fields will be shown |
|
|
85
|
+
| `onInit` | `function` | - | yes | Called once when the empty KYC/KYB request is first created. Receives the request ID (`token`) and the status `'inProgress'`. Use this to persist the request ID in your app before any form data is submitted |
|
|
84
86
|
| `onComplete` | `function` | - | no | A callback function once the request successfully reached the backend |
|
|
85
87
|
| `onDoneClick` | `function` | - | yes | A callback function once a user clicked on button on final screen |
|