truescene-face-id-capture-sdk 1.0.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 +77 -0
- package/dist/_redirects +3 -0
- package/dist/components/FaceAndIdCapture.js +628 -0
- package/dist/index.js +26005 -0
- package/dist/sdk/CaptureExperience.js +241 -0
- package/dist/sdk/element.js +221 -0
- package/dist/sdk/react/index.js +125 -0
- package/dist/sdk/styles.js +2 -0
- package/dist/sdk/types.js +1 -0
- package/dist/types/components/FaceAndIdCapture.d.ts +47 -0
- package/dist/types/sdk/CaptureExperience.d.ts +26 -0
- package/dist/types/sdk/element.d.ts +27 -0
- package/dist/types/sdk/index.d.ts +4 -0
- package/dist/types/sdk/react/index.d.ts +42 -0
- package/dist/types/sdk/styles.d.ts +1 -0
- package/dist/types/sdk/types.d.ts +13 -0
- package/dist/types/utils/config.d.ts +52 -0
- package/dist/types/utils/faceAnalysis.d.ts +26 -0
- package/dist/types/utils/faceChecks.d.ts +19 -0
- package/dist/types/utils/idPlacement.d.ts +13 -0
- package/dist/types/utils/overlayDraw.d.ts +15 -0
- package/dist/utils/config.js +44 -0
- package/dist/utils/faceAnalysis.js +144 -0
- package/dist/utils/faceChecks.js +84 -0
- package/dist/utils/idPlacement.js +66 -0
- package/dist/utils/overlayDraw.js +96 -0
- package/dist/verification-login-svgrepo-com.svg +45 -0
- package/dist/vite.svg +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
+
viewBox="0 0 512 512" xml:space="preserve">
|
|
5
|
+
<path style="fill:#E4EAF8;" d="M476.69,406.069H35.31C15.809,406.069,0,390.26,0,370.759V105.931c0-19.501,15.809-35.31,35.31-35.31
|
|
6
|
+
H476.69c19.501,0,35.31,15.809,35.31,35.31v264.828C512,390.26,496.191,406.069,476.69,406.069z"/>
|
|
7
|
+
<path style="fill:#D5DCED;" d="M150.069,300.138c-43.879,0-79.448,35.57-79.448,79.448c0,9.301,1.681,18.188,4.618,26.483H224.9
|
|
8
|
+
c2.936-8.295,4.618-17.182,4.618-26.483C229.517,335.708,193.948,300.138,150.069,300.138z"/>
|
|
9
|
+
<path style="fill:#AFB9D2;" d="M256,370.759H44.138c-4.875,0-8.828-3.953-8.828-8.828V114.759c0-4.875,3.953-8.828,8.828-8.828H256
|
|
10
|
+
c4.875,0,8.828,3.953,8.828,8.828v247.172C264.828,366.806,260.875,370.759,256,370.759z"/>
|
|
11
|
+
<path style="fill:#959CB5;" d="M71.138,370.759H229c-4.395-39.72-38.039-70.621-78.931-70.621S75.534,331.039,71.138,370.759z"/>
|
|
12
|
+
<path style="fill:#E4EAF8;" d="M220.69,335.448c4.875,0,8.828-3.953,8.828-8.828v-22.585c0-7.599-4.863-14.346-12.072-16.749
|
|
13
|
+
l-34.871-11.624c-3.598-1.199-6.028-4.563-6.036-8.355l-0.033-15.698c5.511-2.755,9.187-8.184,9.698-14.325l1.929-21.021
|
|
14
|
+
c3.693-3.235,6.074-7.933,6.074-13.229v-44.138c0-4.875-3.953-8.828-8.828-8.828h-52.966c-14.626,0-26.483,11.857-26.483,26.483
|
|
15
|
+
v26.483c0,5.297,2.381,9.994,6.074,13.229l1.929,21.021c0.511,6.14,4.188,11.57,9.698,14.325l-0.033,15.698
|
|
16
|
+
c-0.008,3.793-2.438,7.157-6.036,8.355l-34.871,11.624c-7.209,2.403-12.072,9.15-12.072,16.749v22.585
|
|
17
|
+
c0,4.875,3.953,8.828,8.828,8.828H220.69z"/>
|
|
18
|
+
<path style="fill:#7F8499;" d="M423.724,132.414H300.138c-4.879,0-8.828-3.953-8.828-8.828c0-4.875,3.948-8.828,8.828-8.828h123.586
|
|
19
|
+
c4.879,0,8.828,3.953,8.828,8.828C432.552,128.461,428.604,132.414,423.724,132.414z"/>
|
|
20
|
+
<path style="fill:#707487;" d="M467.862,167.724H300.138c-4.879,0-8.828-3.953-8.828-8.828c0-4.875,3.948-8.828,8.828-8.828h167.724
|
|
21
|
+
c4.879,0,8.828,3.953,8.828,8.828C476.69,163.772,472.742,167.724,467.862,167.724z"/>
|
|
22
|
+
<path style="fill:#959CB5;" d="M467.862,291.31H353.103c-4.879,0-8.828-3.953-8.828-8.828s3.948-8.828,8.828-8.828h114.759
|
|
23
|
+
c4.879,0,8.828,3.953,8.828,8.828S472.742,291.31,467.862,291.31z"/>
|
|
24
|
+
<path style="fill:#7F8499;" d="M317.793,291.31h-17.655c-4.879,0-8.828-3.953-8.828-8.828s3.948-8.828,8.828-8.828h17.655
|
|
25
|
+
c4.879,0,8.828,3.953,8.828,8.828S322.673,291.31,317.793,291.31z"/>
|
|
26
|
+
<path style="fill:#959CB5;" d="M441.379,326.621h-88.276c-4.879,0-8.828-3.953-8.828-8.828s3.948-8.828,8.828-8.828h88.276
|
|
27
|
+
c4.879,0,8.828,3.953,8.828,8.828S446.259,326.621,441.379,326.621z"/>
|
|
28
|
+
<path style="fill:#7F8499;" d="M317.793,326.621h-17.655c-4.879,0-8.828-3.953-8.828-8.828s3.948-8.828,8.828-8.828h17.655
|
|
29
|
+
c4.879,0,8.828,3.953,8.828,8.828S322.673,326.621,317.793,326.621z"/>
|
|
30
|
+
<path style="fill:#959CB5;" d="M441.379,361.931h-88.276c-4.879,0-8.828-3.953-8.828-8.828s3.948-8.828,8.828-8.828h88.276
|
|
31
|
+
c4.879,0,8.828,3.953,8.828,8.828S446.259,361.931,441.379,361.931z"/>
|
|
32
|
+
<path style="fill:#7F8499;" d="M317.793,361.931h-17.655c-4.879,0-8.828-3.953-8.828-8.828s3.948-8.828,8.828-8.828h17.655
|
|
33
|
+
c4.879,0,8.828,3.953,8.828,8.828S322.673,361.931,317.793,361.931z"/>
|
|
34
|
+
<circle style="fill:#9BF57D;" cx="317.793" cy="220.69" r="22.069"/>
|
|
35
|
+
<g>
|
|
36
|
+
<circle style="fill:#FFDC64;" cx="388.414" cy="220.69" r="22.069"/>
|
|
37
|
+
<circle style="fill:#FFDC64;" cx="459.034" cy="220.69" r="22.069"/>
|
|
38
|
+
</g>
|
|
39
|
+
<path style="fill:#D5DCED;" d="M216.12,335.448c-14.253-21.288-38.509-35.31-66.051-35.31s-51.798,14.023-66.051,35.31H216.12z"/>
|
|
40
|
+
<circle style="fill:#9BF57D;" cx="150.069" cy="379.586" r="61.793"/>
|
|
41
|
+
<path style="fill:#FFFFFF;" d="M144.181,406.069c-2.044,0-4.086-0.703-5.741-2.125l-20.595-17.655
|
|
42
|
+
c-3.706-3.172-4.138-8.746-0.957-12.448c3.172-3.699,8.75-4.125,12.439-0.957l14.112,12.099l26.603-29.017
|
|
43
|
+
c3.293-3.599,8.871-3.832,12.474-0.543c3.595,3.297,3.837,8.879,0.543,12.474l-32.371,35.31
|
|
44
|
+
C148.948,405.103,146.569,406.069,144.181,406.069z"/>
|
|
45
|
+
</svg>
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "truescene-face-id-capture-sdk",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "npm run build:sdk",
|
|
9
|
+
"build:demo": "tsc -b && vite build",
|
|
10
|
+
"build:sdk": "npm run build:types && npm run build:wc && npm run build:react",
|
|
11
|
+
"build:types": "tsc -p tsconfig.sdk.json",
|
|
12
|
+
"build:wc": "vite build --config vite.sdk.config.ts",
|
|
13
|
+
"build:react": "tsc -p tsconfig.react.json",
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"preview": "vite preview"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/types/sdk/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/types/sdk/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./react": {
|
|
26
|
+
"types": "./dist/types/sdk/react/index.d.ts",
|
|
27
|
+
"import": "./dist/sdk/react/index.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@mediapipe/tasks-vision": "^0.10.21"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"react": "^19.0.0",
|
|
38
|
+
"react-dom": "^19.0.0"
|
|
39
|
+
},
|
|
40
|
+
"peerDependenciesMeta": {
|
|
41
|
+
"react": {
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
44
|
+
"react-dom": {
|
|
45
|
+
"optional": true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@eslint/js": "^9.39.1",
|
|
50
|
+
"@types/node": "^24.10.1",
|
|
51
|
+
"@types/react": "^19.2.5",
|
|
52
|
+
"@types/react-dom": "^19.2.3",
|
|
53
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
54
|
+
"eslint": "^9.39.1",
|
|
55
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
56
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
57
|
+
"globals": "^16.5.0",
|
|
58
|
+
"react": "^19.2.0",
|
|
59
|
+
"react-dom": "^19.2.0",
|
|
60
|
+
"typescript": "~5.9.3",
|
|
61
|
+
"typescript-eslint": "^8.46.4",
|
|
62
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
63
|
+
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
66
|
+
}
|
|
67
|
+
}
|