@sekyro/react 0.1.0-rc.7 → 0.1.0-rc.8

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +18 -7
  3. package/dist/{chunk-Q232JYNO.js → chunk-2CJEADGY.js} +1 -1
  4. package/dist/{chunk-63NUMQST.js → chunk-2PGJ7P7E.js} +1 -1
  5. package/dist/chunk-36RC3M4K.js +2 -0
  6. package/dist/{chunk-AMOZXMUP.js → chunk-4ENKV24I.js} +1 -1
  7. package/dist/{chunk-4INDRENU.js → chunk-5JPJXBN6.js} +1 -1
  8. package/dist/{chunk-ADMDZLPM.js → chunk-COU4Y3DB.js} +1 -1
  9. package/dist/chunk-H2KIOYQU.js +2 -0
  10. package/dist/{chunk-BENNJ4GV.js → chunk-LZU57LVO.js} +1 -1
  11. package/dist/chunk-OSS4NHIS.js +2 -0
  12. package/dist/chunk-PXRIFHY2.js +2 -0
  13. package/dist/{chunk-P2LX7BBE.js → chunk-R2D6V2R6.js} +1 -1
  14. package/dist/chunk-Y4PPDNQR.js +2 -0
  15. package/dist/chunk-ZTN4YV7S.js +2 -0
  16. package/dist/chunk-ZVSRJKQE.js +2 -0
  17. package/dist/document-capture-view-IAVBLXBO.js +2 -0
  18. package/dist/eid-view-FK54R7ER.js +2 -0
  19. package/dist/email-otp-view-ZVXSJMN5.js +2 -0
  20. package/dist/flow-views-5VR7NLTE.js +2 -0
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.cts +2 -2
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +1 -1
  25. package/dist/portrait-capture-view-FYUOQWF7.js +2 -0
  26. package/dist/{theme-BpOuzcWh.d.ts → theme-7Jj6eSH6.d.cts} +25 -8
  27. package/dist/{theme-BpOuzcWh.d.cts → theme-7Jj6eSH6.d.ts} +25 -8
  28. package/dist/verification/index.cjs +1 -1
  29. package/dist/verification/index.d.cts +4 -1
  30. package/dist/verification/index.d.ts +4 -1
  31. package/dist/verification/index.js +1 -1
  32. package/dist/verification.css +2 -0
  33. package/package.json +2 -2
  34. package/sbom.cdx.json +4 -4
  35. package/dist/chunk-3MBJZSJL.js +0 -2
  36. package/dist/chunk-4RUZQW5T.js +0 -2
  37. package/dist/chunk-5SVCGLYS.js +0 -2
  38. package/dist/chunk-65JA6YKG.js +0 -2
  39. package/dist/chunk-B43EDVOK.js +0 -2
  40. package/dist/chunk-QZAPVO6F.js +0 -2
  41. package/dist/chunk-YUNPD6ZB.js +0 -2
  42. package/dist/document-capture-view-PT732PJ2.js +0 -2
  43. package/dist/eid-view-RFSXIECL.js +0 -2
  44. package/dist/email-otp-view-3WZH74UT.js +0 -2
  45. package/dist/flow-views-N6KYXL4N.js +0 -2
  46. package/dist/portrait-capture-view-HYOEOAF4.js +0 -2
@@ -1,6 +1,6 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode, RefObject } from 'react';
3
- import { CaptureErrorKind, GateHint, ReasonCode, CameraPermissionState, CameraFacing, Verification, CaptureError, CapturedArtifacts, VerificationResult, CaptureState, HostedBranding } from '@sekyro/web';
3
+ import { CaptureErrorKind, GateHint, ReasonCode, CameraPermissionState, CaptureMode, CameraFacing, Verification, CaptureError, CapturedArtifacts, VerificationResult, CaptureState, HostedBranding } from '@sekyro/web';
4
4
 
5
5
  /** A built-in tip (copy `capture.tips.<id>`, built-in icon). */
6
6
  type BuiltInTipId = "light" | "uncover" | "eyeLevel" | "straight";
@@ -60,6 +60,8 @@ interface Strings {
60
60
  "fcv3.too_bright": string;
61
61
  "fcv3.hold_still": string;
62
62
  "fcv3.steady_camera": string;
63
+ /** The phone shows a landscape frame (hint `upright`): the gate waits until it is held upright. */
64
+ "fcv3.hold_upright": string;
63
65
  "reasons.no_face": string;
64
66
  "reasons.media_unreadable": string;
65
67
  "reasons.clip_too_short": string;
@@ -84,6 +86,8 @@ interface Strings {
84
86
  "reasons.otp_expired": string;
85
87
  "reasons.otp_send_failed": string;
86
88
  "reasons.uncalibrated_capture_channel": string;
89
+ "reasons.capture_back_camera": string;
90
+ "reasons.capture_not_upright": string;
87
91
  "reasons.location_not_allowed": string;
88
92
  "reasons.anonymizer_blocked": string;
89
93
  "reasons.nationality_not_allowed": string;
@@ -141,6 +145,10 @@ interface Strings {
141
145
  "capture.cameraLabel": string;
142
146
  "capture.facing.user": string;
143
147
  "capture.facing.environment": string;
148
+ /** Assisted capture (an agent films the person): the pre-capture title and lead, and the line under the stage. */
149
+ "capture.assisted.title": string;
150
+ "capture.assisted.lead": string;
151
+ "capture.assisted.stage": string;
144
152
  "capture.voiceGuidance": string;
145
153
  "capture.preparing.hint": string;
146
154
  "capture.ready": string;
@@ -188,7 +196,7 @@ declare function attemptsRemainingText(dictionary: Strings, locale: SekyroLocale
188
196
  * `capture.tips.summary` — the pre-capture "Listen to the instructions" summary
189
197
  * (played only on an explicit tap, never during capture).
190
198
  */
191
- type VoiceKey = "fcv3.no_face" | "fcv3.come_closer" | "fcv3.move_back" | "fcv3.center_face" | "fcv3.straighten" | "fcv3.more_light" | "fcv3.too_bright" | "fcv3.hold_still" | "fcv3.steady_camera" | "capture.tips.summary";
199
+ type VoiceKey = "fcv3.no_face" | "fcv3.come_closer" | "fcv3.move_back" | "fcv3.center_face" | "fcv3.straighten" | "fcv3.more_light" | "fcv3.too_bright" | "fcv3.hold_still" | "fcv3.steady_camera" | "fcv3.hold_upright" | "capture.tips.summary";
192
200
  /** Every {@link VoiceKey}, in a stable order (e.g. to build a clip map). */
193
201
  declare const VOICE_KEYS: readonly VoiceKey[];
194
202
 
@@ -255,15 +263,26 @@ interface LivenessNotice {
255
263
  interface IntroContext {
256
264
  /**
257
265
  * Detector preload gate: Start should wait for `ready`; `failed` offers `retryAssets`.
258
- * Also `loading` while `autoStart="when-permitted"` waits for the first camera-permission answer.
266
+ * Also `loading` while `autoStart="when-permitted"` waits for the first camera-permission answer, and until the
267
+ * camera `start` opens is known (the capture mode and, in an assisted capture, whether the device has a front/back
268
+ * choice).
259
269
  */
260
270
  assets: "loading" | "ready" | "failed";
261
271
  retryAssets: () => void;
262
272
  permission: CameraPermissionState;
263
- /** The camera `start` opens (and the in-stage switch flips). */
273
+ /**
274
+ * Who films the face, set by the session's flow: `self` (the person, front camera) or `assisted` (an agent films
275
+ * the person with the back camera). Always `self` without a `verification`.
276
+ */
277
+ captureMode: CaptureMode;
278
+ /**
279
+ * The camera `start` opens (and the in-stage switch flips). Always `"user"` in a self capture; an assisted capture
280
+ * defaults to `"environment"` on a device with a front/back choice and to `"user"` without one.
281
+ */
264
282
  facing: CameraFacing;
283
+ /** Picks the camera of an assisted capture (ignored in a self capture). */
265
284
  setFacing: (facing: CameraFacing) => void;
266
- /** A front/back choice makes sense on this device. */
285
+ /** A front/back choice is offered: an assisted capture on a device with several cameras. */
267
286
  canChooseFacing: boolean;
268
287
  voice: VoiceControl;
269
288
  }
@@ -351,8 +370,6 @@ interface LivenessCaptureProps {
351
370
  * built-in guidance. Shown, not spoken.
352
371
  */
353
372
  coach?: string | null;
354
- /** Camera the attempt opens with; default `"user"` (front). */
355
- defaultFacing?: CameraFacing;
356
373
  /**
357
374
  * Voice guidance (on by default). Clips: `voice.clips` when given; else, in
358
375
  * verification mode, the Sekyro AI clip set delivered with the session (served
@@ -383,7 +400,7 @@ interface LivenessCaptureProps {
383
400
  * {@link SekyroThemeProvider} (or set the `--sekyro-*` variables yourself) and
384
401
  * import `@sekyro/react/styles.css` once.
385
402
  */
386
- declare function LivenessCapture({ verification, locale, dir, strings, slots, autoStart, notice, startDisabled, startLabel, tips, tipsSummary, coach, defaultFacing, voice: voiceOption, onGuidance, onCaptured, onResult, onError, onStateChange, assetBaseUrl, className, }: LivenessCaptureProps): react.JSX.Element;
403
+ declare function LivenessCapture({ verification, locale, dir, strings, slots, autoStart, notice, startDisabled, startLabel, tips, tipsSummary, coach, voice: voiceOption, onGuidance, onCaptured, onResult, onError, onStateChange, assetBaseUrl, className, }: LivenessCaptureProps): react.JSX.Element;
387
404
 
388
405
  /** Color tokens. Every value is any valid CSS `<color>`. */
389
406
  interface SekyroThemeColors {