sonic-widget 1.27.0 → 1.28.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 +13 -4
  2. package/dist/index.js +1867 -1867
  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.27.0/dist/index.min.js"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.28.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.27.0/dist/index.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.28.0/dist/index.min.js"></script>
36
36
  ```
37
37
 
38
38
  or
@@ -71,6 +71,9 @@ 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)
74
77
  accountId: string, // account can be taken from operator axiom account
75
78
  userId: string, // user prospective data
76
79
  userName: string, // user prospective data
@@ -113,7 +116,7 @@ ngOnInit(): void {
113
116
  4. Add a Script tag to the head tag or body tag. And use the latest version.
114
117
 
115
118
  ```html
116
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.27.0/dist/index.min.js"></script>
119
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.28.0/dist/index.min.js"></script>
117
120
  ```
118
121
 
119
122
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -125,6 +128,9 @@ ngOnInit(): void {
125
128
  showPage: boolean, // used to show the page or not
126
129
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
127
130
  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)
128
134
  accountId: string, // account can be taken from operator axiom account
129
135
  userId: string, // user prospective data
130
136
  userName: string, // user prospective data
@@ -151,8 +157,11 @@ _Here, the config variable is used to pass the data. And the container variable
151
157
  - _**`baseurl`** should pass as a string value. It is used as the base URL for API calls._
152
158
  - _**`showPage`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget page open or close._
153
159
  - _**`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._
154
- - _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
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._
155
163
  - _**`videoURL`** should pass as a string value as url. It is used to show the video onboard sonic kyc._
164
+ - _**`accountId`** should pass as a string value. It is used to get the JWT token and proceed with the operator account._
156
165
  - _**`userId`** should pass as a string value. It is used to create an application for onboard sonic kyc._
157
166
  - _**`isMalay`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget default language english or malay._
158
167
  - _**`userName`** should pass as a string value. It is used to create an application for onboard sonic kyc._