sonic-widget 2.5.8 → 2.6.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.
- package/README.md +7 -3
- package/dist/index.js +1350 -1350
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
Use this script tag to get access to the widget:
|
|
13
13
|
|
|
14
14
|
```html
|
|
15
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.
|
|
15
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.0/dist/index.min.js"></script>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
or
|
|
@@ -39,7 +39,7 @@ and adding path in `angular.json`
|
|
|
39
39
|
2. Use this script tag to get access to the widget at initial html page:
|
|
40
40
|
|
|
41
41
|
```html
|
|
42
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.
|
|
42
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.0/dist/index.min.js"></script>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
or
|
|
@@ -80,6 +80,8 @@ ngOnInit(): void {
|
|
|
80
80
|
faceModelUrl: string, // the face model url of the face recognition process
|
|
81
81
|
handModelUrl: string, // the hand model url of the hand recognition process
|
|
82
82
|
objectModelUrl: string, // the object model url of the object recognition process
|
|
83
|
+
ipInfoKey: string,
|
|
84
|
+
googleMapKey: string,
|
|
83
85
|
showPage: boolean, // used to show the page or not
|
|
84
86
|
speedCheckURL: string, // public URL of the internet speed check
|
|
85
87
|
videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
|
|
@@ -231,7 +233,7 @@ it can be added in `angular.json` by installing the npm package
|
|
|
231
233
|
4. Add a Script tag to the head tag or body tag. And use the latest version.
|
|
232
234
|
|
|
233
235
|
```html
|
|
234
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.
|
|
236
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.6.0/dist/index.min.js"></script>
|
|
235
237
|
```
|
|
236
238
|
|
|
237
239
|
5. Next, add the script tag at a necessary place. But add below the widget script.
|
|
@@ -245,6 +247,8 @@ it can be added in `angular.json` by installing the npm package
|
|
|
245
247
|
faceModelUrl: string, // the face model url of the face recognition process
|
|
246
248
|
handModelUrl: string, // the hand model url of the hand recognition process
|
|
247
249
|
objectModelUrl: string, // the object model url of the object recognition process
|
|
250
|
+
ipInfoKey: string,
|
|
251
|
+
googleMapKey: string,
|
|
248
252
|
showPage: boolean, // used to show the page or not
|
|
249
253
|
speedCheckURL: string, // public URL of the internet speed check
|
|
250
254
|
videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
|