@sekyro/react 0.1.0-rc.3 → 0.1.0-rc.30
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/CHANGELOG.md +570 -0
- package/LICENSE +25 -16
- package/README.md +189 -39
- package/dist/chunk-23GZ62S2.js +2 -0
- package/dist/chunk-2KED7D2Q.js +2 -0
- package/dist/chunk-55NNQK5P.js +2 -0
- package/dist/chunk-5EPFSWU5.js +2 -0
- package/dist/chunk-5WLMXBCT.js +2 -0
- package/dist/chunk-7MMT5M4E.js +2 -0
- package/dist/chunk-FE6AS435.js +2 -0
- package/dist/chunk-FJ3AON46.js +2 -0
- package/dist/chunk-GUTF3SPK.js +2 -0
- package/dist/chunk-KJT5NUFX.js +2 -0
- package/dist/chunk-KK5O6LP4.js +2 -0
- package/dist/chunk-OXGWLJ5D.js +2 -0
- package/dist/chunk-QL2NK7GA.js +2 -0
- package/dist/chunk-TCSAUR2Y.js +2 -0
- package/dist/chunk-U4KOMPUR.js +2 -0
- package/dist/chunk-VRDPGOXM.js +2 -0
- package/dist/chunk-VXMOKB43.js +2 -0
- package/dist/chunk-XQFVLRIY.js +2 -0
- package/dist/chunk-ZARKJW2C.js +2 -0
- package/dist/chunk-ZOE5QUGI.js +2 -0
- package/dist/document-capture-view-2NFKF44N.js +2 -0
- package/dist/eid-view-UGYVZ5NM.js +2 -0
- package/dist/email-otp-view-ENQVRS66.js +2 -0
- package/dist/flow-views-HNJPDQ63.js +2 -0
- package/dist/fonts/Cairo-OFL.txt +93 -0
- package/dist/fonts/Geist-OFL.txt +93 -0
- package/dist/fonts/Inter-OFL.txt +93 -0
- package/dist/fonts/SekyroCairo-Bold.woff2 +0 -0
- package/dist/fonts/SekyroCairo-Regular.woff2 +0 -0
- package/dist/fonts/SekyroCairo-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-Bold.woff2 +0 -0
- package/dist/fonts/SekyroGeist-SemiBold.woff2 +0 -0
- package/dist/fonts/SekyroInter-Medium.woff2 +0 -0
- package/dist/fonts/SekyroInter-Regular.woff2 +0 -0
- package/dist/fonts/SekyroInter-SemiBold.woff2 +0 -0
- package/dist/form-view-6ERKUFVD.js +2 -0
- package/dist/index.cjs +1 -2
- package/dist/index.d.cts +7 -380
- package/dist/index.d.ts +7 -380
- package/dist/index.js +1 -2
- package/dist/overlay-de-2DL4MNC7.js +2 -0
- package/dist/overlay-es-FMHWRKQW.js +2 -0
- package/dist/overlay-pt-OGIELLCM.js +2 -0
- package/dist/portrait-capture-view-ARRN3JW6.js +2 -0
- package/dist/portrait-review-view-JF6TYNBU.js +2 -0
- package/dist/proof-of-address-view-46Q6F7H5.js +2 -0
- package/dist/styles.css +35 -11
- package/dist/theme-DbHOQCyE.d.cts +547 -0
- package/dist/theme-DbHOQCyE.d.ts +547 -0
- package/dist/verification/index.cjs +2 -0
- package/dist/verification/index.d.cts +871 -0
- package/dist/verification/index.d.ts +871 -0
- package/dist/verification/index.js +2 -0
- package/dist/verification.css +848 -0
- package/package.json +27 -16
- package/sbom.cdx.json +153 -0
- package/assets/audio/v1/README.md +0 -60
- package/assets/audio/v1/manifest.json +0 -7
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sekyro/react",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
4
|
-
"description": "Sekyro React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (
|
|
5
|
-
"license": "
|
|
3
|
+
"version": "0.1.0-rc.30",
|
|
4
|
+
"description": "Sekyro AI React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (Arabic, French, English, Spanish, Portuguese and German, RTL-safe, WCAG AAA defaults)",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/IBTIKAR-Technologies/
|
|
8
|
+
"url": "git+https://github.com/IBTIKAR-Technologies/ibtikar-identity.git",
|
|
9
9
|
"directory": "packages/sekyro-react"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/IBTIKAR-Technologies/sekyro-sdks/tree/main/packages/sekyro-react#readme",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/IBTIKAR-Technologies/sekyro-sdks/issues"
|
|
14
|
-
},
|
|
15
11
|
"keywords": [
|
|
16
12
|
"sekyro",
|
|
17
13
|
"kyc",
|
|
@@ -46,28 +42,40 @@
|
|
|
46
42
|
"default": "./dist/index.cjs"
|
|
47
43
|
}
|
|
48
44
|
},
|
|
45
|
+
"./verification": {
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./dist/verification/index.d.ts",
|
|
48
|
+
"default": "./dist/verification/index.js"
|
|
49
|
+
},
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/verification/index.d.cts",
|
|
52
|
+
"default": "./dist/verification/index.cjs"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"./verification.css": "./dist/verification.css",
|
|
49
56
|
"./styles.css": "./dist/styles.css",
|
|
50
|
-
"./assets/*": "./assets/*",
|
|
51
57
|
"./package.json": "./package.json"
|
|
52
58
|
},
|
|
53
59
|
"files": [
|
|
54
60
|
"dist",
|
|
55
|
-
"assets",
|
|
56
61
|
"README.md",
|
|
57
62
|
"CHANGELOG.md",
|
|
58
|
-
"LICENSE"
|
|
63
|
+
"LICENSE",
|
|
64
|
+
"sbom.cdx.json"
|
|
59
65
|
],
|
|
60
66
|
"scripts": {
|
|
61
67
|
"build": "tsup",
|
|
62
|
-
"test": "node scripts/check-css.mjs && vitest run",
|
|
68
|
+
"test": "node scripts/check-css.mjs && node scripts/gen-step-strings.mjs --check && node scripts/gen-dial-codes.mjs --check && vitest run",
|
|
63
69
|
"size": "node scripts/check-size.mjs",
|
|
64
|
-
"
|
|
70
|
+
"test:dist": "SEKYRO_REQUIRE_DIST=1 vitest run test/ssr/dist-banner.test.ts",
|
|
71
|
+
"voice:texts": "node --experimental-strip-types scripts/export-voice-texts.mts",
|
|
65
72
|
"typecheck": "tsc --noEmit",
|
|
66
|
-
"api:report": "api-extractor run --local",
|
|
67
|
-
"api:check": "api-extractor run"
|
|
73
|
+
"api:report": "api-extractor run --local && api-extractor run --local -c api-extractor.verification.json",
|
|
74
|
+
"api:check": "api-extractor run && api-extractor run -c api-extractor.verification.json",
|
|
75
|
+
"strings:steps": "node scripts/gen-step-strings.mjs"
|
|
68
76
|
},
|
|
69
77
|
"peerDependencies": {
|
|
70
|
-
"@sekyro/web": "^0.1.0-rc.
|
|
78
|
+
"@sekyro/web": "^0.1.0-rc.32 || ^0.2.0-rc.0",
|
|
71
79
|
"react": ">=18.2",
|
|
72
80
|
"react-dom": ">=18.2"
|
|
73
81
|
},
|
|
@@ -78,11 +86,14 @@
|
|
|
78
86
|
"@testing-library/react": "^16",
|
|
79
87
|
"@types/jest-axe": "^3.5",
|
|
80
88
|
"@types/node": "^22",
|
|
89
|
+
"@types/qrcode": "1.5.5",
|
|
81
90
|
"@types/react": "^19",
|
|
82
91
|
"@types/react-dom": "^19",
|
|
83
92
|
"@vitejs/plugin-react": "^4",
|
|
84
93
|
"jest-axe": "^10",
|
|
85
94
|
"jsdom": "^25",
|
|
95
|
+
"libphonenumber-js": "1.12.10",
|
|
96
|
+
"qrcode": "1.5.4",
|
|
86
97
|
"react": "19.2.0",
|
|
87
98
|
"react-dom": "19.2.0",
|
|
88
99
|
"tsup": "^8",
|
package/sbom.cdx.json
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
|
|
3
|
+
"bomFormat": "CycloneDX",
|
|
4
|
+
"specVersion": "1.6",
|
|
5
|
+
"version": 1,
|
|
6
|
+
"metadata": {
|
|
7
|
+
"tools": {
|
|
8
|
+
"components": [
|
|
9
|
+
{
|
|
10
|
+
"type": "application",
|
|
11
|
+
"name": "npm",
|
|
12
|
+
"version": "11.12.1"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "library",
|
|
16
|
+
"name": "cyclonedx-library",
|
|
17
|
+
"group": "@cyclonedx",
|
|
18
|
+
"version": "10.3.0",
|
|
19
|
+
"author": "Jan Kowalleck",
|
|
20
|
+
"description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
|
|
21
|
+
"licenses": [
|
|
22
|
+
{
|
|
23
|
+
"license": {
|
|
24
|
+
"id": "Apache-2.0"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"externalReferences": [
|
|
29
|
+
{
|
|
30
|
+
"url": "https://github.com/CycloneDX/cyclonedx-javascript-library/issues",
|
|
31
|
+
"type": "issue-tracker",
|
|
32
|
+
"comment": "as detected from PackageJson property \"bugs.url\""
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"url": "git+https://github.com/CycloneDX/cyclonedx-javascript-library.git",
|
|
36
|
+
"type": "vcs",
|
|
37
|
+
"comment": "as detected from PackageJson property \"repository.url\""
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"url": "https://github.com/CycloneDX/cyclonedx-javascript-library#readme",
|
|
41
|
+
"type": "website",
|
|
42
|
+
"comment": "as detected from PackageJson property \"homepage\""
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"properties": [
|
|
46
|
+
{
|
|
47
|
+
"name": "cdx:npm:package:constraint:engine:node",
|
|
48
|
+
"value": ">=20.18.0"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "application",
|
|
54
|
+
"name": "cyclonedx-npm",
|
|
55
|
+
"group": "@cyclonedx",
|
|
56
|
+
"version": "6.0.1",
|
|
57
|
+
"author": "Jan Kowalleck",
|
|
58
|
+
"description": "Create CycloneDX Software Bill of Materials (SBOM) from NPM projects.",
|
|
59
|
+
"licenses": [
|
|
60
|
+
{
|
|
61
|
+
"license": {
|
|
62
|
+
"id": "Apache-2.0"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"externalReferences": [
|
|
67
|
+
{
|
|
68
|
+
"url": "https://github.com/CycloneDX/cyclonedx-node-npm/issues",
|
|
69
|
+
"type": "issue-tracker",
|
|
70
|
+
"comment": "as detected from PackageJson property \"bugs.url\""
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"url": "git+https://github.com/CycloneDX/cyclonedx-node-npm.git",
|
|
74
|
+
"type": "vcs",
|
|
75
|
+
"comment": "as detected from PackageJson property \"repository.url\""
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"url": "https://github.com/CycloneDX/cyclonedx-node-npm#readme",
|
|
79
|
+
"type": "website",
|
|
80
|
+
"comment": "as detected from PackageJson property \"homepage\""
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"properties": [
|
|
84
|
+
{
|
|
85
|
+
"name": "cdx:npm:package:constraint:engine:node",
|
|
86
|
+
"value": ">=20.18.0"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "cdx:npm:package:constraint:engine:npm",
|
|
90
|
+
"value": ">=9"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
]
|
|
95
|
+
},
|
|
96
|
+
"component": {
|
|
97
|
+
"type": "application",
|
|
98
|
+
"name": "react",
|
|
99
|
+
"group": "@sekyro",
|
|
100
|
+
"version": "0.1.0-rc.30",
|
|
101
|
+
"bom-ref": "@sekyro/react@0.1.0-rc.30",
|
|
102
|
+
"description": "Sekyro AI React SDK — the themeable, accessible <LivenessCapture /> component over @sekyro/web (Arabic, French, English, Spanish, Portuguese and German, RTL-safe, WCAG AAA defaults)",
|
|
103
|
+
"licenses": [
|
|
104
|
+
{
|
|
105
|
+
"license": {
|
|
106
|
+
"name": "SEE LICENSE IN LICENSE",
|
|
107
|
+
"acknowledgement": "declared"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"purl": "pkg:npm/%40sekyro/react@0.1.0-rc.30?vcs_url=git%2Bhttps%3A%2F%2Fgithub.com%2FIBTIKAR-Technologies%2Fibtikar-identity.git%23packages%2Fsekyro-react",
|
|
112
|
+
"externalReferences": [
|
|
113
|
+
{
|
|
114
|
+
"url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity/issues",
|
|
115
|
+
"type": "issue-tracker",
|
|
116
|
+
"comment": "as detected from PackageJson property \"bugs.url\""
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"url": "git+https://github.com/IBTIKAR-Technologies/ibtikar-identity.git#packages/sekyro-react",
|
|
120
|
+
"type": "vcs",
|
|
121
|
+
"comment": "as detected from PackageJson property \"repository.url\" and \"repository.directory\""
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"url": "https://github.com/IBTIKAR-Technologies/ibtikar-identity#readme",
|
|
125
|
+
"type": "website",
|
|
126
|
+
"comment": "as detected from PackageJson property \"homepage\""
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"properties": [
|
|
130
|
+
{
|
|
131
|
+
"name": "cdx:npm:package:constraint:engine:node",
|
|
132
|
+
"value": ">=20"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "cdx:npm:package:path",
|
|
136
|
+
"value": ""
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
"properties": [
|
|
141
|
+
{
|
|
142
|
+
"name": "cdx:reproducible",
|
|
143
|
+
"value": "true"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"components": [],
|
|
148
|
+
"dependencies": [
|
|
149
|
+
{
|
|
150
|
+
"ref": "@sekyro/react@0.1.0-rc.30"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# Voice-guidance clips — set `v1`
|
|
2
|
-
|
|
3
|
-
Pre-recorded neural-voice MP3s that `@sekyro/react` plays for the gate guidance
|
|
4
|
-
(`fcv3.*` hints) during a liveness capture. A key without a clip falls back to
|
|
5
|
-
the browser's speechSynthesis (when the voice options allow it for the locale).
|
|
6
|
-
|
|
7
|
-
## Layout
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
assets/audio/v1/
|
|
11
|
-
manifest.json { "set": "v1", "clips": { "<loc>": { "<name>": { "sha256", "text", "bytes" } } } }
|
|
12
|
-
ar/<name>.mp3 <name> = last segment of the fcv3.* key, e.g. center_face.mp3
|
|
13
|
-
fr/<name>.mp3
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
The 9 keys: `no_face`, `come_closer`, `move_back`, `center_face`, `straighten`,
|
|
17
|
-
`more_light`, `too_bright`, `hold_still`, `steady_camera`. English never ships
|
|
18
|
-
clips (it always uses speechSynthesis).
|
|
19
|
-
|
|
20
|
-
`src/voice/clip-manifest.ts` is generated alongside: the same manifest shape,
|
|
21
|
-
trimmed to the clip names (`BUNDLED_CLIP_MANIFEST`). The default clip source is
|
|
22
|
-
`createManifestResolver(BUNDLED_CLIP_MANIFEST, clipBaseUrl)`, so a key without a
|
|
23
|
-
shipped clip goes straight to the fallback with no 404 round-trip. An empty
|
|
24
|
-
manifest (`"clips": { "ar": {}, "fr": {} }`) means the package ships TTS-only.
|
|
25
|
-
|
|
26
|
-
Clips hosted elsewhere (CDN / object storage) plug in through `voice.clips` —
|
|
27
|
-
either a `(key, locale) → url | null` resolver or a `{ [locale]: { [voiceKey]: url } }`
|
|
28
|
-
map (e.g. delivered by the backend), or `createManifestResolver(manifest, baseUrl)`
|
|
29
|
-
over a manifest of this shape served next to the clips.
|
|
30
|
-
|
|
31
|
-
Hosts serve this directory at `<clipBaseUrl>` — by default
|
|
32
|
-
`${assetBaseUrl ?? "/models-v3"}/audio/v1` — next to the vendored models.
|
|
33
|
-
|
|
34
|
-
## Voice
|
|
35
|
-
|
|
36
|
-
- Provider: Azure Speech neural TTS (REST), output `audio-24khz-48kbitrate-mono-mp3`
|
|
37
|
-
- Arabic: `ar-SA-ZariyahNeural` (MSA) · French: `fr-FR-DeniseNeural`
|
|
38
|
-
- SSML `<prosody rate="-5%">`
|
|
39
|
-
- Spoken text: verbatim from `src/strings/{ar,fr}.ts`
|
|
40
|
-
|
|
41
|
-
## Regenerating
|
|
42
|
-
|
|
43
|
-
The credential lives only in your shell env — never in a file, commit or log.
|
|
44
|
-
|
|
45
|
-
```sh
|
|
46
|
-
cd packages/sekyro-react
|
|
47
|
-
export AZURE_SPEECH_KEY=… # from the vault
|
|
48
|
-
export AZURE_SPEECH_REGION=westeurope
|
|
49
|
-
npm run voice:generate -- --dry-run # print the plan (no network)
|
|
50
|
-
npm run voice:generate # write the MP3s + both manifests
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
Swapping providers means replacing the single `synthesize(text, locale)`
|
|
54
|
-
function in `scripts/generate-voice-clips.mts`.
|
|
55
|
-
|
|
56
|
-
## Cache-busting rule
|
|
57
|
-
|
|
58
|
-
Clips are served with immutable caching. **A new voice or any new text means a
|
|
59
|
-
new set directory** (`assets/audio/v2/`) and a bump of the `SET` constant in the
|
|
60
|
-
generator (it becomes `BUNDLED_CLIP_MANIFEST.set`). Never overwrite the MP3s of a published set.
|