@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.
Files changed (191) 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/DigitalIdDeviceWalletsDocumentSelectionScreen.d.ts +34 -0
  12. package/dist/DigitalIdDeviceWalletsDocumentSelectionScreen.js +47 -0
  13. package/dist/DigitalIdDeviceWalletsResultScreen.d.ts +28 -0
  14. package/dist/DigitalIdDeviceWalletsResultScreen.js +23 -0
  15. package/dist/DigitalIdDeviceWalletsStrings.d.ts +55 -0
  16. package/dist/DigitalIdDeviceWalletsStrings.js +19 -0
  17. package/dist/DigitalIdProvidersDocumentSelectionScreen.d.ts +31 -0
  18. package/dist/DigitalIdProvidersDocumentSelectionScreen.js +37 -0
  19. package/dist/DigitalIdProvidersErrorScreen.d.ts +33 -0
  20. package/dist/DigitalIdProvidersErrorScreen.js +33 -0
  21. package/dist/DigitalIdProvidersLayout.css +59 -0
  22. package/dist/DigitalIdProvidersRedirectScreen.d.ts +24 -0
  23. package/dist/DigitalIdProvidersRedirectScreen.js +18 -0
  24. package/dist/DigitalIdProvidersStrings.d.ts +72 -0
  25. package/dist/DigitalIdProvidersStrings.js +15 -0
  26. package/dist/DigitalIdUploadErrorScreen.d.ts +31 -0
  27. package/dist/DigitalIdUploadErrorScreen.js +26 -0
  28. package/dist/DigitalIdUploadFileTooLargeScreen.d.ts +27 -0
  29. package/dist/DigitalIdUploadFileTooLargeScreen.js +21 -0
  30. package/dist/DigitalIdUploadReviewScreen.d.ts +57 -0
  31. package/dist/DigitalIdUploadReviewScreen.js +44 -0
  32. package/dist/DigitalIdUploadStrings.d.ts +64 -0
  33. package/dist/DigitalIdUploadStrings.js +19 -0
  34. package/dist/DigitalIdUploadTutorialScreen.d.ts +28 -0
  35. package/dist/DigitalIdUploadTutorialScreen.js +23 -0
  36. package/dist/DocumentCaptureIllustration.d.ts +1 -1
  37. package/dist/EkybCountryScreen.d.ts +6 -6
  38. package/dist/EkybCountryScreen.js +20 -7
  39. package/dist/EkybStrings.d.ts +6 -1
  40. package/dist/ErrorScreensScreen.d.ts +5 -2
  41. package/dist/ErrorScreensScreen.js +15 -4
  42. package/dist/ErrorScreensStrings.d.ts +17 -2
  43. package/dist/ErrorScreensStrings.js +18 -10
  44. package/dist/FaceCaptureCapturingScreen.d.ts +63 -0
  45. package/dist/FaceCaptureCapturingScreen.js +62 -2
  46. package/dist/FaceCaptureLayout.css +69 -4
  47. package/dist/FaceCaptureStrings.d.ts +23 -0
  48. package/dist/FormScreen.css +14 -0
  49. package/dist/FormScreen.d.ts +28 -0
  50. package/dist/FormScreen.js +3 -2
  51. package/dist/IdCaptureLayout.css +165 -2
  52. package/dist/IdCaptureStageScreen.d.ts +47 -0
  53. package/dist/IdCaptureStageScreen.js +39 -3
  54. package/dist/IdCaptureStrings.d.ts +19 -0
  55. package/dist/ListScreen.d.ts +19 -0
  56. package/dist/ListScreen.js +7 -2
  57. package/dist/LoaderScreen.d.ts +7 -5
  58. package/dist/LoaderScreen.js +7 -5
  59. package/dist/LoadersStrings.d.ts +18 -5
  60. package/dist/OcrReviewErrorScreen.d.ts +30 -0
  61. package/dist/OcrReviewErrorScreen.js +24 -0
  62. package/dist/OcrReviewLayout.css +24 -0
  63. package/dist/OcrReviewLoadingScreen.d.ts +25 -0
  64. package/dist/OcrReviewLoadingScreen.js +19 -0
  65. package/dist/OcrReviewScreen.d.ts +76 -0
  66. package/dist/OcrReviewScreen.js +65 -0
  67. package/dist/OcrReviewStrings.d.ts +47 -0
  68. package/dist/OcrReviewStrings.js +17 -0
  69. package/dist/OcrReviewSuccessScreen.d.ts +30 -0
  70. package/dist/OcrReviewSuccessScreen.js +24 -0
  71. package/dist/PermissionsAllowScreen.d.ts +8 -11
  72. package/dist/PermissionsAllowScreen.js +8 -11
  73. package/dist/PermissionsAskScreen.d.ts +41 -0
  74. package/dist/PermissionsAskScreen.js +43 -0
  75. package/dist/PermissionsBrowserStepsScreen.d.ts +9 -2
  76. package/dist/PermissionsBrowserStepsScreen.js +12 -3
  77. package/dist/PermissionsLayout.css +47 -0
  78. package/dist/PermissionsStrings.d.ts +20 -9
  79. package/dist/PermissionsStrings.js +10 -4
  80. package/dist/PhoneInputOtpScreen.d.ts +8 -0
  81. package/dist/PhoneInputOtpScreen.js +26 -19
  82. package/dist/PhoneInputStrings.d.ts +11 -3
  83. package/dist/PhoneInputVerifyScreen.js +21 -5
  84. package/dist/QualifiedSignatureDocumentScreen.d.ts +8 -5
  85. package/dist/QualifiedSignatureDocumentScreen.js +9 -6
  86. package/dist/QualifiedSignatureResultScreen.d.ts +16 -13
  87. package/dist/QualifiedSignatureResultScreen.js +17 -18
  88. package/dist/QualifiedSignatureStrings.d.ts +11 -4
  89. package/dist/ResultScreen.d.ts +8 -0
  90. package/dist/ResultScreen.js +14 -3
  91. package/dist/ReusabilityCredentialSelectionScreen.d.ts +95 -0
  92. package/dist/ReusabilityCredentialSelectionScreen.js +94 -0
  93. package/dist/ReusabilityLayout.css +241 -0
  94. package/dist/ReusabilityPrivacyPolicyScreen.d.ts +55 -0
  95. package/dist/ReusabilityPrivacyPolicyScreen.js +44 -0
  96. package/dist/ReusabilityStrings.d.ts +85 -0
  97. package/dist/ReusabilityStrings.js +37 -0
  98. package/dist/ReviewScreen.d.ts +38 -12
  99. package/dist/ReviewScreen.js +41 -8
  100. package/dist/ScreenLayout.css +382 -6
  101. package/dist/VideoSelfieErrorScreen.js +1 -1
  102. package/dist/VideoSelfieIdCaptureScreen.js +1 -1
  103. package/dist/VideoSelfieLayout.css +304 -2
  104. package/dist/VideoSelfieSelfieCaptureScreen.js +1 -1
  105. package/dist/VideoSelfieSpeakScreen.js +1 -1
  106. package/dist/VideoSelfieStrings.d.ts +4 -1
  107. package/dist/VideoSelfieTurnHeadScreen.js +14 -11
  108. package/dist/VideoSelfieTutorialScreen.d.ts +9 -0
  109. package/dist/VideoSelfieTutorialScreen.js +10 -1
  110. package/dist/VideoSelfieWaveScreen.js +1 -1
  111. package/dist/ViewfinderScreen.css +36 -0
  112. package/dist/flows.d.ts +8 -0
  113. package/dist/flows.js +17 -0
  114. package/dist/index.d.ts +23 -0
  115. package/dist/index.js +17 -0
  116. package/dist/styles.css +4 -0
  117. package/package.json +94 -3
  118. package/samples/video-selfie-camera-wide.jpg +0 -0
  119. package/samples/video-selfie-room-wide.jpg +0 -0
  120. package/src/BiometricConsentScreen.tsx +192 -0
  121. package/src/BiometricConsentStrings.ts +119 -0
  122. package/src/CaptureScreen.tsx +17 -0
  123. package/src/DemoScreensLayout.css +16 -0
  124. package/src/DemoScreensRedirectScreen.tsx +14 -6
  125. package/src/DemoScreensStrings.ts +5 -0
  126. package/src/DigitalIdDeviceWalletsDocumentSelectionScreen.tsx +108 -0
  127. package/src/DigitalIdDeviceWalletsResultScreen.tsx +76 -0
  128. package/src/DigitalIdDeviceWalletsStrings.ts +80 -0
  129. package/src/DigitalIdProvidersDocumentSelectionScreen.tsx +112 -0
  130. package/src/DigitalIdProvidersErrorScreen.tsx +104 -0
  131. package/src/DigitalIdProvidersLayout.css +59 -0
  132. package/src/DigitalIdProvidersRedirectScreen.tsx +65 -0
  133. package/src/DigitalIdProvidersStrings.ts +98 -0
  134. package/src/DigitalIdUploadErrorScreen.tsx +83 -0
  135. package/src/DigitalIdUploadFileTooLargeScreen.tsx +67 -0
  136. package/src/DigitalIdUploadReviewScreen.tsx +119 -0
  137. package/src/DigitalIdUploadStrings.ts +88 -0
  138. package/src/DigitalIdUploadTutorialScreen.tsx +59 -0
  139. package/src/DocumentCaptureIllustration.tsx +1 -1
  140. package/src/EkybCountryScreen.tsx +23 -6
  141. package/src/EkybStrings.ts +6 -1
  142. package/src/ErrorScreensScreen.tsx +15 -4
  143. package/src/ErrorScreensStrings.ts +37 -12
  144. package/src/FaceCaptureCapturingScreen.tsx +102 -13
  145. package/src/FaceCaptureLayout.css +69 -4
  146. package/src/FaceCaptureStrings.ts +24 -0
  147. package/src/FormScreen.css +14 -0
  148. package/src/FormScreen.tsx +34 -0
  149. package/src/IdCaptureLayout.css +165 -2
  150. package/src/IdCaptureStageScreen.tsx +75 -0
  151. package/src/IdCaptureStrings.ts +19 -0
  152. package/src/ListScreen.tsx +48 -9
  153. package/src/LoaderScreen.tsx +7 -5
  154. package/src/LoadersStrings.ts +18 -5
  155. package/src/OcrReviewErrorScreen.tsx +53 -0
  156. package/src/OcrReviewLayout.css +24 -0
  157. package/src/OcrReviewLoadingScreen.tsx +48 -0
  158. package/src/OcrReviewScreen.tsx +190 -0
  159. package/src/OcrReviewStrings.ts +69 -0
  160. package/src/OcrReviewSuccessScreen.tsx +52 -0
  161. package/src/PermissionsAllowScreen.tsx +9 -10
  162. package/src/PermissionsAskScreen.tsx +105 -0
  163. package/src/PermissionsBrowserStepsScreen.tsx +11 -3
  164. package/src/PermissionsLayout.css +47 -0
  165. package/src/PermissionsStrings.ts +42 -12
  166. package/src/PhoneInputOtpScreen.tsx +23 -3
  167. package/src/PhoneInputStrings.ts +11 -3
  168. package/src/PhoneInputVerifyScreen.tsx +24 -4
  169. package/src/QualifiedSignatureDocumentScreen.tsx +9 -7
  170. package/src/QualifiedSignatureResultScreen.tsx +28 -26
  171. package/src/QualifiedSignatureStrings.ts +11 -4
  172. package/src/ResultScreen.tsx +33 -2
  173. package/src/ReusabilityCredentialSelectionScreen.tsx +246 -0
  174. package/src/ReusabilityLayout.css +241 -0
  175. package/src/ReusabilityPrivacyPolicyScreen.tsx +109 -0
  176. package/src/ReusabilityStrings.ts +127 -0
  177. package/src/ReviewScreen.tsx +96 -27
  178. package/src/ScreenLayout.css +382 -6
  179. package/src/VideoSelfieErrorScreen.tsx +1 -1
  180. package/src/VideoSelfieIdCaptureScreen.tsx +9 -1
  181. package/src/VideoSelfieLayout.css +304 -2
  182. package/src/VideoSelfieSelfieCaptureScreen.tsx +9 -1
  183. package/src/VideoSelfieSpeakScreen.tsx +9 -1
  184. package/src/VideoSelfieStrings.ts +4 -2
  185. package/src/VideoSelfieTurnHeadScreen.tsx +25 -14
  186. package/src/VideoSelfieTutorialScreen.tsx +11 -0
  187. package/src/VideoSelfieWaveScreen.tsx +9 -1
  188. package/src/ViewfinderScreen.css +36 -0
  189. package/src/flows.ts +25 -0
  190. package/src/index.ts +116 -3
  191. package/src/styles.css +4 -0
package/src/index.ts CHANGED
@@ -155,6 +155,74 @@ export {
155
155
  DocumentCaptureNoConnectionScreen,
156
156
  type DocumentCaptureNoConnectionScreenProps,
157
157
  } from './DocumentCaptureNoConnectionScreen';
158
+ // ── Digital ID Upload ───────────────────────────────────────────────────────
159
+ // Upload Digital ID Figma file (wxFsHRvllern4VnjRqM4JO) — the "Web Happy Path
160
+ // - Light Mode" section (node 25351:14721: tutorial + the review / analyzing
161
+ // / success confirm stages) and two `Errors` sections (nodes 25874:11955,
162
+ // 26083:3981). The happy-path section's chooser, native file-browser and
163
+ // hold-on frames are out of scope — see DigitalIdUploadStrings.ts header.
164
+ export {
165
+ type DigitalIdUploadStrings,
166
+ type DigitalIdUploadConfirmStage,
167
+ } from './DigitalIdUploadStrings';
168
+ export {
169
+ DigitalIdUploadTutorialScreen,
170
+ type DigitalIdUploadTutorialScreenProps,
171
+ } from './DigitalIdUploadTutorialScreen';
172
+ export {
173
+ DigitalIdUploadReviewScreen,
174
+ type DigitalIdUploadReviewScreenProps,
175
+ } from './DigitalIdUploadReviewScreen';
176
+ export {
177
+ DigitalIdUploadErrorScreen,
178
+ type DigitalIdUploadErrorScreenProps,
179
+ } from './DigitalIdUploadErrorScreen';
180
+ export {
181
+ DigitalIdUploadFileTooLargeScreen,
182
+ type DigitalIdUploadFileTooLargeScreenProps,
183
+ } from './DigitalIdUploadFileTooLargeScreen';
184
+ // ── Digital ID Device Wallets ───────────────────────────────────────────────
185
+ // Digital IDs - Latest Design Figma file (u7N5Zq4bfOwiVbpKHKmSPE), section
186
+ // `iOS Apple Wallet` (node 26103:3689): the chooser with the wallet row and the
187
+ // generic error. The Apple Wallet sheet is OS chrome and not built — see
188
+ // DigitalIdDeviceWalletsStrings.ts header.
189
+ export {
190
+ type DigitalIdDeviceWalletsStrings,
191
+ type DigitalIdDeviceWalletsPlatformWallet,
192
+ type DigitalIdDeviceWalletsResultState,
193
+ type DigitalIdDeviceWalletsOption,
194
+ } from './DigitalIdDeviceWalletsStrings';
195
+ export {
196
+ DigitalIdDeviceWalletsDocumentSelectionScreen,
197
+ type DigitalIdDeviceWalletsDocumentSelectionScreenProps,
198
+ } from './DigitalIdDeviceWalletsDocumentSelectionScreen';
199
+ export {
200
+ DigitalIdDeviceWalletsResultScreen,
201
+ type DigitalIdDeviceWalletsResultScreenProps,
202
+ } from './DigitalIdDeviceWalletsResultScreen';
203
+ // ── Digital ID Providers ────────────────────────────────────────────────────
204
+ // Digital ID Providers - Latest Designs Figma file (q0wiyQkLXxGQ2jkPEutxR8):
205
+ // the chooser (27753:8099) and the web full flow (27707:9237) — Redirecting
206
+ // and five errors. The provider's own pages are OS chrome and not built; see
207
+ // DigitalIdProvidersStrings.ts header.
208
+ export {
209
+ type DigitalIdProvidersStrings,
210
+ type DigitalIdProvidersErrorState,
211
+ type DigitalIdProvidersOption,
212
+ type DigitalIdProvidersSelection,
213
+ } from './DigitalIdProvidersStrings';
214
+ export {
215
+ DigitalIdProvidersDocumentSelectionScreen,
216
+ type DigitalIdProvidersDocumentSelectionScreenProps,
217
+ } from './DigitalIdProvidersDocumentSelectionScreen';
218
+ export {
219
+ DigitalIdProvidersRedirectScreen,
220
+ type DigitalIdProvidersRedirectScreenProps,
221
+ } from './DigitalIdProvidersRedirectScreen';
222
+ export {
223
+ DigitalIdProvidersErrorScreen,
224
+ type DigitalIdProvidersErrorScreenProps,
225
+ } from './DigitalIdProvidersErrorScreen';
158
226
  // ── ID Capture ──────────────────────────────────────────────────────────────
159
227
  // Purple sections of the ID Capture Figma file (U1EOfl9RQ1rOlOIuQw3rhL, page
160
228
  // 16285:41282) — 100 spec sections across 13 parent groups, collapsed onto 12
@@ -382,6 +450,34 @@ export {
382
450
  } from './DataSharingConsentStrings';
383
451
  export { DataSharingConsentConsentScreen, type DataSharingConsentConsentScreenProps } from './DataSharingConsentConsentScreen';
384
452
 
453
+ // ── Biometric Consent ────────────────────────────────────────────────
454
+ // The `biometricConsent` section of the Biometric Consent Screen Figma file
455
+ // (vXvIMQF5DSJgkQHhFAQcWC, 2001:16315). The backend-driven mandatory consent —
456
+ // NOT the User Consent / Data Sharing Consent module. See BiometricConsentStrings.ts.
457
+ export {
458
+ type BiometricConsentState,
459
+ type BiometricConsentStrings,
460
+ } from './BiometricConsentStrings';
461
+ export { BiometricConsentScreen, type BiometricConsentScreenProps } from './BiometricConsentScreen';
462
+
463
+ // ── Reusability (Incode Bridge) ─────────────────────────────────────
464
+ // The `Reusability Iterations` section of the Reusability - In Experimentation
465
+ // Figma file (f4AsCbOBP29IbTQLxBNgNG, 7877:68814): the credential-reuse step of
466
+ // an Incode Bridge session — the SDK's `identity-reuse` module. See
467
+ // ReusabilityStrings.ts.
468
+ export {
469
+ type ReusabilityDocumentType,
470
+ type ReusableCredential,
471
+ type ReusabilityStrings,
472
+ } from './ReusabilityStrings';
473
+ export {
474
+ ReusabilityCredentialSelectionScreen,
475
+ REUSABILITY_SCAN_NEW,
476
+ type ReusabilitySelection,
477
+ type ReusabilityCredentialSelectionScreenProps,
478
+ } from './ReusabilityCredentialSelectionScreen';
479
+ export { ReusabilityPrivacyPolicyScreen, type ReusabilityPrivacyPolicyScreenProps } from './ReusabilityPrivacyPolicyScreen';
480
+
385
481
  // ── eKYC (wave 3) ────────────────────────────────────────────────
386
482
  // Purple sections of the eKYC Figma file (TWgYZVhurQCizfC4tfLEut, page 2003:12082).
387
483
  export {
@@ -534,6 +630,18 @@ export {
534
630
  } from './NfcTryAgainScreen';
535
631
  export { NfcTutorialScreen, type NfcTutorialScreenProps } from './NfcTutorialScreen';
536
632
 
633
+ // ── OCR Review ──────────────────────────────────────────────────────────────
634
+ // `ID Capture — Latest Design` (U1EOfl9RQ1rOlOIuQw3rhL), section
635
+ // `OCR Review - 🍎 iOS - Full flow` (31084:18781).
636
+ export {
637
+ type OcrReviewState,
638
+ type OcrReviewStrings,
639
+ } from './OcrReviewStrings';
640
+ export { OcrReviewScreen, type OcrReviewScreenProps } from './OcrReviewScreen';
641
+ export { OcrReviewLoadingScreen, type OcrReviewLoadingScreenProps } from './OcrReviewLoadingScreen';
642
+ export { OcrReviewSuccessScreen, type OcrReviewSuccessScreenProps } from './OcrReviewSuccessScreen';
643
+ export { OcrReviewErrorScreen, type OcrReviewErrorScreenProps } from './OcrReviewErrorScreen';
644
+
537
645
  // ── Generic screens ─────────────────────────────────────────────────────────
538
646
  // NOT a module. The four families every module shares, drawn once in the
539
647
  // `Module Generic Screens` Figma file (qGJjfL4O0JSjz1x4tOjJn8): the permission
@@ -542,7 +650,7 @@ export { NfcTutorialScreen, type NfcTutorialScreenProps } from './NfcTutorialScr
542
650
  // file's frames are OS chrome and are deliberately NOT built — see each Strings
543
651
  // file for which, and why (rule 1, GUIDELINES §10).
544
652
 
545
- // Permissions — 3 built screens out of the section's 7 frames.
653
+ // Permissions — 4 built screens out of the section's 7 frames.
546
654
  export {
547
655
  type PermissionsStrings,
548
656
  type PermissionsCapability,
@@ -552,6 +660,10 @@ export {
552
660
  type PermissionsStep,
553
661
  type PermissionsBrowserSteps,
554
662
  } from './PermissionsStrings';
663
+ export {
664
+ PermissionsAskScreen,
665
+ type PermissionsAskScreenProps,
666
+ } from './PermissionsAskScreen';
555
667
  export {
556
668
  PermissionsRequiredScreen,
557
669
  type PermissionsRequiredScreenProps,
@@ -565,11 +677,12 @@ export {
565
677
  type PermissionsBrowserStepsScreenProps,
566
678
  } from './PermissionsBrowserStepsScreen';
567
679
 
568
- // Loaders — one screen, one copy pair per wait.
680
+ // Loaders — one screen, one copy pair per wait (processing · validating ·
681
+ // verifyingIdentity).
569
682
  export { type LoadersStrings, type LoadersVariant, type LoadersCopy } from './LoadersStrings';
570
683
  export { LoaderScreen, type LoaderScreenProps } from './LoaderScreen';
571
684
 
572
- // Error screens — the three failures that belong to the session, not a module.
685
+ // Error screens — the four failures that belong to the session, not a module.
573
686
  export {
574
687
  type ErrorScreensStrings,
575
688
  type ErrorScreensVariant,
package/src/styles.css CHANGED
@@ -16,6 +16,7 @@
16
16
  @import './CurpLayout.css';
17
17
  @import './DataSharingConsentLayout.css';
18
18
  @import './DemoScreensLayout.css';
19
+ @import './DigitalIdProvidersLayout.css';
19
20
  @import './DocumentCaptureLayout.css';
20
21
  @import './EkycLayout.css';
21
22
  @import './ElectronicSignatureLayout.css';
@@ -25,8 +26,11 @@
25
26
  @import './FormsLayout.css';
26
27
  @import './IdCaptureLayout.css';
27
28
  @import './NfcLayout.css';
29
+ @import './OcrReviewLayout.css';
30
+ @import './PermissionsLayout.css';
28
31
  @import './PhoneInputLayout.css';
29
32
  @import './QualifiedSignatureLayout.css';
33
+ @import './ReusabilityLayout.css';
30
34
  @import './ScreenLayout.css';
31
35
  @import './ScreenNav.css';
32
36
  @import './ScreenShell.css';