@funkit/connect 8.0.0 → 8.2.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.
- package/CHANGELOG.md +56 -0
- package/dist/__generated__/default_configs.d.ts +10 -6
- package/dist/{chunk-IVO7KGHT.js → chunk-JIC2XXGY.js} +7 -2
- package/dist/{chunk-5GV4UXWB.js → chunk-QHRAQNOB.js} +7 -2
- package/dist/{chunk-RJAD5CZH.js → chunk-WIDI2TYC.js} +28 -2
- package/dist/clients/fanatics.css +10067 -0
- package/dist/clients/fanatics.d.ts +31 -0
- package/dist/clients/fanatics.js +525 -0
- package/dist/components/Box/Box.d.ts +47 -46
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/FunBottomBar/FunBottomBar.d.ts +2 -1
- package/dist/components/FunButton/FunIconButton.d.ts +1 -1
- package/dist/components/FunInfoBanner/FunInfoBanner.d.ts +5 -1
- package/dist/components/FunInput/FunInput.d.ts +1 -0
- package/dist/components/FunOptionBox/FunOptionBox.css.d.ts +1 -1
- package/dist/components/FunOptionBox/FunOptionBox.d.ts +2 -1
- package/dist/components/Icons/BitcoinIcon.d.ts +4 -0
- package/dist/components/Icons/New/CashIcon.d.ts +4 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/consts/customers.d.ts +1 -1
- package/dist/css/sprinkles.css.d.ts +136 -49
- package/dist/domains/relay.d.ts +0 -1
- package/dist/hooks/queries/useWithdrawalQuote.d.ts +2 -1
- package/dist/hooks/usePaymentSources.d.ts +4 -5
- package/dist/index.css +3710 -3090
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4274 -4117
- package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +1 -0
- package/dist/modals/CheckoutModal/InputAmount/InputAmountLoaded.d.ts +1 -1
- package/dist/modals/CheckoutModal/InputAmount/state.d.ts +3 -1
- package/dist/modals/CheckoutModal/InputAmount/useAmountInput.d.ts +1 -0
- package/dist/modals/CheckoutModal/SourceChange/CryptoCashToggle.d.ts +9 -0
- package/dist/modals/CheckoutModal/SourceChange/DefaultSourceList.d.ts +12 -0
- package/dist/modals/CheckoutModal/SourceChange/FanaticsSourceList.d.ts +15 -0
- package/dist/modals/CheckoutModal/SourceChange/PayPal.d.ts +2 -0
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +1 -1
- package/dist/modals/CheckoutModal/SourceChange/sourceChange.css.d.ts +1 -0
- package/dist/modals/CheckoutModal/stepTransition.d.ts +3 -1
- package/dist/providers/FunkitConfigContext.d.ts +43 -4
- package/dist/providers/FunkitThemeProvider.d.ts +132 -3
- package/dist/themes/baseTheme.d.ts +2 -1
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/customer.d.ts +0 -6
- package/dist/utils/flags/config.d.ts +7 -28
- package/dist/utils/flags/resolver.d.ts +34 -0
- package/dist/utils/funLogger.d.ts +2 -1
- package/dist/wallets/walletConnectors/index.js +3 -3
- package/package.json +6 -5
- package/dist/modals/CheckoutModal/ConfirmationStep/KatanaBridgeAlert.d.ts +0 -2
- package/dist/utils/flags/patches/enable-bitcoin-patch.d.ts +0 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 8.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- cf97880: Add client configuration exports with wildcard pattern support
|
|
8
|
+
|
|
9
|
+
- Add `/clients/*` export path in package.json for client configurations
|
|
10
|
+
- Create `src/clients/` directory with exportable client configurations
|
|
11
|
+
- Update build system to compile clients directory
|
|
12
|
+
- Enable easy integration via `@funkit/connect/clients/{client-name}` imports
|
|
13
|
+
|
|
14
|
+
- cf97880: Add customTopComponent option to five checkout screens (SourceChange, SelectAsset, SelectBrokerage, ConnectExchange, TransferCrypto) allowing custom React components to be rendered at the top of each screen
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 95f245d: fix(connect): use stable isTokenEquivalent comparison in withdrawal
|
|
19
|
+
- 3725dbf: Deprecate EnableBitcoin feature flag - Bitcoin is now enabled by default in token transfer configuration
|
|
20
|
+
- f7bde29: feat: new disableLogging funkit config
|
|
21
|
+
- be4569b:
|
|
22
|
+
- 70fd67a: feat: add new customer
|
|
23
|
+
- 967d7a6: Block Lighter customers from checkout when wallet is not connected. Shows "Your wallet is not connected" message instead of allowing checkout to proceed with invalid address.
|
|
24
|
+
- 605738b: fix dollar sign position in hyperbeat meld flow
|
|
25
|
+
- eae9077: feat(connect): proceed when selecting asset for fanatics
|
|
26
|
+
- 56e62ef: feat(connect): add WithdrawalInfoBanner to withdrawal modal
|
|
27
|
+
- ad7b142: feat(connect): implement two layer flag evaluation
|
|
28
|
+
feat(connect): migrate EnableMeldPayment flag to statsig
|
|
29
|
+
- Updated dependencies [3725dbf]
|
|
30
|
+
- Updated dependencies [70fd67a]
|
|
31
|
+
- Updated dependencies [39a2171]
|
|
32
|
+
- Updated dependencies [ad7b142]
|
|
33
|
+
- @funkit/utils@1.1.24
|
|
34
|
+
- @funkit/api-base@2.1.1
|
|
35
|
+
|
|
36
|
+
## 8.1.0
|
|
37
|
+
|
|
38
|
+
### Minor Changes
|
|
39
|
+
|
|
40
|
+
- 95ea941: remove katana chain support
|
|
41
|
+
- 95ea941: remove hardcoded logic
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- 9203321: feat(connect): migrate IsCheckoutActivated flag to statsig
|
|
46
|
+
- 507e0e4: Fix "New Deposit" button not working after successful brokerage transactions. The button now properly closes the current checkout and opens a new one.
|
|
47
|
+
- 3ee4395: Fix checkout initialization with placeholder addresses and add logout detection logging
|
|
48
|
+
- 864ff30: Hide token amount display for AA deposits with fee distribution
|
|
49
|
+
- ab6f6d2: Show impact <0.01% instead of negative price impact.
|
|
50
|
+
- 5c4a30f: preserve input amount as token or fiat based on selection when continue and return back
|
|
51
|
+
- ab6f6d2: apply output recalibration with swapImpact only
|
|
52
|
+
- Updated dependencies [9203321]
|
|
53
|
+
- Updated dependencies [95ea941]
|
|
54
|
+
- Updated dependencies [95ea941]
|
|
55
|
+
- @funkit/utils@1.1.23
|
|
56
|
+
- @funkit/api-base@2.1.0
|
|
57
|
+
- @funkit/chains@1.1.0
|
|
58
|
+
|
|
3
59
|
## 8.0.0
|
|
4
60
|
|
|
5
61
|
### Major Changes
|
|
@@ -2,9 +2,6 @@ declare const _default: {
|
|
|
2
2
|
readonly addressblacklist: {
|
|
3
3
|
readonly value: readonly ["0x7b97b46D35a28B561d47F50CFB9a2735E506e59d", "0x409ad08cc6CA757f69Fb80250a424B9eFeB99807", "0x02A86f51aA7B8b1c17c30364748d5Ae4a0727E23", "0x64131b60502C01362639CC5cfE1a1efB6Be1165A"];
|
|
4
4
|
};
|
|
5
|
-
readonly array_of_strings: {
|
|
6
|
-
readonly value: readonly [];
|
|
7
|
-
};
|
|
8
5
|
readonly blacklistedwithdrawaladdress: {
|
|
9
6
|
readonly value: {
|
|
10
7
|
readonly '0x2791bca1f2de4661ed88a30c99a7a9449aa84174': "USDC.e - Polygon";
|
|
@@ -30,9 +27,6 @@ declare const _default: {
|
|
|
30
27
|
readonly blockedcountries: {
|
|
31
28
|
readonly value: readonly ["AF", "BY", "MM", "CF", "CU", "CD", "IR", "LB", "LY", "NI", "KP", "UA", "SO", "SS", "SY", "VE"];
|
|
32
29
|
};
|
|
33
|
-
readonly boolean: {
|
|
34
|
-
readonly value: false;
|
|
35
|
-
};
|
|
36
30
|
readonly brokerage_hide_you_receive: {
|
|
37
31
|
readonly value: false;
|
|
38
32
|
};
|
|
@@ -275,6 +269,9 @@ declare const _default: {
|
|
|
275
269
|
readonly enabletokentransferuniversaldepositaddress: {
|
|
276
270
|
readonly value: true;
|
|
277
271
|
};
|
|
272
|
+
readonly ischeckoutactivated: {
|
|
273
|
+
readonly value: true;
|
|
274
|
+
};
|
|
278
275
|
readonly ismexico: {
|
|
279
276
|
readonly value: {
|
|
280
277
|
readonly mexico: false;
|
|
@@ -387,5 +384,12 @@ declare const _default: {
|
|
|
387
384
|
};
|
|
388
385
|
}];
|
|
389
386
|
};
|
|
387
|
+
readonly withdrawalinfobanner: {
|
|
388
|
+
readonly value: {
|
|
389
|
+
readonly message: "";
|
|
390
|
+
readonly expireAtMs: 0;
|
|
391
|
+
readonly type: "alert";
|
|
392
|
+
};
|
|
393
|
+
};
|
|
390
394
|
};
|
|
391
395
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WIDI2TYC.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/darkTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -93,6 +93,7 @@ var darkTheme = ({
|
|
|
93
93
|
buttonIconBackgroundHover: "#333333",
|
|
94
94
|
buttonIconBackgroundPressed: "#333333",
|
|
95
95
|
buttonIconStroke: "rgba(255, 255, 255, 0.35)",
|
|
96
|
+
buttonBorderTertiary: "transparent",
|
|
96
97
|
buttonBorderFocusedTertiary: "rgba(255, 255, 255, 0.35)",
|
|
97
98
|
buttonFocusedOutline: "none",
|
|
98
99
|
buttonBorderGradient: "none",
|
|
@@ -153,8 +154,12 @@ var darkTheme = ({
|
|
|
153
154
|
// Override colors
|
|
154
155
|
...customColors || {},
|
|
155
156
|
// option Boxes
|
|
156
|
-
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000"
|
|
157
|
+
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
157
158
|
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
159
|
+
optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
|
|
160
|
+
dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#000000",
|
|
161
|
+
dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#1F1F1F",
|
|
162
|
+
dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent"
|
|
158
163
|
},
|
|
159
164
|
shadows: {
|
|
160
165
|
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WIDI2TYC.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/lightTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -93,6 +93,7 @@ var lightTheme = ({
|
|
|
93
93
|
buttonIconBackgroundHover: "#F7F7F7",
|
|
94
94
|
buttonIconBackgroundPressed: "#F0F0F0",
|
|
95
95
|
buttonIconStroke: "rgba(0, 0, 0, 0.35)",
|
|
96
|
+
buttonBorderTertiary: "transparent",
|
|
96
97
|
buttonBorderFocusedTertiary: "rgba(0, 0, 0, 0.35)",
|
|
97
98
|
buttonFocusedOutline: "none",
|
|
98
99
|
buttonBorderGradient: "none",
|
|
@@ -153,8 +154,12 @@ var lightTheme = ({
|
|
|
153
154
|
// Override colors
|
|
154
155
|
...customColors || {},
|
|
155
156
|
// option Boxes
|
|
156
|
-
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF"
|
|
157
|
+
optionBoxBackground: customColors?.optionBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
157
158
|
// keeps gradient in SourcePaymentMethodItem if optionBoxBackground differs from modal background
|
|
159
|
+
optionBoxBackgroundUninteractive: customColors?.optionBoxBackgroundUninteractive ?? "transparent",
|
|
160
|
+
dropdownActiveItemBackgroundBase: customColors?.dropdownActiveItemBackgroundBase ?? customColors?.modalBackground ?? "#FFF",
|
|
161
|
+
dropdownActiveItemBackgroundHover: customColors?.dropdownActiveItemBackgroundHover ?? customColors?.offBackground ?? "#F7F7F7",
|
|
162
|
+
dropdownActiveItemBackgroundDisabled: customColors?.dropdownActiveItemBackgroundDisabled ?? "transparent"
|
|
158
163
|
},
|
|
159
164
|
shadows: {
|
|
160
165
|
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|
|
@@ -144,32 +144,42 @@ var baseTheme = ({
|
|
|
144
144
|
customBorderRadiuses = radiusScales[borderRadius],
|
|
145
145
|
customDimensions,
|
|
146
146
|
customSpacings,
|
|
147
|
+
customTextTransforms,
|
|
147
148
|
overlayBlur = "small"
|
|
148
149
|
}) => ({
|
|
149
150
|
blurs: {
|
|
150
151
|
modalOverlay: blurs[overlayBlur].modalOverlay
|
|
151
152
|
},
|
|
152
153
|
dimensions: {
|
|
154
|
+
inputAmountQuickOptionButtonHeight: "36px",
|
|
155
|
+
inputAmountMinHeight: "76px",
|
|
153
156
|
modalBottomBarButtonHeight: "34px",
|
|
154
157
|
modalTopBarHeight: "56px",
|
|
158
|
+
selectAssetItemIconSize: "24px",
|
|
155
159
|
...customDimensions
|
|
156
160
|
},
|
|
157
161
|
fonts: typeof customFontFamily === "string" ? {
|
|
162
|
+
body: customFontFamily,
|
|
158
163
|
buttonTextPrimary: customFontFamily,
|
|
159
164
|
buttonTextSecondary: customFontFamily,
|
|
160
165
|
buttonTextTertiary: customFontFamily,
|
|
161
|
-
|
|
166
|
+
inputAmount: customFontFamily
|
|
162
167
|
} : {
|
|
168
|
+
body: fontStacks[fontStack],
|
|
163
169
|
buttonTextPrimary: fontStacks[fontStack],
|
|
164
170
|
buttonTextSecondary: fontStacks[fontStack],
|
|
165
171
|
buttonTextTertiary: fontStacks[fontStack],
|
|
166
|
-
|
|
172
|
+
inputAmount: fontStacks[fontStack],
|
|
167
173
|
...customFontFamily
|
|
168
174
|
},
|
|
169
175
|
fontWeight: {
|
|
170
176
|
...DEFAULT_FONT_WEIGHTS,
|
|
171
177
|
modalTopbarTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
172
178
|
modalBottomBarButtonText: DEFAULT_FONT_WEIGHTS.medium,
|
|
179
|
+
paymentMethodItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
180
|
+
paymentMethodItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
181
|
+
selectAssetItemSubtitle: DEFAULT_FONT_WEIGHTS.regular,
|
|
182
|
+
selectAssetItemTitle: DEFAULT_FONT_WEIGHTS.medium,
|
|
173
183
|
...customFontWeights
|
|
174
184
|
},
|
|
175
185
|
fontSize: {
|
|
@@ -177,9 +187,14 @@ var baseTheme = ({
|
|
|
177
187
|
buttonTextPrimary: FONT_SIZINGS[fontSizing][12],
|
|
178
188
|
buttonTextSecondary: FONT_SIZINGS[fontSizing][10],
|
|
179
189
|
buttonTextTertiary: FONT_SIZINGS[fontSizing][12],
|
|
190
|
+
inputAmount: FONT_SIZINGS[fontSizing][57],
|
|
180
191
|
modalTopbarSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
181
192
|
modalTopbarTitle: FONT_SIZINGS[fontSizing][13],
|
|
182
193
|
modalBottomBarButtonText: FONT_SIZINGS[fontSizing][12],
|
|
194
|
+
paymentMethodItemSubtitle: FONT_SIZINGS[fontSizing][12],
|
|
195
|
+
paymentMethodItemTitle: FONT_SIZINGS[fontSizing][12],
|
|
196
|
+
selectAssetItemSubtitle: FONT_SIZINGS[fontSizing][10],
|
|
197
|
+
selectAssetItemTitle: FONT_SIZINGS[fontSizing][13],
|
|
183
198
|
...customFontSizings
|
|
184
199
|
},
|
|
185
200
|
radii: {
|
|
@@ -204,6 +219,7 @@ var baseTheme = ({
|
|
|
204
219
|
},
|
|
205
220
|
borderWidths: {
|
|
206
221
|
activeOptionBorderWidth: "1px",
|
|
222
|
+
buttonTertiaryBorderWidth: "0px",
|
|
207
223
|
...customBorderWidths
|
|
208
224
|
},
|
|
209
225
|
spacing: {
|
|
@@ -212,7 +228,17 @@ var baseTheme = ({
|
|
|
212
228
|
modalPaddingBottomUpper: "16px",
|
|
213
229
|
modalPaddingBottomLower: "16px",
|
|
214
230
|
modalTopBarVerticalTextSpacing: "0px",
|
|
231
|
+
selectAssetItemPaddingX: "12px",
|
|
232
|
+
selectAssetItemPaddingY: "8px",
|
|
233
|
+
selectAssetItemTextGap: "0px",
|
|
234
|
+
selectBrokerageItemPaddingX: "12px",
|
|
235
|
+
selectBrokerageItemPaddingY: "11px",
|
|
236
|
+
youPayYouReceivePaddingY: "8px",
|
|
215
237
|
...customSpacings
|
|
238
|
+
},
|
|
239
|
+
textTransforms: {
|
|
240
|
+
inputAmountQuickOptionButtonTextTransform: "none",
|
|
241
|
+
...customTextTransforms
|
|
216
242
|
}
|
|
217
243
|
});
|
|
218
244
|
|