@funkit/connect-rn 7.0.0 → 8.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.
Files changed (149) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +76 -56
  3. package/dist/{chunk-P3OLDPDC.js → chunk-4YNYOJJK.js} +217 -192
  4. package/dist/chunk-4YNYOJJK.js.map +7 -0
  5. package/dist/{chunk-HRJNTNCV.js → chunk-75U7A2Q5.js} +29 -11
  6. package/dist/chunk-75U7A2Q5.js.map +7 -0
  7. package/dist/chunk-D64EJ57D.js +161 -0
  8. package/dist/chunk-D64EJ57D.js.map +7 -0
  9. package/dist/clients/lighter.js +4 -2
  10. package/dist/clients/lighter.js.map +1 -1
  11. package/dist/clients/nado.js +6 -4
  12. package/dist/clients/nado.js.map +2 -2
  13. package/dist/clients/solana/index.d.ts +5 -0
  14. package/dist/clients/solana/index.d.ts.map +1 -0
  15. package/dist/clients/solana/solanaWithdrawal.d.ts +20 -0
  16. package/dist/clients/solana/solanaWithdrawal.d.ts.map +1 -0
  17. package/dist/clients/solana/useSolanaWithdrawal.d.ts +13 -0
  18. package/dist/clients/solana/useSolanaWithdrawal.d.ts.map +1 -0
  19. package/dist/clients/solana.d.ts +1 -0
  20. package/dist/clients/solana.js +87 -0
  21. package/dist/clients/solana.js.map +7 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +20258 -18583
  25. package/dist/index.js.map +4 -4
  26. package/dist/src/components/AssetGrid.d.ts.map +1 -1
  27. package/dist/src/components/Grabber.d.ts +3 -1
  28. package/dist/src/components/Grabber.d.ts.map +1 -1
  29. package/dist/src/components/InfoTooltip.d.ts +28 -0
  30. package/dist/src/components/InfoTooltip.d.ts.map +1 -0
  31. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
  32. package/dist/src/fiat/SurfaceSlot.d.ts +8 -2
  33. package/dist/src/fiat/SurfaceSlot.d.ts.map +1 -1
  34. package/dist/src/fiat/providers/moonpay.d.ts.map +1 -1
  35. package/dist/src/fiat/quoteRefusal.d.ts +29 -6
  36. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
  37. package/dist/src/fiat/useFiatDirectDelivery.d.ts +5 -4
  38. package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -1
  39. package/dist/src/fiat/useIdentityAssertion.d.ts +35 -0
  40. package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -0
  41. package/dist/src/fiat/useQuoteableCeiling.d.ts +28 -0
  42. package/dist/src/fiat/useQuoteableCeiling.d.ts.map +1 -0
  43. package/dist/src/flow/AddressCopiedToast.d.ts +3 -1
  44. package/dist/src/flow/AddressCopiedToast.d.ts.map +1 -1
  45. package/dist/src/flow/DepositAssetPicker.d.ts +11 -0
  46. package/dist/src/flow/DepositAssetPicker.d.ts.map +1 -0
  47. package/dist/src/flow/DepositFlowContent.d.ts +1 -1
  48. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  49. package/dist/src/flow/DepositReceivedToast.d.ts +2 -2
  50. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
  51. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  52. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  53. package/dist/src/flow/FlowSheet.d.ts +14 -20
  54. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  55. package/dist/src/flow/FunkitFlowProvider.d.ts +9 -4
  56. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  57. package/dist/src/flow/SheetMaterial.d.ts +11 -0
  58. package/dist/src/flow/SheetMaterial.d.ts.map +1 -0
  59. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  60. package/dist/src/flow/depositFlowConfig.d.ts +24 -5
  61. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  62. package/dist/src/flow/flowError.d.ts +11 -1
  63. package/dist/src/flow/flowError.d.ts.map +1 -1
  64. package/dist/src/flow/flowStepHeight.d.ts +19 -0
  65. package/dist/src/flow/flowStepHeight.d.ts.map +1 -0
  66. package/dist/src/flow/isLockedDeposit.d.ts +6 -0
  67. package/dist/src/flow/isLockedDeposit.d.ts.map +1 -0
  68. package/dist/src/flow/useCopiedToast.d.ts +1 -1
  69. package/dist/src/flow/useCopiedToast.d.ts.map +1 -1
  70. package/dist/src/flow/validateClientMetadata.d.ts +2 -3
  71. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
  72. package/dist/src/hooks/useSheetFade.d.ts +11 -0
  73. package/dist/src/hooks/useSheetFade.d.ts.map +1 -0
  74. package/dist/src/identity/IdentityContext.d.ts +28 -4
  75. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  76. package/dist/src/logging/debugBridge.d.ts +2 -0
  77. package/dist/src/logging/debugBridge.d.ts.map +1 -1
  78. package/dist/src/native/glassEffect.d.ts +18 -0
  79. package/dist/src/native/glassEffect.d.ts.map +1 -0
  80. package/dist/src/providers/FunkitProvider.d.ts +6 -8
  81. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  82. package/dist/src/providers/NativeCapabilitiesContext.d.ts +12 -11
  83. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  84. package/dist/src/providers/useFunkitCheckout.d.ts +7 -3
  85. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  86. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  87. package/dist/src/screens/FeeDetailsScreen.d.ts +2 -5
  88. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  89. package/dist/src/screens/LockedTransferCryptoScreen.d.ts +19 -0
  90. package/dist/src/screens/LockedTransferCryptoScreen.d.ts.map +1 -0
  91. package/dist/src/screens/SelectChainScreen.d.ts +1 -0
  92. package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
  93. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts +0 -8
  94. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -1
  95. package/dist/src/screens/TokenAndChainPickerScreen.d.ts +16 -0
  96. package/dist/src/screens/TokenAndChainPickerScreen.d.ts.map +1 -0
  97. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
  98. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
  99. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  100. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  101. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  102. package/dist/src/swapped/SwappedWithdrawScreen.d.ts +3 -1
  103. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  104. package/dist/src/swapped/paymentNavigation.d.ts +21 -0
  105. package/dist/src/swapped/paymentNavigation.d.ts.map +1 -0
  106. package/dist/src/transfer/clipboard.d.ts +2 -0
  107. package/dist/src/transfer/clipboard.d.ts.map +1 -1
  108. package/dist/src/transfer/depositAssets.d.ts +35 -0
  109. package/dist/src/transfer/depositAssets.d.ts.map +1 -0
  110. package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts +7 -6
  111. package/dist/src/transfer/hooks/useCopyDepositAddress.d.ts.map +1 -1
  112. package/dist/src/transfer/hooks/useDepositAssets.d.ts +14 -0
  113. package/dist/src/transfer/hooks/useDepositAssets.d.ts.map +1 -0
  114. package/dist/src/transfer/hooks/useDepositRecipient.d.ts +2 -2
  115. package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -1
  116. package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts +1 -5
  117. package/dist/src/transfer/hooks/useFiatExchangeRates.d.ts.map +1 -1
  118. package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts +10 -0
  119. package/dist/src/transfer/hooks/useLockedTokenAmount.d.ts.map +1 -0
  120. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -2
  121. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  122. package/dist/src/transfer/hooks/useTransferInit.d.ts +2 -3
  123. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  124. package/dist/src/transfer/lockedTokenAmount.d.ts +9 -0
  125. package/dist/src/transfer/lockedTokenAmount.d.ts.map +1 -0
  126. package/dist/src/transfer/supportedTokens.d.ts +5 -0
  127. package/dist/src/transfer/supportedTokens.d.ts.map +1 -1
  128. package/dist/src/utils/assetGrid.d.ts +5 -0
  129. package/dist/src/utils/assetGrid.d.ts.map +1 -1
  130. package/dist/src/utils/motion.d.ts +10 -0
  131. package/dist/src/utils/motion.d.ts.map +1 -1
  132. package/dist/src/utils/tokenAndChainPicker.d.ts +15 -0
  133. package/dist/src/utils/tokenAndChainPicker.d.ts.map +1 -0
  134. package/dist/src/withdrawal/fiatTargetDecimals.d.ts +13 -0
  135. package/dist/src/withdrawal/fiatTargetDecimals.d.ts.map +1 -0
  136. package/dist/src/withdrawal/receiveDestination.d.ts +0 -7
  137. package/dist/src/withdrawal/receiveDestination.d.ts.map +1 -1
  138. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -1
  139. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +15 -2
  140. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -1
  141. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  142. package/expo-module.config.json +6 -0
  143. package/ios/FunkitGlassEffect.podspec +23 -0
  144. package/ios/FunkitGlassEffectModule.swift +126 -0
  145. package/ios/GlassStyle.swift +52 -0
  146. package/ios/GlassView.swift +305 -0
  147. package/package.json +17 -5
  148. package/dist/chunk-HRJNTNCV.js.map +0 -7
  149. package/dist/chunk-P3OLDPDC.js.map +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"AssetGrid.d.ts","sourceRoot":"","sources":["../../../src/components/AssetGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAetC,MAAM,WAAW,kBAAkB;IACjC,q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AAO,EAAE,MAAM,IAAI,CAAA;IACnB,2BAA2B;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,iBAAiB;IAChC,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,cAAc;IAC7B,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,kBAAkB,EAAE,CAAA;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC7B;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAqDnE;AAED,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAmB,EACnB,OAAO,EACP,kBAAkB,GACnB,EAAE,kBAAkB,+BAkFpB"}
@@ -3,6 +3,8 @@ export interface GrabberProps {
3
3
  width?: number;
4
4
  /** Distance from the sheet's top edge. */
5
5
  top?: number;
6
+ /** Fade with the sheet's rise — see {@link useSheetFade}. */
7
+ fadeWithSheet?: boolean;
6
8
  }
7
9
  /**
8
10
  * The bottom-sheet drag affordance. Absolutely positioned so each top bar lays
@@ -10,5 +12,5 @@ export interface GrabberProps {
10
12
  * `handleComponent={null}` to gorhom, or its default handle draws a second
11
13
  * grabber above it.
12
14
  */
13
- export declare function Grabber({ width, top, }: GrabberProps): import("react").JSX.Element;
15
+ export declare function Grabber({ width, top, fadeWithSheet, }: GrabberProps): import("react").JSX.Element;
14
16
  //# sourceMappingURL=Grabber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AASA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAqB,EACrB,GAAiB,GAClB,EAAE,YAAY,+BAiBd"}
1
+ {"version":3,"file":"Grabber.d.ts","sourceRoot":"","sources":["../../../src/components/Grabber.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAqB,EACrB,GAAiB,EACjB,aAAqB,GACtB,EAAE,YAAY,+BAkBd"}
@@ -0,0 +1,28 @@
1
+ /** Where the trigger sits on screen: the arrow points at `x`, the bubble hangs off `top` or `bottom`. */
2
+ interface Anchor {
3
+ x: number;
4
+ top: number;
5
+ bottom: number;
6
+ }
7
+ interface Placement {
8
+ side: 'above' | 'below';
9
+ /** Screen-space `top` of the box the bubble grows out of. */
10
+ top: number;
11
+ }
12
+ /**
13
+ * Above the trigger by default, as the Figma tip is drawn; below it when a tall
14
+ * body (translated copy, large text, a short landscape window) would run off
15
+ * the top. Pinned to the top edge when neither side has room.
16
+ */
17
+ export declare function placeTooltip({ anchor, bodyHeight, topEdge, bottomEdge, }: {
18
+ anchor: Anchor;
19
+ bodyHeight: number;
20
+ topEdge: number;
21
+ bottomEdge: number;
22
+ }): Placement;
23
+ export declare function InfoTooltip({ title, description, }: {
24
+ title: string;
25
+ description: string;
26
+ }): import("react").JSX.Element;
27
+ export {};
28
+ //# sourceMappingURL=InfoTooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfoTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/InfoTooltip.tsx"],"names":[],"mappings":"AAeA,yGAAyG;AACzG,UAAU,MAAM;IACd,CAAC,EAAE,MAAM,CAAA;IACT,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,SAAS;IACjB,IAAI,EAAE,OAAO,GAAG,OAAO,CAAA;IACvB,6DAA6D;IAC7D,GAAG,EAAE,MAAM,CAAA;CACZ;AAMD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,GACX,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB,GAAG,SAAS,CAUZ;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;CACpB,+BAsIA"}
@@ -1 +1 @@
1
- {"version":3,"file":"KycGlassBackdrop.d.ts","sourceRoot":"","sources":["../../../src/fiat/KycGlassBackdrop.tsx"],"names":[],"mappings":"AAMA,yEAAyE;AACzE,wBAAgB,gBAAgB,gCAmB/B"}
1
+ {"version":3,"file":"KycGlassBackdrop.d.ts","sourceRoot":"","sources":["../../../src/fiat/KycGlassBackdrop.tsx"],"names":[],"mappings":"AAMA,yEAAyE;AACzE,wBAAgB,gBAAgB,gCAiB/B"}
@@ -1,6 +1,6 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import type { PillButtonSize } from '../components/PillButton';
3
- export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, covered, onReadyChange, }: {
3
+ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, covered, onReadyChange, onReadyTimeout, readyCeilingMs, }: {
4
4
  /** Announced while the cover is up; the design draws no copy on it. */
5
5
  label: string;
6
6
  size: PillButtonSize;
@@ -16,6 +16,10 @@ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, co
16
16
  * what is gone holds nothing back.
17
17
  */
18
18
  onReadyChange?: (ready: boolean) => void;
19
+ /** Ends an unresolved provider attempt instead of exposing its empty slot. */
20
+ onReadyTimeout?: () => void;
21
+ /** Override for provider probes that intentionally stay covered while they resolve. */
22
+ readyCeilingMs?: number;
19
23
  } & ({
20
24
  renderSurface: (onReady: () => void) => ReactNode;
21
25
  /** Unique per quote or retry so readiness cannot carry into another attempt. */
@@ -25,8 +29,10 @@ export declare function SurfaceSlot({ renderSurface, surfaceKey, label, size, co
25
29
  surfaceKey?: undefined;
26
30
  })): import("react").JSX.Element;
27
31
  /** Readiness and its timeout belong to this provider attempt, not the cover. */
28
- export declare function ProviderSurface({ renderSurface, onReady, }: {
32
+ export declare function ProviderSurface({ renderSurface, onReady, onReadyTimeout, readyCeilingMs, }: {
29
33
  renderSurface: (onReady: () => void) => ReactNode;
30
34
  onReady: () => void;
35
+ onReadyTimeout?: () => void;
36
+ readyCeilingMs?: number;
31
37
  }): ReactNode;
32
38
  //# sourceMappingURL=SurfaceSlot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SurfaceSlot.d.ts","sourceRoot":"","sources":["../../../src/fiat/SurfaceSlot.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAWd,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAU9D,wBAAgB,WAAW,CAAC,EAC1B,aAAa,EACb,UAAU,EACV,KAAK,EACL,IAAI,EACJ,OAAe,EACf,aAAa,GACd,EAAE;IACD,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,cAAc,CAAA;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC,GAAG,CACA;IACE,aA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EAAE,SAAS,CAAA;CAAE,CACxD,+BAgGA;AAED,gFAAgF;AAChF,wBAAgB,eAAe,CAAC,EAC9B,aAAa,EACb,OAAO,EACP,cAAc,EACd,cAAiC,GAClC,EAAE;IACD,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,IAAI,KAAK,SAAS,CAAA;IACjD,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,aAmCA"}
@@ -1 +1 @@
1
- {"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAmF/D,eAAO,MAAM,OAAO,EAAE,cAmCrB,CAAA"}
1
+ {"version":3,"file":"moonpay.d.ts","sourceRoot":"","sources":["../../../../src/fiat/providers/moonpay.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAkB,MAAM,WAAW,CAAA;AAmF/D,eAAO,MAAM,OAAO,EAAE,cAqCrB,CAAA"}
@@ -15,14 +15,37 @@ export interface QuoteRefusalAlert {
15
15
  message: string;
16
16
  }
17
17
  export declare function showPaymentUnavailableAlert(t: TFunction, applePay: boolean, scheme?: 'light' | 'dark'): void;
18
- export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark',
19
- /** The ceiling the refusing response reported, already formatted. */
20
- max?: string): void;
18
+ export declare function showQuoteRefusalAlert(error: FailureReason, t: TFunction, scheme?: 'light' | 'dark'): void;
21
19
  /** The error a step response carries back onto the quote, if it does. */
22
20
  export declare function quoteRefusal(stepResponse: FiatStepResponse | undefined): FailureReason | undefined;
23
- /** The ceiling a refusing response carries, when it re-presents the quote. */
24
- export declare function quoteRefusalLimit(stepResponse: FiatStepResponse | undefined): string | undefined;
25
- export declare function quoteRefusalAlert(error: FailureReason, t: TFunction, max?: string): QuoteRefusalAlert;
21
+ /**
22
+ * A refusal for asking to spend more than this buyer may.
23
+ *
24
+ * It belongs on the amount field, not in an alert. The server re-presents the
25
+ * quote with `limits.max` narrowed to the cap that refused, so the screen names
26
+ * the number and offers the way down to it — the same answer every other
27
+ * maximum gets (ENG-6302). An alert on top of that says it twice, in wording
28
+ * that is in none of the designs, and leaves the buyer to dismiss it before
29
+ * they can act on the ceiling underneath.
30
+ */
31
+ export declare function isOverLimit(error: FailureReason): boolean;
32
+ /**
33
+ * Whether the screen can actually name the cap an over-limit refusal carries.
34
+ *
35
+ * `isOverLimit` suppresses the alert because the amount field shows the ceiling
36
+ * instead, and the contract makes `limits.max` required on a `QUOTE`, so a
37
+ * ceiling is there to show. But the suppression and the recovery read different
38
+ * fields, and nothing in the types ties them together: a server that answered
39
+ * with a zero or unparseable max would silence the alert and leave the field
40
+ * offering the range that was just refused — no alert and no number.
41
+ *
42
+ * So the invariant is checked rather than trusted. Staying silent is only right
43
+ * when there is something to be silent about.
44
+ */
45
+ export declare function hasOverLimitCeiling(stepResponse: FiatStepResponse | undefined, refusedMaximum: {
46
+ amount: string;
47
+ } | undefined, amount: string): boolean;
48
+ export declare function quoteRefusalAlert(error: FailureReason, t: TFunction): QuoteRefusalAlert;
26
49
  /** Select the contact-screen recovery, if the refusal belongs on that screen. */
27
50
  export declare function contactRefusal(error: FailureReason | undefined): 'reverify' | 'change' | 'rate-limited' | undefined;
28
51
  //# sourceMappingURL=quoteRefusal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quoteRefusal.d.ts","sourceRoot":"","sources":["../../../src/fiat/quoteRefusal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,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M,QAa1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAe1B;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,YAAY,EAAE,gBAAgB,GAAG,SAAS,GACzC,aAAa,GAAG,SAAS,CAG3B;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAKzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,gBAAgB,GAAG,SAAS,EAC1C,cAAc,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,EAC9C,MAAM,EAAE,MAAM,GACb,OAAO,CAgBT;AAED,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,GACX,iBAAiB,CA2BnB;AAED,iFAAiF;AACjF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAWpD"}
@@ -1,14 +1,15 @@
1
- import { type CheckoutTokenTransferConfig } from '@funkit/connect-core';
2
- import type { DepositClientMetadata, FiatRailConfig } from '../flow/depositFlowConfig';
1
+ import type { DepositClientMetadata, DepositTargetConfig, FiatRailConfig } from '../flow/depositFlowConfig';
3
2
  export interface UseFiatDirectDeliveryParams {
4
3
  /** Destination chain/asset the deposit is headed for. */
5
- checkoutConfig: CheckoutTokenTransferConfig | undefined;
4
+ checkoutConfig: DepositTargetConfig | undefined;
6
5
  rail: FiatRailConfig;
7
6
  dynamicRoutingId: string | undefined;
8
7
  checkoutId: string;
9
8
  clientMetadata: DepositClientMetadata | undefined;
10
9
  /** Host fallback for local/dev clients that mint no address of their own. */
11
10
  depositAddressOverride?: string;
11
+ /** The verified assertion supplies the recipient on the backend. */
12
+ resolveOnBackend?: boolean;
12
13
  }
13
14
  export interface UseFiatDirectDeliveryResult {
14
15
  /** Where the order delivers the crypto; `undefined` until one resolves. */
@@ -28,5 +29,5 @@ export interface UseFiatDirectDeliveryResult {
28
29
  * do, so the order names the recipient instead — the crypto lands where it is
29
30
  * wanted rather than at a per-checkout address the backend has still to sweep.
30
31
  */
31
- export declare function useFiatDirectDelivery({ checkoutConfig, rail, dynamicRoutingId, checkoutId, clientMetadata, depositAddressOverride, }: UseFiatDirectDeliveryParams): UseFiatDirectDeliveryResult;
32
+ export declare function useFiatDirectDelivery({ checkoutConfig, rail, dynamicRoutingId, checkoutId, clientMetadata, depositAddressOverride, resolveOnBackend, }: UseFiatDirectDeliveryParams): UseFiatDirectDeliveryResult;
32
33
  //# sourceMappingURL=useFiatDirectDelivery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFiatDirectDelivery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatDirectDelivery.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,2BAA2B,EAKjC,MAAM,sBAAsB,CAAA;AAE7B,OAAO,KAAK,EACV,qBAAqB,EACrB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAOlC,MAAM,WAAW,2BAA2B;IAC1C,yDAAyD;IACzD,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,IAAI,EAAE,cAAc,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,QAAQ,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,sEAAsE;IACtE,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,cAAc,EACd,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,GACvB,EAAE,2BAA2B,GAAG,2BAA2B,CA4D3D"}
1
+ {"version":3,"file":"useFiatDirectDelivery.d.ts","sourceRoot":"","sources":["../../../src/fiat/useFiatDirectDelivery.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACf,MAAM,2BAA2B,CAAA;AAOlC,MAAM,WAAW,2BAA2B;IAC1C,yDAAyD;IACzD,cAAc,EAAE,mBAAmB,GAAG,SAAS,CAAA;IAC/C,IAAI,EAAE,cAAc,CAAA;IACpB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C,2EAA2E;IAC3E,cAAc,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,4EAA4E;IAC5E,QAAQ,EAAE,OAAO,CAAA;IACjB,iFAAiF;IACjF,mBAAmB,EAAE,KAAK,GAAG,SAAS,CAAA;IACtC,sEAAsE;IACtE,mBAAmB,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,cAAc,EACd,IAAI,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,gBAAwB,GACzB,EAAE,2BAA2B,GAAG,2BAA2B,CA8E3D"}
@@ -0,0 +1,35 @@
1
+ import type { TFunction } from 'i18next';
2
+ import type { GetIdentityAssertion } from '../identity/IdentityContext';
3
+ import type { DepositOutcomeReporter } from './depositOutcome';
4
+ /** What the fiat flow needs from the host's minter, wrapped for one user. */
5
+ export interface FiatIdentityAssertion {
6
+ getAssertion: GetIdentityAssertion;
7
+ /** The user the assertion is minted for; bounds the transport's cache. */
8
+ subject: string;
9
+ }
10
+ /**
11
+ * The host's identity minter as the fiat flow sees it: wrapped so each
12
+ * contract error code lands where the spec says, and read for the email the
13
+ * assertion actually carries.
14
+ *
15
+ * - `SESSION_EXPIRED` closes the flow and reports `session_expired`; the host
16
+ * re-authenticates and reopens.
17
+ * - `ACCOUNT_INELIGIBLE` reports `blocked` and is terminal for this account.
18
+ * - `TRANSIENT`, or no code, reports `identity_assertion_failed`; the
19
+ * existing retry UI is the recovery.
20
+ */
21
+ export declare function useIdentityAssertion({ getIdentityAssertion, userId, outcome, onCloseFlow, t, }: {
22
+ getIdentityAssertion: GetIdentityAssertion | undefined;
23
+ userId: string;
24
+ outcome: DepositOutcomeReporter;
25
+ onCloseFlow: () => void;
26
+ t: TFunction;
27
+ }): {
28
+ /** `undefined` while the host declares no identity. */
29
+ identityAssertion: FiatIdentityAssertion | undefined;
30
+ /** The `email` claim of an assertion minted for the current user. */
31
+ assertedEmail: string | undefined;
32
+ /** The minter refused this account; nothing in the flow recovers it. */
33
+ accountIneligible: boolean;
34
+ };
35
+ //# sourceMappingURL=useIdentityAssertion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIdentityAssertion.d.ts","sourceRoot":"","sources":["../../../src/fiat/useIdentityAssertion.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAIxC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAE9D,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,YAAY,EAAE,oBAAoB,CAAA;IAClC,0EAA0E;IAC1E,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,oBAAoB,EACpB,MAAM,EACN,OAAO,EACP,WAAW,EACX,CAAC,GACF,EAAE;IACD,oBAAoB,EAAE,oBAAoB,GAAG,SAAS,CAAA;IACtD,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,sBAAsB,CAAA;IAC/B,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,CAAC,EAAE,SAAS,CAAA;CACb,GAAG;IACF,uDAAuD;IACvD,iBAAiB,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACpD,qEAAqE;IACrE,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,wEAAwE;IACxE,iBAAiB,EAAE,OAAO,CAAA;CAC3B,CA8DA"}
@@ -0,0 +1,28 @@
1
+ import type { FunLogger, GetIdentityAssertion, RouteIdentity, RouteLimits } from '@funkit/connect-core';
2
+ /** The two fields of a discovered payment method this screen reads. */
3
+ interface PaymentMethodOption {
4
+ category?: string;
5
+ /** Optional: the backend answering this build may predate the field. */
6
+ maxQuoteableAmount?: string | null;
7
+ }
8
+ interface PaymentMethodsResponse {
9
+ paymentMethods?: PaymentMethodOption[];
10
+ }
11
+ /**
12
+ * The ceiling `paymentMethod` names, in the requested currency — the response
13
+ * carries none of its own. Another category's ceiling is not this buyer's, and
14
+ * anything absent, null or unreadable is no ceiling at all.
15
+ */
16
+ export declare function quoteableCeiling(response: PaymentMethodsResponse | undefined, paymentMethod: string, currency: string): RouteLimits | undefined;
17
+ /**
18
+ * What the buyer may still spend on this route, learned without asking for a
19
+ * price. Absent unless the answer is certain: a ceiling too high costs a round
20
+ * trip, one too low refuses a purchase the server would have served.
21
+ */
22
+ export declare function useQuoteableCeiling({ route, logger, getIdentityAssertion, }: {
23
+ route: RouteIdentity;
24
+ logger: FunLogger;
25
+ getIdentityAssertion?: GetIdentityAssertion;
26
+ }): RouteLimits | undefined;
27
+ export {};
28
+ //# sourceMappingURL=useQuoteableCeiling.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useQuoteableCeiling.d.ts","sourceRoot":"","sources":["../../../src/fiat/useQuoteableCeiling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,aAAa,EACb,WAAW,EACZ,MAAM,sBAAsB,CAAA;AAY7B,uEAAuE;AACvE,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACnC;AAED,UAAU,sBAAsB;IAC9B,cAAc,CAAC,EAAE,mBAAmB,EAAE,CAAA;CACvC;AAKD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,sBAAsB,GAAG,SAAS,EAC5C,aAAa,EAAE,MAAM,EACrB,QAAQ,EAAE,MAAM,GACf,WAAW,GAAG,SAAS,CAazB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,MAAM,EACN,oBAAoB,GACrB,EAAE;IACD,KAAK,EAAE,aAAa,CAAA;IACpB,MAAM,EAAE,SAAS,CAAA;IACjB,oBAAoB,CAAC,EAAE,oBAAoB,CAAA;CAC5C,GAAG,WAAW,GAAG,SAAS,CA2G1B"}
@@ -1,2 +1,4 @@
1
- export declare function AddressCopiedToast(): import("react").JSX.Element;
1
+ export declare function AddressCopiedToast({ label: suppliedLabel, }?: {
2
+ label?: string;
3
+ }): import("react").JSX.Element;
2
4
  //# sourceMappingURL=AddressCopiedToast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddressCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/AddressCopiedToast.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,kBAAkB,gCAgBjC"}
1
+ {"version":3,"file":"AddressCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/AddressCopiedToast.tsx"],"names":[],"mappings":"AAuCA,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EAAE,aAAa,GACrB,GAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAO,+BAgBzB"}
@@ -0,0 +1,11 @@
1
+ import type { AvailableChain } from '../transfer/availableChains';
2
+ import { type DepositAsset, type DepositSourceToken } from '../transfer/depositAssets';
3
+ export declare function DepositAssetPicker({ assets, chains, selectedToken, loading, onSelect, onClose, }: {
4
+ assets: DepositAsset[];
5
+ chains: AvailableChain[];
6
+ selectedToken?: DepositSourceToken;
7
+ loading: boolean;
8
+ onSelect: (token: DepositSourceToken, chain: AvailableChain) => void;
9
+ onClose: () => void;
10
+ }): import("react").JSX.Element;
11
+ //# sourceMappingURL=DepositAssetPicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositAssetPicker.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositAssetPicker.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AACjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,kBAAkB,EAGxB,MAAM,2BAA2B,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,MAAM,EACN,aAAa,EACb,OAAO,EACP,QAAQ,EACR,OAAO,GACR,EAAE;IACD,MAAM,EAAE,YAAY,EAAE,CAAA;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,aAAa,CAAC,EAAE,kBAAkB,CAAA;IAClC,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,CAAC,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IACpE,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,+BA0CA"}
@@ -14,7 +14,7 @@ export declare function FlowContent({ checkoutId, clientMetadata, config, curren
14
14
  config: DepositFlowConfig;
15
15
  current: FlowScreen | undefined;
16
16
  nav: FlowNav;
17
- onCopySuccess: () => void;
17
+ onCopySuccess: (label?: string) => void;
18
18
  /** Raises the SDK's deposit confirmation, which outlives this content. */
19
19
  showDepositToast: (receipt: DepositReceipt) => void;
20
20
  callbacks: DepositFlowCallbacks;
@@ -1 +1 @@
1
- {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AA8CxE,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6D/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAiSZ"}
1
+ {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAA;AAyDd,OAAO,KAAK,EAEV,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAG/D,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AA6E/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,cAAc,EACd,MAAM,EACN,OAAO,EACP,GAAG,EACH,aAAa,EACb,gBAAgB,EAChB,SAAS,GACV,EAAE;IACD,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,0EAA0E;IAC1E,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CAkYZ"}
@@ -10,8 +10,8 @@ export interface DepositReceivedToastProps {
10
10
  * - Owns no timer and no positioning: whatever mounts it decides both.
11
11
  * - Outlives the sheet — the flow closes on a cleared charge, and this is what
12
12
  * says the money arrived.
13
- * - Glass like GlassSheetBackground: a glass host owns the tint, so the fill
14
- * drops out under it rather than flattening the refraction.
13
+ * - Glass like GlassSheetBackground: glass owns the tint, so the fill drops
14
+ * out under it rather than flattening the refraction.
15
15
  */
16
16
  export declare function DepositReceivedToast({ title, detail, }: DepositReceivedToastProps): import("react").JSX.Element;
17
17
  //# sourceMappingURL=DepositReceivedToast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,yBAAyB;IACxC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,GACP,EAAE,yBAAyB,+BAgD3B"}
1
+ {"version":3,"file":"DepositReceivedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositReceivedToast.tsx"],"names":[],"mappings":"AAiCA,MAAM,WAAW,yBAAyB;IACxC,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAA;IACb,gDAAgD;IAChD,MAAM,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,GACP,EAAE,yBAAyB,+BA4C3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAeA"}
1
+ {"version":3,"file":"FeeDetailsSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FeeDetailsSheet.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,yBAAyB,CAAA;AAC1E,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,6BAA6B,CAAA;AAGpC,iEAAiE;AACjE,wBAAgB,kBAAkB,IAAI;IACpC,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,cAAc,EAAE,MAAM,IAAI,CAAA;CAC3B,CAWA;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,IAAI,EACJ,OAAO,GACR,EAAE;IACD,KAAK,EAAE,WAAW,CAAC,YAAY,CAAC,CAAA;IAChC,IAAI,EAAE,aAAa,EAAE,CAAA;IACrB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,+BAcA"}
@@ -1 +1 @@
1
- {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAkJA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAyF/D,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAqDA"}
1
+ {"version":3,"file":"FiatDepositAmountStep.d.ts","sourceRoot":"","sources":["../../../src/flow/FiatDepositAmountStep.tsx"],"names":[],"mappings":"AAqJA,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EAEpB,cAAc,EACf,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AA0F/D,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,IAAI,EACJ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,SAAS,EACT,gBAAgB,EAChB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,wBAAwB,CAAA;IAChC,IAAI,EAAE,cAAc,CAAA;IACpB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,mEAAmE;IACnE,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAAA;IACpC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,IAAI,CAAC,oBAAoB,EAAE,oBAAoB,GAAG,gBAAgB,CAAC,CAAA;IAC9E,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB,+BAqDA"}
@@ -1,19 +1,13 @@
1
- import { type ReactNode } from 'react';
2
1
  import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
2
+ import { type ReactNode } from 'react';
3
3
  /**
4
- * Host-supplied material laid under the sheet's overlay. The package ships no
5
- * material of its own — every option is native, so it would cost consumers a
6
- * rebuild and a peer-dep bump. Rendered into a full-bleed container, so
7
- * `flex: 1` or `StyleSheet.absoluteFill` fills the screen.
8
- *
9
- * A glass host (see `liquidGlass`) is handed the surface's `tint` and paints
10
- * it itself, because a refractive material has to tint what it refracts — a
11
- * fill laid over it would mute the refraction to a flat panel.
4
+ * Material laid under a translucent flow surface. The package ships its own
5
+ * (see SheetMaterial); a host replaces it through `FunkitProvider`. Rendered
6
+ * into a full-bleed container, so `StyleSheet.absoluteFill` fills the screen.
7
+ * The material carries its own tint; a glass one (see `liquidGlass`) has the
8
+ * surface paint no fill over it, which would mute the refraction to a panel.
12
9
  */
13
- export type BackdropBlurRenderer = (props: {
14
- /** The surface fill the material replaces, alpha included. */
15
- tint: string;
16
- }) => ReactNode;
10
+ export type BackdropBlurRenderer = () => ReactNode;
17
11
  export interface FlowSheetProps {
18
12
  isOpen: boolean;
19
13
  /**
@@ -44,8 +38,9 @@ export interface FlowSheetProps {
44
38
  /** Let the sheet reach the top of the screen for a screen that is a full window tall. */
45
39
  fullHeight?: boolean;
46
40
  /**
47
- * Draw the sheet as glass rather than a panel — the V2 deposit surface, which
48
- * the design lays over the host app. See {@link GlassSheetBackground}.
41
+ * Draw the sheet as bare material rather than a panel — the V2 deposit
42
+ * surface, which the design lays over the host app. See
43
+ * {@link GlassSheetBackground}.
49
44
  */
50
45
  glass?: boolean;
51
46
  }
@@ -63,12 +58,11 @@ export declare function FlowSheet({ isOpen, session, onClose, content, children,
63
58
  */
64
59
  export declare function FlowSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
65
60
  /**
66
- * {@link FlowSheetBackground} for the amount-first deposit surface, which the
67
- * design draws as glass over the host app. Pair with the host's
68
- * {@link BackdropBlurRenderer}: without a blur behind it the app shows through
69
- * sharp, which is legible but not what the design draws.
61
+ * {@link FlowSheetBackground} for the amount-first deposit surface: only the
62
+ * material, with no fill, shadow, or stroke of the sheet's own. Its corners
63
+ * are the material's, concentric with the device's.
70
64
  */
71
- export declare function GlassSheetBackground(props: BottomSheetBackgroundProps): import("react").JSX.Element;
65
+ export declare function GlassSheetBackground({ pointerEvents, style, }: BottomSheetBackgroundProps): import("react").JSX.Element;
72
66
  /**
73
67
  * {@link FlowSheetBackground} for a screen stacked over another sheet — the
74
68
  * country list (2531:8471). Glass rather than a panel, so the step it was
@@ -1 +1 @@
1
- {"version":3,"file":"FlowSheet.d.ts","sourceRoot":"","sources":["../../../src/flow/FlowSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EAIf,MAAM,OAAO,CAAA;AAEd,OAAO,EAEL,KAAK,0BAA0B,EAKhC,MAAM,sBAAsB,CAAA;AAiB7B;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE;IACzC,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;CACb,KAAK,SAAS,CAAA;AAEf,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,OAAO,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,kDAAkD;IAClD,OAAO,EAAE,SAAS,CAAA;IAClB,yDAAyD;IACzD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,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AAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,aAAqB,EACrB,UAAkB,EAClB,KAAa,GACd,EAAE,cAAc,+BAgLhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,0BAA0B,+BAEpE;AAaD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAoB5B;AAWD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B,+BASvE"}
@@ -6,8 +6,13 @@ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawal
6
6
  import type { StripeOnrampConfig } from '../fiat/providers/useStripeOnrampClient';
7
7
  export type FlowScreen = 'depositAmount' | 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawAmount' | 'withdrawAddress' | 'withdrawReceiveToken' | 'withdrawComplete';
8
8
  interface FunkitFlowContextValue {
9
- /** Open the managed deposit flow at the Add money screen. */
10
- beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => void;
9
+ /**
10
+ * Open the managed deposit flow. Resolves once the sheet is presenting. A
11
+ * config that cannot open throws {@link FunkitMisconfiguredError} before any
12
+ * promise exists, so `await beginDeposit()` and a bare call both see it at
13
+ * the tap.
14
+ */
15
+ beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => Promise<void>;
11
16
  /** Open the managed withdrawal flow at the payout-method screen. */
12
17
  beginWithdrawal: (config: WithdrawalFlowConfig, callbacks?: WithdrawalFlowCallbacks) => void;
13
18
  /** Close the flow. */
@@ -38,9 +43,9 @@ export declare function FunkitFlowProvider({ children, copyToClipboard, pasteFro
38
43
  copyToClipboard?: ClipboardWriter;
39
44
  /** Host clipboard-read override; defaults to the bare-RN clipboard peer. */
40
45
  pasteFromClipboard?: ClipboardReader;
41
- /** Host blur under the sheet's overlay. See {@link BackdropBlurRenderer}. */
46
+ /** Host replacement for the sheet material. See {@link BackdropBlurRenderer}. */
42
47
  renderBackdropBlur?: BackdropBlurRenderer;
43
- /** Set when that renderer returns iOS 26 Liquid Glass rather than a blur. */
48
+ /** Set with a replacement that is iOS 26 Liquid Glass rather than a blur. */
44
49
  liquidGlass?: boolean;
45
50
  /** Stripe account config; the client is built from it here. */
46
51
  stripeOnramp?: StripeOnrampConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AAMA,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AAId,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EAIrB,MAAM,uBAAuB,CAAA;AAG9B,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAA;AAS5B,OAAO,EAAE,KAAK,oBAAoB,EAAa,MAAM,aAAa,CAAA;AAOlE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,wBAAwB,CAAA;AAG/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA;AAEjF,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,UAAU,GACV,UAAU,GACV,SAAS,GACT,gBAAgB,GAChB,gBAAgB,GAChB,iBAAiB,GACjB,sBAAsB,GACtB,kBAAkB,CAAA;AAuDtB,UAAU,sBAAsB;IAC9B,6DAA6D;IAC7D,YAAY,EAAE,CACZ,MAAM,EAAE,iBAAiB,EACzB,SAAS,CAAC,EAAE,oBAAoB,KAC7B,IAAI,CAAA;IACT,oEAAoE;IACpE,eAAe,EAAE,CACf,MAAM,EAAE,oBAAoB,EAC5B,SAAS,CAAC,EAAE,uBAAuB,KAChC,IAAI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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,+BAmTA;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"}
@@ -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,CAkPZ"}
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"}
@@ -1,19 +1,26 @@
1
+ import type { SolanaAddress } from '@funkit/api-base';
1
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';
4
6
  import type { FunkitFlowError } from './flowError';
5
7
  export type { DynamicTargetAssetCandidate } from '@funkit/connect-core';
6
8
  /**
7
- * Host-supplied identifiers correlating this deposit with the host's own
8
- * transaction/user records. Passed through to `POST /eoa` alongside
9
- * `checkoutId`. Validated in `beginDeposit`: an invalid field is dropped
10
- * (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`.
11
12
  */
12
13
  export interface DepositClientMetadata {
13
14
  /** Must be a non-empty string. */
14
15
  externalUserId?: string;
15
16
  /** Must be a string representation of a positive, safe integer. */
16
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;
17
24
  }
18
25
  /**
19
26
  * Destination chain/asset for a deposit, plus the customer `getMinDepositUSD`
@@ -21,7 +28,16 @@ export interface DepositClientMetadata {
21
28
  * The web `FunkitCheckoutConfig` satisfies this structurally. Named once here so
22
29
  * the flow provider and `useFops` share exactly one shape.
23
30
  */
24
- export type DepositCheckoutConfig = CheckoutTokenTransferConfig & Pick<MinDepositTarget, 'getMinDepositUSD'>;
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
+ };
25
41
  /**
26
42
  * Resolve the active target-asset candidate from a list + routing id (RN-only).
27
43
  *
@@ -253,6 +269,9 @@ export interface DepositFlowConfig {
253
269
  /**
254
270
  * Locks the prefilled amount for the life of the attempt: typing,
255
271
  * quick-amount taps, back navigation, and remounts all leave it unchanged.
272
+ * On Transfer Crypto, shows a periodically refreshed source-token estimate of
273
+ * {@link initialAmount} with asset selection followed by its supported networks.
274
+ * This display estimate does not authorize or enforce a backend deposit cap.
256
275
  * Requires {@link initialAmount} — validated in `beginDeposit` and dropped
257
276
  * (logged, not thrown) if set without it.
258
277
  */
@@ -1 +1 @@
1
- {"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,YAAY,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAA;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IACpC,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mEAAmE;IACnE,mBAAmB,CAAC,EAAE,GAAG,MAAM,EAAE,CAAA;CAClC;AAED;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,2BAA2B,GAC7D,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAAA;AAE5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,2BAA2B,EAAE,GAAG,SAAS,EACrD,gBAAgB,EAAE,MAAM,GAAG,SAAS,GACnC,2BAA2B,GAAG,SAAS,CAczC;AAED;;;GAGG;AACH,MAAM,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AAC,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"}
@@ -8,8 +8,10 @@ export type FunkitFlowErrorCode =
8
8
  'cancelled'
9
9
  /** Fun will not serve this user, region, asset or amount. */
10
10
  | 'blocked'
11
- /** The host's `getIdentityAssertion` threw. */
11
+ /** The host's identity minter failed for a reason a retry may fix. */
12
12
  | 'identity_assertion_failed'
13
+ /** The host's session lapsed; it must sign the user in again, then reopen. */
14
+ | 'session_expired'
13
15
  /** The wallet refused to sign. */
14
16
  | 'signer_rejected'
15
17
  /** The config cannot open a flow; fix the integration. */
@@ -34,4 +36,12 @@ export declare class FunkitMisconfiguredError extends Error implements FunkitFlo
34
36
  readonly isFatal = true;
35
37
  constructor(message: string);
36
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;
37
47
  //# sourceMappingURL=flowError.d.ts.map
@@ -1 +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,+CAA+C;GAC7C,2BAA2B;AAC7B,kCAAkC;GAChC,iBAAiB;AACnB,0DAA0D;GACxD,eAAe;AACjB,2DAA2D;G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