sonic-widget 1.38.0 → 1.40.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.
Files changed (3) hide show
  1. package/README.md +6 -6
  2. package/dist/index.js +1910 -1893
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  Use this script tag to get access to the widget:
6
6
 
7
7
  ```html
8
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.38.0/dist/index.min.js"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.40.0/dist/index.min.js"></script>
9
9
  ```
10
10
 
11
11
  or
@@ -32,7 +32,7 @@ and adding path in `angular.json`
32
32
  2. Use this script tag to get access to the widget at initial html page:
33
33
 
34
34
  ```html
35
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.38.0/dist/index.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.40.0/dist/index.min.js"></script>
36
36
  ```
37
37
 
38
38
  or
@@ -72,8 +72,8 @@ ngOnInit(): void {
72
72
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
73
73
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
74
74
  accountId: string, // account can be taken from operator axiom account
75
- userId: string, // user prospective data
76
75
  userName: string, // user prospective data
76
+ userId: string, // user document number to identity
77
77
  email: string, // user prospective data
78
78
  phone: string, // user prospective data
79
79
  applicationNo: string, // user prospective data
@@ -113,7 +113,7 @@ ngOnInit(): void {
113
113
  4. Add a Script tag to the head tag or body tag. And use the latest version.
114
114
 
115
115
  ```html
116
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.38.0/dist/index.min.js"></script>
116
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.40.0/dist/index.min.js"></script>
117
117
  ```
118
118
 
119
119
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -126,8 +126,8 @@ ngOnInit(): void {
126
126
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
127
127
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
128
128
  accountId: string, // account can be taken from operator axiom account
129
- userId: string, // user prospective data
130
129
  userName: string, // user prospective data
130
+ userId: string, // user document number to identity
131
131
  email: string, // user prospective data
132
132
  phone: string, // user prospective data
133
133
  applicationNo: string, // user prospective data
@@ -153,9 +153,9 @@ _Here, the config variable is used to pass the data. And the container variable
153
153
  - _**`ipInfoKey`** should pass as a string value. It is used to detect whether vpn is used or not from "ipInfo.io" with this api key._
154
154
  - _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
155
155
  - _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
156
- - _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc._
157
156
  - _**`isMalay`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget default language english or malay._
158
157
  - _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
158
+ - _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc and to compare your identity with the document._
159
159
  - _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
160
160
  - _**`phone`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
161
161
  - _**`applicationNo`** should pass as a string value. It is used to create an application for onboard sonic kyc._