@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,78 @@
1
1
  # @funkit/connect-rn
2
2
 
3
+ ## 3.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - bb62bf9: `@funkit/connect-rn/clients/lighter` exports `useLighterWithdrawal`, which returns the ready Fast withdrawal method to hand to `beginWithdrawal`.
8
+ - 1c78322: Lighter Fast withdrawals: USDC Perps out of the user's Lighter L2 account to any supported chain.
9
+ - 1cc26d5: Lighter Fast withdrawals now apply and display the unstaked fee for users below the staking threshold.
10
+ - 4f94ba7: Withdrawal flows accept host-supplied methods via `WithdrawalFlowConfig.methods`, and `@funkit/connect-rn/clients/lighter` carries Lighter's withdrawal configuration.
11
+ - 4d46db3: `@funkit/connect-rn/clients/lighter` exports `useLighterWithdrawalMethods`, which resolves a Lighter account's Fast and Native Bridge withdrawal rows.
12
+ - a381a6a: Withdrawal methods can declare a flat fee taken off the amount before quoting, and a fee billed as source-chain gas that lands in the summary's network cost.
13
+ - f9953fc: The crypto withdrawal form now lets the user pick between the source tokens the host configured.
14
+
15
+ ### Patch Changes
16
+
17
+ - e150c20: Log the Swapped embed's full flow lifecycle, matching the web SDK's coverage.
18
+ - cb1caa9: No consumer-facing changes.
19
+ - 2147ad7: No consumer-facing changes.
20
+ - 90be596: No consumer-facing changes.
21
+ - d846615: Fix the withdrawal recipient shortcut filling the payer's identifier instead of the connected wallet address.
22
+ - 3a6351a: The withdrawal recipient shortcut no longer offers the zero address.
23
+ - a6cc332: Renamed `toWithdrawalExecutionErrorCode` to `toWalletExecutionErrorCode` and its `WithdrawalExecutionErrorCode` type to `WalletExecutionErrorCode`.
24
+
25
+ Migration: rename the import — the codes (`insufficient-gas`, `switch-chain`, `generic`) and behavior are unchanged.
26
+
27
+ - Updated dependencies [b361db0]
28
+ - Updated dependencies [332d186]
29
+ - Updated dependencies [aafdbba]
30
+ - Updated dependencies [c68c3d6]
31
+ - Updated dependencies [d2336bb]
32
+ - Updated dependencies [35b64db]
33
+ - Updated dependencies [a5c5bed]
34
+ - Updated dependencies [86b10f0]
35
+ - Updated dependencies [a6cc332]
36
+ - Updated dependencies [3a6351a]
37
+ - @funkit/connect-core@3.0.0
38
+
39
+ ## 3.5.0
40
+
41
+ ### Minor Changes
42
+
43
+ - 26b59c4: feat(connect-rn): dim the host app behind the flow sheet, with an optional host-supplied backdrop blur
44
+ - fba0b56: Add Lighter deposit support to `@funkit/connect-rn`: external user IDs are sent verbatim and the deposit recipient resolves to the user's Lighter L2 main-account index, never the L1 wallet address.
45
+ - 4911ff9: Add crypto withdrawal configuration: selectable source tokens, an integrator balance callback, and min/max limits.
46
+ - be8118a: Crypto withdrawals can now choose which asset and chain the recipient is paid in.
47
+ - c4b476d: Crypto withdrawals can now be submitted on React Native, with on-chain status polling.
48
+
49
+ ### Patch Changes
50
+
51
+ - a7258d9: feat: shadow-compare geo lookups against Fun's first-party endpoint, promotable via the `enable-fun-geo-primary` gate
52
+ - 7110ca9: Match the crypto withdrawal's error and warning copy to the web SDK's, in every locale.
53
+ - 7110ca9: Expose the relay fee breakdown helper and the debounced-value hook used to price a withdrawal.
54
+ - 30027d7: Validate the crypto withdrawal form and name the remaining blocker on the submit button.
55
+ - c4b476d: A host callback that throws no longer interrupts the deposit or withdrawal flow.
56
+ - 2a56dde: feat(connect-rn): log the deposit and withdrawal config when a flow begins
57
+ - 9fbd930: fix(connect-rn): reduce log payload size for host-supplied React nodes
58
+ - 09de4e4: fix(connect-rn): logging no longer throws when log context can't be serialized
59
+ - 18c2f00: Source the read-only RPC client from @funkit/connect-core instead of a local copy.
60
+ - 0413098: The crypto withdrawal screen now takes an amount and a recipient address.
61
+ - Updated dependencies [8eb9f08]
62
+ - Updated dependencies [195843e]
63
+ - Updated dependencies [0872c5f]
64
+ - Updated dependencies [18c2f00]
65
+ - Updated dependencies [2ed588e]
66
+ - Updated dependencies [a7258d9]
67
+ - Updated dependencies [fba0b56]
68
+ - Updated dependencies [c4b476d]
69
+ - Updated dependencies [12d5574]
70
+ - Updated dependencies [7110ca9]
71
+ - Updated dependencies [c4b476d]
72
+ - Updated dependencies [5d71640]
73
+ - @funkit/api-base@7.0.0
74
+ - @funkit/connect-core@2.5.0
75
+
3
76
  ## 3.4.0
4
77
 
5
78
  ### Minor Changes