@funkit/connect-rn 6.2.0 → 8.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 +148 -0
- package/README.md +97 -60
- package/dist/chunk-D64EJ57D.js +161 -0
- package/dist/chunk-D64EJ57D.js.map +7 -0
- package/dist/{chunk-VIMRV7N2.js → chunk-KZOSYNGV.js} +369 -207
- package/dist/chunk-KZOSYNGV.js.map +7 -0
- package/dist/{chunk-PLSQBNDE.js → chunk-SRVRWQO6.js} +5 -3
- package/dist/{chunk-PLSQBNDE.js.map → chunk-SRVRWQO6.js.map} +1 -1
- package/dist/clients/lighter.js +4 -2
- package/dist/clients/lighter.js.map +1 -1
- package/dist/clients/nado.js +5 -3
- package/dist/clients/nado.js.map +1 -1
- package/dist/clients/solana/index.d.ts +5 -0
- package/dist/clients/solana/index.d.ts.map +1 -0
- package/dist/clients/solana/solanaWithdrawal.d.ts +20 -0
- package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -0
- package/dist/clients/solana/useSolanaWithdrawal.d.ts +13 -0
- package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -0
- package/dist/clients/solana.d.ts +1 -0
- package/dist/clients/solana.js +87 -0
- package/dist/clients/solana.js.map +7 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7035 -2945
- package/dist/index.js.map +4 -4
- package/dist/src/components/Grabber.d.ts +3 -1
- package/dist/src/components/Grabber.d.ts.map +1 -1
- 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/KycGlassBackdrop.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 +27 -0
- 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/useFiatDirectDelivery.d.ts +5 -4
- package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -1
- package/dist/src/fiat/useIdentityAssertion.d.ts +35 -0
- package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -0
- package/dist/src/fiat/useKycCompletion.d.ts +11 -3
- package/dist/src/fiat/useKycCompletion.d.ts.map +1 -1
- package/dist/src/fiat/useQuoteableCeiling.d.ts +28 -0
- package/dist/src/fiat/useQuoteableCeiling.d.ts.map +1 -0
- 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 +14 -20
- package/dist/src/flow/FlowSheet.d.ts.map +1 -1
- package/dist/src/flow/FunkitFlowProvider.d.ts +18 -5
- package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
- package/dist/src/flow/SheetMaterial.d.ts +11 -0
- package/dist/src/flow/SheetMaterial.d.ts.map +1 -0
- package/dist/src/flow/StepPage.d.ts +16 -0
- package/dist/src/flow/StepPage.d.ts.map +1 -0
- package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
- 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 +116 -31
- 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 +47 -0
- package/dist/src/flow/flowError.d.ts.map +1 -0
- package/dist/src/flow/flowStepHeight.d.ts +19 -0
- package/dist/src/flow/flowStepHeight.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/validateClientMetadata.d.ts +2 -3
- package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
- 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/hooks/useSheetFade.d.ts +11 -0
- package/dist/src/hooks/useSheetFade.d.ts.map +1 -0
- 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 +31 -8
- package/dist/src/identity/IdentityContext.d.ts.map +1 -1
- package/dist/src/logging/debugBridge.d.ts +13 -0
- package/dist/src/logging/debugBridge.d.ts.map +1 -0
- package/dist/src/native/glassEffect.d.ts +18 -0
- package/dist/src/native/glassEffect.d.ts.map +1 -0
- package/dist/src/providers/FunkitProvider.d.ts +18 -9
- package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
- package/dist/src/providers/NativeCapabilitiesContext.d.ts +20 -14
- 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/providers/useFunkitCheckout.d.ts +7 -3
- package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
- 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 +7 -13
- package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
- package/dist/src/screens/WithdrawCompleteScreen.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/swapped/SwappedWebView.d.ts.map +1 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts +3 -1
- package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
- package/dist/src/swapped/paymentNavigation.d.ts +21 -0
- package/dist/src/swapped/paymentNavigation.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/transfer/hooks/useDepositRecipient.d.ts +2 -2
- package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -2
- package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
- package/dist/src/transfer/hooks/useTransferInit.d.ts +2 -3
- package/dist/src/transfer/hooks/useTransferInit.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 +18 -0
- package/dist/src/utils/motion.d.ts.map +1 -1
- package/dist/src/withdrawal/fiatTargetDecimals.d.ts +13 -0
- package/dist/src/withdrawal/fiatTargetDecimals.d.ts.map +1 -0
- package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -1
- package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -1
- package/dist/src/withdrawal/useWithdrawalExecution.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/expo-module.config.json +6 -0
- package/ios/FunkitGlassEffect.podspec +23 -0
- package/ios/FunkitGlassEffectModule.swift +126 -0
- package/ios/GlassStyle.swift +52 -0
- package/ios/GlassView.swift +305 -0
- package/package.json +23 -7
- package/dist/chunk-VIMRV7N2.js.map +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,C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uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,4EAA4E;IAC5E,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC,iFAAiF;IACjF,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC,6EAA6E;IAC7E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,kBAAkB,CAAA;IACjC;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,+BAsTA;AAqFD,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BackdropBlurRenderer } from './FlowSheet';
|
|
2
|
+
/**
|
|
3
|
+
* The material under every translucent flow surface: a dark blur of the host
|
|
4
|
+
* app with iOS 26 Liquid Glass refracting through it where the binary links the
|
|
5
|
+
* SDK's pod. Elsewhere the blur stands alone and the surface paints its fill.
|
|
6
|
+
*/
|
|
7
|
+
export declare function SheetMaterial({ tint }: {
|
|
8
|
+
tint?: string;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare const renderSheetMaterial: BackdropBlurRenderer;
|
|
11
|
+
//# sourceMappingURL=SheetMaterial.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SheetMaterial.d.ts","sourceRoot":"","sources":["../../../src/flow/SheetMaterial.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAWvD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAAE,IAAiB,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAqBrE;AAED,eAAO,MAAM,mBAAmB,EAAE,oBAA8C,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* One page of a step, so a move between them is a turn rather than a cut.
|
|
4
|
+
*
|
|
5
|
+
* - `side` is where the page sits in the flow: `ahead` arrives from and leaves
|
|
6
|
+
* to the right, `behind` the left, so the two cross as they swap.
|
|
7
|
+
* - Both pages stand in the frame while the turn runs, so each fills it
|
|
8
|
+
* absolutely and the frame keeps the step's height.
|
|
9
|
+
*/
|
|
10
|
+
export declare function StepPage({ side, animateIn, children, }: {
|
|
11
|
+
side: 'ahead' | 'behind';
|
|
12
|
+
/** Off for the page the step opens on: there is nothing for it to turn from. */
|
|
13
|
+
animateIn?: boolean;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=StepPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepPage.d.ts","sourceRoot":"","sources":["../../../src/flow/StepPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMtC;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,SAAgB,EAChB,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,GAAG,QAAQ,CAAA;IACxB,gFAAgF;IAChF,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAWA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAmB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"WithdrawalFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/WithdrawalFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,OAAO,CAAA;AAmB7D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAW/B;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,UAAU,EACV,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;CACb,GAAG,SAAS,CAmPZ"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AccountBalanceChipProps } from '../components/v2/AccountBalanceChip';
|
|
2
|
+
import type { Locale } from '../locales/i18n';
|
|
3
|
+
import type { DepositAccountContext } from './depositFlowConfig';
|
|
4
|
+
/** The chip's props; a deprecated preformatted `value` still wins. */
|
|
5
|
+
export declare function accountBalanceChipProps(context: DepositAccountContext | undefined, locale: Locale): AccountBalanceChipProps | undefined;
|
|
6
|
+
//# sourceMappingURL=accountContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountContext.d.ts","sourceRoot":"","sources":["../../../src/flow/accountContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAClF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAC7C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAkBhE,sEAAsE;AACtE,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,qBAAqB,GAAG,SAAS,EAC1C,MAAM,EAAE,MAAM,GACb,uBAAuB,GAAG,SAAS,CAMrC"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SolanaAddress } from '@funkit/api-base';
|
|
2
|
+
import type { CheckoutTokenTransferConfig, DynamicTargetAssetCandidate, FiatRoutingOverrides, MinDepositTarget } from '@funkit/connect-core';
|
|
2
3
|
import type { ReactNode } from 'react';
|
|
4
|
+
import type { Address } from 'viem';
|
|
3
5
|
import type { SupportedToken, TokenChainFilter } from '../transfer/supportedTokens';
|
|
6
|
+
import type { FunkitFlowError } from './flowError';
|
|
4
7
|
export type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
|
|
5
8
|
/**
|
|
6
|
-
* Host-supplied identifiers
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* (logged, not thrown) rather than failing the whole flow.
|
|
9
|
+
* Host-supplied payment identifiers and optional deposit cap, forwarded to
|
|
10
|
+
* `POST /eoa` alongside the SDK's `checkoutId`. Invalid identifiers are
|
|
11
|
+
* dropped with a warning; an invalid supplied cap rejects `beginDeposit`.
|
|
10
12
|
*/
|
|
11
13
|
export interface DepositClientMetadata {
|
|
12
14
|
/** Must be a non-empty string. */
|
|
13
15
|
externalUserId?: string;
|
|
14
16
|
/** Must be a string representation of a positive, safe integer. */
|
|
15
17
|
clientTransactionId?: `${number}`;
|
|
18
|
+
/**
|
|
19
|
+
* Maximum gross deposit in the resolved target chain/asset's base units, before fees;
|
|
20
|
+
* separate from `initialAmount` (fiat input) and not guaranteed net credit.
|
|
21
|
+
* Positive integer string, at most 30 digits, without leading zeros.
|
|
22
|
+
*/
|
|
23
|
+
authorizedAmountBaseUnit?: string;
|
|
16
24
|
}
|
|
17
25
|
/**
|
|
18
26
|
* Destination chain/asset for a deposit, plus the customer `getMinDepositUSD`
|
|
@@ -20,7 +28,16 @@ export interface DepositClientMetadata {
|
|
|
20
28
|
* The web `FunkitCheckoutConfig` satisfies this structurally. Named once here so
|
|
21
29
|
* the flow provider and `useFops` share exactly one shape.
|
|
22
30
|
*/
|
|
23
|
-
export type DepositCheckoutConfig =
|
|
31
|
+
export type DepositCheckoutConfig = DepositTargetConfig & Pick<MinDepositTarget, 'getMinDepositUSD'>;
|
|
32
|
+
/**
|
|
33
|
+
* The connect-core transfer config with `targetAsset` also taking a Solana
|
|
34
|
+
* mint: the fiat rail buys it directly, so hosts targeting Solana USDC pass the
|
|
35
|
+
* base58 mint without a cast. Widened here rather than in connect-core so web's
|
|
36
|
+
* EVM-only typing is untouched; RN hooks narrow back at the core boundary.
|
|
37
|
+
*/
|
|
38
|
+
export type DepositTargetConfig = Omit<CheckoutTokenTransferConfig, 'targetAsset'> & {
|
|
39
|
+
targetAsset: Address | SolanaAddress;
|
|
40
|
+
};
|
|
24
41
|
/**
|
|
25
42
|
* Resolve the active target-asset candidate from a list + routing id (RN-only).
|
|
26
43
|
*
|
|
@@ -63,24 +80,28 @@ export interface ChainOption {
|
|
|
63
80
|
*/
|
|
64
81
|
export interface DepositAmountEntryConfig {
|
|
65
82
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
* there. Without `fiat` an omitted rate shows no fee at all.
|
|
83
|
+
* @deprecated The rail quotes its own fee. Fee charged on the entered
|
|
84
|
+
* amount, as a fraction (0.005 = 0.5%), shown only while no rail is wired.
|
|
69
85
|
*/
|
|
70
86
|
feeRate?: number;
|
|
71
87
|
/**
|
|
72
|
-
* The
|
|
73
|
-
* the fee-details drawer
|
|
74
|
-
* the figures alone.
|
|
88
|
+
* @deprecated The SDK names the rail from {@link DepositFlowConfig.methods}.
|
|
89
|
+
* Overrides how the fee-details drawer names it.
|
|
75
90
|
*/
|
|
76
91
|
methodName?: string;
|
|
77
92
|
/** Header title; defaults to the SDK's own translated "Deposit". */
|
|
78
93
|
title?: string;
|
|
79
|
-
/**
|
|
80
|
-
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated The SDK words the submit from {@link DepositFlowConfig.methods}
|
|
96
|
+
* in the user's locale. Overrides that label.
|
|
97
|
+
*/
|
|
98
|
+
submitLabel?: string;
|
|
81
99
|
/** Quick-amount presets in whole dollars; defaults to 10/20/50/100. */
|
|
82
100
|
quickAmountsUsd?: string[];
|
|
83
|
-
/**
|
|
101
|
+
/**
|
|
102
|
+
* Hard input cap in dollars. With {@link fiat} configured it defaults to
|
|
103
|
+
* $2,500; without `fiat` an omitted cap means no limit.
|
|
104
|
+
*/
|
|
84
105
|
limitUsd?: string;
|
|
85
106
|
/**
|
|
86
107
|
* Smallest amount the source will take, in dollars. Below it the CTA names
|
|
@@ -89,20 +110,37 @@ export interface DepositAmountEntryConfig {
|
|
|
89
110
|
minLimitUsd?: string;
|
|
90
111
|
/** Brand glyph beside the title; the title stands alone without one. */
|
|
91
112
|
brandIcon?: ReactNode;
|
|
92
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated The SDK draws the rail's mark from
|
|
115
|
+
* {@link DepositFlowConfig.methods}. Overrides the fee line's badge.
|
|
116
|
+
*/
|
|
93
117
|
methodBadge?: ReactNode;
|
|
94
118
|
/** Host account context in the header (label + balance + avatar). */
|
|
95
|
-
accountContext?:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/** Links back out to the host context (e.g. the profile page). */
|
|
101
|
-
onPress?: () => void;
|
|
102
|
-
};
|
|
103
|
-
/** Routes amount entry through the fiat backend. */
|
|
119
|
+
accountContext?: DepositAccountContext;
|
|
120
|
+
/**
|
|
121
|
+
* @deprecated Name the rail in {@link DepositFlowConfig.methods}; it delivers
|
|
122
|
+
* to `checkoutConfig`, so the destination is not repeated here.
|
|
123
|
+
*/
|
|
104
124
|
fiat?: FiatRailConfig;
|
|
105
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* The host's balance beside the title. The SDK formats it like every other
|
|
128
|
+
* amount on the screen, so give it the number, not the words.
|
|
129
|
+
*/
|
|
130
|
+
export type DepositAccountContext = {
|
|
131
|
+
label: string;
|
|
132
|
+
avatar?: ReactNode;
|
|
133
|
+
/** Links back out to the host context (e.g. the profile page). */
|
|
134
|
+
onPress?: () => void;
|
|
135
|
+
} & ({
|
|
136
|
+
/** Decimal string in dollars, e.g. `"366715.12"`. */
|
|
137
|
+
amountUsd: string;
|
|
138
|
+
value?: undefined;
|
|
139
|
+
} | {
|
|
140
|
+
/** @deprecated Pass {@link amountUsd}; the SDK formats it. */
|
|
141
|
+
value: string;
|
|
142
|
+
amountUsd?: undefined;
|
|
143
|
+
});
|
|
106
144
|
/**
|
|
107
145
|
* A fixed fiat amount to prefill the deposit amount screen with — the value
|
|
108
146
|
* the user pays, not a crypto amount. Distinct from any provider's approved
|
|
@@ -116,7 +154,30 @@ export interface DepositInitialAmount {
|
|
|
116
154
|
/** ISO 4217 currency code, e.g. `"USD"`. */
|
|
117
155
|
currency: string;
|
|
118
156
|
}
|
|
119
|
-
/**
|
|
157
|
+
/** What a fiat method needs beyond its type to be quoted. */
|
|
158
|
+
export interface FiatDepositMethodOptions {
|
|
159
|
+
/** Ticker the onramp quote API uses for the checkout target. */
|
|
160
|
+
fiatTargetAssetTicker?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Test tooling for exercising one provider integration at a time. Sandbox
|
|
163
|
+
* and local backends only; production refuses a quote carrying it. The
|
|
164
|
+
* prefix keeps it out of a host's tab-completion for that reason.
|
|
165
|
+
*/
|
|
166
|
+
unstable_routingOverrides?: FiatRoutingOverrides;
|
|
167
|
+
}
|
|
168
|
+
/** A way to fund the deposit. */
|
|
169
|
+
export type DepositMethod = ({
|
|
170
|
+
type: 'apple_pay';
|
|
171
|
+
} & FiatDepositMethodOptions) | ({
|
|
172
|
+
type: 'card';
|
|
173
|
+
} & FiatDepositMethodOptions) | {
|
|
174
|
+
type: 'crypto';
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* The fiat onramp rail behind the V2 amount screen. Derived from
|
|
178
|
+
* {@link DepositFlowConfig.methods} and the active checkout chain; hosts no
|
|
179
|
+
* longer write one directly.
|
|
180
|
+
*/
|
|
120
181
|
export interface FiatRailConfig {
|
|
121
182
|
/** The rail quoted and fired, e.g. `apple_pay`. */
|
|
122
183
|
paymentMethod: string;
|
|
@@ -130,6 +191,8 @@ export interface FiatRailConfig {
|
|
|
130
191
|
cryptoCurrencyAddress: string;
|
|
131
192
|
/** Destination chain id used for the quote. */
|
|
132
193
|
chainId: string;
|
|
194
|
+
/** See {@link FiatDepositMethodOptions.unstable_routingOverrides}. */
|
|
195
|
+
unstable_routingOverrides?: FiatRoutingOverrides;
|
|
133
196
|
}
|
|
134
197
|
/**
|
|
135
198
|
* Data the managed deposit flow renders.
|
|
@@ -145,6 +208,14 @@ export interface FiatRailConfig {
|
|
|
145
208
|
* `beginDeposit` ultimately takes just a target, like the web `beginCheckout`.
|
|
146
209
|
*/
|
|
147
210
|
export interface DepositFlowConfig {
|
|
211
|
+
/**
|
|
212
|
+
* What the deposit offers. Order is a hint; Fun ranks per user. With
|
|
213
|
+
* `amountEntry`, the first fiat entry is the rail behind submit and needs a
|
|
214
|
+
* ticker for the active checkout target.
|
|
215
|
+
* Without `amountEntry`, a list omitting `crypto` drops the Crypto row from
|
|
216
|
+
* Add money. Omitted, the V1 method list stands.
|
|
217
|
+
*/
|
|
218
|
+
methods?: DepositMethod[];
|
|
148
219
|
/**
|
|
149
220
|
* Opt into the V2 amount-first deposit surface: the flow opens on the
|
|
150
221
|
* full-screen amount screen instead of the Add money method list.
|
|
@@ -177,7 +248,10 @@ export interface DepositFlowConfig {
|
|
|
177
248
|
* (no identity). Display formatting (truncation) is applied by the flow.
|
|
178
249
|
*/
|
|
179
250
|
depositAddress?: string;
|
|
180
|
-
/**
|
|
251
|
+
/**
|
|
252
|
+
* @deprecated Ignored — the supported-tokens screen lists the curated
|
|
253
|
+
* tokens the SDK resolves itself.
|
|
254
|
+
*/
|
|
181
255
|
supportedTokens?: SupportedToken[];
|
|
182
256
|
tokenChainFilters?: TokenChainFilter[];
|
|
183
257
|
/**
|
|
@@ -206,10 +280,21 @@ export interface DepositFlowCallbacks {
|
|
|
206
280
|
onClose?: () => void;
|
|
207
281
|
onCheckoutBlocked?: () => void;
|
|
208
282
|
/**
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
283
|
+
* The deposit is on its way and the SDK is finished with it: the flow has
|
|
284
|
+
* closed and its confirmation is up. `orderId` is the provider's; `method`
|
|
285
|
+
* is the rail's {@link DepositMethod} type. Fires only where the rail pays
|
|
286
|
+
* the recipient directly — an order the backend still has to sweep has not
|
|
287
|
+
* arrived, so nothing is claimed for it.
|
|
288
|
+
*/
|
|
289
|
+
onDepositSubmitted?: (orderId: string, method: DepositMethod['type']) => void;
|
|
290
|
+
/**
|
|
291
|
+
* The deposit ended short of an order, or the order failed. `cancelled`
|
|
292
|
+
* is the user leaving; see {@link FunkitFlowError} for the rest.
|
|
293
|
+
*/
|
|
294
|
+
onDepositError?: (error: FunkitFlowError) => void;
|
|
295
|
+
/**
|
|
296
|
+
* @deprecated Name a rail in {@link DepositFlowConfig.methods}; it owns the
|
|
297
|
+
* submit. Fires only while no rail is wired.
|
|
213
298
|
*/
|
|
214
299
|
onSubmitAmount?: (amountUsd: string) => void;
|
|
215
300
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,E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;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB;;;OAGG;IACH,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,yCAAyC;IACzC,cAAc,CAAC,EAAE,qBAAqB,CAAA;IACtC;;;OAGG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,yDAAyD;AACzD,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC9B;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,IAAI,CAAA;IAC7E;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAA;IACjD;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC7C"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type DepositCheckoutConfig, type DepositFlowConfig, type DepositMethod, type FiatRailConfig } from './depositFlowConfig';
|
|
2
|
+
/** The checkout target selected when a deposit first opens. */
|
|
3
|
+
export declare function resolveInitialDepositCheckoutConfig(config: DepositFlowConfig): DepositCheckoutConfig | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* The methods a config offers, with the older shapes mapped onto the list: a
|
|
6
|
+
* deprecated `amountEntry.fiat` names its one rail, and no opt-in at all
|
|
7
|
+
* leaves the V1 list to Add money.
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveDepositMethods(config: DepositFlowConfig): DepositMethod[] | undefined;
|
|
10
|
+
/** Whether the deposit was configured to quote a fiat rail. */
|
|
11
|
+
export declare function hasFiatMethod(config: DepositFlowConfig): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The fiat rail behind the amount screen, or `undefined` when none is
|
|
14
|
+
* configured. An explicit method list wins over deprecated configuration. Its
|
|
15
|
+
* first fiat method supplies the target ticker, while the active checkout
|
|
16
|
+
* config supplies its address and chain.
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveFiatRail(config: DepositFlowConfig, checkoutConfig?: DepositCheckoutConfig | undefined): FiatRailConfig | undefined;
|
|
19
|
+
/** A method list that leaves `crypto` out drops the Crypto row from Add money. */
|
|
20
|
+
export declare function omitsCryptoDeposit(methods: DepositMethod[] | undefined): boolean;
|
|
21
|
+
//# sourceMappingURL=depositMethods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositMethods.d.ts","sourceRoot":"","sources":["../../../src/flow/depositMethods.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,qBAAqB,CAAA;AAiB5B,+DAA+D;AAC/D,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,iBAAiB,GACxB,qBAAqB,GAAG,SAAS,CAanC;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,iBAAiB,GACxB,aAAa,EAAE,GAAG,SAAS,CAU7B;AAED,+DAA+D;AAC/D,wBAAgB,aAAa,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAKhE;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,iBAAiB,EACzB,cAAc,GAAE,qBAAqB,GAAG,SAAiC,GACxE,cAAc,GAAG,SAAS,CAqB5B;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,aAAa,EAAE,GAAG,SAAS,GACnC,OAAO,CAET"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
import type { DepositAmountEntryConfig } from './depositFlowConfig';
|
|
4
|
+
/** The words and mark the amount screen draws for its rail. */
|
|
5
|
+
export interface DepositRailCopy {
|
|
6
|
+
/** The submit's default label, before the server relabels a step. */
|
|
7
|
+
submitLabel: string;
|
|
8
|
+
/** How the fee drawer names the rail; `undefined` leaves the summary out. */
|
|
9
|
+
methodName: string | undefined;
|
|
10
|
+
/** Badge on the fee line's leading side. */
|
|
11
|
+
methodBadge: ReactNode | undefined;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Rail copy comes from the rail, so no host writes "Deposit with Apple Pay":
|
|
15
|
+
* the SDK names the method in the user's locale and draws its mark. The
|
|
16
|
+
* deprecated `submitLabel`, `methodName` and `methodBadge` still win while
|
|
17
|
+
* they are set.
|
|
18
|
+
*/
|
|
19
|
+
export declare function resolveDepositRailCopy(config: DepositAmountEntryConfig, paymentMethod: string | undefined, t: TFunction): DepositRailCopy;
|
|
20
|
+
//# sourceMappingURL=depositRailCopy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depositRailCopy.d.ts","sourceRoot":"","sources":["../../../src/flow/depositRailCopy.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAEnE,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,qEAAqE;IACrE,WAAW,EAAE,MAAM,CAAA;IACnB,6EAA6E;IAC7E,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,4CAA4C;IAC5C,WAAW,EAAE,SAAS,GAAG,SAAS,CAAA;CACnC;AAkBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,wBAAwB,EAChC,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,CAAC,EAAE,SAAS,GACX,eAAe,CAcjB"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a managed flow ended short of its outcome. One shape for deposits and
|
|
3
|
+
* withdrawals, so a host branches on `code` and the two flags rather than on
|
|
4
|
+
* message text.
|
|
5
|
+
*/
|
|
6
|
+
export type FunkitFlowErrorCode =
|
|
7
|
+
/** The user dismissed the flow before anything was submitted. */
|
|
8
|
+
'cancelled'
|
|
9
|
+
/** Fun will not serve this user, region, asset or amount. */
|
|
10
|
+
| 'blocked'
|
|
11
|
+
/** The host's identity minter failed for a reason a retry may fix. */
|
|
12
|
+
| 'identity_assertion_failed'
|
|
13
|
+
/** The host's session lapsed; it must sign the user in again, then reopen. */
|
|
14
|
+
| 'session_expired'
|
|
15
|
+
/** The wallet refused to sign. */
|
|
16
|
+
| 'signer_rejected'
|
|
17
|
+
/** The config cannot open a flow; fix the integration. */
|
|
18
|
+
| 'misconfigured'
|
|
19
|
+
/** Every provider, or the payment instrument, declined. */
|
|
20
|
+
| 'payment_declined' | 'unknown';
|
|
21
|
+
export interface FunkitFlowError {
|
|
22
|
+
code: FunkitFlowErrorCode;
|
|
23
|
+
/** Trying again, unchanged, has a chance. */
|
|
24
|
+
isRetryable: boolean;
|
|
25
|
+
/** Nothing the user does in this flow recovers it. */
|
|
26
|
+
isFatal: boolean;
|
|
27
|
+
/** Fit to show the user. */
|
|
28
|
+
message: string;
|
|
29
|
+
}
|
|
30
|
+
/** Builds an error with the code's usual flags; a caller that knows better overrides them. */
|
|
31
|
+
export declare function flowError(code: FunkitFlowErrorCode, message: string, flags?: Partial<Pick<FunkitFlowError, 'isRetryable' | 'isFatal'>>): FunkitFlowError;
|
|
32
|
+
/** Thrown by `beginDeposit` when the config cannot open a flow. */
|
|
33
|
+
export declare class FunkitMisconfiguredError extends Error implements FunkitFlowError {
|
|
34
|
+
readonly code = "misconfigured";
|
|
35
|
+
readonly isRetryable = false;
|
|
36
|
+
readonly isFatal = true;
|
|
37
|
+
constructor(message: string);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The codes a host's identity minter rejects with, per the identity
|
|
41
|
+
* assertion contract: 401 → `SESSION_EXPIRED`, 403 → `ACCOUNT_INELIGIBLE`,
|
|
42
|
+
* network or 5xx → `TRANSIENT`.
|
|
43
|
+
*/
|
|
44
|
+
export type IdentityAssertionErrorCode = 'SESSION_EXPIRED' | 'ACCOUNT_INELIGIBLE' | 'TRANSIENT';
|
|
45
|
+
/** Reads the contract code off whatever the host's minter threw, if it named one. */
|
|
46
|
+
export declare function identityAssertionErrorCode(error: unknown): IdentityAssertionErrorCode | undefined;
|
|
47
|
+
//# sourceMappingURL=flowError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowError.d.ts","sourceRoot":"","sources":["../../../src/flow/flowError.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,MAAM,mBAAmB;AAC7B,iEAAiE;AAC/D,WAAW;AACb,6DAA6D;GAC3D,SAAS;AACX,sEAAsE;GACpE,2BAA2B;AAC7B,8EAA8E;GAC5E,iBAAiB;AACnB,kCAAkC;GAChC,iBAAiB;AACnB,0DAA0D;GACxD,eAAe;AACjB,2DAA2D;GACzD,kBAAkB,GAClB,SAAS,CAAA;AAEb,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,mBAAmB,CAAA;IACzB,6CAA6C;IAC7C,WAAW,EAAE,OAAO,CAAA;IACpB,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAA;IAChB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAA;CAChB;AAgBD,8FAA8F;AAC9F,wBAAgB,SAAS,CACvB,IAAI,EAAE,mBAAmB,EACzB,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,SAAS,CAAC,CAAM,GACpE,eAAe,CAEjB;AAED,mEAAmE;AACnE,qBAAa,wBAAyB,SAAQ,KAAM,YAAW,eAAe;IAC5E,QAAQ,CAAC,IAAI,mBAAkB;IAC/B,QAAQ,CAAC,WAAW,SAAQ;IAC5B,QAAQ,CAAC,OAAO,QAAO;gBAEX,OAAO,EAAE,MAAM;CAI5B;AAED;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAClC,iBAAiB,GACjB,oBAAoB,GACpB,WAAW,CAAA;AAQf,qFAAqF;AACrF,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,OAAO,GACb,0BAA0B,GAAG,SAAS,CAQxC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export declare function FlowContainerHeightProvider({ height, children, }: {
|
|
3
|
+
height: number | undefined;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* The height a full-height step should take.
|
|
8
|
+
*
|
|
9
|
+
* A full-height step owns its container, and on native that container is the
|
|
10
|
+
* screen, so the window height names the same box. On web the flow can be
|
|
11
|
+
* mounted in a host box smaller than the window — a dialog — and the window
|
|
12
|
+
* height then overflows it, putting the foot of the step below the host's clip.
|
|
13
|
+
*
|
|
14
|
+
* The measured container is used there instead. It falls back to the window
|
|
15
|
+
* until the first layout lands, which is the same number whenever the flow does
|
|
16
|
+
* own the window.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useFullHeightStep(windowHeight: number): number;
|
|
19
|
+
//# sourceMappingURL=flowStepHeight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flowStepHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/flowStepHeight.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAMjE,wBAAgB,2BAA2B,CAAC,EAC1C,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAK9D"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { DepositReceivedToast } from './DepositReceivedToast';
|
|
3
|
+
/** What the card says: the amount that landed, and where it came from. */
|
|
4
|
+
export interface DepositReceipt {
|
|
5
|
+
title: string;
|
|
6
|
+
detail: string;
|
|
7
|
+
}
|
|
8
|
+
interface DepositReceivedToast {
|
|
9
|
+
/** The overlay to render; the caller owns only where it sits in the tree. */
|
|
10
|
+
depositToast: ReactNode;
|
|
11
|
+
showDepositToast: (receipt: DepositReceipt) => void;
|
|
12
|
+
clearDepositToast: () => void;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The deposit confirmation that replaces the payment sheet.
|
|
16
|
+
*
|
|
17
|
+
* It is raised as the flow closes and has to outlive it, so it is mounted
|
|
18
|
+
* beside the sheet rather than inside it — and `closeFlow` leaves it alone.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDepositReceivedToast(): DepositReceivedToast;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=useDepositReceivedToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useDepositReceivedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAKhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAU7D,0EAA0E;AAC1E,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,oBAAoB;IAC5B,6EAA6E;IAC7E,YAAY,EAAE,SAAS,CAAA;IACvB,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,iBAAiB,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,IAAI,oBAAoB,CA6C9D"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { DepositClientMetadata } from './depositFlowConfig';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* host may not be able to react to synchronously.
|
|
3
|
+
* Preserve identifier validation's existing drop-and-warn behavior, but never
|
|
4
|
+
* silently remove a supplied deposit ceiling.
|
|
6
5
|
*/
|
|
7
6
|
export declare function validateClientMetadata(clientMetadata: DepositClientMetadata | undefined): DepositClientMetadata | undefined;
|
|
8
7
|
//# sourceMappingURL=validateClientMetadata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateClientMetadata.d.ts","sourceRoot":"","sources":["../../../src/flow/validateClientMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"validateClientMetadata.d.ts","sourceRoot":"","sources":["../../../src/flow/validateClientMetadata.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAGhE;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAChD,qBAAqB,GAAG,SAAS,CAkDnC"}
|
|
@@ -71,11 +71,12 @@ export interface WithdrawalFlowConfig {
|
|
|
71
71
|
/**
|
|
72
72
|
* Crypto rail: spendable balance of a source token, in that token's units.
|
|
73
73
|
* The integrator is authoritative — it knows about locks, pending orders and
|
|
74
|
-
* borrow limits the SDK can't see on-chain.
|
|
75
|
-
* cheap and referentially stable; a
|
|
76
|
-
*
|
|
74
|
+
* borrow limits the SDK can't see on-chain. A plain value is read on render,
|
|
75
|
+
* so keep it cheap and referentially stable; a promise is awaited once per
|
|
76
|
+
* source token, with the balance held at zero until it settles. A throw or
|
|
77
|
+
* a nonsense value is treated as a zero balance rather than breaking the form.
|
|
77
78
|
*/
|
|
78
|
-
withdrawalSourceTokenBalance?: (params: WithdrawalSourceTokenParams) => string | number
|
|
79
|
+
withdrawalSourceTokenBalance?: (params: WithdrawalSourceTokenParams) => string | number | Promise<string | number>;
|
|
79
80
|
/** Crypto rail: minimum withdrawal in USD. Defaults to $0.01. */
|
|
80
81
|
getMinWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
|
|
81
82
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC;;;;GAIG;AACH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,MAAM,EAAE,oBAAoB,CAAA;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,QAAQ,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AGG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAC9C,wEAAwE;IACxE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAA;CACzD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type FiatRegionVerdict } from '@funkit/connect-core';
|
|
2
|
+
export interface UseFiatRegionSupportResult {
|
|
3
|
+
verdict: FiatRegionVerdict;
|
|
4
|
+
/**
|
|
5
|
+
* The verdict is provisional: either the buyer's location or the policy
|
|
6
|
+
* itself is still resolving. A provisional verdict always reads as supported,
|
|
7
|
+
* so a caller that acts on it admits a buyer the settled policy may deny.
|
|
8
|
+
*/
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Whether fiat deposits are served where the buyer is, from their IP alone.
|
|
13
|
+
*
|
|
14
|
+
* Both inputs are already cached by the screens that follow — the geo lookup
|
|
15
|
+
* is session-stable and the config is the one Statsig resolves against that
|
|
16
|
+
* same country — so asking here costs no request and no wait.
|
|
17
|
+
*
|
|
18
|
+
* While the location is resolving the verdict reads as supported, which is
|
|
19
|
+
* what keeps a buyer off a refusal we have not decided yet. A location that
|
|
20
|
+
* never resolves is the existing compliance gate's to answer, not this one's.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useFiatRegionSupport(): UseFiatRegionSupportResult;
|
|
23
|
+
//# sourceMappingURL=useFiatRegionSupport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFiatRegionSupport.d.ts","sourceRoot":"","sources":["../../../src/geo/useFiatRegionSupport.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,sBAAsB,CAAA;AAO7B,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,iBAAiB,CAAA;IAC1B;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,IAAI,0BAA0B,CAiDjE"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { type NumpadKey } from '../utils/numpadInput';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Only the cap refuses. A floor is a state the amount is allowed to sit in —
|
|
6
|
-
* the screen answers that one, and the keypad stays out of its way.
|
|
3
|
+
* The value sits over the source's ceiling — the floor's mirror, and read the
|
|
4
|
+
* same way: a state the amount is allowed to hold while the screen names it.
|
|
7
5
|
*/
|
|
8
|
-
export
|
|
6
|
+
export declare function isAboveMaximum(value: string, limitUsd?: string): boolean;
|
|
9
7
|
/**
|
|
10
8
|
* The value sits under the source's floor. Empty and zero are the untouched
|
|
11
9
|
* state rather than a violation — there is nothing yet to be too small.
|
|
@@ -14,26 +12,27 @@ export declare function isBelowMinimum(value: string, minLimitUsd?: string): boo
|
|
|
14
12
|
/**
|
|
15
13
|
* An amount screen's input policy, separate from its layout. Every way a value
|
|
16
14
|
* enters — a numpad key or a quick-amount chip — commits through this hook, so
|
|
17
|
-
* the
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
15
|
+
* the policy lives in exactly one place.
|
|
16
|
+
*
|
|
17
|
+
* `limitUsd` is the source's maximum, wherever it came from — the host's own
|
|
18
|
+
* figure, the corridor's, or the one a refusal reports. The digit lands, the
|
|
19
|
+
* amount jolts, and the screen names the bound and offers the way back, so the
|
|
20
|
+
* buyer is always told the number they can have rather than left guessing at
|
|
21
|
+
* a key that does nothing.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* Only a meaningless edit is refused outright besides — deleting from zero, or
|
|
24
|
+
* any edit while `disabled` — and a zero typed onto zero is a no-op that swells
|
|
25
|
+
* to acknowledge it.
|
|
25
26
|
*/
|
|
26
27
|
export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd, disabled, }: {
|
|
27
28
|
input: string;
|
|
28
29
|
onChangeInput: (input: string) => void;
|
|
29
|
-
/**
|
|
30
|
+
/** The source's maximum; a value past it lands and the screen names it. */
|
|
30
31
|
limitUsd?: string;
|
|
31
32
|
/** Locks the value: every numpad/chip commit rejects instead of applying. */
|
|
32
33
|
disabled?: boolean;
|
|
33
34
|
}): {
|
|
34
35
|
hasWarning: boolean;
|
|
35
|
-
refusal: AmountRefusal;
|
|
36
|
-
isLocked: boolean;
|
|
37
36
|
feedbackStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
38
37
|
transform: ({
|
|
39
38
|
translateX: number;
|
|
@@ -45,5 +44,6 @@ export declare function useGuardedAmountInput({ input, onChangeInput, limitUsd,
|
|
|
45
44
|
}>;
|
|
46
45
|
commitInput: (next: string) => void;
|
|
47
46
|
handleNumpadKey: (key: NumpadKey) => void;
|
|
47
|
+
pulseAmount: () => void;
|
|
48
48
|
};
|
|
49
49
|
//# sourceMappingURL=useGuardedAmountInput.d.ts.map
|