sonic-widget 1.50.2 → 1.51.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 +9 -3
  2. package/dist/index.js +9577 -9547
  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.50.2/dist/index.min.js"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.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.50.2/dist/index.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.0/dist/index.min.js"></script>
36
36
  ```
37
37
 
38
38
  or
@@ -73,12 +73,14 @@ 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
77
  userName: string, // user prospective data
77
78
  userId: string, // user document number to identity
78
79
  email: string, // user prospective data
79
80
  phone: string, // user prospective data
80
81
  applicationNo: string, // user prospective data
81
82
  isMalay: boolean, //used to change the default language english to malay
83
+ branchId: string, //used to identify the bank branch
82
84
  onMessage: function (data) {}, // callback function, when api response message or error or any other actions
83
85
  };
84
86
 
@@ -114,7 +116,7 @@ ngOnInit(): void {
114
116
  4. Add a Script tag to the head tag or body tag. And use the latest version.
115
117
 
116
118
  ```html
117
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.50.2/dist/index.min.js"></script>
119
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.51.0/dist/index.min.js"></script>
118
120
  ```
119
121
 
120
122
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -127,6 +129,7 @@ ngOnInit(): void {
127
129
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
128
130
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
129
131
  appId: string, // application policy identifier
132
+ appName: string, // representing name of the application
130
133
  accountId: string, // account can be taken from operator axiom account
131
134
  userName: string, // user prospective data
132
135
  userId: string, // user document number to identity
@@ -134,6 +137,7 @@ ngOnInit(): void {
134
137
  phone: string, // user prospective data
135
138
  applicationNo: string, // user prospective data
136
139
  isMalay: boolean, //used to change the default language english to malay
140
+ branchId: string, // branch id to identify the branch of the bank
137
141
  onMessage: function (data) {}, // callback function, when api response message or error or any other actions
138
142
  };
139
143
  // get the element used in the action button
@@ -169,7 +173,9 @@ Check with **`data.code`**_
169
173
  - _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
170
174
  - _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
171
175
  - _**`isMalay`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget default language english or malay._
176
+ - _**`branchId`** should pass as a string value. It is used to find bank branch available for operator account for onboard sonic kyc._
172
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._
173
179
  - _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
174
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._
175
181
  - _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._