@funkit/connect-rn 3.4.0 → 3.6.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 (111) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/dist/chunk-BNWA4HKO.js +1217 -0
  3. package/dist/chunk-BNWA4HKO.js.map +7 -0
  4. package/dist/clients/lighter/index.d.ts +5 -0
  5. package/dist/clients/lighter/index.d.ts.map +1 -0
  6. package/dist/clients/lighter/lighterFastWithdrawal.d.ts +42 -0
  7. package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -0
  8. package/dist/clients/lighter/lighterWithdrawalConfig.d.ts +70 -0
  9. package/dist/clients/lighter/lighterWithdrawalConfig.d.ts.map +1 -0
  10. package/dist/clients/lighter/useLighterUnstakedFee.d.ts +15 -0
  11. package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -0
  12. package/dist/clients/lighter/useLighterWithdrawal.d.ts +21 -0
  13. package/dist/clients/lighter/useLighterWithdrawal.d.ts.map +1 -0
  14. package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts +29 -0
  15. package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -0
  16. package/dist/clients/lighter.d.ts +1 -0
  17. package/dist/clients/lighter.js +323 -0
  18. package/dist/clients/lighter.js.map +7 -0
  19. package/dist/index.d.ts +2 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +4679 -3578
  22. package/dist/index.js.map +4 -4
  23. package/dist/src/components/AmountInput.d.ts +40 -0
  24. package/dist/src/components/AmountInput.d.ts.map +1 -0
  25. package/dist/src/components/RecipientAddressInput.d.ts +28 -0
  26. package/dist/src/components/RecipientAddressInput.d.ts.map +1 -0
  27. package/dist/src/components/WithdrawFeeSummary.d.ts +23 -0
  28. package/dist/src/components/WithdrawFeeSummary.d.ts.map +1 -0
  29. package/dist/src/flow/DepositFlowContent.d.ts +19 -0
  30. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -0
  31. package/dist/src/flow/FlowSheet.d.ts +10 -1
  32. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  33. package/dist/src/flow/FunkitFlowProvider.d.ts +12 -1
  34. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  35. package/dist/src/flow/WithdrawalFlowContent.d.ts +18 -0
  36. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -0
  37. package/dist/src/flow/guardHostCallbacks.d.ts +11 -0
  38. package/dist/src/flow/guardHostCallbacks.d.ts.map +1 -0
  39. package/dist/src/flow/useCopiedToast.d.ts +18 -0
  40. package/dist/src/flow/useCopiedToast.d.ts.map +1 -0
  41. package/dist/src/flow/useKeyboardHeight.d.ts +4 -10
  42. package/dist/src/flow/useKeyboardHeight.d.ts.map +1 -1
  43. package/dist/src/flow/withdrawalFlowConfig.d.ts +100 -9
  44. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  45. package/dist/src/geo/useUserIpInfo.d.ts.map +1 -1
  46. package/dist/src/identity/IdentityContext.d.ts +12 -2
  47. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  48. package/dist/src/logging/datadogHttpLogTransport.d.ts.map +1 -1
  49. package/dist/src/logging/serializeLogBatch.d.ts +9 -0
  50. package/dist/src/logging/serializeLogBatch.d.ts.map +1 -0
  51. package/dist/src/providers/FunkitProvider.d.ts +9 -1
  52. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  53. package/dist/src/screens/SelectDestinationScreen.d.ts +19 -0
  54. package/dist/src/screens/SelectDestinationScreen.d.ts.map +1 -0
  55. package/dist/src/screens/SelectSourceTokenScreen.d.ts +16 -0
  56. package/dist/src/screens/SelectSourceTokenScreen.d.ts.map +1 -0
  57. package/dist/src/screens/WithdrawCompleteScreen.d.ts +17 -0
  58. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -0
  59. package/dist/src/screens/WithdrawCryptoComplete.d.ts +16 -0
  60. package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -0
  61. package/dist/src/screens/WithdrawCryptoCta.d.ts +20 -0
  62. package/dist/src/screens/WithdrawCryptoCta.d.ts.map +1 -0
  63. package/dist/src/screens/WithdrawCryptoForm.d.ts +28 -0
  64. package/dist/src/screens/WithdrawCryptoForm.d.ts.map +1 -0
  65. package/dist/src/screens/WithdrawCryptoScreen.d.ts +3 -1
  66. package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +1 -1
  67. package/dist/src/swapped/SwappedScreen.d.ts.map +1 -1
  68. package/dist/src/swapped/SwappedScreenShell.d.ts +2 -1
  69. package/dist/src/swapped/SwappedScreenShell.d.ts.map +1 -1
  70. package/dist/src/swapped/SwappedWithdrawScreen.d.ts.map +1 -1
  71. package/dist/src/theme/buildFunkitTheme.d.ts +1 -0
  72. package/dist/src/theme/buildFunkitTheme.d.ts.map +1 -1
  73. package/dist/src/theme/restyle.d.ts +33 -0
  74. package/dist/src/theme/restyle.d.ts.map +1 -1
  75. package/dist/src/theme/toRestyleTheme.d.ts +3 -0
  76. package/dist/src/theme/toRestyleTheme.d.ts.map +1 -1
  77. package/dist/src/theme/tokens.d.ts +6 -0
  78. package/dist/src/theme/tokens.d.ts.map +1 -1
  79. package/dist/src/transfer/availableChains.d.ts.map +1 -1
  80. package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts +23 -0
  81. package/dist/src/transfer/hooks/useLighterDepositRecipientOverride.d.ts.map +1 -0
  82. package/dist/src/transfer/hooks/useTransferInit.d.ts +3 -2
  83. package/dist/src/transfer/hooks/useTransferInit.d.ts.map +1 -1
  84. package/dist/src/utils/chainDisplay.d.ts +8 -0
  85. package/dist/src/utils/chainDisplay.d.ts.map +1 -0
  86. package/dist/src/utils/customers.d.ts +1 -0
  87. package/dist/src/utils/customers.d.ts.map +1 -1
  88. package/dist/src/withdrawal/flatFee.d.ts +9 -0
  89. package/dist/src/withdrawal/flatFee.d.ts.map +1 -0
  90. package/dist/src/withdrawal/sourceToken.d.ts +17 -0
  91. package/dist/src/withdrawal/sourceToken.d.ts.map +1 -0
  92. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +44 -0
  93. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -0
  94. package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts +42 -0
  95. package/dist/src/withdrawal/useCryptoWithdrawalQuote.d.ts.map +1 -0
  96. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts +24 -0
  97. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -0
  98. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts +13 -0
  99. package/dist/src/withdrawal/useSourceTokenDecimals.d.ts.map +1 -0
  100. package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts +32 -0
  101. package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts.map +1 -0
  102. package/dist/src/withdrawal/useWithdrawalExecution.d.ts.map +1 -1
  103. package/dist/src/withdrawal/useWithdrawalRisk.d.ts +16 -0
  104. package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -0
  105. package/dist/src/withdrawal/useWithdrawalStatus.d.ts +31 -0
  106. package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -0
  107. package/dist/src/withdrawal/validation.d.ts +48 -0
  108. package/dist/src/withdrawal/validation.d.ts.map +1 -0
  109. package/package.json +7 -3
  110. package/dist/src/withdrawal/publicClient.d.ts +0 -10
  111. package/dist/src/withdrawal/publicClient.d.ts.map +0 -1
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Keep only what a decimal amount can contain: digits and a single decimal
3
+ * point. Normalised rather than trusted — a `decimal-pad` emits the locale's
4
+ * separator (`,` across much of Europe) and a paste bypasses the keypad.
5
+ *
6
+ * Separators are read by shape, not by locale, so `1.000,50` and `1,000.50`
7
+ * both give 1000.50:
8
+ * - A lone separator is the decimal point. A pasted `1,000` therefore reads as
9
+ * one — ambiguous by construction, and the field echoes what we read.
10
+ * - Grouping needs triples throughout AND one separator character, which is
11
+ * what tells `1,000,123` (a million) from `1,000.123` (a thousand).
12
+ * - Anything else is a mistyped decimal (`1.5.`): the first separator stands.
13
+ */
14
+ export declare function sanitizeDecimalInput(raw: string): string;
15
+ export interface AmountInputProps {
16
+ /** Amount in the source token's units, as typed. */
17
+ value: string;
18
+ onChangeValue: (value: string) => void;
19
+ /** Rendered beside the amount, e.g. `USDC`. */
20
+ tokenSymbol: string;
21
+ /** Spendable balance line under the amount, e.g. `120.5 USDC available`. */
22
+ balanceLabel?: string;
23
+ /** Fills the field with the whole balance. Omit to hide the button. */
24
+ onPressMax?: () => void;
25
+ maxLabel?: string;
26
+ /** Shown in place of the balance line; also tints the amount. */
27
+ errorText?: string;
28
+ autoFocus?: boolean;
29
+ }
30
+ /**
31
+ * The withdrawal amount field: a large amount that behaves like a display but
32
+ * is editable, with the balance and a Max shortcut underneath.
33
+ *
34
+ * Uses gorhom's `BottomSheetTextInput`, but the sheet is lifted by
35
+ * `FlowSheet`'s own spacer — gorhom's native avoidance is inert under
36
+ * `enableDynamicSizing` (see `useKeyboardHeight`), so the screen hosting this
37
+ * must set `keyboardAvoidEnabled`.
38
+ */
39
+ export declare function AmountInput({ value, onChangeValue, tokenSymbol, balanceLabel, onPressMax, maxLabel, errorText, autoFocus, }: AmountInputProps): import("react").JSX.Element;
40
+ //# sourceMappingURL=AmountInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../src/components/AmountInput.tsx"],"names":[],"mappings":"AAKA;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAiBxD;AAUD,MAAM,WAAW,gBAAgB;IAC/B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,+CAA+C;IAC/C,WAAW,EAAE,MAAM,CAAA;IACnB,4EAA4E;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uEAAuE;IACvE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,SAAS,GACV,EAAE,gBAAgB,+BAwElB"}
@@ -0,0 +1,28 @@
1
+ export interface RecipientAddressInputProps {
2
+ /** Section label above the field, e.g. `Send to`. */
3
+ label: string;
4
+ value: string;
5
+ onChangeText: (value: string) => void;
6
+ placeholder: string;
7
+ /**
8
+ * Fills the field with the connected wallet's own address. Omit to hide the
9
+ * shortcut (see `disableConnectedWallet` on the flow config).
10
+ */
11
+ onUseConnectedWallet?: () => void;
12
+ useConnectedWalletLabel?: string;
13
+ /** Blocking problem — tints the border and replaces the helper line. */
14
+ errorText?: string;
15
+ /** Non-blocking caution, e.g. a flagged-address notice. */
16
+ warningText?: string;
17
+ }
18
+ /**
19
+ * The withdrawal recipient field. Addresses are long and usually pasted, so the
20
+ * field wraps to a second line rather than scrolling a single line sideways.
21
+ *
22
+ * Uses gorhom's `BottomSheetTextInput`, but the sheet is lifted by
23
+ * `FlowSheet`'s own spacer — gorhom's native avoidance is inert under
24
+ * `enableDynamicSizing` (see `useKeyboardHeight`), so the screen hosting this
25
+ * must set `keyboardAvoidEnabled`.
26
+ */
27
+ export declare function RecipientAddressInput({ label, value, onChangeText, placeholder, onUseConnectedWallet, useConnectedWalletLabel, errorText, warningText, }: RecipientAddressInputProps): import("react").JSX.Element;
28
+ //# sourceMappingURL=RecipientAddressInput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecipientAddressInput.d.ts","sourceRoot":"","sources":["../../../src/components/RecipientAddressInput.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,0BAA0B;IACzC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAA;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,SAAS,EACT,WAAW,GACZ,EAAE,0BAA0B,+BAgF5B"}
@@ -0,0 +1,23 @@
1
+ import type { FeeBreakdownV2 } from '@funkit/api-base';
2
+ export interface WithdrawFeeSummaryProps {
3
+ /** Absent until a quote arrives — which is not the same as costing nothing. */
4
+ fees: FeeBreakdownV2 | undefined;
5
+ /** Destination-token amount the recipient receives. */
6
+ receiveAmount: string | undefined;
7
+ destinationSymbol: string;
8
+ isLoading?: boolean;
9
+ /** Quote failed — the rows would all read zero, so say so instead. */
10
+ errorText?: string;
11
+ /**
12
+ * A host fee billed as source-chain gas, in USD — web's
13
+ * `extraSourceChainGasUsd`. Lands in the network row, so the summary keeps
14
+ * the same four rows whoever charges what. 0 when nobody charges one.
15
+ */
16
+ extraSourceGasUsd: number;
17
+ }
18
+ /**
19
+ * What the withdrawal costs, mirroring web's `PaymentFeesSummary` rows: what
20
+ * arrives, network cost, price impact, and the slippage floor.
21
+ */
22
+ export declare function WithdrawFeeSummary({ fees, receiveAmount, destinationSymbol, isLoading, errorText, extraSourceGasUsd, }: WithdrawFeeSummaryProps): import("react").JSX.Element;
23
+ //# sourceMappingURL=WithdrawFeeSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawFeeSummary.d.ts","sourceRoot":"","sources":["../../../src/components/WithdrawFeeSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAMtD,MAAM,WAAW,uBAAuB;IACtC,+EAA+E;IAC/E,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAChC,uDAAuD;IACvD,aAAa,EAAE,MAAM,GAAG,SAAS,CAAA;IACjC,iBAAiB,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAQD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,iBAAiB,GAClB,EAAE,uBAAuB,+BAiEzB"}
@@ -0,0 +1,19 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { ClipboardWriter } from '../transfer/clipboard';
3
+ import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
+ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
5
+ /**
6
+ * The live flow body. Drives the deposit-address + QR generation
7
+ * ({@link useTokenTransfer}) for the open flow and renders the active screen
8
+ * with the resolved data. Kept separate from the provider so its
9
+ * hooks run only while the modal is open (it isn't mounted when closed).
10
+ */
11
+ export declare function FlowContent({ config, current, nav, copyToClipboard, onCopySuccess, callbacks, }: {
12
+ config: DepositFlowConfig;
13
+ current: FlowScreen | undefined;
14
+ nav: FlowNav;
15
+ copyToClipboard: ClipboardWriter;
16
+ onCopySuccess: () => void;
17
+ callbacks: DepositFlowCallbacks;
18
+ }): ReactNode;
19
+ //# sourceMappingURL=DepositFlowContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DepositFlowContent.d.ts","sourceRoot":"","sources":["../../../src/flow/DepositFlowContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAA;AA+Bd,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAS5D,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAG5B,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAc/D;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,OAAO,EACP,GAAG,EACH,eAAe,EACf,aAAa,EACb,SAAS,GACV,EAAE;IACD,MAAM,EAAE,iBAAiB,CAAA;IACzB,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ,eAAe,EAAE,eAAe,CAAA;IAChC,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,SAAS,EAAE,oBAAoB,CAAA;CAChC,GAAG,SAAS,CA+NZ"}
@@ -1,5 +1,12 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type BottomSheetBackgroundProps } from '@gorhom/bottom-sheet';
3
+ /**
4
+ * Host-supplied blur laid under the sheet's scrim. The package ships no blur
5
+ * module 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
+ export type BackdropBlurRenderer = () => ReactNode;
3
10
  export interface FlowSheetProps {
4
11
  isOpen: boolean;
5
12
  /**
@@ -21,6 +28,8 @@ export interface FlowSheetProps {
21
28
  */
22
29
  keyboardAvoidEnabled?: boolean;
23
30
  enableSwipeToDismiss?: boolean;
31
+ /** Optional blur behind the scrim. See {@link BackdropBlurRenderer}. */
32
+ renderBackdropBlur?: BackdropBlurRenderer;
24
33
  }
25
34
  /**
26
35
  * Host for the managed deposit-flow surface: a `@gorhom/bottom-sheet` modal
@@ -32,7 +41,7 @@ export interface FlowSheetProps {
32
41
  * `react-native-gesture-handler`, `react-native-reanimated`) and a
33
42
  * `<GestureHandlerRootView>` at the app root.
34
43
  */
35
- export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, }: FlowSheetProps): import("react").JSX.Element;
44
+ export declare function FlowSheet({ isOpen, session, onClose, content, children, keyboardAvoidEnabled, enableSwipeToDismiss, renderBackdropBlur, }: FlowSheetProps): import("react").JSX.Element;
36
45
  /**
37
46
  * Sheet surface for the flow modal. gorhom sizes the sheet body to its content,
38
47
  * so a flat background fills only the content area; over-dragging the sheet
@@ -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;AAO7B,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;CAC/B;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,GAC5B,EAAE,cAAc,+BAgHhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAgB5B"}
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;AAO7B;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,SAAS,CAAA;AAElD,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,wEAAwE;IACxE,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C;AAQD;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,OAAO,EACP,OAAO,EACP,OAAO,EACP,QAAQ,EACR,oBAA4B,EAC5B,oBAA2B,EAC3B,kBAAkB,GACnB,EAAE,cAAc,+BAkIhB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,KAAK,GACN,EAAE,0BAA0B,+BAgB5B"}
@@ -1,7 +1,9 @@
1
1
  import { type ReactNode } from 'react';
2
2
  import { type ClipboardWriter } from '../transfer/clipboard';
3
3
  import type { DepositFlowCallbacks, DepositFlowConfig } from './depositFlowConfig';
4
+ import { type BackdropBlurRenderer } from './FlowSheet';
4
5
  import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
6
+ export type FlowScreen = 'addMoney' | 'transfer' | 'swapped' | 'withdrawMethod' | 'withdrawCrypto' | 'withdrawComplete';
5
7
  interface FunkitFlowContextValue {
6
8
  /** Open the managed deposit flow at the Add money screen. */
7
9
  beginDeposit: (config: DepositFlowConfig, callbacks?: DepositFlowCallbacks) => void;
@@ -10,16 +12,25 @@ interface FunkitFlowContextValue {
10
12
  /** Close the flow. */
11
13
  closeFlow: () => void;
12
14
  }
15
+ export interface FlowNav {
16
+ navigate: (s: FlowScreen) => void;
17
+ back: () => void;
18
+ /** Replace the whole stack with a single screen (never closes the sheet). */
19
+ reset: (s: FlowScreen) => void;
20
+ closeFlow: () => void;
21
+ }
13
22
  /**
14
23
  * Mounts the managed deposit-flow modal and exposes `beginDeposit` to
15
24
  * {@link useFunkitCheckout}. The five screens are rendered + navigated here
16
25
  * (host apps never render them directly), mirroring how `@funkit/connect`'s
17
26
  * `FunkitProvider` owns the checkout modal.
18
27
  */
19
- export declare function FunkitFlowProvider({ children, copyToClipboard, }: {
28
+ export declare function FunkitFlowProvider({ children, copyToClipboard, renderBackdropBlur, }: {
20
29
  children: ReactNode;
21
30
  /** Host clipboard override; defaults to the bare-RN clipboard peer. */
22
31
  copyToClipboard?: ClipboardWriter;
32
+ /** Host blur under the sheet's scrim. See {@link BackdropBlurRenderer}. */
33
+ renderBackdropBlur?: BackdropBlurRenderer;
23
34
  }): import("react").JSX.Element;
24
35
  export declare function useFunkitFlow(): FunkitFlowContextValue;
25
36
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitFlowProvider.d.ts","sourceRoot":"","sources":["../../../src/flow/FunkitFlowProvider.tsx"],"names":[],"mappings":"AASA,OAAO,EAEL,KAAK,SAAS,EASf,MAAM,OAAO,CAAA;AAgCd,OAAO,EACL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAA;AAe9B,OAAO,KAAK,EAEV,oBAAoB,EACpB,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAO5B,OAAO,KAAK,EACV,uBAA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pE,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,MAAM,IAAI,CAAA;IAChB,6EAA6E;IAC7E,KAAK,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC9B,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,eAAwC,EACxC,kBAAkB,GACnB,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,uEAAuE;IACvE,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,2EAA2E;IAC3E,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C,+BAuIA;AAID,wBAAgB,aAAa,IAAI,sBAAsB,CAMtD"}
@@ -0,0 +1,18 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { FlowNav, FlowScreen } from './FunkitFlowProvider';
3
+ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from './withdrawalFlowConfig';
4
+ /**
5
+ * The live withdrawal-flow body (Swapped fiat offramp): payout-method list →
6
+ * the Swapped sell embed → on a validated order, the on-chain leg
7
+ * ({@link useWithdrawalExecution}) delivers the exact ordered amount to
8
+ * Swapped's deposit address through the host wallet. Sibling of the deposit
9
+ * FlowContent, mounted only while a withdrawal flow is open so its
10
+ * queries run only then.
11
+ */
12
+ export declare function WithdrawalFlowContent({ config, callbacks, current, nav, }: {
13
+ config: WithdrawalFlowConfig;
14
+ callbacks: WithdrawalFlowCallbacks;
15
+ current: FlowScreen | undefined;
16
+ nav: FlowNav;
17
+ }): ReactNode;
18
+ //# sourceMappingURL=WithdrawalFlowContent.d.ts.map
@@ -0,0 +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;AAiB7D,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,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,GACJ,EAAE;IACD,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,CAkOZ"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Wraps every function on a host callback object so an integrator's throw stays
3
+ * the integrator's problem.
4
+ *
5
+ * Applied where callbacks enter the SDK rather than at each call site: some of
6
+ * those sites can't defend themselves usefully — `onClose` runs inside a
7
+ * `setState` updater, `onOpen` runs before the sheet is open — and a call site
8
+ * added later would otherwise be unguarded by default.
9
+ */
10
+ export declare function guardHostCallbacks<T extends object>(callbacks: T): T;
11
+ //# sourceMappingURL=guardHostCallbacks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardHostCallbacks.d.ts","sourceRoot":"","sources":["../../../src/flow/guardHostCallbacks.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CASpE"}
@@ -0,0 +1,18 @@
1
+ import { type ReactNode } from 'react';
2
+ interface CopiedToast {
3
+ /** The overlay to render; caller owns only where it sits in the tree. */
4
+ toast: ReactNode;
5
+ showCopiedToast: () => void;
6
+ clearToast: () => void;
7
+ }
8
+ /**
9
+ * The "Address copied" toast: its timing state and the overlay that shows it.
10
+ *
11
+ * Two pieces of state: `copiedToastShown` drives the pill's mount (its
12
+ * reanimated enter/exit plays on mount/unmount), and `toastMounted` keeps
13
+ * the overlay mounted across the pill's exit animation so the fade-out
14
+ * isn't cut off by tearing the View down on the same frame.
15
+ */
16
+ export declare function useCopiedToast(): CopiedToast;
17
+ export {};
18
+ //# sourceMappingURL=useCopiedToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useCopiedToast.d.ts","sourceRoot":"","sources":["../../../src/flow/useCopiedToast.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA4C,MAAM,OAAO,CAAA;AAoBhF,UAAU,WAAW;IACnB,yEAAyE;IACzE,KAAK,EAAE,SAAS,CAAA;IAChB,eAAe,EAAE,MAAM,IAAI,CAAA;IAC3B,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,IAAI,WAAW,CA4C5C"}
@@ -3,16 +3,10 @@
3
3
  * keyboard events. Pass `enabled` to scope it to the screen that needs it: when
4
4
  * `false`, no listeners are registered and it always reports 0.
5
5
  *
6
- * `@gorhom/bottom-sheet`'s built-in keyboard handling only reacts to a focused
7
- * `BottomSheetTextInput`. The Swapped embed's WebView focuses its input in the
8
- * web context, invisible to gorhom, so the sheet never moves on its own. These
9
- * events, by contrast, fire for the WebView's web inputs too, letting the host
10
- * lift the sheet itself.
11
- *
12
- * Because these are *global* keyboard events, a screen that DOES use gorhom's
13
- * native avoidance (a `BottomSheetTextInput`) would otherwise be double-counted
14
- * — gorhom shifting the sheet AND this growing it. Gating on `enabled` keeps the
15
- * two from overlapping: only the Swapped screen opts in.
6
+ * This is the ONLY thing that lifts the flow sheet, for native inputs and the
7
+ * Swapped WebView alike: gorhom's own avoidance runs `keyboardBehavior="extend"`
8
+ * under `enableDynamicSizing`, where the max snap point is already the content
9
+ * height — a no-op, verified on device even with a `BottomSheetTextInput`.
16
10
  *
17
11
  * iOS emits the `Will` events (ahead of the keyboard animation, so the sheet
18
12
  * lifts in sync); Android only reliably emits the `Did` events.
@@ -1 +1 @@
1
- {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAqB1D"}
1
+ {"version":3,"file":"useKeyboardHeight.d.ts","sourceRoot":"","sources":["../../../src/flow/useKeyboardHeight.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAqB1D"}
@@ -1,10 +1,24 @@
1
1
  import type { SwappedSellOrderData, WithdrawalClient } from '@funkit/connect-core';
2
+ import type { ReactNode } from 'react';
2
3
  import type { Address } from 'viem';
3
4
  /**
4
5
  * A token in a withdrawal — the source the user sells, or the token Swapped
5
6
  * accepts on-chain. `decimals` only matters for the accepted token (skips an
6
7
  * on-chain read during execution).
7
8
  */
9
+ /**
10
+ * One selectable withdrawal method. The user picks it on the method screen and
11
+ * `config` is what the flow then runs — a concrete config, never one that
12
+ * carries `methods` itself.
13
+ */
14
+ export interface WithdrawalMethodOption {
15
+ /** Stable id, also used for tracking. */
16
+ id: string;
17
+ title: string;
18
+ subtitle?: string;
19
+ icon?: ReactNode;
20
+ config: WithdrawalFlowConfig;
21
+ }
8
22
  export interface WithdrawalToken {
9
23
  /** Numeric chain id as a string (web-aligned, e.g. `'8453'`). */
10
24
  chainId: string;
@@ -15,13 +29,64 @@ export interface WithdrawalToken {
15
29
  decimals?: number;
16
30
  }
17
31
  /**
18
- * Data the managed withdrawal (Swapped fiat offramp) flow renders and executes
19
- * against. Mirrors the web `FunkitWithdrawalConfig` family where the concepts
20
- * overlap; the RN flow is offramp-only (no send-to-address withdrawal).
32
+ * One selectable source token. Present only when the host offers a choice;
33
+ * with a single source, `WithdrawalFlowConfig.sourceToken` is enough.
34
+ */
35
+ export interface WithdrawalSourceTokenOption {
36
+ token: WithdrawalToken;
37
+ /** Row label; defaults to the token symbol. */
38
+ label?: string;
39
+ iconSrc?: string;
40
+ }
41
+ /** Which source token a balance / limit callback is being asked about. */
42
+ export interface WithdrawalSourceTokenParams {
43
+ sourceToken: WithdrawalToken;
44
+ }
45
+ /**
46
+ * Data the managed withdrawal flow renders and executes against. Mirrors the
47
+ * web `FunkitWithdrawalConfig` family where the concepts overlap.
48
+ *
49
+ * Two rails share this config: the Swapped fiat offramp, and the crypto
50
+ * send-to-address rail. Fields marked "crypto rail" are ignored by the offramp.
21
51
  */
22
52
  export interface WithdrawalFlowConfig {
23
- /** Token being sold to fiat. */
53
+ /** The token being withdrawn; the default pick when `sourceTokens` is set. */
24
54
  sourceToken: WithdrawalToken;
55
+ /**
56
+ * Crypto rail: source tokens the user can pick between. Omit for a single
57
+ * source — `sourceToken` is then the only option and no picker is shown.
58
+ */
59
+ sourceTokens?: WithdrawalSourceTokenOption[];
60
+ /**
61
+ * Crypto rail: spendable balance of a source token, in that token's units.
62
+ * The integrator is authoritative — it knows about locks, pending orders and
63
+ * borrow limits the SDK can't see on-chain. Called on render, so keep it
64
+ * cheap and referentially stable; a throw or a nonsense value is treated as
65
+ * a zero balance rather than breaking the form.
66
+ */
67
+ withdrawalSourceTokenBalance?: (params: WithdrawalSourceTokenParams) => string | number;
68
+ /** Crypto rail: minimum withdrawal in USD. Defaults to $0.01. */
69
+ getMinWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
70
+ /**
71
+ * Crypto rail: minimum as the user sees it — the source token's own units,
72
+ * not base units. Takes priority over {@link getMinWithdrawalUSD}.
73
+ */
74
+ getMinWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
75
+ /** Crypto rail: maximum withdrawal in USD. Unlimited when omitted. */
76
+ getMaxWithdrawalUSD?: (params: WithdrawalSourceTokenParams) => number;
77
+ /**
78
+ * Ceiling in source-token units. Takes priority over `getMaxWithdrawalUSD`,
79
+ * which needs a resolvable spot price and so goes unenforced for a source the
80
+ * price API doesn't know (an L2 balance addressed by index, say).
81
+ */
82
+ getMaxWithdrawalAmount?: (params: WithdrawalSourceTokenParams) => number;
83
+ /** Crypto rail: token symbol to preselect as the destination. */
84
+ defaultReceiveToken?: string;
85
+ /**
86
+ * Crypto rail: hide the shortcut that fills the recipient field with the
87
+ * connected wallet's own address.
88
+ */
89
+ disableConnectedWallet?: boolean;
25
90
  /**
26
91
  * The token Swapped accepts on-chain (the leg the quote delivers), when it
27
92
  * differs from the source. Omit when Swapped accepts the source token; a
@@ -36,6 +101,25 @@ export interface WithdrawalFlowConfig {
36
101
  withdrawalWallet: WithdrawalClient;
37
102
  /** Sheet title; defaults to 'Withdraw'. */
38
103
  title?: string;
104
+ /**
105
+ * Replaces the single crypto row on the method screen with a choice of
106
+ * methods, each running its own config. Built by a client module (see
107
+ * `@funkit/connect-rn/clients/*`) so no venue is named here; the fields above
108
+ * still describe the Swapped offramp.
109
+ */
110
+ methods?: WithdrawalMethodOption[];
111
+ /**
112
+ * Flat fee in source-token units taken from the amount **before** quoting, so
113
+ * the quote prices what the venue will actually move. It changes the amount,
114
+ * not the fee summary.
115
+ */
116
+ quoteInputFeeTokens?: number;
117
+ /**
118
+ * A fee the venue bills as source-chain gas, in USD, added to the summary's
119
+ * network cost. Leave it unset when the quote's own gas figure already carries
120
+ * the fee, or the row counts it twice.
121
+ */
122
+ extraSourceGasUsd?: number;
39
123
  /**
40
124
  * Spendable source balance in **USD**. The SDK caps the Swapped sell to it
41
125
  * (USD→EUR via live rates) and blocks cash methods below Swapped's minimum.
@@ -51,14 +135,21 @@ export interface WithdrawalFlowCallbacks {
51
135
  onClose?: () => void;
52
136
  onCheckoutBlocked?: () => void;
53
137
  /**
54
- * The embed emitted a validated sell order (deposit address + exact amount
55
- * of the accepted token). Fired before the SDK executes — observability /
56
- * escape hatch for hosts that track orders themselves.
138
+ * Offramp only: the embed emitted a validated sell order (deposit address +
139
+ * exact amount of the accepted token). Fired before the SDK executes —
140
+ * observability / escape hatch for hosts that track orders themselves.
57
141
  */
58
142
  onWithdrawalOrder?: (order: SwappedSellOrderData) => void;
59
- /** The on-chain leg landed: provider order id ↔ transaction hash. */
143
+ /**
144
+ * The on-chain leg landed. The first argument identifies the withdrawal: the
145
+ * provider order id on the offramp, and an SDK-minted submission id on the
146
+ * crypto rail (which has no provider).
147
+ */
60
148
  onWithdrawalSubmitted?: (orderId: string, txHash: string) => void;
61
- /** Swapped confirmed the fiat payout side (SWAPPED_WITHDRAWAL_SUCCESSFUL). */
149
+ /**
150
+ * The withdrawal completed: Swapped confirmed the fiat payout, or the crypto
151
+ * transfer reached a terminal on-chain state.
152
+ */
62
153
  onWithdrawalSuccess?: (data?: unknown) => void;
63
154
  /** Unrecoverable execution failure (user rejections are not errors). */
64
155
  onWithdrawalError?: (error: {
@@ -1 +1 @@
1
- {"version":3,"file":"withdrawalFlowConfig.d.ts","sourceRoot":"","sources":["../../../src/flow/withdrawalFlowConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAEnC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,iEAAiE;IACjE,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,gCAAgC;IAChC,WAAW,EAAE,eAAe,CAAA;IAC5B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,eAAe,CAAA;IAC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ts","sourceRoot":"","sources":["../../../src/geo/useUserIpInfo.ts"],"names":[],"mappings":"AAOA,YAAY,EACV,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,aAAa,uDAU5B"}
@@ -43,13 +43,23 @@ export interface FunkitConfig {
43
43
  */
44
44
  prefillFiatEmail?: string;
45
45
  }
46
+ /**
47
+ * Stands in for `walletAddress` when the host supplies none. Not a valid
48
+ * address — callers that surface it to the user must check for it.
49
+ */
50
+ export declare const UNSET_WALLET_ADDRESS = "0x";
51
+ /**
52
+ * Whether the host's address can be put in front of the user — offered as a
53
+ * withdrawal recipient, the zero address burns the funds.
54
+ */
55
+ export declare function isUsableWalletAddress(address: string | undefined): boolean;
46
56
  /**
47
57
  * Resolve the host's {@link FunkitConfig} + connected wallet address into the
48
58
  * internal {@link FunkitIdentity} the transfer hooks read. Mirrors the web
49
59
  * default (non-customer) path of `resolveUserId`/`resolveWalletAddress`: prefer
50
60
  * a synthetic id from `externalUserId`, else fall back to the wallet address;
51
- * missing values become the `'0x'` sentinel, which disables the transfer query
52
- * (see `getCheckoutTokenTransferParams`).
61
+ * missing values become {@link UNSET_WALLET_ADDRESS}, which disables the
62
+ * transfer query (see `getCheckoutTokenTransferParams`).
53
63
  */
54
64
  export declare function resolveFunkitIdentity(config: FunkitConfig, walletAddress: string | undefined): FunkitIdentity;
55
65
  export declare function FunkitIdentityProvider({ identity, children, }: {
@@ -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;AAGjE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA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AC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAgBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AASxC;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAM1E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,MAAM,GAAG,SAAS,GAChC,cAAc,CAYhB;AAID,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"datadogHttpLogTransport.d.ts","sourceRoot":"","sources":["../../../src/logging/datadogHttpLogTransport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,eAAe,EAChB,MAAM,sBAAsB,CAAA;AAE7B;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,8BAA8B;IAC7C,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,sEAAsE;IACtE,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAiBD,qBAAa,uBAAwB,YAAW,YAAY;IAC1D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAQ;IAChC,OAAO,CAAC,QAAQ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,CAAC,QAAQ,CAAC,YAAY,CAAQ;IAErC,OAAO,CAAC,GAAG,CAAoB;IAC/B,OAAO,CAAC,OAAO,CAA6B;IAC5C,OAAO,CAAC,KAAK,CAAwB;IACrC,OAAO,CAAC,UAAU,CAA6C;gBAEnD,OAAO,EAAE,8BAA8B;IAanD,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAIjC,kBAAkB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;IASlD,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,GAAG,IAAI;IAmCtD,8EAA8E;IAC9E,KAAK,IAAI,IAAI;IAuBb,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,UAAU;CAMnB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Serialize log records to a JSON body. Always succeeds.
3
+ *
4
+ * Web gets this from `@datadog/browser-logs`; the raw-`fetch` RN transport has
5
+ * no such layer and serializes inside the caller's `log()`, so a throw would
6
+ * land in a user flow.
7
+ */
8
+ export declare function serializeLogBatch(batch: readonly object[]): string;
9
+ //# sourceMappingURL=serializeLogBatch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeLogBatch.d.ts","sourceRoot":"","sources":["../../../src/logging/serializeLogBatch.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAMlE"}
@@ -1,5 +1,6 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  import { type ReactNode } from 'react';
3
+ import type { BackdropBlurRenderer } from '../flow/FlowSheet';
3
4
  import { type FunkitConfig } from '../identity/IdentityContext';
4
5
  import type { Locale } from '../locales/i18n';
5
6
  import { type FunkitThemeProviderProps } from '../theme/FunkitThemeProvider';
@@ -55,6 +56,13 @@ export interface FunkitProviderProps {
55
56
  * `void` return is treated as success.
56
57
  */
57
58
  copyToClipboard?: ClipboardWriter;
59
+ /**
60
+ * Blur behind the flow sheet's scrim. The SDK ships the scrim only (no native
61
+ * blur dependency), so pass your own blur view — e.g.
62
+ * `() => <BlurView style={StyleSheet.absoluteFill} />` — to complete the
63
+ * design's blurred backdrop.
64
+ */
65
+ renderBackdropBlur?: BackdropBlurRenderer;
58
66
  }
59
67
  /**
60
68
  * Top-level, user-facing provider for `@funkit/connect-rn` — the single
@@ -67,5 +75,5 @@ export interface FunkitProviderProps {
67
75
  * the {@link QueryClientProvider}. Host integration stays a single
68
76
  * `<FunkitProvider>`.
69
77
  */
70
- export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, }: FunkitProviderProps): import("react").JSX.Element;
78
+ export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, renderBackdropBlur, }: FunkitProviderProps): import("react").JSX.Element;
71
79
  //# sourceMappingURL=FunkitProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAuB,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAIlE,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAE7C,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK5D,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,WAA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M,CAAC,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAA;IAC3C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,wBAAwB,CAAC,aAAa,CAAC,CAAA;IACrD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;CAC1C;AA8BD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,MAAM,EACN,aAAa,EACb,WAAW,EACX,MAAM,EACN,WAAW,EACX,KAAoB,EACpB,MAAM,EACN,eAAe,EACf,kBAAkB,GACnB,EAAE,mBAAmB,+BA0DrB"}
@@ -0,0 +1,19 @@
1
+ import type { DestinationChain } from '../withdrawal/useWithdrawalDestinationTokens';
2
+ export interface SelectDestinationScreenProps {
3
+ chains: DestinationChain[];
4
+ /** Chain logo URL by chain id, supplied by the flow to keep this asset-free. */
5
+ chainIconUri: (chainId: number) => string;
6
+ chainName: (chainId: number) => string;
7
+ selectedChainId?: string;
8
+ selectedSymbol?: string;
9
+ onSelect: (chainId: number, symbol: string) => void;
10
+ onBack: () => void;
11
+ loading?: boolean;
12
+ }
13
+ /**
14
+ * Pick what the withdrawal is received as. Grouped by chain, because the same
15
+ * symbol on two chains is two different destinations and the pair is what the
16
+ * quote is priced against.
17
+ */
18
+ export declare function SelectDestinationScreen({ chains, chainIconUri, chainName, selectedChainId, selectedSymbol, onSelect, onBack, loading, }: SelectDestinationScreenProps): import("react").JSX.Element;
19
+ //# sourceMappingURL=SelectDestinationScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectDestinationScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectDestinationScreen.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAEpF,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,gFAAgF;IAChF,YAAY,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IACzC,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAA;IACtC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,EACN,YAAY,EACZ,SAAS,EACT,eAAe,EACf,cAAc,EACd,QAAQ,EACR,MAAM,EACN,OAAO,GACR,EAAE,4BAA4B,+BA+H9B"}
@@ -0,0 +1,16 @@
1
+ import type { WithdrawalSourceTokenOption } from '../flow/withdrawalFlowConfig';
2
+ export interface SelectSourceTokenScreenProps {
3
+ options: WithdrawalSourceTokenOption[];
4
+ /** Index into `options` — two options can share a symbol (perps vs spot). */
5
+ selectedIndex: number;
6
+ onSelect: (index: number) => void;
7
+ onBack: () => void;
8
+ }
9
+ /**
10
+ * Pick which balance the withdrawal comes out of. Flat, not grouped by chain:
11
+ * the sources a host offers are balances on one venue, and two of them can
12
+ * share a symbol (Lighter's perps and spot USDC), so the row identity is the
13
+ * option itself rather than its symbol.
14
+ */
15
+ export declare function SelectSourceTokenScreen({ options, selectedIndex, onSelect, onBack, }: SelectSourceTokenScreenProps): import("react").JSX.Element;
16
+ //# sourceMappingURL=SelectSourceTokenScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectSourceTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectSourceTokenScreen.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAA;AAM/E,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,2BAA2B,EAAE,CAAA;IACtC,6EAA6E;IAC7E,aAAa,EAAE,MAAM,CAAA;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,aAAa,EACb,QAAQ,EACR,MAAM,GACP,EAAE,4BAA4B,+BA6G9B"}