@funkit/connect-rn 3.6.0 → 3.8.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 (157) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +81 -0
  3. package/dist/{chunk-BNWA4HKO.js → chunk-UN5NP4RP.js} +342 -115
  4. package/dist/chunk-UN5NP4RP.js.map +7 -0
  5. package/dist/clients/lighter/index.d.ts +2 -0
  6. package/dist/clients/lighter/index.d.ts.map +1 -1
  7. package/dist/clients/lighter/lighterFastWithdrawal.d.ts.map +1 -1
  8. package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts +42 -0
  9. package/dist/clients/lighter/useLighterSecureWithdrawal.d.ts.map +1 -0
  10. package/dist/clients/lighter/useLighterUnstakedFee.d.ts +12 -6
  11. package/dist/clients/lighter/useLighterUnstakedFee.d.ts.map +1 -1
  12. package/dist/clients/lighter/useLighterWithdrawal.d.ts.map +1 -1
  13. package/dist/clients/lighter/useLighterWithdrawalMethods.d.ts.map +1 -1
  14. package/dist/clients/lighter.js +170 -84
  15. package/dist/clients/lighter.js.map +4 -4
  16. package/dist/index.d.ts +1 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +3455 -1550
  19. package/dist/index.js.map +4 -4
  20. package/dist/src/components/AmountDisplay.d.ts +18 -0
  21. package/dist/src/components/AmountDisplay.d.ts.map +1 -0
  22. package/dist/src/components/AssetGrid.d.ts +39 -0
  23. package/dist/src/components/AssetGrid.d.ts.map +1 -0
  24. package/dist/src/components/NumPad.d.ts +14 -0
  25. package/dist/src/components/NumPad.d.ts.map +1 -0
  26. package/dist/src/components/PillButton.d.ts +25 -0
  27. package/dist/src/components/PillButton.d.ts.map +1 -0
  28. package/dist/src/components/ReceiveAmountSummary.d.ts +27 -0
  29. package/dist/src/components/ReceiveAmountSummary.d.ts.map +1 -0
  30. package/dist/src/components/ReceiveAsRow.d.ts +14 -0
  31. package/dist/src/components/ReceiveAsRow.d.ts.map +1 -0
  32. package/dist/src/components/SearchInput.d.ts +15 -0
  33. package/dist/src/components/SearchInput.d.ts.map +1 -0
  34. package/dist/src/components/SelectableAssetRow.d.ts +14 -0
  35. package/dist/src/components/SelectableAssetRow.d.ts.map +1 -0
  36. package/dist/src/components/SkeletonBar.d.ts +10 -0
  37. package/dist/src/components/SkeletonBar.d.ts.map +1 -0
  38. package/dist/src/components/TopBar.d.ts +12 -0
  39. package/dist/src/components/TopBar.d.ts.map +1 -0
  40. package/dist/src/components/WalletAddressInput.d.ts +35 -0
  41. package/dist/src/components/WalletAddressInput.d.ts.map +1 -0
  42. package/dist/src/components/WithdrawSourceCard.d.ts +23 -0
  43. package/dist/src/components/WithdrawSourceCard.d.ts.map +1 -0
  44. package/dist/src/flow/DepositFlowContent.d.ts.map +1 -1
  45. package/dist/src/flow/FlowSheet.d.ts +3 -1
  46. package/dist/src/flow/FlowSheet.d.ts.map +1 -1
  47. package/dist/src/flow/FunkitFlowProvider.d.ts +11 -3
  48. package/dist/src/flow/FunkitFlowProvider.d.ts.map +1 -1
  49. package/dist/src/flow/WithdrawalFlowContent.d.ts +4 -1
  50. package/dist/src/flow/WithdrawalFlowContent.d.ts.map +1 -1
  51. package/dist/src/flow/depositFlowConfig.d.ts.map +1 -1
  52. package/dist/src/flow/sheetSizing.d.ts +22 -0
  53. package/dist/src/flow/sheetSizing.d.ts.map +1 -0
  54. package/dist/src/flow/useCopiedToast.d.ts.map +1 -1
  55. package/dist/src/flow/withdrawalFlowConfig.d.ts +7 -0
  56. package/dist/src/flow/withdrawalFlowConfig.d.ts.map +1 -1
  57. package/dist/src/haptics/HapticsContext.d.ts +21 -0
  58. package/dist/src/haptics/HapticsContext.d.ts.map +1 -0
  59. package/dist/src/haptics/hapticTap.d.ts +13 -0
  60. package/dist/src/haptics/hapticTap.d.ts.map +1 -0
  61. package/dist/src/hooks/useIsStablecoin.d.ts +3 -0
  62. package/dist/src/hooks/useIsStablecoin.d.ts.map +1 -0
  63. package/dist/src/hooks/useNestedSheet.d.ts +17 -0
  64. package/dist/src/hooks/useNestedSheet.d.ts.map +1 -0
  65. package/dist/src/hooks/useNestedSheetHeight.d.ts +7 -0
  66. package/dist/src/hooks/useNestedSheetHeight.d.ts.map +1 -0
  67. package/dist/src/hooks/usePulse.d.ts +7 -0
  68. package/dist/src/hooks/usePulse.d.ts.map +1 -0
  69. package/dist/src/icons/FigmaSystemIcons.d.ts +2 -0
  70. package/dist/src/icons/FigmaSystemIcons.d.ts.map +1 -1
  71. package/dist/src/icons/FunIcon.d.ts +5 -2
  72. package/dist/src/icons/FunIcon.d.ts.map +1 -1
  73. package/dist/src/icons/TokenChainIcon.d.ts +6 -1
  74. package/dist/src/icons/TokenChainIcon.d.ts.map +1 -1
  75. package/dist/src/identity/IdentityContext.d.ts +9 -0
  76. package/dist/src/identity/IdentityContext.d.ts.map +1 -1
  77. package/dist/src/providers/FunkitProvider.d.ts +17 -2
  78. package/dist/src/providers/FunkitProvider.d.ts.map +1 -1
  79. package/dist/src/providers/FunkitStatsigProvider.d.ts.map +1 -1
  80. package/dist/src/screens/QrCodeScreen.d.ts.map +1 -1
  81. package/dist/src/screens/SelectChainScreen.d.ts.map +1 -1
  82. package/dist/src/screens/SelectMethodScreen.d.ts.map +1 -1
  83. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts +18 -0
  84. package/dist/src/screens/SelectReceiveTokenAndChainScreen.d.ts.map +1 -0
  85. package/dist/src/screens/SelectReceiveTokenScreen.d.ts +13 -0
  86. package/dist/src/screens/SelectReceiveTokenScreen.d.ts.map +1 -0
  87. package/dist/src/screens/SelectSourceTokenScreen.d.ts.map +1 -1
  88. package/dist/src/screens/TransactionBreakdownScreen.d.ts +12 -0
  89. package/dist/src/screens/TransactionBreakdownScreen.d.ts.map +1 -0
  90. package/dist/src/screens/WithdrawAddressScreen.d.ts +48 -0
  91. package/dist/src/screens/WithdrawAddressScreen.d.ts.map +1 -0
  92. package/dist/src/screens/WithdrawAmountScreen.d.ts +53 -0
  93. package/dist/src/screens/WithdrawAmountScreen.d.ts.map +1 -0
  94. package/dist/src/screens/WithdrawCompleteScreen.d.ts +15 -4
  95. package/dist/src/screens/WithdrawCompleteScreen.d.ts.map +1 -1
  96. package/dist/src/screens/WithdrawCryptoComplete.d.ts +8 -1
  97. package/dist/src/screens/WithdrawCryptoComplete.d.ts.map +1 -1
  98. package/dist/src/screens/WithdrawCryptoSteps.d.ts +40 -0
  99. package/dist/src/screens/WithdrawCryptoSteps.d.ts.map +1 -0
  100. package/dist/src/transfer/clipboard.d.ts +22 -0
  101. package/dist/src/transfer/clipboard.d.ts.map +1 -1
  102. package/dist/src/transfer/hooks/useFops.d.ts +6 -0
  103. package/dist/src/transfer/hooks/useFops.d.ts.map +1 -1
  104. package/dist/src/transfer/hooks/useTokenTransfer.d.ts.map +1 -1
  105. package/dist/src/transfer/hooks/useWithdrawalFops.d.ts.map +1 -1
  106. package/dist/src/utils/amountGlyphs.d.ts +15 -0
  107. package/dist/src/utils/amountGlyphs.d.ts.map +1 -0
  108. package/dist/src/utils/assetGrid.d.ts +20 -0
  109. package/dist/src/utils/assetGrid.d.ts.map +1 -0
  110. package/dist/src/utils/executionErrorMessage.d.ts +13 -0
  111. package/dist/src/utils/executionErrorMessage.d.ts.map +1 -0
  112. package/dist/src/utils/formatAmount.d.ts +21 -0
  113. package/dist/src/utils/formatAmount.d.ts.map +1 -0
  114. package/dist/src/utils/motion.d.ts +3 -0
  115. package/dist/src/utils/motion.d.ts.map +1 -0
  116. package/dist/src/utils/numpadInput.d.ts +14 -0
  117. package/dist/src/utils/numpadInput.d.ts.map +1 -0
  118. package/dist/src/utils/safeArea.d.ts +3 -0
  119. package/dist/src/utils/safeArea.d.ts.map +1 -0
  120. package/dist/src/withdrawal/receiveDestination.d.ts +11 -0
  121. package/dist/src/withdrawal/receiveDestination.d.ts.map +1 -0
  122. package/dist/src/withdrawal/sourceToken.d.ts +4 -11
  123. package/dist/src/withdrawal/sourceToken.d.ts.map +1 -1
  124. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts +6 -0
  125. package/dist/src/withdrawal/useCryptoWithdrawalExecution.d.ts.map +1 -1
  126. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts +91 -0
  127. package/dist/src/withdrawal/useCryptoWithdrawalForm.d.ts.map +1 -0
  128. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts +37 -0
  129. package/dist/src/withdrawal/useCryptoWithdrawalSubmit.d.ts.map +1 -0
  130. package/dist/src/withdrawal/useCryptoWithdrawalValidation.d.ts.map +1 -1
  131. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts +20 -0
  132. package/dist/src/withdrawal/useSourceTokenUsdPrice.d.ts.map +1 -0
  133. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts +38 -0
  134. package/dist/src/withdrawal/useWithdrawalAmountInput.d.ts.map +1 -0
  135. package/dist/src/withdrawal/useWithdrawalDestinationTokens.d.ts.map +1 -1
  136. package/dist/src/withdrawal/useWithdrawalRisk.d.ts +2 -2
  137. package/dist/src/withdrawal/useWithdrawalRisk.d.ts.map +1 -1
  138. package/dist/src/withdrawal/useWithdrawalStatus.d.ts +6 -2
  139. package/dist/src/withdrawal/useWithdrawalStatus.d.ts.map +1 -1
  140. package/dist/src/withdrawal/validation.d.ts +23 -5
  141. package/dist/src/withdrawal/validation.d.ts.map +1 -1
  142. package/package.json +8 -3
  143. package/dist/chunk-BNWA4HKO.js.map +0 -7
  144. package/dist/src/components/AmountInput.d.ts +0 -40
  145. package/dist/src/components/AmountInput.d.ts.map +0 -1
  146. package/dist/src/components/WithdrawFeeSummary.d.ts +0 -23
  147. package/dist/src/components/WithdrawFeeSummary.d.ts.map +0 -1
  148. package/dist/src/screens/SelectDestinationScreen.d.ts +0 -19
  149. package/dist/src/screens/SelectDestinationScreen.d.ts.map +0 -1
  150. package/dist/src/screens/WithdrawCryptoCta.d.ts +0 -20
  151. package/dist/src/screens/WithdrawCryptoCta.d.ts.map +0 -1
  152. package/dist/src/screens/WithdrawCryptoForm.d.ts +0 -28
  153. package/dist/src/screens/WithdrawCryptoForm.d.ts.map +0 -1
  154. package/dist/src/screens/WithdrawCryptoScreen.d.ts +0 -17
  155. package/dist/src/screens/WithdrawCryptoScreen.d.ts.map +0 -1
  156. package/dist/src/withdrawal/flatFee.d.ts +0 -9
  157. package/dist/src/withdrawal/flatFee.d.ts.map +0 -1
@@ -12,9 +12,11 @@ export declare function FigmaSuccessCheckIcon({ size }: {
12
12
  size?: number;
13
13
  }): import("react").JSX.Element;
14
14
  export declare function FigmaChevronDownIcon({ size, color }: IconProps): import("react").JSX.Element;
15
+ export declare function FigmaSwapIcon({ size, color }: IconProps): import("react").JSX.Element;
15
16
  export declare function FigmaCheckIcon({ size, color }: IconProps): import("react").JSX.Element;
16
17
  export declare function FigmaInfoCircleIcon({ size, color }: IconProps): import("react").JSX.Element;
17
18
  export declare function FigmaPlusIcon({ size, color }: IconProps): import("react").JSX.Element;
19
+ export declare function FigmaSearchIcon({ size, color }: IconProps): import("react").JSX.Element;
18
20
  export declare function FigmaAlertCircleIcon({ size, color }: IconProps): import("react").JSX.Element;
19
21
  export {};
20
22
  //# sourceMappingURL=FigmaSystemIcons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FigmaSystemIcons.d.ts","sourceRoot":"","sources":["../../../src/icons/FigmaSystemIcons.tsx"],"names":[],"mappings":"AAIA,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAqDD,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE9D;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEpE;AAED,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAErE;AAED,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAKD,wBAAgB,mBAAmB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAElE;AAUD,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D;AAKD,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE"}
1
+ {"version":3,"file":"FigmaSystemIcons.d.ts","sourceRoot":"","sources":["../../../src/icons/FigmaSystemIcons.tsx"],"names":[],"mappings":"AAIA,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AA0DD,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAED,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE9D;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEpE;AAED,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE;AAED,wBAAgB,qBAAqB,CAAC,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAErE;AAED,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE7D;AAKD,wBAAgB,mBAAmB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAElE;AAUD,wBAAgB,aAAa,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE5D;AAOD,wBAAgB,eAAe,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAE9D;AAKD,wBAAgB,oBAAoB,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,EAAE,SAAS,+BAEnE"}
@@ -1,7 +1,10 @@
1
1
  /**
2
2
  * Renders a Fun CDN icon. SVG URLs (chain logos) are fetched, viewBox-normalized
3
- * and drawn via `react-native-svg`'s `SvgXml` (RN's built-in `Image` can't
4
- * render SVG); raster URLs (token PNGs) go through `Image`. Clipped to a circle.
3
+ * and drawn via `SvgCss` (RN's built-in `Image` can't render SVG); raster URLs
4
+ * (token PNGs) go through `Image`. Clipped to a circle.
5
+ *
6
+ * `SvgCss` over `SvgXml` because many CDN logos style their paths only through a
7
+ * `<style>` block, which `SvgXml` drops — leaving them to paint black.
5
8
  */
6
9
  export interface FunIconProps {
7
10
  uri: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FunIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FunIcon.tsx"],"names":[],"mappings":"AA8BA;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAS,EAAE,WAAW,EAAE,EAAE,YAAY,+BAoGpE"}
1
+ {"version":3,"file":"FunIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/FunIcon.tsx"],"names":[],"mappings":"AA8BA;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,OAAO,CAAC,EAAE,GAAG,EAAE,IAAS,EAAE,WAAW,EAAE,EAAE,YAAY,+BAoGpE"}
@@ -13,7 +13,12 @@ export interface TokenChainIconProps {
13
13
  iconSrc?: string;
14
14
  /** CDN chain key for the badge overlay, e.g. `"ethereum"`. Omit to hide it. */
15
15
  chainKey?: string;
16
+ /**
17
+ * Direct URL for the badge — preferred over `chainKey`, and the way to badge
18
+ * by chain id, whose logo comes from `@funkit/chains` rather than the CDN key.
19
+ */
20
+ chainIconSrc?: string;
16
21
  size?: number;
17
22
  }
18
- export declare function TokenChainIcon({ symbol, iconSrc, chainKey, size, }: TokenChainIconProps): import("react").JSX.Element;
23
+ export declare function TokenChainIcon({ symbol, iconSrc, chainKey, chainIconSrc, size, }: TokenChainIconProps): import("react").JSX.Element;
19
24
  //# sourceMappingURL=TokenChainIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TokenChainIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/TokenChainIcon.tsx"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAS,GACV,EAAE,mBAAmB,+BA6BrB"}
1
+ {"version":3,"file":"TokenChainIcon.d.ts","sourceRoot":"","sources":["../../../src/icons/TokenChainIcon.tsx"],"names":[],"mappings":"AAOA;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,MAAM,EAAE,MAAM,CAAA;IACd,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,IAAS,GACV,EAAE,mBAAmB,+BA+BrB"}
@@ -16,6 +16,8 @@ export interface FunkitIdentity {
16
16
  loginType?: string;
17
17
  /** Email prefilled into the Swapped fiat ramp, when the host supplies one. */
18
18
  prefillFiatEmail?: string;
19
+ /** See {@link FunkitConfig.hideCryptoDeposit}. Defaulted to false here. */
20
+ hideCryptoDeposit: boolean;
19
21
  }
20
22
  /**
21
23
  * Host-facing identity config, mirroring the identity-relevant subset of the
@@ -42,6 +44,13 @@ export interface FunkitConfig {
42
44
  * invalid — it never blocks the flow.
43
45
  */
44
46
  prefillFiatEmail?: string;
47
+ /**
48
+ * Hide the built-in "Crypto" row on Add money, leaving only the fiat
49
+ * (Swapped) methods. Address generation still runs — the fiat rails
50
+ * derive their recipient from it. RN-only: the web SDK's `funkitConfig`
51
+ * has no such option yet.
52
+ */
53
+ hideCryptoDeposit?: boolean;
45
54
  }
46
55
  /**
47
56
  * 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,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,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
+ {"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,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,aAAa,EAAE,MAAM,CAAA;IACrB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,2EAA2E;IAC3E,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,YAAY;IAC3B,sBAAsB;IACtB,MAAM,EAAE,MAAM,CAAA;IACd;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,6DAA6D;IAC7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAgBD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,OAAO,CAAA;AASxC;;;GAGG;AACH,wBAAgB,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,CAahB;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,10 +1,11 @@
1
1
  import { QueryClient } from '@tanstack/react-query';
2
2
  import { type ReactNode } from 'react';
3
3
  import type { BackdropBlurRenderer } from '../flow/FlowSheet';
4
+ import { type HapticFeedback } from '../haptics/HapticsContext';
4
5
  import { type FunkitConfig } from '../identity/IdentityContext';
5
6
  import type { Locale } from '../locales/i18n';
6
7
  import { type FunkitThemeProviderProps } from '../theme/FunkitThemeProvider';
7
- import type { ClipboardWriter } from '../transfer/clipboard';
8
+ import type { ClipboardReader, ClipboardWriter } from '../transfer/clipboard';
8
9
  export interface FunkitProviderProps {
9
10
  children: ReactNode;
10
11
  /**
@@ -56,6 +57,12 @@ export interface FunkitProviderProps {
56
57
  * `void` return is treated as success.
57
58
  */
58
59
  copyToClipboard?: ClipboardWriter;
60
+ /**
61
+ * Clipboard read behind the withdrawal's "Paste" button. Defaults to the same
62
+ * bare-RN peer as {@link FunkitProviderProps.copyToClipboard} — inject your own
63
+ * (e.g. `getStringAsync` from `expo-clipboard`) where that module isn't linked.
64
+ */
65
+ pasteFromClipboard?: ClipboardReader;
59
66
  /**
60
67
  * Blur behind the flow sheet's scrim. The SDK ships the scrim only (no native
61
68
  * blur dependency), so pass your own blur view — e.g.
@@ -63,6 +70,14 @@ export interface FunkitProviderProps {
63
70
  * design's blurred backdrop.
64
71
  */
65
72
  renderBackdropBlur?: BackdropBlurRenderer;
73
+ /**
74
+ * Tactile tap for the withdrawal keypad. Omitted, the SDK taps through the
75
+ * optional `react-native-haptic-feedback` peer when it is installed, and
76
+ * stays silent when it isn't. Pass your own to use another module —
77
+ * `expo-haptics` in Expo Go, which links only Expo's own — or a no-op for
78
+ * silence.
79
+ */
80
+ hapticFeedback?: HapticFeedback;
66
81
  }
67
82
  /**
68
83
  * Top-level, user-facing provider for `@funkit/connect-rn` — the single
@@ -75,5 +90,5 @@ export interface FunkitProviderProps {
75
90
  * the {@link QueryClientProvider}. Host integration stays a single
76
91
  * `<FunkitProvider>`.
77
92
  */
78
- export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, renderBackdropBlur, }: FunkitProviderProps): import("react").JSX.Element;
93
+ export declare function FunkitProvider({ children, config, walletAddress, queryClient, themes, colorScheme, debug, locale, copyToClipboard, pasteFromClipboard, renderBackdropBlur, hapticFeedback, }: FunkitProviderProps): import("react").JSX.Element;
79
94
  //# 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;AAGlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,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,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;OAGG;IACH,MAAM,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"}
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;AAGlE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAClC,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,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAK7E,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,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB;;;OAGG;IACH,MAAM,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;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,eAAe,CAAA;IACpC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,oBAAoB,CAAA;IACzC;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,cAAc,CAAA;CAChC;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,EAClB,kBAAkB,EAClB,cAAc,GACf,EAAE,mBAAmB,+BA6DrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"FunkitStatsigProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitStatsigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAA;AAW/C,eAAO,MAAM,kBAAkB,EAC7B,oDAA6D,CAAA;AAI/D,eAAO,MAAM,gBAAgB,EAAG,cAAuB,CAAA;AAEvD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,WAAW,CAMb;AAED,UAAU,0BAA0B;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,qFAAqF;IACrF,MAAM,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,MAAM,EACN,aAAqB,GACtB,EAAE,0BAA0B,+BAuB5B"}
1
+ {"version":3,"file":"FunkitStatsigProvider.d.ts","sourceRoot":"","sources":["../../../src/providers/FunkitStatsigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAA;AAY1D,eAAO,MAAM,kBAAkB,EAC7B,oDAA6D,CAAA;AAI/D,eAAO,MAAM,gBAAgB,EAAG,cAAuB,CAAA;AAEvD;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,WAAW,CAMb;AAED,UAAU,0BAA0B;IAClC,QAAQ,EAAE,SAAS,CAAA;IACnB,qFAAqF;IACrF,MAAM,EAAE,MAAM,CAAA;IACd,4EAA4E;IAC5E,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,MAAM,EACN,MAAM,EACN,aAAqB,GACtB,EAAE,0BAA0B,+BAyC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"QrCodeScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/QrCodeScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AASnE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,MAAM,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC9C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAwJpD"}
1
+ {"version":3,"file":"QrCodeScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/QrCodeScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AASnE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,MAAM,EAAE,SAAS,CAAA;IACjB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,wEAAwE;IACxE,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAC9C;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BA0JpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectChainScreen.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,UAAU,cAAc;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAoE9D;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAsD9D"}
1
+ {"version":3,"file":"SelectChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectChainScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAEjE,UAAU,cAAc;IACtB,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAA;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;CACpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAqE9D;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,+BAwD9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectMethodScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AA2EnE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;uCACmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAmLhE"}
1
+ {"version":3,"file":"SelectMethodScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectMethodScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAA;AA4EnE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,mBAAmB,EAAE,CAAA;IAC9B,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb;;;;;OAKG;IACH,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAA;IACpC,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB;uCACmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAmLhE"}
@@ -0,0 +1,18 @@
1
+ import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
2
+ import type { DestinationChain } from '../withdrawal/useWithdrawalDestinationTokens';
3
+ export interface SelectReceiveTokenAndChainScreenProps {
4
+ chains: DestinationChain[];
5
+ /** What the withdrawal uses now. The draft opens on it; Confirm replaces it. */
6
+ committed?: WithdrawalToken;
7
+ onConfirm: (chainId: number, token: string) => void;
8
+ onBack: () => void;
9
+ }
10
+ /**
11
+ * Pick the token and chain a withdrawal lands as. Taps draft, Confirm commits.
12
+ *
13
+ * A step rather than a sheet, so `back` pops it and popping is what discards the
14
+ * draft. The `+N` row's list is a sheet *over* this screen, which therefore stays
15
+ * mounted — a token picked there is still drafted on the way back.
16
+ */
17
+ export declare function SelectReceiveTokenAndChainScreen({ chains, committed, onConfirm, onBack, }: SelectReceiveTokenAndChainScreenProps): import("react").JSX.Element;
18
+ //# sourceMappingURL=SelectReceiveTokenAndChainScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectReceiveTokenAndChainScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectReceiveTokenAndChainScreen.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAkBnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAA;AAGpF,MAAM,WAAW,qCAAqC;IACpD,MAAM,EAAE,gBAAgB,EAAE,CAAA;IAC1B,gFAAgF;IAChF,SAAS,CAAC,EAAE,eAAe,CAAA;IAC3B,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAAC,EAC/C,MAAM,EACN,SAAS,EACT,SAAS,EACT,MAAM,GACP,EAAE,qCAAqC,+BAwKvC"}
@@ -0,0 +1,13 @@
1
+ export interface SelectReceiveTokenScreenProps {
2
+ tokens: string[];
3
+ selectedToken?: string;
4
+ /** Drafts the token and hands control back to the screen underneath. */
5
+ onSelectToken: (token: string) => void;
6
+ onClose: () => void;
7
+ }
8
+ /**
9
+ * Every token a withdrawal can be received as, searchable — the tail behind the
10
+ * grid's `+N tokens` row. A tap drafts and returns; only the grid commits.
11
+ */
12
+ export declare function SelectReceiveTokenScreen({ tokens, selectedToken, onSelectToken, onClose, }: SelectReceiveTokenScreenProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=SelectReceiveTokenScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectReceiveTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectReceiveTokenScreen.tsx"],"names":[],"mappings":"AAgBA,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wEAAwE;IACxE,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,GACR,EAAE,6BAA6B,+BAiF/B"}
@@ -1 +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"}
1
+ {"version":3,"file":"SelectSourceTokenScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/SelectSourceTokenScreen.tsx"],"names":[],"mappings":"AAMA,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,+BA0G9B"}
@@ -0,0 +1,12 @@
1
+ export interface TransactionBreakdownScreenProps {
2
+ /** What the recipient should expect, e.g. `$99.94`. */
3
+ usdLabel: string;
4
+ /** The floor the trade won't execute below, e.g. `$99.81`. */
5
+ floorLabel: string;
6
+ }
7
+ /**
8
+ * What the quoted amount means, in prose: it is an estimate, it has a floor, and
9
+ * it settles in seconds. Opened from the ⓘ beside the amount.
10
+ */
11
+ export declare function TransactionBreakdownScreen({ usdLabel, floorLabel, }: TransactionBreakdownScreenProps): import("react").JSX.Element;
12
+ //# sourceMappingURL=TransactionBreakdownScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TransactionBreakdownScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/TransactionBreakdownScreen.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,+BAA+B;IAC9C,uDAAuD;IACvD,QAAQ,EAAE,MAAM,CAAA;IAChB,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,EACzC,QAAQ,EACR,UAAU,GACX,EAAE,+BAA+B,+BAgCjC"}
@@ -0,0 +1,48 @@
1
+ import type { WithdrawalToken } from '../flow/withdrawalFlowConfig';
2
+ export interface WithdrawAddressScreenProps {
3
+ /** Names the amount already confirmed, e.g. `Withdraw $100`. */
4
+ title: string;
5
+ /** The typed recipient. */
6
+ recipient: string;
7
+ onChangeRecipient: (value: string) => void;
8
+ /** Whether the recipient is an address at all; `undefined` while empty. */
9
+ isAddress: boolean | undefined;
10
+ onPaste: () => void;
11
+ /** A clipboard read is out — the Paste action is held down until it lands. */
12
+ isPasting?: boolean;
13
+ /** Omit to drop the connected-wallet shortcut. */
14
+ onUseConnected?: () => void;
15
+ /** A reason the address can't be used, past being well-formed. */
16
+ errorText?: string;
17
+ /** Non-blocking caution, e.g. a flagged-address notice. */
18
+ warningText?: string;
19
+ /** What the withdrawal is received as, and the picker for it. */
20
+ destinationToken: WithdrawalToken | undefined;
21
+ onPressReceive: () => void;
22
+ /**
23
+ * What the recipient gets, in the currency the screen leads with. `undefined`
24
+ * until the quote settles.
25
+ */
26
+ usdLabel: string | undefined;
27
+ /** The same amount in the token that arrives, e.g. `99.78 USDC`. */
28
+ tokenLabel: string | undefined;
29
+ onPressBreakdown: () => void;
30
+ /** The quote couldn't be got — shown where the figure would be. */
31
+ quoteErrorText?: string;
32
+ canSubmit: boolean;
33
+ /** The signature is in flight, or the quote it needs isn't settled. */
34
+ isBusy: boolean;
35
+ /** The signature is out, or has landed and the outcome is taking over. */
36
+ isSubmitting: boolean;
37
+ onSubmit: () => void;
38
+ /** An unrecoverable failure from the last attempt. */
39
+ executionErrorText?: string;
40
+ onBack: () => void;
41
+ onClose: () => void;
42
+ }
43
+ /**
44
+ * Step two of the crypto withdrawal: where the money goes, and what it arrives
45
+ * as. The amount was taken on the step before and is named in the title.
46
+ */
47
+ export declare function WithdrawAddressScreen({ title, recipient, onChangeRecipient, isAddress, onPaste, isPasting, onUseConnected, errorText, warningText, destinationToken, onPressReceive, usdLabel, tokenLabel, onPressBreakdown, quoteErrorText, canSubmit, isBusy, isSubmitting, onSubmit, executionErrorText, onBack, onClose, }: WithdrawAddressScreenProps): import("react").JSX.Element;
48
+ //# sourceMappingURL=WithdrawAddressScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawAddressScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAddressScreen.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AA6BnE,MAAM,WAAW,0BAA0B;IACzC,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC1C,2EAA2E;IAC3E,SAAS,EAAE,OAAO,GAAG,SAAS,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,kDAAkD;IAClD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,iEAAiE;IACjE,gBAAgB,EAAE,eAAe,GAAG,SAAS,CAAA;IAC7C,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,oEAAoE;IACpE,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,gBAAgB,EAAE,MAAM,IAAI,CAAA;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,SAAS,EAAE,OAAO,CAAA;IAClB,uEAAuE;IACvE,MAAM,EAAE,OAAO,CAAA;IACf,0EAA0E;IAC1E,YAAY,EAAE,OAAO,CAAA;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,iBAAiB,EACjB,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,kBAAkB,EAClB,MAAM,EACN,OAAO,GACR,EAAE,0BAA0B,+BA0H5B"}
@@ -0,0 +1,53 @@
1
+ export interface WithdrawAmountSource {
2
+ /** The source as the host names it, e.g. `USDC (Perps)`. */
3
+ label: string;
4
+ /** What the amount and the balance are denominated in, e.g. `USDG`. */
5
+ symbol: string;
6
+ chainId: number;
7
+ /** Direct token logo URL; falls back to a CDN lookup by symbol. */
8
+ iconSrc?: string;
9
+ }
10
+ export interface WithdrawAmountScreenProps {
11
+ title: string;
12
+ /** The withdrawal amount, in source-token units. */
13
+ amount: string;
14
+ /** Sets the amount outright, in source-token units (Use Max). */
15
+ onChangeAmount: (amount: string) => void;
16
+ /**
17
+ * The number in the amount display, which the numpad edits — dollars when
18
+ * {@link inUsd}, else source-token units. Held by the caller so it survives
19
+ * this screen leaving the stack.
20
+ */
21
+ input: string;
22
+ onChangeInput: (input: string) => void;
23
+ /** Whether the amount is being typed in dollars rather than token units. */
24
+ inUsd: boolean;
25
+ /** The amount in dollars. `undefined` when nothing prices it. */
26
+ usdLabel: string | undefined;
27
+ /** Switches denomination. `undefined` drops the swap entirely. */
28
+ onSwapDenomination: (() => void) | undefined;
29
+ /** Fraction digits the source token carries; caps what the numpad accepts. */
30
+ sourceDecimals?: number;
31
+ /** Spendable balance in source-token units. Omit to drop Use Max. */
32
+ balance?: string;
33
+ /** What the withdrawal is drawn from. */
34
+ source: WithdrawAmountSource;
35
+ /** Opens the source picker. Omit when the host offers a single source. */
36
+ onPressSource?: () => void;
37
+ /** Replaces the converted amount and tints the amount. */
38
+ errorText?: string;
39
+ canContinue: boolean;
40
+ onContinue: () => void;
41
+ onBack: () => void;
42
+ onClose: () => void;
43
+ }
44
+ /**
45
+ * Step one of the crypto withdrawal: how much, and what it comes out of. The
46
+ * destination, the recipient, the fees and the signature are the step that
47
+ * follows.
48
+ *
49
+ * The amount is driven by an in-app numpad rather than the system keyboard, so
50
+ * the sheet never has to move out from under it.
51
+ */
52
+ export declare function WithdrawAmountScreen({ title, amount, onChangeAmount, input, onChangeInput, inUsd, usdLabel, onSwapDenomination, sourceDecimals, balance, source, onPressSource, errorText, canContinue, onContinue, onBack, onClose, }: WithdrawAmountScreenProps): import("react").JSX.Element;
53
+ //# sourceMappingURL=WithdrawAmountScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawAmountScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawAmountScreen.tsx"],"names":[],"mappings":"AA4CA,MAAM,WAAW,oBAAoB;IACnC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAA;IACd,iEAAiE;IACjE,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACtC,4EAA4E;IAC5E,KAAK,EAAE,OAAO,CAAA;IACd,iEAAiE;IACjE,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,kEAAkE;IAClE,kBAAkB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAA;IAC5C,8EAA8E;IAC9E,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yCAAyC;IACzC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,MAAM,EACN,cAAc,EACd,KAAK,EACL,aAAa,EACb,KAAK,EACL,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,OAAO,EACP,MAAM,EACN,aAAa,EACb,SAAS,EACT,WAAW,EACX,UAAU,EACV,MAAM,EACN,OAAO,GACR,EAAE,yBAAyB,+BAmJ3B"}
@@ -5,13 +5,24 @@ export interface WithdrawCompleteScreenProps {
5
5
  isFailed?: boolean;
6
6
  /** Failed, and the funds are on their way back to the sender. */
7
7
  isRefunded?: boolean;
8
+ /** What left the account, for the copy a failure needs. */
8
9
  amountLabel: string;
10
+ /**
11
+ * What arrived, frozen at submission — the quote is long gone by now, so
12
+ * `undefined` means it was never priced rather than not priced yet.
13
+ */
14
+ usdLabel: string | undefined;
15
+ tokenLabel: string | undefined;
9
16
  onDone: () => void;
10
17
  }
11
18
  /**
12
- * The outcome of a submitted transfer. A missing or slow record reads as "still
13
- * settling" rather than a failure — it is written best-effort and the funds have
14
- * already moved — but an explicit terminal failure is shown as one.
19
+ * The outcome of a submitted withdrawal, on the figure the recipient step ended
20
+ * on: the amount stays where it was and the chrome around it is gone, so
21
+ * arriving here reads as the same screen settling rather than a new one.
22
+ *
23
+ * A missing or slow record reads as "still settling" rather than a failure — it
24
+ * is written best-effort and the funds have already moved — but an explicit
25
+ * terminal failure is shown as one.
15
26
  */
16
- export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
27
+ export declare function WithdrawCompleteScreen({ isPending, isFailed, isRefunded, amountLabel, usdLabel, tokenLabel, onDone, }: WithdrawCompleteScreenProps): import("react").JSX.Element;
17
28
  //# sourceMappingURL=WithdrawCompleteScreen.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,SAAS,EAAE,OAAO,CAAA;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAgB,EAChB,UAAkB,EAClB,WAAW,EACX,MAAM,GACP,EAAE,2BAA2B,+BAyD7B"}
1
+ {"version":3,"file":"WithdrawCompleteScreen.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCompleteScreen.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,2BAA2B;IAC1C,yEAAyE;IACzE,SAAS,EAAE,OAAO,CAAA;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,iEAAiE;IACjE,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,QAAgB,EAChB,UAAkB,EAClB,WAAW,EACX,QAAQ,EACR,UAAU,EACV,MAAM,GACP,EAAE,2BAA2B,+BAiE7B"}
@@ -6,10 +6,17 @@ import type { WithdrawalFlowCallbacks } from '../flow/withdrawalFlowConfig';
6
6
  *
7
7
  * The callbacks are fired from an effect, where a throw would unmount the tree —
8
8
  * they arrive guarded (`guardHostCallbacks`), which is what makes that safe.
9
+ *
10
+ * Closing the flow ends the follow with it — the SDK runs no work behind a shut
11
+ * sheet. The host still holds the hash `onWithdrawalSubmitted` gave it at submit
12
+ * and can settle the transfer itself; the log below is how often that happens.
9
13
  */
10
- export declare function WithdrawCryptoComplete({ txHash, amountLabel, callbacks, onDone, }: {
14
+ export declare function WithdrawCryptoComplete({ txHash, amountLabel, usdLabel, tokenLabel, callbacks, onDone, }: {
11
15
  txHash: string;
12
16
  amountLabel: string;
17
+ /** What arrived, frozen at submission. */
18
+ usdLabel: string | undefined;
19
+ tokenLabel: string | undefined;
13
20
  callbacks: WithdrawalFlowCallbacks;
14
21
  onDone: () => void;
15
22
  }): import("react").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAI3E;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,SAAS,EACT,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BAgCA"}
1
+ {"version":3,"file":"WithdrawCryptoComplete.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoComplete.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAK3E;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,UAAU,EACV,SAAS,EACT,MAAM,GACP,EAAE;IACD,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,uBAAuB,CAAA;IAClC,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,+BA8CA"}
@@ -0,0 +1,40 @@
1
+ import type { FlowNav, FlowScreen } from '../flow/FunkitFlowProvider';
2
+ import type { WithdrawalFlowCallbacks, WithdrawalFlowConfig } from '../flow/withdrawalFlowConfig';
3
+ import type { SafeClipboardReader } from '../transfer/clipboard';
4
+ /**
5
+ * The crypto rail's screens, and the one withdrawal they are all building.
6
+ *
7
+ * Each screen is its own entry in the flow's stack — `back` leaves the screen,
8
+ * not the rail — while the state behind them lives here, so navigating between
9
+ * them keeps the amount, the source and the quote. A screen added later (the
10
+ * recipient's address is next) is a case below and a `nav.navigate` from the one
11
+ * before it.
12
+ */
13
+ export declare function WithdrawCryptoSteps({ config, callbacks, current, nav, quoteInputFeeTokens, quoteInputFeeSettled, extraSourceGasUsd, pasteFromClipboard, onSubmitted, }: {
14
+ config: WithdrawalFlowConfig;
15
+ callbacks: WithdrawalFlowCallbacks;
16
+ current: FlowScreen | undefined;
17
+ nav: FlowNav;
18
+ /**
19
+ * A flat fee the venue takes off the withdrawal before it is quoted, in
20
+ * source-token units, or 0. The SDK only knows the number, never who charges
21
+ * it.
22
+ */
23
+ quoteInputFeeTokens: number;
24
+ quoteInputFeeSettled?: boolean;
25
+ /**
26
+ * A venue fee billed as source-chain gas, in USD, for the summary's network
27
+ * row, or 0.
28
+ */
29
+ extraSourceGasUsd: number;
30
+ /** Fills the recipient field from the clipboard. Guarded upstream. */
31
+ pasteFromClipboard: SafeClipboardReader;
32
+ onSubmitted: (result: {
33
+ txHash: string;
34
+ amountLabel: string;
35
+ /** What arrived, frozen here: the quote refreshes, the outcome doesn't. */
36
+ usdLabel: string | undefined;
37
+ tokenLabel: string | undefined;
38
+ }) => void;
39
+ }): import("react").JSX.Element;
40
+ //# sourceMappingURL=WithdrawCryptoSteps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithdrawCryptoSteps.d.ts","sourceRoot":"","sources":["../../../src/screens/WithdrawCryptoSteps.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,8BAA8B,CAAA;AAKrC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAiBhE;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,SAAS,EACT,OAAO,EACP,GAAG,EACH,mBAAmB,EACnB,oBAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,WAAW,GACZ,EAAE;IACD,MAAM,EAAE,oBAAoB,CAAA;IAC5B,SAAS,EAAE,uBAAuB,CAAA;IAClC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAA;IAC/B,GAAG,EAAE,OAAO,CAAA;IACZ;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB,sEAAsE;IACtE,kBAAkB,EAAE,mBAAmB,CAAA;IACvC,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,MAAM,EAAE,MAAM,CAAA;QACd,WAAW,EAAE,MAAM,CAAA;QACnB,2EAA2E;QAC3E,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;QAC5B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAC/B,KAAK,IAAI,CAAA;CACX,+BAoNA"}
@@ -20,4 +20,26 @@ export type ClipboardWriter = (value: string) => void | Promise<boolean>;
20
20
  * Returns whether the copy succeeded.
21
21
  */
22
22
  export declare function copyToClipboard(value: string): Promise<boolean>;
23
+ /**
24
+ * A clipboard read the host can inject via `FunkitProvider`'s
25
+ * `pasteFromClipboard`, for the same reason as {@link ClipboardWriter}: the
26
+ * bare-RN native module isn't linked everywhere. Returns the clipboard's text,
27
+ * or `undefined` when it can't be read.
28
+ */
29
+ export type ClipboardReader = () => string | undefined | Promise<string | undefined>;
30
+ /** A {@link ClipboardReader} that resolves to `undefined` instead of rejecting. */
31
+ export type SafeClipboardReader = () => Promise<string | undefined>;
32
+ /**
33
+ * Wraps a host-injected reader where it enters the SDK, so no paste call site
34
+ * has to defend itself. Only injected readers can fail; the default below is
35
+ * already guarded, and the type lets a host throw as easily as reject.
36
+ */
37
+ export declare function guardClipboardReader(read: ClipboardReader): SafeClipboardReader;
38
+ /**
39
+ * Default clipboard read — the mirror of {@link copyToClipboard}, and dynamic for
40
+ * the same reason: the native module is only evaluated when a paste actually
41
+ * happens, so a host that hasn't linked it degrades to a warning instead of
42
+ * crashing at startup.
43
+ */
44
+ export declare function pasteFromClipboard(): Promise<string | undefined>;
23
45
  //# sourceMappingURL=clipboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/transfer/clipboard.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAerE"}
1
+ {"version":3,"file":"clipboard.d.ts","sourceRoot":"","sources":["../../../src/transfer/clipboard.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAExE;;;;;;;;;;;;;GAaG;AACH,wBAAsB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAerE;AAED;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,MAC1B,MAAM,GACN,SAAS,GACT,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAE/B,mFAAmF;AACnF,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;AAEnE;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,eAAe,GACpB,mBAAmB,CAuBrB;AAED;;;;;GAKG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CActE"}
@@ -26,6 +26,12 @@ export interface UseFopsResult {
26
26
  refetch: () => void;
27
27
  /** Whether Swapped (cash) methods are offered at all. */
28
28
  isSwappedEnabled: boolean;
29
+ /**
30
+ * The /fops fetch has every input it needs to run (Swapped on, recipient +
31
+ * target resolved) — only then can a refetch change the result. Gates the
32
+ * Add money "Try again".
33
+ */
34
+ canRefetch: boolean;
29
35
  }
30
36
  /**
31
37
  * Thin RN port of `@funkit/connect`'s `useFops`: fetches the Swapped forms of
@@ -1 +1 @@
1
- {"version":3,"file":"useFops.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useFops.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAA;AAoBzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAqBzE,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,SAAS,EAAE,oBAAoB,EAAE,CAAA;IACjC,iFAAiF;IACjF,WAAW,EAAE,oBAAoB,EAAE,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAA;IAChB,gEAAgE;IAChE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yDAAyD;IACzD,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,gBAAgB,EAChB,OAAc,GACf,EAAE,aAAa,GAAG,aAAa,CA0B/B"}
1
+ {"version":3,"file":"useFops.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useFops.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAA;AAoBzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AAqBzE,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,cAAc,EAAE,qBAAqB,GAAG,SAAS,CAAA;IACjD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,SAAS,EAAE,oBAAoB,EAAE,CAAA;IACjC,iFAAiF;IACjF,WAAW,EAAE,oBAAoB,EAAE,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,OAAO,CAAA;IACnB,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAA;IAChB,gEAAgE;IAChE,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,yDAAyD;IACzD,gBAAgB,EAAE,OAAO,CAAA;IACzB;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAA;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EACtB,cAAc,EACd,gBAAgB,EAChB,OAAc,GACf,EAAE,aAAa,GAAG,aAAa,CA2B/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,OAAO,GACR,EAAE,sBAAsB,GAAG,sBAAsB,CA2BjD"}
1
+ {"version":3,"file":"useTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useTokenTransfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,UAAU,EACX,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EACL,KAAK,2BAA2B,EAChC,KAAK,SAAS,EACd,KAAK,uBAAuB,EAG7B,MAAM,sBAAsB,CAAA;AAuB7B,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,2BAA2B,GAAG,SAAS,CAAA;IACvD,8CAA8C;IAC9C,eAAe,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,wCAAwC;IACxC,cAAc,EAAE,UAAU,GAAG,SAAS,CAAA;IACtC,gFAAgF;IAChF,YAAY,EAAE,iCAAiC,GAAG,SAAS,CAAA;IAC3D,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAA;IACrB,0CAA0C;IAC1C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,UAAU,EAAE,uBAAuB,CAAA;IACnC,SAAS,EAAE,OAAO,CAAA;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,OAAO,GACR,EAAE,sBAAsB,GAAG,sBAAsB,CA+BjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"useWithdrawalFops.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useWithdrawalFops.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAGL,KAAK,qBAAqB,EAU3B,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,iCAAiC,CAAA;AAQxC;iDACiD;AACjD,eAAO,MAAM,uBAAuB,iBAAiB,CAAA;AAErD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,IAAI,EAAE,oBAAoB,EAAE,CAAA;IAC5B,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,yBAAyB,EAAE,OAAO,CAAA;IAClC,8EAA8E;IAC9E,qBAAqB,EAAE,OAAO,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,gFAAgF;IAChF,mBAAmB,EAAE,OAAO,CAAA;IAC5B,gFAAgF;IAChF,KAAK,EAAE,qBAAqB,CAAA;CAC7B;AAoND;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,OAAc,GACf,EAAE,uBAAuB,GAAG,uBAAuB,CA6HnD"}
1
+ {"version":3,"file":"useWithdrawalFops.d.ts","sourceRoot":"","sources":["../../../../src/transfer/hooks/useWithdrawalFops.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,oBAAoB,EAE1B,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAGL,KAAK,qBAAqB,EAU3B,MAAM,sBAAsB,CAAA;AAO7B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,iCAAiC,CAAA;AAQxC;iDACiD;AACjD,eAAO,MAAM,uBAAuB,iBAAiB,CAAA;AAErD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,IAAI,EAAE,oBAAoB,EAAE,CAAA;IAC5B,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB;;;;OAIG;IACH,yBAAyB,EAAE,OAAO,CAAA;IAClC,8EAA8E;IAC9E,qBAAqB,EAAE,OAAO,CAAA;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,gFAAgF;IAChF,mBAAmB,EAAE,OAAO,CAAA;IAC5B,gFAAgF;IAChF,KAAK,EAAE,qBAAqB,CAAA;CAC7B;AAoND;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,OAAc,GACf,EAAE,uBAAuB,GAAG,uBAAuB,CA+HnD"}
@@ -0,0 +1,15 @@
1
+ /** What a character in the amount is, which is what decides how it moves. */
2
+ export type AmountGlyphKind = 'prefix' | 'placeholder' | 'digit';
3
+ export interface AmountGlyph {
4
+ /** Identity across renders: what mounts is what animates in. */
5
+ key: string;
6
+ char: string;
7
+ kind: AmountGlyphKind;
8
+ }
9
+ /**
10
+ * The amount split into the characters that animate independently. Digits are
11
+ * keyed from the left, so appending or deleting at the right mounts or unmounts
12
+ * exactly that character and an inserted separator shifts the rest along.
13
+ */
14
+ export declare function amountGlyphs(value: string, prefix: string): AmountGlyph[];
15
+ //# sourceMappingURL=amountGlyphs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amountGlyphs.d.ts","sourceRoot":"","sources":["../../../src/utils/amountGlyphs.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,aAAa,GAAG,OAAO,CAAA;AAEhE,MAAM,WAAW,WAAW;IAC1B,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,eAAe,CAAA;CACtB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,CAiBzE"}
@@ -0,0 +1,20 @@
1
+ export declare const ASSET_GRID_COLUMNS = 5;
2
+ export declare const ASSET_GRID_GAP = 16;
3
+ /** Shared so a cell's selection ring lands on the circle the caller passed it. */
4
+ export declare const ASSET_GRID_AVATAR_SIZE = 58;
5
+ /**
6
+ * The cells a capped grid offers, and how many the `+N` affordance stands for.
7
+ *
8
+ * - `mustShow` takes the **last** slot when the head would have hidden it, so a
9
+ * pick made behind the `+N` row comes back without adding a row or moving any
10
+ * other cell. Matched by identity.
11
+ * - A non-positive `capacity` means no cap, so a caller still resolving its limit
12
+ * shows what it has rather than an empty grid.
13
+ */
14
+ export declare function gridCells<T>(items: T[], capacity: number, mustShow?: T): {
15
+ cells: T[];
16
+ overflowCount: number;
17
+ };
18
+ /** A non-positive `size` can't advance the cursor, so it stays one row. */
19
+ export declare function chunk<T>(items: T[], size: number): T[][];
20
+ //# sourceMappingURL=assetGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assetGrid.d.ts","sourceRoot":"","sources":["../../../src/utils/assetGrid.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,IAAI,CAAA;AACnC,eAAO,MAAM,cAAc,KAAK,CAAA;AAChC,kFAAkF;AAClF,eAAO,MAAM,sBAAsB,KAAK,CAAA;AAExC;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,KAAK,EAAE,CAAC,EAAE,EACV,QAAQ,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,CAAC,GACX;IAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAavC;AAED,2EAA2E;AAC3E,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,EAAE,CASxD"}
@@ -0,0 +1,13 @@
1
+ import type { WalletExecutionErrorCode } from '@funkit/connect-core';
2
+ import type { TFunction } from 'i18next';
3
+ /**
4
+ * What the user reads for a failure core classified. Web's copy, per cause.
5
+ *
6
+ * A cause core could name gets that copy: it is translated and says what to do,
7
+ * which no provider string does. Everything else falls back to the error's own
8
+ * text — "please try again" is the one message that helps nobody, and the
9
+ * failures that land here are the ones neither we nor the user can otherwise
10
+ * diagnose. Truncated, since a relay error can run to paragraphs.
11
+ */
12
+ export declare function executionErrorMessage(t: TFunction, code: WalletExecutionErrorCode, message?: string): string;
13
+ //# sourceMappingURL=executionErrorMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"executionErrorMessage.d.ts","sourceRoot":"","sources":["../../../src/utils/executionErrorMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAMxC;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,CAAC,EAAE,SAAS,EACZ,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,MAAM,GACf,MAAM,CAcR"}