@incodetech/prizma-core-screens 0.2.7 → 0.2.14
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/dist/BiometricConsentScreen.d.ts +95 -0
- package/dist/BiometricConsentScreen.js +91 -0
- package/dist/BiometricConsentStrings.d.ts +84 -0
- package/dist/BiometricConsentStrings.js +31 -0
- package/dist/CaptureScreen.d.ts +13 -0
- package/dist/CaptureScreen.js +2 -2
- package/dist/DemoScreensLayout.css +16 -0
- package/dist/DemoScreensRedirectScreen.d.ts +6 -1
- package/dist/DemoScreensRedirectScreen.js +3 -2
- package/dist/DemoScreensStrings.d.ts +5 -0
- package/dist/DigitalIdDeviceWalletsDocumentSelectionScreen.d.ts +34 -0
- package/dist/DigitalIdDeviceWalletsDocumentSelectionScreen.js +47 -0
- package/dist/DigitalIdDeviceWalletsResultScreen.d.ts +28 -0
- package/dist/DigitalIdDeviceWalletsResultScreen.js +23 -0
- package/dist/DigitalIdDeviceWalletsStrings.d.ts +55 -0
- package/dist/DigitalIdDeviceWalletsStrings.js +19 -0
- package/dist/DigitalIdProvidersDocumentSelectionScreen.d.ts +31 -0
- package/dist/DigitalIdProvidersDocumentSelectionScreen.js +37 -0
- package/dist/DigitalIdProvidersErrorScreen.d.ts +33 -0
- package/dist/DigitalIdProvidersErrorScreen.js +33 -0
- package/dist/DigitalIdProvidersLayout.css +59 -0
- package/dist/DigitalIdProvidersRedirectScreen.d.ts +24 -0
- package/dist/DigitalIdProvidersRedirectScreen.js +18 -0
- package/dist/DigitalIdProvidersStrings.d.ts +72 -0
- package/dist/DigitalIdProvidersStrings.js +15 -0
- package/dist/DigitalIdUploadErrorScreen.d.ts +31 -0
- package/dist/DigitalIdUploadErrorScreen.js +26 -0
- package/dist/DigitalIdUploadFileTooLargeScreen.d.ts +27 -0
- package/dist/DigitalIdUploadFileTooLargeScreen.js +21 -0
- package/dist/DigitalIdUploadReviewScreen.d.ts +57 -0
- package/dist/DigitalIdUploadReviewScreen.js +44 -0
- package/dist/DigitalIdUploadStrings.d.ts +64 -0
- package/dist/DigitalIdUploadStrings.js +19 -0
- package/dist/DigitalIdUploadTutorialScreen.d.ts +28 -0
- package/dist/DigitalIdUploadTutorialScreen.js +23 -0
- package/dist/DocumentCaptureIllustration.d.ts +1 -1
- package/dist/EkybCountryScreen.d.ts +6 -6
- package/dist/EkybCountryScreen.js +20 -7
- package/dist/EkybStrings.d.ts +6 -1
- package/dist/ErrorScreensScreen.d.ts +5 -2
- package/dist/ErrorScreensScreen.js +15 -4
- package/dist/ErrorScreensStrings.d.ts +17 -2
- package/dist/ErrorScreensStrings.js +18 -10
- package/dist/FaceCaptureCapturingScreen.d.ts +63 -0
- package/dist/FaceCaptureCapturingScreen.js +62 -2
- package/dist/FaceCaptureLayout.css +69 -4
- package/dist/FaceCaptureStrings.d.ts +23 -0
- package/dist/FormScreen.css +14 -0
- package/dist/FormScreen.d.ts +28 -0
- package/dist/FormScreen.js +3 -2
- package/dist/IdCaptureLayout.css +165 -2
- package/dist/IdCaptureStageScreen.d.ts +47 -0
- package/dist/IdCaptureStageScreen.js +39 -3
- package/dist/IdCaptureStrings.d.ts +19 -0
- package/dist/ListScreen.d.ts +19 -0
- package/dist/ListScreen.js +7 -2
- package/dist/LoaderScreen.d.ts +7 -5
- package/dist/LoaderScreen.js +7 -5
- package/dist/LoadersStrings.d.ts +18 -5
- package/dist/OcrReviewErrorScreen.d.ts +30 -0
- package/dist/OcrReviewErrorScreen.js +24 -0
- package/dist/OcrReviewLayout.css +24 -0
- package/dist/OcrReviewLoadingScreen.d.ts +25 -0
- package/dist/OcrReviewLoadingScreen.js +19 -0
- package/dist/OcrReviewScreen.d.ts +76 -0
- package/dist/OcrReviewScreen.js +65 -0
- package/dist/OcrReviewStrings.d.ts +47 -0
- package/dist/OcrReviewStrings.js +17 -0
- package/dist/OcrReviewSuccessScreen.d.ts +30 -0
- package/dist/OcrReviewSuccessScreen.js +24 -0
- package/dist/PermissionsAllowScreen.d.ts +8 -11
- package/dist/PermissionsAllowScreen.js +8 -11
- package/dist/PermissionsAskScreen.d.ts +41 -0
- package/dist/PermissionsAskScreen.js +43 -0
- package/dist/PermissionsBrowserStepsScreen.d.ts +9 -2
- package/dist/PermissionsBrowserStepsScreen.js +12 -3
- package/dist/PermissionsLayout.css +47 -0
- package/dist/PermissionsStrings.d.ts +20 -9
- package/dist/PermissionsStrings.js +10 -4
- package/dist/PhoneInputOtpScreen.d.ts +8 -0
- package/dist/PhoneInputOtpScreen.js +26 -19
- package/dist/PhoneInputStrings.d.ts +11 -3
- package/dist/PhoneInputVerifyScreen.js +21 -5
- package/dist/QualifiedSignatureDocumentScreen.d.ts +8 -5
- package/dist/QualifiedSignatureDocumentScreen.js +9 -6
- package/dist/QualifiedSignatureResultScreen.d.ts +16 -13
- package/dist/QualifiedSignatureResultScreen.js +17 -18
- package/dist/QualifiedSignatureStrings.d.ts +11 -4
- package/dist/ResultScreen.d.ts +8 -0
- package/dist/ResultScreen.js +14 -3
- package/dist/ReusabilityCredentialSelectionScreen.d.ts +95 -0
- package/dist/ReusabilityCredentialSelectionScreen.js +94 -0
- package/dist/ReusabilityLayout.css +241 -0
- package/dist/ReusabilityPrivacyPolicyScreen.d.ts +55 -0
- package/dist/ReusabilityPrivacyPolicyScreen.js +44 -0
- package/dist/ReusabilityStrings.d.ts +85 -0
- package/dist/ReusabilityStrings.js +37 -0
- package/dist/ReviewScreen.d.ts +38 -12
- package/dist/ReviewScreen.js +41 -8
- package/dist/ScreenLayout.css +382 -6
- package/dist/VideoSelfieErrorScreen.js +1 -1
- package/dist/VideoSelfieIdCaptureScreen.js +1 -1
- package/dist/VideoSelfieLayout.css +304 -2
- package/dist/VideoSelfieSelfieCaptureScreen.js +1 -1
- package/dist/VideoSelfieSpeakScreen.js +1 -1
- package/dist/VideoSelfieStrings.d.ts +4 -1
- package/dist/VideoSelfieTurnHeadScreen.js +14 -11
- package/dist/VideoSelfieTutorialScreen.d.ts +9 -0
- package/dist/VideoSelfieTutorialScreen.js +10 -1
- package/dist/VideoSelfieWaveScreen.js +1 -1
- package/dist/ViewfinderScreen.css +36 -0
- package/dist/flows.d.ts +8 -0
- package/dist/flows.js +17 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +17 -0
- package/dist/styles.css +4 -0
- package/package.json +94 -3
- package/samples/video-selfie-camera-wide.jpg +0 -0
- package/samples/video-selfie-room-wide.jpg +0 -0
- package/src/BiometricConsentScreen.tsx +192 -0
- package/src/BiometricConsentStrings.ts +119 -0
- package/src/CaptureScreen.tsx +17 -0
- package/src/DemoScreensLayout.css +16 -0
- package/src/DemoScreensRedirectScreen.tsx +14 -6
- package/src/DemoScreensStrings.ts +5 -0
- package/src/DigitalIdDeviceWalletsDocumentSelectionScreen.tsx +108 -0
- package/src/DigitalIdDeviceWalletsResultScreen.tsx +76 -0
- package/src/DigitalIdDeviceWalletsStrings.ts +80 -0
- package/src/DigitalIdProvidersDocumentSelectionScreen.tsx +112 -0
- package/src/DigitalIdProvidersErrorScreen.tsx +104 -0
- package/src/DigitalIdProvidersLayout.css +59 -0
- package/src/DigitalIdProvidersRedirectScreen.tsx +65 -0
- package/src/DigitalIdProvidersStrings.ts +98 -0
- package/src/DigitalIdUploadErrorScreen.tsx +83 -0
- package/src/DigitalIdUploadFileTooLargeScreen.tsx +67 -0
- package/src/DigitalIdUploadReviewScreen.tsx +119 -0
- package/src/DigitalIdUploadStrings.ts +88 -0
- package/src/DigitalIdUploadTutorialScreen.tsx +59 -0
- package/src/DocumentCaptureIllustration.tsx +1 -1
- package/src/EkybCountryScreen.tsx +23 -6
- package/src/EkybStrings.ts +6 -1
- package/src/ErrorScreensScreen.tsx +15 -4
- package/src/ErrorScreensStrings.ts +37 -12
- package/src/FaceCaptureCapturingScreen.tsx +102 -13
- package/src/FaceCaptureLayout.css +69 -4
- package/src/FaceCaptureStrings.ts +24 -0
- package/src/FormScreen.css +14 -0
- package/src/FormScreen.tsx +34 -0
- package/src/IdCaptureLayout.css +165 -2
- package/src/IdCaptureStageScreen.tsx +75 -0
- package/src/IdCaptureStrings.ts +19 -0
- package/src/ListScreen.tsx +48 -9
- package/src/LoaderScreen.tsx +7 -5
- package/src/LoadersStrings.ts +18 -5
- package/src/OcrReviewErrorScreen.tsx +53 -0
- package/src/OcrReviewLayout.css +24 -0
- package/src/OcrReviewLoadingScreen.tsx +48 -0
- package/src/OcrReviewScreen.tsx +190 -0
- package/src/OcrReviewStrings.ts +69 -0
- package/src/OcrReviewSuccessScreen.tsx +52 -0
- package/src/PermissionsAllowScreen.tsx +9 -10
- package/src/PermissionsAskScreen.tsx +105 -0
- package/src/PermissionsBrowserStepsScreen.tsx +11 -3
- package/src/PermissionsLayout.css +47 -0
- package/src/PermissionsStrings.ts +42 -12
- package/src/PhoneInputOtpScreen.tsx +23 -3
- package/src/PhoneInputStrings.ts +11 -3
- package/src/PhoneInputVerifyScreen.tsx +24 -4
- package/src/QualifiedSignatureDocumentScreen.tsx +9 -7
- package/src/QualifiedSignatureResultScreen.tsx +28 -26
- package/src/QualifiedSignatureStrings.ts +11 -4
- package/src/ResultScreen.tsx +33 -2
- package/src/ReusabilityCredentialSelectionScreen.tsx +246 -0
- package/src/ReusabilityLayout.css +241 -0
- package/src/ReusabilityPrivacyPolicyScreen.tsx +109 -0
- package/src/ReusabilityStrings.ts +127 -0
- package/src/ReviewScreen.tsx +96 -27
- package/src/ScreenLayout.css +382 -6
- package/src/VideoSelfieErrorScreen.tsx +1 -1
- package/src/VideoSelfieIdCaptureScreen.tsx +9 -1
- package/src/VideoSelfieLayout.css +304 -2
- package/src/VideoSelfieSelfieCaptureScreen.tsx +9 -1
- package/src/VideoSelfieSpeakScreen.tsx +9 -1
- package/src/VideoSelfieStrings.ts +4 -2
- package/src/VideoSelfieTurnHeadScreen.tsx +25 -14
- package/src/VideoSelfieTutorialScreen.tsx +11 -0
- package/src/VideoSelfieWaveScreen.tsx +9 -1
- package/src/ViewfinderScreen.css +36 -0
- package/src/flows.ts +25 -0
- package/src/index.ts +116 -3
- package/src/styles.css +4 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Digital ID Upload module — copy contract.
|
|
2
|
+
//
|
|
3
|
+
// Every Digital ID Upload screen receives the SAME `strings:
|
|
4
|
+
// DigitalIdUploadStrings` object (rule: all copy via props, no hardcoded
|
|
5
|
+
// English — GUIDELINES.md §9).
|
|
6
|
+
//
|
|
7
|
+
// Authoritative screens: the "Web Happy Path - Light Mode" purple section of
|
|
8
|
+
// the Upload Digital ID Figma file (wxFsHRvllern4VnjRqM4JO, node 25351:14721)
|
|
9
|
+
// — covers `tutorial` and the `review` / `analyzing` / `success` stages of
|
|
10
|
+
// the confirm flow — plus TWO separate `Errors` sections: node 25874:11955
|
|
11
|
+
// (`ID type is not accepted`) and node 26083:3981 (`File Limit Error`, "File
|
|
12
|
+
// is too large"). Three frames of the happy-path section are NOT part of
|
|
13
|
+
// this contract: `1-1-1-how to verify` (a verification-method chooser shared
|
|
14
|
+
// with ID Capture — see IdCaptureDocumentSelectionScreen.tsx, which is one
|
|
15
|
+
// row short of this Figma's version), a native iOS file-browser frame (OS
|
|
16
|
+
// chrome, DEVIATIONS.md #DC-20 precedent), and `1-18-1-id-hold-on` (ID
|
|
17
|
+
// Capture's own server-side-wait screen — dropped from this module by
|
|
18
|
+
// product decision, not a gap to fill).
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PrizmaTutorialScreenProps } from './TutorialScreen';
|
|
3
|
+
import type { PrizmaScreenActionHandler, PrizmaScreenOverrides } from './types';
|
|
4
|
+
import type { DigitalIdUploadStrings } from './DigitalIdUploadStrings';
|
|
5
|
+
import './ScreenLayout.css';
|
|
6
|
+
export interface DigitalIdUploadTutorialScreenProps extends Omit<PrizmaTutorialScreenProps, 'title' | 'subtitle' | 'ctaLabel' | 'illustration' | 'verifiedLabel' | 'navLabel'> {
|
|
7
|
+
/** Module copy — this screen reads the `tutorial` slice (+ shared labels). */
|
|
8
|
+
strings: DigitalIdUploadStrings;
|
|
9
|
+
screenId?: string;
|
|
10
|
+
overrides?: PrizmaScreenOverrides;
|
|
11
|
+
onAction?: PrizmaScreenActionHandler;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Digital ID Upload — tutorial, built on the `PrizmaTutorialScreen` archetype
|
|
15
|
+
* (GUIDELINES.md §6-A). Figma: `Upload Digital ID` file
|
|
16
|
+
* (wxFsHRvllern4VnjRqM4JO), "Web Happy Path - Light Mode" section, `Tutorial
|
|
17
|
+
* Screen` (node 25351:14722).
|
|
18
|
+
*
|
|
19
|
+
* The illustration slot is Core's own `PrizmaCaptureDigitalId` in its
|
|
20
|
+
* `tutorial` state — the Figma file names this exact instance "Capture /
|
|
21
|
+
* Digital ID" (node 26161:10686, Figma description: "Incode specific
|
|
22
|
+
* component for Digital ID module experience"), the same managed component
|
|
23
|
+
* already shipped as `core/platforms/web/src/CaptureDigitalId.tsx`. No module
|
|
24
|
+
* illustration is drawn here — the component owns its own tutorial artwork
|
|
25
|
+
* (`PrizmaIllustrationDigitalId`).
|
|
26
|
+
*/
|
|
27
|
+
export declare const DigitalIdUploadTutorialScreen: React.ForwardRefExoticComponent<DigitalIdUploadTutorialScreenProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export default DigitalIdUploadTutorialScreen;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { PrizmaCaptureDigitalId } from '@incodetech/prizma-core-web/capture-digital-id';
|
|
5
|
+
import { PrizmaTutorialScreen } from './TutorialScreen';
|
|
6
|
+
import './ScreenLayout.css';
|
|
7
|
+
/**
|
|
8
|
+
* Digital ID Upload — tutorial, built on the `PrizmaTutorialScreen` archetype
|
|
9
|
+
* (GUIDELINES.md §6-A). Figma: `Upload Digital ID` file
|
|
10
|
+
* (wxFsHRvllern4VnjRqM4JO), "Web Happy Path - Light Mode" section, `Tutorial
|
|
11
|
+
* Screen` (node 25351:14722).
|
|
12
|
+
*
|
|
13
|
+
* The illustration slot is Core's own `PrizmaCaptureDigitalId` in its
|
|
14
|
+
* `tutorial` state — the Figma file names this exact instance "Capture /
|
|
15
|
+
* Digital ID" (node 26161:10686, Figma description: "Incode specific
|
|
16
|
+
* component for Digital ID module experience"), the same managed component
|
|
17
|
+
* already shipped as `core/platforms/web/src/CaptureDigitalId.tsx`. No module
|
|
18
|
+
* illustration is drawn here — the component owns its own tutorial artwork
|
|
19
|
+
* (`PrizmaIllustrationDigitalId`).
|
|
20
|
+
*/
|
|
21
|
+
export const DigitalIdUploadTutorialScreen = forwardRef(({ strings, screenId = 'digital-id-upload-tutorial', overrides, onAction, ...shell }, ref) => (_jsx(PrizmaTutorialScreen, { ref: ref, title: strings.tutorial.title, subtitle: strings.tutorial.subtitle, ctaLabel: strings.tutorial.ctaLabel, illustration: _jsx(PrizmaCaptureDigitalId, { state: "tutorial" }), verifiedLabel: strings.verifiedLabel, navLabel: strings.navLabel, screenId: screenId, overrides: overrides, onAction: onAction, ...shell })));
|
|
22
|
+
DigitalIdUploadTutorialScreen.displayName = 'DigitalIdUploadTutorialScreen';
|
|
23
|
+
export default DigitalIdUploadTutorialScreen;
|
|
@@ -6,7 +6,7 @@ import './DocumentCaptureLayout.css';
|
|
|
6
6
|
*
|
|
7
7
|
* WHY IT LIVES IN THE MODULE LAYER: `prizma-core-web` ships
|
|
8
8
|
* `PrizmaIllustrationSelfie`, `…IdTutorial`, `…IdIntro`, `…IdFlip`,
|
|
9
|
-
* `…IdHint`, `…IdFeedback`, `…NfcScan`, `…
|
|
9
|
+
* `…IdHint`, `…IdFeedback`, `…NfcScan`, `…Geolocation`,
|
|
10
10
|
* `…DigitalId` and `…Avatar` — there is NO document / proof-of-address
|
|
11
11
|
* illustration. GUIDELINES.md §10 is the standing asset rule for that gap
|
|
12
12
|
* ("Illustrations…: inline SVG React components (Figma-sourced), tintable via
|
|
@@ -39,12 +39,12 @@ export interface EkybCountryScreenProps extends Omit<PrizmaFormScreenProps, 'tit
|
|
|
39
39
|
* live interaction) — the same mechanism Phone Input's `countryCode` and
|
|
40
40
|
* CURP's `Gene.dropdown` sections use. The search bar Figma draws inside the
|
|
41
41
|
* menu is Core's own `searchable`.
|
|
42
|
-
* 3. Menu rows and the closed field read the same "
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
42
|
+
* 3. Menu rows and the closed field read the same flag + "United States",
|
|
43
|
+
* no dial code. Figma 5707:54174 draws the rows with Phone Input's "+1"
|
|
44
|
+
* prefixes, dropped by the owner (Elena, 2026-09-28) because a country of
|
|
45
|
+
* registration has no phone prefix. The flag is Core's raster in the
|
|
46
|
+
* dropdown's leading slot, not an emoji in the label (Elena, 2026-10-23;
|
|
47
|
+
* #PI-3, the WatchlistBusinessFormScreen precedent).
|
|
48
48
|
*
|
|
49
49
|
* This page is the only eKYB form page with NO "Back" secondary and NO Stepper —
|
|
50
50
|
* it is step 0, before the three-step wizard starts.
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { PrizmaDropdown } from '@incodetech/prizma-core-web/dropdown';
|
|
5
|
+
import { PrizmaCountryFlag } from '@incodetech/prizma-core-web/combined';
|
|
5
6
|
import { PrizmaFormScreen } from './FormScreen';
|
|
6
7
|
import './ScreenLayout.css';
|
|
7
8
|
/**
|
|
@@ -26,12 +27,12 @@ import './ScreenLayout.css';
|
|
|
26
27
|
* live interaction) — the same mechanism Phone Input's `countryCode` and
|
|
27
28
|
* CURP's `Gene.dropdown` sections use. The search bar Figma draws inside the
|
|
28
29
|
* menu is Core's own `searchable`.
|
|
29
|
-
* 3. Menu rows and the closed field read the same "
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
30
|
+
* 3. Menu rows and the closed field read the same flag + "United States",
|
|
31
|
+
* no dial code. Figma 5707:54174 draws the rows with Phone Input's "+1"
|
|
32
|
+
* prefixes, dropped by the owner (Elena, 2026-09-28) because a country of
|
|
33
|
+
* registration has no phone prefix. The flag is Core's raster in the
|
|
34
|
+
* dropdown's leading slot, not an emoji in the label (Elena, 2026-10-23;
|
|
35
|
+
* #PI-3, the WatchlistBusinessFormScreen precedent).
|
|
35
36
|
*
|
|
36
37
|
* This page is the only eKYB form page with NO "Back" secondary and NO Stepper —
|
|
37
38
|
* it is step 0, before the three-step wizard starts.
|
|
@@ -70,7 +71,19 @@ export const EkybCountryScreen = forwardRef(({ strings, state = 'empty', countri
|
|
|
70
71
|
(DEVIATIONS #PI-6). */
|
|
71
72
|
defaultValue: selected, searchable: true, searchPlaceholder: copy.searchPlaceholder, clearSearchLabel: copy.clearSearchLabel,
|
|
72
73
|
/* The `dropdown` section IS the open-menu spec state. */
|
|
73
|
-
forceOpen: state === 'dropdown'
|
|
74
|
+
forceOpen: state === 'dropdown',
|
|
75
|
+
/* Core's canonical flag raster in the closed field and every menu
|
|
76
|
+
row (see note 3). A country outside the bank falls back to its
|
|
77
|
+
`flag` emoji. */
|
|
78
|
+
renderLeading: (option) => {
|
|
79
|
+
const match = countries.find((c) => c.value === option.value);
|
|
80
|
+
return match ? (_jsx(PrizmaCountryFlag, { country: {
|
|
81
|
+
code: match.value,
|
|
82
|
+
name: match.label,
|
|
83
|
+
dialCode: '',
|
|
84
|
+
flag: match.flag ?? '',
|
|
85
|
+
} })) : null;
|
|
86
|
+
} }) }));
|
|
74
87
|
});
|
|
75
88
|
EkybCountryScreen.displayName = 'EkybCountryScreen';
|
|
76
89
|
export default EkybCountryScreen;
|
package/dist/EkybStrings.d.ts
CHANGED
|
@@ -59,8 +59,13 @@ export interface EkybOption {
|
|
|
59
59
|
label: string;
|
|
60
60
|
/** Compact face for the CLOSED field when it differs from the menu row —
|
|
61
61
|
* Core's own `PrizmaDropdownOption.fieldLabel`. The eKYB country list
|
|
62
|
-
* does not need it: rows and field both read "
|
|
62
|
+
* does not need it: rows and field both read "United States" after the
|
|
63
|
+
* flag. */
|
|
63
64
|
fieldLabel?: string;
|
|
65
|
+
/** Country menus only: the emoji fallback for a `value` outside Core's
|
|
66
|
+
* flag raster bank. The country screen draws the bank's flag by `value`,
|
|
67
|
+
* so this never travels inside `label`. */
|
|
68
|
+
flag?: string;
|
|
64
69
|
}
|
|
65
70
|
/** The values the business-identity page carries. Runtime data, never copy. */
|
|
66
71
|
export interface EkybBusinessValues {
|
|
@@ -21,7 +21,7 @@ export interface ErrorScreensScreenProps extends Omit<PrizmaResultScreenProps, '
|
|
|
21
21
|
* Error screens — the session-level failures, built on the Result archetype
|
|
22
22
|
* (GUIDELINES.md §6-F, `PrizmaResultScreen`).
|
|
23
23
|
*
|
|
24
|
-
* ONE screen for all
|
|
24
|
+
* ONE screen for all four generic sections. They draw the identical skeleton —
|
|
25
25
|
* a centred mark + title + supporting line over a CTA band — and differ only in
|
|
26
26
|
* copy, in which mark leads, and in what the band carries:
|
|
27
27
|
*
|
|
@@ -29,8 +29,11 @@ export interface ErrorScreensScreenProps extends Omit<PrizmaResultScreenProps, '
|
|
|
29
29
|
* - `noConnection` — Wi-Fi glyph, "Refresh"
|
|
30
30
|
* - `unsupportedBrowser` — canonical negative mark, the session URL above
|
|
31
31
|
* "Copy link", with "Continue anyways" under it
|
|
32
|
+
* - `somethingWentWrong` — canonical negative mark, "Try again" when the copy
|
|
33
|
+
* carries a CTA, "Quit process" under it when it
|
|
34
|
+
* carries a quit label; a dead end when it has neither
|
|
32
35
|
*
|
|
33
|
-
* Chrome is CONSTANT. All
|
|
36
|
+
* Chrome is CONSTANT. All the frames are drawn without the logo header and
|
|
34
37
|
* without the verified tag; both are kept here, because the owner rule of
|
|
35
38
|
* 2026-08-18 (#F-30, #F-34) makes the chrome the same on every screen so
|
|
36
39
|
* nothing shifts between states, and every module's connectivity screen must
|
|
@@ -9,7 +9,7 @@ import './ScreenLayout.css';
|
|
|
9
9
|
* Error screens — the session-level failures, built on the Result archetype
|
|
10
10
|
* (GUIDELINES.md §6-F, `PrizmaResultScreen`).
|
|
11
11
|
*
|
|
12
|
-
* ONE screen for all
|
|
12
|
+
* ONE screen for all four generic sections. They draw the identical skeleton —
|
|
13
13
|
* a centred mark + title + supporting line over a CTA band — and differ only in
|
|
14
14
|
* copy, in which mark leads, and in what the band carries:
|
|
15
15
|
*
|
|
@@ -17,8 +17,11 @@ import './ScreenLayout.css';
|
|
|
17
17
|
* - `noConnection` — Wi-Fi glyph, "Refresh"
|
|
18
18
|
* - `unsupportedBrowser` — canonical negative mark, the session URL above
|
|
19
19
|
* "Copy link", with "Continue anyways" under it
|
|
20
|
+
* - `somethingWentWrong` — canonical negative mark, "Try again" when the copy
|
|
21
|
+
* carries a CTA, "Quit process" under it when it
|
|
22
|
+
* carries a quit label; a dead end when it has neither
|
|
20
23
|
*
|
|
21
|
-
* Chrome is CONSTANT. All
|
|
24
|
+
* Chrome is CONSTANT. All the frames are drawn without the logo header and
|
|
22
25
|
* without the verified tag; both are kept here, because the owner rule of
|
|
23
26
|
* 2026-08-18 (#F-30, #F-34) makes the chrome the same on every screen so
|
|
24
27
|
* nothing shifts between states, and every module's connectivity screen must
|
|
@@ -49,11 +52,19 @@ import './ScreenLayout.css';
|
|
|
49
52
|
export const ErrorScreensScreen = forwardRef(({ strings, variant = 'sessionExpired', sessionUrl, copied = false, screenId = `error-screens-${variant}`, overrides, onAction, ...shell }, ref) => {
|
|
50
53
|
const unsupported = variant === 'unsupportedBrowser';
|
|
51
54
|
const noConnection = variant === 'noConnection';
|
|
55
|
+
const generic = variant === 'somethingWentWrong';
|
|
52
56
|
const copy = unsupported
|
|
53
57
|
? strings.unsupportedBrowser
|
|
54
58
|
: noConnection
|
|
55
59
|
? strings.noConnection
|
|
56
|
-
:
|
|
60
|
+
: generic
|
|
61
|
+
? strings.somethingWentWrong
|
|
62
|
+
: strings.sessionExpired;
|
|
63
|
+
const linkLabel = unsupported
|
|
64
|
+
? strings.unsupportedBrowser.continueLabel
|
|
65
|
+
: generic
|
|
66
|
+
? strings.somethingWentWrong.quitLabel
|
|
67
|
+
: undefined;
|
|
57
68
|
return (_jsx(PrizmaResultScreen, { ref: ref,
|
|
58
69
|
/* The connectivity screen leads with the Wi-Fi glyph instead of a
|
|
59
70
|
status mark; the other two carry the canonical negative mark. */
|
|
@@ -65,7 +76,7 @@ export const ErrorScreensScreen = forwardRef(({ strings, variant = 'sessionExpir
|
|
|
65
76
|
.filter(Boolean)
|
|
66
77
|
.join(' '), children: _jsx(IconWifiOff, { size: "l" }) })) : undefined, progress: unsupported && copied ? (_jsx(PrizmaSnackbar, { state: "success", contentResizing: "fill", children: strings.unsupportedBrowser.copiedLabel })) : undefined, title: copy.title, subtitle: copy.subtitle, disclaimer: unsupported
|
|
67
78
|
? sessionUrl ?? strings.unsupportedBrowser.urlPlaceholder
|
|
68
|
-
: undefined, ctaLabel: copy.ctaLabel, linkLabel:
|
|
79
|
+
: undefined, ctaLabel: copy.ctaLabel, linkLabel: linkLabel, verifiedLabel: strings.verifiedLabel, navLabel: strings.navLabel, screenId: screenId, overrides: overrides, onAction: onAction, ...shell }));
|
|
69
80
|
});
|
|
70
81
|
ErrorScreensScreen.displayName = 'ErrorScreensScreen';
|
|
71
82
|
export default ErrorScreensScreen;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
2
|
+
* The four sections.
|
|
3
3
|
* - `sessionExpired` — the link is dead; the user must go back to the provider
|
|
4
4
|
* - `noConnection` — the network went away; retry when it returns
|
|
5
5
|
* - `unsupportedBrowser` — the SDK cannot run here; copy the link and move
|
|
6
|
+
* - `somethingWentWrong` — the generic failure; try again, or nothing, or quit
|
|
6
7
|
*/
|
|
7
|
-
export type ErrorScreensVariant = 'sessionExpired' | 'noConnection' | 'unsupportedBrowser';
|
|
8
|
+
export type ErrorScreensVariant = 'sessionExpired' | 'noConnection' | 'unsupportedBrowser' | 'somethingWentWrong';
|
|
8
9
|
export interface ErrorScreensCopy {
|
|
9
10
|
title: string;
|
|
10
11
|
subtitle?: string;
|
|
@@ -28,4 +29,18 @@ export interface ErrorScreensStrings {
|
|
|
28
29
|
/** Snackbar copy after the link is copied — the frame's second state. */
|
|
29
30
|
copiedLabel: string;
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* The generic failure. Three ways the modules fill it, all the same screen:
|
|
34
|
+
* `ctaLabel` "Try again" (eKYC, eKYB, Forms, Email Input);
|
|
35
|
+
* no `ctaLabel`, a dead end (Certificate Issuance, Qualified Signature);
|
|
36
|
+
* `ctaLabel` plus `quitLabel`, the way out under the retry (Video Selfie).
|
|
37
|
+
* Phone Input's `unknown` fills it with "Continue" instead, because a retry
|
|
38
|
+
* may not be possible there (owner, 2026-10-09) — the CTA is the module's
|
|
39
|
+
* call; the shape and the title are what the family fixes.
|
|
40
|
+
* The title never carries an ellipsis — a failure is not in progress.
|
|
41
|
+
*/
|
|
42
|
+
somethingWentWrong: ErrorScreensCopy & {
|
|
43
|
+
/** Tertiary link under the CTA — "Quit process". Omit for no way out. */
|
|
44
|
+
quitLabel?: string;
|
|
45
|
+
};
|
|
31
46
|
}
|
|
@@ -6,19 +6,27 @@
|
|
|
6
6
|
// 214:3357 Geolocation.error.noNetwork → `noConnection`
|
|
7
7
|
// 240:154 Error screen - Unsupported browser → `unsupportedBrowser`
|
|
8
8
|
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
9
|
+
// plus the one failure every module draws for itself and the file never did:
|
|
10
|
+
//
|
|
11
|
+
// — <module>.error "Something went wrong" → `somethingWentWrong`
|
|
12
|
+
//
|
|
13
|
+
// The failures that belong to the SESSION rather than to any module: the link
|
|
14
|
+
// has expired, the network went away, the browser cannot run the SDK, the
|
|
15
|
+
// server said no for a reason the user cannot act on. Every module can hit all
|
|
16
|
+
// four, which is why they are recorded once in the generic family — a user who
|
|
17
|
+
// sees three different "no internet" screens in one journey reads them as three
|
|
18
|
+
// different products.
|
|
14
19
|
//
|
|
15
20
|
// `noConnection` is deliberately the same screen every module already ships
|
|
16
21
|
// (`FaceCaptureNoConnectionScreen`, `IdCaptureNoConnectionScreen`,
|
|
17
|
-
// `DocumentCaptureNoConnectionScreen`, `GeolocationErrorScreen`'s `noNetwork
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
+
// `DocumentCaptureNoConnectionScreen`, `GeolocationErrorScreen`'s `noNetwork`,
|
|
23
|
+
// Phone Input's and Video Selfie's `noConnection`). `somethingWentWrong` is the
|
|
24
|
+
// same screen eKYC, eKYB, Forms, Email Input, Phone Input, Certificate
|
|
25
|
+
// Issuance, both signatures and Video Selfie already ship. The generic entry is
|
|
26
|
+
// where the shape and the copy are DOCUMENTED; the module copies stay put until
|
|
27
|
+
// someone retires them deliberately, because deleting exported components to
|
|
28
|
+
// save one screen is a breaking change for every host that imports them.
|
|
29
|
+
// Flagged for the owner (DEVIATIONS #GEN-7, #GEN-18).
|
|
22
30
|
//
|
|
23
31
|
// The family has no flow of its own: each of these is entered from wherever the
|
|
24
32
|
// session broke and exits to a retry or to nothing. Core Lab lists it as a
|
|
@@ -9,6 +9,19 @@ export interface FaceCaptureCapturingScreenProps extends Omit<PrizmaCaptureScree
|
|
|
9
9
|
state?: FaceCaptureCapturingState;
|
|
10
10
|
/** Live camera feed (<video>) or sample still (<img>) for the ring window. */
|
|
11
11
|
camera?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Raise the "Need more time?" offer over the feed — the accessibility
|
|
14
|
+
* notification shown 20 s before auto capture falls back to manual.
|
|
15
|
+
*
|
|
16
|
+
* It is a MODIFIER of whatever capturing state is already on screen, not a
|
|
17
|
+
* sixteenth state: the timer runs underneath the guidance, so the user can be
|
|
18
|
+
* told to move closer and offered more time in the same frame. Needs
|
|
19
|
+
* `strings.extendTime`; without it the flag is a no-op, which is what a host
|
|
20
|
+
* that has not localized the copy should get rather than English.
|
|
21
|
+
*/
|
|
22
|
+
extendTime?: boolean;
|
|
23
|
+
/** Tapping "Extend auto-capture". The host resets its own fallback timer. */
|
|
24
|
+
onExtendTime?: () => void;
|
|
12
25
|
}
|
|
13
26
|
/**
|
|
14
27
|
* Face Capture — auto-capture stage (Archetype B, GUIDELINES.md §6-B).
|
|
@@ -27,6 +40,56 @@ export interface FaceCaptureCapturingScreenProps extends Omit<PrizmaCaptureScree
|
|
|
27
40
|
*
|
|
28
41
|
* The archetype adds no offsets of its own — the component owns that spacing
|
|
29
42
|
* (same deviation row).
|
|
43
|
+
*
|
|
44
|
+
* ── The "Need more time?" offer (`extendTime`) ──────────────────────────────
|
|
45
|
+
*
|
|
46
|
+
* Auto capture gives up after a configured timeout and drops the user into
|
|
47
|
+
* manual capture. Someone who is struggling — a tremor, low vision, bad light,
|
|
48
|
+
* an unfamiliar phone — gets moved off the EASIER path precisely because they
|
|
49
|
+
* were slow, which is backwards. So 20 s before the switch, the screen offers
|
|
50
|
+
* to stay on auto. A client turns it on per flow from the dashboard; with it
|
|
51
|
+
* off, nothing about today's capture changes.
|
|
52
|
+
*
|
|
53
|
+
* NOT a nicety — it is the conformance route for WCAG 2.2.1 Timing Adjustable
|
|
54
|
+
* via the *Extend* clause (warn before the limit, ≥20 s to act, ≥10 extensions).
|
|
55
|
+
* Two things follow that the visuals cannot settle: the notice must be able to
|
|
56
|
+
* come back ten times, and it must be ANNOUNCED early enough to be acted on.
|
|
57
|
+
*
|
|
58
|
+
* ── Live-region politeness: `role="alert"`, not the default ────────────────
|
|
59
|
+
*
|
|
60
|
+
* SETTLED 2026-10-05 (Camila). The Snackbar computes `role="status"` (polite)
|
|
61
|
+
* for every state but error, and this instance overrides it to `alert`.
|
|
62
|
+
*
|
|
63
|
+
* A polite region is allowed to wait until the screen reader finishes whatever
|
|
64
|
+
* it is already saying — and on this screen it always IS saying something: the
|
|
65
|
+
* capture instruction under the ring changes as the face moves, so the queue
|
|
66
|
+
* is rarely empty. The offer has a 20 s life. Queued behind two or three
|
|
67
|
+
* guidance announcements it can be read out after it has already expired,
|
|
68
|
+
* which turns the one affordance a struggling user needs into an
|
|
69
|
+
* announcement that the limit has passed.
|
|
70
|
+
*
|
|
71
|
+
* That is not a polish issue, it is the conformance failing: WCAG 2.2.1's
|
|
72
|
+
* Extend clause requires the warning to be given in time to ACT on it. An
|
|
73
|
+
* announcement the user cannot act on does not satisfy it, however correct the
|
|
74
|
+
* visuals. `alert` is assertive, so it interrupts the guidance and is heard
|
|
75
|
+
* while the 20 s is still running.
|
|
76
|
+
*
|
|
77
|
+
* The usual objection to `alert` is that interrupting is rude. It applies to
|
|
78
|
+
* notices that can wait; this one cannot, and it is strictly better to
|
|
79
|
+
* interrupt "Move closer" than to let the window close in silence. It is also
|
|
80
|
+
* why the offer must not be re-raised on a timer — each new `alert` interrupts
|
|
81
|
+
* again. It appears once per countdown, and WCAG allows that up to ten times.
|
|
82
|
+
*
|
|
83
|
+
* ⚠ NEW, not yet authored in Core. Two parts of this notice have no Figma
|
|
84
|
+
* variant behind them and are drawn from the exploration, not from the SoT:
|
|
85
|
+
* • the bold title line — the Snackbar has no `title` slot, so it rides
|
|
86
|
+
* inside `children` as a <strong>. Core to decide whether to adopt a real
|
|
87
|
+
* slot, at which point this moves onto it.
|
|
88
|
+
* • the state — it is `neutral` (blue surface, ⓘ glyph), Camila's call
|
|
89
|
+
* 2026-10-05. `warning` would signal attention more sharply but turns the
|
|
90
|
+
* surface amber, and the exploration's open question is whether amber
|
|
91
|
+
* reads as "hurry up" to someone who was already struggling. The icon
|
|
92
|
+
* cannot be chosen independently: `ICON_BY_STATE` binds it to `state`.
|
|
30
93
|
*/
|
|
31
94
|
export declare const FaceCaptureCapturingScreen: React.ForwardRefExoticComponent<FaceCaptureCapturingScreenProps & React.RefAttributes<HTMLDivElement>>;
|
|
32
95
|
export default FaceCaptureCapturingScreen;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
+
import { PrizmaSnackbar } from '@incodetech/prizma-core-web/snackbar';
|
|
4
5
|
import { PrizmaCaptureScreen } from './CaptureScreen';
|
|
5
6
|
import './FaceCaptureLayout.css';
|
|
6
7
|
/**
|
|
@@ -47,7 +48,66 @@ const SELFIE_STATE = {
|
|
|
47
48
|
*
|
|
48
49
|
* The archetype adds no offsets of its own — the component owns that spacing
|
|
49
50
|
* (same deviation row).
|
|
51
|
+
*
|
|
52
|
+
* ── The "Need more time?" offer (`extendTime`) ──────────────────────────────
|
|
53
|
+
*
|
|
54
|
+
* Auto capture gives up after a configured timeout and drops the user into
|
|
55
|
+
* manual capture. Someone who is struggling — a tremor, low vision, bad light,
|
|
56
|
+
* an unfamiliar phone — gets moved off the EASIER path precisely because they
|
|
57
|
+
* were slow, which is backwards. So 20 s before the switch, the screen offers
|
|
58
|
+
* to stay on auto. A client turns it on per flow from the dashboard; with it
|
|
59
|
+
* off, nothing about today's capture changes.
|
|
60
|
+
*
|
|
61
|
+
* NOT a nicety — it is the conformance route for WCAG 2.2.1 Timing Adjustable
|
|
62
|
+
* via the *Extend* clause (warn before the limit, ≥20 s to act, ≥10 extensions).
|
|
63
|
+
* Two things follow that the visuals cannot settle: the notice must be able to
|
|
64
|
+
* come back ten times, and it must be ANNOUNCED early enough to be acted on.
|
|
65
|
+
*
|
|
66
|
+
* ── Live-region politeness: `role="alert"`, not the default ────────────────
|
|
67
|
+
*
|
|
68
|
+
* SETTLED 2026-10-05 (Camila). The Snackbar computes `role="status"` (polite)
|
|
69
|
+
* for every state but error, and this instance overrides it to `alert`.
|
|
70
|
+
*
|
|
71
|
+
* A polite region is allowed to wait until the screen reader finishes whatever
|
|
72
|
+
* it is already saying — and on this screen it always IS saying something: the
|
|
73
|
+
* capture instruction under the ring changes as the face moves, so the queue
|
|
74
|
+
* is rarely empty. The offer has a 20 s life. Queued behind two or three
|
|
75
|
+
* guidance announcements it can be read out after it has already expired,
|
|
76
|
+
* which turns the one affordance a struggling user needs into an
|
|
77
|
+
* announcement that the limit has passed.
|
|
78
|
+
*
|
|
79
|
+
* That is not a polish issue, it is the conformance failing: WCAG 2.2.1's
|
|
80
|
+
* Extend clause requires the warning to be given in time to ACT on it. An
|
|
81
|
+
* announcement the user cannot act on does not satisfy it, however correct the
|
|
82
|
+
* visuals. `alert` is assertive, so it interrupts the guidance and is heard
|
|
83
|
+
* while the 20 s is still running.
|
|
84
|
+
*
|
|
85
|
+
* The usual objection to `alert` is that interrupting is rude. It applies to
|
|
86
|
+
* notices that can wait; this one cannot, and it is strictly better to
|
|
87
|
+
* interrupt "Move closer" than to let the window close in silence. It is also
|
|
88
|
+
* why the offer must not be re-raised on a timer — each new `alert` interrupts
|
|
89
|
+
* again. It appears once per countdown, and WCAG allows that up to ten times.
|
|
90
|
+
*
|
|
91
|
+
* ⚠ NEW, not yet authored in Core. Two parts of this notice have no Figma
|
|
92
|
+
* variant behind them and are drawn from the exploration, not from the SoT:
|
|
93
|
+
* • the bold title line — the Snackbar has no `title` slot, so it rides
|
|
94
|
+
* inside `children` as a <strong>. Core to decide whether to adopt a real
|
|
95
|
+
* slot, at which point this moves onto it.
|
|
96
|
+
* • the state — it is `neutral` (blue surface, ⓘ glyph), Camila's call
|
|
97
|
+
* 2026-10-05. `warning` would signal attention more sharply but turns the
|
|
98
|
+
* surface amber, and the exploration's open question is whether amber
|
|
99
|
+
* reads as "hurry up" to someone who was already struggling. The icon
|
|
100
|
+
* cannot be chosen independently: `ICON_BY_STATE` binds it to `state`.
|
|
50
101
|
*/
|
|
51
|
-
export const FaceCaptureCapturingScreen = forwardRef(({ strings, state = 'initiating', camera, screenId = 'face-capture-capturing', className, ...rest }, ref) =>
|
|
102
|
+
export const FaceCaptureCapturingScreen = forwardRef(({ strings, state = 'initiating', camera, extendTime, onExtendTime, screenId = 'face-capture-capturing', className, ...rest }, ref) => {
|
|
103
|
+
const offer = strings.extendTime;
|
|
104
|
+
// No copy, no notice: a host that has not localized this must not get
|
|
105
|
+
// English, and the flag alone is not permission to invent it.
|
|
106
|
+
const notice = extendTime && offer ? (_jsxs(PrizmaSnackbar, { state: "neutral", isMultiline: true,
|
|
107
|
+
// Assertive on purpose — see the live-region note in this file's
|
|
108
|
+
// header. The component default here would be `status`.
|
|
109
|
+
role: "alert", linkLabel: offer.linkLabel, onLinkClick: onExtendTime, children: [_jsx("strong", { children: offer.title }), _jsx("br", {}), offer.description] })) : undefined;
|
|
110
|
+
return (_jsx(PrizmaCaptureScreen, { ref: ref, className: className, state: SELFIE_STATE[state], camera: camera, feedbackText: strings.capturing[state], notice: notice, verifiedLabel: strings.verifiedLabel, navLabel: strings.navLabel, screenId: screenId, ...rest }));
|
|
111
|
+
});
|
|
52
112
|
FaceCaptureCapturingScreen.displayName = 'FaceCaptureCapturingScreen';
|
|
53
113
|
export default FaceCaptureCapturingScreen;
|
|
@@ -12,7 +12,72 @@
|
|
|
12
12
|
* inherit all three as correct defaults.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
/*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
|
|
15
|
+
/* The non-status glyph slot this file used to own (`.face-capture-glyph`) was
|
|
16
|
+
* the third byte-identical copy of one pattern, so it moved to
|
|
17
|
+
* `ScreenLayout.css` as `__glyph` — DEVIATIONS #DC-29, closed. */
|
|
18
|
+
|
|
19
|
+
/* ── Short panels: the capture stack moves up, the ring never changes size ───
|
|
20
|
+
* `PrizmaSelfieCapture` is a fixed stack by design: Spacing/40, the 335 stage,
|
|
21
|
+
* Spacing/32, the instruction, and in manual mode another Spacing/32 and the 64
|
|
22
|
+
* shutter, then Spacing/40 — 583 tall on the manual screen, every number
|
|
23
|
+
* measured off the module Figma (DEVIATIONS #12). Under the nav and above the
|
|
24
|
+
* footer's reserve a closed iPhone Duo leaves 513 (678 − 103 − 62, measured
|
|
25
|
+
* 2026-10-14), so the manual stack ran 70 past its column and the shutter
|
|
26
|
+
* landed on the verified tag (shutter 582–646, tag 606–636). The auto-capture
|
|
27
|
+
* screens are 94 shorter and fit the Duo as authored.
|
|
28
|
+
*
|
|
29
|
+
* The RING is not what gives ground. Camila, 2026-10-14: the face frame is the
|
|
30
|
+
* same size on every screen, because the user has to see their face; if it
|
|
31
|
+
* ever had to shrink it would shrink on every capture screen together, and we
|
|
32
|
+
* avoid that. So the stack moves UP instead: the root's Spacing/40 above and
|
|
33
|
+
* below go (the ring sits flush under the nav row, 40 higher than on the
|
|
34
|
+
* reference) and the two Spacing/32 gaps become Spacing/16, which on the
|
|
35
|
+
* manual screen is 112 back — 103 + 334 + 16 + 41 + 16 + 64 = 574, 32 of air
|
|
36
|
+
* above the tag. Instruction and shutter keep their height, the ring its 334.
|
|
37
|
+
*
|
|
38
|
+
* EVERY capture screen takes it, not only the manual one that needed it
|
|
39
|
+
* (Camila, 2026-10-14: "put all face frames at the height that the manual
|
|
40
|
+
* capture one is, so we don't need a jump there"). The ring not moving between
|
|
41
|
+
* screens is the rule Video Selfie's #VS-24 was written for: a capture window
|
|
42
|
+
* that jumps as the step advances reads as a glitch. So on a short panel the
|
|
43
|
+
* whole module's ring is at 103, auto, manual, loading and verdict alike.
|
|
44
|
+
* Outside the query not one declaration exists, so the reference is
|
|
45
|
+
* byte-identical. DEVIATIONS #20. */
|
|
46
|
+
@container pcs-screen (max-height: 720px) {
|
|
47
|
+
.prizma-screen-layout__content--capture > .prizma-selfie-capture {
|
|
48
|
+
padding-block: 0;
|
|
49
|
+
gap: var(--prizma-spacing-16);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* ── Big panels: the ring grows to the column and the stack moves down ───────
|
|
54
|
+
* The mirror of the block above, and the capture counterpart of the tutorial's
|
|
55
|
+
* #F-36. On the 768 × 1024 iPad the column widens to 468 but the stack kept
|
|
56
|
+
* its 335 ring flush under the nav, so the ring read small (335 in a 420
|
|
57
|
+
* content column, 85px of air either side) and high (its centre at 30% of the
|
|
58
|
+
* panel, where the 390 phone has it at 37%), with 300px of empty column under
|
|
59
|
+
* the instruction (Camila, 2026-10-19: "the face frame too small and way up
|
|
60
|
+
* the screen", on the tablet flow, grid and screen view alike).
|
|
61
|
+
*
|
|
62
|
+
* Two owner decisions, 2026-10-20. The RING GROWS: the 2026-10-14 rule that
|
|
63
|
+
* the ring never changes size was written so it would not SHRINK on a short
|
|
64
|
+
* panel, and on a panel this big the person's face is still what the screen is
|
|
65
|
+
* about, so the stage takes the content column's full measure (420 inside the
|
|
66
|
+
* 468 wide column), the way #F-36 lets the tutorial art grow. Every state
|
|
67
|
+
* grows together (auto, manual, loading, verdict) so the ring still never
|
|
68
|
+
* jumps between steps. The STACK MOVES DOWN BY A FIXED OFFSET, not to the
|
|
69
|
+
* centre: the stack under the ring is a different height on every screen
|
|
70
|
+
* (the manual one carries the shutter), so centring THAT would move the ring
|
|
71
|
+
* between steps, the bug #VS-24 exists for; the same reason Video Selfie's
|
|
72
|
+
* #VS-32 took an offset. Spacing/40 + Spacing/32 above the ring puts its
|
|
73
|
+
* centre at 102 + 72 + 210 = 384, 37.5% of 1024, the reference's own
|
|
74
|
+
* proportion (measured 2026-10-20); the manual screen's shutter ends at 765
|
|
75
|
+
* with the verified tag at 978. Both axes gate it for #F-36's reasons: `min-height: 845px` keeps the
|
|
76
|
+
* 844 reference and every short panel byte-identical, `min-width: 468px` keeps
|
|
77
|
+
* it off phones and foldables where the column stays 390. DEVIATIONS #21. */
|
|
78
|
+
@container pcs-screen ((min-height: 845px) and (min-width: 468px)) {
|
|
79
|
+
.prizma-screen-layout__content--capture > .prizma-selfie-capture {
|
|
80
|
+
max-width: 100%;
|
|
81
|
+
padding-top: calc(var(--prizma-spacing-40) + var(--prizma-spacing-32));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -23,6 +23,29 @@ export interface FaceCaptureStrings {
|
|
|
23
23
|
/** faceCapture.capturing.* — the H2 instruction under the ring, per state.
|
|
24
24
|
* `initiating` has no instruction in the design; omit it. */
|
|
25
25
|
capturing: Partial<Record<FaceCaptureCapturingState, string>>;
|
|
26
|
+
/**
|
|
27
|
+
* faceCapture.capturing.extendTime — the accessibility offer that rides any
|
|
28
|
+
* capturing state 20 s before auto capture falls back to manual.
|
|
29
|
+
*
|
|
30
|
+
* It exists for WCAG 2.2.1 Timing Adjustable, satisfied through the *Extend*
|
|
31
|
+
* clause: warn before the limit expires, give the user at least 20 s to
|
|
32
|
+
* extend with a simple action, and let them extend at least ten times. The
|
|
33
|
+
* 20 s is that threshold, not a chosen duration — which is why `description`
|
|
34
|
+
* is a whole string and not a number the screen formats: ten locales write
|
|
35
|
+
* that sentence ten different ways, and the count has to live inside it.
|
|
36
|
+
*
|
|
37
|
+
* Shown only when accessibility mode is ON for the flow (a per-flow
|
|
38
|
+
* dashboard setting). With it off, nothing about today's capture changes.
|
|
39
|
+
* Optional for that reason: a host that never turns it on never writes it.
|
|
40
|
+
*/
|
|
41
|
+
extendTime?: {
|
|
42
|
+
/** Bold first line — "Need more time?" */
|
|
43
|
+
title: string;
|
|
44
|
+
/** "Manual capture starts in 20 s" — carries the count, see above. */
|
|
45
|
+
description: string;
|
|
46
|
+
/** The action that keeps the user on auto — "Extend auto-capture". */
|
|
47
|
+
linkLabel: string;
|
|
48
|
+
};
|
|
26
49
|
/** faceCapture.manualCapture.default */
|
|
27
50
|
manualCapture: {
|
|
28
51
|
/** "Align your face within the silhouette and press the button to capture" */
|
package/dist/FormScreen.css
CHANGED
|
@@ -29,6 +29,20 @@
|
|
|
29
29
|
padding-top: var(--pfs-fields-offset, var(--prizma-spacing-32));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/* ── Field stack pinned to the CTA band ──────────────────────────────────────
|
|
33
|
+
* `fieldsAlign="end"` on `PrizmaFormScreen`. The stack keeps its `flex: 1`
|
|
34
|
+
* column and simply packs its rows at the bottom, so the space between the
|
|
35
|
+
* title block and the first row is what is left over rather than a value
|
|
36
|
+
* anybody declares. The `margin-bottom` is the frame's own Spacing/16 between
|
|
37
|
+
* the card and the Button group (`biometricConsent.empty`, 2001:16361 — the
|
|
38
|
+
* CONTENT column's gap), the same value the scrolling stack uses for the same
|
|
39
|
+
* seam, so the two shapes agree on how far a row sits from Continue. Biometric
|
|
40
|
+
* Consent is the first consumer. DEVIATIONS #BC-1. */
|
|
41
|
+
.prizma-form-screen__fields--end {
|
|
42
|
+
justify-content: flex-end;
|
|
43
|
+
margin-bottom: var(--prizma-spacing-16);
|
|
44
|
+
}
|
|
45
|
+
|
|
32
46
|
/* ── Scrolling field stack ───────────────────────────────────────────────────
|
|
33
47
|
* Screens are authored at 390×844 and never reflow (DEVIATIONS #17), but some
|
|
34
48
|
* Form sections draw a middle column taller than the frame and let it pan:
|