@funkit/connect-rn 7.0.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +76 -56
  3. package/dist/chunk-D64EJ57D.js +161 -0
  4. package/dist/chunk-D64EJ57D.js.map +7 -0
  5. package/dist/{chunk-P3OLDPDC.js → chunk-KZOSYNGV.js} +57 -192
  6. package/dist/chunk-KZOSYNGV.js.map +7 -0
  7. package/dist/{chunk-HRJNTNCV.js → chunk-SRVRWQO6.js} +5 -3
  8. package/dist/{chunk-HRJNTNCV.js.map → chunk-SRVRWQO6.js.map} +1 -1
  9. package/dist/clients/lighter.js +4 -2
  10. package/dist/clients/lighter.js.map +1 -1
  11. package/dist/clients/nado.js +5 -3
  12. package/dist/clients/nado.js.map +1 -1
  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 +2561 -2071
  25. package/dist/index.js.map +4 -4
  26. package/dist/src/components/Grabber.d.ts +3 -1
  27. package/dist/src/components/Grabber.d.ts.map +1 -1
  28. package/dist/src/fiat/KycGlassBackdrop.d.ts.map +1 -1
  29. package/dist/src/fiat/quoteRefusal.d.ts +29 -6
  30. package/dist/src/fiat/quoteRefusal.d.ts.map +1 -1
  31. package/dist/src/fiat/useFiatDirectDelivery.d.ts +5 -4
  32. package/dist/src/fiat/useFiatDirectDelivery.d.ts.map +1 -1
  33. package/dist/src/fiat/useIdentityAssertion.d.ts +35 -0
  34. package/dist/src/fiat/useIdentityAssertion.d.ts.map +1 -0
  35. package/dist/src/fiat/useQuoteableCeiling.d.ts +28 -0
  36. package/dist/src/fiat/useQuoteableCeiling.d.ts.map +1 -0
  37. package/dist/src/flow/DepositReceivedToast.d.ts +2 -2
  38. package/dist/src/flow/DepositReceivedToast.d.ts.map +1 -1
  39. package/dist/src/flow/FeeDetailsSheet.d.ts.map +1 -1
  40. package/dist/src/flow/FiatDepositAmountStep.d.ts.map +1 -1
  41. package/dist/src/flow/FlowSheet.d.ts +14 -20
  42. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  43. package/dist/src/flow/FunkitFlowProvider.d.ts +9 -4
  44. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  45. package/dist/src/flow/SheetMaterial.d.ts +11 -0
  46. package/dist/src/flow/SheetMaterial.d.ts.map +1 -0
  47. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  48. package/dist/src/flow/depositFlowConfig.d.ts +21 -5
  49. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  50. package/dist/src/flow/flowError.d.ts +11 -1
  51. package/dist/src/flow/flowError.d.ts.map +1 -1
  52. package/dist/src/flow/flowStepHeight.d.ts +19 -0
  53. package/dist/src/flow/flowStepHeight.d.ts.map +1 -0
  54. package/dist/src/flow/validateClientMetadata.d.ts +2 -3
  55. package/dist/src/flow/validateClientMetadata.d.ts.map +1 -1
  56. package/dist/src/hooks/useSheetFade.d.ts +11 -0
  57. package/dist/src/hooks/useSheetFade.d.ts.map +1 -0
  58. package/dist/src/identity/IdentityContext.d.ts +28 -4
  59. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  60. package/dist/src/logging/debugBridge.d.ts +2 -0
  61. package/dist/src/logging/debugBridge.d.ts.map +1 -1
  62. package/dist/src/native/glassEffect.d.ts +18 -0
  63. package/dist/src/native/glassEffect.d.ts.map +1 -0
  64. package/dist/src/providers/FunkitProvider.d.ts +6 -8
  65. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  66. package/dist/src/providers/NativeCapabilitiesContext.d.ts +12 -11
  67. package/dist/src/providers/NativeCapabilitiesContext.d.ts.map +1 -1
  68. package/dist/src/providers/useFunkitCheckout.d.ts +7 -3
  69. package/dist/src/providers/useFunkitCheckout.d.ts.map +1 -1
  70. package/dist/src/screens/DepositAmountScreen.d.ts.map +1 -1
  71. package/dist/src/screens/FeeDetailsScreen.d.ts +2 -5
  72. package/dist/src/screens/FeeDetailsScreen.d.ts.map +1 -1
  73. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -1
  74. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -1
  75. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  76. package/dist/src/swapped/SwappedWebView.d.ts.map +1 -1
  77. package/dist/src/swapped/SwappedWithdrawScreen.d.ts +3 -1
  78. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  79. package/dist/src/swapped/paymentNavigation.d.ts +21 -0
  80. package/dist/src/swapped/paymentNavigation.d.ts.map +1 -0
  81. package/dist/src/transfer/hooks/useDepositRecipient.d.ts +2 -2
  82. package/dist/src/transfer/hooks/useDepositRecipient.d.ts.map +1 -1
  83. package/dist/src/transfer/hooks/useTokenTransfer.d.ts +3 -2
  84. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  85. package/dist/src/transfer/hooks/useTransferInit.d.ts +2 -3
  86. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  87. package/dist/src/utils/motion.d.ts +10 -0
  88. package/dist/src/utils/motion.d.ts.map +1 -1
  89. package/dist/src/withdrawal/fiatTargetDecimals.d.ts +13 -0
  90. package/dist/src/withdrawal/fiatTargetDecimals.d.ts.map +1 -0
  91. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -1
  92. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  93. package/expo-module.config.json +6 -0
  94. package/ios/FunkitGlassEffect.podspec +23 -0
  95. package/ios/FunkitGlassEffectModule.swift +126 -0
  96. package/ios/GlassStyle.swift +52 -0
  97. package/ios/GlassView.swift +305 -0
  98. package/package.json +15 -4
  99. package/dist/chunk-P3OLDPDC.js.map +0 -7
@@ -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"}
@@ -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"}
@@ -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,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,2BAA2B,CACzC,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,OAAO,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,QAa1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,aAAa,EACpB,CAAC,EAAE,SAAS,EACZ,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM;AACzB,qEAAqE;AACrE,GAAG,CAAC,EAAE,MAAM,QA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;;;;;;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"}
@@ -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,CAAA;IACvB,yFAAyF;IACzF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAsBD,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EAC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AkB,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,CAAA;IACT,sBAAsB;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAID,MAAM,WAAW,OAAO;IACtB,QAAQ,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IACjC,IAAI,EAAE,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C/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"}
@@ -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
  *
@@ -1 +1 @@
1
- {"version":3,"file":"depositFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/depositFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3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E,qBAAqB,CAAA;IACtC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,0EAA0E;IAC1E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;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"}
@@ -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;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;AAeD,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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,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"}
@@ -1,8 +1,7 @@
1
1
  import type { DepositClientMetadata } from './depositFlowConfig';
2
2
  /**
3
- * Drops invalid clientMetadata fields instead of failing the whole flow — a
4
- * malformed externalUserId/clientTransactionId shouldn't block a deposit the
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;AAEhE;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,qBAAqB,GAAG,SAAS,GAChD,qBAAqB,GAAG,SAAS,CAqCnC"}
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"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Opacity that rides the enclosing gorhom sheet's rise: opaque with the sheet
3
+ * head at the top of the screen, gone once it has dropped a quarter of the way
4
+ * down (the sheet covering ~75%), tracking the drag in between. Outside a sheet
5
+ * (Storybook, tests, an embedded screen) there is nothing to track and the
6
+ * style is a static full opacity.
7
+ */
8
+ export declare function useSheetFade(enabled?: boolean): import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
9
+ opacity: number;
10
+ }>;
11
+ //# sourceMappingURL=useSheetFade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSheetFade.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSheetFade.ts"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,OAAO,UAAO;;GAW1C"}
@@ -18,8 +18,21 @@ export interface FunkitIdentity {
18
18
  prefillFiatEmail?: string;
19
19
  /** See {@link FunkitConfig.hideCryptoDeposit}. Defaulted to false here. */
20
20
  hideCryptoDeposit: boolean;
21
- /** See {@link FunkitConfig.getIdentityAssertion}. */
22
- getIdentityAssertion?: () => Promise<string>;
21
+ /**
22
+ * Mints the identity assertion; resolved from
23
+ * {@link FunkitConfig.getIdentityAssertionRef} at call time.
24
+ */
25
+ getIdentityAssertion?: GetIdentityAssertion;
26
+ }
27
+ /** Mints a short-lived JWT asserting who the current user is. */
28
+ export type GetIdentityAssertion = () => Promise<string>;
29
+ /**
30
+ * A ref holding the minter, as `useRef(async () => …)` returns it. Passing the
31
+ * ref rather than the function keeps the provider config referentially stable
32
+ * across the host's renders.
33
+ */
34
+ export interface IdentityAssertionRef {
35
+ readonly current: GetIdentityAssertion | null | undefined;
23
36
  }
24
37
  /**
25
38
  * Host-facing identity config, mirroring the identity-relevant subset of the
@@ -62,8 +75,19 @@ export interface FunkitConfig {
62
75
  * Read through `useFunkitBranding`, not identity.
63
76
  */
64
77
  hideAttribution?: boolean;
65
- /** Mints the short-lived identity assertion required by fiat requests. */
66
- getIdentityAssertion?: () => Promise<string>;
78
+ /**
79
+ * Stable ref to the function minting the short-lived identity assertion
80
+ * every fiat request carries. Required when `DepositFlowConfig.methods`
81
+ * names a fiat method. The minter must reject with a `code` of
82
+ * `SESSION_EXPIRED`, `ACCOUNT_INELIGIBLE` or `TRANSIENT`.
83
+ *
84
+ * `current` is captured with the rest of the identity when a flow opens
85
+ * and held for its life, so an assertion can never speak for a user the
86
+ * open flow is not. Point it at another user only between flows.
87
+ */
88
+ getIdentityAssertionRef?: IdentityAssertionRef;
89
+ /** @deprecated Pass {@link getIdentityAssertionRef}. */
90
+ getIdentityAssertion?: GetIdentityAssertion;
67
91
  }
68
92
  /**
69
93
  * Stands in for `walletAddress` when the host supplies none. Not a valid
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityContext.d.ts","sourceRoot":"","sources":["../../../src/identity/IdentityContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAA;AAIjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,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,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAQ1E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAchB;AAkBD,wBAAgB,sBAAsB,CAAC,EACrC,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,QAAQ,EAAE,cAAc,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;CACpB,+BAMA;AAED,wBAAgB,iBAAiB,IAAI,cAAc,CAQlD"}
@@ -8,4 +8,6 @@ export interface FunkitTraceInfo {
8
8
  export declare function getFunkitTraceInfo(): FunkitTraceInfo;
9
9
  /** Send buffered records now rather than waiting out the batch timer. */
10
10
  export declare function flushFunkitLogs(): void;
11
+ /** Route host-side debug events through the configured Funkit log pipeline. */
12
+ export declare function logFunkitEvent(title: string, data?: Record<string, unknown>): void;
11
13
  //# sourceMappingURL=debugBridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"debugBridge.d.ts","sourceRoot":"","sources":["../../../src/logging/debugBridge.ts"],"names":[],"mappings":"AAEA,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED,yEAAyE;AACzE,wBAAgB,eAAe,IAAI,IAAI,CAEtC"}
1
+ {"version":3,"file":"debugBridge.d.ts","sourceRoot":"","sources":["../../../src/logging/debugBridge.ts"],"names":[],"mappings":"AAEA,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,mEAAmE;IACnE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAED,yEAAyE;AACzE,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,+EAA+E;AAC/E,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,IAAI,CAEN"}
@@ -0,0 +1,18 @@
1
+ import type { ComponentType } from 'react';
2
+ import type { ColorValue, ViewProps } from 'react-native';
3
+ export type GlassStyle = 'clear' | 'regular' | 'none';
4
+ export interface GlassViewProps extends ViewProps {
5
+ glassEffectStyle?: GlassStyle;
6
+ tintColor?: ColorValue;
7
+ isInteractive?: boolean;
8
+ colorScheme?: 'auto' | 'light' | 'dark';
9
+ /**
10
+ * Corners follow the enclosing container — the screen, for a full-bleed view
11
+ * (iOS 26 `containerConcentric`). Overrides the fixed radius props.
12
+ */
13
+ concentricCorners?: boolean;
14
+ concentricMinimumRadius?: number;
15
+ }
16
+ export declare const isLiquidGlassAvailable: boolean;
17
+ export declare const GlassView: ComponentType<GlassViewProps> | null;
18
+ //# sourceMappingURL=glassEffect.d.ts.map