sonic-widget 1.28.0 → 1.30.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 +3 -12
  2. package/dist/index.js +2025 -2025
  3. 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.28.0/dist/index.min.js"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.30.0/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.28.0/dist/index.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.30.0/dist/index.min.js"></script>
36
36
  ```
37
37
 
38
38
  or
@@ -71,9 +71,6 @@ ngOnInit(): void {
71
71
  showPage: boolean, // used to show the page or not
72
72
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
73
73
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
74
- logo: string, // to change the logo (Optional)
75
- primaryColor: string, // to change the primary color (Optional)
76
- buttonColor: string, // to change the button color (Optional)
77
74
  accountId: string, // account can be taken from operator axiom account
78
75
  userId: string, // user prospective data
79
76
  userName: string, // user prospective data
@@ -116,7 +113,7 @@ ngOnInit(): void {
116
113
  4. Add a Script tag to the head tag or body tag. And use the latest version.
117
114
 
118
115
  ```html
119
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.28.0/dist/index.min.js"></script>
116
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.30.0/dist/index.min.js"></script>
120
117
  ```
121
118
 
122
119
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -128,9 +125,6 @@ ngOnInit(): void {
128
125
  showPage: boolean, // used to show the page or not
129
126
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
130
127
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
131
- logo: string, // to change the logo (Optional)
132
- primaryColor: string, // to change the primary color (Optional)
133
- buttonColor: string, // to change the button color (Optional)
134
128
  accountId: string, // account can be taken from operator axiom account
135
129
  userId: string, // user prospective data
136
130
  userName: string, // user prospective data
@@ -157,9 +151,6 @@ _Here, the config variable is used to pass the data. And the container variable
157
151
  - _**`baseurl`** should pass as a string value. It is used as the base URL for API calls._
158
152
  - _**`showPage`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget page open or close._
159
153
  - _**`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._
160
- - _**`logo`** should pass as a image for src key. It is used to show the onboard logo._
161
- - _**`primaryColor`** should pass as a primary color. It is used for the icons and every other items._
162
- - _**`buttonColor`** should pass as a button color. It is used for the buttons taking actions._
163
154
  - _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
164
155
  - _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
165
156
  - _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc._