@funkit/connect-rn 6.2.0 → 7.0.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 +101 -0
- package/README.md +21 -4
- package/dist/{chunk-PLSQBNDE.js → chunk-HRJNTNCV.js} +2 -2
- package/dist/{chunk-VIMRV7N2.js → chunk-P3OLDPDC.js} +338 -41
- package/dist/chunk-P3OLDPDC.js.map +7 -0
- package/dist/clients/lighter.js +1 -1
- package/dist/clients/nado.js +2 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5875 -2275
- package/dist/index.js.map +4 -4
- package/dist/src/components/LoadingSpinner.d.ts.map +1 -1
- package/dist/src/components/PillButton.d.ts.map +1 -1
- package/dist/src/components/v2/QuickAmountsRow.d.ts.map +1 -1
- package/dist/src/fiat/FiatChoiceField.d.ts +7 -1
- package/dist/src/fiat/FiatChoiceField.d.ts.map +1 -1
- package/dist/src/fiat/FiatCountrySheet.d.ts +11 -0
- package/dist/src/fiat/FiatCountrySheet.d.ts.map +1 -1
- package/dist/src/fiat/FiatFailureBanner.d.ts +14 -0
- package/dist/src/fiat/FiatFailureBanner.d.ts.map +1 -0
- package/dist/src/fiat/FiatFormScreen.d.ts +11 -1
- package/dist/src/fiat/FiatFormScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatIdentityStep.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycFieldControl.d.ts +9 -2
- package/dist/src/fiat/FiatKycFieldControl.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOptionsScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts +15 -2
- package/dist/src/fiat/FiatKycOutcomeScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatKycPhoneField.d.ts +21 -0
- package/dist/src/fiat/FiatKycPhoneField.d.ts.map +1 -0
- package/dist/src/fiat/FiatReceipt.d.ts +21 -0
- package/dist/src/fiat/FiatReceipt.d.ts.map +1 -0
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts +11 -0
- package/dist/src/fiat/FiatRegionUnsupportedScreen.d.ts.map +1 -0
- package/dist/src/fiat/FiatStatusScreen.d.ts.map +1 -1
- package/dist/src/fiat/FiatSubmissionIndicator.d.ts.map +1 -1
- package/dist/src/fiat/ScreenSurfaceCover.d.ts +11 -0
- package/dist/src/fiat/ScreenSurfaceCover.d.ts.map +1 -0
- package/dist/src/fiat/SurfaceSlot.d.ts +12 -1
- package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
- package/dist/src/fiat/depositOutcome.d.ts +33 -0
- package/dist/src/fiat/depositOutcome.d.ts.map +1 -0
- package/dist/src/fiat/fieldAutofill.d.ts.map +1 -1
- package/dist/src/fiat/formLayout.d.ts +12 -5
- package/dist/src/fiat/formLayout.d.ts.map +1 -1
- package/dist/src/fiat/formScreenProps.d.ts +4 -2
- package/dist/src/fiat/formScreenProps.d.ts.map +1 -1
- package/dist/src/fiat/kycFormPosition.d.ts +25 -1
- package/dist/src/fiat/kycFormPosition.d.ts.map +1 -1
- package/dist/src/fiat/kycFormState.d.ts +10 -0
- package/dist/src/fiat/kycFormState.d.ts.map +1 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts +21 -1
- package/dist/src/fiat/kycUnavailableAlert.d.ts.map +1 -1
- package/dist/src/fiat/methodName.d.ts +8 -0
- package/dist/src/fiat/methodName.d.ts.map +1 -0
- package/dist/src/fiat/providerFailover.d.ts +12 -0
- package/dist/src/fiat/providerFailover.d.ts.map +1 -0
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts +4 -2
- package/dist/src/fiat/providers/CoinbaseCheckoutSurface.d.ts.map +1 -1
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts +29 -0
- package/dist/src/fiat/providers/StripeSessionAuthController.d.ts.map +1 -0
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts +10 -0
- package/dist/src/fiat/providers/StripeSessionAuthScreen.d.ts.map +1 -0
- package/dist/src/fiat/providers/adapter.d.ts +6 -0
- package/dist/src/fiat/providers/adapter.d.ts.map +1 -1
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts +7 -3
- package/dist/src/fiat/providers/coinbaseOnrampEvents.d.ts.map +1 -1
- package/dist/src/fiat/providers/describeThrown.d.ts +14 -0
- package/dist/src/fiat/providers/describeThrown.d.ts.map +1 -0
- package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
- package/dist/src/fiat/providers/moonpayTrace.d.ts +25 -0
- package/dist/src/fiat/providers/moonpayTrace.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts +12 -0
- package/dist/src/fiat/providers/stripeAccountCreation.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts +5 -0
- package/dist/src/fiat/providers/stripeAuthorize.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeCheckout.d.ts +28 -0
- package/dist/src/fiat/providers/stripeCheckout.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts +56 -0
- package/dist/src/fiat/providers/stripeKyc.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeKycInfo.d.ts +11 -0
- package/dist/src/fiat/providers/stripeKycInfo.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts +135 -0
- package/dist/src/fiat/providers/stripeOnramp.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeOnrampBridge.d.ts +20 -0
- package/dist/src/fiat/providers/stripeOnrampBridge.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripePayment.d.ts +34 -0
- package/dist/src/fiat/providers/stripePayment.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSdk.d.ts +19 -0
- package/dist/src/fiat/providers/stripeSdk.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts +18 -0
- package/dist/src/fiat/providers/stripeSeamlessSignIn.d.ts.map +1 -0
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts +43 -0
- package/dist/src/fiat/providers/stripeSessionAuth.d.ts.map +1 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts +35 -0
- package/dist/src/fiat/providers/useStripeOnrampClient.d.ts.map +1 -0
- package/dist/src/fiat/quoteRefusal.d.ts +6 -2
- package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts +1 -1
- package/dist/src/fiat/renderCaptureSurface.d.ts.map +1 -1
- package/dist/src/fiat/sectionDetail.d.ts.map +1 -1
- package/dist/src/fiat/stepDetails.d.ts +5 -1
- package/dist/src/fiat/stepDetails.d.ts.map +1 -1
- package/dist/src/fiat/useKycCompletion.d.ts +11 -3
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts +8 -1
- package/dist/src/fiat/useStaleQuoteRecovery.d.ts.map +1 -1
- package/dist/src/flow/DepositAmountStep.d.ts +4 -2
- package/dist/src/flow/DepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/DepositFlowContent.d.ts +4 -1
- package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
- package/dist/src/flow/DepositReceivedToast.d.ts +17 -0
- package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
- package/dist/src/flow/FiatDepositAmountStep.d.ts +6 -2
- package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
- package/dist/src/flow/FiatRegionBlockedStep.d.ts +14 -0
- package/dist/src/flow/FiatRegionBlockedStep.d.ts.map +1 -0
- package/dist/src/flow/FiatRegionPendingStep.d.ts +10 -0
- package/dist/src/flow/FiatRegionPendingStep.d.ts.map +1 -0
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +9 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/StepPage.d.ts +16 -0
- package/dist/src/flow/StepPage.d.ts.map +1 -0
- package/dist/src/flow/accountContext.d.ts +6 -0
- package/dist/src/flow/accountContext.d.ts.map +1 -0
- package/dist/src/flow/depositFlowConfig.d.ts +95 -26
- package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
- package/dist/src/flow/depositMethods.d.ts +21 -0
- package/dist/src/flow/depositMethods.d.ts.map +1 -0
- package/dist/src/flow/depositRailCopy.d.ts +20 -0
- package/dist/src/flow/depositRailCopy.d.ts.map +1 -0
- package/dist/src/flow/flowError.d.ts +37 -0
- package/dist/src/flow/flowError.d.ts.map +1 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts +22 -0
- package/dist/src/flow/useDepositReceivedToast.d.ts.map +1 -0
- package/dist/src/flow/withdrawalFlowConfig.d.ts +5 -4
- package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
- package/dist/src/geo/useFiatRegionSupport.d.ts +23 -0
- package/dist/src/geo/useFiatRegionSupport.d.ts.map +1 -0
- package/dist/src/hooks/useGuardedAmountInput.d.ts +15 -15
- package/dist/src/hooks/useGuardedAmountInput.d.ts.map +1 -1
- package/dist/src/hooks/usePressScale.d.ts +22 -3
- package/dist/src/hooks/usePressScale.d.ts.map +1 -1
- package/dist/src/icons/FigmaSystemIcons.d.ts +1 -0
- package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
- package/dist/src/icons/KycIdentityIcon.d.ts +2 -1
- package/dist/src/icons/KycIdentityIcon.d.ts.map +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts +1 -1
- package/dist/src/icons/KycStatusIcon.d.ts.map +1 -1
- package/dist/src/icons/kycArtwork.d.ts +15 -0
- package/dist/src/icons/kycArtwork.d.ts.map +1 -1
- package/dist/src/identity/IdentityContext.d.ts +3 -4
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/debugBridge.d.ts +11 -0
- package/dist/src/logging/debugBridge.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +12 -1
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +9 -4
- package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
- package/dist/src/providers/useFrozenIdentity.d.ts +19 -0
- package/dist/src/providers/useFrozenIdentity.d.ts.map +1 -0
- package/dist/src/screens/DepositAmountScreen.d.ts +1 -1
- package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/FeeDetailsScreen.d.ts +6 -9
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/depositMetrics.d.ts +2 -3
- package/dist/src/screens/depositMetrics.d.ts.map +1 -1
- package/dist/src/statsig/useStatsigReady.d.ts +11 -0
- package/dist/src/statsig/useStatsigReady.d.ts.map +1 -0
- package/dist/src/theme/buildFunkitTheme.d.ts +15 -11
- package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
- package/dist/src/theme/restyle.d.ts +495 -363
- package/dist/src/theme/restyle.d.ts.map +1 -1
- package/dist/src/theme/toRestyleTheme.d.ts +45 -33
- package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
- package/dist/src/theme/tokens.d.ts +5 -5
- package/dist/src/theme/tokens.d.ts.map +1 -1
- package/dist/src/utils/formatAmount.d.ts +4 -3
- package/dist/src/utils/formatAmount.d.ts.map +1 -1
- package/dist/src/utils/motion.d.ts +8 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts +11 -0
- package/dist/src/withdrawal/useWithdrawalSourceTokenBalance.d.ts.map +1 -0
- package/package.json +10 -5
- package/dist/chunk-VIMRV7N2.js.map +0 -7
- /package/dist/{chunk-PLSQBNDE.js.map → chunk-HRJNTNCV.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,106 @@
|
|
|
1
1
|
# @funkit/connect-rn
|
|
2
2
|
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 642346f: Fee details drawer matches the design's type, spacing and attribution mark
|
|
8
|
+
|
|
9
|
+
Migration: register a third Inter cut, `Inter-SemiBold`, alongside `Inter-Regular` and `Inter-Medium`. Until then the semibold weight falls back to the platform system font. A hand-built `FunkitFontTokens` needs a `body.weight.semibold` entry.
|
|
10
|
+
- 3bf7a60: `@stripe/stripe-react-native` is now an optional peer dependency, loaded only when a host configures Stripe, so hosts without Stripe never link or evaluate its native module.
|
|
11
|
+
|
|
12
|
+
**Breaking:** the SDK is no longer a dependency of this package. Nothing changes for a host that does not pass `stripeOnramp` to `FunkitProvider`: no install, no rebuild, and Expo Go keeps working.
|
|
13
|
+
|
|
14
|
+
**Migration for hosts using Stripe.** Install the SDK in your app and link its Onramp module, then rebuild the native binary. The Stripe rail cannot run in Expo Go.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pnpm add @stripe/stripe-react-native
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```jsonc
|
|
21
|
+
// app.json / app.config.ts (Expo)
|
|
22
|
+
"plugins": [["@stripe/stripe-react-native", { "includeOnramp": true }]]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Bare React Native autolinks the base module but not Onramp: add `pod 'stripe-react-native/Onramp'` to your Podfile and `StripeSdk_includeOnramp=true` to `gradle.properties`, then `pod install` and rebuild. A JS-only update (EAS Update, CodePush) cannot add the native module, so ship a store build before enabling `stripeOnramp` for users.
|
|
26
|
+
- c4ea859: Bind Stripe's SDK inside the package instead of asking hosts to implement a client
|
|
27
|
+
|
|
28
|
+
**Breaking:** `StripeOnrampClient` and its ten supporting types (`StripeAuthorizeResult`, `StripeHasLinkAccountResult`, `StripeKycInfo`, `StripeLinkRegistration`, `StripeOnrampError`, `StripeRegisterLinkUserResult`, `StripeCollectPaymentMethodResult`, `StripeCreateCryptoPaymentTokenResult`, `StripePlatformPayParams`, `StripeVoidResult`) are no longer exported, and `<FunkitProvider stripeOnramp>` now takes `StripeOnrampConfig` rather than a client.
|
|
29
|
+
|
|
30
|
+
**Migration.** Delete your Stripe boundary component, keep `@stripe/stripe-react-native` installed in your app (it is an optional peer of this package), and pass the configuration straight to the provider:
|
|
31
|
+
|
|
32
|
+
```diff
|
|
33
|
+
-<StripeOnrampBoundary config={stripeConfig}>
|
|
34
|
+
- {(stripeOnramp) => <FunkitProvider stripeOnramp={stripeOnramp}>{children}</FunkitProvider>}
|
|
35
|
+
-</StripeOnrampBoundary>
|
|
36
|
+
+<FunkitProvider
|
|
37
|
+
+ stripeOnramp={{
|
|
38
|
+
+ publishableKey: STRIPE_PUBLISHABLE_KEY,
|
|
39
|
+
+ merchantDisplayName: 'Your App',
|
|
40
|
+
+ merchantIdentifier: 'merchant.your.app',
|
|
41
|
+
+ urlScheme: 'your-app',
|
|
42
|
+
+ }}
|
|
43
|
+
+>
|
|
44
|
+
+ {children}
|
|
45
|
+
+</FunkitProvider>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Omit `stripeOnramp` and no Stripe code runs. Apple Pay still requires a native rebuild, because the Apple Merchant ID is an app entitlement.
|
|
49
|
+
|
|
50
|
+
### Minor Changes
|
|
51
|
+
|
|
52
|
+
- 67085fd: Direct fiat deposits now settle on Coinbase's own success event and report it through `onDepositSubmitted`, replacing the status screens with a confirmation toast.
|
|
53
|
+
- 1bccb47: Refuse an unsupported region before the deposit amount screen, instead of after a quote or a KYC form.
|
|
54
|
+
- 6594183: Resolve whether fiat deposits are served in the buyer's region from their IP, and log the decision.
|
|
55
|
+
- f2ac65e: Add the unsupported-region receipt, which closes back to the host app instead of offering a retry.
|
|
56
|
+
- 00e8eae: Fiat deposit methods can pin quotes to a chosen set of providers when testing against a non-production backend; production refuses it.
|
|
57
|
+
- cd5ac82: Correlate a flow's logs under one trace id, and expose `getFunkitTraceInfo` / `flushFunkitLogs` for host debug tooling.
|
|
58
|
+
- 400e5f6: Configure deposit payment methods and their fiat target assets while preserving existing deposit behavior.
|
|
59
|
+
- 400e5f6: Localize deposit payment labels, fee details, and payment badges automatically.
|
|
60
|
+
- 400e5f6: Report deposit outcomes and standardize flow errors with codes and retry flags.
|
|
61
|
+
- 400e5f6: Keep the active user identity stable until an open flow closes.
|
|
62
|
+
- 400e5f6: Format deposit balances and support asynchronously loaded withdrawal balances in React Native flows.
|
|
63
|
+
- bc00257: Add an optional Stripe Embedded Components session-auth capability to the managed fiat flow.
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- fba9acb: Turn between the deposit amount screen and the pages after it instead of cutting
|
|
68
|
+
- 1939601: Country picker: a close button over the list, the chosen country headed "Your Country", and an index rail that appears once the list is scrolled
|
|
69
|
+
- fa27e56: Lighten the deposit sheet and fee drawer so the host's material reads through, give the drawer the design's drop shadow, and keep opaque flow sheets filled on Liquid Glass hosts.
|
|
70
|
+
- 142dfed: more useful error states for failed quoting
|
|
71
|
+
- ceb94c5: Report a fiat payment failure as a banner over the deposit header instead of a notice beside the action.
|
|
72
|
+
- d532b7d: The test-only fiat provider override is now `unstable_routingOverrides`, so it is not reached by accident.
|
|
73
|
+
- b23016a: Remove the bright line down the deposit sheet's edges and across the fee drawer's head.
|
|
74
|
+
- d7b5ef8: Deposits now have a maximum: over it the amount jolts, the screen names the cap and offers "Change to maximum", and an over-limit refusal says what the ceiling is.
|
|
75
|
+
- 085ecd5: The identity acknowledgement waits four seconds before showing its verdict, and Continue hands the deposit amount back instead of closing the flow.
|
|
76
|
+
- 154a1bb: The KYC country chooser opens on the country the field already holds instead of at the top of the list
|
|
77
|
+
- 154a1bb: Draw MoonPay's customer due diligence round as its own KYC pages.
|
|
78
|
+
- c6fc603: The KYC glyphs now fade from the host's brand color instead of grey.
|
|
79
|
+
- 35e4cbd: Stop the identity form opening with a refusal banner about the round before it.
|
|
80
|
+
- 154a1bb: Fix the MoonPay deposit's KYC and failure screens: forms stay usable when a quote lapses, a captured payment is never charged twice, and a refused authorization says what to do next.
|
|
81
|
+
- 154a1bb: Reuse active MoonPay connections and complete quote challenges without asking returning customers to authenticate again.
|
|
82
|
+
- 997387f: Deposit amount pills now use the screen's number style and Figma's tighter spacing.
|
|
83
|
+
- 142dfed: A deposit now has one maximum and one answer to it. Whichever ceiling binds — the host's, the corridor's, or the buyer's own remaining allowance reported by a refusal — the amount jolts, the screen names the figure, and a single tap changes the amount to it. The invented $2,500 fallback is gone, so the only maximum a buyer is shown is one that is really enforced, and $1,000,000 is the sole hard bound on what can be typed.
|
|
84
|
+
- d4a167c: Give the primary action a press response, so a submission reads as taken.
|
|
85
|
+
- e6addf8: Fee rates in the deposit fee details drawer are always written to two decimals (e.g. 4.20%).
|
|
86
|
+
- f147595: Deposit maximums are now remembered for the session, so an amount already known to be over the maximum is answered immediately.
|
|
87
|
+
- 4b42434: Speed the loading ring up to a turn every 600ms.
|
|
88
|
+
- c4ea859: Report why Stripe authorization failed instead of "[object Object]".
|
|
89
|
+
- c4ea859: Complete a Stripe purchase that needs a card confirmation step.
|
|
90
|
+
- c4ea859: Fix Stripe's KYC rounds dead-ending after the first one.
|
|
91
|
+
- c4ea859: Sign a returning buyer back into Stripe without a second one-time code.
|
|
92
|
+
- Updated dependencies [142dfed]
|
|
93
|
+
- Updated dependencies [1bccb47]
|
|
94
|
+
- Updated dependencies [38e9946]
|
|
95
|
+
- Updated dependencies [d532b7d]
|
|
96
|
+
- Updated dependencies [00e8eae]
|
|
97
|
+
- Updated dependencies [cd5ac82]
|
|
98
|
+
- Updated dependencies [154a1bb]
|
|
99
|
+
- Updated dependencies [f147595]
|
|
100
|
+
- Updated dependencies [c4ea859]
|
|
101
|
+
- Updated dependencies [bc00257]
|
|
102
|
+
- @funkit/connect-core@8.2.0
|
|
103
|
+
|
|
3
104
|
## 6.2.0
|
|
4
105
|
|
|
5
106
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -156,6 +156,16 @@ Two deliberate choices keep it that way:
|
|
|
156
156
|
copy degrades to a no-op + warning rather than crashing. A host injects its own
|
|
157
157
|
writer via `FunkitProvider`'s `copyToClipboard` (e.g. `expo-clipboard`), and
|
|
158
158
|
that override runs instead, so the throwing path never executes.
|
|
159
|
+
- **Stripe is an optional peer, loaded on demand.** `@stripe/stripe-react-native`
|
|
160
|
+
is a native module *not* in Expo Go, and it throws at import time on a binary
|
|
161
|
+
without its pod. Nothing names the package outside the guarded `import()` in
|
|
162
|
+
`src/fiat/providers/stripeSdk.ts`, which `StripeOnrampBridge` runs only after a
|
|
163
|
+
host passed `stripeOnramp` to `FunkitProvider`. A host that never configures
|
|
164
|
+
Stripe never installs it and never links it. A host that wants Stripe installs
|
|
165
|
+
it, enables its Onramp module (Expo: the config plugin with
|
|
166
|
+
`includeOnramp: true`; bare RN: `stripe-react-native/Onramp` in the Podfile and
|
|
167
|
+
`StripeSdk_includeOnramp=true` in `gradle.properties`), and rebuilds; that
|
|
168
|
+
rail cannot run in Expo Go.
|
|
159
169
|
- **No `react-native-device-info`.** `src/statsig/statsigMetadata.ts` vendors the
|
|
160
170
|
Statsig metadata adapter with the `react-native-device-info` dependency removed
|
|
161
171
|
(it's a native module that needs a dev build). The app-version / device-model
|
|
@@ -378,9 +388,9 @@ Android matches custom fonts by exact family-name string, and a font loaded at
|
|
|
378
388
|
runtime registers one native typeface per name — so `fontWeight: '500'` on a
|
|
379
389
|
custom `Inter` family is silently ignored. connect-rn therefore expresses weight
|
|
380
390
|
through the **family name** (set `family` + a per-weight `familySuffix`), and the
|
|
381
|
-
host registers **each cut under its own name** —
|
|
382
|
-
`Inter-
|
|
383
|
-
hardcode them.
|
|
391
|
+
host registers **each cut under its own name** — `Inter-Regular`, `Inter-Medium`
|
|
392
|
+
and `Inter-SemiBold`. Use `fontFamilyForWeight(...)` to resolve those names so you
|
|
393
|
+
don't hardcode them.
|
|
384
394
|
|
|
385
395
|
Define the font tokens in your host app, load the files **before rendering
|
|
386
396
|
`<FunkitProvider>`** (if a name is missing, that text falls back to the system
|
|
@@ -388,7 +398,12 @@ font), and build your theme with them. Example with Expo (`expo-font` +
|
|
|
388
398
|
`@expo-google-fonts/inter`):
|
|
389
399
|
|
|
390
400
|
```tsx
|
|
391
|
-
import {
|
|
401
|
+
import {
|
|
402
|
+
useFonts,
|
|
403
|
+
Inter_400Regular,
|
|
404
|
+
Inter_500Medium,
|
|
405
|
+
Inter_600SemiBold,
|
|
406
|
+
} from '@expo-google-fonts/inter'
|
|
392
407
|
import {
|
|
393
408
|
type FunkitFontTokens,
|
|
394
409
|
fontFamilyForWeight,
|
|
@@ -403,6 +418,7 @@ const interFonts: FunkitFontTokens = {
|
|
|
403
418
|
weights: {
|
|
404
419
|
base: { familySuffix: 'Regular', cssWeight: '400' },
|
|
405
420
|
medium: { familySuffix: 'Medium', cssWeight: '500' },
|
|
421
|
+
semibold: { familySuffix: 'SemiBold', cssWeight: '600' },
|
|
406
422
|
},
|
|
407
423
|
}
|
|
408
424
|
|
|
@@ -415,6 +431,7 @@ export default function App() {
|
|
|
415
431
|
const [fontsLoaded] = useFonts({
|
|
416
432
|
[fontFamilyForWeight(interFonts, 'base')]: Inter_400Regular, // 'Inter-Regular'
|
|
417
433
|
[fontFamilyForWeight(interFonts, 'medium')]: Inter_500Medium, // 'Inter-Medium'
|
|
434
|
+
[fontFamilyForWeight(interFonts, 'semibold')]: Inter_600SemiBold, // 'Inter-SemiBold'
|
|
418
435
|
})
|
|
419
436
|
if (!fontsLoaded) return null // or a splash screen
|
|
420
437
|
return <FunkitProvider themes={themes} {...}>{/* … */}</FunkitProvider>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
logger,
|
|
3
3
|
useFunkitIdentity
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-P3OLDPDC.js";
|
|
5
5
|
|
|
6
6
|
// src/statsig/useDynamicConfig.ts
|
|
7
7
|
import {
|
|
@@ -92,4 +92,4 @@ export {
|
|
|
92
92
|
useIsStablecoin,
|
|
93
93
|
useSourceTokenUsdPrice
|
|
94
94
|
};
|
|
95
|
-
//# sourceMappingURL=chunk-
|
|
95
|
+
//# sourceMappingURL=chunk-HRJNTNCV.js.map
|