sonic-widget 1.0.1 → 1.0.2
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 +3 -7
- package/dist/index.js +1304 -1304
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
## Installation:
|
|
2
2
|
|
|
3
|
-
**Sonic Widget** - _used to show the
|
|
3
|
+
**Sonic Widget** - _used to show the onboard kyc at your web page itself._
|
|
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.0.
|
|
7
|
+
**_`<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.0.2/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.0.
|
|
30
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.0.2/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.
|
|
@@ -37,9 +37,7 @@ Use this script tag to get access to the widget.
|
|
|
37
37
|
const config = {
|
|
38
38
|
baseurl: string, // the base url of the backend server
|
|
39
39
|
showPage: boolean, // used to show the page or not
|
|
40
|
-
changeToPopup: boolean, // widget shows by popup modal default is false
|
|
41
40
|
ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io"
|
|
42
|
-
readyApiKey: string, // api key to detect passive liveliness from "ReadyApi"
|
|
43
41
|
accountId: string, // account can be taken from operator axiom account
|
|
44
42
|
userId: string, // user prospective data
|
|
45
43
|
userName: string, // user prospective data
|
|
@@ -64,9 +62,7 @@ _Here, the config variable is used to pass the data. And the container variable
|
|
|
64
62
|
|
|
65
63
|
- _**`baseurl`** should pass as a string value. It is used as the base URL for API calls._
|
|
66
64
|
- _**`showPage`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget page open or close._
|
|
67
|
-
- _**`changeToPopup`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget as a popup or inline page._
|
|
68
65
|
- _**`ipInfoKey`** should pass as a string value. It is used to detect vpn used or not from "ipInfo.io" with this api key._
|
|
69
|
-
- _**`readyApiKey`** should pass as a string value. It is used to detect passive liveliness from "ReadyApi" with this api key._
|
|
70
66
|
- _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
|
|
71
67
|
- _**`userId`** should pass as a string value. It is used to create a application for onboard sonic kyc._
|
|
72
68
|
- _**`userName`** should pass as a string value. It is used to create a application for onboard sonic kyc._
|