@incodetech/prizma-core-screens 0.2.12 → 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 (29) hide show
  1. package/dist/DigitalIdDeviceWalletsDocumentSelectionScreen.d.ts +34 -0
  2. package/dist/DigitalIdDeviceWalletsDocumentSelectionScreen.js +47 -0
  3. package/dist/DigitalIdDeviceWalletsResultScreen.d.ts +28 -0
  4. package/dist/DigitalIdDeviceWalletsResultScreen.js +23 -0
  5. package/dist/DigitalIdDeviceWalletsStrings.d.ts +55 -0
  6. package/dist/DigitalIdDeviceWalletsStrings.js +19 -0
  7. package/dist/DigitalIdProvidersDocumentSelectionScreen.d.ts +31 -0
  8. package/dist/DigitalIdProvidersDocumentSelectionScreen.js +37 -0
  9. package/dist/DigitalIdProvidersErrorScreen.d.ts +33 -0
  10. package/dist/DigitalIdProvidersErrorScreen.js +33 -0
  11. package/dist/DigitalIdProvidersLayout.css +59 -0
  12. package/dist/DigitalIdProvidersRedirectScreen.d.ts +24 -0
  13. package/dist/DigitalIdProvidersRedirectScreen.js +18 -0
  14. package/dist/DigitalIdProvidersStrings.d.ts +72 -0
  15. package/dist/DigitalIdProvidersStrings.js +15 -0
  16. package/dist/index.d.ts +7 -0
  17. package/dist/index.js +5 -0
  18. package/dist/styles.css +1 -0
  19. package/package.json +29 -3
  20. package/src/DigitalIdDeviceWalletsDocumentSelectionScreen.tsx +108 -0
  21. package/src/DigitalIdDeviceWalletsResultScreen.tsx +76 -0
  22. package/src/DigitalIdDeviceWalletsStrings.ts +80 -0
  23. package/src/DigitalIdProvidersDocumentSelectionScreen.tsx +112 -0
  24. package/src/DigitalIdProvidersErrorScreen.tsx +104 -0
  25. package/src/DigitalIdProvidersLayout.css +59 -0
  26. package/src/DigitalIdProvidersRedirectScreen.tsx +65 -0
  27. package/src/DigitalIdProvidersStrings.ts +98 -0
  28. package/src/index.ts +42 -0
  29. package/src/styles.css +1 -0
@@ -0,0 +1,98 @@
1
+ // Digital ID Providers — copy contract.
2
+ //
3
+ // Every Digital ID Providers screen receives the SAME `strings:
4
+ // DigitalIdProvidersStrings` object (rule: all copy via props, no hardcoded
5
+ // English — GUIDELINES.md §9).
6
+ //
7
+ // Authoritative screens: `Digital ID Providers - Latest Designs` Figma file
8
+ // (q0wiyQkLXxGQ2jkPEutxR8) — the chooser `Document Chooser` (27753:8099) and its
9
+ // full provider list (27703:4895), and the section `🪪 Digital ID Verification
10
+ // Flow - 🌐 Web - Full flow` (27707:9237): Redirecting, the provider's own pages
11
+ // (OS chrome, not built), success and five errors. Web only: the providers
12
+ // redirect out of the browser to the provider's site and back (Web SDK,
13
+ // `digitalIdRedirect`). These screens sit in the Digital IDs module beside the
14
+ // device wallets (`DigitalIdDeviceWallets*`), and share its success screen.
15
+
16
+ /** The five ways a provider run can fail (`27707:9338`). */
17
+ export type DigitalIdProvidersErrorState =
18
+ | 'unavailable'
19
+ | 'consent-denied'
20
+ | 'timed-out'
21
+ | 'not-accepted'
22
+ | 'expired';
23
+
24
+ /** One provider row on the chooser. `id` is what `onOptionSelect` reports. */
25
+ export interface DigitalIdProvidersOption {
26
+ id: string;
27
+ /** "iDIN", "itsme", "CA DMV Wallet"… */
28
+ label: string;
29
+ }
30
+
31
+ /** What the person picked: a physical document, or a provider by its id. */
32
+ export type DigitalIdProvidersSelection =
33
+ | { kind: 'id' }
34
+ | { kind: 'passport' }
35
+ | { kind: 'provider'; providerId: string };
36
+
37
+ export interface DigitalIdProvidersStrings {
38
+ /** Accessible name for the logo nav region (i18n — no baked-in English). */
39
+ navLabel?: string;
40
+ /** "verified by" attribution copy for the footer tag. */
41
+ verifiedLabel: string;
42
+
43
+ /** `Document Chooser` (27753:8099). */
44
+ documentSelection: {
45
+ /** "Select how to verify" — the module's one chooser title (owner call,
46
+ * 2026-10-28; the frame says "Verify your identity"). */
47
+ title: string;
48
+ /** "Viewing options for" — before the country. */
49
+ countryLabel: string;
50
+ /** ISO code of the country the options are for, e.g. "US" (the flag). */
51
+ countryCode: string;
52
+ /** The country as shown, e.g. "US". */
53
+ countryName: string;
54
+ /** "Use your ID" */
55
+ idSectionLabel: string;
56
+ /** "Identity Card" */
57
+ idLabel: string;
58
+ /** "Passport" */
59
+ passportLabel: string;
60
+ /** "Digital ID verification" */
61
+ providersSectionLabel: string;
62
+ /** The providers the flow offers, in order. */
63
+ providers: DigitalIdProvidersOption[];
64
+ };
65
+
66
+ /** `Redirecting` (1-18-1-id-hold-on, 27707:9281). */
67
+ redirecting: {
68
+ /** "Redirecting for verification…" */
69
+ title: string;
70
+ /** "You'll be redirected to complete verification" */
71
+ subtitle?: string;
72
+ };
73
+
74
+ /** `Errors` (27707:9338), one slice per state. */
75
+ errors: Record<
76
+ DigitalIdProvidersErrorState,
77
+ {
78
+ title: string;
79
+ subtitle?: string;
80
+ /** "Try again", or "Scan ID" when the provider is unavailable. */
81
+ ctaLabel: string;
82
+ /** "Choose another method" — one wording on every error (owner call,
83
+ * 2026-10-28; the frame says "Change verification method" on two). */
84
+ secondaryCtaLabel: string;
85
+ }
86
+ >;
87
+
88
+ /** The accepted-documents card on `not-accepted` and `expired`. */
89
+ acceptedDocuments: {
90
+ /** ISO code for the flag, e.g. "IN". */
91
+ countryCode: string;
92
+ /** "India" */
93
+ country: string;
94
+ /** Emoji fallback when the flag is outside Core's raster bank. */
95
+ flag?: string;
96
+ documents: string[];
97
+ };
98
+ }
package/src/index.ts CHANGED
@@ -181,6 +181,48 @@ export {
181
181
  DigitalIdUploadFileTooLargeScreen,
182
182
  type DigitalIdUploadFileTooLargeScreenProps,
183
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';
184
226
  // ── ID Capture ──────────────────────────────────────────────────────────────
185
227
  // Purple sections of the ID Capture Figma file (U1EOfl9RQ1rOlOIuQw3rhL, page
186
228
  // 16285:41282) — 100 spec sections across 13 parent groups, collapsed onto 12
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';