@techlabi/kycrazy-ui-kit 0.44.0 → 0.46.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 +14 -0
- package/README.md +19 -9
- package/dist/index.es.js +33391 -31443
- package/dist/index.umd.js +387 -377
- package/dist/style.css +1 -1
- package/dist/types/components/CameraShotStep.d.ts +2 -2
- package/dist/types/components/operations/finaliseKYB.d.ts +23 -0
- package/dist/types/components/operations/updateSection.d.ts +6 -0
- package/dist/types/components/steps/ProcessingStep.d.ts +1 -1
- package/dist/types/components/steps/kyb/BusinessAddressStep.d.ts +1 -1
- package/dist/types/components/steps/kyb/BusinessInformationStep.d.ts +1 -1
- package/dist/types/components/steps/kyb/CompanyActivityStep.d.ts +1 -1
- package/dist/types/components/steps/kyb/CompanyDocumentsStep.d.ts +1 -1
- package/dist/types/components/steps/kyb/PersonalDetailsStep.d.ts +17 -2
- package/dist/types/components/steps/kyb/QuestionaryStep.d.ts +1 -1
- package/dist/types/components/steps/kyc/NameStep.d.ts +8 -5
- package/dist/types/components/ui/Loading.d.ts +1 -0
- package/dist/types/types.d.ts +3 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.46.0
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- Add email field to KYB
|
|
8
|
+
- Display unfinished requests in the dashboard
|
|
9
|
+
|
|
10
|
+
## 0.45.0
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- Save KYB progress
|
|
15
|
+
- Add loading when validating images
|
|
16
|
+
|
|
3
17
|
## 0.44.0
|
|
4
18
|
|
|
5
19
|
### Features
|
package/README.md
CHANGED
|
@@ -45,9 +45,14 @@ function App() {
|
|
|
45
45
|
apiKey="ak_test_0987654321zyxwvutsrqponmlkjihgfedcba"
|
|
46
46
|
apiEndpoint="http://localhost:8080"
|
|
47
47
|
isKYB={true}
|
|
48
|
+
userEmail={user.email};
|
|
49
|
+
userId={user.id};
|
|
50
|
+
fullName={user.fullName} // optional
|
|
51
|
+
hideCompanyActivity={true}; // optional
|
|
52
|
+
hideQuestionary={true}; // optional
|
|
53
|
+
companyDocumentsTypes={['bank_statement', 'company_structure', 'certificate_of_registration','business_license']} // optional
|
|
48
54
|
onComplete={(token: string, data: KYCRequestData | KYBRequestData) => {}}
|
|
49
55
|
onDoneClick={() => {}}
|
|
50
|
-
userEmail={user.email}
|
|
51
56
|
/>
|
|
52
57
|
</div>
|
|
53
58
|
);
|
|
@@ -56,11 +61,16 @@ function App() {
|
|
|
56
61
|
|
|
57
62
|
## 🎨 Props
|
|
58
63
|
|
|
59
|
-
| Prop
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
64
|
+
| Prop | Type | Default | Optional | Description |
|
|
65
|
+
| ----------------------- | --------------- | ------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
66
|
+
| `apiEndpoint` | `string` | - | no | provide backend API endpoint where the data will be posted upon KYC verification flow |
|
|
67
|
+
| `apiKey` | `string` | - | no | provide API key to access backend |
|
|
68
|
+
| `isKYB` | `boolean` | false | yes | use in KYB mode |
|
|
69
|
+
| `userEmail` | `string` | - | yes | Email of the user undergoing KYC/KYB verification |
|
|
70
|
+
| `userId` | `string` | - | no | Unique identifier of the user to save the progress |
|
|
71
|
+
| `fullName` | `string` | - | yes | optional full name of the user (will be autocompleted in the KYC flow) |
|
|
72
|
+
| `hideCompanyActivity` | `boolean` | false | yes | hide the company activity (KYB mode) section |
|
|
73
|
+
| `hideQuestionary` | `boolean` | false | yes | hide the questionnaire section (KYB mode) |
|
|
74
|
+
| `companyDocumentsTypes` | `Array<string>` | - | yes | Optional list of company document uppload fields for KYB: <br>`bank_statement`, `company_structure`, `certificate_of_registration`, `business_license` <br> If prop is not used then all of the fields will be shown |
|
|
75
|
+
| `onComplete` | `function` | - | no | A callback function once the request successfully reached the backend |
|
|
76
|
+
| `onDoneClick` | `function` | - | yes | A callback function once a user clicked on button on final screen |
|