@funkit/connect 6.14.2 → 6.14.4
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/consts/customers.d.ts +0 -1
- 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.d.ts +0 -1
- package/dist/index.js +689 -598
- package/dist/utils/checkout.d.ts +2 -1
- package/dist/utils/flags/config.d.ts +6 -14
- 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 +60 -60
- 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/dist/hooks/useGooeyFilter.d.ts +0 -21
- package/dist/hooks/useIsFunkitCheckoutActivated.d.ts +0 -7
- package/dist/hooks/useMountEffect.d.ts +0 -8
- package/dist/hooks/usePathMorph.d.ts +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 6.14.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3ad3b4e: remove kalshi
|
|
8
|
+
- 27e5782: Refactor withdrawal address validation to fix variable declaration order
|
|
9
|
+
- 5ae15d3: feat(connect): change qr min text order
|
|
10
|
+
- aa6d856: chore: deprecate unused hooks and exports
|
|
11
|
+
- 27e5782: Extract withdrawal amount input into separate component to reduce complexity
|
|
12
|
+
- Updated dependencies [3ad3b4e]
|
|
13
|
+
- @funkit/api-base@1.12.5
|
|
14
|
+
- @funkit/core@2.3.50
|
|
15
|
+
- @funkit/wagmi-tools@3.0.73
|
|
16
|
+
|
|
17
|
+
## 6.14.3
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 5ae4bd6: fix(connect): added z-index of privy modal window into Dialog.css.ts so we do not overlap it
|
|
22
|
+
- 2544c59: refactor: remove new badges for card
|
|
23
|
+
- 68045a5: chore(connect): remove unused flags
|
|
24
|
+
- 5bf6f5d: feat(api-base, connect): support for permit flow for Arbitrum USDC on Based
|
|
25
|
+
- c250454: chore: deprecate checkoutAssetWhitelist
|
|
26
|
+
- 771f0f1: feat: ethereal chain registration
|
|
27
|
+
- Updated dependencies [277944d]
|
|
28
|
+
- Updated dependencies [68045a5]
|
|
29
|
+
- Updated dependencies [5bf6f5d]
|
|
30
|
+
- Updated dependencies [c250454]
|
|
31
|
+
- Updated dependencies [771f0f1]
|
|
32
|
+
- @funkit/fun-relay@2.0.4
|
|
33
|
+
- @funkit/utils@1.1.12
|
|
34
|
+
- @funkit/api-base@1.12.4
|
|
35
|
+
- @funkit/chains@0.4.1
|
|
36
|
+
- @funkit/core@2.3.49
|
|
37
|
+
- @funkit/wagmi-tools@3.0.72
|
|
38
|
+
|
|
3
39
|
## 6.14.2
|
|
4
40
|
|
|
5
41
|
### Patch Changes
|
|
@@ -7,4 +7,3 @@ export declare function isKatanaCustomer(apiKey: string): apiKey is "OXLUmejkh9P
|
|
|
7
7
|
export declare function isHyperbeatCustomer(apiKey: string): apiKey is "lUzTaIRxs95iin3pCAafB1ChA5akBiuQ1tjhXnau";
|
|
8
8
|
export declare function isMonkeyTiltCustomer(apiKey: string): apiKey is "2SrxurU07T2XPDxCAItjj4yYEMXlwV8K2kJB78AX";
|
|
9
9
|
export declare function isBasedCustomer(apiKey: string): apiKey is "clDebbfo9edXq1GydZ0CahSAfSimPj616lFa9p8e";
|
|
10
|
-
export declare function isKalshiCustomer(apiKey: string): apiKey is "KEd0ZxJc4n1QBER8yBcKH8wWwfgjjdjO42riuq86";
|
|
@@ -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;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export type { ThemeVars } from './css/sprinkles.css';
|
|
|
11
11
|
export { PaymentMethod } from './domains/paymentMethods';
|
|
12
12
|
export { useConnectionStatus } from './hooks/useConnectionStatus';
|
|
13
13
|
export type { ConnectionStatus } from './hooks/useConnectionStatus';
|
|
14
|
-
export { useIsFunkitCheckoutActivated } from './hooks/useIsFunkitCheckoutActivated';
|
|
15
14
|
export { useFunkitMaxCheckoutUsdInfo } from './hooks/useFunkitMaxCheckoutUsdInfo';
|
|
16
15
|
export { useUpdateActiveFunkitCheckout } from './hooks/useUpdateActiveFunkitCheckout';
|
|
17
16
|
export type { Locale } from './locales/';
|