sonic-widget 1.26.0 → 1.27.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 +19 -19
  2. package/dist/index.js +1094 -1094
  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.26.0/dist/index.min.js"></script>
8
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.27.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.26.0/dist/index.min.js"></script>
35
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.27.0/dist/index.min.js"></script>
36
36
  ```
37
37
 
38
38
  or
@@ -64,22 +64,22 @@ declare var sonic: any;
64
64
  6. Next, add the functionality to call widget in the base of onInit.
65
65
 
66
66
  ```ts
67
- ngOnInit(): void {
68
-
69
- const config = {
70
- baseurl: string, // the base url of the backend server
71
- showPage: boolean, // used to show the page or not
72
- ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
73
- videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
74
- accountId: string, // account can be taken from operator axiom account
75
- userId: string, // user prospective data
76
- userName: string, // user prospective data
77
- email: string, // user prospective data
78
- phone: string, // user prospective data
79
- applicationNo: string, // user prospective data
80
- isMalay: boolean, //used to change the default language english to malay
81
- onMessage: function (data) {}, // callback function, when api response message or error or any other actions
82
- };
67
+ ngOnInit(): void {
68
+
69
+ const config = {
70
+ baseurl: string, // the base url of the backend server
71
+ showPage: boolean, // used to show the page or not
72
+ ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
73
+ videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
74
+ accountId: string, // account can be taken from operator axiom account
75
+ userId: string, // user prospective data
76
+ userName: string, // user prospective data
77
+ email: string, // user prospective data
78
+ phone: string, // user prospective data
79
+ applicationNo: string, // user prospective data
80
+ isMalay: boolean, //used to change the default language english to malay
81
+ onMessage: function (data) {}, // callback function, when api response message or error or any other actions
82
+ };
83
83
 
84
84
  // get the element used in the action button
85
85
  var container = document.getElementById('xxxx');
@@ -113,7 +113,7 @@ declare var sonic: any;
113
113
  4. Add a Script tag to the head tag or body tag. And use the latest version.
114
114
 
115
115
  ```html
116
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.26.0/dist/index.min.js"></script>
116
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@1.27.0/dist/index.min.js"></script>
117
117
  ```
118
118
 
119
119
  5. Next, add the script tag at a necessary place. But add below the widget script.