sonic-widget 2.7.3 → 2.7.5
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 +8 -4
- package/dist/index.js +1517 -1517
- package/package.json +2 -1
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.7.
|
|
15
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.7.5/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.7.
|
|
42
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.7.5/dist/index.min.js"></script>
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
or
|
|
@@ -82,6 +82,8 @@ ngOnInit(): void {
|
|
|
82
82
|
objectModelUrl: string, // the object model url of the object recognition process
|
|
83
83
|
ipInfoKey: string,
|
|
84
84
|
googleMapKey: string,
|
|
85
|
+
googleCaptchaKey: string,
|
|
86
|
+
passphrase: string,
|
|
85
87
|
showPage: boolean, // used to show the page or not
|
|
86
88
|
speedCheckURL: string, // public URL of the internet speed check
|
|
87
89
|
videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
|
|
@@ -236,7 +238,7 @@ it can be added in `angular.json` by installing the npm package
|
|
|
236
238
|
4. Add a Script tag to the head tag or body tag. And use the latest version.
|
|
237
239
|
|
|
238
240
|
```html
|
|
239
|
-
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.7.
|
|
241
|
+
<script src="https://cdn.jsdelivr.net/npm/sonic-widget@2.7.5/dist/index.min.js"></script>
|
|
240
242
|
```
|
|
241
243
|
|
|
242
244
|
5. Next, add the script tag at a necessary place. But add below the widget script.
|
|
@@ -252,6 +254,8 @@ it can be added in `angular.json` by installing the npm package
|
|
|
252
254
|
objectModelUrl: string, // the object model url of the object recognition process
|
|
253
255
|
ipInfoKey: string,
|
|
254
256
|
googleMapKey: string,
|
|
257
|
+
googleCaptchaKey: string,
|
|
258
|
+
passphrase: string,
|
|
255
259
|
showPage: boolean, // used to show the page or not
|
|
256
260
|
speedCheckURL: string, // public URL of the internet speed check
|
|
257
261
|
videoURL: string, // url of video to do (e.g: demo doing kyc) (Optional)
|
|
@@ -343,7 +347,7 @@ VITE_APP_COCO_SSD_OBJECT_URL="https://storage.googleapis.com/tfjs-models/savedmo
|
|
|
343
347
|
VITE_APP_TASK_VISION_WASM_PATH="https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision/wasm"
|
|
344
348
|
VITE_APP_TASK_VISION_FACE_URL="https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task"
|
|
345
349
|
VITE_APP_TASK_VISION_HAND_URL="https://storage.googleapis.com/mediapipe-models/hand_landmarker/hand_landmarker/float16/1/hand_landmarker.task"
|
|
346
|
-
|
|
350
|
+
VITE_APP_DEFAULT_PASS_PHRASE=""
|
|
347
351
|
VITE_APP_THIRD_PARTY_GET_IP_URL="https://ipv4.icanhazip.com"
|
|
348
352
|
-->
|
|
349
353
|
|