sonic-widget 1.51.2 → 1.51.3

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 +10 -10
  2. package/dist/index.js +2280 -2280
  3. package/package.json +1 -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.51.2/dist/index.min.js"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.3/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.51.2/dist/index.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.3/dist/index.min.js"></script>
36
36
  ```
37
37
 
38
38
  or
@@ -73,7 +73,7 @@ ngOnInit(): void {
73
73
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
74
74
  appId: string, // application policy identifier
75
75
  accountId: string, // account can be taken from operator axiom account
76
- appName: string, // representing name of the application
76
+ appName: string, // representing name of the application (Optional)
77
77
  userName: string, // user prospective data
78
78
  userId: string, // user document number to identity
79
79
  email: string, // user prospective data
@@ -116,7 +116,7 @@ ngOnInit(): void {
116
116
  4. Add a Script tag to the head tag or body tag. And use the latest version.
117
117
 
118
118
  ```html
119
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.2/dist/index.min.js"></script>
119
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.3/dist/index.min.js"></script>
120
120
  ```
121
121
 
122
122
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -129,7 +129,7 @@ ngOnInit(): void {
129
129
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
130
130
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
131
131
  appId: string, // application policy identifier
132
- appName: string, // representing name of the application
132
+ appName: string, // representing name of the application (Optional)
133
133
  accountId: string, // account can be taken from operator axiom account
134
134
  userName: string, // user prospective data
135
135
  userId: string, // user document number to identity
@@ -169,16 +169,16 @@ Check with **`data.code`**_
169
169
 
170
170
  - _**`baseurl`** should pass as a string value. It is used as the base URL for API calls._
171
171
  - _**`showPage`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget page open or close._
172
- - _**`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._
173
- - _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
172
+ - _**`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 and it is optional._
173
+ - _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc and it is optional._
174
174
  - _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
175
175
  - _**`isMalay`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget default language english or malay._
176
176
  - _**`branchId`** should pass as a string value. It is used to find bank branch available for operator account for onboard sonic kyc._
177
177
  - _**`appId`** should pass as a string value. It is used to find an application policy for onboard sonic kyc._
178
- - _**`appName`** should pass as a string value. It is used for onboard kyc application name. default it is Sonic._
178
+ - _**`appName`** should pass as a string value. It is used for onboard kyc application name. it is optional and default **`Sonic`** ._
179
179
  - _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
180
180
  - _**`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._
181
- - _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
182
- - _**`phone`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
181
+ - _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc._
182
+ - _**`phone`** should pass as a string value. It is used to create an application for onboard sonic kyc._
183
183
  - _**`applicationNo`** should pass as a string value. It is used to create an application for onboard sonic kyc._
184
184
  - _**`onMessage`** is a callback function. It is getting called when the API gives a message or at any configuration error. Return data is an object with its API endpoint and result._