@funkit/connect 9.3.1 → 9.4.1

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 (38) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/{chunk-JKGPN2BQ.js → chunk-BSF2AKBC.js} +17 -0
  3. package/dist/{chunk-VIJQ5A6W.js → chunk-DBRUJYOQ.js} +12 -1
  4. package/dist/{chunk-WXEL44DS.js → chunk-IZC4ZKKQ.js} +12 -1
  5. package/dist/clients/fanatics.css +5283 -4386
  6. package/dist/clients/fanatics.js +2 -2
  7. package/dist/clients/polymarket.d.ts +5 -1
  8. package/dist/clients/polymarket.js +11 -15
  9. package/dist/components/Box/Box.d.ts +40 -40
  10. package/dist/components/Dropdown/BaseDropdown.css.d.ts +2 -0
  11. package/dist/components/Dropdown/BaseDropdown.d.ts +49 -6
  12. package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +2 -2
  13. package/dist/components/FunInput/FunInput.css.d.ts +1 -0
  14. package/dist/components/Tabs/Tabs.d.ts +1 -0
  15. package/dist/components/Tabs/tabs.css.d.ts +1 -1
  16. package/dist/config/getDefaultConfig.d.ts +1 -1
  17. package/dist/css/sprinkles.css.d.ts +110 -40
  18. package/dist/domains/asset.d.ts +8 -3
  19. package/dist/hooks/track/CheckoutModalEvent.d.ts +3 -1
  20. package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -1
  21. package/dist/hooks/useScrollDivider.d.ts +10 -2
  22. package/dist/index.css +5340 -4393
  23. package/dist/index.d.ts +1 -0
  24. package/dist/index.js +1077 -687
  25. package/dist/modals/CheckoutModal/CheckoutBlockedReason.d.ts +1 -0
  26. package/dist/modals/CheckoutModal/SelectAsset/SelectAssetList.d.ts +1 -1
  27. package/dist/modals/CheckoutModal/useCheckoutBlocked.d.ts +18 -0
  28. package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -0
  29. package/dist/providers/FunkitThemeProvider.d.ts +105 -0
  30. package/dist/providers/GeneralWalletProvider.d.ts +5 -5
  31. package/dist/providers/SwappedProvider.d.ts +3 -1
  32. package/dist/themes/baseTheme.js +1 -1
  33. package/dist/themes/darkTheme.js +2 -2
  34. package/dist/themes/lightTheme.js +2 -2
  35. package/dist/utils/checkout.d.ts +1 -1
  36. package/dist/utils/swapped.d.ts +4 -0
  37. package/dist/wallets/walletConnectors/index.js +35 -35
  38. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 9.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - cf9b5e6: fix brokerage flow
8
+
9
+ ## 9.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 47571d6: Add onCheckoutBlocked callback with semiGeoblock/fullGeoblock distinction for geoblock, security, and unloggedin blocks
14
+ - 30c90b2: feat(connect): make polymarket withdrawal config params customizable
15
+
16
+ ### Patch Changes
17
+
18
+ - 0f3f24e: allow both customRecipient and actionParams for one checkout
19
+ - 59ac11e: hide payment source labels according to statsig flag in cash tab
20
+ - 0f3f24e: Show pending text and hide redirect button when transaction hash is unavailable
21
+ - 0f3f24e: Increase dialog max height for withdrawal modal content
22
+ - 0f3f24e: Fix withdrawal pending screen showing completed prematurely for multi-step transactions
23
+ - ad9c2fe: fix(connect): update generic error message copy
24
+ - 465be26: chore: update iframe allow list
25
+ - cc8cf8b: bump ts version
26
+ - 834c86f: feat(connect): chain/token dropdown groups
27
+ - a05c817: opinion theme updates part 3
28
+ - 4df5e00: fix oversized text in tooltip
29
+ - Updated dependencies [cc8cf8b]
30
+ - @funkit/api-base@3.0.3
31
+ - @funkit/chains@1.1.1
32
+ - @funkit/fun-relay@2.6.4
33
+ - @funkit/utils@1.2.5
34
+
35
+ ## 9.3.2
36
+
37
+ ### Patch Changes
38
+
39
+ - 7e7e08f: fix(connect): fix brokerage list gap across customers
40
+ - 96d574a: feat: preload swapped icons
41
+ - 7058a47: fix wallet option showing for dust balances by aligning usability check with asset selection screen
42
+ - 192e9d0: feat: update swapped iframe events
43
+ - b735dae: fix overlay scroll bug within swapped iframe in polymarket
44
+
3
45
  ## 9.3.1
4
46
 
5
47
  ### Patch Changes
@@ -199,6 +199,7 @@ var baseTheme = ({
199
199
  buttonTextPrimary: customFontFamily,
200
200
  buttonTextSecondary: customFontFamily,
201
201
  buttonTextTertiary: customFontFamily,
202
+ dropdownGroupHeader: customFontFamily,
202
203
  header: customFontFamily,
203
204
  inputAmount: customFontFamily,
204
205
  txStatusDescription: customFontFamily,
@@ -209,6 +210,7 @@ var baseTheme = ({
209
210
  buttonTextPrimary: fontStacks[fontStack],
210
211
  buttonTextSecondary: fontStacks[fontStack],
211
212
  buttonTextTertiary: fontStacks[fontStack],
213
+ dropdownGroupHeader: fontStacks[fontStack],
212
214
  header: fontStacks[fontStack],
213
215
  inputAmount: fontStacks[fontStack],
214
216
  txStatusDescription: fontStacks[fontStack],
@@ -218,6 +220,7 @@ var baseTheme = ({
218
220
  fontWeight: {
219
221
  ...DEFAULT_FONT_WEIGHTS,
220
222
  cryptoCashToggle: DEFAULT_FONT_WEIGHTS.medium,
223
+ dropdownGroupHeader: DEFAULT_FONT_WEIGHTS.medium,
221
224
  inputAmount: DEFAULT_FONT_WEIGHTS.medium,
222
225
  inputLabel: DEFAULT_FONT_WEIGHTS.medium,
223
226
  inputValue: DEFAULT_FONT_WEIGHTS.medium,
@@ -249,6 +252,7 @@ var baseTheme = ({
249
252
  buttonTextSecondary: FONT_SIZINGS[fontSizing][10],
250
253
  buttonTextTertiary: FONT_SIZINGS[fontSizing][12],
251
254
  dollarValue: FONT_SIZINGS[fontSizing][40],
255
+ dropdownGroupHeader: FONT_SIZINGS[fontSizing][12],
252
256
  inputAmount: FONT_SIZINGS[fontSizing][57],
253
257
  inputLabel: customFontSizings[12] ?? FONT_SIZINGS[fontSizing][12],
254
258
  inputValue: customFontSizings[13] ?? FONT_SIZINGS[fontSizing][13],
@@ -274,6 +278,8 @@ var baseTheme = ({
274
278
  formOfPaymentsListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
275
279
  quickOptionFontSize: FONT_SIZINGS[fontSizing][14],
276
280
  useConnectedFontSize: FONT_SIZINGS[fontSizing][12],
281
+ paymentFeeSummaryTooltip: FONT_SIZINGS[fontSizing][10],
282
+ tooltipContent: FONT_SIZINGS[fontSizing][10],
277
283
  ...customFontSizings
278
284
  },
279
285
  radii: {
@@ -303,6 +309,8 @@ var baseTheme = ({
303
309
  activeOptionBorderWidth: "1px",
304
310
  buttonTertiaryBorderWidth: "0px",
305
311
  cryptoCashToggleContainerBorderWidth: "0px",
312
+ cryptoCashToggleActiveTabBorderWidth: "1px",
313
+ cryptoCashToggleInactiveTabBorderWidth: "1px",
306
314
  txSummaryBoxBorderWidth: "1px",
307
315
  ...customBorderWidths
308
316
  },
@@ -313,6 +321,13 @@ var baseTheme = ({
313
321
  cryptoCashToggleMarginBottom: "16px",
314
322
  cryptoCashToggleMarginTop: "24px",
315
323
  cryptoCashToggleTabPaddingY: "6px",
324
+ dropdownItemIconGap: "4px",
325
+ dropdownItemPaddingX: "4px",
326
+ dropdownItemPaddingY: "6px",
327
+ dropdownCompactPaddingX: "6px",
328
+ dropdownCompactPaddingY: "6px",
329
+ dropdownPaddingX: "12px",
330
+ dropdownPaddingY: "12px",
316
331
  modalBaseHorizontalPadding: "6px",
317
332
  modalBottomBarButtonPaddingY: "0px",
318
333
  modalBottomHorizontalPadding: "12px",
@@ -324,6 +339,7 @@ var baseTheme = ({
324
339
  selectAssetItemTextGap: "0px",
325
340
  selectBrokerageItemPaddingX: "12px",
326
341
  selectBrokerageItemPaddingY: "11px",
342
+ selectBrokerageListGap: "0px",
327
343
  txBreakdownMarginY: "18px",
328
344
  txBreakdownPaddingX: "12px",
329
345
  txSummaryBoxPaddingX: "12px",
@@ -340,6 +356,7 @@ var baseTheme = ({
340
356
  inputPaddingY: "12px",
341
357
  dropdownActiveItemRegularSizePaddingY: "8px",
342
358
  assetListDefaultGap: "4px",
359
+ dropdownGroupDividerMarginY: "8px",
343
360
  ...customSpacings
344
361
  },
345
362
  textTransforms: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-JKGPN2BQ.js";
4
+ } from "./chunk-BSF2AKBC.js";
5
5
 
6
6
  // src/themes/lightTheme.ts
7
7
  var accentColors = {
@@ -72,6 +72,8 @@ var lightTheme = ({
72
72
  copyButtonBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
73
73
  copyButtonBackgroundHover: customColors?.hoverState ?? "#F0F0F0",
74
74
  copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#E5E5E5",
75
+ useConnectedBackgroundBase: customColors?.mediumStroke ?? "#F0F0F0",
76
+ useConnectedBackgroundHover: customColors?.mediumStroke ?? "#F0F0F0",
75
77
  copyButtonBorderBase: customColors?.mediumStroke ?? "#F0F0F0",
76
78
  copyButtonBorderHover: customColors?.mediumStroke ?? "#F0F0F0",
77
79
  funFeatureListBackgroundBase: customColors?.offBackground ?? "#F7F7F7",
@@ -89,6 +91,13 @@ var lightTheme = ({
89
91
  // tab
90
92
  activeTabBorderColor: "#F7F7F7",
91
93
  activeTabBackground: "#F7F7F7",
94
+ inactiveTabBorderColor: "transparent",
95
+ inactiveTabBackgroundBase: "transparent",
96
+ inactiveTabBackgroundHover: "transparent",
97
+ inactiveTabBackgroundActive: "transparent",
98
+ activeTabText: customColors?.primaryText ?? "#000",
99
+ inactiveTabTextBase: customColors?.secondaryText ?? "#737373",
100
+ inactiveTabHover: customColors?.primaryText ?? "#000",
92
101
  // button
93
102
  actionColor: "#000",
94
103
  actionColorHover: "rgba(0, 0, 0, 0.7)",
@@ -193,6 +202,8 @@ var lightTheme = ({
193
202
  dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
194
203
  dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#F0F0F0",
195
204
  dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#F0F0F0",
205
+ dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#000",
206
+ // primaryText
196
207
  txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
197
208
  txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7",
198
209
  counterRingColor: customColors?.counterRingColor ?? accentColor,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  baseTheme
4
- } from "./chunk-JKGPN2BQ.js";
4
+ } from "./chunk-BSF2AKBC.js";
5
5
 
6
6
  // src/themes/darkTheme.ts
7
7
  var accentColors = {
@@ -72,6 +72,8 @@ var darkTheme = ({
72
72
  copyButtonBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
73
73
  copyButtonBackgroundHover: customColors?.hoverState ?? "#333333",
74
74
  copyButtonBackgroundActive: customColors?.inputBorderHover ?? "#525252",
75
+ useConnectedBackgroundBase: customColors?.mediumStroke ?? "#333333",
76
+ useConnectedBackgroundHover: customColors?.mediumStroke ?? "#333333",
75
77
  copyButtonBorderBase: customColors?.mediumStroke ?? "#333333",
76
78
  copyButtonBorderHover: customColors?.mediumStroke ?? "#333333",
77
79
  funFeatureListBackgroundBase: customColors?.offBackground ?? "#1F1F1F",
@@ -89,6 +91,13 @@ var darkTheme = ({
89
91
  // tab
90
92
  activeTabBorderColor: "#333333",
91
93
  activeTabBackground: "#333333",
94
+ inactiveTabBorderColor: "transparent",
95
+ inactiveTabBackgroundBase: "transparent",
96
+ inactiveTabBackgroundHover: "transparent",
97
+ inactiveTabBackgroundActive: "transparent",
98
+ activeTabText: customColors?.primaryText ?? "#FFF",
99
+ inactiveTabTextBase: customColors?.secondaryText ?? "#8C8C8C",
100
+ inactiveTabHover: customColors?.primaryText ?? "#FFF",
92
101
  // button
93
102
  actionColor: "#FFF",
94
103
  actionColorHover: "rgba(255, 255, 255, 0.8)",
@@ -193,6 +202,8 @@ var darkTheme = ({
193
202
  dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent",
194
203
  dropdownActiveItemBorderBase: customColors?.dropdownActiveItemBorderBase ?? customColors?.mediumStroke ?? "#333333",
195
204
  dropdownActiveItemBorderHover: customColors?.dropdownActiveItemBorderHover ?? customColors?.mediumStroke ?? "#333333",
205
+ dropdownGroupHeader: customColors?.dropdownGroupHeader ?? customColors?.primaryText ?? "#FFF",
206
+ // primaryText
196
207
  txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
197
208
  txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
198
209
  counterRingColor: customColors?.counterRingColor ?? accentColor,