@funkit/connect 8.4.0-next.1 → 8.5.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 +100 -0
- package/dist/__generated__/default_configs.d.ts +7 -1
- package/dist/{chunk-UE3P6YHW.js → chunk-G4ZF44OO.js} +3 -0
- package/dist/{chunk-XX5CVGHN.js → chunk-GOGXF6NC.js} +3 -2
- package/dist/{chunk-YUWSE22N.js → chunk-K4YHIQ6O.js} +3 -2
- package/dist/clients/fanatics.css +3807 -3692
- package/dist/clients/fanatics.d.ts +6 -0
- package/dist/clients/fanatics.js +85 -39
- package/dist/components/Box/Box.d.ts +44 -44
- package/dist/components/FunCheckoutHistory/FunTxSummarySections.d.ts +7 -0
- package/dist/components/FunCheckoutHistory/TotalTimeItem.d.ts +6 -0
- package/dist/components/FunCheckoutHistory/YouSendItem.d.ts +6 -0
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -2
- package/dist/components/Icons/New/CircleBitcoinIcon.d.ts +4 -0
- package/dist/components/Icons/New/DollarIcon.d.ts +3 -1
- package/dist/consts/layout.d.ts +0 -1
- package/dist/css/sprinkles.css.d.ts +58 -44
- package/dist/domains/asset.d.ts +1 -1
- package/dist/hooks/queries/useSwappedDefaultCurrency.d.ts +5 -0
- package/dist/hooks/track/CheckoutModalEvent.d.ts +6 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +1 -0
- package/dist/hooks/usePaymentSources.d.ts +3 -2
- package/dist/index.css +3807 -3692
- package/dist/index.js +1994 -1680
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +5 -5
- package/dist/modals/CheckoutModal/SourceChange/SourceChange.d.ts +2 -2
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext/index.d.ts +1 -0
- package/dist/providers/FunkitCheckoutContext/types.d.ts +5 -0
- package/dist/providers/FunkitConfigContext.d.ts +12 -2
- package/dist/providers/FunkitProvider.d.ts +1 -0
- package/dist/providers/FunkitThemeProvider.d.ts +21 -0
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +2 -2
- package/dist/themes/lightTheme.js +2 -2
- package/dist/utils/swapped.d.ts +2 -0
- package/dist/utils/transfer.d.ts +2 -1
- package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
- package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
- package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
- package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
- package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
- package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
- package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
- package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
- package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
- package/dist/wallets/walletConnectors/index.js +37 -37
- package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
- package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
- package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
- package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
- package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
- package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
- package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
- package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
- package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
- package/package.json +4 -4
- package/dist/wallets/walletConnectors/{chunk-T5KHVUFR.js → chunk-3ZWIUCOI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-77UTBHGP.js → chunk-4SC3PZVM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5EAOMOTO.js → chunk-5AV2NSL3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RA7MCWF4.js → chunk-5FWURLPF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-R6Y36CMA.js → chunk-6677RKVT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MRRZOQGZ.js → chunk-75A4Q5E5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-U5QP7MI5.js → chunk-ENLR4LXN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-2E4PDCEJ.js → chunk-FT5BX7TL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JFHP4YJG.js → chunk-GEMN6DM5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CZYUE3AR.js → chunk-GXTI2PZD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-47QF6EET.js → chunk-LGT6IAXI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-W7Y6I22Y.js → chunk-N7475PGA.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FA5DTT5R.js → chunk-O6YFVGVQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-UOTQQJJD.js → chunk-OCM5YHT5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HPHADOYD.js → chunk-PRGCIJ7Y.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-VYNVAGSV.js → chunk-RNIMZDHW.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RLRQYUYC.js → chunk-TLOROKED.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YLJDPTYF.js → chunk-WNQ3NPHX.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,105 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 8.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 1c71c8d: feat(connect): add bridgeOverride support via dynamic routing rules
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- ac88b49: feat(connect,api-base): add saved form of payment
|
|
12
|
+
- 4523c39: feat(connect): migrate ChainInfoBanners flag to statsig
|
|
13
|
+
- 90e8512: feat(connect): make fops list section label theme configurable
|
|
14
|
+
- f646ba0: pass skeletoncolor to swapped
|
|
15
|
+
- 59f689d: Remove legacy relay fee extraction and return zero values with error log when fee breakdown is missing.
|
|
16
|
+
- 34282d1: feat(connect): swapped iframe statsig events
|
|
17
|
+
- 2e317ee: feat(connect): invalidate fops when leaving iframe
|
|
18
|
+
- 18a4157: refactor: reduce filtering complexity and dead code paths
|
|
19
|
+
- 9a876a5: swapped fix button consistencies
|
|
20
|
+
- e44e8c0: swapped iframe skeleton loader implemented
|
|
21
|
+
- 01fa6e6: fix(connect): swapped clipboard fn
|
|
22
|
+
- cba52ff: feat(connect): replace cryptocash toggle ui config for statsig flag
|
|
23
|
+
- Updated dependencies [ac88b49]
|
|
24
|
+
- Updated dependencies [4523c39]
|
|
25
|
+
- Updated dependencies [1c71c8d]
|
|
26
|
+
- @funkit/api-base@2.3.0
|
|
27
|
+
- @funkit/utils@1.2.2
|
|
28
|
+
- @funkit/fun-relay@2.6.0
|
|
29
|
+
|
|
30
|
+
## 8.4.0
|
|
31
|
+
|
|
32
|
+
### Minor Changes
|
|
33
|
+
|
|
34
|
+
- ba04b38: Add Global Compute customer and enable brokerage features by default
|
|
35
|
+
- 4a24b76: Replace dangerouslySetInnerHTML with style ref textContent for theme CSS injection
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- e756825: feat(connect): show Across icon and label in selected route when Across is enabled
|
|
40
|
+
- 04f8d12: feat(connect): treat Across (CCTP) routes as slow deposits with 1-2 min time estimate
|
|
41
|
+
- e1ef9a8: fix(connect): skip swap impact and use Across expected output for received amount
|
|
42
|
+
- 91f9cb4: feat(connect): add AZTEC token support for Lighter exchange
|
|
43
|
+
- b3589c1: embed theme params in the fops request for swapped
|
|
44
|
+
- bc5436e: change final buttons on fanatics
|
|
45
|
+
- 2ccdc83: refactor: reorder meld options
|
|
46
|
+
- c6fc3e7: fix: iframe postMessage origin validation
|
|
47
|
+
- a7ca00e: fix(connect): fix fanatics font size
|
|
48
|
+
- 9185842: update crypto cash toggle on polymarket
|
|
49
|
+
- 0e6d9bd: feat(connect): map skeleton heights to actual font sizes in FunPaymentMethodItemSkeleton
|
|
50
|
+
- 4fe1634: implement swapped iframe integration
|
|
51
|
+
- 5e289de: feat(connect,api-base): properly map fiatCurrencyCode in fops endpoint
|
|
52
|
+
- bd51750: feat(connect): make CryptoCashToggle styles theme configurable
|
|
53
|
+
- a61d9e5: fix(connect): redirect completion tx explorer to Lighter for L1 deposits
|
|
54
|
+
- 3c36d53: Fix stale withdrawal quote reuse across consecutive withdrawals by resetting checkout ID on "New Withdrawal"
|
|
55
|
+
- 80c85ed: feat(connect): hide dollar value loader if static value is available
|
|
56
|
+
- f1b51e0: feat(connect): max height on mobile
|
|
57
|
+
- 12e06a2: feat(connect): ability to update source change layout via ui config
|
|
58
|
+
- 6e9ec49: feat(connect): add theme level configs to source list section labels
|
|
59
|
+
- db3bd12: feat(connect): update lighter utils to use dynamic target id for dynamic target assets
|
|
60
|
+
- 7ebf0ca: fix(connect): add i18n for Across and LayerZero time estimate strings
|
|
61
|
+
- 4b10e4a: fix(connect): wrong payment method active tab during navigation
|
|
62
|
+
- a615907: feat(connect): improve metric collection for analytics events
|
|
63
|
+
- b47ccab: added primary secondary tertiary font names in uicustomizations to pass to swapped
|
|
64
|
+
- 729eb2b: fix: adjust Across bridge time estimates and fix Lighter explorer link
|
|
65
|
+
- 3053bec: feat(connect): tx summary compact sections
|
|
66
|
+
- 712bacc: refactor(connect): reorder SourceChange component hooks and variables for readability
|
|
67
|
+
- ff3b620: feat(connect): pass svm recipient address for non-evm target chain
|
|
68
|
+
- aeb52c7: fix(connect): skip broken Polygon default viem RPC
|
|
69
|
+
- 28eb98c: misc fixes
|
|
70
|
+
- e13fffb: feat(connect): update fanatics padding for close and action button
|
|
71
|
+
- 9e07543: feat(connect): improve fops error UI
|
|
72
|
+
- 8840aa9: feat: add dynamic s3 icon fallback
|
|
73
|
+
- 4fc223a: extra bottom padding removed for swapped iframe
|
|
74
|
+
- 45eb6ec: feat(connect): show total time instead of pay amount on success
|
|
75
|
+
- a653ae3: fix(connect): increase flag fetch timeout to 10s
|
|
76
|
+
- a6e1abd: feat(connect): add popular section for fiat payment methods
|
|
77
|
+
- 2ac1d6d: refactor(connect): extract completion tx resolution into utility function
|
|
78
|
+
- 644c1ad: Remove dangerouslySetInnerHTML from InfoBanner and strip HTML from usdceWarning translations.
|
|
79
|
+
- 28eb98c: refactor(connect): rename isLighterNativeFlow to isLighterSlowDeposit and extract delayed cutoff utility
|
|
80
|
+
- 64f367d: feat(connect): handle withdrawal rate limit errors
|
|
81
|
+
- 7e19469: chore(connect): silence statsig warnings
|
|
82
|
+
- 508713c: fix(connect): update transaction status padding for fanatics
|
|
83
|
+
- 126661c: feat(connect): add page readiness tracking for checkout steps
|
|
84
|
+
- 438c9f7: swapped origin check implemented
|
|
85
|
+
- d4d38db: feat(connect): add source change initial loader
|
|
86
|
+
- e52cd59: Add USD as default value for swappedCurrencyCode in useFops hook
|
|
87
|
+
- Updated dependencies [e1ef9a8]
|
|
88
|
+
- Updated dependencies [91f9cb4]
|
|
89
|
+
- Updated dependencies [ba04b38]
|
|
90
|
+
- Updated dependencies [b3589c1]
|
|
91
|
+
- Updated dependencies [4fe1634]
|
|
92
|
+
- Updated dependencies [4fe1634]
|
|
93
|
+
- Updated dependencies [5e289de]
|
|
94
|
+
- Updated dependencies [8aa93f1]
|
|
95
|
+
- Updated dependencies [d3d8eae]
|
|
96
|
+
- Updated dependencies [3b1c2c0]
|
|
97
|
+
- Updated dependencies [45acbad]
|
|
98
|
+
- Updated dependencies [a6e1abd]
|
|
99
|
+
- @funkit/utils@1.2.1
|
|
100
|
+
- @funkit/fun-relay@2.5.0
|
|
101
|
+
- @funkit/api-base@2.2.0
|
|
102
|
+
|
|
3
103
|
## 8.4.0-next.1
|
|
4
104
|
|
|
5
105
|
### Minor Changes
|
|
@@ -33,6 +33,9 @@ declare const _default: {
|
|
|
33
33
|
readonly chainidsortorder: {
|
|
34
34
|
readonly value: readonly ["1", "1151111081099710", "8453", "56", "137", "42161", "10"];
|
|
35
35
|
};
|
|
36
|
+
readonly chaininfobanners: {
|
|
37
|
+
readonly value: {};
|
|
38
|
+
};
|
|
36
39
|
readonly checkoutnotificationsrefreshinterval: {
|
|
37
40
|
readonly value: {
|
|
38
41
|
readonly listRefresh: 5000;
|
|
@@ -265,7 +268,7 @@ declare const _default: {
|
|
|
265
268
|
readonly value: true;
|
|
266
269
|
};
|
|
267
270
|
readonly enablebluvobrokerage: {
|
|
268
|
-
readonly value:
|
|
271
|
+
readonly value: true;
|
|
269
272
|
};
|
|
270
273
|
readonly enablefiatdeposit: {
|
|
271
274
|
readonly variants: readonly [{
|
|
@@ -280,6 +283,9 @@ declare const _default: {
|
|
|
280
283
|
readonly enablemeldpayment: {
|
|
281
284
|
readonly value: false;
|
|
282
285
|
};
|
|
286
|
+
readonly enableswapped: {
|
|
287
|
+
readonly value: false;
|
|
288
|
+
};
|
|
283
289
|
readonly enabletokentransfer: {
|
|
284
290
|
readonly variants: readonly [{
|
|
285
291
|
readonly condition: {
|
|
@@ -209,6 +209,7 @@ var baseTheme = ({
|
|
|
209
209
|
txSummaryLabel: DEFAULT_FONT_WEIGHTS.medium,
|
|
210
210
|
txSummaryValue: DEFAULT_FONT_WEIGHTS.medium,
|
|
211
211
|
sourceListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
212
|
+
formOfPaymentsListSectionLabelFontWeight: DEFAULT_FONT_WEIGHTS.medium,
|
|
212
213
|
...customFontWeights
|
|
213
214
|
},
|
|
214
215
|
fontSize: {
|
|
@@ -241,6 +242,7 @@ var baseTheme = ({
|
|
|
241
242
|
funFeatureListItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
242
243
|
dropdownItemFontSize: FONT_SIZINGS[fontSizing][12],
|
|
243
244
|
sourceListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
245
|
+
formOfPaymentsListSectionLabelFontSize: FONT_SIZINGS[fontSizing][12],
|
|
244
246
|
...customFontSizings
|
|
245
247
|
},
|
|
246
248
|
radii: {
|
|
@@ -295,6 +297,7 @@ var baseTheme = ({
|
|
|
295
297
|
txSummaryLineItemPadding: "0px",
|
|
296
298
|
txSummaryDividerMarginX: "12px",
|
|
297
299
|
txSummaryDividerMarginY: "12px",
|
|
300
|
+
verticalSectionGap: "18px",
|
|
298
301
|
youPayYouReceivePaddingLeft: "12px",
|
|
299
302
|
youPayYouReceivePaddingRight: "16px",
|
|
300
303
|
youPayYouReceivePaddingY: "8px",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
baseTheme
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G4ZF44OO.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/lightTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -171,7 +171,8 @@ var lightTheme = ({
|
|
|
171
171
|
txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#FFF",
|
|
172
172
|
txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#F7F7F7",
|
|
173
173
|
counterRingColor: customColors?.counterRingColor ?? accentColor,
|
|
174
|
-
cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent"
|
|
174
|
+
cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
|
|
175
|
+
cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
|
|
175
176
|
},
|
|
176
177
|
shadows: {
|
|
177
178
|
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-G4ZF44OO.js";
|
|
5
5
|
|
|
6
6
|
// src/themes/darkTheme.ts
|
|
7
7
|
var accentColors = {
|
|
@@ -171,7 +171,8 @@ var darkTheme = ({
|
|
|
171
171
|
txSummaryBoxBackground: customColors?.txSummaryBoxBackground ?? customColors?.modalBackground ?? "#000",
|
|
172
172
|
txSummaryBoxBorder: customColors?.txSummaryBoxBorder ?? customColors?.lightStroke ?? "#333333",
|
|
173
173
|
counterRingColor: customColors?.counterRingColor ?? accentColor,
|
|
174
|
-
cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent"
|
|
174
|
+
cryptoCashToggleContainerBorderColor: customColors?.cryptoCashToggleContainerBorderColor ?? "transparent",
|
|
175
|
+
cryptoCashToggleBackground: customColors?.cryptoCashToggleBackground ?? "transparent"
|
|
175
176
|
},
|
|
176
177
|
shadows: {
|
|
177
178
|
connectButton: "0px 4px 12px rgba(0, 0, 0, 0.1)",
|