@funkit/connect-rn 6.0.0 → 6.1.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.
- package/CHANGELOG.md +46 -0
- package/README.md +61 -0
- package/dist/{chunk-4ELC2W4D.js → chunk-HMAJXI66.js} +407 -31
- package/dist/chunk-HMAJXI66.js.map +7 -0
- package/dist/{chunk-XTK6HGJL.js → chunk-MKOPF7Y5.js} +2 -2
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.js +3105 -2106
- package/dist/index.js.map +4 -4
- package/dist/src/components/ScrollFade.d.ts +7 -1
- package/dist/src/components/ScrollFade.d.ts.map +1 -1
- package/dist/src/fiat/FiatActionButton.d.ts.map +1 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts +5 -1
- package/dist/src/fiat/FiatBirthDateField.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountryIndexRail.d.ts +26 -0
- package/dist/src/fiat/FiatCountryIndexRail.d.ts.map +1 -0
- package/dist/src/fiat/FiatCountrySheet.d.ts +2 -2
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatDocumentCaptureStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormAdvance.d.ts +21 -6
- package/dist/src/fiat/FiatFormAdvance.d.ts.map +1 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +6 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycIntroScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/countryListEntries.d.ts +63 -0
- package/dist/src/fiat/countryListEntries.d.ts.map +1 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycFormTheme.d.ts +4 -0
- package/dist/src/fiat/kycFormTheme.d.ts.map +1 -1
- package/dist/src/fiat/nativeDatePicker.d.ts.map +1 -1
- package/dist/src/fiat/phoneDraft.d.ts.map +1 -1
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts +14 -0
- package/dist/src/fiat/providers/coinbaseFailureCopy.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/useContactEligibility.d.ts.map +1 -1
- package/dist/src/fiat/useFiatCheckoutPreparation.d.ts.map +1 -1
- package/dist/src/fiat/useKycCompletion.d.ts +13 -0
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -0
- package/dist/src/fiat/useOtpAutoSubmit.d.ts.map +1 -1
- package/dist/src/fiat/useOtpReceipt.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +1 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/Drawer.d.ts +23 -0
- package/dist/src/flow/Drawer.d.ts.map +1 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FlowSheet.d.ts +0 -14
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/useV2DrawerMotion.d.ts +4 -0
- package/dist/src/flow/useV2DrawerMotion.d.ts.map +1 -0
- package/dist/src/hooks/useMinimumAmountValidation.d.ts +4 -0
- package/dist/src/hooks/useMinimumAmountValidation.d.ts.map +1 -1
- package/dist/src/hooks/useNestedSheet.d.ts.map +1 -1
- package/dist/src/hooks/useTrailingTrue.d.ts +7 -0
- package/dist/src/hooks/useTrailingTrue.d.ts.map +1 -0
- package/dist/src/icons/KycStatusIcon.d.ts +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts +1 -9
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +3 -4
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +6 -0
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/theme/FunkitThemeProvider.d.ts.map +1 -1
- package/dist/src/theme/textStyle.d.ts +16 -0
- package/dist/src/theme/textStyle.d.ts.map +1 -0
- package/dist/src/theme/useFunkitTheme.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useSupportedTokens.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +11 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/package.json +5 -5
- package/dist/chunk-4ELC2W4D.js.map +0 -7
- /package/dist/{chunk-XTK6HGJL.js.map → chunk-MKOPF7Y5.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# @funkit/connect-rn
|
|
2
2
|
|
|
3
|
+
## 6.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- da4b6fe: Add the resolved identity states to the deposit KYC banner.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- e78fc80: Align the deposit screen's payment mark with the quick-amount shortcuts
|
|
12
|
+
- c4083fa: Name the reason a card deposit was declined — bank decline, billing mismatch, region, or a deposit limit — in all supported languages.
|
|
13
|
+
- 507ffee: Say why a card payment was refused on the deposit screen, in funkit's own words, instead of leaving the buyer with a bare retry button.
|
|
14
|
+
- 2e5cb11: Explain a card deposit that fails while loading or settling, including whether the card was charged or will be refunded.
|
|
15
|
+
- f38b53b: The country list opens on the buyer's own country, pinned under its own heading, with an alphabet rail to drag through and no keyboard in the way
|
|
16
|
+
- a55adaa: Remove the brand glow from the V2 deposit surface.
|
|
17
|
+
- db448a0: No consumer-facing behavior changes.
|
|
18
|
+
- a55adaa: Draw the deposit sheet as the design's glass: an 85% black surface over the host blur, a 36pt head, a white hairline edge and a drop shadow.
|
|
19
|
+
- 460b3d2: Draw the date of birth page to its design: a sentence heading, a centred wheel, and a refusal that stands in the action's place.
|
|
20
|
+
- ea54719: Type the date of birth instead of leaving the field blank when the native date picker cannot load.
|
|
21
|
+
- bbc3beb: Acknowledge a completed identity form with its outcome screen instead of returning silently to the deposit amount.
|
|
22
|
+
- 75e3c91: Add the identity options card the deposit screen opens once KYC resolves.
|
|
23
|
+
- 812fa52: Wire the identity options card to deposit max, re-do verification and support.
|
|
24
|
+
- 9b10caf: Report a resolved identity check on the deposit screen instead of a full-screen outcome.
|
|
25
|
+
- 812fa52: Ask for identity verification on the deposit screen when the provider requires it before a first deposit.
|
|
26
|
+
- 27c1f56: The Apple Pay mark and the fee line on the deposit amount screen now sit on the same centre line.
|
|
27
|
+
- 278be57: The deposit floor's "Change to minimum" action now appears after the minimum notice rather than alongside it.
|
|
28
|
+
- d7b1afa: Make MoonPay authorization screens reachable with the upstream mobile SDK fix and document the required app crypto setup.
|
|
29
|
+
- 7d6d78d: fix(connect-rn): match V2 deposit drawer settling to the Stocks motion reference
|
|
30
|
+
- 24e7f8c: The OTP screen shows US phone numbers with a space after the area code.
|
|
31
|
+
- 89d472e: The fee details summary for card and Apple Pay deposits now says the fee is deducted from the deposit; crypto deposits with a configured fee keep the added-to-charge wording.
|
|
32
|
+
- eb518b7: The deposit amount screen's centred header no longer draws a back chevron.
|
|
33
|
+
- 3dc310a: fix(connect-rn): remove the fee drawer close button while retaining gesture dismissal
|
|
34
|
+
- 62569ec: Fixed the Swapped deposit and withdrawal embeds not scrolling on Android.
|
|
35
|
+
- 5babe4e: Tell buyers their ID check needs correcting when a provider asks for the form again, instead of showing the first-time verification prompt.
|
|
36
|
+
- 7d6d78d: fix(connect-rn): dismiss every V2 deposit drawer by the same gesture, grabber and backdrop
|
|
37
|
+
- Updated dependencies [3c85052]
|
|
38
|
+
- Updated dependencies [3c85052]
|
|
39
|
+
- Updated dependencies [cbfe8c1]
|
|
40
|
+
- Updated dependencies [db448a0]
|
|
41
|
+
- Updated dependencies [812fa52]
|
|
42
|
+
- Updated dependencies [9b10caf]
|
|
43
|
+
- Updated dependencies [84f1fcf]
|
|
44
|
+
- Updated dependencies [5babe4e]
|
|
45
|
+
- Updated dependencies [c2c7331]
|
|
46
|
+
- @funkit/connect-core@8.1.0
|
|
47
|
+
- @funkit/api-base@8.4.0
|
|
48
|
+
|
|
3
49
|
## 6.0.0
|
|
4
50
|
|
|
5
51
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -39,6 +39,67 @@ log transports, identity context, and transfer hooks are **internal** (mirroring
|
|
|
39
39
|
`@funkit/connect`, which exports none of them). When adding a public export, wire
|
|
40
40
|
it explicitly in `index.ts`.
|
|
41
41
|
|
|
42
|
+
## MoonPay crypto setup
|
|
43
|
+
|
|
44
|
+
MoonPay requires a secure `globalThis.crypto.getRandomValues` implementation on
|
|
45
|
+
Hermes. Install it in your app entry **before importing `@funkit/connect-rn` or
|
|
46
|
+
loading your app**. The SDK supports either setup below; it does not install a
|
|
47
|
+
native crypto module for you. See the [MoonPay SDK README](https://www.npmjs.com/package/@moonpay/platform-sdk-react-native).
|
|
48
|
+
|
|
49
|
+
### Expo
|
|
50
|
+
|
|
51
|
+
Install the version compatible with your Expo SDK:
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
pnpm exec expo install expo-crypto
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Create `polyfills.ts`:
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
import { getRandomValues } from 'expo-crypto'
|
|
61
|
+
|
|
62
|
+
if (typeof globalThis.crypto?.getRandomValues !== 'function') {
|
|
63
|
+
const crypto = globalThis.crypto ?? ({} as Crypto)
|
|
64
|
+
Object.defineProperty(crypto, 'getRandomValues', {
|
|
65
|
+
value: getRandomValues,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true,
|
|
68
|
+
})
|
|
69
|
+
if (globalThis.crypto !== crypto) {
|
|
70
|
+
Object.defineProperty(globalThis, 'crypto', {
|
|
71
|
+
value: crypto,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Load it first in your entry. For Expo Router, use `import './polyfills'` followed
|
|
80
|
+
by `import 'expo-router/entry'`. For a custom Expo entry:
|
|
81
|
+
|
|
82
|
+
```ts
|
|
83
|
+
import './polyfills'
|
|
84
|
+
import { registerRootComponent } from 'expo'
|
|
85
|
+
import App from './App'
|
|
86
|
+
|
|
87
|
+
registerRootComponent(App)
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Bare React Native
|
|
91
|
+
|
|
92
|
+
Install `react-native-get-random-values` with `pnpm add react-native-get-random-values`,
|
|
93
|
+
install iOS pods, and rebuild the native app. Make this the first import in your
|
|
94
|
+
entry, before importing your app:
|
|
95
|
+
|
|
96
|
+
```ts
|
|
97
|
+
import 'react-native-get-random-values'
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
MoonPay 1.17.0 includes the `about:srcdoc` WebView origin allowance. Consumers no
|
|
101
|
+
longer need a dependency patch for MoonPay's authorization frame.
|
|
102
|
+
|
|
42
103
|
## Peer dependencies
|
|
43
104
|
|
|
44
105
|
These are declared as **peer dependencies** (not bundled), so the host app links a
|