@funkit/connect 8.5.0 → 8.6.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 +36 -0
- package/dist/__generated__/default_configs.d.ts +4 -1
- package/dist/{chunk-G4ZF44OO.js → chunk-EPHOZPMR.js} +9 -1
- package/dist/{chunk-K4YHIQ6O.js → chunk-FZZF5FGD.js} +1 -1
- package/dist/{chunk-GOGXF6NC.js → chunk-NAHADAYF.js} +1 -1
- package/dist/clients/fanatics.css +0 -1
- package/dist/components/ConnectButton/abbreviateETHBalance.d.ts +0 -1
- package/dist/components/Dialog/Dialog.css.d.ts +0 -1
- package/dist/components/FunNotification/FunNotification.d.ts +2 -2
- package/dist/components/FunPayments/FunPaymentMethods.d.ts +2 -1
- package/dist/components/Icons/{New/BlueCircularWalletIcon.d.ts → FunWarningIcon.d.ts} +1 -1
- package/dist/components/ModalHeightAnimationLayer/ModalHeightAnimationLayer.d.ts +7 -0
- package/dist/components/ModalHeightAnimationLayer/WithdrawalModalHeightAnimationWrapper.d.ts +8 -0
- package/dist/css/sprinkles.css.d.ts +2 -0
- package/dist/domains/swapped.d.ts +7 -0
- package/dist/domains/wallet.d.ts +0 -7
- package/dist/hooks/queries/useFops.d.ts +202 -2
- package/dist/hooks/useCheckoutTransferInit.d.ts +1 -0
- package/dist/index.css +2 -3
- package/dist/index.js +2758 -2536
- package/dist/modals/CheckoutModal/ConfirmationStep/useCheckoutConfirmation.d.ts +7 -3
- package/dist/modals/WithdrwalModal/WithdrawalModal.d.ts +0 -5
- package/dist/modals/WithdrwalModal/types.d.ts +5 -0
- package/dist/providers/AuthenticationContext.d.ts +0 -1
- package/dist/providers/FunkitConfigContext.d.ts +0 -2
- package/dist/providers/FunkitThemeProvider.d.ts +3 -0
- package/dist/themes/baseTheme.d.ts +3 -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/checkout.d.ts +0 -6
- package/dist/utils/polygonRpcCheck.d.ts +12 -0
- package/dist/utils/swapped.d.ts +2 -0
- 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 +56 -56
- 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 +16 -16
- package/dist/components/ConnectButton/formatAccountName.d.ts +0 -14
- package/dist/components/FunButton/FunSignInButton.d.ts +0 -8
- package/dist/components/FunCheckoutHistory/FunCheckoutStatus.css.d.ts +0 -1
- package/dist/components/FunInput/FunTextAreaInput.css copy.d.ts +0 -1
- package/dist/components/FunKeyValue/FunKeyValue.d.ts +0 -32
- package/dist/components/FunTransactionSummary/FunTxSummaryComponents.css.d.ts +0 -2
- package/dist/components/Icons/New/HelpIcon.d.ts +0 -2
- package/dist/components/Icons/New/UserIcon.d.ts +0 -4
- package/dist/components/index.d.ts +0 -2
- package/dist/hooks/queries/useClientId.d.ts +0 -3
- package/dist/hooks/useDynamicFont.d.ts +0 -5
- package/dist/modals/CheckoutModal/ConfirmationStep/DirectExecutionBrokerageAndCardAlert.d.ts +0 -2
- package/dist/modals/CheckoutModal/InputAmount/AvailableBalance.d.ts +0 -8
- package/dist/components/{FunCheckoutModalHeightAnimationWrapper → ModalHeightAnimationLayer}/FunCheckoutModalHeightAnimationWrapper.d.ts +0 -0
- package/dist/wallets/walletConnectors/{chunk-FT5BX7TL.js → chunk-2E4PDCEJ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-LGT6IAXI.js → chunk-47QF6EET.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5AV2NSL3.js → chunk-5EAOMOTO.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4SC3PZVM.js → chunk-77UTBHGP.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GXTI2PZD.js → chunk-CZYUE3AR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-O6YFVGVQ.js → chunk-FA5DTT5R.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PRGCIJ7Y.js → chunk-HPHADOYD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-GEMN6DM5.js → chunk-JFHP4YJG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-75A4Q5E5.js → chunk-MRRZOQGZ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-6677RKVT.js → chunk-R6Y36CMA.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-5FWURLPF.js → chunk-RA7MCWF4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TLOROKED.js → chunk-RLRQYUYC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-3ZWIUCOI.js → chunk-T5KHVUFR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ENLR4LXN.js → chunk-U5QP7MI5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-OCM5YHT5.js → chunk-UOTQQJJD.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RNIMZDHW.js → chunk-VYNVAGSV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-N7475PGA.js → chunk-W7Y6I22Y.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-WNQ3NPHX.js → chunk-YLJDPTYF.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 8.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 642bccf: feat(connect): add custom zIndex option to uiCustomizations
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- b67b352: feat(connect): show FOP limits and add sorting logic
|
|
12
|
+
- 92c5160: feat(connect): withdrawal modal height animation
|
|
13
|
+
- 7e0be42: feat(connect): add source change tab switch animation
|
|
14
|
+
- ac86825: map color tokens to swapped specific tokens
|
|
15
|
+
- 9037307: feat(connect): update form of payment section labels
|
|
16
|
+
- 5418bb4: Fix price impact display showing '< 0.01%' for negative values
|
|
17
|
+
- 4551e78: pass countryCode to fops endpoint
|
|
18
|
+
- 571848a: feat(connect): update swapped skeleton
|
|
19
|
+
- 2eea062: bump dependencies version
|
|
20
|
+
- 1c63698: fix(connect): fops loading state
|
|
21
|
+
- c70ce2f: fix: swapped quick options border radius
|
|
22
|
+
- ebd1dd5: fix(connect): source change loading skeleteon
|
|
23
|
+
- 0059926: feat(connect): add polygon rpc check
|
|
24
|
+
- 519dbc2: Remove unused getRecommendedAsset function and related helpers from wallet domain.
|
|
25
|
+
- 0dd2099: set secondarybutton colors for swapped
|
|
26
|
+
- d211c37: fix(connect): format saved payment method names + icons
|
|
27
|
+
- 9eaa24a: refactor(connect): simplify swapped iframe memo
|
|
28
|
+
- 2b1c38d: Rename enableswapped statsig flag to enableswappeddeposit and add new enableswappedwithdrawal flag
|
|
29
|
+
- b6bcd2b: fix: swapped quick options styling
|
|
30
|
+
- Updated dependencies [b67b352]
|
|
31
|
+
- Updated dependencies [ae1df7e]
|
|
32
|
+
- Updated dependencies [4551e78]
|
|
33
|
+
- Updated dependencies [2eea062]
|
|
34
|
+
- Updated dependencies [d211c37]
|
|
35
|
+
- @funkit/api-base@2.3.1
|
|
36
|
+
- @funkit/fun-relay@2.6.1
|
|
37
|
+
- @funkit/utils@1.2.3
|
|
38
|
+
|
|
3
39
|
## 8.5.0
|
|
4
40
|
|
|
5
41
|
### Minor Changes
|
|
@@ -283,7 +283,10 @@ declare const _default: {
|
|
|
283
283
|
readonly enablemeldpayment: {
|
|
284
284
|
readonly value: false;
|
|
285
285
|
};
|
|
286
|
-
readonly
|
|
286
|
+
readonly enableswappeddeposit: {
|
|
287
|
+
readonly value: false;
|
|
288
|
+
};
|
|
289
|
+
readonly enableswappedwithdrawal: {
|
|
287
290
|
readonly value: false;
|
|
288
291
|
};
|
|
289
292
|
readonly enabletokentransfer: {
|
|
@@ -133,6 +133,12 @@ var FONT_SIZINGS = {
|
|
|
133
133
|
"57": { fontSize: "50px", lineHeight: "60px" }
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
|
+
var nestedModalZIndexes = {
|
|
137
|
+
coinbase: 2147483647,
|
|
138
|
+
walletConnect: 99999999999999,
|
|
139
|
+
privy: 999999
|
|
140
|
+
};
|
|
141
|
+
var DEFAULT_MODAL_Z_INDEX = Math.min(...Object.values(nestedModalZIndexes)) - 2;
|
|
136
142
|
var baseTheme = ({
|
|
137
143
|
borderRadius = "large",
|
|
138
144
|
fontStack = "fun",
|
|
@@ -145,8 +151,10 @@ var baseTheme = ({
|
|
|
145
151
|
customDimensions,
|
|
146
152
|
customSpacings,
|
|
147
153
|
customTextTransforms,
|
|
148
|
-
overlayBlur = "small"
|
|
154
|
+
overlayBlur = "small",
|
|
155
|
+
modalZIndex = DEFAULT_MODAL_Z_INDEX
|
|
149
156
|
}) => ({
|
|
157
|
+
modalZIndex: String(modalZIndex),
|
|
150
158
|
blurs: {
|
|
151
159
|
modalOverlay: blurs[overlayBlur].modalOverlay
|
|
152
160
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const easing: number[];
|
|
2
2
|
export declare const DialogAnimationTimeIn = 0.25;
|
|
3
3
|
export declare const DialogAnimationTimeOut = 0.12;
|
|
4
|
-
export declare const FunModalZIndex: number;
|
|
5
4
|
export declare const overlay: string;
|
|
6
5
|
export declare const content: string;
|
|
7
6
|
export declare const titleContainer: string;
|
|
@@ -7,7 +7,7 @@ interface FunNotificationProps {
|
|
|
7
7
|
isVisible?: boolean;
|
|
8
8
|
testId?: string;
|
|
9
9
|
}
|
|
10
|
-
export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint';
|
|
10
|
+
export type FunNotificationType = 'default' | 'error' | 'warning' | 'hint' | 'warningAlert';
|
|
11
11
|
export interface ErrorNotification {
|
|
12
12
|
message: ReactNode;
|
|
13
13
|
type: FunNotificationType;
|
|
@@ -16,5 +16,5 @@ export interface ErrorNotification {
|
|
|
16
16
|
* A notification/message component with height resizing animation.
|
|
17
17
|
* Control visibility by enabling/disabling `isVisible` prop instead of doing an outer conditional rendering.
|
|
18
18
|
*/
|
|
19
|
-
export declare function FunNotification({ type, description, actionText, onAction, isVisible: isVisibleProps, testId, }: FunNotificationProps): React.JSX.Element;
|
|
19
|
+
export declare function FunNotification({ type, description, actionText, onAction, isVisible: isVisibleProps, testId, }: FunNotificationProps): React.JSX.Element | null;
|
|
20
20
|
export {};
|
|
@@ -57,7 +57,8 @@ export declare function PayPalPaymentMethodItem({ isActive, isClickable, onClick
|
|
|
57
57
|
/**
|
|
58
58
|
* Payment method item for a Form of Payment from the fops API (Swapped providers)
|
|
59
59
|
*/
|
|
60
|
-
export declare function FopPaymentMethodItem({ fop, isActive, onClick, testId, }: BasePaymentMethodItemProps & {
|
|
60
|
+
export declare function FopPaymentMethodItem({ fop, isActive, onClick, testId, disclaimerLimit, }: BasePaymentMethodItemProps & {
|
|
61
61
|
fop: SwappedFormOfPayment;
|
|
62
|
+
disclaimerLimit: string;
|
|
62
63
|
}): React.JSX.Element;
|
|
63
64
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ModalHeightAnimationLayerProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
permittedHeight: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function ModalHeightAnimationLayer({ children, permittedHeight, }: ModalHeightAnimationLayerProps): React.JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WithdrawalModalStep } from '../../modals/WithdrwalModal/types';
|
|
3
|
+
interface WithdrawalModalHeightAnimationWrapperProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
withdrawalStep: WithdrawalModalStep;
|
|
6
|
+
}
|
|
7
|
+
export declare function WithdrawalModalHeightAnimationWrapper({ children, withdrawalStep, }: WithdrawalModalHeightAnimationWrapperProps): React.JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -429,6 +429,7 @@ declare const themeContractValues: {
|
|
|
429
429
|
modalOverlay: string;
|
|
430
430
|
};
|
|
431
431
|
moonpayTheme: string;
|
|
432
|
+
modalZIndex: string;
|
|
432
433
|
};
|
|
433
434
|
export declare const validColorNames: string[];
|
|
434
435
|
export type ThemeVars = typeof themeContractValues;
|
|
@@ -861,6 +862,7 @@ export declare const themeVars: {
|
|
|
861
862
|
modalOverlay: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
862
863
|
};
|
|
863
864
|
moonpayTheme: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
865
|
+
modalZIndex: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
864
866
|
};
|
|
865
867
|
export declare const largeScreenMinWidth = 768;
|
|
866
868
|
declare const responsiveProperties: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ExchangeRates, SwappedFormOfPayment } from '@funkit/api-base';
|
|
2
|
+
export declare function sortFops<T extends SwappedFormOfPayment>(fops: T[]): T[];
|
|
3
|
+
/**
|
|
4
|
+
* Get the limit for a given form of payment in USD.
|
|
5
|
+
* Backend returns min/max in Euros - we convert to USD and round down to the nearest $100
|
|
6
|
+
*/
|
|
7
|
+
export declare function getFopsLimit(fop: SwappedFormOfPayment, exchangeRates: ExchangeRates | undefined, defaultMaxLimit?: string): string;
|
package/dist/domains/wallet.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { FunkitActiveCheckoutItem } from '../providers/FunkitCheckoutContext';
|
|
2
1
|
export interface AssetHoldingsItem {
|
|
3
2
|
iconSrc: string | undefined;
|
|
4
3
|
symbol: string;
|
|
@@ -25,9 +24,3 @@ export declare function getTotalAssetBalance(assets: AssetHoldingsMap): number;
|
|
|
25
24
|
export declare const isPolygonEcosystemToken: (chainId: string, tokenAddress: string) => boolean;
|
|
26
25
|
export declare const L2_COST_MARGIN_MULTIPLIER = 1.2;
|
|
27
26
|
export declare const ASSETS_LOW_VALUE_THRESHOLD = 0.1;
|
|
28
|
-
type RecommendedAsset = {
|
|
29
|
-
chainSymbolKey: string;
|
|
30
|
-
label: string | null;
|
|
31
|
-
};
|
|
32
|
-
export declare const getRecommendedAsset: (checkoutItem: FunkitActiveCheckoutItem, accountHoldings: KnownAssetHoldingsItem[]) => RecommendedAsset | null;
|
|
33
|
-
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type GetFopsResponse } from '@funkit/api-base';
|
|
2
1
|
export interface UseFopsParams {
|
|
3
2
|
/** User's email for Swapped integration */
|
|
4
3
|
email?: string;
|
|
@@ -14,4 +13,205 @@ export interface UseFopsParams {
|
|
|
14
13
|
* @param params - Optional parameters including email, enabled state, and themeConfig
|
|
15
14
|
* @returns Query result with genericFormsOfPayments and savedFormsOfPayments
|
|
16
15
|
*/
|
|
17
|
-
export declare const useFops: ({ enabled, themeConfig, }?: UseFopsParams) =>
|
|
16
|
+
export declare const useFops: ({ enabled, themeConfig, }?: UseFopsParams) => {
|
|
17
|
+
isLoading: boolean;
|
|
18
|
+
data: {
|
|
19
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
20
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
21
|
+
};
|
|
22
|
+
error: Error;
|
|
23
|
+
isError: true;
|
|
24
|
+
isPending: false;
|
|
25
|
+
isLoadingError: false;
|
|
26
|
+
isRefetchError: true;
|
|
27
|
+
isSuccess: false;
|
|
28
|
+
isPlaceholderData: false;
|
|
29
|
+
status: "error";
|
|
30
|
+
dataUpdatedAt: number;
|
|
31
|
+
errorUpdatedAt: number;
|
|
32
|
+
failureCount: number;
|
|
33
|
+
failureReason: Error | null;
|
|
34
|
+
errorUpdateCount: number;
|
|
35
|
+
isFetched: boolean;
|
|
36
|
+
isFetchedAfterMount: boolean;
|
|
37
|
+
isFetching: boolean;
|
|
38
|
+
isInitialLoading: boolean;
|
|
39
|
+
isPaused: boolean;
|
|
40
|
+
isRefetching: boolean;
|
|
41
|
+
isStale: boolean;
|
|
42
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
43
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
44
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
45
|
+
}, Error>>;
|
|
46
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
47
|
+
promise: Promise<{
|
|
48
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
49
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
50
|
+
}>;
|
|
51
|
+
} | {
|
|
52
|
+
isLoading: boolean;
|
|
53
|
+
data: {
|
|
54
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
55
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
56
|
+
};
|
|
57
|
+
error: null;
|
|
58
|
+
isError: false;
|
|
59
|
+
isPending: false;
|
|
60
|
+
isLoadingError: false;
|
|
61
|
+
isRefetchError: false;
|
|
62
|
+
isSuccess: true;
|
|
63
|
+
isPlaceholderData: false;
|
|
64
|
+
status: "success";
|
|
65
|
+
dataUpdatedAt: number;
|
|
66
|
+
errorUpdatedAt: number;
|
|
67
|
+
failureCount: number;
|
|
68
|
+
failureReason: Error | null;
|
|
69
|
+
errorUpdateCount: number;
|
|
70
|
+
isFetched: boolean;
|
|
71
|
+
isFetchedAfterMount: boolean;
|
|
72
|
+
isFetching: boolean;
|
|
73
|
+
isInitialLoading: boolean;
|
|
74
|
+
isPaused: boolean;
|
|
75
|
+
isRefetching: boolean;
|
|
76
|
+
isStale: boolean;
|
|
77
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
78
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
79
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
80
|
+
}, Error>>;
|
|
81
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
82
|
+
promise: Promise<{
|
|
83
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
84
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
85
|
+
}>;
|
|
86
|
+
} | {
|
|
87
|
+
isLoading: boolean;
|
|
88
|
+
data: undefined;
|
|
89
|
+
error: Error;
|
|
90
|
+
isError: true;
|
|
91
|
+
isPending: false;
|
|
92
|
+
isLoadingError: true;
|
|
93
|
+
isRefetchError: false;
|
|
94
|
+
isSuccess: false;
|
|
95
|
+
isPlaceholderData: false;
|
|
96
|
+
status: "error";
|
|
97
|
+
dataUpdatedAt: number;
|
|
98
|
+
errorUpdatedAt: number;
|
|
99
|
+
failureCount: number;
|
|
100
|
+
failureReason: Error | null;
|
|
101
|
+
errorUpdateCount: number;
|
|
102
|
+
isFetched: boolean;
|
|
103
|
+
isFetchedAfterMount: boolean;
|
|
104
|
+
isFetching: boolean;
|
|
105
|
+
isInitialLoading: boolean;
|
|
106
|
+
isPaused: boolean;
|
|
107
|
+
isRefetching: boolean;
|
|
108
|
+
isStale: boolean;
|
|
109
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
110
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
111
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
112
|
+
}, Error>>;
|
|
113
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
114
|
+
promise: Promise<{
|
|
115
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
116
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
117
|
+
}>;
|
|
118
|
+
} | {
|
|
119
|
+
isLoading: boolean;
|
|
120
|
+
data: undefined;
|
|
121
|
+
error: null;
|
|
122
|
+
isError: false;
|
|
123
|
+
isPending: true;
|
|
124
|
+
isLoadingError: false;
|
|
125
|
+
isRefetchError: false;
|
|
126
|
+
isSuccess: false;
|
|
127
|
+
isPlaceholderData: false;
|
|
128
|
+
status: "pending";
|
|
129
|
+
dataUpdatedAt: number;
|
|
130
|
+
errorUpdatedAt: number;
|
|
131
|
+
failureCount: number;
|
|
132
|
+
failureReason: Error | null;
|
|
133
|
+
errorUpdateCount: number;
|
|
134
|
+
isFetched: boolean;
|
|
135
|
+
isFetchedAfterMount: boolean;
|
|
136
|
+
isFetching: boolean;
|
|
137
|
+
isInitialLoading: boolean;
|
|
138
|
+
isPaused: boolean;
|
|
139
|
+
isRefetching: boolean;
|
|
140
|
+
isStale: boolean;
|
|
141
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
142
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
143
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
144
|
+
}, Error>>;
|
|
145
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
146
|
+
promise: Promise<{
|
|
147
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
148
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
149
|
+
}>;
|
|
150
|
+
} | {
|
|
151
|
+
isLoading: boolean;
|
|
152
|
+
data: undefined;
|
|
153
|
+
error: null;
|
|
154
|
+
isError: false;
|
|
155
|
+
isPending: true;
|
|
156
|
+
isLoadingError: false;
|
|
157
|
+
isRefetchError: false;
|
|
158
|
+
isSuccess: false;
|
|
159
|
+
isPlaceholderData: false;
|
|
160
|
+
status: "pending";
|
|
161
|
+
dataUpdatedAt: number;
|
|
162
|
+
errorUpdatedAt: number;
|
|
163
|
+
failureCount: number;
|
|
164
|
+
failureReason: Error | null;
|
|
165
|
+
errorUpdateCount: number;
|
|
166
|
+
isFetched: boolean;
|
|
167
|
+
isFetchedAfterMount: boolean;
|
|
168
|
+
isFetching: boolean;
|
|
169
|
+
isInitialLoading: boolean;
|
|
170
|
+
isPaused: boolean;
|
|
171
|
+
isRefetching: boolean;
|
|
172
|
+
isStale: boolean;
|
|
173
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
174
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
175
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
176
|
+
}, Error>>;
|
|
177
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
178
|
+
promise: Promise<{
|
|
179
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
180
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
181
|
+
}>;
|
|
182
|
+
} | {
|
|
183
|
+
isLoading: boolean;
|
|
184
|
+
data: {
|
|
185
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
186
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
187
|
+
};
|
|
188
|
+
isError: false;
|
|
189
|
+
error: null;
|
|
190
|
+
isPending: false;
|
|
191
|
+
isLoadingError: false;
|
|
192
|
+
isRefetchError: false;
|
|
193
|
+
isSuccess: true;
|
|
194
|
+
isPlaceholderData: true;
|
|
195
|
+
status: "success";
|
|
196
|
+
dataUpdatedAt: number;
|
|
197
|
+
errorUpdatedAt: number;
|
|
198
|
+
failureCount: number;
|
|
199
|
+
failureReason: Error | null;
|
|
200
|
+
errorUpdateCount: number;
|
|
201
|
+
isFetched: boolean;
|
|
202
|
+
isFetchedAfterMount: boolean;
|
|
203
|
+
isFetching: boolean;
|
|
204
|
+
isInitialLoading: boolean;
|
|
205
|
+
isPaused: boolean;
|
|
206
|
+
isRefetching: boolean;
|
|
207
|
+
isStale: boolean;
|
|
208
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
209
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
210
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
211
|
+
}, Error>>;
|
|
212
|
+
fetchStatus: import("@tanstack/react-query").FetchStatus;
|
|
213
|
+
promise: Promise<{
|
|
214
|
+
genericFormsOfPayments: import("@funkit/api-base").GenericFormOfPayment[];
|
|
215
|
+
savedFormsOfPayments: import("@funkit/api-base").SavedFormOfPayment[];
|
|
216
|
+
}>;
|
|
217
|
+
};
|
|
@@ -4,6 +4,7 @@ import { type UDAConfig } from './useUDAParams';
|
|
|
4
4
|
interface UseCheckoutTransferInitResponse {
|
|
5
5
|
transferInit: CheckoutInitTokenTransferResponse | undefined;
|
|
6
6
|
recipientAddr: FunAddress;
|
|
7
|
+
isLoading: boolean;
|
|
7
8
|
}
|
|
8
9
|
type CheckoutTokenTransferParams = Omit<CheckoutInitTokenTransferAddressParams, 'logger' | 'clientMetadata'>;
|
|
9
10
|
export declare function checkoutTransferFetch(params: CheckoutTokenTransferParams): Promise<CheckoutInitTokenTransferResponse>;
|
package/dist/index.css
CHANGED
|
@@ -3172,7 +3172,6 @@
|
|
|
3172
3172
|
width: var(--rk-dimensions-txSummaryLineSkeletonWidth);
|
|
3173
3173
|
}
|
|
3174
3174
|
[data-rk] ._1rsrm2fsh {
|
|
3175
|
-
-webkit-backdrop-filter: var(--rk-blurs-modalOverlay);
|
|
3176
3175
|
backdrop-filter: var(--rk-blurs-modalOverlay);
|
|
3177
3176
|
}
|
|
3178
3177
|
[data-rk] ._1rsrm2fsi {
|
|
@@ -11907,7 +11906,7 @@
|
|
|
11907
11906
|
--_7rkubb1: 0.9;
|
|
11908
11907
|
}
|
|
11909
11908
|
|
|
11910
|
-
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=
|
|
11909
|
+
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogdmFyKC0tcmstbW9kYWxaSW5kZXgpOwp9Ci5fMXI4ZjU3MyB7CiAgbWF4LXdpZHRoOiAxMDB2dzsKfQouXzFyOGY1NzQgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgd2lkdGg6IDEwMCU7CiAgZmxleC1zaHJpbms6IDA7CiAgbWluLWhlaWdodDogdmFyKC0tcmstZGltZW5zaW9ucy1tb2RhbFRvcEJhckhlaWdodCk7Cn0KLl8xcjhmNTc2IHsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgbGVmdDogMDsKICByaWdodDogMDsKICB6LWluZGV4OiAxOwp9Ci5fMXI4ZjU3NyB7CiAgcG9zaXRpb246IHJlbGF0aXZlOwogIHotaW5kZXg6IDI7Cn0KLl8xcjhmNTc5IHsKICBib3R0b206IDA7CiAgbGVmdDogMDsKICByaWdodDogMDsKICB0b3A6IDA7CiAgei1pbmRleDogLTE7Cn0KLl8xcjhmNTdhIHsKICBhbGlnbi1pdGVtczogY2VudGVyOwp9Ci5fMXI4ZjU3YiB7CiAgYWxpZ24taXRlbXM6IGZsZXgtZW5kOwp9 */
|
|
11911
11910
|
[data-rk] ._1r8f571 {
|
|
11912
11911
|
bottom: -200px;
|
|
11913
11912
|
left: -200px;
|
|
@@ -11915,7 +11914,7 @@
|
|
|
11915
11914
|
right: -200px;
|
|
11916
11915
|
top: -200px;
|
|
11917
11916
|
transform: translateZ(0);
|
|
11918
|
-
z-index:
|
|
11917
|
+
z-index: var(--rk-modalZIndex);
|
|
11919
11918
|
}
|
|
11920
11919
|
[data-rk] ._1r8f573 {
|
|
11921
11920
|
max-width: 100vw;
|