@funkit/connect 12.20.0 → 12.21.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 (93) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/clients/{chunk-N46CL4ZT.js → chunk-4NWQR25X.js} +1 -1
  3. package/dist/clients/{chunk-VFKEUHZT.js → chunk-6XJV626L.js} +1 -1
  4. package/dist/clients/chunk-B67ESBGC.js +108 -0
  5. package/dist/clients/{chunk-TLFE74BL.js → chunk-DAMICUCH.js} +3 -3
  6. package/dist/clients/{chunk-2BBOZQLZ.js → chunk-FIJU6HZM.js} +1 -1
  7. package/dist/clients/{chunk-TFIJZTGQ.js → chunk-MTKOZB6U.js} +1 -1
  8. package/dist/clients/{chunk-5NYKSTGH.js → chunk-S4SMCBQ4.js} +1 -1
  9. package/dist/clients/{chunk-Y7ONHWCW.js → chunk-T4Q43DNC.js} +2 -2
  10. package/dist/clients/{chunk-R5VAX6YA.js → chunk-YSQX5Z3F.js} +41 -25
  11. package/dist/clients/fanatics.d.ts +5 -7
  12. package/dist/clients/fanatics.js +4 -4
  13. package/dist/clients/internal/nado/withdrawalCallback.js +4 -4
  14. package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
  15. package/dist/clients/internal/nado/withdrawalForm.js +4 -4
  16. package/dist/clients/internal/nado/withdrawalStatus.js +4 -4
  17. package/dist/clients/lighter.js +5 -5
  18. package/dist/clients/lighterRh.js +1 -1
  19. package/dist/clients/mallard.js +3 -3
  20. package/dist/clients/nado.js +4 -4
  21. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -3
  22. package/dist/clients/polymarket/index.js +3 -3
  23. package/dist/clients/polymarket/polymarket.d.ts +22 -22
  24. package/dist/clients/polymarket/polymarket.js +2 -2
  25. package/dist/components/Avatar/emojiAvatarForAddress.d.ts +35 -35
  26. package/dist/components/Box/Box.d.ts +63 -63
  27. package/dist/components/ConnectButton/ConnectButton.d.ts +16 -15
  28. package/dist/components/Dialog/Dialog.d.ts +12 -4
  29. package/dist/components/Dialog/hooks.d.ts +3 -3
  30. package/dist/components/FreeUsdcBanner/FreeUsdcBanner.d.ts +2 -2
  31. package/dist/components/FunBottomBar/FunBottomBar.d.ts +3 -1
  32. package/dist/components/FunInfoBanner/InfoBanner.d.ts +1 -1
  33. package/dist/components/FunInput/FunInput.d.ts +1 -1
  34. package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
  35. package/dist/components/FunTooltip/FunTooltip.d.ts +2 -2
  36. package/dist/components/HighPriceImpactAlert/HighPriceImpactAlert.d.ts +7 -0
  37. package/dist/components/Icons/GreenRoundCheckmark.d.ts +2 -1
  38. package/dist/components/Icons/StatusIcons.css.d.ts +2 -2
  39. package/dist/components/Icons/StatusIcons.d.ts +2 -2
  40. package/dist/components/LargeAmountInput/LargeAmountInput.d.ts +3 -1
  41. package/dist/components/ModalSelection/ModalSelection.d.ts +4 -4
  42. package/dist/components/TokenSwapWidget/TokenSwapCard/TokenSwapCard.d.ts +5 -2
  43. package/dist/components/TokenSwapWidget/TokenSwapWidget.d.ts +2 -0
  44. package/dist/consts/checkout.d.ts +8 -8
  45. package/dist/consts/polymarket.d.ts +2 -2
  46. package/dist/consts/quote.d.ts +25 -15
  47. package/dist/css/cssObjectFromTheme.d.ts +1 -1
  48. package/dist/css/sprinkles.css.d.ts +78 -78
  49. package/dist/domains/bridge.d.ts +1 -1
  50. package/dist/domains/convert/assets.d.ts +6 -0
  51. package/dist/domains/convert/screen.d.ts +4 -0
  52. package/dist/domains/priceImpact.d.ts +14 -0
  53. package/dist/hooks/queries/useMeldLimits.d.ts +45 -45
  54. package/dist/hooks/queries/useWithdrawalQuote.d.ts +62 -62
  55. package/dist/hooks/track/useTrack.d.ts +1 -1
  56. package/dist/hooks/useCheckoutQuoteNotification.d.ts +3 -3
  57. package/dist/hooks/useConvertBalances.d.ts +1 -1
  58. package/dist/hooks/useConvertQuote.d.ts +1 -1
  59. package/dist/hooks/useDynamicRoutes.d.ts +1 -1
  60. package/dist/hooks/useFrogAccount.d.ts +77 -77
  61. package/dist/hooks/useIsomorphicEffect.d.ts +2 -2
  62. package/dist/hooks/usePaymentMethodIcon.d.ts +1 -1
  63. package/dist/hooks/usePaymentSources.d.ts +1 -1
  64. package/dist/hooks/usePolymarketAccountBalances.d.ts +1 -1
  65. package/dist/index.d.ts +2 -0
  66. package/dist/index.js +1437 -1157
  67. package/dist/modals/CheckoutModal/Convert/ConvertChainRail.d.ts +13 -0
  68. package/dist/modals/CheckoutModal/Convert/ConvertSelectDestinationStep.d.ts +6 -4
  69. package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +13 -2
  70. package/dist/modals/PolymarketPerpsTransfer/PolymarketPerpsTransferScreen.d.ts +6 -1
  71. package/dist/modals/PolymarketPerpsTransfer/usePerpsTransferForm.d.ts +6 -1
  72. package/dist/modals/ProfileDetails/FunProfileViews/Home/HomeCheckoutDisplayRow.css.d.ts +1 -1
  73. package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -1
  74. package/dist/modals/WithdrawalModal/useMultiSourceWithdrawal.d.ts +1 -1
  75. package/dist/providers/FunkitCheckoutContext/types.d.ts +3 -0
  76. package/dist/providers/FunkitStatsigProvider.d.ts +1 -1
  77. package/dist/providers/GeneralWalletProvider.d.ts +21 -21
  78. package/dist/providers/ModalSizeContext.d.ts +4 -4
  79. package/dist/themes/baseTheme.d.ts +1 -1
  80. package/dist/themes/darkTheme.d.ts +6 -4
  81. package/dist/themes/lightTheme.d.ts +6 -4
  82. package/dist/utils/checkout.d.ts +1 -1
  83. package/dist/utils/customer.d.ts +96 -96
  84. package/dist/utils/datadogBrowserLogsTransport.d.ts +11 -5
  85. package/dist/utils/datadogPageExit.d.ts +5 -0
  86. package/dist/utils/funError.d.ts +26 -0
  87. package/dist/utils/funLogger.d.ts +2 -1
  88. package/dist/utils/shakeElement.d.ts +7 -0
  89. package/dist/wallets/computeWalletConnectMetaData.d.ts +1 -1
  90. package/dist/wallets/walletConnectors/index.js +34 -34
  91. package/package.json +9 -9
  92. package/dist/clients/chunk-GTPMJGCF.js +0 -52
  93. package/dist/modals/CheckoutModal/Convert/ConvertChainPills.d.ts +0 -14
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useFunkitTranslation
4
- } from "./chunk-TFIJZTGQ.js";
4
+ } from "./chunk-MTKOZB6U.js";
5
5
  import {
6
6
  getAccount,
7
7
  sendTransaction,
@@ -14,10 +14,10 @@ import {
14
14
  useAccount,
15
15
  useConfig
16
16
  } from "./chunk-2W2P3OS6.js";
17
- import "./chunk-R5VAX6YA.js";
17
+ import "./chunk-YSQX5Z3F.js";
18
18
  import {
19
19
  logger
20
- } from "./chunk-GTPMJGCF.js";
20
+ } from "./chunk-B67ESBGC.js";
21
21
 
22
22
  // src/clients/mallard.tsx
23
23
  import { ROBINHOOD_MAINNET_CHAIN_ID } from "@funkit/chains";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "./chunk-TLFE74BL.js";
4
+ } from "./chunk-DAMICUCH.js";
5
5
  import "./chunk-TKEBGMVW.js";
6
- import "./chunk-VFKEUHZT.js";
6
+ import "./chunk-6XJV626L.js";
7
7
  import "./chunk-LICTGZXW.js";
8
8
  import "./chunk-OODIKHYE.js";
9
9
  import {
@@ -12,10 +12,10 @@ import {
12
12
  } from "./chunk-2W2P3OS6.js";
13
13
  import {
14
14
  i18n_default
15
- } from "./chunk-R5VAX6YA.js";
15
+ } from "./chunk-YSQX5Z3F.js";
16
16
  import {
17
17
  logger
18
- } from "./chunk-GTPMJGCF.js";
18
+ } from "./chunk-B67ESBGC.js";
19
19
 
20
20
  // src/clients/nado.tsx
21
21
  import { useMemo } from "react";
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-Y7ONHWCW.js";
5
+ } from "../chunk-T4Q43DNC.js";
6
6
  import {
7
7
  POLYMARKET_PERPS_ROUTING_ID,
8
8
  POLYMARKET_PREDICTIONS_ROUTING_ID
9
- } from "../chunk-5NYKSTGH.js";
9
+ } from "../chunk-S4SMCBQ4.js";
10
10
  import "../chunk-TKEBGMVW.js";
11
- import "../chunk-GTPMJGCF.js";
11
+ import "../chunk-B67ESBGC.js";
12
12
  export {
13
13
  POLYMARKET_PERPS_ROUTING_ID,
14
14
  POLYMARKET_PREDICTIONS_ROUTING_ID,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  createPolymarketDepositConfig,
4
4
  createPredictionsGenerateActionParams
5
- } from "../chunk-Y7ONHWCW.js";
5
+ } from "../chunk-T4Q43DNC.js";
6
6
  import {
7
7
  AMOUNT_PLACEHOLDER,
8
8
  COLLATERAL_ONRAMP_ABI,
@@ -15,9 +15,9 @@ import {
15
15
  VAULT_DEPOSITOR_POLYGON,
16
16
  createPerpsGenerateActionParams,
17
17
  createPolymarketWithdrawalConfig
18
- } from "../chunk-5NYKSTGH.js";
18
+ } from "../chunk-S4SMCBQ4.js";
19
19
  import "../chunk-TKEBGMVW.js";
20
- import "../chunk-GTPMJGCF.js";
20
+ import "../chunk-B67ESBGC.js";
21
21
  export {
22
22
  AMOUNT_PLACEHOLDER,
23
23
  COLLATERAL_ONRAMP_ABI,
@@ -126,20 +126,20 @@ export declare function createPolymarketWithdrawalConfig(config: PolymarketWalle
126
126
  /** Polymarket CollateralOnramp on Polygon — permissionless wrap USDC.e → pUSD. */
127
127
  export declare const COLLATERAL_ONRAMP_ADDRESS: Address;
128
128
  export declare const COLLATERAL_ONRAMP_ABI: readonly [{
129
- readonly name: "wrap";
130
- readonly type: "function";
129
+ readonly name: 'wrap';
130
+ readonly type: 'function';
131
131
  readonly inputs: readonly [{
132
- readonly name: "_asset";
133
- readonly type: "address";
132
+ readonly name: '_asset';
133
+ readonly type: 'address';
134
134
  }, {
135
- readonly name: "_to";
136
- readonly type: "address";
135
+ readonly name: '_to';
136
+ readonly type: 'address';
137
137
  }, {
138
- readonly name: "_amount";
139
- readonly type: "uint256";
138
+ readonly name: '_amount';
139
+ readonly type: 'uint256';
140
140
  }];
141
141
  readonly outputs: readonly [];
142
- readonly stateMutability: "nonpayable";
142
+ readonly stateMutability: 'nonpayable';
143
143
  }];
144
144
  /** VaultDepositor on Polygon — same address used by other VaultDepositor flows. */
145
145
  export declare const VAULT_DEPOSITOR_POLYGON: `0x${string}`;
@@ -149,25 +149,25 @@ export declare const VAULT_DEPOSITOR_POLYGON: `0x${string}`;
149
149
  * callData with the actual amount, and forwards to the target vault.
150
150
  */
151
151
  export declare const VAULT_DEPOSITOR_ABI: readonly [{
152
- readonly name: "deposit";
153
- readonly type: "function";
154
- readonly stateMutability: "nonpayable";
152
+ readonly name: 'deposit';
153
+ readonly type: 'function';
154
+ readonly stateMutability: 'nonpayable';
155
155
  readonly inputs: readonly [{
156
- readonly name: "token";
157
- readonly type: "address";
156
+ readonly name: 'token';
157
+ readonly type: 'address';
158
158
  }, {
159
- readonly name: "vault";
160
- readonly type: "address";
159
+ readonly name: 'vault';
160
+ readonly type: 'address';
161
161
  }, {
162
- readonly name: "callData";
163
- readonly type: "bytes";
162
+ readonly name: 'callData';
163
+ readonly type: 'bytes';
164
164
  }, {
165
- readonly name: "minAmountOut";
166
- readonly type: "uint256";
165
+ readonly name: 'minAmountOut';
166
+ readonly type: 'uint256';
167
167
  }];
168
168
  readonly outputs: readonly [{
169
- readonly name: "returnData";
170
- readonly type: "bytes";
169
+ readonly name: 'returnData';
170
+ readonly type: 'bytes';
171
171
  }];
172
172
  }];
173
173
  /** Sentinel the VaultDepositor replaces with the actual deposit amount at exec time. */
@@ -9,9 +9,9 @@ import {
9
9
  VAULT_DEPOSITOR_POLYGON,
10
10
  createPerpsGenerateActionParams,
11
11
  createPolymarketWithdrawalConfig
12
- } from "../chunk-5NYKSTGH.js";
12
+ } from "../chunk-S4SMCBQ4.js";
13
13
  import "../chunk-TKEBGMVW.js";
14
- import "../chunk-GTPMJGCF.js";
14
+ import "../chunk-B67ESBGC.js";
15
15
  export {
16
16
  AMOUNT_PLACEHOLDER,
17
17
  COLLATERAL_ONRAMP_ABI,
@@ -1,106 +1,106 @@
1
1
  export declare function emojiAvatarForAddress(address: string): {
2
2
  readonly color: "#FC5C54";
3
- readonly emoji: "🌶";
3
+ readonly emoji: '🌶';
4
4
  } | {
5
5
  readonly color: "#FFD95A";
6
- readonly emoji: "🤑";
6
+ readonly emoji: '🤑';
7
7
  } | {
8
8
  readonly color: "#E95D72";
9
- readonly emoji: "🐙";
9
+ readonly emoji: '🐙';
10
10
  } | {
11
11
  readonly color: "#6A87C8";
12
- readonly emoji: "🫐";
12
+ readonly emoji: '🫐';
13
13
  } | {
14
14
  readonly color: "#5FD0F3";
15
- readonly emoji: "🐳";
15
+ readonly emoji: '🐳';
16
16
  } | {
17
17
  readonly color: "#FC5C54";
18
- readonly emoji: "🤶";
18
+ readonly emoji: '🤶';
19
19
  } | {
20
20
  readonly color: "#75C06B";
21
- readonly emoji: "🌲";
21
+ readonly emoji: '🌲';
22
22
  } | {
23
23
  readonly color: "#FFDD86";
24
- readonly emoji: "🌞";
24
+ readonly emoji: '🌞';
25
25
  } | {
26
26
  readonly color: "#5FC6D4";
27
- readonly emoji: "🐒";
27
+ readonly emoji: '🐒';
28
28
  } | {
29
29
  readonly color: "#FF949A";
30
- readonly emoji: "🐵";
30
+ readonly emoji: '🐵';
31
31
  } | {
32
32
  readonly color: "#FF8024";
33
- readonly emoji: "🦊";
33
+ readonly emoji: '🦊';
34
34
  } | {
35
35
  readonly color: "#9BA1A4";
36
- readonly emoji: "🐼";
36
+ readonly emoji: '🐼';
37
37
  } | {
38
38
  readonly color: "#EC66FF";
39
- readonly emoji: "🦄";
39
+ readonly emoji: '🦄';
40
40
  } | {
41
41
  readonly color: "#FF8CBC";
42
- readonly emoji: "🐷";
42
+ readonly emoji: '🐷';
43
43
  } | {
44
44
  readonly color: "#FF9A23";
45
- readonly emoji: "🐧";
45
+ readonly emoji: '🐧';
46
46
  } | {
47
47
  readonly color: "#FF949A";
48
- readonly emoji: "🦩";
48
+ readonly emoji: '🦩';
49
49
  } | {
50
50
  readonly color: "#C5DADB";
51
- readonly emoji: "👽";
51
+ readonly emoji: '👽';
52
52
  } | {
53
53
  readonly color: "#FC5C54";
54
- readonly emoji: "🎈";
54
+ readonly emoji: '🎈';
55
55
  } | {
56
56
  readonly color: "#FF949A";
57
- readonly emoji: "🍉";
57
+ readonly emoji: '🍉';
58
58
  } | {
59
59
  readonly color: "#FFD95A";
60
- readonly emoji: "🎉";
60
+ readonly emoji: '🎉';
61
61
  } | {
62
62
  readonly color: "#A8CE63";
63
- readonly emoji: "🐲";
63
+ readonly emoji: '🐲';
64
64
  } | {
65
65
  readonly color: "#71ABFF";
66
- readonly emoji: "🌎";
66
+ readonly emoji: '🌎';
67
67
  } | {
68
68
  readonly color: "#FFE279";
69
- readonly emoji: "🍊";
69
+ readonly emoji: '🍊';
70
70
  } | {
71
71
  readonly color: "#B6B1B6";
72
- readonly emoji: "🐭";
72
+ readonly emoji: '🐭';
73
73
  } | {
74
74
  readonly color: "#FF6780";
75
- readonly emoji: "🍣";
75
+ readonly emoji: '🍣';
76
76
  } | {
77
77
  readonly color: "#FFD95A";
78
- readonly emoji: "🐥";
78
+ readonly emoji: '🐥';
79
79
  } | {
80
80
  readonly color: "#A575FF";
81
- readonly emoji: "👾";
81
+ readonly emoji: '👾';
82
82
  } | {
83
83
  readonly color: "#A8CE63";
84
- readonly emoji: "🥦";
84
+ readonly emoji: '🥦';
85
85
  } | {
86
86
  readonly color: "#FC5C54";
87
- readonly emoji: "👹";
87
+ readonly emoji: '👹';
88
88
  } | {
89
89
  readonly color: "#FFE279";
90
- readonly emoji: "🙀";
90
+ readonly emoji: '🙀';
91
91
  } | {
92
92
  readonly color: "#5FD0F3";
93
- readonly emoji: "⛱";
93
+ readonly emoji: '⛱';
94
94
  } | {
95
95
  readonly color: "#4D82FF";
96
- readonly emoji: "⛵️";
96
+ readonly emoji: '⛵️';
97
97
  } | {
98
98
  readonly color: "#FFE279";
99
- readonly emoji: "🥳";
99
+ readonly emoji: '🥳';
100
100
  } | {
101
101
  readonly color: "#FF949A";
102
- readonly emoji: "🤯";
102
+ readonly emoji: '🤯';
103
103
  } | {
104
104
  readonly color: "#FFB35A";
105
- readonly emoji: "🤠";
105
+ readonly emoji: '🤠';
106
106
  } | undefined;