sonic-widget 1.18.0 → 1.19.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/README.md +4 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Use this script tag to get access to the widget.
|
|
6
6
|
|
|
7
|
-
**_`<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.
|
|
7
|
+
**_`<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.19.0/dist/index.min.js"></script>`_**
|
|
8
8
|
|
|
9
9
|
## Implementation:
|
|
10
10
|
|
|
@@ -27,7 +27,7 @@ Use this script tag to get access to the widget.
|
|
|
27
27
|
4. Add a Script tag to the head tag or body tag. And use the latest version.
|
|
28
28
|
|
|
29
29
|
```html
|
|
30
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.
|
|
30
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.19.0/dist/index.min.js"></script>
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
5. Next, add the script tag at a necessary place. But add below the widget script.
|
|
@@ -45,6 +45,7 @@ Use this script tag to get access to the widget.
|
|
|
45
45
|
email: string, // user prospective data
|
|
46
46
|
phone: string, // user prospective data
|
|
47
47
|
applicationNo: string, // user prospective data
|
|
48
|
+
isMalay: boolean, //used to change the default language english to malay
|
|
48
49
|
onMessage: function (data) {}, // callback function, when api response message or error or any other actions
|
|
49
50
|
};
|
|
50
51
|
// get the element used in the action button
|
|
@@ -67,6 +68,7 @@ _Here, the config variable is used to pass the data. And the container variable
|
|
|
67
68
|
- _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
|
|
68
69
|
- _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
|
|
69
70
|
- _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
71
|
+
- _**`isMalay`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget default language english or malay._
|
|
70
72
|
- _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
71
73
|
- _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
|
|
72
74
|
- _**`phone`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
|