@incodetech/prizma-core-screens 0.2.4 → 0.2.7
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/CurpEnterScreen.d.ts +7 -0
- package/dist/CurpEnterScreen.js +17 -3
- package/dist/CurpGenerateScreen.d.ts +8 -0
- package/dist/CurpGenerateScreen.js +28 -13
- package/dist/CurpLayout.css +8 -34
- package/dist/CurpStrings.d.ts +16 -2
- package/dist/EkybAddressDetailsScreen.d.ts +7 -0
- package/dist/EkybAddressDetailsScreen.js +25 -7
- package/dist/EkybBusinessDetailsScreen.d.ts +6 -0
- package/dist/EkybBusinessDetailsScreen.js +23 -6
- package/dist/EkybCountryScreen.d.ts +13 -5
- package/dist/EkybCountryScreen.js +27 -9
- package/dist/EkybOwnersScreen.d.ts +8 -0
- package/dist/EkybOwnersScreen.js +26 -3
- package/dist/EkybStrings.d.ts +27 -10
- package/dist/EkycCountryCatalog.d.ts +4 -1
- package/dist/EkycCountryCatalog.js +5 -3
- package/dist/EkycCountryFormScreen.d.ts +12 -3
- package/dist/EkycCountryFormScreen.js +28 -10
- package/dist/EkycDetailsScreen.d.ts +7 -0
- package/dist/EkycDetailsScreen.js +21 -4
- package/dist/EkycStrings.d.ts +14 -2
- package/dist/ElectronicSignatureLayout.css +6 -0
- package/dist/EmailInputStrings.d.ts +11 -1
- package/dist/EmailInputVerifyScreen.d.ts +7 -0
- package/dist/EmailInputVerifyScreen.js +17 -3
- package/dist/FaceMatchComparisonScreen.d.ts +3 -3
- package/dist/FaceMatchLayout.css +21 -12
- package/dist/FormScreen.css +16 -0
- package/dist/FormsLongFormScreen.d.ts +8 -0
- package/dist/FormsLongFormScreen.js +34 -13
- package/dist/FormsStrings.d.ts +11 -1
- package/dist/GeolocationBrowserStepsScreen.d.ts +6 -2
- package/dist/GeolocationBrowserStepsScreen.js +7 -3
- package/dist/GeolocationStrings.d.ts +3 -0
- package/dist/IdCaptureLayout.css +40 -0
- package/dist/ListScreen.d.ts +2 -0
- package/dist/ListScreen.js +1 -1
- package/dist/PhoneInputLayout.css +10 -9
- package/dist/PhoneInputStrings.d.ts +11 -1
- package/dist/PhoneInputVerifyScreen.d.ts +8 -0
- package/dist/PhoneInputVerifyScreen.js +19 -6
- package/dist/QualifiedSignatureAcceptScreen.js +6 -1
- package/dist/QualifiedSignatureDocumentScreen.d.ts +13 -9
- package/dist/QualifiedSignatureDocumentScreen.js +18 -16
- package/dist/QualifiedSignatureLayout.css +76 -0
- package/dist/QualifiedSignatureStrings.d.ts +10 -0
- package/dist/ScreenNav.css +8 -0
- package/dist/ScreenNav.d.ts +15 -2
- package/dist/ScreenNav.js +10 -3
- package/dist/VideoSelfieIdCaptureScreen.d.ts +10 -3
- package/dist/VideoSelfieIdCaptureScreen.js +44 -13
- package/dist/VideoSelfieLayout.css +164 -33
- package/dist/VideoSelfieSelfieCaptureScreen.d.ts +44 -27
- package/dist/VideoSelfieSelfieCaptureScreen.js +65 -39
- package/dist/VideoSelfieSpeakScreen.js +18 -1
- package/dist/VideoSelfieStrings.d.ts +78 -12
- package/dist/VideoSelfieTurnHeadScreen.d.ts +51 -0
- package/dist/VideoSelfieTurnHeadScreen.js +63 -0
- package/dist/VideoSelfieTutorialScreen.js +13 -5
- package/dist/VideoSelfieWaveScreen.d.ts +53 -0
- package/dist/VideoSelfieWaveScreen.js +62 -0
- package/dist/WatchlistBusinessFormScreen.d.ts +11 -7
- package/dist/WatchlistBusinessFormScreen.js +27 -13
- package/dist/WatchlistBusinessStrings.d.ts +21 -7
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -0
- package/dist/types.d.ts +3 -1
- package/package.json +14 -3
- package/samples/video-selfie-room.png +0 -0
- package/src/CurpEnterScreen.tsx +21 -4
- package/src/CurpGenerateScreen.tsx +46 -22
- package/src/CurpLayout.css +8 -34
- package/src/CurpStrings.ts +22 -2
- package/src/EkybAddressDetailsScreen.tsx +32 -4
- package/src/EkybBusinessDetailsScreen.tsx +23 -5
- package/src/EkybCountryScreen.tsx +28 -7
- package/src/EkybOwnersScreen.tsx +34 -3
- package/src/EkybStrings.ts +29 -10
- package/src/EkycCountryCatalog.ts +9 -4
- package/src/EkycCountryFormScreen.tsx +51 -12
- package/src/EkycDetailsScreen.tsx +22 -1
- package/src/EkycStrings.ts +14 -2
- package/src/ElectronicSignatureLayout.css +6 -0
- package/src/EmailInputStrings.ts +12 -1
- package/src/EmailInputVerifyScreen.tsx +21 -4
- package/src/FaceMatchComparisonScreen.tsx +3 -3
- package/src/FaceMatchLayout.css +21 -12
- package/src/FormScreen.css +16 -0
- package/src/FormsLongFormScreen.tsx +41 -13
- package/src/FormsStrings.ts +12 -1
- package/src/GeolocationBrowserStepsScreen.tsx +6 -3
- package/src/GeolocationStrings.ts +3 -0
- package/src/IdCaptureLayout.css +40 -0
- package/src/ListScreen.tsx +10 -1
- package/src/PhoneInputLayout.css +10 -9
- package/src/PhoneInputStrings.ts +12 -1
- package/src/PhoneInputVerifyScreen.tsx +21 -5
- package/src/QualifiedSignatureAcceptScreen.tsx +12 -1
- package/src/QualifiedSignatureDocumentScreen.tsx +27 -17
- package/src/QualifiedSignatureLayout.css +76 -0
- package/src/QualifiedSignatureStrings.ts +10 -0
- package/src/ScreenNav.css +8 -0
- package/src/ScreenNav.tsx +35 -5
- package/src/VideoSelfieIdCaptureScreen.tsx +116 -30
- package/src/VideoSelfieLayout.css +164 -33
- package/src/VideoSelfieSelfieCaptureScreen.tsx +104 -59
- package/src/VideoSelfieSpeakScreen.tsx +25 -14
- package/src/VideoSelfieStrings.ts +85 -12
- package/src/VideoSelfieTurnHeadScreen.tsx +151 -0
- package/src/VideoSelfieTutorialScreen.tsx +34 -23
- package/src/VideoSelfieWaveScreen.tsx +135 -0
- package/src/WatchlistBusinessFormScreen.tsx +35 -16
- package/src/WatchlistBusinessStrings.ts +21 -7
- package/src/index.ts +14 -0
- package/src/types.ts +3 -1
|
@@ -1,58 +1,84 @@
|
|
|
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 {
|
|
4
|
+
import { PrizmaSelfieCapture, } from '@incodetech/prizma-core-web/selfie-capture';
|
|
5
|
+
import { PrizmaStepper } from '@incodetech/prizma-core-web/stepper';
|
|
6
|
+
import { PrizmaScreenShell } from './ScreenShell';
|
|
5
7
|
import './ScreenLayout.css';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
8
|
+
import './ViewfinderScreen.css';
|
|
9
|
+
import './VideoSelfieLayout.css';
|
|
10
|
+
/**
|
|
11
|
+
* Purple state → Core `PrizmaSelfieCapture` state, in the OVERLAY recipe.
|
|
12
|
+
*
|
|
13
|
+
* `start` is `filled`, not `empty`: `empty` is Core's *searching* beat and
|
|
14
|
+
* draws the dashed silhouette guide, which `8.0` and every `9.x` message
|
|
15
|
+
* deliberately hide (`silhouette hidden=true` on the frames — the guide
|
|
16
|
+
* belongs to the head-turn steps, which do draw it). `filled` is Core's
|
|
17
|
+
* "window open, neutral ring, no guide" beat, and in overlay mode there is no
|
|
18
|
+
* still to fill it with: the host's feed shows straight through the ring.
|
|
19
|
+
*/
|
|
10
20
|
const CAPTURE_STATE = {
|
|
11
|
-
start: '
|
|
21
|
+
start: 'filled',
|
|
12
22
|
processing: 'uploading',
|
|
13
23
|
success: 'success',
|
|
14
24
|
failed: 'error',
|
|
15
25
|
};
|
|
26
|
+
/** Which beat of the seven-step journey the liveness ring occupies — the
|
|
27
|
+
* microphone grant is 1, the two document sides 2 and 3. */
|
|
28
|
+
const STEP = 4;
|
|
16
29
|
/**
|
|
17
|
-
* Video Selfie — the liveness ring (Archetype
|
|
18
|
-
* ONE screen for
|
|
19
|
-
* `selfie capture feedback 9.
|
|
20
|
-
* variants of Core's `PrizmaSelfieCapture`, which
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
30
|
+
* Video Selfie — the liveness ring (Archetype D, GUIDELINES.md §6-D; always
|
|
31
|
+
* dark). ONE screen for every purple section of groups 8 and 9: `selfie
|
|
32
|
+
* capture 8.0–8.3` and every `selfie capture feedback 9.x` message. They are
|
|
33
|
+
* `state` × `feedbackText` variants of Core's `PrizmaSelfieCapture`, which is
|
|
34
|
+
* exactly how the component is axed.
|
|
35
|
+
*
|
|
36
|
+
* **Rebuilt 2026-09-30 to follow the frames.** The first pass shipped Core's
|
|
37
|
+
* INLINE recipe — the feed inside a circular window on a WHITE surface, the
|
|
38
|
+
* verdicts dissolving the ring into a centred mark — and logged the gap. On
|
|
39
|
+
* the module page that read as a different product from the rest of the flow:
|
|
40
|
+
* a small ring on white between two full-bleed dark camera screens, with the
|
|
41
|
+
* ring vanishing on the very beats Figma keeps it (owner, 2026-09-30: "they
|
|
42
|
+
* are looking very broken… a broken experience"). Rather than hand-roll the
|
|
43
|
+
* full-bleed composition here, Core's `PrizmaSelfieCapture` grew the
|
|
44
|
+
* `mode="overlay"` + `scrim` axis `PrizmaIdCapture` already carries — it is
|
|
45
|
+
* the Figma library's own `Capture / Selfie overlay` component — and this
|
|
46
|
+
* screen composes it. Nothing about the ring, the scrim, the glow sweeps, the
|
|
47
|
+
* verdict marks or the instruction typography is re-implemented (§7).
|
|
48
|
+
* DEVIATIONS #VS-22.
|
|
49
|
+
*
|
|
50
|
+
* The composition, measured off `8.0` (390×844):
|
|
24
51
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* Face Capture pilot settled it.
|
|
52
|
+
* - the camera runs FULL-BLEED on `.prizma-viewfinder__surface` (`selfie bg
|
|
53
|
+
* image`, 390×844 — it passes under the browser chrome too);
|
|
54
|
+
* - the journey stepper sits in the band the logo nav normally occupies
|
|
55
|
+
* (`top content` y=56, the Stepper 342 wide at x=24), the module-wide
|
|
56
|
+
* treatment `VideoSelfieLayout.css` owns;
|
|
57
|
+
* - the ring is 335 centred in the remaining air (Figma 27,188 → 362,523
|
|
58
|
+
* against a 708-high content area), with the instruction stacked under it.
|
|
59
|
+
* Core's own Spacing/32 gap replaces Figma's 25.5 (the token wins, §4).
|
|
34
60
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* instruction copy.
|
|
61
|
+
* NO verified tag: `8.x` and `9.x` draw nothing between the instruction and
|
|
62
|
+
* the bottom of the screen (GUIDELINES §1 — follow the module's section, not
|
|
63
|
+
* the default). The document stage keeps its tag because its own sections
|
|
64
|
+
* draw one (#VS-3).
|
|
40
65
|
*/
|
|
41
|
-
export const VideoSelfieSelfieCaptureScreen = forwardRef(({ strings, state = 'start', feedback, camera, screenId = `video-selfie-selfie-capture-${feedback ?? state}`, overrides, onAction, ...shell }, ref) => {
|
|
66
|
+
export const VideoSelfieSelfieCaptureScreen = forwardRef(({ strings, state = 'start', feedback, documentType = 'id', camera, screenId = `video-selfie-selfie-capture-${feedback ?? state}`, overrides, onAction, className, ...shell }, ref) => {
|
|
42
67
|
const slice = strings.selfieCapture;
|
|
43
68
|
/* The live ring carries an instruction; the in-flight and verdict beats
|
|
44
69
|
carry Core's own status copy instead (its `statusLabels` slot), which is
|
|
45
70
|
why the feedback line is scoped to the live state. */
|
|
46
|
-
const feedbackText =
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
71
|
+
const feedbackText = state === 'start' ? (feedback ? slice.feedback[feedback] : slice.startLabel) : undefined;
|
|
72
|
+
return (_jsxs(PrizmaScreenShell, { ref: ref, dark: true, className: className, ...shell, children: [_jsx("div", { className: "prizma-viewfinder__surface", children: camera }), _jsx("div", { className: "video-selfie-stepper", children: _jsx(PrizmaStepper, { steps: 7, currentState: STEP, documentType: documentType, completedValueText: strings.stepperCompletedLabel }) }), _jsx("div", { className: [
|
|
73
|
+
'prizma-viewfinder__content',
|
|
74
|
+
overrides?.align === 'left' ? 'prizma-viewfinder__content--left' : '',
|
|
75
|
+
]
|
|
76
|
+
.filter(Boolean)
|
|
77
|
+
.join(' '), children: _jsx("div", { className: "video-selfie-band video-selfie-band--ring", children: _jsx(PrizmaSelfieCapture, { mode: "overlay", scrim: true, state: CAPTURE_STATE[state], feedbackText: feedbackText, statusLabels: {
|
|
78
|
+
uploading: slice.processingLabel,
|
|
79
|
+
success: slice.successLabel,
|
|
80
|
+
error: slice.failedLabel,
|
|
81
|
+
} }) }) })] }));
|
|
56
82
|
});
|
|
57
83
|
VideoSelfieSelfieCaptureScreen.displayName = 'VideoSelfieSelfieCaptureScreen';
|
|
58
84
|
export default VideoSelfieSelfieCaptureScreen;
|
|
@@ -59,7 +59,21 @@ export const VideoSelfieSpeakScreen = forwardRef(({ strings, family = 'voiceCons
|
|
|
59
59
|
onPrimaryClick: () => onAction?.({ type: 'cta', screenId }),
|
|
60
60
|
secondaryLabel: slice.confirm.retryLabel,
|
|
61
61
|
onSecondaryClick: () => onAction?.({ type: 'secondary', screenId }),
|
|
62
|
-
} })) : stage === 'processing'
|
|
62
|
+
} })) : stage === 'processing' || stage === 'success' ? (
|
|
63
|
+
/* The two verdict cards. They carry no buttons, so left alone they came
|
|
64
|
+
out shorter than the prompt they replace and the sheet jumped between
|
|
65
|
+
steps; and Core's Modal renders `body` AFTER the heading, which put
|
|
66
|
+
the spinner and the check UNDER their own label. Both are fixed in
|
|
67
|
+
the module: `--status` gives the card the prompt's measure and centres
|
|
68
|
+
its content, and the mark is passed as the LEADING slot so it stacks
|
|
69
|
+
above the copy the way `10.2` / `10.3` draw it.
|
|
70
|
+
|
|
71
|
+
No ✕ either. Figma draws one, but it is the same call #VS-5 already
|
|
72
|
+
made on the prompt: closing mid-step strands the user with no way
|
|
73
|
+
back, and a dismiss that appears on two of five cards and not the
|
|
74
|
+
other three is the inconsistency, not the fix (owner, 2026-09-30).
|
|
75
|
+
DEVIATIONS #VS-25. */
|
|
76
|
+
_jsx(PrizmaModalContent, { title: stage === 'processing' ? slice.processingLabel : slice.successLabel, showCloseIcon: false, showButtonGroup: false, leading: _jsx("span", { className: "video-selfie-sheet-status", children: stage === 'processing' ? (_jsx(PrizmaLoadingSpinner, { loadingLabel: slice.processingLabel })) : (_jsx(IconStatusPositive, { size: "xl" })) }) })) : (_jsx(PrizmaModalContent, { title: prompt, subtitle: slice.eyebrow,
|
|
63
77
|
/* No dismiss ✕ on the record step: the sheet IS the step, and closing it
|
|
64
78
|
would strand the user mid-recording with no way back into the flow
|
|
65
79
|
(owner-reported 2026-08-19). The confirm sheet already suppressed it;
|
|
@@ -87,6 +101,9 @@ export const VideoSelfieSpeakScreen = forwardRef(({ strings, family = 'voiceCons
|
|
|
87
101
|
.join(' '), children: _jsx("div", { className: "video-selfie-band", children: stage === 'recording' ? (_jsxs("span", { className: "video-selfie-recording", children: [_jsx(IconSoundWave, { size: "xl" }), _jsx("span", { className: "prizma-viewfinder__title", children: slice.recordingLabel })] })) : null }) }), isConfirm ? (_jsx("div", { className: "video-selfie-sheet-scrim", "aria-hidden": "true" })) : null, _jsx("div", { "data-prizma-theme": "light", className: [
|
|
88
102
|
'video-selfie-sheet-panel',
|
|
89
103
|
isConfirm ? 'video-selfie-sheet-panel--centered' : '',
|
|
104
|
+
stage === 'processing' || stage === 'success'
|
|
105
|
+
? 'video-selfie-sheet-panel--status'
|
|
106
|
+
: '',
|
|
90
107
|
]
|
|
91
108
|
.filter(Boolean)
|
|
92
109
|
.join(' '), children: card })] }));
|
|
@@ -13,18 +13,58 @@ export interface VideoSelfieTutorialRow {
|
|
|
13
13
|
* (its icon set is documented as "the Video Selfie sequence").
|
|
14
14
|
*/
|
|
15
15
|
export type VideoSelfieTutorialRowKind = 'recording' | 'idFront' | 'idBack' | 'passport' | 'frontCamera' | 'waveHand' | 'questions' | 'speak';
|
|
16
|
-
/** The
|
|
17
|
-
|
|
16
|
+
/** The live-feedback messages of group 9, in Figma order. Fourteen since
|
|
17
|
+
* 2026-09-30: `9.12`–`9.14` (head cover · closed eyes · face occlusion) were
|
|
18
|
+
* added to the frames after the module's first build and are on the Web, iOS
|
|
19
|
+
* and Android full-flow maps. */
|
|
20
|
+
export type VideoSelfieFeedbackKind = 'dark' | 'blurry' | 'maskDetected' | 'glassesDetected' | 'headTilted' | 'lookAtCamera' | 'turnRight' | 'turnLeft' | 'alignFace' | 'moveCloser' | 'moveAway' | 'headCover' | 'closedEyes' | 'faceOcclusion';
|
|
21
|
+
/** Which head-turn the liveness step is asking for (the `🙂↔️ Turn Head` band
|
|
22
|
+
* of the full-flow frames: Left · Right · Upward · Downward, each drawn as a
|
|
23
|
+
* guide beat and a captured beat). */
|
|
24
|
+
export type VideoSelfieTurnDirection = 'left' | 'right' | 'up' | 'down';
|
|
18
25
|
/** Which face of the document the ID stage is on (groups 3 and 5). */
|
|
19
26
|
export type VideoSelfieIdSide = 'front' | 'back';
|
|
20
|
-
/** Why an ID read was rejected (group 6, the `.1`–`.4` variants). */
|
|
21
27
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
28
|
+
* Why an ID read was rejected — the `.1`–`.4` suffix of every group 6 section.
|
|
29
|
+
*
|
|
30
|
+
* RESTORED 2026-09-30. It was removed on 2026-08-19 on the reading that "group
|
|
31
|
+
* 6 draws exactly four sections", because the `📐 Screens specs & behavior`
|
|
32
|
+
* page documents ONE representative per group (`6.1.1`, `6.2.1`, `6.3.1`,
|
|
33
|
+
* `6.4.1`) and the rest are component variants inside it. The `🔸 Full flow
|
|
34
|
+
* map` draws them all, and they carry DIFFERENT copy, not a translation of
|
|
35
|
+
* one line: `6.2.2 - name failed` reads "Name verification failed",
|
|
36
|
+
* `6.2.3 - photo failed` reads "ID photo verification failed",
|
|
37
|
+
* `6.1.4 - type mismatch try again` reads "ID type mismatch, show the same ID".
|
|
38
|
+
* Collapsing them to one line lost three rejections a user can actually hit.
|
|
39
|
+
* DEVIATIONS #VS-1.
|
|
27
40
|
*/
|
|
41
|
+
export type VideoSelfieIdErrorReason = 'scan' | 'name' | 'photo' | 'typeMismatch';
|
|
42
|
+
/**
|
|
43
|
+
* A live CONDITION the document stage can coach the user out of, as opposed
|
|
44
|
+
* to a rejection it has to report.
|
|
45
|
+
*
|
|
46
|
+
* BOTH legs run five of these before the identity checks — the frames draw
|
|
47
|
+
* them on the back only, and the owner extended them to the front on
|
|
48
|
+
* 2026-09-30 ("I think it would be nice to add them for the front as well").
|
|
49
|
+
* Each one draws its OWN screen: the frame in its
|
|
50
|
+
* matching red treatment with a `Capture feedback` bubble above it saying
|
|
51
|
+
* what to do. They were all wired to the single "ID scan failed, try again"
|
|
52
|
+
* card until 2026-09-30 — the five screens are `frame` nodes rather than
|
|
53
|
+
* component instances in the flow map, so the first trace walked straight
|
|
54
|
+
* past them (owner: "we do have those states in figma").
|
|
55
|
+
*
|
|
56
|
+
* All five map 1:1 onto states Core already ships: four onto
|
|
57
|
+
* `PrizmaIdCapture`'s own `error-*` treatments, and `blurry` onto the plain
|
|
58
|
+
* error border plus the bubble, which is the recipe the owner set for
|
|
59
|
+
* detection results on 2026-07-28 (the border is the state, the message is
|
|
60
|
+
* the bubble).
|
|
61
|
+
*/
|
|
62
|
+
/** One coaching bubble's copy: what is wrong, and what to do about it. */
|
|
63
|
+
export interface VideoSelfieConditionCopy {
|
|
64
|
+
title: string;
|
|
65
|
+
subtitle: string;
|
|
66
|
+
}
|
|
67
|
+
export type VideoSelfieIdCondition = 'wrongSide' | 'notAligned' | 'blurry' | 'glare' | 'tooDark';
|
|
28
68
|
/** Whether the rejection invites a retry (`6.1` / `6.3`) or is terminal
|
|
29
69
|
* (`6.2` / `6.4`). */
|
|
30
70
|
export type VideoSelfieIdErrorSeverity = 'tryAgain' | 'failed';
|
|
@@ -125,9 +165,26 @@ export interface VideoSelfieStrings {
|
|
|
125
165
|
processingLabel: string;
|
|
126
166
|
/** Accepted label (`3.3` / `5.3`). */
|
|
127
167
|
successLabel: string;
|
|
128
|
-
/** Rejection copy, keyed reason → severity (group 6).
|
|
129
|
-
|
|
130
|
-
|
|
168
|
+
/** Rejection copy, keyed reason → severity (group 6). The two axes are
|
|
169
|
+
* independent: `6.1.x` / `6.3.x` are the try-again lines, `6.2.x` /
|
|
170
|
+
* `6.4.x` the terminal ones, and the `.1`–`.4` suffix is the reason. The
|
|
171
|
+
* two sides share the copy — only the stepper beat differs. */
|
|
172
|
+
errors: Record<VideoSelfieIdErrorReason, Record<VideoSelfieIdErrorSeverity, string>>;
|
|
173
|
+
/**
|
|
174
|
+
* The five coaching bubbles — title + what to do about it.
|
|
175
|
+
*
|
|
176
|
+
* Only `wrongSide` is keyed by side, because it is the only one that
|
|
177
|
+
* NAMES the face the user should be showing; the other four describe the
|
|
178
|
+
* shot, which is the same problem whichever face is up. Keying all five by
|
|
179
|
+
* side would duplicate four strings per language for nothing.
|
|
180
|
+
*/
|
|
181
|
+
conditions: {
|
|
182
|
+
wrongSide: Record<VideoSelfieIdSide, VideoSelfieConditionCopy>;
|
|
183
|
+
notAligned: VideoSelfieConditionCopy;
|
|
184
|
+
blurry: VideoSelfieConditionCopy;
|
|
185
|
+
glare: VideoSelfieConditionCopy;
|
|
186
|
+
tooDark: VideoSelfieConditionCopy;
|
|
187
|
+
};
|
|
131
188
|
};
|
|
132
189
|
/** Group 4 — the flip interstitial. */
|
|
133
190
|
flipId: {
|
|
@@ -147,8 +204,17 @@ export interface VideoSelfieStrings {
|
|
|
147
204
|
successLabel: string;
|
|
148
205
|
/** `8.3` rejected. */
|
|
149
206
|
failedLabel: string;
|
|
150
|
-
/** Group 9 — the
|
|
207
|
+
/** Group 9 — the fourteen live-feedback lines. */
|
|
151
208
|
feedback: Record<VideoSelfieFeedbackKind, string>;
|
|
209
|
+
/** The head-turn step's own instruction, one per direction (the
|
|
210
|
+
* `🙂↔️ Turn Head` band of the full-flow frames). */
|
|
211
|
+
turn: Record<VideoSelfieTurnDirection, string>;
|
|
212
|
+
/** The wave step's instruction and its three checkpoints (`👋 Wave`). */
|
|
213
|
+
wave: {
|
|
214
|
+
instruction: string;
|
|
215
|
+
steps: string[];
|
|
216
|
+
doneLabel: string;
|
|
217
|
+
};
|
|
152
218
|
};
|
|
153
219
|
/** Groups 10 · 11 — the spoken steps. */
|
|
154
220
|
speak: Record<VideoSelfieSpeakFamily, VideoSelfieSpeakStrings>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type PrizmaScreenShellProps } from './ScreenShell';
|
|
3
|
+
import type { PrizmaScreenActionHandler, PrizmaScreenOverrides } from './types';
|
|
4
|
+
import type { VideoSelfieDocumentType, VideoSelfieStrings, VideoSelfieTurnDirection } from './VideoSelfieStrings';
|
|
5
|
+
import './ScreenLayout.css';
|
|
6
|
+
import './ViewfinderScreen.css';
|
|
7
|
+
import './VideoSelfieLayout.css';
|
|
8
|
+
/** The two beats each direction is drawn in: the stage ASKING (dashed guide
|
|
9
|
+
* ring) and the stage having SEEN it (the positive ring). */
|
|
10
|
+
export type VideoSelfieTurnStage = 'ask' | 'done';
|
|
11
|
+
export interface VideoSelfieTurnHeadScreenProps extends Omit<PrizmaScreenShellProps, 'dark' | 'title' | 'children'> {
|
|
12
|
+
/** Module copy — this screen reads `selfieCapture.turn`. */
|
|
13
|
+
strings: VideoSelfieStrings;
|
|
14
|
+
/** Which way the user is asked to turn. Default `left`. */
|
|
15
|
+
direction?: VideoSelfieTurnDirection;
|
|
16
|
+
/** Asking, or seen. Default `ask`. */
|
|
17
|
+
stage?: VideoSelfieTurnStage;
|
|
18
|
+
/** Which document the journey collects — the Stepper's own `documentType`. */
|
|
19
|
+
documentType?: VideoSelfieDocumentType;
|
|
20
|
+
/** Live camera feed (<video>) or sample still (<img>), full-bleed behind
|
|
21
|
+
* the ring. */
|
|
22
|
+
camera?: ReactNode;
|
|
23
|
+
screenId?: string;
|
|
24
|
+
overrides?: PrizmaScreenOverrides;
|
|
25
|
+
onAction?: PrizmaScreenActionHandler;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Video Selfie — the head-turn beats of the liveness sequence (Archetype D,
|
|
29
|
+
* GUIDELINES.md §6-D; always dark). NEW 2026-09-30: the `🙂↔️ Turn Head` band
|
|
30
|
+
* of the Web / iOS / Android full-flow frames draws four directions, each in
|
|
31
|
+
* two beats, and none of them existed in the screens package — the module
|
|
32
|
+
* jumped straight from the liveness ring to the spoken steps.
|
|
33
|
+
*
|
|
34
|
+
* The frames are the liveness stage with three changes, and nothing else:
|
|
35
|
+
*
|
|
36
|
+
* - the ring is Core's GUIDE stroke (`ring="dashed"`) while the stage waits
|
|
37
|
+
* for the turn, and the positive ring once it has seen it;
|
|
38
|
+
* - the silhouette guide is ON (Core's `empty`), because the user is being
|
|
39
|
+
* asked to move their face rather than hold it still;
|
|
40
|
+
* - a small arrow chip sits between the ring and the instruction, saying
|
|
41
|
+
* which way.
|
|
42
|
+
*
|
|
43
|
+
* The mark under the ring is a canonical bank glyph at 2xl — the disc is part
|
|
44
|
+
* of the drawing, not something this screen paints. `PrizmaTitle.icon` takes
|
|
45
|
+
* `status | spinner | none` only (DEVIATIONS #10), so the block below the ring
|
|
46
|
+
* is composed here; it declares a gap and nothing else. CORE REQUEST stands: a
|
|
47
|
+
* `glyph` slot on the capture stage, so this and Face Capture's future hint
|
|
48
|
+
* marks share one component. DEVIATIONS #VS-20.
|
|
49
|
+
*/
|
|
50
|
+
export declare const VideoSelfieTurnHeadScreen: React.ForwardRefExoticComponent<VideoSelfieTurnHeadScreenProps & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
export default VideoSelfieTurnHeadScreen;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { IconArrowDownCircle, IconArrowLeftCircle, IconArrowRightCircle, IconArrowUpCircle, } from '@incodetech/prizma-core-icons';
|
|
5
|
+
import { PrizmaSelfieCapture } from '@incodetech/prizma-core-web/selfie-capture';
|
|
6
|
+
import { PrizmaStepper } from '@incodetech/prizma-core-web/stepper';
|
|
7
|
+
import { PrizmaScreenShell } from './ScreenShell';
|
|
8
|
+
import './ScreenLayout.css';
|
|
9
|
+
import './ViewfinderScreen.css';
|
|
10
|
+
import './VideoSelfieLayout.css';
|
|
11
|
+
/**
|
|
12
|
+
* Direction → the mark under the ring, from the canonical bank at 2xl (48) —
|
|
13
|
+
* the size the frames draw it (`element container` 342×48, the glyph centred).
|
|
14
|
+
*
|
|
15
|
+
* It is ONE glyph, a filled disc with the arrow knocked out of it, which is
|
|
16
|
+
* what `Left Circle - Iconly Pro` is. The first pass paired a 24px bare arrow
|
|
17
|
+
* with a hand-made disc behind it and read as a thin chevron floating on the
|
|
18
|
+
* camera (owner, 2026-09-30). The four circle arrows were extracted into the
|
|
19
|
+
* bank on the same day. Nothing is drawn here (§10).
|
|
20
|
+
*/
|
|
21
|
+
const TURN_ICON = {
|
|
22
|
+
left: _jsx(IconArrowLeftCircle, { size: "2xl" }),
|
|
23
|
+
right: _jsx(IconArrowRightCircle, { size: "2xl" }),
|
|
24
|
+
up: _jsx(IconArrowUpCircle, { size: "2xl" }),
|
|
25
|
+
down: _jsx(IconArrowDownCircle, { size: "2xl" }),
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Video Selfie — the head-turn beats of the liveness sequence (Archetype D,
|
|
29
|
+
* GUIDELINES.md §6-D; always dark). NEW 2026-09-30: the `🙂↔️ Turn Head` band
|
|
30
|
+
* of the Web / iOS / Android full-flow frames draws four directions, each in
|
|
31
|
+
* two beats, and none of them existed in the screens package — the module
|
|
32
|
+
* jumped straight from the liveness ring to the spoken steps.
|
|
33
|
+
*
|
|
34
|
+
* The frames are the liveness stage with three changes, and nothing else:
|
|
35
|
+
*
|
|
36
|
+
* - the ring is Core's GUIDE stroke (`ring="dashed"`) while the stage waits
|
|
37
|
+
* for the turn, and the positive ring once it has seen it;
|
|
38
|
+
* - the silhouette guide is ON (Core's `empty`), because the user is being
|
|
39
|
+
* asked to move their face rather than hold it still;
|
|
40
|
+
* - a small arrow chip sits between the ring and the instruction, saying
|
|
41
|
+
* which way.
|
|
42
|
+
*
|
|
43
|
+
* The mark under the ring is a canonical bank glyph at 2xl — the disc is part
|
|
44
|
+
* of the drawing, not something this screen paints. `PrizmaTitle.icon` takes
|
|
45
|
+
* `status | spinner | none` only (DEVIATIONS #10), so the block below the ring
|
|
46
|
+
* is composed here; it declares a gap and nothing else. CORE REQUEST stands: a
|
|
47
|
+
* `glyph` slot on the capture stage, so this and Face Capture's future hint
|
|
48
|
+
* marks share one component. DEVIATIONS #VS-20.
|
|
49
|
+
*/
|
|
50
|
+
export const VideoSelfieTurnHeadScreen = forwardRef(({ strings, direction = 'left', stage = 'ask', documentType = 'id', camera, screenId = `video-selfie-turn-${direction}-${stage}`, overrides, onAction, className, ...shell }, ref) => (_jsxs(PrizmaScreenShell, { ref: ref, dark: true, className: className, ...shell, children: [_jsx("div", { className: "prizma-viewfinder__surface", children: camera }), _jsx("div", { className: "video-selfie-stepper", children: _jsx(PrizmaStepper, { steps: 7, currentState: 4, documentType: documentType, completedValueText: strings.stepperCompletedLabel }) }), _jsx("div", { className: [
|
|
51
|
+
'prizma-viewfinder__content',
|
|
52
|
+
overrides?.align === 'left' ? 'prizma-viewfinder__content--left' : '',
|
|
53
|
+
]
|
|
54
|
+
.filter(Boolean)
|
|
55
|
+
.join(' '), children: _jsxs("div", { className: "video-selfie-band video-selfie-band--ring", children: [_jsx(PrizmaSelfieCapture, { mode: "overlay", scrim: true,
|
|
56
|
+
/* The ring says WHICH WAY: the half on the side being asked for
|
|
57
|
+
is dashed while the stage waits and positive once it has seen
|
|
58
|
+
the turn, and the other half stays the neutral track. The state
|
|
59
|
+
is `filled` on both beats — the verdict lives in the arc, not in
|
|
60
|
+
the whole ring, so nothing else about the stage changes. */
|
|
61
|
+
guide: { side: direction, state: stage === 'ask' ? 'waiting' : 'seen' }, state: "filled", showFeedback: false }), _jsxs("div", { className: "video-selfie-turn", children: [_jsx("span", { className: "video-selfie-turn__mark", children: TURN_ICON[direction] }), _jsx("p", { className: "prizma-viewfinder__title", children: strings.selfieCapture.turn[direction] })] })] }) })] })));
|
|
62
|
+
VideoSelfieTurnHeadScreen.displayName = 'VideoSelfieTurnHeadScreen';
|
|
63
|
+
export default VideoSelfieTurnHeadScreen;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { IconBankCard,
|
|
5
|
-
import {
|
|
4
|
+
import { IconBankCard, IconMessages, IconMicrophone, IconNumberedList, IconPassportCapture, IconUser, IconUserInformation, IconWavingHand, } from '@incodetech/prizma-core-icons';
|
|
5
|
+
import { PrizmaList } from '@incodetech/prizma-core-web/list';
|
|
6
6
|
import { PrizmaListScreen } from './ListScreen';
|
|
7
7
|
import './ScreenLayout.css';
|
|
8
8
|
/**
|
|
@@ -13,9 +13,13 @@ import './ScreenLayout.css';
|
|
|
13
13
|
*/
|
|
14
14
|
const ROW_ICONS = {
|
|
15
15
|
recording: _jsx(IconMicrophone, { size: "m" }),
|
|
16
|
-
|
|
16
|
+
// `user-information` and `passport-capture`, NOT `id-front` and `passport`:
|
|
17
|
+
// the tutorial promises the steps the Stepper then counts off, and the
|
|
18
|
+
// Stepper's own sequence uses these two. Corrected 2026-09-30 — the tutorial
|
|
19
|
+
// was drawing a different ID glyph from the one the journey shows.
|
|
20
|
+
idFront: _jsx(IconUserInformation, { size: "m" }),
|
|
17
21
|
idBack: _jsx(IconBankCard, { size: "m" }),
|
|
18
|
-
passport: _jsx(
|
|
22
|
+
passport: _jsx(IconPassportCapture, { size: "m" }),
|
|
19
23
|
frontCamera: _jsx(IconUser, { size: "m" }),
|
|
20
24
|
waveHand: _jsx(IconWavingHand, { size: "m" }),
|
|
21
25
|
questions: _jsx(IconNumberedList, { size: "m" }),
|
|
@@ -36,6 +40,10 @@ const ROW_ICONS = {
|
|
|
36
40
|
* middle is a seven-row list that must span the column and start at the top —
|
|
37
41
|
* the distinction `ScreenLayout.css` draws between `__flex` and `__list`.
|
|
38
42
|
*/
|
|
39
|
-
export const VideoSelfieTutorialScreen = forwardRef(({ strings, documentType = 'id', screenId = `video-selfie-tutorial-${documentType}`, overrides, onAction, ...shell }, ref) => (_jsx(PrizmaListScreen, { ref: ref, title: strings.tutorial.title, subtitle: strings.tutorial.subtitle, ctaLabel: strings.tutorial.ctaLabel, verifiedLabel: strings.verifiedLabel, navLabel: strings.navLabel, screenId: screenId, overrides: overrides, onAction: onAction, ...shell, children: _jsx(
|
|
43
|
+
export const VideoSelfieTutorialScreen = forwardRef(({ strings, documentType = 'id', screenId = `video-selfie-tutorial-${documentType}`, overrides, onAction, ...shell }, ref) => (_jsx(PrizmaListScreen, { ref: ref, title: strings.tutorial.title, subtitle: strings.tutorial.subtitle, ctaLabel: strings.tutorial.ctaLabel, verifiedLabel: strings.verifiedLabel, navLabel: strings.navLabel, screenId: screenId, overrides: overrides, onAction: onAction, ...shell, children: _jsx(PrizmaList, { variant: "icons-chain", showItem3: true, showItem4: true, showItem5: true, showItem6: true, showItem7: true, items: strings.tutorial.rows[documentType].map((row) => ({
|
|
44
|
+
variant: 'icon-connector',
|
|
45
|
+
label: row.label,
|
|
46
|
+
icon: ROW_ICONS[row.kind],
|
|
47
|
+
})) }) })));
|
|
40
48
|
VideoSelfieTutorialScreen.displayName = 'VideoSelfieTutorialScreen';
|
|
41
49
|
export default VideoSelfieTutorialScreen;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
|
+
import { type PrizmaScreenShellProps } from './ScreenShell';
|
|
3
|
+
import type { PrizmaScreenActionHandler, PrizmaScreenOverrides } from './types';
|
|
4
|
+
import type { VideoSelfieDocumentType, VideoSelfieStrings } from './VideoSelfieStrings';
|
|
5
|
+
import './ScreenLayout.css';
|
|
6
|
+
import './ViewfinderScreen.css';
|
|
7
|
+
import './VideoSelfieLayout.css';
|
|
8
|
+
/** The three beats the `👋 Wave` band draws. */
|
|
9
|
+
export type VideoSelfieWaveStage = 'waiting' | 'ready' | 'success';
|
|
10
|
+
export interface VideoSelfieWaveScreenProps extends Omit<PrizmaScreenShellProps, 'dark' | 'title' | 'children'> {
|
|
11
|
+
/** Module copy — this screen reads `selfieCapture.wave`. */
|
|
12
|
+
strings: VideoSelfieStrings;
|
|
13
|
+
/** Which beat to render. Default `waiting`. */
|
|
14
|
+
stage?: VideoSelfieWaveStage;
|
|
15
|
+
/** Which document the journey collects — the Stepper's own `documentType`. */
|
|
16
|
+
documentType?: VideoSelfieDocumentType;
|
|
17
|
+
/** Live camera feed (<video>) or sample still (<img>), full-bleed behind
|
|
18
|
+
* the ring. */
|
|
19
|
+
camera?: ReactNode;
|
|
20
|
+
screenId?: string;
|
|
21
|
+
overrides?: PrizmaScreenOverrides;
|
|
22
|
+
onAction?: PrizmaScreenActionHandler;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Video Selfie — the hand-wave beat of the liveness sequence (Archetype D,
|
|
26
|
+
* GUIDELINES.md §6-D; always dark). NEW 2026-09-30, from the `👋 Wave` band of
|
|
27
|
+
* the full-flow frames; like the head turns, it had no screen at all.
|
|
28
|
+
*
|
|
29
|
+
* The composition is the liveness ring with the spoken steps' card under it:
|
|
30
|
+
* the feed runs full-bleed, the ring frames the face, and Core's Modal asks
|
|
31
|
+
* for the gesture with a CTA that only lights up once the stage has seen it
|
|
32
|
+
* (the frames' "5 second delay" note between the two). The verdict beat is the
|
|
33
|
+
* ring's own positive treatment plus the module's "Looking good!" — the SAME
|
|
34
|
+
* copy and the same mark `8.2` uses, because it is the same answer.
|
|
35
|
+
*
|
|
36
|
+
* The scrim/panel positioning is the recipe Document Capture's method sheet
|
|
37
|
+
* established (DEVIATIONS #DC-30): Core's safe presenter portals to
|
|
38
|
+
* `document.body`, which would escape the 390×844 frame and the host's
|
|
39
|
+
* `transform: scale()`, so the screen owns the panel and Core owns the card.
|
|
40
|
+
* The card is pinned back to LIGHT inside the dark shell for the reason
|
|
41
|
+
* `VideoSelfieSpeakScreen` documents (#VS-10).
|
|
42
|
+
*
|
|
43
|
+
* The hand that sweeps across the face is Core's, not this screen's:
|
|
44
|
+
* `PrizmaSelfieCapture` grew a `hint="wave"` axis on 2026-09-30 (owner: "we
|
|
45
|
+
* need the hand wave"), the face counterpart of `PrizmaIdCapture`'s animated
|
|
46
|
+
* hand hint, so the art and the choreography live where every other capture
|
|
47
|
+
* gesture already lives. The screen only says WHEN: the hand runs while the
|
|
48
|
+
* stage is waiting and stops the moment the wave has landed, which is the
|
|
49
|
+
* frames' own "5 second delay · Remove animation (Accessibility)" note.
|
|
50
|
+
* DEVIATIONS #VS-21.
|
|
51
|
+
*/
|
|
52
|
+
export declare const VideoSelfieWaveScreen: React.ForwardRefExoticComponent<VideoSelfieWaveScreenProps & React.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
export default VideoSelfieWaveScreen;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef } from 'react';
|
|
4
|
+
import { PrizmaModalContent } from '@incodetech/prizma-core-web/modal';
|
|
5
|
+
import { PrizmaSelfieCapture } from '@incodetech/prizma-core-web/selfie-capture';
|
|
6
|
+
import { PrizmaStepper } from '@incodetech/prizma-core-web/stepper';
|
|
7
|
+
import { PrizmaScreenShell } from './ScreenShell';
|
|
8
|
+
import './ScreenLayout.css';
|
|
9
|
+
import './ViewfinderScreen.css';
|
|
10
|
+
import './VideoSelfieLayout.css';
|
|
11
|
+
/**
|
|
12
|
+
* Video Selfie — the hand-wave beat of the liveness sequence (Archetype D,
|
|
13
|
+
* GUIDELINES.md §6-D; always dark). NEW 2026-09-30, from the `👋 Wave` band of
|
|
14
|
+
* the full-flow frames; like the head turns, it had no screen at all.
|
|
15
|
+
*
|
|
16
|
+
* The composition is the liveness ring with the spoken steps' card under it:
|
|
17
|
+
* the feed runs full-bleed, the ring frames the face, and Core's Modal asks
|
|
18
|
+
* for the gesture with a CTA that only lights up once the stage has seen it
|
|
19
|
+
* (the frames' "5 second delay" note between the two). The verdict beat is the
|
|
20
|
+
* ring's own positive treatment plus the module's "Looking good!" — the SAME
|
|
21
|
+
* copy and the same mark `8.2` uses, because it is the same answer.
|
|
22
|
+
*
|
|
23
|
+
* The scrim/panel positioning is the recipe Document Capture's method sheet
|
|
24
|
+
* established (DEVIATIONS #DC-30): Core's safe presenter portals to
|
|
25
|
+
* `document.body`, which would escape the 390×844 frame and the host's
|
|
26
|
+
* `transform: scale()`, so the screen owns the panel and Core owns the card.
|
|
27
|
+
* The card is pinned back to LIGHT inside the dark shell for the reason
|
|
28
|
+
* `VideoSelfieSpeakScreen` documents (#VS-10).
|
|
29
|
+
*
|
|
30
|
+
* The hand that sweeps across the face is Core's, not this screen's:
|
|
31
|
+
* `PrizmaSelfieCapture` grew a `hint="wave"` axis on 2026-09-30 (owner: "we
|
|
32
|
+
* need the hand wave"), the face counterpart of `PrizmaIdCapture`'s animated
|
|
33
|
+
* hand hint, so the art and the choreography live where every other capture
|
|
34
|
+
* gesture already lives. The screen only says WHEN: the hand runs while the
|
|
35
|
+
* stage is waiting and stops the moment the wave has landed, which is the
|
|
36
|
+
* frames' own "5 second delay · Remove animation (Accessibility)" note.
|
|
37
|
+
* DEVIATIONS #VS-21.
|
|
38
|
+
*/
|
|
39
|
+
export const VideoSelfieWaveScreen = forwardRef(({ strings, stage = 'waiting', documentType = 'id', camera, screenId = `video-selfie-wave-${stage}`, overrides, onAction, className, ...shell }, ref) => {
|
|
40
|
+
const slice = strings.selfieCapture.wave;
|
|
41
|
+
const seen = stage === 'success';
|
|
42
|
+
return (_jsxs(PrizmaScreenShell, { ref: ref, dark: true, className: className, ...shell, children: [_jsx("div", { className: "prizma-viewfinder__surface", children: camera }), _jsx("div", { className: "video-selfie-stepper", children: _jsx(PrizmaStepper, { steps: 7, currentState: 5, documentType: documentType, completedValueText: strings.stepperCompletedLabel }) }), _jsx("div", { className: [
|
|
43
|
+
'prizma-viewfinder__content',
|
|
44
|
+
overrides?.align === 'left' ? 'prizma-viewfinder__content--left' : '',
|
|
45
|
+
]
|
|
46
|
+
.filter(Boolean)
|
|
47
|
+
.join(' '), children: _jsx("div", { className: "video-selfie-band video-selfie-band--ring", children: _jsx(PrizmaSelfieCapture, { mode: "overlay", scrim: true, state: seen ? 'success' : 'filled',
|
|
48
|
+
/* The hand demonstrates the gesture only while the stage is
|
|
49
|
+
still waiting for it. On `ready` the wave has landed and the
|
|
50
|
+
CTA lights up instead — the frames drop the animation at
|
|
51
|
+
exactly that beat. */
|
|
52
|
+
hint: stage === 'waiting' ? 'wave' : undefined, showFeedback: false, statusLabels: { success: strings.selfieCapture.successLabel } }) }) }), seen ? null : (_jsx("div", { "data-prizma-theme": "light", className: "video-selfie-sheet-panel", children: _jsx(PrizmaModalContent, { title: slice.instruction, showCloseIcon: false, buttonGroupProps: {
|
|
53
|
+
orientation: 'vertical-v1',
|
|
54
|
+
showPrimary: true,
|
|
55
|
+
showSecondary: false,
|
|
56
|
+
primaryLabel: slice.doneLabel,
|
|
57
|
+
primaryDisabled: stage !== 'ready',
|
|
58
|
+
onPrimaryClick: () => onAction?.({ type: 'cta', screenId }),
|
|
59
|
+
} }) }))] }));
|
|
60
|
+
});
|
|
61
|
+
VideoSelfieWaveScreen.displayName = 'VideoSelfieWaveScreen';
|
|
62
|
+
export default VideoSelfieWaveScreen;
|
|
@@ -21,8 +21,9 @@ export interface WatchlistBusinessFormScreenProps extends Omit<PrizmaFormScreenP
|
|
|
21
21
|
* (GUIDELINES.md §6-E, `PrizmaFormScreen`).
|
|
22
22
|
*
|
|
23
23
|
* ONE screen for both purple form sections (`watchlist.default` and
|
|
24
|
-
* `watchlist.filled`)
|
|
25
|
-
*
|
|
24
|
+
* `watchlist.filled`), plus the `emptyError` state the GUIDELINES §6-E
|
|
25
|
+
* empty-submit rule adds (Elena 2026-09-30, see note 3): measured against the 390 frames they share an identical
|
|
26
|
+
* skeleton — nav → Title (H2 + the "fields marked with *" H5) → Spacing/32 → Country dropdown,
|
|
26
27
|
* Business Name and Tax ID at Spacing/16 → primary CTA → tag — and differ ONLY
|
|
27
28
|
* in field content and whether the CTA is live.
|
|
28
29
|
*
|
|
@@ -37,11 +38,14 @@ export interface WatchlistBusinessFormScreenProps extends Omit<PrizmaFormScreenP
|
|
|
37
38
|
* and Core's `readOnly`, the other way to make a field inert, paints the
|
|
38
39
|
* DISABLED grey surface on states Figma draws white (DEVIATIONS #PI-6).
|
|
39
40
|
* Neither section greys anything, so `disabled` is set nowhere.
|
|
40
|
-
* 3. The CTA state comes from the SECTION, not from the values
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* 3. The CTA state comes from the SECTION, not from the values. Under the
|
|
42
|
+
* GUIDELINES §6-E empty-submit rule (Elena 2026-09-30) "Continue" is live
|
|
43
|
+
* on the resting `default` form, so the user can press it, and greys ONLY
|
|
44
|
+
* on `emptyError`, the state that press leads to: Country and Business
|
|
45
|
+
* Name render empty (no placeholder) in Core's error state with
|
|
46
|
+
* `requiredError`. Tax ID never errors — `filled` leaves it empty with the
|
|
47
|
+
* CTA live, which is how we know it does not gate the lookup (DEVIATIONS
|
|
48
|
+
* #WB-2).
|
|
45
49
|
* 4. The country flag is Core's canonical raster (24×18, radius 2) in the
|
|
46
50
|
* dropdown's LEADING slot — `PrizmaCountryFlag` composed into
|
|
47
51
|
* `PrizmaDropdown.renderLeading`, which exists for exactly this case and
|