@funkit/connect-rn 4.1.0 → 4.2.0

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 (97) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/dist/{chunk-SCMY3DZK.js → chunk-A66EO5J5.js} +377 -25
  3. package/dist/chunk-A66EO5J5.js.map +7 -0
  4. package/dist/{chunk-EZBXZZJG.js → chunk-N7Z6UHT7.js} +4 -3
  5. package/dist/chunk-N7Z6UHT7.js.map +7 -0
  6. package/dist/clients/lighter.js +1 -1
  7. package/dist/clients/nado.js +2 -2
  8. package/dist/index.js +3511 -701
  9. package/dist/index.js.map +4 -4
  10. package/dist/src/fiat/FiatBackButton.d.ts +11 -0
  11. package/dist/src/fiat/FiatBackButton.d.ts.map +1 -0
  12. package/dist/src/fiat/FiatConsentCheck.d.ts +11 -0
  13. package/dist/src/fiat/FiatConsentCheck.d.ts.map +1 -0
  14. package/dist/src/fiat/FiatContactScreen.d.ts +17 -0
  15. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -0
  16. package/dist/src/fiat/FiatDatePickerDock.d.ts +26 -0
  17. package/dist/src/fiat/FiatDatePickerDock.d.ts.map +1 -0
  18. package/dist/src/fiat/FiatFormAdvance.d.ts +17 -0
  19. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -0
  20. package/dist/src/fiat/FiatFormConsent.d.ts +6 -0
  21. package/dist/src/fiat/FiatFormConsent.d.ts.map +1 -0
  22. package/dist/src/fiat/FiatFormFieldRow.d.ts +66 -0
  23. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -0
  24. package/dist/src/fiat/FiatFormScreen.d.ts +32 -0
  25. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -0
  26. package/dist/src/fiat/FiatGradientTitle.d.ts +15 -0
  27. package/dist/src/fiat/FiatGradientTitle.d.ts.map +1 -0
  28. package/dist/src/fiat/FiatKycIntroScreen.d.ts +16 -0
  29. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -0
  30. package/dist/src/fiat/FiatKycNotice.d.ts +12 -0
  31. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -0
  32. package/dist/src/fiat/FiatOtpScreen.d.ts +30 -0
  33. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -0
  34. package/dist/src/fiat/FiatProviderTerms.d.ts +12 -0
  35. package/dist/src/fiat/FiatProviderTerms.d.ts.map +1 -0
  36. package/dist/src/fiat/FiatQuotePrice.d.ts +12 -0
  37. package/dist/src/fiat/FiatQuotePrice.d.ts.map +1 -0
  38. package/dist/src/fiat/calendarDate.d.ts +40 -0
  39. package/dist/src/fiat/calendarDate.d.ts.map +1 -0
  40. package/dist/src/fiat/ctaLabel.d.ts +11 -0
  41. package/dist/src/fiat/ctaLabel.d.ts.map +1 -1
  42. package/dist/src/fiat/fieldAutofill.d.ts +17 -0
  43. package/dist/src/fiat/fieldAutofill.d.ts.map +1 -0
  44. package/dist/src/fiat/formLayout.d.ts +55 -0
  45. package/dist/src/fiat/formLayout.d.ts.map +1 -0
  46. package/dist/src/fiat/formNotice.d.ts +13 -0
  47. package/dist/src/fiat/formNotice.d.ts.map +1 -0
  48. package/dist/src/fiat/formScreenProps.d.ts +17 -0
  49. package/dist/src/fiat/formScreenProps.d.ts.map +1 -0
  50. package/dist/src/fiat/keyboardReturnKey.d.ts +7 -0
  51. package/dist/src/fiat/keyboardReturnKey.d.ts.map +1 -0
  52. package/dist/src/fiat/kycFormTheme.d.ts +86 -0
  53. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -0
  54. package/dist/src/fiat/legalLinks.d.ts +22 -0
  55. package/dist/src/fiat/legalLinks.d.ts.map +1 -0
  56. package/dist/src/fiat/nativeDatePicker.d.ts +43 -0
  57. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -0
  58. package/dist/src/fiat/otpScreenProps.d.ts +17 -0
  59. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -0
  60. package/dist/src/fiat/providers/SumsubKycSurface.d.ts +22 -0
  61. package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -0
  62. package/dist/src/fiat/providers/adapter.d.ts +21 -5
  63. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  64. package/dist/src/fiat/providers/banxaRedirect.d.ts +4 -0
  65. package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -0
  66. package/dist/src/fiat/providers/sumsubKyc.d.ts +19 -0
  67. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -0
  68. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
  69. package/dist/src/fiat/renderCaptureSurface.d.ts +13 -3
  70. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  71. package/dist/src/fiat/sectionDetail.d.ts +11 -0
  72. package/dist/src/fiat/sectionDetail.d.ts.map +1 -0
  73. package/dist/src/fiat/sessionContact.d.ts +31 -0
  74. package/dist/src/fiat/sessionContact.d.ts.map +1 -0
  75. package/dist/src/fiat/stepDetails.d.ts +18 -1
  76. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  77. package/dist/src/fiat/useDatePickerDock.d.ts +29 -0
  78. package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -0
  79. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +23 -0
  80. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -0
  81. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  82. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  83. package/dist/src/screens/DepositAmountScreen.d.ts +3 -1
  84. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  85. package/dist/src/theme/buildFunkitTheme.d.ts +16 -0
  86. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  87. package/dist/src/theme/isDarkColor.d.ts +9 -0
  88. package/dist/src/theme/isDarkColor.d.ts.map +1 -0
  89. package/dist/src/theme/restyle.d.ts +528 -0
  90. package/dist/src/theme/restyle.d.ts.map +1 -1
  91. package/dist/src/theme/toRestyleTheme.d.ts +48 -0
  92. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  93. package/dist/src/theme/tokens.d.ts +40 -0
  94. package/dist/src/theme/tokens.d.ts.map +1 -1
  95. package/package.json +8 -4
  96. package/dist/chunk-EZBXZZJG.js.map +0 -7
  97. package/dist/chunk-SCMY3DZK.js.map +0 -7
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Geometry read off the design frames. Kept together so a redraw is one edit
3
+ * rather than a hunt through two components.
4
+ */
5
+ export declare const KYC_FORM_METRICS: {
6
+ /** Field height, and the back button's diameter. */
7
+ readonly fieldHeight: 56;
8
+ readonly fieldRadius: 16;
9
+ readonly fieldPaddingHorizontal: 16;
10
+ /** An optional field's caption needs the extra 4px, so it insets less. */
11
+ readonly optionalPaddingHorizontal: 12;
12
+ /** Where that caption sits, clear of the placeholder above it. */
13
+ readonly optionalCaptionBottom: 7;
14
+ /** Between the rows of one section. */
15
+ readonly rowGap: 8;
16
+ readonly noticeHeight: 60;
17
+ readonly noticeRadius: 26;
18
+ /** Card bottom (364) to the notice (411). */
19
+ readonly noticeTop: 47;
20
+ readonly noticeTracking: -0.14;
21
+ /** Between two fields sharing a row (first name + M.I., day/month/year). */
22
+ readonly fieldGap: 9;
23
+ /** The middle-initial field is fixed while its neighbour grows. */
24
+ readonly initialWidth: 104;
25
+ readonly screenInset: 24;
26
+ readonly backButtonSize: 44;
27
+ /** The disc clears the status bar by this much. */
28
+ readonly backButtonTop: 5;
29
+ /** The heading is inset past the fields, not aligned to them. */
30
+ readonly headingInset: 40;
31
+ /** Below the back disc. */
32
+ readonly headingTop: 32;
33
+ /** Between the heading and the paragraph under it. */
34
+ readonly headingGap: 8;
35
+ /** Below the paragraph, before the first field. */
36
+ readonly headingBottom: 16;
37
+ /** The paragraph: larger than body, and the only place this size is used. */
38
+ readonly detailFontSize: 21;
39
+ readonly detailLineHeight: 24;
40
+ /**
41
+ * Between the advance control and the keyboard it sits above — measured on
42
+ * 1508:2616 (455..511 over a keyboard at 545) and 1631:7256 alike.
43
+ */
44
+ readonly advanceGap: 34;
45
+ /**
46
+ * The date picker's slot, taking the keyboard's place (1844:17543). Inset
47
+ * because the design floats the calendar off the screen's edges.
48
+ */
49
+ readonly datePickerHeight: 371;
50
+ readonly datePickerInsetX: 10;
51
+ readonly datePickerInsetY: 12;
52
+ /** Tighter than over a keyboard: 1844:17471 puts the advance 24 above it. */
53
+ readonly datePickerGap: 24;
54
+ /** Disc bottom (108) to the headline's line box (181). */
55
+ readonly introHeadingTop: 73;
56
+ /** 38/38 with the box 286 wide, which is what wraps it onto two lines. */
57
+ readonly introTitleFontSize: 38;
58
+ readonly introTitleTracking: -1.14;
59
+ readonly introTitleWidth: 286;
60
+ /** Headline bottom (257) to the paragraph (276). */
61
+ readonly introTitleGap: 19;
62
+ /** The paragraph's own measure (268), four lines of it. */
63
+ readonly introDetailWidth: 268;
64
+ readonly introDetailTracking: -0.42;
65
+ /**
66
+ * Below the action (784) to the frame's foot: the watermark's own 16 band,
67
+ * its 18 of type, and the 34 the design clears the action by.
68
+ */
69
+ readonly introActionBottom: 68;
70
+ /** The consent checkbox, and the gap to the copy beside it. */
71
+ readonly consentBoxSize: 32;
72
+ readonly consentBoxGap: 10;
73
+ /** Smaller than any body token, and used on the legal lines alone. */
74
+ readonly consentFontSize: 12;
75
+ /** Four lines of it fill the 52 the frame gives the consent row. */
76
+ readonly consentLineHeight: 13;
77
+ /** Between each legal line and the action below them. */
78
+ readonly consentGap: 16;
79
+ /** They are inset past the action, as the heading is past the fields. */
80
+ readonly consentInset: 16;
81
+ /** A code box is taller than a form field, and its digit larger. */
82
+ readonly codeBoxHeight: 64;
83
+ readonly codeBoxGap: 8;
84
+ readonly codeDigitFontSize: 28;
85
+ };
86
+ //# sourceMappingURL=kycFormTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kycFormTheme.d.ts","sourceRoot":"","sources":["../../../src/fiat/kycFormTheme.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,oDAAoD;;;;IAIpD,0EAA0E;;IAE1E,kEAAkE;;IAElE,uCAAuC;;;;IAQvC,6CAA6C;;;IAG7C,4EAA4E;;IAE5E,mEAAmE;;;;IAInE,mDAAmD;;IAEnD,iEAAiE;;IAEjE,2BAA2B;;IAE3B,sDAAsD;;IAEtD,mDAAmD;;IAEnD,6EAA6E;;;IAG7E;;;OAGG;;IAEH;;;OAGG;;;;IAIH,6EAA6E;;IAO7E,0DAA0D;;IAE1D,0EAA0E;;;;IAI1E,oDAAoD;;IAEpD,2DAA2D;;;IAG3D;;;OAGG;;IAEH,+DAA+D;;;IAG/D,sEAAsE;;IAEtE,oEAAoE;;IAEpE,yDAAyD;;IAEzD,yEAAyE;;IAEzE,oEAAoE;;;;CAI5D,CAAA"}
@@ -0,0 +1,22 @@
1
+ import type { FiatProvider } from '@funkit/connect-core';
2
+ /**
3
+ * The documents the identity step points at.
4
+ *
5
+ * Held together because two screens link them, and a provider change is one
6
+ * edit rather than a hunt through the copy.
7
+ */
8
+ /** Fun's own policy, linked from the consent the buyer has to give. */
9
+ export declare const PRIVACY_POLICY_URL = "https://fun.xyz/privacy";
10
+ /**
11
+ * Bumped whenever the consent copy changes, and logged with every consent, so
12
+ * a record can be matched to the words the buyer actually read.
13
+ */
14
+ export declare const CONSENT_COPY_VERSION = "2026-09-08";
15
+ /** The provider's terms, or `undefined` when none is on record for it. */
16
+ export declare function providerTermsUrl(provider: FiatProvider | undefined): string | undefined;
17
+ /**
18
+ * The provider's name as the copy should print it. `fallback` is what a
19
+ * screen drawn with no round to name one says instead.
20
+ */
21
+ export declare function providerDisplayName(provider: FiatProvider | undefined, fallback: string): string;
22
+ //# sourceMappingURL=legalLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legalLinks.d.ts","sourceRoot":"","sources":["../../../src/fiat/legalLinks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD;;;;;GAKG;AAEH,uEAAuE;AACvE,eAAO,MAAM,kBAAkB,4BAA4B,CAAA;AAE3D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,eAAe,CAAA;AAoBhD,0EAA0E;AAC1E,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,GAAG,SAAS,GACjC,MAAM,GAAG,SAAS,CAEpB;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,QAAQ,EAAE,MAAM,GACf,MAAM,CAQR"}
@@ -0,0 +1,43 @@
1
+ import type { ComponentType } from 'react';
2
+ /** The props this build asks of the picker, whichever platform draws it. */
3
+ export interface NativeDatePickerProps {
4
+ value: Date;
5
+ mode: 'date';
6
+ display: 'inline' | 'calendar';
7
+ minimumDate: Date;
8
+ maximumDate: Date;
9
+ themeVariant?: 'light' | 'dark';
10
+ onChange: (event: {
11
+ type: string;
12
+ }, date?: Date) => void;
13
+ }
14
+ export type NativeDatePicker = ComponentType<NativeDatePickerProps>;
15
+ /**
16
+ * The picker, `null` when the peer is not installed, `undefined` while that
17
+ * is still being decided.
18
+ */
19
+ export type NativeDatePickerState = NativeDatePicker | null | undefined;
20
+ /**
21
+ * The platform's own date picker, from the optional
22
+ * `@react-native-community/datetimepicker` peer.
23
+ *
24
+ * Native by design decision — a hand-drawn calendar is not the control the
25
+ * platform trains people on. The peer is optional so installing the SDK does
26
+ * not force a native module on hosts that never take a fiat deposit; the
27
+ * field falls back to a typed box when it is absent.
28
+ *
29
+ * The import is dynamic and inside a `try`, which is what makes the peer
30
+ * genuinely optional: Metro treats a dependency whose import can reject as
31
+ * optional and skips it at resolution rather than failing the bundle.
32
+ */
33
+ export declare function useNativeDatePicker(): NativeDatePickerState;
34
+ /** How each platform draws a calendar: iOS inline, Android as its dialog. */
35
+ export declare const DATE_PICKER_DISPLAY: string;
36
+ /**
37
+ * Whether the picker takes room on the screen. iOS draws it inline, so the
38
+ * step must give up the keyboard's slot; Android opens a dialog over
39
+ * everything and needs none.
40
+ */
41
+ export declare const DATE_PICKER_IS_INLINE: boolean;
42
+ export declare function loadNativeDatePicker(): Promise<NativeDatePicker | null>;
43
+ //# sourceMappingURL=nativeDatePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeDatePicker.d.ts","sourceRoot":"","sources":["../../../src/fiat/nativeDatePicker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAM1C,4EAA4E;AAC5E,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,IAAI,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,QAAQ,GAAG,UAAU,CAAA;IAC9B,WAAW,EAAE,IAAI,CAAA;IACjB,WAAW,EAAE,IAAI,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAA;CACzD;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAA;AAEnE;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,IAAI,GAAG,SAAS,CAAA;AAQvE;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,IAAI,qBAAqB,CA6B3D;AASD,6EAA6E;AAC7E,eAAO,MAAM,mBAAmB,QAAgD,CAAA;AAEhF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,SAAwB,CAAA;AAE1D,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAc7E"}
@@ -0,0 +1,17 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ import type { FiatOtpScreenProps } from './FiatOtpScreen';
4
+ /**
5
+ * Binds a `SESSION_AUTH` step response to the code screen.
6
+ *
7
+ * The input's name and length are read off the transition, not assumed: the
8
+ * contract declares them per step, and a step that words them differently
9
+ * still renders.
10
+ *
11
+ * `undefined` means the step is unanswerable — no CTA, one that collects
12
+ * nothing, or nowhere to have sent the code to.
13
+ */
14
+ export declare function otpScreenProps(flow: FiatFlow, t: TFunction,
15
+ /** The number or address the session was opened with; the code went to it. */
16
+ destination: string | undefined): Omit<FiatOtpScreenProps, 'onClose'> | undefined;
17
+ //# sourceMappingURL=otpScreenProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otpScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/otpScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,8EAA8E;AAC9E,WAAW,EAAE,MAAM,GAAG,SAAS,GAC9B,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAAG,SAAS,CAiCjD"}
@@ -0,0 +1,22 @@
1
+ export interface SumsubKycSurfaceProps {
2
+ accessToken: string;
3
+ /** Drawn to match the host, rather than the SDK's own light default. */
4
+ scheme: 'light' | 'dark';
5
+ /**
6
+ * Mints a replacement token. The SDK's own expires in minutes — well inside
7
+ * a document capture — and it asks for a new one rather than failing.
8
+ */
9
+ onRenewToken: () => Promise<string | undefined>;
10
+ /** The applicant's checks are in; the round can be reported. */
11
+ onSubmitted: () => void;
12
+ onFailed: (code: string) => void;
13
+ }
14
+ /**
15
+ * Sumsub's WebSDK, hosted in a WebView.
16
+ *
17
+ * The document is ours and the token is injected into it, so the SDK never
18
+ * arrives over a URL a response chose — `params` carries a credential, not a
19
+ * page to open.
20
+ */
21
+ export declare function SumsubKycSurface({ accessToken, scheme, onRenewToken, onSubmitted, onFailed, }: SumsubKycSurfaceProps): import("react").JSX.Element;
22
+ //# sourceMappingURL=SumsubKycSurface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SumsubKycSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/SumsubKycSurface.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,MAAM,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB;;;OAGG;IACH,YAAY,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC/C,gEAAgE;IAChE,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CACjC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,WAAW,EACX,MAAM,EACN,YAAY,EACZ,WAAW,EACX,QAAQ,GACT,EAAE,qBAAqB,+BA+DvB"}
@@ -1,21 +1,37 @@
1
1
  import type { Surface, SurfaceResult } from '@funkit/connect-core';
2
2
  import type { ReactNode } from 'react';
3
+ /**
4
+ * Who operates the control.
5
+ *
6
+ * `EMBEDDED` — the provider draws it in place (Transak's Apple Pay button is
7
+ * a WebView), so the screen covers it until the widget reports ready.
8
+ * `HANDOFF` — payment happens outside the app, so the surface owns the canvas
9
+ * and there is no readiness to wait for.
10
+ */
11
+ export type SurfaceControlModel = 'EMBEDDED' | 'HANDOFF';
3
12
  /** What the screen lends a surface for as long as it runs. */
4
13
  export interface SurfaceContext {
5
14
  placement: 'INLINE' | 'SCREEN';
15
+ /** Uncovers an `EMBEDDED` widget; a handoff has nothing to announce. */
6
16
  onReady: () => void;
7
17
  /** The provider gave up on this attempt; its machine will not recover. */
8
18
  onFailed: (code: string) => void;
19
+ /** Leaves the flow — a handoff draws its own chrome, close included. */
20
+ onClose: () => void;
9
21
  report: (result: SurfaceResult) => void;
10
22
  }
23
+ export interface ClaimedSurface {
24
+ control: SurfaceControlModel;
25
+ render: (context: SurfaceContext) => ReactNode;
26
+ }
11
27
  /**
12
- * Claims a surface and returns its renderer, or declines it.
28
+ * Claims a surface, or declines it.
13
29
  *
14
30
  * Each adapter narrows `params` itself: the contract says `provider` never
15
31
  * narrows their shape, so one vendor can carry two vocabularies and the pair
16
- * `(kind, provider)` plus a shape check is the whole match. Returning the
17
- * renderer bound to the narrowed params is what keeps that type inside the
18
- * adapter instead of in a union the registry would have to carry.
32
+ * `(kind, provider)` plus a shape check is the whole match. Binding the
33
+ * renderer to the narrowed params keeps that type inside the adapter rather
34
+ * than in a union the registry would have to carry.
19
35
  */
20
- export type SurfaceAdapter = (surface: Surface) => ((context: SurfaceContext) => ReactNode) | undefined;
36
+ export type SurfaceAdapter = (surface: Surface) => ClaimedSurface | undefined;
21
37
  //# sourceMappingURL=adapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,0EAA0E;IAC1E,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,CAC3B,OAAO,EAAE,OAAO,KACb,CAAC,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAC,GAAG,SAAS,CAAA"}
1
+ {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC;;;;;;;GAOG;AACH,MAAM,MAAM,mBAAmB,GAAG,UAAU,GAAG,SAAS,CAAA;AAExD,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC9B,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,0EAA0E;IAC1E,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,wEAAwE;IACxE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAA;CACxC;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAA;IAC5B,MAAM,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,SAAS,CAAA;CAC/C;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { SurfaceAdapter } from './adapter';
2
+ /** Banxa's hosted page collects KYC and takes payment outside the app. */
3
+ export declare const banxaRedirect: SurfaceAdapter;
4
+ //# sourceMappingURL=banxaRedirect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banxaRedirect.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/banxaRedirect.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA8B/D,0EAA0E;AAC1E,eAAO,MAAM,aAAa,EAAE,cAU3B,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { Quote } from '@funkit/connect-core';
2
+ import type { SurfaceAdapter } from './adapter';
3
+ /** Mints a replacement token when the SDK's own runs out mid-capture. */
4
+ export type RenewToken = () => Promise<string | undefined>;
5
+ /**
6
+ * Sumsub collects identity in its own SDK, full-screen.
7
+ *
8
+ * `HANDOFF` rather than `EMBEDDED`: document capture and liveness own the
9
+ * canvas and draw their own chrome, so there is no widget for the screen to
10
+ * cover and no readiness to wait for.
11
+ */
12
+ /**
13
+ * Built per screen rather than registered, because renewal needs the quote the
14
+ * capture belongs to — which the surface itself does not carry.
15
+ */
16
+ export declare function sumsubKycAdapter(renewToken: RenewToken, quote?: Quote): SurfaceAdapter;
17
+ /** The registry's entry, for a screen that cannot renew. */
18
+ export declare const sumsubKyc: SurfaceAdapter;
19
+ //# sourceMappingURL=sumsubKyc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sumsubKyc.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/sumsubKyc.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAW,MAAM,sBAAsB,CAAA;AAS1D,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAO/D,yEAAyE;AACzE,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAoB1D;;;;;;GAMG;AACH;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,UAAU,EACtB,KAAK,CAAC,EAAE,KAAK,GACZ,cAAc,CAQhB;AAED,4DAA4D;AAC5D,eAAO,MAAM,SAAS,EAAE,cAEvB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AA6C/C,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAuB7B,CAAA"}
1
+ {"version":3,"file":"transakApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/transakApplePay.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AA6C/D,mEAAmE;AACnE,eAAO,MAAM,eAAe,EAAE,cAO7B,CAAA"}
@@ -1,8 +1,18 @@
1
1
  import type { Surface } from '@funkit/connect-core';
2
2
  import type { ReactNode } from 'react';
3
- import type { SurfaceContext } from './providers/adapter';
4
- export declare function supportsCaptureSurface(surface: Surface): boolean;
5
- export declare function renderCaptureSurface({ surface, ...context }: SurfaceContext & {
3
+ import type { SurfaceAdapter, SurfaceContext, SurfaceControlModel } from './providers/adapter';
4
+ /**
5
+ * How this surface is operated, or `undefined` when nothing can draw it.
6
+ * Asked before rendering, because the two models want different chrome.
7
+ */
8
+ export declare function captureControl(surface: Surface): SurfaceControlModel | undefined;
9
+ /**
10
+ * `adapters` are tried before the registry, for a screen that can build one
11
+ * the registry cannot — the identity SDK needs the quote its capture belongs
12
+ * to, which the surface itself does not carry.
13
+ */
14
+ export declare function renderCaptureSurface({ surface, adapters, ...context }: SurfaceContext & {
6
15
  surface: Surface;
16
+ adapters?: readonly SurfaceAdapter[];
7
17
  }): ReactNode;
8
18
  //# sourceMappingURL=renderCaptureSurface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAkB,cAAc,EAAE,MAAM,qBAAqB,CAAA;AA0BzE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEhE;AAED,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAEnD"}
1
+ {"version":3,"file":"renderCaptureSurface.d.ts","sourceRoot":"","sources":["../../../src/fiat/renderCaptureSurface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAEV,cAAc,EACd,cAAc,EACd,mBAAmB,EACpB,MAAM,qBAAqB,CAAA;AAiC5B;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,GACf,mBAAmB,GAAG,SAAS,CAEjC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,QAAQ,EACR,GAAG,OAAO,EACX,EAAE,cAAc,GAAG;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,cAAc,EAAE,CAAA;CACrC,GAAG,SAAS,CAEZ"}
@@ -0,0 +1,11 @@
1
+ import type { TFunction } from 'i18next';
2
+ import type { KycSection } from './formLayout';
3
+ /**
4
+ * The line under the title on one page. The title itself never changes, so
5
+ * this is what says which details the page is asking for.
6
+ *
7
+ * Client copy, read off the frames: 1508:2616, 1844:17471, 1631:7256,
8
+ * 1631:7883.
9
+ */
10
+ export declare function sectionDetail(section: KycSection, t: TFunction): string;
11
+ //# sourceMappingURL=sectionDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionDetail.d.ts","sourceRoot":"","sources":["../../../src/fiat/sectionDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAavE"}
@@ -0,0 +1,31 @@
1
+ import type { EntryCta } from '@funkit/connect-core';
2
+ /** Where the one-time code is sent, which decides keyboard and copy. */
3
+ export type ContactKind = 'PHONE' | 'EMAIL';
4
+ export interface SessionContactField {
5
+ /** The transition's own input name — the key the answer is sent back under. */
6
+ name: string;
7
+ kind: ContactKind;
8
+ /** The server's pattern for the value, when it declares one. */
9
+ regex?: string;
10
+ }
11
+ /**
12
+ * The one value the session-opening transition asks the user for.
13
+ *
14
+ * Taken from whatever single `TEXT` input the transition declares, whatever it
15
+ * is named: the name is the body key, so gating on a known name is how the
16
+ * client stops sending a field the server asked for.
17
+ */
18
+ export declare function sessionContactField(entry: EntryCta): SessionContactField | undefined;
19
+ export declare function isUnfamiliarContactName(name: string): boolean;
20
+ /**
21
+ * A number always has to be E.164 — `/fiat/*` rejects anything else on any
22
+ * route, so it is the rule whether or not this step restates it. A pattern the
23
+ * step declares narrows that further; it never widens it.
24
+ */
25
+ export declare function isCompleteContact(field: SessionContactField, value: string): boolean;
26
+ /**
27
+ * Deliberately loose — a stricter pattern rejects addresses that are perfectly
28
+ * valid.
29
+ */
30
+ export declare function looksLikeEmail(value: string): boolean;
31
+ //# sourceMappingURL=sessionContact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sessionContact.d.ts","sourceRoot":"","sources":["../../../src/fiat/sessionContact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,wEAAwE;AACxE,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,OAAO,CAAA;AAE3C,MAAM,WAAW,mBAAmB;IAClC,+EAA+E;IAC/E,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,CAAA;IACjB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,QAAQ,GACd,mBAAmB,GAAG,SAAS,CAgBjC;AAgBD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,MAAM,GACZ,OAAO,CAYT;AAkBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAErD"}
@@ -1,4 +1,4 @@
1
- import type { FiatFlow, Quote } from '@funkit/connect-core';
1
+ import type { FailureReason, FiatFlow, Quote } from '@funkit/connect-core';
2
2
  import type { TFunction } from 'i18next';
3
3
  import type { FeeDetailsRow } from '../screens/FeeDetailsScreen';
4
4
  /**
@@ -24,4 +24,21 @@ export declare function reviewDetail(flow: FiatFlow): string | undefined;
24
24
  * keys them by have no entry in this package's catalogue.
25
25
  */
26
26
  export declare function quoteFeeRows(quote: Quote | undefined, t: TFunction): FeeDetailsRow[];
27
+ /**
28
+ * A step's own error, worded for the banner it renders as. The contract sends
29
+ * no message — `code` is a copy key — so the category is what the copy keys off.
30
+ */
31
+ export declare function roundErrorMessage(error: FailureReason | undefined, t: TFunction): string | undefined;
32
+ /**
33
+ * A cooling-off hold's comeback date, worded as the ISO day it names.
34
+ *
35
+ * The day rather than the instant, and unformatted: connect-rn takes no Intl
36
+ * dependency, and a locale-guessed date is worse than an unambiguous one.
37
+ */
38
+ export declare function onHoldDetail(flow: FiatFlow, t: TFunction): string;
39
+ /**
40
+ * What a rejection leaves the user. Only the terminal variant carries a
41
+ * recovery, and support is the only one it names.
42
+ */
43
+ export declare function rejectedDetail(flow: FiatFlow, t: TFunction): string | undefined;
27
44
  //# sourceMappingURL=stepDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CASpD;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/D;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,CAAC,EAAE,SAAS,GACX,aAAa,EAAE,CAoCjB"}
1
+ {"version":3,"file":"stepDetails.d.ts","sourceRoot":"","sources":["../../../src/fiat/stepDetails.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAIhE;;;;;;GAMG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB;AAED,oEAAoE;AACpE,wBAAgB,WAAW,CACzB,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CASpD;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/D;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,GAAG,SAAS,EACxB,CAAC,EAAE,SAAS,GACX,aAAa,EAAE,CAoCjB;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,GAAG,SAAS,EAChC,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAsBpB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAKjE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAQpB"}
@@ -0,0 +1,29 @@
1
+ import type { FormField } from '@funkit/connect-core';
2
+ import { Animated } from 'react-native';
3
+ import type { KycSectionPage } from './formLayout';
4
+ import { type NativeDatePicker } from './nativeDatePicker';
5
+ export interface DatePickerDock {
6
+ /** The page's date a picker answers, absent when none can. */
7
+ field?: FormField;
8
+ /** Set whenever a picker could answer this page's date, open or not. */
9
+ Picker?: NativeDatePicker;
10
+ isOpen: boolean;
11
+ /** Pressing the field raises the picker, and presses it away again. */
12
+ toggle: () => void;
13
+ close: () => void;
14
+ /** Room the picker takes while up; 0 on a page that has none. */
15
+ height: number;
16
+ /** 0 closed, 1 open, on the keyboard's own curve. */
17
+ slide: Animated.Value;
18
+ }
19
+ /**
20
+ * The date picker a form page stands over.
21
+ *
22
+ * Held here rather than in the screen so the form does not carry the rules
23
+ * about which platform draws what: the screen only needs to know how much
24
+ * room to give up and what to draw in it.
25
+ */
26
+ export declare function useDatePickerDock(
27
+ /** Absent while the form is on its faceplate, or has no page to draw. */
28
+ page: KycSectionPage | undefined, step: number): DatePickerDock;
29
+ //# sourceMappingURL=useDatePickerDock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDatePickerDock.d.ts","sourceRoot":"","sources":["../../../src/fiat/useDatePickerDock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,QAAQ,EAAU,MAAM,cAAc,CAAA;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAGlD,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,WAAW,cAAc;IAC7B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,wEAAwE;IACxE,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,uEAAuE;IACvE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAA;IACd,qDAAqD;IACrD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAA;CACtB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB;AAC/B,yEAAyE;AACzE,IAAI,EAAE,cAAc,GAAG,SAAS,EAChC,IAAI,EAAE,MAAM,GACX,cAAc,CA6ChB"}
@@ -0,0 +1,23 @@
1
+ import type { FiatFlow, UseFiatQuoteResult } from '@funkit/connect-core';
2
+ type RecoverableFlow = Pick<FiatFlow, 'phase' | 'submitError' | 'stepResponse'>;
3
+ type RecoverableQuote = Pick<UseFiatQuoteResult, 'quote' | 'isQuoteFresh' | 'quoteError' | 'retryQuote' | 'submitQuote'>;
4
+ export interface StaleQuoteRecovery {
5
+ /** A replacement price is on its way, so the entry screen holds. */
6
+ isReplacing: boolean;
7
+ /** Asks for another replacement — what a retry means on a dead ref. */
8
+ replaceQuote: () => void;
9
+ }
10
+ /**
11
+ * Re-sends an entry submission the server answered with a dead quoteRef.
12
+ *
13
+ * - The ref is the server's, carried in the transition it hands back, so a
14
+ * replay cannot fix it. A new price brings a new transition naming a live
15
+ * one, and what the user typed rides on the flow rather than the round.
16
+ * - Automatic once, then only when asked. A provider that declined answers
17
+ * with the same 404, so a self-driven loop never reaches a different answer.
18
+ * - Entry only. Past it a new price has no session behind it, and the round
19
+ * has to start again.
20
+ */
21
+ export declare function useStaleQuoteRecovery(flow: RecoverableFlow, quote: RecoverableQuote): StaleQuoteRecovery;
22
+ export {};
23
+ //# sourceMappingURL=useStaleQuoteRecovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStaleQuoteRecovery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useStaleQuoteRecovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAMxE,KAAK,eAAe,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,aAAa,GAAG,cAAc,CAAC,CAAA;AAE/E,KAAK,gBAAgB,GAAG,IAAI,CAC1B,kBAAkB,EAClB,OAAO,GAAG,cAAc,GAAG,YAAY,GAAG,YAAY,GAAG,aAAa,CACvE,CAAA;AAED,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAA;IACpB,uEAAuE;IACvE,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,eAAe,EACrB,KAAK,EAAE,gBAAgB,GACtB,kBAAkB,CAwEpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAqCA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAiB5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAiBA"}
1
+ {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAiB5B,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAiBA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AAOA,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,aAAa,uDAU5B"}
1
+ {"version":3,"file":"useUserIpInfo.d.ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AAOA,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,aAAa,uDAa5B"}
@@ -40,6 +40,8 @@ export interface DepositAmountScreenProps {
40
40
  feeAccessibilityLabel?: string;
41
41
  /** Badge on the fee line's leading side (e.g. an Apple Pay mark). */
42
42
  methodBadge?: ReactNode;
43
+ /** Banner between the header and the amount, e.g. an identity hold. */
44
+ notice?: ReactNode;
43
45
  submitLabel: string;
44
46
  canSubmit: boolean;
45
47
  onSubmit: () => void;
@@ -59,5 +61,5 @@ export interface DepositAmountScreenProps {
59
61
  * limit — answers with a side-to-side shake, a brief warning tint and a haptic
60
62
  * instead of changing the value.
61
63
  */
62
- export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
64
+ export declare function DepositAmountScreen({ title, brandIcon, accountContext, input, onChangeInput, quickAmounts, limitUsd, fee, feePending, onPressFee, feeAccessibilityLabel, methodBadge, notice, submitLabel, canSubmit, onSubmit, renderSubmit, amountAccessibilityLabel, backspaceAccessibilityLabel, showAttribution, }: DepositAmountScreenProps): import("react").JSX.Element;
63
65
  //# sourceMappingURL=DepositAmountScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAcjD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAsBzC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAoBD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,SAAS,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,2BAA2B,EAAE,MAAM,CAAA;IACnC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAmH1B"}
1
+ {"version":3,"file":"DepositAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/DepositAmountScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAa,MAAM,OAAO,CAAA;AAcjD,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AAsBzC;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAOhE;AAoBD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,4DAA4D;IAC5D,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,0DAA0D;IAC1D,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,uEAAuE;IACvE,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,SAAS,CAAA;IAC9B,wBAAwB,EAAE,MAAM,CAAA;IAChC,2BAA2B,EAAE,MAAM,CAAA;IACnC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,SAAS,EACT,cAAc,EACd,KAAK,EACL,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,GAAG,EACH,UAAkB,EAClB,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,MAAM,EACN,WAAW,EACX,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAuB,GACxB,EAAE,wBAAwB,+BAqH1B"}
@@ -42,6 +42,8 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
42
42
  hyperlink: string;
43
43
  warning: string;
44
44
  watermark: string;
45
+ tertiary: string;
46
+ ghosted: string;
45
47
  };
46
48
  button: {
47
49
  primary: {
@@ -98,6 +100,20 @@ export declare function buildFunkitTheme(tokens: FunkitTokens): {
98
100
  disabled: number;
99
101
  };
100
102
  font: import("./tokens").FunkitFontTokens;
103
+ form: {
104
+ field: string;
105
+ fieldNext: string;
106
+ divider: string;
107
+ fieldInvalid: {
108
+ fill: string;
109
+ content: string;
110
+ placeholder: string;
111
+ };
112
+ errorNotice: {
113
+ fill: string;
114
+ content: string;
115
+ };
116
+ };
101
117
  spacing: {
102
118
  none: number;
103
119
  elementsHorizontal: number;
@@ -1 +1 @@
1
- {"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAYjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoHpD"}
1
+ {"version":3,"file":"buildFunkitTheme.d.ts","sourceRoot":"","sources":["../../../src/theme/buildFunkitTheme.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,UAAU,CAAA;AAYjB;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuHpD"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Whether the sheet this sits in is dark.
3
+ *
4
+ * Read off the modal's own fill rather than the system scheme: a host can pin
5
+ * one theme for both schemes — fomo draws dark on a light phone — and the SDK
6
+ * has to match the surface it is drawn on, not the OS.
7
+ */
8
+ export declare function isDarkColor(color: string): boolean;
9
+ //# sourceMappingURL=isDarkColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isDarkColor.d.ts","sourceRoot":"","sources":["../../../src/theme/isDarkColor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAYlD"}