sonic-widget 1.53.71 → 1.53.72
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/README.md +6 -3
- package/dist/index.js +1446 -1446
- 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.53.
|
|
8
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.53.72/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.53.
|
|
35
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.53.72/dist/index.min.js"></script>
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
or
|
|
@@ -81,6 +81,7 @@ ngOnInit(): void {
|
|
|
81
81
|
applicationNo: string, // user prospective data
|
|
82
82
|
isMalay: boolean, //used to change the default language english to malay
|
|
83
83
|
branchId: string, //used to identify the bank branch
|
|
84
|
+
sendLogsToDev: boolean, //used to send logs to backend
|
|
84
85
|
onMessage: function (data) {}, // callback function, when api response message or error or any other actions
|
|
85
86
|
};
|
|
86
87
|
|
|
@@ -116,7 +117,7 @@ ngOnInit(): void {
|
|
|
116
117
|
4. Add a Script tag to the head tag or body tag. And use the latest version.
|
|
117
118
|
|
|
118
119
|
```html
|
|
119
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.53.
|
|
120
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.53.72/dist/index.min.js"></script>
|
|
120
121
|
```
|
|
121
122
|
|
|
122
123
|
5. Next, add the script tag at a necessary place. But add below the widget script.
|
|
@@ -138,6 +139,7 @@ ngOnInit(): void {
|
|
|
138
139
|
applicationNo: string, // user prospective data
|
|
139
140
|
isMalay: boolean, //used to change the default language english to malay
|
|
140
141
|
branchId: string, // branch id to identify the branch of the bank
|
|
142
|
+
sendLogsToDev: boolean, //used to send logs to backend
|
|
141
143
|
onMessage: function (data) {}, // callback function, when api response message or error or any other actions
|
|
142
144
|
};
|
|
143
145
|
// get the element used in the action button
|
|
@@ -181,4 +183,5 @@ Check with **`data.code`**_
|
|
|
181
183
|
- _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
182
184
|
- _**`phone`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
183
185
|
- _**`applicationNo`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
186
|
+
- _**`sendLogsToDev`** is used to pass a boolean value. It is used to send logs to backend services._
|
|
184
187
|
- _**`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._
|