sonic-widget 2.2.7 → 2.3.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.
@@ -11,12 +11,10 @@ const urlsToCache = [
11
11
  "https://teachablemachine.withgoogle.com/models/_08Yck2dy/model.json",
12
12
  "https://teachablemachine.withgoogle.com/models/_08Yck2dy/metadata.json",
13
13
 
14
- // blazeface
15
- 'https://tfhub.dev/tensorflow/tfjs-model/blazeface/1/default/1/model.json?tfjs-format=file',
16
-
17
- // handpose model
18
- "https://tfhub.dev/mediapipe/tfjs-model/handpose_3d/detector/full/1/model.json?tfjs-format=file",
19
- "https://tfhub.dev/mediapipe/tfjs-model/handpose_3d/landmark/full/1/model.json?tfjs-format=file"
14
+ // holistic model
15
+ "https://cdn.jsdelivr.net/npm/@mediapipe/holistic@0.5.1675471629/holistic.binarypb",
16
+ "https://cdn.jsdelivr.net/npm/@mediapipe/holistic@0.5.1675471629/holistic_solution_packed_assets.data",
17
+ "https://cdn.jsdelivr.net/npm/@mediapipe/holistic@0.5.1675471629/pose_landmark_full.tflite"
20
18
  // Add more model files if necessary
21
19
  ];
22
20
 
@@ -32,7 +30,7 @@ self.addEventListener('install', function(event) {
32
30
  });
33
31
 
34
32
  self.addEventListener('fetch', function(event) {
35
-
33
+ const request = event.request;
36
34
  // Skip caching for requests from browser extensions
37
35
  if (request.url.startsWith('chrome-extension://')) {
38
36
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonic-widget",
3
- "version": "2.2.7",
3
+ "version": "2.3.0",
4
4
  "description": "Sonic widget library for doing E-KYC",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -14,24 +14,23 @@
14
14
  "build": "vite build",
15
15
  "preview": "vite preview"
16
16
  },
17
-
18
17
  "dependencies": {
19
18
  "@emotion/react": "^11.10.4",
20
19
  "@emotion/styled": "^11.10.4",
21
20
  "@fingerprintjs/fingerprintjs": "3.4.1",
22
21
  "@mediapipe/face_mesh": "^0.4.1633559619",
23
22
  "@mediapipe/hands": "^0.4.1675469240",
23
+ "@mediapipe/holistic": "^0.5.1675471629",
24
24
  "@mui/icons-material": "^5.14.1",
25
25
  "@mui/lab": "^5.0.0-alpha.128",
26
26
  "@mui/material": "^5.14.2",
27
27
  "@teachablemachine/image": "^0.8.5",
28
- "@tensorflow-models/blazeface": "^0.0.7",
29
28
  "@tensorflow-models/coco-ssd": "^2.2.3",
30
29
  "@tensorflow-models/face-landmarks-detection": "^1.0.5",
31
- "@tensorflow-models/facemesh": "^0.0.5",
32
30
  "@tensorflow-models/hand-pose-detection": "^2.0.1",
33
31
  "@tensorflow/tfjs": "^4.15.0",
34
32
  "@tensorflow/tfjs-backend-cpu": "^4.15.0",
33
+ "@tensorflow/tfjs-backend-webgl": "^4.15.0",
35
34
  "@tensorflow/tfjs-converter": "^4.15.0",
36
35
  "@tensorflow/tfjs-core": "^4.15.0",
37
36
  "axios": "1.6.4",