sonic-widget 2.2.1 → 2.2.2

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 CHANGED
@@ -16,7 +16,7 @@
16
16
  Use this script tag to get access to the widget:
17
17
 
18
18
  ```html
19
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.2.1/dist/index.min.js"></script>
19
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.2.2/dist/index.min.js"></script>
20
20
  ```
21
21
 
22
22
  or
@@ -43,7 +43,7 @@ and adding path in `angular.json`
43
43
  2. Use this script tag to get access to the widget at initial html page:
44
44
 
45
45
  ```html
46
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.2.1/dist/index.min.js"></script>
46
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.2.2/dist/index.min.js"></script>
47
47
  ```
48
48
 
49
49
  or
@@ -81,7 +81,6 @@ ngOnInit(): void {
81
81
  baseurl: string, // the base url of the backend server
82
82
  docModelUrl: string, // the doc model url of the document recognition process
83
83
  maskModelUrl: string, // the mask model url of the mask detect process
84
- serviceWorkerPath: string, // the service worker path
85
84
  showPage: boolean, // used to show the page or not
86
85
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
87
86
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
@@ -131,7 +130,7 @@ ngOnInit(): void {
131
130
  4. Add a Script tag to the head tag or body tag. And use the latest version.
132
131
 
133
132
  ```html
134
- <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.2.1/dist/index.min.js"></script>
133
+ <script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.2.2/dist/index.min.js"></script>
135
134
  ```
136
135
 
137
136
  5. Next, add the script tag at a necessary place. But add below the widget script.
@@ -142,7 +141,6 @@ ngOnInit(): void {
142
141
  baseurl: string, // the base url of the backend server
143
142
  docModelUrl: string, // the doc model url of the document recognition process
144
143
  maskModelUrl: string, // the mask model url of the mask detect process
145
- serviceWorkerPath: string, // the service worker path
146
144
  showPage: boolean, // used to show the page or not
147
145
  ipInfoKey: string, // api key to detect vpn used or not from "ipInfo.io" (Optional)
148
146
  videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
@@ -186,8 +184,8 @@ Check with **`data.code`**_
186
184
 
187
185
  **Note:-**
188
186
 
187
+ <!-- - _**`serviceWorkerPath`** should pass as a string value. It is used as the service worker path and its default path is **`/demo-app/assets/service-worker.js`** and Cache name should be different to fix conflict._ -->
189
188
  - _**`baseurl`** should pass as a string value. It is used as the base URL for API calls._
190
- - _**`serviceWorkerPath`** should pass as a string value. It is used as the service worker path and its default path is **`/demo-app/assets/service-worker.js`** and Cache name should be different to fix conflict._
191
189
  - _**`docModelUrl`** should pass as a string value. It is used as the base URL for document model._
192
190
  - _**`maskModelUrl`** should pass as a string value. It is used as the base URL for mask model._
193
191
  - _**`showPage`** is used to pass a boolean value ( **`true`** or **`false`** ). To toggle the widget page open or close._