@funkit/connect 9.0.1 → 9.0.3
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 +23 -0
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -0
- package/dist/components/FunButton/FunLinkButton.d.ts +2 -1
- package/dist/components/FunNotificationBanner/FunNotificationBanner.d.ts +2 -2
- package/dist/components/Icons/CryptoTransferQRIcon.d.ts +4 -0
- package/dist/components/Icons/ExchangeIcon.d.ts +4 -0
- package/dist/consts/customers.d.ts +0 -1
- package/dist/consts/quote.d.ts +6 -5
- package/dist/hooks/useCheckoutQuoteNotification.d.ts +1 -1
- package/dist/hooks/useSwappedPreload.d.ts +1 -1
- package/dist/index.css +5 -1
- package/dist/index.js +2562 -2551
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutQuote.d.ts +2 -1
- package/dist/modals/CheckoutModal/SourceChange/FormOfPaymentsList.d.ts +8 -0
- package/dist/modals/CheckoutModal/SwappedIframe/SwappedIframe.d.ts +1 -1
- package/dist/providers/FunkitConfigContext.d.ts +0 -5
- package/dist/providers/FunkitQuoteContext.d.ts +1 -1
- package/dist/utils/flags/config.d.ts +11 -4
- 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 +43 -43
- 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 +3 -3
- package/dist/wallets/walletConnectors/{chunk-6YO27XOM.js → chunk-3Y2GG3PM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HETS3KKI.js → chunk-3YCR2ZB4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HOPH3TQ3.js → chunk-C4RP2DNH.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IICWJWGZ.js → chunk-CBI3SGOC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GVOQTORD.js → chunk-CMLFDRCP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LI6QY2B5.js → chunk-COX3VEDR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-EKJHJFRN.js → chunk-CT3QPTAU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-7OARWILZ.js → chunk-DWMUM4F6.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-CJJT7LMT.js → chunk-FDVJHNLL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6UCI7GM6.js → chunk-I7K6LUZR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XBLHZICW.js → chunk-N3UJMC3V.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4C7ER452.js → chunk-NEK7T3IC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PKMAPNN6.js → chunk-RLLTYOWT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GH4M6FTK.js → chunk-TIT5F32X.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TTHM3WUR.js → chunk-UPUDLUBT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-53VYSPXK.js → chunk-UVMMPRDM.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GSHSWVEG.js → chunk-UVYZSGIX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KO56HCTI.js → chunk-ZMRIQOR5.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 9.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9c08327: feat: remove dynamic target asset on select asset screen
|
|
8
|
+
- cf786fd: Add U stablecoin support on BSC
|
|
9
|
+
- 27d579e: feat(connect): update swapped theme config + height
|
|
10
|
+
- Updated dependencies [cf786fd]
|
|
11
|
+
- @funkit/fun-relay@2.6.3
|
|
12
|
+
|
|
13
|
+
## 9.0.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 1cd5f08: Pass abort signal to direct execution quote requests (getCheckoutQuoteV2) so in-flight quotes can be cancelled when navigating away from the confirmation step
|
|
18
|
+
- e3c8fa3: feat(connect): add contact us links to error messages
|
|
19
|
+
- c47429b: Remove Hyperbeat customer integration
|
|
20
|
+
- 8be2cc2: new source global icons
|
|
21
|
+
- 4bcd313: feat(connect): swapped iframe pool prioritizes popular
|
|
22
|
+
- Updated dependencies [c47429b]
|
|
23
|
+
- @funkit/api-base@2.3.2
|
|
24
|
+
- @funkit/fun-relay@2.6.2
|
|
25
|
+
|
|
3
26
|
## 9.0.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const DIALOG_WIDTH_WIDE = "450px";
|
|
2
2
|
export declare const DIALOG_HEIGHT = 525;
|
|
3
|
+
export declare const DIALOG_HEIGHT_SWAPPED_IFRAME = 580;
|
|
3
4
|
export declare const SCROLL_BAR_WIDTH = 6;
|
|
4
5
|
export declare const DIALOG_BOTTOM_PADDING = "15";
|
|
5
6
|
export declare const bottomPaddingVariable = "--bottom-padding-value";
|
|
@@ -16,6 +16,7 @@ interface FunLinkButtonProps {
|
|
|
16
16
|
export declare function FunLinkButton({ inline, href, onClick, text, size, weight, variant, }: FunLinkButtonProps): React.JSX.Element;
|
|
17
17
|
interface ContactSupportLinkProps extends Omit<FunLinkButtonProps, 'text'> {
|
|
18
18
|
text?: string;
|
|
19
|
+
children?: string;
|
|
19
20
|
}
|
|
20
|
-
export declare const ContactSupportLink: ({ text, size, inline, href, ...rest }: ContactSupportLinkProps) => React.JSX.Element;
|
|
21
|
+
export declare const ContactSupportLink: ({ text, children, size, weight, inline, href, ...rest }: ContactSupportLinkProps) => React.JSX.Element;
|
|
21
22
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type FunNotificationBannerIconProps } from './FunNotificationBannerIcon';
|
|
3
3
|
interface FunNotificationBannerProps extends FunNotificationBannerIconProps {
|
|
4
|
-
title:
|
|
5
|
-
description:
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
description: ReactNode;
|
|
6
6
|
/** Additional text-like content clarifying the description */
|
|
7
7
|
disclaimer?: ReactNode;
|
|
8
8
|
children?: ReactNode;
|
|
@@ -4,7 +4,6 @@ export declare function isOstiumCustomer(apiKey: string): apiKey is "SMbBD7DS9b3
|
|
|
4
4
|
export declare function isBankrCustomer(apiKey: string): apiKey is "vWe20Dfyui2ouvfOhtSTY3Czeo8lFdbo5xXQBALZ";
|
|
5
5
|
export declare function isBsxCustomer(apiKey: string): apiKey is "zN1zrkmLQn4oZtLUW9Qt02uuBI3Jvrgj8Ni40Gf1";
|
|
6
6
|
export declare function isEtherealCustomer(apiKey: string): apiKey is "M3uox3cw0u8YCPV9cIREA6AugUMvPFTk6qOpm4um";
|
|
7
|
-
export declare function isHyperbeatCustomer(apiKey: string): apiKey is "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau";
|
|
8
7
|
export declare function isHyperdashCustomer(apiKey: string): apiKey is "di9ZSqn1Ya68Y2XpBPUV1rCtNGXh8Xe5MGWzb1Xe";
|
|
9
8
|
export declare function isMonadCustomer(apiKey: string): apiKey is "2hicPxo2vy2NMHcg2cEU9crOeKtDpc14NEfMCthc";
|
|
10
9
|
export declare function isMonkeyTiltCustomer(apiKey: string): apiKey is "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX";
|
package/dist/consts/quote.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { TFunction } from 'i18next';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
2
3
|
export declare enum PendingQuoteMessage {
|
|
3
4
|
PREPARING = 0,
|
|
4
5
|
VERIFYING_PROVIDER = 1,
|
|
@@ -11,14 +12,14 @@ export declare const getPendingQuoteMessageGenerator: (t: TFunction) => {
|
|
|
11
12
|
2: () => string;
|
|
12
13
|
3: () => string;
|
|
13
14
|
};
|
|
14
|
-
export declare const
|
|
15
|
+
export declare const getQuoteApiErrorDisplayInfo: (t: TFunction) => {
|
|
15
16
|
0: {
|
|
16
17
|
check: string;
|
|
17
|
-
display:
|
|
18
|
+
display: ReactNode;
|
|
18
19
|
};
|
|
19
20
|
1: {
|
|
20
21
|
check: string;
|
|
21
|
-
display:
|
|
22
|
+
display: ReactNode;
|
|
22
23
|
};
|
|
23
24
|
6: {
|
|
24
25
|
check: string;
|
|
@@ -47,7 +48,7 @@ export declare enum QuoteCustomErrorType {
|
|
|
47
48
|
INSUFFICIENT_BALANCE_POST_CHECK = 2,
|
|
48
49
|
INSUFFICIENT_AMOUNT_POST_CHECK = 3
|
|
49
50
|
}
|
|
50
|
-
export declare const
|
|
51
|
+
export declare const getQuoteCustomErrorDisplayInfo: (t: TFunction) => {
|
|
51
52
|
0: {
|
|
52
53
|
check: string;
|
|
53
54
|
display: string;
|
|
@@ -65,4 +66,4 @@ export declare const getQuoteCustomErrorStringInfo: (t: TFunction) => {
|
|
|
65
66
|
display: string;
|
|
66
67
|
};
|
|
67
68
|
};
|
|
68
|
-
export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction):
|
|
69
|
+
export declare function generateQuoteApiErrorForDisplay(err: Error, t: TFunction): ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function useCheckoutQuoteNotification(): {
|
|
2
2
|
quoteNotification: {
|
|
3
3
|
readonly messageType: "error";
|
|
4
|
-
readonly quoteMessage: string
|
|
4
|
+
readonly quoteMessage: string | number | bigint | true | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined>;
|
|
5
5
|
} | {
|
|
6
6
|
readonly messageType: "step";
|
|
7
7
|
readonly quoteMessage: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GetFopsResponse } from '@funkit/api-base';
|
|
2
2
|
/**
|
|
3
3
|
* Feeds fops data into the SwappedProvider iframe pool.
|
|
4
|
-
* Extracts iframe URLs in priority order (
|
|
4
|
+
* Extracts iframe URLs in priority order (matching FormOfPaymentsList component)
|
|
5
5
|
* and passes them to the pool for background preloading.
|
|
6
6
|
*/
|
|
7
7
|
export declare function useSwappedPreload(fopsData: GetFopsResponse | undefined): void;
|
package/dist/index.css
CHANGED
|
@@ -11703,7 +11703,7 @@
|
|
|
11703
11703
|
}
|
|
11704
11704
|
}
|
|
11705
11705
|
|
|
11706
|
-
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#
|
|
11706
|
+
/* vanilla-extract-css-ns:src/components/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KgqgIKE5mrUfHp6dteikn9ftr1n12f64Q8tZ2WlVOQ6/J7nuyA133oZtVF9pYPOhmABr2oO+E3/4C+snSOvANAAA= */
|
|
11707
11707
|
[data-rk] ._1pzt4231 {
|
|
11708
11708
|
--bottom-padding-value: var(--rk-spacing-modalPaddingBottomLower);
|
|
11709
11709
|
max-height: 525px;
|
|
@@ -11731,6 +11731,10 @@
|
|
|
11731
11731
|
[data-rk] ._1pzt4231:has(#connect-exchange) {
|
|
11732
11732
|
max-height: 825px;
|
|
11733
11733
|
}
|
|
11734
|
+
[data-rk] ._1pzt4231:has(#swapped-iframe),
|
|
11735
|
+
[data-rk] ._1pzt4231:has(#swapped-iframe-loading) {
|
|
11736
|
+
max-height: 580px;
|
|
11737
|
+
}
|
|
11734
11738
|
[data-rk] ._1pzt4232 {
|
|
11735
11739
|
min-width: 380px;
|
|
11736
11740
|
width: 380px;
|