@funkit/connect-rn 4.0.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 (107) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/dist/{chunk-OI54J6E6.js → chunk-A66EO5J5.js} +378 -26
  3. package/dist/chunk-A66EO5J5.js.map +7 -0
  4. package/dist/{chunk-V4LN3XNI.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 +3869 -951
  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 +37 -0
  63. package/dist/src/fiat/providers/adapter.d.ts.map +1 -0
  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 +4 -0
  69. package/dist/src/fiat/providers/transakApplePay.d.ts.map +1 -0
  70. package/dist/src/fiat/renderCaptureSurface.d.ts +14 -8
  71. package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
  72. package/dist/src/fiat/sectionDetail.d.ts +11 -0
  73. package/dist/src/fiat/sectionDetail.d.ts.map +1 -0
  74. package/dist/src/fiat/sessionContact.d.ts +31 -0
  75. package/dist/src/fiat/sessionContact.d.ts.map +1 -0
  76. package/dist/src/fiat/stepDetails.d.ts +27 -1
  77. package/dist/src/fiat/stepDetails.d.ts.map +1 -1
  78. package/dist/src/fiat/useDatePickerDock.d.ts +29 -0
  79. package/dist/src/fiat/useDatePickerDock.d.ts.map +1 -0
  80. package/dist/src/fiat/useStaleQuoteRecovery.d.ts +23 -0
  81. package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -0
  82. package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
  83. package/dist/src/flow/FeeDetailsSheet.d.ts +18 -0
  84. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -0
  85. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  86. package/dist/src/flow/depositFlowConfig.d.ts +4 -4
  87. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  88. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  89. package/dist/src/identity/IdentityContext.d.ts +4 -4
  90. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  91. package/dist/src/screens/DepositAmountScreen.d.ts +3 -1
  92. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  93. package/dist/src/theme/buildFunkitTheme.d.ts +16 -0
  94. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  95. package/dist/src/theme/isDarkColor.d.ts +9 -0
  96. package/dist/src/theme/isDarkColor.d.ts.map +1 -0
  97. package/dist/src/theme/restyle.d.ts +528 -0
  98. package/dist/src/theme/restyle.d.ts.map +1 -1
  99. package/dist/src/theme/toRestyleTheme.d.ts +48 -0
  100. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  101. package/dist/src/theme/tokens.d.ts +40 -0
  102. package/dist/src/theme/tokens.d.ts.map +1 -1
  103. package/dist/src/utils/formatAmount.d.ts +2 -0
  104. package/dist/src/utils/formatAmount.d.ts.map +1 -1
  105. package/package.json +8 -4
  106. package/dist/chunk-OI54J6E6.js.map +0 -7
  107. package/dist/chunk-V4LN3XNI.js.map +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,80 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 93f6518: Answer a fiat identity date with the platform's own picker, from a new optional `@react-native-community/datetimepicker` peer.
8
+ - 6c01cc3: Ask where the fiat session code should be sent, and answer the code round.
9
+ - c4a17d3: Draw a fiat identity field row for each type a form declares.
10
+ - 782789e: Route a fiat deposit through the identity screens and provider surfaces a round asks for.
11
+ - 0678009: Step the fiat identity form one section at a time, over the price it is for.
12
+ - b6e327e: Open the fiat identity flow on a screen that takes the buyer's consent.
13
+ - d37b629: Mark a refused identity field, and the round's own error, in the design's yellow.
14
+ - f79dc98: Page a declared fiat identity form the way the design groups its fields.
15
+ - 782789e: Say on the amount screen when identity verification is what holds a deposit.
16
+ - 056ec4a: Add the fiat identity form's colours and metrics.
17
+
18
+ ### Patch Changes
19
+
20
+ - e3fc541: Fiat quotes send the buyer's geo object the API now requires, instead of a bare country.
21
+
22
+ Migration: `useFiatQuote`'s `country: string` prop and `QuoteRequest.country` are replaced by
23
+ `geo: { alpha2: string; region?: string }`. Pass the geo lookup's own answer —
24
+ `{ alpha2: userIpInfo.alpha2, region: userIpInfo.state }`. A US buyer needs `region`;
25
+ the server refuses a US quote without it.
26
+ - 07ab436: Collect the mobile number a fiat session asks for, instead of only an email address.
27
+ - 053d65f: Re-send a fiat deposit under a fresh price when the server no longer holds the quoted one
28
+ - d6878c0: The geo lookup only asks a second provider for a missing state when the caller needs one; web takes the first country as before.
29
+ - b31b898: Identity screens name the provider whose terms apply, prefill country from the buyer's region, keep the retry screen after a failed email step, and disable resend when the round offers none.
30
+ - Updated dependencies [0dd9bb6]
31
+ - Updated dependencies [d759c2e]
32
+ - Updated dependencies [e3fc541]
33
+ - Updated dependencies [053d65f]
34
+ - Updated dependencies [d6878c0]
35
+ - Updated dependencies [19abab6]
36
+ - Updated dependencies [91fa0ce]
37
+ - Updated dependencies [91fa0ce]
38
+ - Updated dependencies [f2d1fb9]
39
+ - Updated dependencies [f2d1fb9]
40
+ - @funkit/api-base@8.1.0
41
+ - @funkit/connect-core@6.0.0
42
+
43
+ ## 4.1.0
44
+
45
+ ### Minor Changes
46
+
47
+ - 3e35fc3: Send the buyer's country on fiat quotes, which no provider will price without.
48
+
49
+ **Migration.** `QuoteRequest` gains a required `country` — ISO 3166-1 alpha-2 of
50
+ the buyer. Code that builds one must supply it; a request without it is answered
51
+ `404 "No provider can price that purchase right now."` `useFiatQuote` takes it
52
+ optionally and sends no quote until it resolves.
53
+ - e4b413a: Quote fiat deposits in the buyer's regional currency.
54
+ - df228c4: Replace the unreleased fiat auth-token API with identity-assertion naming.
55
+ - 3e35fc3: Make `amountEntry.feeRate` optional — a fiat rail quotes its own fee.
56
+
57
+ ### Patch Changes
58
+
59
+ - 9398f11: Open the fee details drawer from the fiat amount screen's fee line.
60
+ - e0a192f: Route fiat capture surfaces through a per-provider adapter registry.
61
+ - Updated dependencies [005d0ca]
62
+ - Updated dependencies [005d0ca]
63
+ - Updated dependencies [005d0ca]
64
+ - Updated dependencies [91fd04a]
65
+ - Updated dependencies [ad4f69c]
66
+ - Updated dependencies [3e35fc3]
67
+ - Updated dependencies [e4b413a]
68
+ - Updated dependencies [df228c4]
69
+ - Updated dependencies [05a0fed]
70
+ - Updated dependencies [641d2a1]
71
+ - Updated dependencies [76848d7]
72
+ - Updated dependencies [2dd0720]
73
+ - Updated dependencies [a8cf4cd]
74
+ - @funkit/api-base@8.0.0
75
+ - @funkit/chains@2.3.0
76
+ - @funkit/connect-core@5.0.0
77
+
3
78
  ## 4.0.0
4
79
 
5
80
  ### Major Changes