@funkit/connect-rn 4.1.0 → 4.3.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 (127) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/dist/{chunk-EZBXZZJG.js → chunk-5YSMFPBG.js} +4 -3
  3. package/dist/chunk-5YSMFPBG.js.map +7 -0
  4. package/dist/{chunk-SCMY3DZK.js → chunk-PIAR365R.js} +449 -41
  5. package/dist/chunk-PIAR365R.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 +5020 -972
  9. package/dist/index.js.map +4 -4
  10. package/dist/src/components/SelectableAssetRow.d.ts +3 -1
  11. package/dist/src/components/SelectableAssetRow.d.ts.map +1 -1
  12. package/dist/src/fiat/FiatBackButton.d.ts +11 -0
  13. package/dist/src/fiat/FiatBackButton.d.ts.map +1 -0
  14. package/dist/src/fiat/FiatConsentCheck.d.ts +11 -0
  15. package/dist/src/fiat/FiatConsentCheck.d.ts.map +1 -0
  16. package/dist/src/fiat/FiatContactScreen.d.ts +23 -0
  17. package/dist/src/fiat/FiatContactScreen.d.ts.map +1 -0
  18. package/dist/src/fiat/FiatCountryDock.d.ts +17 -0
  19. package/dist/src/fiat/FiatCountryDock.d.ts.map +1 -0
  20. package/dist/src/fiat/FiatDatePickerDock.d.ts +26 -0
  21. package/dist/src/fiat/FiatDatePickerDock.d.ts.map +1 -0
  22. package/dist/src/fiat/FiatFormAdvance.d.ts +17 -0
  23. package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -0
  24. package/dist/src/fiat/FiatFormConsent.d.ts +6 -0
  25. package/dist/src/fiat/FiatFormConsent.d.ts.map +1 -0
  26. package/dist/src/fiat/FiatFormFieldRow.d.ts +66 -0
  27. package/dist/src/fiat/FiatFormFieldRow.d.ts.map +1 -0
  28. package/dist/src/fiat/FiatFormScreen.d.ts +32 -0
  29. package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -0
  30. package/dist/src/fiat/FiatGradientTitle.d.ts +15 -0
  31. package/dist/src/fiat/FiatGradientTitle.d.ts.map +1 -0
  32. package/dist/src/fiat/FiatKycIntroScreen.d.ts +16 -0
  33. package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -0
  34. package/dist/src/fiat/FiatKycNotice.d.ts +12 -0
  35. package/dist/src/fiat/FiatKycNotice.d.ts.map +1 -0
  36. package/dist/src/fiat/FiatOtpScreen.d.ts +33 -0
  37. package/dist/src/fiat/FiatOtpScreen.d.ts.map +1 -0
  38. package/dist/src/fiat/FiatPhoneField.d.ts +28 -0
  39. package/dist/src/fiat/FiatPhoneField.d.ts.map +1 -0
  40. package/dist/src/fiat/FiatProviderTerms.d.ts +12 -0
  41. package/dist/src/fiat/FiatProviderTerms.d.ts.map +1 -0
  42. package/dist/src/fiat/FiatQuotePrice.d.ts +12 -0
  43. package/dist/src/fiat/FiatQuotePrice.d.ts.map +1 -0
  44. package/dist/src/fiat/FiatTermsNotice.d.ts +13 -0
  45. package/dist/src/fiat/FiatTermsNotice.d.ts.map +1 -0
  46. package/dist/src/fiat/calendarDate.d.ts +40 -0
  47. package/dist/src/fiat/calendarDate.d.ts.map +1 -0
  48. package/dist/src/fiat/ctaLabel.d.ts +11 -0
  49. package/dist/src/fiat/ctaLabel.d.ts.map +1 -1
  50. package/dist/src/fiat/fieldAutofill.d.ts +17 -0
  51. package/dist/src/fiat/fieldAutofill.d.ts.map +1 -0
  52. package/dist/src/fiat/formLayout.d.ts +55 -0
  53. package/dist/src/fiat/formLayout.d.ts.map +1 -0
  54. package/dist/src/fiat/formNotice.d.ts +13 -0
  55. package/dist/src/fiat/formNotice.d.ts.map +1 -0
  56. package/dist/src/fiat/formScreenProps.d.ts +17 -0
  57. package/dist/src/fiat/formScreenProps.d.ts.map +1 -0
  58. package/dist/src/fiat/keyboardReturnKey.d.ts +7 -0
  59. package/dist/src/fiat/keyboardReturnKey.d.ts.map +1 -0
  60. package/dist/src/fiat/knownContacts.d.ts +27 -0
  61. package/dist/src/fiat/knownContacts.d.ts.map +1 -0
  62. package/dist/src/fiat/kycFormTheme.d.ts +94 -0
  63. package/dist/src/fiat/kycFormTheme.d.ts.map +1 -0
  64. package/dist/src/fiat/legalLinks.d.ts +22 -0
  65. package/dist/src/fiat/legalLinks.d.ts.map +1 -0
  66. package/dist/src/fiat/nativeDatePicker.d.ts +43 -0
  67. package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -0
  68. package/dist/src/fiat/otpScreenProps.d.ts +18 -0
  69. package/dist/src/fiat/otpScreenProps.d.ts.map +1 -0
  70. package/dist/src/fiat/phoneCountries.d.ts +54 -0
  71. package/dist/src/fiat/phoneCountries.d.ts.map +1 -0
  72. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +23 -0
  73. package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -0
  74. package/dist/src/fiat/providers/SumsubKycSurface.d.ts +22 -0
  75. package/dist/src/fiat/providers/SumsubKycSurface.d.ts.map +1 -0
  76. package/dist/src/fiat/providers/adapter.d.ts +29 -7
  77. package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
  78. package/dist/src/fiat/providers/banxaRedirect.d.ts +4 -0
  79. package/dist/src/fiat/providers/banxaRedirect.d.ts.map +1 -0
  80. package/dist/src/fiat/providers/coinbaseApplePay.d.ts +8 -0
  81. package/dist/src/fiat/providers/coinbaseApplePay.d.ts.map +1 -0
  82. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +37 -0
  83. package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -0
  84. package/dist/src/fiat/providers/sumsubKyc.d.ts +19 -0
  85. package/dist/src/fiat/providers/sumsubKyc.d.ts.map +1 -0
  86. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -1
  87. package/dist/src/fiat/renderCaptureSurface.d.ts +13 -3
  88. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  89. package/dist/src/fiat/sectionDetail.d.ts +11 -0
  90. package/dist/src/fiat/sectionDetail.d.ts.map +1 -0
  91. package/dist/src/fiat/sessionContact.d.ts +35 -0
  92. package/dist/src/fiat/sessionContact.d.ts.map +1 -0
  93. package/dist/src/fiat/stepDetails.d.ts +18 -1
  94. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  95. package/dist/src/fiat/useCountryDock.d.ts +21 -0
  96. package/dist/src/fiat/useCountryDock.d.ts.map +1 -0
  97. package/dist/src/fiat/useDatePickerDock.d.ts +29 -0
  98. package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -0
  99. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +24 -0
  100. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -0
  101. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  102. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  103. package/dist/src/hooks/useNestedSheetHeight.d.ts +10 -0
  104. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -1
  105. package/dist/src/identity/IdentityContext.d.ts +8 -4
  106. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  107. package/dist/src/screens/DepositAmountScreen.d.ts +8 -1
  108. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  109. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  110. package/dist/src/swapped/SwappedScreenShell.d.ts +3 -1
  111. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  112. package/dist/src/swapped/SwappedWebView.d.ts +7 -2
  113. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  114. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  115. package/dist/src/theme/buildFunkitTheme.d.ts +16 -0
  116. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  117. package/dist/src/theme/isDarkColor.d.ts +9 -0
  118. package/dist/src/theme/isDarkColor.d.ts.map +1 -0
  119. package/dist/src/theme/restyle.d.ts +528 -0
  120. package/dist/src/theme/restyle.d.ts.map +1 -1
  121. package/dist/src/theme/toRestyleTheme.d.ts +48 -0
  122. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  123. package/dist/src/theme/tokens.d.ts +40 -0
  124. package/dist/src/theme/tokens.d.ts.map +1 -1
  125. package/package.json +14 -10
  126. package/dist/chunk-EZBXZZJG.js.map +0 -7
  127. package/dist/chunk-SCMY3DZK.js.map +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formLayout.d.ts","sourceRoot":"","sources":["../../../src/fiat/formLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,sBAAsB,CAAA;AAGjE;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,CAAA;AAEvE,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,CAAA;IACnB,2EAA2E;IAC3E,OAAO,EAAE,OAAO,CAAA;IAChB,uEAAuE;IACvE,IAAI,EAAE,SAAS,EAAE,EAAE,CAAA;CACpB;AAuDD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,SAAS,CAI3E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAI1D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAEvD;AAED,+EAA+E;AAC/E,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAE3D;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,EAAE,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,GAAG,cAAc,EAAE,CA4B3E"}
@@ -0,0 +1,13 @@
1
+ import type { FormFieldIssue } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ /**
4
+ * What the notice under the fields says.
5
+ *
6
+ * A refused field is drawn in the design's yellow and worded nowhere else, so
7
+ * the page's own refusals have to reach the notice — a colour arriving with no
8
+ * reason leaves the user re-reading a page that looks correct.
9
+ *
10
+ * The round's own error outranks them: the server saw the whole form.
11
+ */
12
+ export declare function formNotice(errorMessage: string | undefined, issues: readonly FormFieldIssue[], t: TFunction): string | undefined;
13
+ //# sourceMappingURL=formNotice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formNotice.d.ts","sourceRoot":"","sources":["../../../src/fiat/formNotice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,EAAE,SAAS,cAAc,EAAE,EACjC,CAAC,EAAE,SAAS,GACX,MAAM,GAAG,SAAS,CAMpB"}
@@ -0,0 +1,17 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ import type { FiatFormScreenProps } from './FiatFormScreen';
4
+ /**
5
+ * Binds a `KYC{INPUT_REQUIRED}` step response to the form screen.
6
+ *
7
+ * Every answer rides in one transition input, so a keystroke rewrites that
8
+ * input's object rather than adding a key of its own — the body the contract
9
+ * declares is `{ formId, <values> }`, never a flattened field per key.
10
+ *
11
+ * `undefined` means the form is unrenderable: no page to walk, or no CTA to
12
+ * send it with.
13
+ */
14
+ export declare function formScreenProps(flow: FiatFlow, t: TFunction,
15
+ /** The buyer's region, ISO 3166-1 alpha-2, when the lookup has answered. */
16
+ defaultCountry?: string): Omit<FiatFormScreenProps, 'onClose'> | undefined;
17
+ //# sourceMappingURL=formScreenProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formScreenProps.d.ts","sourceRoot":"","sources":["../../../src/fiat/formScreenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAyB,MAAM,sBAAsB,CAAA;AAE3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAA;AAG3D;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,4EAA4E;AAC5E,cAAc,CAAC,EAAE,MAAM,GACtB,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG,SAAS,CAmClD"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Keyboards with no return key. iOS draws a floating button of its own when
3
+ * one of these is asked for a return key, and it lands over the screen's
4
+ * bottom-right — where the advance control already is.
5
+ */
6
+ export declare const PADS_WITHOUT_RETURN_KEY: Set<import("react-native").KeyboardTypeOptions | undefined>;
7
+ //# sourceMappingURL=keyboardReturnKey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboardReturnKey.d.ts","sourceRoot":"","sources":["../../../src/fiat/keyboardReturnKey.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,6DAKlC,CAAA"}
@@ -0,0 +1,27 @@
1
+ import type { ContactKind } from './sessionContact';
2
+ /**
3
+ * The number and the address the user has given, held past the round that
4
+ * collected them.
5
+ *
6
+ * A session verifies one channel per round, and the reducer drops what was
7
+ * collected once the round changes — so the code screen has nowhere else to
8
+ * read the destination it names.
9
+ */
10
+ export interface KnownContacts {
11
+ phone?: string;
12
+ email?: string;
13
+ }
14
+ /** Records one answer under the channel it can carry a code on. */
15
+ export declare function rememberContact(known: KnownContacts, kind: ContactKind, value: string): KnownContacts;
16
+ /** Where a round's code went, or `undefined` when the user never gave it. */
17
+ export declare function contactOnChannel(known: KnownContacts, isSms: boolean): string | undefined;
18
+ /**
19
+ * Everything the client can name, the collected value over the host's.
20
+ *
21
+ * The email round goes to the address the host asserted for this user, and
22
+ * `POST /fiat/session` never asks for one — so without the host's own value
23
+ * the screen can only say "your email". Whatever the step did collect wins:
24
+ * that is what actually opened the session.
25
+ */
26
+ export declare function resolveContacts(hostEmail: string | undefined, collected: KnownContacts): KnownContacts;
27
+ //# sourceMappingURL=knownContacts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"knownContacts.d.ts","sourceRoot":"","sources":["../../../src/fiat/knownContacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAGnD;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,mEAAmE;AACnE,wBAAgB,eAAe,CAC7B,KAAK,EAAE,aAAa,EACpB,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,MAAM,GACZ,aAAa,CAIf;AAED,6EAA6E;AAC7E,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,aAAa,EACpB,KAAK,EAAE,OAAO,GACb,MAAM,GAAG,SAAS,CAEpB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,SAAS,EAAE,aAAa,GACvB,aAAa,CAKf"}
@@ -0,0 +1,94 @@
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
+ /**
55
+ * The country list takes the same slot the date picker does — the room the
56
+ * keyboard gives up. It draws no keyboard of its own until the filter is
57
+ * touched, and then it rides above one.
58
+ */
59
+ readonly countryDockHeight: 371;
60
+ /** Between the filter and the list under it. */
61
+ readonly countryDockGap: 12;
62
+ /** Disc bottom (108) to the headline's line box (181). */
63
+ readonly introHeadingTop: 73;
64
+ /** 38/38 with the box 286 wide, which is what wraps it onto two lines. */
65
+ readonly introTitleFontSize: 38;
66
+ readonly introTitleTracking: -1.14;
67
+ readonly introTitleWidth: 286;
68
+ /** Headline bottom (257) to the paragraph (276). */
69
+ readonly introTitleGap: 19;
70
+ /** The paragraph's own measure (268), four lines of it. */
71
+ readonly introDetailWidth: 268;
72
+ readonly introDetailTracking: -0.42;
73
+ /**
74
+ * Below the action (784) to the frame's foot: the watermark's own 16 band,
75
+ * its 18 of type, and the 34 the design clears the action by.
76
+ */
77
+ readonly introActionBottom: 68;
78
+ /** The consent checkbox, and the gap to the copy beside it. */
79
+ readonly consentBoxSize: 32;
80
+ readonly consentBoxGap: 10;
81
+ /** Smaller than any body token, and used on the legal lines alone. */
82
+ readonly consentFontSize: 12;
83
+ /** Four lines of it fill the 52 the frame gives the consent row. */
84
+ readonly consentLineHeight: 13;
85
+ /** Between each legal line and the action below them. */
86
+ readonly consentGap: 16;
87
+ /** They are inset past the action, as the heading is past the fields. */
88
+ readonly consentInset: 16;
89
+ /** A code box is taller than a form field, and its digit larger. */
90
+ readonly codeBoxHeight: 64;
91
+ readonly codeBoxGap: 8;
92
+ readonly codeDigitFontSize: 28;
93
+ };
94
+ //# 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;;IAE7E;;;;OAIG;;IAEH,gDAAgD;;IAOhD,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,18 @@
1
+ import type { FiatFlow } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ import type { FiatOtpScreenProps } from './FiatOtpScreen';
4
+ import type { KnownContacts } from './knownContacts';
5
+ /**
6
+ * Binds a `SESSION_AUTH` step response to the code screen.
7
+ *
8
+ * The input's name and length are read off the transition, not assumed: the
9
+ * contract declares them per step, and a step that words them differently
10
+ * still renders.
11
+ *
12
+ * `undefined` means the step is unanswerable — no CTA, or one that collects
13
+ * nothing.
14
+ */
15
+ export declare function otpScreenProps(flow: FiatFlow, t: TFunction,
16
+ /** Every contact the entry collected, so each round can name its own. */
17
+ contacts: KnownContacts): Omit<FiatOtpScreenProps, 'onClose'> | undefined;
18
+ //# 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;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAGpD;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,QAAQ,EACd,CAAC,EAAE,SAAS;AACZ,yEAAyE;AACzE,QAAQ,EAAE,aAAa,GACtB,IAAI,CAAC,kBAAkB,EAAE,SAAS,CAAC,GAAG,SAAS,CAsCjD"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Every country a phone number can be issued in, with the calling code it is
3
+ * reached on and the trunk digit it is dialled with at home.
4
+ *
5
+ * The whole ITU list, not the countries whose currency the rail quotes: where
6
+ * a buyer's money comes from says nothing about where their SIM does, and a
7
+ * shorter list makes a valid number unsendable.
8
+ *
9
+ * Generated from libphonenumber's metadata (v4, via libphonenumber-js 1.13.6)
10
+ * and named by `Intl.DisplayNames`. Calling codes and trunk prefixes are ITU
11
+ * and national-regulator facts; regenerate rather than hand-edit a row.
12
+ */
13
+ export interface PhoneCountry {
14
+ /** ISO 3166-1 alpha-2, which is also what the geo lookup answers. */
15
+ alpha2: string;
16
+ /** E.164 calling code, `+` included. */
17
+ dialCode: string;
18
+ /** English name, used when the platform can name no other. */
19
+ name: string;
20
+ /**
21
+ * The digit a national number is dialled with at home and never carries
22
+ * internationally — `0` in most of Europe, `1` in the NANP, `8` in Russia.
23
+ * Absent where the country has none: an Italian number keeps its zero.
24
+ */
25
+ trunkPrefix?: string;
26
+ }
27
+ /** Ordered by English name, which is the order the list draws them in. */
28
+ export declare const PHONE_COUNTRIES: readonly PhoneCountry[];
29
+ export declare function phoneCountry(alpha2: string | undefined): PhoneCountry | undefined;
30
+ /** The country the field opens on, from wherever the buyer is. */
31
+ export declare function defaultPhoneCountry(alpha2: string | undefined): PhoneCountry;
32
+ /**
33
+ * `\u{1F1E6}\u{1F1FA}` from `AU`: alpha-2 letters map onto the
34
+ * regional-indicator block, so the flag needs no asset and no per-country
35
+ * entry.
36
+ */
37
+ export declare function countryFlag(alpha2: string): string;
38
+ /**
39
+ * The country's name in the app's language.
40
+ *
41
+ * Read off the platform rather than the translation files: 245 countries in 8
42
+ * locales is copy nobody would review, and every runtime that ships ICU
43
+ * already knows them. The table's English is the fallback where it does not.
44
+ */
45
+ export declare function countryName(country: PhoneCountry, locale: string): string;
46
+ /**
47
+ * The wire value: the code and the digits typed under it, with nothing
48
+ * between. An unanswered field stays empty rather than becoming a bare code —
49
+ * `+61` alone is not an incomplete number, it is no number.
50
+ */
51
+ export declare function toE164(country: PhoneCountry, national: string): string;
52
+ /** What the box shows: the wire value less the code the chip already draws. */
53
+ export declare function nationalPart(value: string, country: PhoneCountry): string;
54
+ //# sourceMappingURL=phoneCountries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phoneCountries.d.ts","sourceRoot":"","sources":["../../../src/fiat/phoneCountries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,YAAY;IAC3B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;IACd,wCAAwC;IACxC,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AA6PD,0EAA0E;AAC1E,eAAO,MAAM,eAAe,EAAE,SAAS,YAAY,EAOlD,CAAA;AAKD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,GAAG,SAAS,GACzB,YAAY,GAAG,SAAS,CAM1B;AAED,kEAAkE;AAClE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAE5E;AAMD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMlD;AAID;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAEzE;AAqBD;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGtE;AAkBD,+EAA+E;AAC/E,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAIzE"}
@@ -0,0 +1,23 @@
1
+ export interface CoinbaseCheckoutSurfaceProps {
2
+ checkoutUrl: string;
3
+ /** Log context only — the contract says URL surfaces may carry none. */
4
+ environment: string;
5
+ /** The user paid; what happens to the money is the order's to report. */
6
+ onPaid: () => void;
7
+ onFailed: (code: string, detail?: string) => void;
8
+ onClose: () => void;
9
+ }
10
+ /**
11
+ * Coinbase's hosted Apple Pay page, shown as the payment screen.
12
+ *
13
+ * Their page draws its own Apple Pay button and waits for a real tap on it.
14
+ * Pressing it from injected script reaches `pending_payment_auth` and stops —
15
+ * the sheet never opens — so the button is the user's to press.
16
+ *
17
+ * - nothing covers the page: an overlay waiting on `load_success` is what
18
+ * hid it, and their button is the only control that opens the sheet
19
+ * - a cancelled sheet leaves the page loaded and the button live, so pressing
20
+ * it again opens the sheet rather than re-running the order
21
+ */
22
+ export declare function CoinbaseCheckoutSurface({ checkoutUrl, environment, onPaid, onFailed, onClose, }: CoinbaseCheckoutSurfaceProps): import("react").JSX.Element;
23
+ //# sourceMappingURL=CoinbaseCheckoutSurface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CoinbaseCheckoutSurface.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/CoinbaseCheckoutSurface.tsx"],"names":[],"mappings":"AAcA,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAA;IACnB,yEAAyE;IACzE,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,WAAW,EACX,MAAM,EACN,QAAQ,EACR,OAAO,GACR,EAAE,4BAA4B,+BAmH9B"}
@@ -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,43 @@
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
- /** The provider gave up on this attempt; its machine will not recover. */
8
- onFailed: (code: string) => void;
17
+ /**
18
+ * The provider gave up on this attempt; its machine will not recover.
19
+ *
20
+ * `detail` is one sentence the user can act on. Only the adapter can write
21
+ * it: the codes are the provider's vocabulary, and a screen that mapped
22
+ * them would carry every provider's.
23
+ */
24
+ onFailed: (code: string, detail?: string) => void;
25
+ /** Leaves the flow — a handoff draws its own chrome, close included. */
26
+ onClose: () => void;
9
27
  report: (result: SurfaceResult) => void;
10
28
  }
29
+ export interface ClaimedSurface {
30
+ control: SurfaceControlModel;
31
+ render: (context: SurfaceContext) => ReactNode;
32
+ }
11
33
  /**
12
- * Claims a surface and returns its renderer, or declines it.
34
+ * Claims a surface, or declines it.
13
35
  *
14
36
  * Each adapter narrows `params` itself: the contract says `provider` never
15
37
  * 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.
38
+ * `(kind, provider)` plus a shape check is the whole match. Binding the
39
+ * renderer to the narrowed params keeps that type inside the adapter rather
40
+ * than in a union the registry would have to carry.
19
41
  */
20
- export type SurfaceAdapter = (surface: Surface) => ((context: SurfaceContext) => ReactNode) | undefined;
42
+ export type SurfaceAdapter = (surface: Surface) => ClaimedSurface | undefined;
21
43
  //# 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;;;;;;OAMG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,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,8 @@
1
+ import type { SurfaceAdapter } from './adapter';
2
+ /**
3
+ * Coinbase's order arrives already made, with a hosted page that takes the
4
+ * payment. It runs in the app rather than the browser: a deposit that hands
5
+ * the user to Safari cannot see how it ends.
6
+ */
7
+ export declare const coinbaseApplePay: SurfaceAdapter;
8
+ //# sourceMappingURL=coinbaseApplePay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coinbaseApplePay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseApplePay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AA0C/C;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,cAkB9B,CAAA"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * What Coinbase's payment page says about itself, as the client acts on it.
3
+ *
4
+ * The page posts one-directional events; nothing answers them. Everything
5
+ * past `PAID` — their own status polling — belongs to the order, which this
6
+ * flow already polls, so those arrive as progress and nothing more.
7
+ */
8
+ export type CoinbaseOnrampEvent =
9
+ /** The pay button is drawn and can be pressed. */
10
+ {
11
+ kind: 'READY';
12
+ }
13
+ /** The user paid and the transaction started. */
14
+ | {
15
+ kind: 'PAID';
16
+ }
17
+ /** The user dismissed the payment sheet; the button is still there. */
18
+ | {
19
+ kind: 'CANCELLED';
20
+ }
21
+ /** Terminal for this page: the code is Coinbase's, and localized. */
22
+ | {
23
+ kind: 'FAILED';
24
+ code: string;
25
+ message?: string;
26
+ }
27
+ /** Named for the log, acted on by nothing. */
28
+ | {
29
+ kind: 'PROGRESS';
30
+ name: string;
31
+ };
32
+ /**
33
+ * Reads one posted message, or `undefined` for anything this page did not
34
+ * send — a WebView's message channel is shared with whatever the page loads.
35
+ */
36
+ export declare function readOnrampEvent(raw: string): CoinbaseOnrampEvent | undefined;
37
+ //# sourceMappingURL=coinbaseOnrampEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coinbaseOnrampEvents.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/coinbaseOnrampEvents.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,mBAAmB;AAC7B,kDAAkD;AAChD;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE;AACnB,iDAAiD;GAC/C;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE;AAClB,uEAAuE;GACrE;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE;AACvB,qEAAqE;GACnE;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AACpD,8CAA8C;GAC5C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAYtC;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAsB5E"}
@@ -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;AAmC5B;;;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"}