@funkit/connect 11.6.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/{chunk-67BKQQNG.js → chunk-2RND3WWH.js} +1 -1
  3. package/dist/{chunk-L67HP4HQ.js → chunk-53FF4ZHH.js} +1 -1
  4. package/dist/{chunk-4YEAUICE.js → chunk-DH3DS4FX.js} +1 -0
  5. package/dist/clients/chunk-27VBRE7W.js +4907 -0
  6. package/dist/clients/{chunk-UPB4JKJG.js → chunk-37Q6DUR7.js} +12 -7
  7. package/dist/clients/chunk-3DHSLLCU.js +331 -0
  8. package/dist/clients/{chunk-DUBZPIDN.js → chunk-3J2GOB5X.js} +1 -1
  9. package/dist/clients/{chunk-LYZLETOM.js → chunk-A5JW3UI6.js} +1 -1
  10. package/dist/clients/chunk-BCNE3ZKM.js +190 -0
  11. package/dist/clients/chunk-BWJC2WD7.js +4899 -0
  12. package/dist/clients/{chunk-ZQZDPRWC.js → chunk-DYV3LRSE.js} +1 -1
  13. package/dist/clients/{chunk-Y7WLUPTX.js → chunk-EQA5U4V6.js} +8 -8
  14. package/dist/clients/chunk-EYMFEWQL.js +30 -0
  15. package/dist/clients/chunk-FPOGADLJ.js +4899 -0
  16. package/dist/clients/chunk-HB7S3NDI.js +15 -0
  17. package/dist/clients/chunk-HDFCM5UL.js +15 -0
  18. package/dist/clients/{chunk-IYCZWLAF.js → chunk-IAIRECDV.js} +8 -37
  19. package/dist/clients/chunk-JVR4CX6N.js +296 -0
  20. package/dist/clients/chunk-NEKHTWTT.js +331 -0
  21. package/dist/clients/chunk-PA7WW6VC.js +296 -0
  22. package/dist/clients/chunk-R6UAC2TB.js +190 -0
  23. package/dist/clients/chunk-RHOSJED2.js +335 -0
  24. package/dist/clients/chunk-SKDFSMAO.js +30 -0
  25. package/dist/clients/chunk-TI2NG2Z6.js +30 -0
  26. package/dist/clients/chunk-TZFXFVDW.js +296 -0
  27. package/dist/clients/chunk-VE6QD5IM.js +149 -0
  28. package/dist/clients/chunk-VXX2XK5J.js +190 -0
  29. package/dist/clients/{chunk-WNZ6QV5Q.js → chunk-WXSFLUPZ.js} +79 -15
  30. package/dist/clients/chunk-XSRAZSYG.js +15 -0
  31. package/dist/clients/fanatics.css +4686 -4659
  32. package/dist/clients/fanatics.js +7 -9
  33. package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
  34. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  35. package/dist/clients/internal/nado/withdrawalForm.css +4712 -4682
  36. package/dist/clients/internal/nado/withdrawalForm.js +37 -13
  37. package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
  38. package/dist/clients/lighter.css +4712 -4682
  39. package/dist/clients/lighter.js +50 -30
  40. package/dist/clients/mallard.js +4 -4
  41. package/dist/clients/nado.js +3 -3
  42. package/dist/clients/polymarket/createPolymarketDepositConfig.d.ts +28 -19
  43. package/dist/clients/polymarket/createPolymarketDepositConfig.js +5 -4
  44. package/dist/clients/polymarket/index.d.ts +0 -1
  45. package/dist/clients/polymarket/index.js +4 -17
  46. package/dist/clients/polymarket/polymarket.d.ts +12 -27
  47. package/dist/clients/polymarket/polymarket.js +1 -1
  48. package/dist/components/AsyncImage/useAsyncImage.d.ts +2 -0
  49. package/dist/components/Box/Box.d.ts +15 -15
  50. package/dist/components/Dialog/Dialog.d.ts +8 -1
  51. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +3 -1
  52. package/dist/components/FunTransactionSummary/PaymentFeesSummary.track.d.ts +10 -0
  53. package/dist/components/ModalHeaderTabs/ModalHeaderTabs.d.ts +23 -0
  54. package/dist/consts/polymarket.d.ts +14 -0
  55. package/dist/css/sprinkles.css.d.ts +17 -15
  56. package/dist/domains/polymarketPerps.d.ts +14 -0
  57. package/dist/hooks/queries/useFops.d.ts +3 -1
  58. package/dist/hooks/track/CheckoutModalEvent.d.ts +1 -0
  59. package/dist/hooks/track/analytics/checkout.d.ts +10 -0
  60. package/dist/hooks/track/analytics/events.d.ts +20 -1
  61. package/dist/hooks/track/analytics/quote.d.ts +3 -1
  62. package/dist/hooks/track/analytics/resolveExecutionProgressContext.d.ts +2 -1
  63. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +0 -16
  64. package/dist/hooks/track/analytics/useWithdrawalAnalytics.d.ts +12 -1
  65. package/dist/hooks/useCheckoutTransferInit.d.ts +3 -1
  66. package/dist/hooks/useFittedText.d.ts +19 -0
  67. package/dist/hooks/usePolymarketAccountBalances.d.ts +13 -25
  68. package/dist/hooks/useTextMeasurer.d.ts +1 -1
  69. package/dist/hooks/useUpdateActiveFunkitCheckout.d.ts +10 -0
  70. package/dist/index.css +4712 -4682
  71. package/dist/index.js +5121 -3752
  72. package/dist/modals/CheckoutModal/CheckoutModalPrefetchedHooks.d.ts +2 -1
  73. package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -0
  74. package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +6 -1
  75. package/dist/modals/PolymarketPerpsTransfer/DirectionSwapButton.d.ts +1 -11
  76. package/dist/modals/PolymarketPerpsTransfer/PerpsHeaderTabs.d.ts +29 -0
  77. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.css.d.ts +9 -0
  78. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferAmountInput.d.ts +15 -0
  79. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferBody.d.ts +12 -0
  80. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsPrefetch.d.ts +7 -0
  81. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +16 -2
  82. package/dist/modals/PolymarketPerpsTransfer/TransferAccountsCard.d.ts +12 -0
  83. package/dist/modals/PolymarketPerpsTransfer/TransferActionButton.d.ts +8 -1
  84. package/dist/modals/PolymarketPerpsTransfer/TransferPercentOptions.d.ts +13 -0
  85. package/dist/modals/PolymarketPerpsTransfer/usePerpsHeaderTabsState.d.ts +28 -0
  86. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +31 -5
  87. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +6 -0
  88. package/dist/modals/WithdrawalModal/useWithdrawalChainPreference.d.ts +17 -0
  89. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +2 -1
  90. package/dist/providers/FunkitCheckoutContext/index.d.ts +13 -1
  91. package/dist/providers/FunkitCheckoutContext/types.d.ts +44 -20
  92. package/dist/providers/FunkitShadowHostProvider.d.ts +31 -0
  93. package/dist/providers/FunkitThemeProvider.d.ts +3 -0
  94. package/dist/providers/FunkitThemeStyle.d.ts +12 -0
  95. package/dist/shadow/loadShadowCss.d.ts +9 -0
  96. package/dist/shadow/useMountShadowHost.d.ts +18 -0
  97. package/dist/shadow/useShadowCss.d.ts +6 -0
  98. package/dist/shadow-css.js +1 -1
  99. package/dist/themes/baseTheme.js +1 -1
  100. package/dist/themes/darkTheme.js +2 -2
  101. package/dist/themes/lightTheme.js +2 -2
  102. package/dist/wallets/walletConnectors/chunk-2VP2F6EK.js +70 -0
  103. package/dist/wallets/walletConnectors/chunk-4T6ZSRJF.js +69 -0
  104. package/dist/wallets/walletConnectors/chunk-6BW3HLBG.js +96 -0
  105. package/dist/wallets/walletConnectors/chunk-CCQV2ZET.js +218 -0
  106. package/dist/wallets/walletConnectors/chunk-CPI4TD43.js +99 -0
  107. package/dist/wallets/walletConnectors/chunk-F5XEEVG6.js +98 -0
  108. package/dist/wallets/walletConnectors/chunk-HNRB7KJU.js +92 -0
  109. package/dist/wallets/walletConnectors/chunk-HTHAK6XB.js +93 -0
  110. package/dist/wallets/walletConnectors/chunk-MIQTHJ6X.js +66 -0
  111. package/dist/wallets/walletConnectors/chunk-RB3HR4R2.js +95 -0
  112. package/dist/wallets/walletConnectors/chunk-RVOY537T.js +100 -0
  113. package/dist/wallets/walletConnectors/chunk-STVVP43G.js +94 -0
  114. package/dist/wallets/walletConnectors/chunk-UK7C2JXW.js +87 -0
  115. package/dist/wallets/walletConnectors/chunk-VAPGUPHO.js +92 -0
  116. package/dist/wallets/walletConnectors/chunk-VTM6EECM.js +110 -0
  117. package/dist/wallets/walletConnectors/chunk-X6CGV36L.js +103 -0
  118. package/dist/wallets/walletConnectors/chunk-YEZM4CK4.js +96 -0
  119. package/dist/wallets/walletConnectors/chunk-ZNX4EMPB.js +106 -0
  120. package/dist/wallets/walletConnectors/index.js +33 -33
  121. package/package.json +5 -5
  122. package/dist/clients/chunk-DSZHYQPX.js +0 -31
  123. package/dist/clients/chunk-FNB7OPJI.js +0 -1316
  124. package/dist/clients/chunk-HZP4DXIZ.js +0 -231
  125. package/dist/clients/chunk-LUHEVXPD.js +0 -109
  126. package/dist/clients/chunk-SX3CX34W.js +0 -1177
  127. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +0 -17545
  128. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.d.ts +0 -30
  129. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +0 -20
  130. package/dist/clients/polymarket/index.css +0 -17545
  131. package/dist/modals/PolymarketPerpsTransfer/PerpsTransferRows.d.ts +0 -10
  132. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.css.d.ts +0 -13
  133. package/dist/modals/PolymarketPerpsTransfer/TransferAmountRow.d.ts +0 -27
package/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - edff74c: Remove the superseded PolymarketDepositAccountDropdown export and the legacy transfer-row internals
8
+
9
+ Migration: `PolymarketDepositAccountDropdown` is removed from `@funkit/connect/clients/polymarket` — `createPolymarketDepositConfig` drives account switching via the header tabs, so no top-component wiring is needed.
10
+
11
+ ### Minor Changes
12
+
13
+ - b1ec751: Improve analytics coverage for crypto, cash, and configured withdrawal method selections.
14
+ - 9cda83e: Perps transfers now display live integrator balances and prevent additional transfers while funds are pending.
15
+ - 837a63b: Support product-specific deposit access in Polymarket deposit and transfer modals.
16
+ - 93b969d: feat: perps-enabled Polymarket deposits show Predictions | Perps | Transfer header tabs (with live balance subtitle) in place of the "Deposit to" dropdown, and the deposit modal title is now "Deposit" for both destinations
17
+ - ad7668a: feat: Polymarket perps transfer screen redesigned with a centered amount input, percent quick options, and a From/To accounts card
18
+
19
+ ### Patch Changes
20
+
21
+ - 16ad566: Keep standalone tooltips inside the themed style scope.
22
+ - 28ba189: Polymarket perps transfer now logs percent quick-option selections and reports how the amount was chosen (manual / preset / max) on transfer
23
+ - 2da45c7: Deposit Cash no longer flashes its skeleton or blinks its icons when switching between Polymarket Predictions and Perps.
24
+ - 7bff89e: `createPolymarketWithdrawalConfig` now always uses the wallet-unwrap flow when wallet params are supplied, matching the fully rolled-out `enable-polymarket-wallet-withdrawal` gate.
25
+ - a23e9c8: Keep amount and recipient text readable across responsive input widths.
26
+ - 5cbd79d: Track manual deposit and withdrawal transaction-breakdown expansions with visible fee context.
27
+ - 3b5f688: Remember each account's last successful withdrawal destination chain, behind the `remember-withdrawal-chain` gate.
28
+ - Updated dependencies [b5d384e]
29
+ - Updated dependencies [b5d384e]
30
+ - Updated dependencies [67bcc99]
31
+ - Updated dependencies [60ffb40]
32
+ - Updated dependencies [838b4a7]
33
+ - Updated dependencies [60ffb40]
34
+ - Updated dependencies [c60f3b1]
35
+ - Updated dependencies [b5d384e]
36
+ - Updated dependencies [d6629ee]
37
+ - Updated dependencies [3b5f688]
38
+ - @funkit/api-base@7.3.0
39
+ - @funkit/connect-core@4.3.0
40
+ - @funkit/chains@2.2.1
41
+ - @funkit/utils@4.0.3
42
+
43
+ ## 11.7.0
44
+
45
+ ### Minor Changes
46
+
47
+ - cbb4306: Encapsulate funkit modal in shadow dom
48
+ - 79c49b6: Fix withdrawal callbacks requiring the cashier form factor and a checkout config to be set.
49
+
50
+ ### Patch Changes
51
+
52
+ - 08eb810: Expose raw dynamic routing IDs on Statsig v2 checkout events.
53
+ - 6a0dc34: Fall back to light DOM when the shadow host cannot mount
54
+ - 2364013: fix: Nado withdrawals request their deposit address with a checksummed recipient
55
+ - 2ce10fc: Show the connected wallet in the withdrawal recipient-address field when it is selected as the recipient.
56
+ - Updated dependencies [08eb810]
57
+ - Updated dependencies [b2c2340]
58
+ - Updated dependencies [2364013]
59
+ - @funkit/utils@4.0.2
60
+ - @funkit/connect-core@4.2.0
61
+ - @funkit/api-base@7.2.1
62
+
3
63
  ## 11.6.0
4
64
 
5
65
  ### Minor Changes
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-4YEAUICE.js";
4
+ } from "./chunk-DH3DS4FX.js";
5
5
 
6
6
  // src/themes/lightTheme.ts
7
7
  var accentColors = {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-4YEAUICE.js";
4
+ } from "./chunk-DH3DS4FX.js";
5
5
 
6
6
  // src/themes/darkTheme.ts
7
7
  var accentColors = {
@@ -327,6 +327,7 @@ var baseTheme = ({
327
327
  cryptoCashToggleContainerPadding: "3px",
328
328
  cryptoCashToggleMarginBottom: "16px",
329
329
  cryptoCashToggleMarginTop: "24px",
330
+ cryptoCashToggleMarginTopWithHeaderTabs: "20px",
330
331
  cryptoCashToggleTabPaddingY: "6px",
331
332
  dropdownItemIconGap: "4px",
332
333
  dropdownItemPaddingX: "4px",