sonic-widget 1.0.9 → 1.5.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 +4 -2
  2. package/dist/index.js +2754 -2696
  3. package/package.json +2 -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.9/dist/index.min.js"></script>`_**
7
+ **_`<script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.5.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.0.9/dist/index.min.js"></script>
30
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.5.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.
@@ -38,6 +38,7 @@ Use this script tag to get access to the widget.
38
38
  baseurl: string, // the base url of the backend server
39
39
  showPage: boolean, // used to show the page or not
40
40
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io"
41
+ videoURL: string, // url of video to do (e.g: demo)
41
42
  accountId: string, // account can be taken from operator axiom account
42
43
  userId: string, // user prospective data
43
44
  userName: string, // user prospective data
@@ -64,6 +65,7 @@ _Here, the config variable is used to pass the data. And the container variable
64
65
  - _**`showPage`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget page open or close._
65
66
  - _**`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
67
  - _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
68
+ - _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
67
69
  - _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc._
68
70
  - _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._
69
71
  - _**`email`** should pass as a string value. It is used to create an application for onboard sonic kyc and it is optional._