@techlabi/kycrazy-ui-kit 0.43.0 → 0.45.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,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.45.0
4
+
5
+ ### Features
6
+
7
+ - Save KYB progress
8
+ - Add loading when validating images
9
+
10
+ ## 0.44.0
11
+
12
+ ### Features
13
+
14
+ - Change Company Documents step to acceps multiple documents and make fields configurable via props
15
+
3
16
  ## 0.43.0
4
17
 
5
18
  ### 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 | Type | Default | Description |
60
- | ------------- | ---------- | ------- | ------------------------------------------------------------------------------------- |
61
- | |
62
- | `apiEndpoint` | `string` | - | provide backend API endpoint where the data will be posted upon KYC verification flow |
63
- | `apiKey` | `string` | - | provide API key to access backend |
64
- | `isKYB` | `boolean` | false | use in KYB mode |
65
- | `onComplete` | `function` | - | A callback function once the request successfully reached the backend |
66
- | `onDoneClick` | `function` | - | A callback function once a user clicked on button on final screen |
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` | - | no | 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 |