@funkit/connect 6.14.1 → 6.14.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 +28 -0
- package/dist/consts/funkit.d.ts +1 -0
- package/dist/hooks/useCheckoutAccountBalanceTransfer.d.ts +1 -1
- package/dist/hooks/useCheckoutDirectExecution.d.ts +2 -1
- package/dist/hooks/useIsTokenWhitelisted.d.ts +30 -0
- package/dist/index.css +2 -2
- package/dist/index.js +551 -470
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +1 -9
- 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 +64 -64
- 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 +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.14.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5ae4bd6: fix(connect): added z-index of privy modal window into Dialog.css.ts so we do not overlap it
|
|
8
|
+
- 2544c59: refactor: remove new badges for card
|
|
9
|
+
- 68045a5: chore(connect): remove unused flags
|
|
10
|
+
- 5bf6f5d: feat(api-base, connect): support for permit flow for Arbitrum USDC on Based
|
|
11
|
+
- c250454: chore: deprecate checkoutAssetWhitelist
|
|
12
|
+
- 771f0f1: feat: ethereal chain registration
|
|
13
|
+
- Updated dependencies [277944d]
|
|
14
|
+
- Updated dependencies [68045a5]
|
|
15
|
+
- Updated dependencies [5bf6f5d]
|
|
16
|
+
- Updated dependencies [c250454]
|
|
17
|
+
- Updated dependencies [771f0f1]
|
|
18
|
+
- @funkit/fun-relay@2.0.4
|
|
19
|
+
- @funkit/utils@1.1.12
|
|
20
|
+
- @funkit/api-base@1.12.4
|
|
21
|
+
- @funkit/chains@0.4.1
|
|
22
|
+
- @funkit/core@2.3.49
|
|
23
|
+
- @funkit/wagmi-tools@3.0.72
|
|
24
|
+
|
|
25
|
+
## 6.14.2
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 014910c: Fix connected state detection by adding explicit isConnected field to user info
|
|
30
|
+
|
|
3
31
|
## 6.14.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/consts/funkit.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export declare function useCheckoutAccountBalanceTransfer(): {
|
|
|
14
14
|
bypassInit: boolean;
|
|
15
15
|
apiKey?: string;
|
|
16
16
|
nonce?: bigint | undefined;
|
|
17
|
+
logger?: import("@funkit/api-base").Logger | undefined;
|
|
17
18
|
fee?: {
|
|
18
19
|
token?: string;
|
|
19
20
|
amount?: number;
|
|
@@ -21,7 +22,6 @@ export declare function useCheckoutAccountBalanceTransfer(): {
|
|
|
21
22
|
recipient: import("viem").Address;
|
|
22
23
|
} | undefined;
|
|
23
24
|
skipDBAction?: boolean | undefined;
|
|
24
|
-
logger?: import("@funkit/api-base").Logger | undefined;
|
|
25
25
|
};
|
|
26
26
|
} | {
|
|
27
27
|
rFunWallet: null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DirectExecutionType } from '@funkit/api-base';
|
|
2
|
-
import type
|
|
2
|
+
import { type CheckoutQuoteResponse } from '@funkit/utils';
|
|
3
3
|
import type { Address, Hex } from 'viem';
|
|
4
4
|
import type { FunkitCheckoutQuoteResult } from '~/domains/quote';
|
|
5
5
|
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams } from '~/providers/FunkitCheckoutContext';
|
|
@@ -13,6 +13,7 @@ interface DirectExecutionQuoteRequestParamsBase {
|
|
|
13
13
|
recipientAddress: Address;
|
|
14
14
|
senderAddress?: Address;
|
|
15
15
|
isExactIn?: boolean;
|
|
16
|
+
usePermit?: boolean;
|
|
16
17
|
}
|
|
17
18
|
interface RegularDEQuoteRequest extends DirectExecutionQuoteRequestParamsBase {
|
|
18
19
|
toTokenAmount: number;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type FlagKey } from '@funkit/utils';
|
|
2
|
+
export declare const MATCH_ALL = "*";
|
|
3
|
+
export type MatchAll = typeof MATCH_ALL;
|
|
4
|
+
export interface TokenWhitelist {
|
|
5
|
+
[chainId: string | MatchAll]: string[] | [MatchAll] | MatchAll;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Helper to check if a token is whitelisted for a given flag
|
|
9
|
+
* Expects a flag value to be a JSON string of the following format (see {@link TokenWhitelist}):
|
|
10
|
+
* ```json
|
|
11
|
+
* {
|
|
12
|
+
* "137": ["0xaf88d065e77c8cC2239327C5EDb3A432268e5831"],
|
|
13
|
+
* "8453": ["0xaf88d065e77c8cC2239327C5EDb3A432268e5831"]
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
16
|
+
* Does also support wildcard entries, for example:
|
|
17
|
+
* ```json
|
|
18
|
+
* {
|
|
19
|
+
* "137": ["*"],
|
|
20
|
+
* "8453": "*",
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
* or even:
|
|
24
|
+
* ```json
|
|
25
|
+
* {
|
|
26
|
+
* "*": "*"
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare const useIsTokenWhitelisted: <T extends FlagKey>(flagKey: T) => (chainId: string, tokenAddress: string) => boolean;
|
package/dist/index.css
CHANGED
|
@@ -9116,7 +9116,7 @@
|
|
|
9116
9116
|
--_7rkubb1: 0.9;
|
|
9117
9117
|
}
|
|
9118
9118
|
|
|
9119
|
-
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=
|
|
9119
|
+
/* vanilla-extract-css-ns:src/components/Dialog/Dialog.css.ts.vanilla.css?source=Ll8xcjhmNTcxIHsKICBib3R0b206IC0yMDBweDsKICBsZWZ0OiAtMjAwcHg7CiAgcGFkZGluZzogMjAwcHg7CiAgcmlnaHQ6IC0yMDBweDsKICB0b3A6IC0yMDBweDsKICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVooMCk7CiAgei1pbmRleDogOTk5OTk4Owp9Ci5fMXI4ZjU3MyB7CiAgbWF4LXdpZHRoOiAxMDB2dzsKfQouXzFyOGY1NzQgewogIGRpc3BsYXk6IGZsZXg7CiAgYWxpZ24taXRlbXM6IGNlbnRlcjsKICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47CiAgd2lkdGg6IDEwMCU7CiAgZmxleC1zaHJpbms6IDA7CiAgbWluLWhlaWdodDogdmFyKC0tcmstZGltZW5zaW9ucy1tb2RhbFRvcEJhckhlaWdodCk7Cn0KLl8xcjhmNTc2IHsKICBwb3NpdGlvbjogYWJzb2x1dGU7CiAgbGVmdDogMDsKICByaWdodDogMDsKICB6LWluZGV4OiAxOwp9Ci5fMXI4ZjU3NyB7CiAgcG9zaXRpb246IHJlbGF0aXZlOwogIHotaW5kZXg6IDI7Cn0KLl8xcjhmNTc5IHsKICBib3R0b206IDA7CiAgbGVmdDogMDsKICByaWdodDogMDsKICB0b3A6IDA7CiAgei1pbmRleDogLTE7Cn0KLl8xcjhmNTdhIHsKICBhbGlnbi1pdGVtczogY2VudGVyOwp9Ci5fMXI4ZjU3YiB7CiAgYWxpZ24taXRlbXM6IGZsZXgtZW5kOwp9 */
|
|
9120
9120
|
[data-rk] ._1r8f571 {
|
|
9121
9121
|
bottom: -200px;
|
|
9122
9122
|
left: -200px;
|
|
@@ -9124,7 +9124,7 @@
|
|
|
9124
9124
|
right: -200px;
|
|
9125
9125
|
top: -200px;
|
|
9126
9126
|
transform: translateZ(0);
|
|
9127
|
-
z-index:
|
|
9127
|
+
z-index: 999998;
|
|
9128
9128
|
}
|
|
9129
9129
|
[data-rk] ._1r8f573 {
|
|
9130
9130
|
max-width: 100vw;
|