sonic-widget 1.0.2 → 1.0.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.
- package/README.md +8 -8
- package/dist/index.js +1492 -1492
- 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.0.
|
|
7
|
+
**_`<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.0.3/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.3/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.
|
|
@@ -62,11 +62,11 @@ _Here, the config variable is used to pass the data. And the container variable
|
|
|
62
62
|
|
|
63
63
|
- _**`baseurl`** should pass as a string value. It is used as the base URL for API calls._
|
|
64
64
|
- _**`showPage`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget page open or close._
|
|
65
|
-
- _**`ipInfoKey`** should pass as a string value. It is used to detect vpn used or not from "ipInfo.io" with this api key._
|
|
65
|
+
- _**`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._
|
|
66
66
|
- _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
|
|
67
|
-
- _**`userId`** should pass as a string value. It is used to create
|
|
68
|
-
- _**`userName`** should pass as a string value. It is used to create
|
|
69
|
-
- _**`email`** should pass as a string value. It is used to create
|
|
70
|
-
- _**`phone`** should pass as a string value. It is used to create
|
|
71
|
-
- _**`applicationNo`** should pass as a string value. It is used to create
|
|
67
|
+
- _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
68
|
+
- _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
69
|
+
- _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
|
|
70
|
+
- _**`phone`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._
|
|
71
|
+
- _**`applicationNo`** should pass as a string value. It is used to create an application for onboard sonic kyc._
|
|
72
72
|
- _**`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._
|