@incodetech/prizma-core-screens 0.2.7 → 0.2.12

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 (168) hide show
  1. package/dist/BiometricConsentScreen.d.ts +95 -0
  2. package/dist/BiometricConsentScreen.js +91 -0
  3. package/dist/BiometricConsentStrings.d.ts +84 -0
  4. package/dist/BiometricConsentStrings.js +31 -0
  5. package/dist/CaptureScreen.d.ts +13 -0
  6. package/dist/CaptureScreen.js +2 -2
  7. package/dist/DemoScreensLayout.css +16 -0
  8. package/dist/DemoScreensRedirectScreen.d.ts +6 -1
  9. package/dist/DemoScreensRedirectScreen.js +3 -2
  10. package/dist/DemoScreensStrings.d.ts +5 -0
  11. package/dist/DigitalIdUploadErrorScreen.d.ts +31 -0
  12. package/dist/DigitalIdUploadErrorScreen.js +26 -0
  13. package/dist/DigitalIdUploadFileTooLargeScreen.d.ts +27 -0
  14. package/dist/DigitalIdUploadFileTooLargeScreen.js +21 -0
  15. package/dist/DigitalIdUploadReviewScreen.d.ts +57 -0
  16. package/dist/DigitalIdUploadReviewScreen.js +44 -0
  17. package/dist/DigitalIdUploadStrings.d.ts +64 -0
  18. package/dist/DigitalIdUploadStrings.js +19 -0
  19. package/dist/DigitalIdUploadTutorialScreen.d.ts +28 -0
  20. package/dist/DigitalIdUploadTutorialScreen.js +23 -0
  21. package/dist/DocumentCaptureIllustration.d.ts +1 -1
  22. package/dist/EkybCountryScreen.d.ts +6 -6
  23. package/dist/EkybCountryScreen.js +20 -7
  24. package/dist/EkybStrings.d.ts +6 -1
  25. package/dist/ErrorScreensScreen.d.ts +5 -2
  26. package/dist/ErrorScreensScreen.js +15 -4
  27. package/dist/ErrorScreensStrings.d.ts +17 -2
  28. package/dist/ErrorScreensStrings.js +18 -10
  29. package/dist/FaceCaptureCapturingScreen.d.ts +63 -0
  30. package/dist/FaceCaptureCapturingScreen.js +62 -2
  31. package/dist/FaceCaptureLayout.css +69 -4
  32. package/dist/FaceCaptureStrings.d.ts +23 -0
  33. package/dist/FormScreen.css +14 -0
  34. package/dist/FormScreen.d.ts +28 -0
  35. package/dist/FormScreen.js +3 -2
  36. package/dist/IdCaptureLayout.css +165 -2
  37. package/dist/IdCaptureStageScreen.d.ts +47 -0
  38. package/dist/IdCaptureStageScreen.js +39 -3
  39. package/dist/IdCaptureStrings.d.ts +19 -0
  40. package/dist/ListScreen.d.ts +19 -0
  41. package/dist/ListScreen.js +7 -2
  42. package/dist/LoaderScreen.d.ts +7 -5
  43. package/dist/LoaderScreen.js +7 -5
  44. package/dist/LoadersStrings.d.ts +18 -5
  45. package/dist/OcrReviewErrorScreen.d.ts +30 -0
  46. package/dist/OcrReviewErrorScreen.js +24 -0
  47. package/dist/OcrReviewLayout.css +24 -0
  48. package/dist/OcrReviewLoadingScreen.d.ts +25 -0
  49. package/dist/OcrReviewLoadingScreen.js +19 -0
  50. package/dist/OcrReviewScreen.d.ts +76 -0
  51. package/dist/OcrReviewScreen.js +65 -0
  52. package/dist/OcrReviewStrings.d.ts +47 -0
  53. package/dist/OcrReviewStrings.js +17 -0
  54. package/dist/OcrReviewSuccessScreen.d.ts +30 -0
  55. package/dist/OcrReviewSuccessScreen.js +24 -0
  56. package/dist/PermissionsAllowScreen.d.ts +8 -11
  57. package/dist/PermissionsAllowScreen.js +8 -11
  58. package/dist/PermissionsAskScreen.d.ts +41 -0
  59. package/dist/PermissionsAskScreen.js +43 -0
  60. package/dist/PermissionsBrowserStepsScreen.d.ts +9 -2
  61. package/dist/PermissionsBrowserStepsScreen.js +12 -3
  62. package/dist/PermissionsLayout.css +47 -0
  63. package/dist/PermissionsStrings.d.ts +20 -9
  64. package/dist/PermissionsStrings.js +10 -4
  65. package/dist/PhoneInputOtpScreen.d.ts +8 -0
  66. package/dist/PhoneInputOtpScreen.js +26 -19
  67. package/dist/PhoneInputStrings.d.ts +11 -3
  68. package/dist/PhoneInputVerifyScreen.js +21 -5
  69. package/dist/QualifiedSignatureDocumentScreen.d.ts +8 -5
  70. package/dist/QualifiedSignatureDocumentScreen.js +9 -6
  71. package/dist/QualifiedSignatureResultScreen.d.ts +16 -13
  72. package/dist/QualifiedSignatureResultScreen.js +17 -18
  73. package/dist/QualifiedSignatureStrings.d.ts +11 -4
  74. package/dist/ResultScreen.d.ts +8 -0
  75. package/dist/ResultScreen.js +14 -3
  76. package/dist/ReusabilityCredentialSelectionScreen.d.ts +95 -0
  77. package/dist/ReusabilityCredentialSelectionScreen.js +94 -0
  78. package/dist/ReusabilityLayout.css +241 -0
  79. package/dist/ReusabilityPrivacyPolicyScreen.d.ts +55 -0
  80. package/dist/ReusabilityPrivacyPolicyScreen.js +44 -0
  81. package/dist/ReusabilityStrings.d.ts +85 -0
  82. package/dist/ReusabilityStrings.js +37 -0
  83. package/dist/ReviewScreen.d.ts +38 -12
  84. package/dist/ReviewScreen.js +41 -8
  85. package/dist/ScreenLayout.css +382 -6
  86. package/dist/VideoSelfieErrorScreen.js +1 -1
  87. package/dist/VideoSelfieIdCaptureScreen.js +1 -1
  88. package/dist/VideoSelfieLayout.css +304 -2
  89. package/dist/VideoSelfieSelfieCaptureScreen.js +1 -1
  90. package/dist/VideoSelfieSpeakScreen.js +1 -1
  91. package/dist/VideoSelfieStrings.d.ts +4 -1
  92. package/dist/VideoSelfieTurnHeadScreen.js +14 -11
  93. package/dist/VideoSelfieTutorialScreen.d.ts +9 -0
  94. package/dist/VideoSelfieTutorialScreen.js +10 -1
  95. package/dist/VideoSelfieWaveScreen.js +1 -1
  96. package/dist/ViewfinderScreen.css +36 -0
  97. package/dist/flows.d.ts +8 -0
  98. package/dist/flows.js +17 -0
  99. package/dist/index.d.ts +16 -0
  100. package/dist/index.js +12 -0
  101. package/dist/styles.css +3 -0
  102. package/package.json +68 -3
  103. package/samples/video-selfie-camera-wide.jpg +0 -0
  104. package/samples/video-selfie-room-wide.jpg +0 -0
  105. package/src/BiometricConsentScreen.tsx +192 -0
  106. package/src/BiometricConsentStrings.ts +119 -0
  107. package/src/CaptureScreen.tsx +17 -0
  108. package/src/DemoScreensLayout.css +16 -0
  109. package/src/DemoScreensRedirectScreen.tsx +14 -6
  110. package/src/DemoScreensStrings.ts +5 -0
  111. package/src/DigitalIdUploadErrorScreen.tsx +83 -0
  112. package/src/DigitalIdUploadFileTooLargeScreen.tsx +67 -0
  113. package/src/DigitalIdUploadReviewScreen.tsx +119 -0
  114. package/src/DigitalIdUploadStrings.ts +88 -0
  115. package/src/DigitalIdUploadTutorialScreen.tsx +59 -0
  116. package/src/DocumentCaptureIllustration.tsx +1 -1
  117. package/src/EkybCountryScreen.tsx +23 -6
  118. package/src/EkybStrings.ts +6 -1
  119. package/src/ErrorScreensScreen.tsx +15 -4
  120. package/src/ErrorScreensStrings.ts +37 -12
  121. package/src/FaceCaptureCapturingScreen.tsx +102 -13
  122. package/src/FaceCaptureLayout.css +69 -4
  123. package/src/FaceCaptureStrings.ts +24 -0
  124. package/src/FormScreen.css +14 -0
  125. package/src/FormScreen.tsx +34 -0
  126. package/src/IdCaptureLayout.css +165 -2
  127. package/src/IdCaptureStageScreen.tsx +75 -0
  128. package/src/IdCaptureStrings.ts +19 -0
  129. package/src/ListScreen.tsx +48 -9
  130. package/src/LoaderScreen.tsx +7 -5
  131. package/src/LoadersStrings.ts +18 -5
  132. package/src/OcrReviewErrorScreen.tsx +53 -0
  133. package/src/OcrReviewLayout.css +24 -0
  134. package/src/OcrReviewLoadingScreen.tsx +48 -0
  135. package/src/OcrReviewScreen.tsx +190 -0
  136. package/src/OcrReviewStrings.ts +69 -0
  137. package/src/OcrReviewSuccessScreen.tsx +52 -0
  138. package/src/PermissionsAllowScreen.tsx +9 -10
  139. package/src/PermissionsAskScreen.tsx +105 -0
  140. package/src/PermissionsBrowserStepsScreen.tsx +11 -3
  141. package/src/PermissionsLayout.css +47 -0
  142. package/src/PermissionsStrings.ts +42 -12
  143. package/src/PhoneInputOtpScreen.tsx +23 -3
  144. package/src/PhoneInputStrings.ts +11 -3
  145. package/src/PhoneInputVerifyScreen.tsx +24 -4
  146. package/src/QualifiedSignatureDocumentScreen.tsx +9 -7
  147. package/src/QualifiedSignatureResultScreen.tsx +28 -26
  148. package/src/QualifiedSignatureStrings.ts +11 -4
  149. package/src/ResultScreen.tsx +33 -2
  150. package/src/ReusabilityCredentialSelectionScreen.tsx +246 -0
  151. package/src/ReusabilityLayout.css +241 -0
  152. package/src/ReusabilityPrivacyPolicyScreen.tsx +109 -0
  153. package/src/ReusabilityStrings.ts +127 -0
  154. package/src/ReviewScreen.tsx +96 -27
  155. package/src/ScreenLayout.css +382 -6
  156. package/src/VideoSelfieErrorScreen.tsx +1 -1
  157. package/src/VideoSelfieIdCaptureScreen.tsx +9 -1
  158. package/src/VideoSelfieLayout.css +304 -2
  159. package/src/VideoSelfieSelfieCaptureScreen.tsx +9 -1
  160. package/src/VideoSelfieSpeakScreen.tsx +9 -1
  161. package/src/VideoSelfieStrings.ts +4 -2
  162. package/src/VideoSelfieTurnHeadScreen.tsx +25 -14
  163. package/src/VideoSelfieTutorialScreen.tsx +11 -0
  164. package/src/VideoSelfieWaveScreen.tsx +9 -1
  165. package/src/ViewfinderScreen.css +36 -0
  166. package/src/flows.ts +25 -0
  167. package/src/index.ts +74 -3
  168. package/src/styles.css +3 -0
package/dist/index.js CHANGED
@@ -35,6 +35,10 @@ export { DocumentCaptureConfirmImageScreen, } from './DocumentCaptureConfirmImag
35
35
  export { DocumentCaptureConfirmUploadScreen, } from './DocumentCaptureConfirmUploadScreen';
36
36
  export { DocumentCaptureGenericErrorScreen, } from './DocumentCaptureGenericErrorScreen';
37
37
  export { DocumentCaptureNoConnectionScreen, } from './DocumentCaptureNoConnectionScreen';
38
+ export { DigitalIdUploadTutorialScreen, } from './DigitalIdUploadTutorialScreen';
39
+ export { DigitalIdUploadReviewScreen, } from './DigitalIdUploadReviewScreen';
40
+ export { DigitalIdUploadErrorScreen, } from './DigitalIdUploadErrorScreen';
41
+ export { DigitalIdUploadFileTooLargeScreen, } from './DigitalIdUploadFileTooLargeScreen';
38
42
  export { IdCaptureDocumentSelectionScreen, } from './IdCaptureDocumentSelectionScreen';
39
43
  export { IdCaptureAgeVerificationScreen, } from './IdCaptureAgeVerificationScreen';
40
44
  export { IdCaptureTutorialScreen, } from './IdCaptureTutorialScreen';
@@ -82,6 +86,9 @@ export { FormsFieldScreen } from './FormsFieldScreen';
82
86
  export { FormsLongFormScreen } from './FormsLongFormScreen';
83
87
  export { FormsSuccessScreen } from './FormsSuccessScreen';
84
88
  export { DataSharingConsentConsentScreen } from './DataSharingConsentConsentScreen';
89
+ export { BiometricConsentScreen } from './BiometricConsentScreen';
90
+ export { ReusabilityCredentialSelectionScreen, REUSABILITY_SCAN_NEW, } from './ReusabilityCredentialSelectionScreen';
91
+ export { ReusabilityPrivacyPolicyScreen } from './ReusabilityPrivacyPolicyScreen';
85
92
  export { EKYC_COUNTRY_CATALOG, ekycCountryVariant, } from './EkycCountryCatalog';
86
93
  export { EkycCountryFormScreen } from './EkycCountryFormScreen';
87
94
  export { EkycDetailsScreen } from './EkycDetailsScreen';
@@ -123,6 +130,11 @@ export { NfcSuccessScreen } from './NfcSuccessScreen';
123
130
  export { NfcSymbolScreen } from './NfcSymbolScreen';
124
131
  export { NfcTryAgainScreen, } from './NfcTryAgainScreen';
125
132
  export { NfcTutorialScreen } from './NfcTutorialScreen';
133
+ export { OcrReviewScreen } from './OcrReviewScreen';
134
+ export { OcrReviewLoadingScreen } from './OcrReviewLoadingScreen';
135
+ export { OcrReviewSuccessScreen } from './OcrReviewSuccessScreen';
136
+ export { OcrReviewErrorScreen } from './OcrReviewErrorScreen';
137
+ export { PermissionsAskScreen, } from './PermissionsAskScreen';
126
138
  export { PermissionsRequiredScreen, } from './PermissionsRequiredScreen';
127
139
  export { PermissionsAllowScreen, } from './PermissionsAllowScreen';
128
140
  export { PermissionsBrowserStepsScreen, } from './PermissionsBrowserStepsScreen';
package/dist/styles.css CHANGED
@@ -25,8 +25,11 @@
25
25
  @import './FormsLayout.css';
26
26
  @import './IdCaptureLayout.css';
27
27
  @import './NfcLayout.css';
28
+ @import './OcrReviewLayout.css';
29
+ @import './PermissionsLayout.css';
28
30
  @import './PhoneInputLayout.css';
29
31
  @import './QualifiedSignatureLayout.css';
32
+ @import './ReusabilityLayout.css';
30
33
  @import './ScreenLayout.css';
31
34
  @import './ScreenNav.css';
32
35
  @import './ScreenShell.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/prizma-core-screens",
3
- "version": "0.2.7",
3
+ "version": "0.2.12",
4
4
  "description": "Prizma Design System — SDK module screens: composed, responsive, brand-themeable React screens built from @incodetech/prizma-core-web.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -15,6 +15,11 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "import": "./dist/index.js"
17
17
  },
18
+ "./biometric-consent-screen": {
19
+ "source": "./src/BiometricConsentScreen.tsx",
20
+ "types": "./dist/BiometricConsentScreen.d.ts",
21
+ "import": "./dist/BiometricConsentScreen.js"
22
+ },
18
23
  "./capture-overlay": {
19
24
  "source": "./src/CaptureOverlay.tsx",
20
25
  "types": "./dist/CaptureOverlay.d.ts",
@@ -115,6 +120,26 @@
115
120
  "types": "./dist/DemoScreensTermsScreen.d.ts",
116
121
  "import": "./dist/DemoScreensTermsScreen.js"
117
122
  },
123
+ "./digital-id-upload-error-screen": {
124
+ "source": "./src/DigitalIdUploadErrorScreen.tsx",
125
+ "types": "./dist/DigitalIdUploadErrorScreen.d.ts",
126
+ "import": "./dist/DigitalIdUploadErrorScreen.js"
127
+ },
128
+ "./digital-id-upload-file-too-large-screen": {
129
+ "source": "./src/DigitalIdUploadFileTooLargeScreen.tsx",
130
+ "types": "./dist/DigitalIdUploadFileTooLargeScreen.d.ts",
131
+ "import": "./dist/DigitalIdUploadFileTooLargeScreen.js"
132
+ },
133
+ "./digital-id-upload-review-screen": {
134
+ "source": "./src/DigitalIdUploadReviewScreen.tsx",
135
+ "types": "./dist/DigitalIdUploadReviewScreen.d.ts",
136
+ "import": "./dist/DigitalIdUploadReviewScreen.js"
137
+ },
138
+ "./digital-id-upload-tutorial-screen": {
139
+ "source": "./src/DigitalIdUploadTutorialScreen.tsx",
140
+ "types": "./dist/DigitalIdUploadTutorialScreen.d.ts",
141
+ "import": "./dist/DigitalIdUploadTutorialScreen.js"
142
+ },
118
143
  "./document-capture-capture-screen": {
119
144
  "source": "./src/DocumentCaptureCaptureScreen.tsx",
120
145
  "types": "./dist/DocumentCaptureCaptureScreen.d.ts",
@@ -495,11 +520,36 @@
495
520
  "types": "./dist/NfcTutorialScreen.d.ts",
496
521
  "import": "./dist/NfcTutorialScreen.js"
497
522
  },
523
+ "./ocr-review-error-screen": {
524
+ "source": "./src/OcrReviewErrorScreen.tsx",
525
+ "types": "./dist/OcrReviewErrorScreen.d.ts",
526
+ "import": "./dist/OcrReviewErrorScreen.js"
527
+ },
528
+ "./ocr-review-loading-screen": {
529
+ "source": "./src/OcrReviewLoadingScreen.tsx",
530
+ "types": "./dist/OcrReviewLoadingScreen.d.ts",
531
+ "import": "./dist/OcrReviewLoadingScreen.js"
532
+ },
533
+ "./ocr-review-screen": {
534
+ "source": "./src/OcrReviewScreen.tsx",
535
+ "types": "./dist/OcrReviewScreen.d.ts",
536
+ "import": "./dist/OcrReviewScreen.js"
537
+ },
538
+ "./ocr-review-success-screen": {
539
+ "source": "./src/OcrReviewSuccessScreen.tsx",
540
+ "types": "./dist/OcrReviewSuccessScreen.d.ts",
541
+ "import": "./dist/OcrReviewSuccessScreen.js"
542
+ },
498
543
  "./permissions-allow-screen": {
499
544
  "source": "./src/PermissionsAllowScreen.tsx",
500
545
  "types": "./dist/PermissionsAllowScreen.d.ts",
501
546
  "import": "./dist/PermissionsAllowScreen.js"
502
547
  },
548
+ "./permissions-ask-screen": {
549
+ "source": "./src/PermissionsAskScreen.tsx",
550
+ "types": "./dist/PermissionsAskScreen.d.ts",
551
+ "import": "./dist/PermissionsAskScreen.js"
552
+ },
503
553
  "./permissions-browser-steps-screen": {
504
554
  "source": "./src/PermissionsBrowserStepsScreen.tsx",
505
555
  "types": "./dist/PermissionsBrowserStepsScreen.d.ts",
@@ -575,6 +625,16 @@
575
625
  "types": "./dist/ResultScreen.d.ts",
576
626
  "import": "./dist/ResultScreen.js"
577
627
  },
628
+ "./reusability-credential-selection-screen": {
629
+ "source": "./src/ReusabilityCredentialSelectionScreen.tsx",
630
+ "types": "./dist/ReusabilityCredentialSelectionScreen.d.ts",
631
+ "import": "./dist/ReusabilityCredentialSelectionScreen.js"
632
+ },
633
+ "./reusability-privacy-policy-screen": {
634
+ "source": "./src/ReusabilityPrivacyPolicyScreen.tsx",
635
+ "types": "./dist/ReusabilityPrivacyPolicyScreen.d.ts",
636
+ "import": "./dist/ReusabilityPrivacyPolicyScreen.js"
637
+ },
578
638
  "./review-screen": {
579
639
  "source": "./src/ReviewScreen.tsx",
580
640
  "types": "./dist/ReviewScreen.d.ts",
@@ -704,8 +764,11 @@
704
764
  "./forms-layout.css": "./dist/FormsLayout.css",
705
765
  "./id-capture-layout.css": "./dist/IdCaptureLayout.css",
706
766
  "./nfc-layout.css": "./dist/NfcLayout.css",
767
+ "./ocr-review-layout.css": "./dist/OcrReviewLayout.css",
768
+ "./permissions-layout.css": "./dist/PermissionsLayout.css",
707
769
  "./phone-input-layout.css": "./dist/PhoneInputLayout.css",
708
770
  "./qualified-signature-layout.css": "./dist/QualifiedSignatureLayout.css",
771
+ "./reusability-layout.css": "./dist/ReusabilityLayout.css",
709
772
  "./screen-layout.css": "./dist/ScreenLayout.css",
710
773
  "./screen-nav.css": "./dist/ScreenNav.css",
711
774
  "./screen-shell.css": "./dist/ScreenShell.css",
@@ -730,7 +793,9 @@
730
793
  "./samples/selfie-hat.png": "./samples/selfie-hat.png",
731
794
  "./samples/selfie-mask.png": "./samples/selfie-mask.png",
732
795
  "./samples/selfie.png": "./samples/selfie.png",
796
+ "./samples/video-selfie-camera-wide.jpg": "./samples/video-selfie-camera-wide.jpg",
733
797
  "./samples/video-selfie-camera.png": "./samples/video-selfie-camera.png",
798
+ "./samples/video-selfie-room-wide.jpg": "./samples/video-selfie-room-wide.jpg",
734
799
  "./samples/video-selfie-room.png": "./samples/video-selfie-room.png",
735
800
  "./package.json": "./package.json"
736
801
  },
@@ -750,8 +815,8 @@
750
815
  },
751
816
  "dependencies": {
752
817
  "@incodetech/prizma-core-icons": "^0.4.0",
753
- "@incodetech/prizma-core-tokens": "^0.13.0",
754
- "@incodetech/prizma-core-web": "^0.13.0"
818
+ "@incodetech/prizma-core-tokens": "^0.15.2",
819
+ "@incodetech/prizma-core-web": "^0.15.2"
755
820
  },
756
821
  "devDependencies": {
757
822
  "@types/react": "^18.3.12",
@@ -0,0 +1,192 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { PrizmaCheckbox } from '@incodetech/prizma-core-web/checkbox';
3
+ import { PrizmaModalContent } from '@incodetech/prizma-core-web/modal';
4
+ import { PrizmaFormScreen, type PrizmaFormScreenProps } from './FormScreen';
5
+ import type { PrizmaScreenActionHandler, PrizmaScreenOverrides } from './types';
6
+ import type { BiometricConsentState, BiometricConsentStrings } from './BiometricConsentStrings';
7
+ import './ScreenLayout.css';
8
+
9
+ export interface BiometricConsentScreenProps
10
+ extends Omit<
11
+ PrizmaFormScreenProps,
12
+ | 'title'
13
+ | 'subtitle'
14
+ | 'ctaLabel'
15
+ | 'ctaDisabled'
16
+ | 'verifiedLabel'
17
+ | 'children'
18
+ | 'navLabel'
19
+ | 'linkLabel'
20
+ | 'linkDisabled'
21
+ | 'linkContent'
22
+ | 'overlay'
23
+ // The column shape is the section's, not a host's.
24
+ | 'fieldsOffset'
25
+ | 'fieldsGap'
26
+ | 'fieldsAlign'
27
+ | 'scrollFields'
28
+ > {
29
+ /** Module copy — this screen reads the `consent` and `quit` slices. */
30
+ strings: BiometricConsentStrings;
31
+ /** Which of the two section states to render. Default `default`. */
32
+ state?: BiometricConsentState;
33
+ /**
34
+ * Cancel was pressed: present the quit confirmation over the consent. The
35
+ * consent underneath keeps its `state` — the box is whatever the person had.
36
+ * Its two answers: the confirm emits `cta` (the session ends), the dismiss
37
+ * emits `secondary` (back to the consent). DEVIATIONS #BC-7.
38
+ */
39
+ quitConfirm?: boolean;
40
+ /**
41
+ * The box was ticked or unticked. A REAL change event from Core's own
42
+ * `<input type="checkbox">` — the card is a `<label>`, so tapping the copy
43
+ * toggles it too, which is the behaviour the request named ("tapping the body
44
+ * also toggles the checkbox"). The screen stays controlled by `state`; this
45
+ * only reports the press so a host (or the Core Lab prototype) can move the
46
+ * state itself. The sibling consent screen forwards no such handler and its
47
+ * prototype had to listen on a wrapper instead — this closes that gap for this
48
+ * module.
49
+ */
50
+ onConsentChange?: (checked: boolean) => void;
51
+ screenId?: string;
52
+ overrides?: PrizmaScreenOverrides;
53
+ onAction?: PrizmaScreenActionHandler;
54
+ }
55
+
56
+ /**
57
+ * Biometric Consent — the mandatory biometric-processing consent, built on the
58
+ * Form archetype (GUIDELINES.md §6-E, `PrizmaFormScreen`).
59
+ *
60
+ * ONE screen for the whole `biometricConsent` section (2001:16315): the two
61
+ * state frames (`empty` 2001:16361, `checked` 2001:16372) share an identical
62
+ * skeleton — nav → Title (H2 + H5) → one consent card → Continue → Cancel →
63
+ * tag — and differ ONLY in whether the box is ticked and the CTA released.
64
+ * Plus the quit confirmation (`quitConfirm`), a Core sheet or dialog presented
65
+ * over either state when Cancel is pressed.
66
+ *
67
+ * WHY ARCHETYPE E. The same reason the sibling consent screen gives: a
68
+ * `PrizmaCheckbox` is a real `<input type="checkbox">` that joins the form, and
69
+ * the gated CTA is the whole point of a consent screen — `PrizmaListScreen` has
70
+ * no `ctaDisabled` slot. E also carries the one tertiary action under the
71
+ * primary (`linkLabel`), which is exactly where the frame draws Cancel.
72
+ *
73
+ * THE CARD SITS AT THE BOTTOM OF THE COLUMN, NOT UNDER THE TITLE. The frame's
74
+ * middle (2001:15150) is a `justify-between` column: the Title block at the top,
75
+ * the consent card flush against the CTA band with the frame's Spacing/16
76
+ * between them, and everything in between left empty. That is the opposite of
77
+ * every other Form consumer, whose stack hangs off the title, so the screen
78
+ * SELECTS it through the archetype's `fieldsAlign="end"` slot rather than
79
+ * declaring a layout of its own — the value lives once, in `FormScreen.css`.
80
+ * DEVIATIONS #BC-1.
81
+ *
82
+ * Five things are deliberate:
83
+ *
84
+ * 1. The consent card is Core's `PrizmaCheckbox size="L"` — the component IS
85
+ * the tinted container Figma draws (padding, radius, `Surface/Brand/50`,
86
+ * the 28×28 box, the Size-S body). Its `segments` carry the inline
87
+ * "Incode's Privacy Policy" link, which opens the document without toggling
88
+ * the box. Nothing about the card is composed here.
89
+ * 2. The box is CONTROLLED by `state`, like every other spec state in this
90
+ * package, and the real change event is forwarded through `onConsentChange`
91
+ * so a host can drive it. `disabled` is NOT used — the frame draws the card
92
+ * on the live surface in both states (#PI-6: never borrow a semantic state
93
+ * to make something inert).
94
+ * 3. The CTA is gated by `ctaDisabled`, Core's own
95
+ * `button/primary/surface|text/disabled` treatment, until the box is ticked
96
+ * — the behaviour the requesting engineer asked for and the two sibling
97
+ * consents already ship. The frame paints Continue blue in both states;
98
+ * recorded, not resolved silently (DEVIATIONS #BC-2).
99
+ * 4. Cancel is the archetype's `tertiary-link` button and emits `secondary`.
100
+ * The frame draws it as the Button group's "Tertiary CTA" slot in body-800
101
+ * ink with no underline on the ES/PT copies and in brand blue on the EN one
102
+ * — Core ships one L tertiary (underlined, `button/tertiary/text/default`)
103
+ * and the component wins (DEVIATIONS #BC-4).
104
+ * 5. The quit confirmation rides archetype E's `overlay` slot: the screen owns
105
+ * the scrim and the placement (the foundation's `__sheet-scrim` /
106
+ * `__modal-panel` recipes), Core owns the card — `PrizmaModalContent`,
107
+ * the `default` variant exactly as the design system documents it: close
108
+ * icon, title, optional subtitle, and its own `vertical-v1` Button Group
109
+ * (Quit over Cancel). Placed the way Core's presenter places a modal —
110
+ * pinned to the bottom of the frame with a Spacing/12 margin, never
111
+ * centred — on EVERY platform. The owner ruled out a bottom sheet on the
112
+ * phone, then a centred card (Camila, 2026-10-13): "use the default modal
113
+ * … so we try with an existing component". The close icon dismisses, the
114
+ * same as Cancel. Nothing is drawn behind it that the consent did not
115
+ * already draw. DEVIATIONS #BC-7, #BC-8.
116
+ */
117
+ export const BiometricConsentScreen = forwardRef<HTMLDivElement, BiometricConsentScreenProps>(
118
+ (
119
+ {
120
+ strings,
121
+ state = 'default',
122
+ quitConfirm = false,
123
+ onConsentChange,
124
+ screenId = quitConfirm ? 'biometric-consent-quit' : `biometric-consent-${state}`,
125
+ overrides,
126
+ onAction,
127
+ ...shell
128
+ },
129
+ ref,
130
+ ) => {
131
+ const accepted = state === 'accepted';
132
+
133
+ const quit = quitConfirm ? (
134
+ <>
135
+ <div className="prizma-screen-layout__sheet-scrim" aria-hidden="true" />
136
+ <div className="prizma-screen-layout__modal-panel">
137
+ <PrizmaModalContent
138
+ variant="default"
139
+ title={strings.quit.title}
140
+ subtitle={strings.quit.subtitle}
141
+ closeLabel={strings.quit.closeLabel}
142
+ onClose={() => onAction?.({ type: 'secondary', screenId })}
143
+ buttonGroupProps={{
144
+ primaryLabel: strings.quit.confirmLabel,
145
+ secondaryLabel: strings.quit.dismissLabel,
146
+ onPrimaryClick: () => onAction?.({ type: 'cta', screenId }),
147
+ onSecondaryClick: () => onAction?.({ type: 'secondary', screenId }),
148
+ }}
149
+ />
150
+ </div>
151
+ </>
152
+ ) : undefined;
153
+
154
+ return (
155
+ <PrizmaFormScreen
156
+ ref={ref}
157
+ title={strings.consent.title}
158
+ subtitle={strings.consent.subtitle}
159
+ /* The card hangs off the CTA band, not the title — the frame's
160
+ justify-between middle. Selected from the archetype, not declared. */
161
+ fieldsAlign="end"
162
+ ctaLabel={strings.consent.ctaLabel}
163
+ /* "Continue" stays inert until the box is ticked. */
164
+ ctaDisabled={!accepted}
165
+ linkLabel={strings.consent.cancelLabel}
166
+ verifiedLabel={strings.verifiedLabel}
167
+ navLabel={strings.navLabel}
168
+ screenId={screenId}
169
+ overrides={overrides}
170
+ /* With the sheet up, the consent's own buttons are under the scrim and
171
+ must not report: the sheet's two answers are the only actions. */
172
+ onAction={quitConfirm ? undefined : onAction}
173
+ overlay={quit}
174
+ {...shell}
175
+ >
176
+ <PrizmaCheckbox
177
+ size="L"
178
+ checked={accepted}
179
+ /* Mandatory for a11y (`aria-required`); the L container never paints
180
+ a `*` and the frame draws none. */
181
+ required
182
+ aria-label={strings.consent.ariaLabel}
183
+ segments={strings.consent.body}
184
+ onCheckedChange={quitConfirm ? undefined : onConsentChange}
185
+ />
186
+ </PrizmaFormScreen>
187
+ );
188
+ },
189
+ );
190
+ BiometricConsentScreen.displayName = 'BiometricConsentScreen';
191
+
192
+ export default BiometricConsentScreen;
@@ -0,0 +1,119 @@
1
+ // Biometric Consent — copy contract.
2
+ //
3
+ // The mandatory biometric consent the BACKEND decides to show — at the start of
4
+ // a flow, or right after ID capture — when the session comes from a protected
5
+ // geography (Illinois BIPA and the handful of states like it), or when the state
6
+ // on the captured ID says so. It is NOT the User Consent / Data Sharing Consent
7
+ // module: it is the flow builder's "Required biometric consent" setting, it uses
8
+ // its own endpoint, and declining it is a hard stop. Uros Milivojevic
9
+ // (#uxp-design, 2026-09-01): "Compared to User Consent it has a Cancel button
10
+ // next to Continue, a subtitle, and a long consent body loaded from the BE with
11
+ // tappable links (tapping the body also toggles the checkbox)."
12
+ //
13
+ // Figma: `Biometric Consent Screen` (vXvIMQF5DSJgkQHhFAQcWC), section
14
+ // `biometricConsent` (2001:16315). ONE screen, drawn across:
15
+ // · 2001:16361 `biometricConsent.empty` the master — box unticked
16
+ // · 2001:16372 `biometricConsent.checked` the box ticked
17
+ // · `🔧 Behavior`, `🖤 Dark mode`, `🇪🇸 ES`, `🇵🇹 PT` and the six device
18
+ // sections are the same two states re-presented: dark is token-driven
19
+ // (`[data-prizma-theme='dark']`), the locales are the host's locale pack,
20
+ // and the widths are excluded by the no-per-width-variants rule (DEVIATIONS
21
+ // #17).
22
+ //
23
+ // The screen is: nav → Title (H2 + H5 subtitle) → one consent card pinned to
24
+ // the BOTTOM of the column → Continue → Cancel → tag. No disclosure paragraph —
25
+ // unlike the consent screen the two sibling modules share, the legal body here
26
+ // lives INSIDE the card, and the backend supplies it.
27
+ //
28
+ // No hardcoded English anywhere in a screen: every visible string arrives here,
29
+ // so the host's locale pack drives the module (the Figma file ships ES + PT
30
+ // columns beside the EN one).
31
+
32
+ import type { PrizmaConsentSegment } from '@incodetech/prizma-core-web/checkbox';
33
+
34
+ /**
35
+ * The two states the section draws. Both share ONE layout — nav → Title →
36
+ * (space) → consent card → Continue → Cancel → tag — and differ only in whether
37
+ * the box is ticked and, with it, whether Continue is released:
38
+ *
39
+ * - `default` — `biometricConsent.empty` (2001:16361): the box unticked.
40
+ * Continue is DISABLED. The frame paints it brand blue; the
41
+ * requesting engineer asked for it greyed until the box is
42
+ * ticked, "like in Data Sharing Consent" (Uros, #uxp-design
43
+ * 2026-09-02), which is also what the two sibling consent
44
+ * screens do. DEVIATIONS #BC-2 — flip `ctaDisabled` in the
45
+ * screen if the frame is the final word.
46
+ * - `accepted` — `biometricConsent.checked` (2001:16372): the box ticked,
47
+ * Continue released to brand blue.
48
+ *
49
+ * There is NO refusal state. With Continue gated, "pressed with nothing ticked"
50
+ * cannot happen, and the file draws no such frame — the sibling modules' added
51
+ * `rejected` state is deliberately not copied here (DEVIATIONS #BC-3).
52
+ *
53
+ * The quit confirmation is NOT a third state: it is a dialog presented over
54
+ * either state (`quitConfirm` on the screen), because what is underneath — the
55
+ * box empty or ticked — is whatever the person had before they pressed Cancel.
56
+ */
57
+ export type BiometricConsentState = 'default' | 'accepted';
58
+
59
+ export interface BiometricConsentStrings {
60
+ /** "verified by" attribution in the footer tag. */
61
+ verifiedLabel: string;
62
+ /** Accessible name for the logo nav row. */
63
+ navLabel?: string;
64
+
65
+ /** The `biometricConsent` section. */
66
+ consent: {
67
+ /** H2 ("Request for Biometric Processing"). Centered, per the section. */
68
+ title: string;
69
+ /** H5 under the title ("Your verification is powered by Incode…"). The
70
+ * section draws one on every frame. */
71
+ subtitle: string;
72
+ /**
73
+ * The consent card's copy, as ordered segments: a plain string renders as
74
+ * body copy, an object renders as an inline `<a>` that opens the document
75
+ * WITHOUT toggling the box. Core's own `PrizmaConsentSegment` contract — the
76
+ * multi-link path on `PrizmaCheckbox size="L"` — so a consent citing two
77
+ * documents stays expressible (#PI-10: each link is separately actionable).
78
+ * In production this body arrives from the backend.
79
+ */
80
+ body: PrizmaConsentSegment[];
81
+ /** Accessible name for the box — the card copy is a paragraph, too long to
82
+ * serve as one. */
83
+ ariaLabel?: string;
84
+ /** Primary CTA ("Continue"). Disabled until the box is ticked. */
85
+ ctaLabel: string;
86
+ /** The tertiary action under Continue ("Cancel"). Declining is a hard stop:
87
+ * the session cannot process the person's biometrics without this consent. */
88
+ cancelLabel: string;
89
+ };
90
+
91
+ /**
92
+ * The confirmation presented when Cancel is pressed, before the session ends.
93
+ *
94
+ * NOT IN THE FIGMA FILE, and not in the shipped Web SDK either — today
95
+ * `manager.cancel()` ends the session the moment Cancel is tapped. Added at
96
+ * the owner's request (Camila, 2026-10-13): Cancel is irreversible here, the
97
+ * person cannot be verified without the consent, and a mis-tap on the
98
+ * tertiary under Continue should not cost them the session. It is Core's
99
+ * Modal, `default` variant, on EVERY platform — the existing component as
100
+ * the design system documents it, close icon and all, pinned to the bottom
101
+ * of the frame the way Core's presenter places it; not a bottom sheet and
102
+ * not a centred card (owner calls, same day). The copy is the
103
+ * SDK's own close dialog (`page.close.confirmQuit` / `page.close.confirm` /
104
+ * `page.close.cancel`), so nothing is invented. DEVIATIONS #BC-7.
105
+ */
106
+ quit: {
107
+ /** Dialog title ("Are you sure you want to quit?"). */
108
+ title: string;
109
+ /** Optional supporting line. The SDK's close dialog carries none. */
110
+ subtitle?: string;
111
+ /** The destructive confirmation ("Quit") — primary, on top. */
112
+ confirmLabel: string;
113
+ /** Dismiss and stay on the consent ("Cancel") — secondary, below it. */
114
+ dismissLabel: string;
115
+ /** Accessible name of the card's close icon ("Close"), which also
116
+ * dismisses. Core's Default modal always draws the icon. */
117
+ closeLabel: string;
118
+ };
119
+ }
@@ -39,6 +39,19 @@ export interface PrizmaCaptureScreenProps
39
39
  manualFeedbackText?: string;
40
40
  /** Per-state status copy (uploading / success / error / warning). */
41
41
  statusLabels?: Partial<Record<PrizmaSelfieCaptureState, string>>;
42
+ /**
43
+ * A notice band above the footer — a Snackbar the module raises over the live
44
+ * feed without taking the camera away (Face Capture's "Need more time?" offer
45
+ * is the first consumer).
46
+ *
47
+ * ANCHORED, like the footer and the control strip, and for the same reason:
48
+ * the owner's rule is that anchored chrome sits at the same position on every
49
+ * screen (2026-08-18). Flowing it would push Core's ring up, and the ring
50
+ * offset is the one thing this archetype is forbidden to touch
51
+ * (DEVIATIONS #12). It rides the empty band under the instruction line, which
52
+ * is where the module Figma puts it.
53
+ */
54
+ notice?: ReactNode;
42
55
  /** "verified by" attribution copy for the footer tag. */
43
56
  verifiedLabel: string;
44
57
  navLabel?: string;
@@ -72,6 +85,7 @@ export const PrizmaCaptureScreen = forwardRef<HTMLDivElement, PrizmaCaptureScree
72
85
  isManual,
73
86
  manualFeedbackText,
74
87
  statusLabels,
88
+ notice,
75
89
  verifiedLabel,
76
90
  navLabel,
77
91
  screenId,
@@ -107,6 +121,9 @@ export const PrizmaCaptureScreen = forwardRef<HTMLDivElement, PrizmaCaptureScree
107
121
  manualFeedbackText={manualFeedbackText}
108
122
  statusLabels={statusLabels}
109
123
  />
124
+ {notice ? (
125
+ <div className="prizma-screen-layout__capture-notice">{notice}</div>
126
+ ) : null}
110
127
  {showFooter ? (
111
128
  <div className="prizma-screen-layout__footer prizma-screen-layout__footer--pinned">
112
129
  <PrizmaTag label={verifiedLabel} />
@@ -389,6 +389,22 @@
389
389
  background: var(--prizma-surface-neutral-50);
390
390
  align-items: center;
391
391
  justify-content: center;
392
+ /* The card hugs its content and is taller than a short window: on the Duo
393
+ * open full screen (626) unsafe centring put 90px of it above the page and
394
+ * 90 below, heading cut off (sweep 2026-10-20). `safe` starts the card at
395
+ * the top of the page when it does not fit, and does nothing when it does
396
+ * (#F-37, same mechanism). The plain `center` is the fallback. */
397
+ justify-content: safe center;
398
+ }
399
+
400
+ /* …and under 720 the page scrolls, as a desktop page does when the window is
401
+ * shorter than its content. The shell is `overflow: hidden` for the screens
402
+ * that pin chrome to its edges; this page pins nothing, the tag rides in the
403
+ * card's band. */
404
+ @container pcs-screen (max-height: 720px) {
405
+ .prizma-screen-shell.demo-screens-redirect {
406
+ overflow-y: auto;
407
+ }
392
408
  }
393
409
 
394
410
  .demo-screens-redirect__card {
@@ -21,8 +21,13 @@ import './DemoScreensLayout.css';
21
21
  * - `resend` "Link sent!", resend available
22
22
  * - `resent` "Link sent!" with the "resent" snackbar
23
23
  * - `tooMany` "Too many attempts"
24
+ * - `invalidUuid` the link's UUID was rejected (expired or unknown): no leg
25
+ * to offer, only the error. One message for Flows and
26
+ * Workflows alike, since the backend answers the same way for
27
+ * both (Elena, 2026-10-21: web SDK 2.0 showed "QR code
28
+ * expired" for Flows and "Session expired" with 2.0 off).
24
29
  */
25
- export type DemoScreensRedirectStage = 'qr' | 'sms' | 'smsFilled' | 'sent' | 'resend' | 'resent' | 'tooMany';
30
+ export type DemoScreensRedirectStage = 'qr' | 'sms' | 'smsFilled' | 'sent' | 'resend' | 'resent' | 'tooMany' | 'invalidUuid';
26
31
 
27
32
  export interface DemoScreensRedirectScreenProps
28
33
  extends Omit<PrizmaScreenShellProps, 'dark' | 'title' | 'children'> {
@@ -79,7 +84,8 @@ export const DemoScreensRedirectScreen = forwardRef<HTMLDivElement, DemoScreensR
79
84
  { code: 'RS', name: 'Serbia', dialCode: '+381', flag: '' },
80
85
  ].find(c => c.code === r.countryCode);
81
86
  const subtitle = sms ? r.subtitle : desktop ? r.subtitleQrDesktop : r.subtitleQrOnly;
82
- const verdict = stage === 'sent' || stage === 'resend' || stage === 'resent' || stage === 'tooMany';
87
+ const invalid = stage === 'invalidUuid';
88
+ const verdict = stage === 'sent' || stage === 'resend' || stage === 'resent' || stage === 'tooMany' || invalid;
83
89
 
84
90
  return (
85
91
  <PrizmaScreenShell
@@ -96,8 +102,8 @@ export const DemoScreensRedirectScreen = forwardRef<HTMLDivElement, DemoScreensR
96
102
  <div className="demo-screens-redirect__card">
97
103
  <PrizmaScreenNav logo={overrides?.logo} navLabel={strings.navLabel} />
98
104
  <div className="prizma-screen-layout__content demo-screens-redirect__content">
99
- <PrizmaTitle variant="centered" title={r.title} showSubtitle subtitle={subtitle} />
100
- {sms ? (
105
+ {invalid ? null : <PrizmaTitle variant="centered" title={r.title} showSubtitle subtitle={subtitle} />}
106
+ {sms && !invalid ? (
101
107
  <div className="demo-screens-tabs" role="tablist">
102
108
  <button type="button" role="tab" aria-selected={!onSms} className={['demo-screens-tabs__tab', !onSms ? 'demo-screens-tabs__tab--active' : ''].join(' ')} onClick={() => onAction?.({ type: 'secondary', screenId })}>
103
109
  {r.tabs.qr}
@@ -138,7 +144,9 @@ export const DemoScreensRedirectScreen = forwardRef<HTMLDivElement, DemoScreensR
138
144
 
139
145
  {verdict ? (
140
146
  <div className="demo-screens-redirect__leg demo-screens-redirect__leg--verdict">
141
- {stage === 'tooMany' ? (
147
+ {invalid ? (
148
+ <PrizmaTitle variant="centered" title={r.invalidUuid.title} showSubtitle subtitle={r.invalidUuid.subtitle} icon={{ type: 'status', status: 'error' }} />
149
+ ) : stage === 'tooMany' ? (
142
150
  <PrizmaTitle variant="centered" title={r.tooMany.title} showSubtitle subtitle={r.tooMany.subtitle} icon={{ type: 'status', status: 'error' }} />
143
151
  ) : (
144
152
  <PrizmaTitle
@@ -149,7 +157,7 @@ export const DemoScreensRedirectScreen = forwardRef<HTMLDivElement, DemoScreensR
149
157
  icon={{ type: 'status', status: 'success' }}
150
158
  />
151
159
  )}
152
- {stage === 'tooMany' ? (
160
+ {invalid ? null : stage === 'tooMany' ? (
153
161
  <PrizmaButton variant="tertiary-link" size="L" onClick={() => onAction?.({ type: 'tertiary', screenId })}>
154
162
  {r.tooMany.changeLabel}
155
163
  </PrizmaButton>
@@ -171,6 +171,11 @@ export interface DemoScreensStrings {
171
171
  subtitle: string;
172
172
  changeLabel: string;
173
173
  };
174
+ /** The link's UUID was rejected: the same copy for Flows and Workflows. */
175
+ invalidUuid: {
176
+ title: string;
177
+ subtitle: string;
178
+ };
174
179
  };
175
180
 
176
181
  /** WEB · `demo_2` — the front door: language, the wordmark, one CTA. */