@funkit/connect 9.3.2 → 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.
- package/CHANGELOG.md +32 -0
- package/dist/{chunk-MXNOQTKX.js → chunk-BSF2AKBC.js} +16 -0
- package/dist/{chunk-AGBRSMZ7.js → chunk-DBRUJYOQ.js} +12 -1
- package/dist/{chunk-RHUOOPDI.js → chunk-IZC4ZKKQ.js} +12 -1
- package/dist/clients/fanatics.css +5263 -4393
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/polymarket.d.ts +5 -1
- package/dist/clients/polymarket.js +11 -15
- package/dist/components/Box/Box.d.ts +40 -40
- package/dist/components/Dropdown/BaseDropdown.css.d.ts +2 -0
- package/dist/components/Dropdown/BaseDropdown.d.ts +49 -6
- package/dist/components/FunCheckoutBlocked/FunCheckoutBlocked.d.ts +2 -2
- package/dist/components/FunInput/FunInput.css.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/tabs.css.d.ts +1 -1
- package/dist/config/getDefaultConfig.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +108 -40
- package/dist/hooks/useMainnetEnsAvatar.d.ts +1 -1
- package/dist/hooks/useScrollDivider.d.ts +10 -2
- package/dist/index.css +5321 -4400
- package/dist/index.d.ts +1 -0
- package/dist/index.js +863 -570
- package/dist/modals/CheckoutModal/CheckoutBlockedReason.d.ts +1 -0
- package/dist/modals/CheckoutModal/useCheckoutBlocked.d.ts +18 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -0
- package/dist/providers/FunkitThemeProvider.d.ts +102 -0
- package/dist/providers/GeneralWalletProvider.d.ts +5 -5
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/checkout.d.ts +1 -1
- package/dist/wallets/walletConnectors/index.js +45 -45
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
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
|
+
|
|
3
35
|
## 9.3.2
|
|
4
36
|
|
|
5
37
|
### 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",
|
|
@@ -341,6 +356,7 @@ var baseTheme = ({
|
|
|
341
356
|
inputPaddingY: "12px",
|
|
342
357
|
dropdownActiveItemRegularSizePaddingY: "8px",
|
|
343
358
|
assetListDefaultGap: "4px",
|
|
359
|
+
dropdownGroupDividerMarginY: "8px",
|
|
344
360
|
...customSpacings
|
|
345
361
|
},
|
|
346
362
|
textTransforms: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
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-
|
|
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,
|