@funkit/connect 12.22.0 → 12.23.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 +52 -0
- package/dist/clients/{chunk-HGLDKRSQ.js → chunk-35XAIUH6.js} +80 -0
- package/dist/clients/{chunk-Y2O77SJO.js → chunk-55LEL7SW.js} +1 -1
- package/dist/clients/{chunk-5JVG4MS2.js → chunk-GQINBV24.js} +1 -1
- package/dist/clients/{chunk-S4SMCBQ4.js → chunk-HEOTAER5.js} +6 -2
- package/dist/clients/{chunk-T4Q43DNC.js → chunk-IDYAC2RY.js} +1 -1
- package/dist/clients/{chunk-UBZOARBX.js → chunk-JBJ5FEIA.js} +2 -2
- package/dist/clients/{chunk-R7I5OO6C.js → chunk-QS3S2PXZ.js} +1 -1
- package/dist/clients/fanatics.js +2 -2
- package/dist/clients/internal/nado/withdrawalCallback.js +3 -3
- package/dist/clients/internal/nado/withdrawalErrors.js +2 -2
- package/dist/clients/internal/nado/withdrawalForm.js +3 -3
- package/dist/clients/internal/nado/withdrawalStatus.js +3 -3
- package/dist/clients/lighter.js +3 -3
- package/dist/clients/mallard.js +2 -2
- package/dist/clients/nado.js +3 -3
- package/dist/clients/polymarket/createPolymarketDepositConfig.js +2 -2
- package/dist/clients/polymarket/index.js +2 -2
- package/dist/clients/polymarket/polymarket.d.ts +27 -0
- package/dist/clients/polymarket/polymarket.js +1 -1
- package/dist/components/Dropdown/BaseDropdown.d.ts +3 -1
- package/dist/components/Dropdown/BaseDropdownItem.d.ts +3 -1
- package/dist/components/Dropdown/TokenAndChainDropdown.d.ts +6 -1
- package/dist/components/Icons/AlertCircleIcon.d.ts +4 -0
- package/dist/domains/withdrawalAllowlist.d.ts +55 -0
- package/dist/domains/withdrawalChunking.d.ts +11 -0
- package/dist/hooks/queries/useWithdrawalRisk.d.ts +3 -1
- package/dist/hooks/useEnforcedAllowedRecipients.d.ts +11 -0
- package/dist/hooks/useIsBlacklistedWithdrawalAddress.d.ts +2 -0
- package/dist/hooks/useIsCashWithdrawalEnabled.d.ts +8 -0
- package/dist/hooks/useIsChunkedWithdrawal.d.ts +6 -0
- package/dist/index.css +103 -103
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4568 -3792
- package/dist/modals/WithdrawalModal/AllowedRecipientDropdown.d.ts +18 -0
- package/dist/modals/WithdrawalModal/ChunkedWithdrawalNotice.d.ts +2 -0
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +1 -0
- package/dist/modals/WithdrawalModal/LockedReceiveDisplay.d.ts +9 -0
- package/dist/modals/WithdrawalModal/useWithdrawal.d.ts +4 -1
- package/dist/modals/WithdrawalModal/useWithdrawalRecipientAllowlist.d.ts +44 -0
- package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +3 -1
- package/dist/providers/FunkitHistoryContext.d.ts +0 -1
- package/dist/shadow-css.js +1 -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 +62 -62
- 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-OVDCDVFX.js → chunk-34B7OJNT.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-JJBLW4IU.js → chunk-4FHNLTR3.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TM7UBV3Q.js → chunk-ALGPGI6V.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-MWB6LFSG.js → chunk-BBB2J3US.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IWPW26AL.js → chunk-BBDNB5TQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-53MYTA42.js → chunk-CU5J53XR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-USLZMUJ3.js → chunk-HOCKAU5H.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RJF2YEZ5.js → chunk-IA5432IR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ASTCNVJC.js → chunk-IWOMSW64.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-KE4CWI3A.js → chunk-NXWG6FG2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RQYEGJKL.js → chunk-RFCZYLNR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ANODOMIN.js → chunk-RXRYHMRI.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-PPQ6L4K2.js → chunk-SR5CZR3L.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TIHTQ3OB.js → chunk-TRZDAXCQ.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-F45CUFRR.js → chunk-U52QO5HF.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-A5POD5SV.js → chunk-XODA5ESL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-FYPQ3HP4.js → chunk-YRMBR6NA.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-65ULY6OC.js → chunk-ZSSSLFQF.js} +3 -3
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/** An address the integrator approved as a withdrawal recipient. */
|
|
2
|
+
export interface AllowedRecipient {
|
|
3
|
+
/**
|
|
4
|
+
* Address approved on {@link AllowedRecipient.chainId}, in that chain's
|
|
5
|
+
* format. EVM addresses match in any letter case; Solana and Tron addresses
|
|
6
|
+
* are case-sensitive and must match exactly.
|
|
7
|
+
*/
|
|
8
|
+
address: string;
|
|
9
|
+
/** Chain the address is approved on, e.g. `'137'`. */
|
|
10
|
+
chainId: string;
|
|
11
|
+
/** Optional nickname shown next to the shortened address. */
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AllowedRecipientOption extends AllowedRecipient {
|
|
15
|
+
/** Unique within its list: {@link toAllowedRecipientKey}. */
|
|
16
|
+
key: string;
|
|
17
|
+
/** Listed but can't receive funds, e.g. a blacklisted address. */
|
|
18
|
+
isBlocked: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* - `empty`: nothing to pick, so withdrawals stay blocked.
|
|
22
|
+
* - `allBlocked`: every address is listed but none can receive funds.
|
|
23
|
+
* - `selectable`: at least one address can receive funds.
|
|
24
|
+
*/
|
|
25
|
+
export type AllowedRecipientListState = 'empty' | 'allBlocked' | 'selectable';
|
|
26
|
+
/** Whether `address` is approved on `chainId`. An empty list approves nothing. */
|
|
27
|
+
export declare function isAllowedRecipient(recipients: readonly AllowedRecipient[], { address, chainId }: {
|
|
28
|
+
address: string;
|
|
29
|
+
chainId: number | string;
|
|
30
|
+
}): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The chain and address, so a pick keeps its address when the provider
|
|
33
|
+
* reorders the list. Spellings `isTokenEquivalent` treats as one address share
|
|
34
|
+
* a key: hex (EVM) addresses in any case, Solana and Tron ones only exactly.
|
|
35
|
+
*/
|
|
36
|
+
export declare function toAllowedRecipientKey({ address, chainId, }: Pick<AllowedRecipient, 'address' | 'chainId'>): string;
|
|
37
|
+
/**
|
|
38
|
+
* Builds the dropdown rows in list order, one per address on its chain. A
|
|
39
|
+
* repeat is dropped, so the first entry and its label win and keys stay unique.
|
|
40
|
+
*/
|
|
41
|
+
export declare function toAllowedRecipientOptions(recipients: readonly AllowedRecipient[], isBlocked: (address: string) => boolean): AllowedRecipientOption[];
|
|
42
|
+
export declare function getAllowedRecipientListState(options: readonly AllowedRecipientOption[]): AllowedRecipientListState;
|
|
43
|
+
/**
|
|
44
|
+
* The row for `address` on `chainId`, matched as {@link toAllowedRecipientKey}
|
|
45
|
+
* matches, or undefined when either is missing or the pair isn't listed.
|
|
46
|
+
*/
|
|
47
|
+
export declare function findAllowedRecipient(options: readonly AllowedRecipientOption[], { address, chainId, }: {
|
|
48
|
+
address: string | undefined;
|
|
49
|
+
chainId: number | string | undefined;
|
|
50
|
+
}): AllowedRecipientOption | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The selected address while it is listed and can receive funds, else the
|
|
53
|
+
* first that can.
|
|
54
|
+
*/
|
|
55
|
+
export declare function resolveAllowedRecipient(options: readonly AllowedRecipientOption[], selectedKey: string | undefined): AllowedRecipientOption | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chunk size in USD when the frontend chunking heuristic is enabled, else
|
|
3
|
+
* `undefined`.
|
|
4
|
+
* - Mirrors the backend's chunk threshold for the notice; it does not configure
|
|
5
|
+
* how the backend sends the withdrawal.
|
|
6
|
+
* - Typed generated defaults are literals, so the live value is validated here:
|
|
7
|
+
* an invalid config disables the heuristic rather than guessing a size.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseWithdrawalChunkSizeUsd(value: unknown): number | undefined;
|
|
10
|
+
/** `chunkSizeUsd` is `undefined` when the heuristic is disabled; an unpriced amount never chunks. */
|
|
11
|
+
export declare function isChunkedWithdrawal(withdrawalUsdValue: number | undefined, chunkSizeUsd: number | undefined): boolean;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare const useWithdrawalRisk: (apiKey: string, receiveAddress: string, chainId: number | undefined
|
|
1
|
+
export declare const useWithdrawalRisk: (apiKey: string, receiveAddress: string, chainId: number | undefined, { enabled }?: {
|
|
2
|
+
enabled?: boolean;
|
|
3
|
+
}) => import("@tanstack/react-query").UseQueryResult<boolean, Error>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AllowedRecipient } from '../domains/withdrawalAllowlist';
|
|
2
|
+
import type { TokenTransferSourceChainsAndAssets } from '../modals/CheckoutModal/TransferToken/TransferToken';
|
|
3
|
+
/**
|
|
4
|
+
* The integrator's withdrawal allowlist while the rollout gate is on, without
|
|
5
|
+
* entries whose address isn't valid on its chain or whose chain the form can't
|
|
6
|
+
* pay on. With the gate off it returns `undefined`, so the recipient stays free
|
|
7
|
+
* text even when a list is passed.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useEnforcedAllowedRecipients(allowedRecipients: readonly AllowedRecipient[] | undefined,
|
|
10
|
+
/** The receive tokens by chain, once loaded. */
|
|
11
|
+
receiveAssets: TokenTransferSourceChainsAndAssets | undefined): readonly AllowedRecipient[] | undefined;
|
|
@@ -5,3 +5,5 @@
|
|
|
5
5
|
* same recipients; this hook only resolves the Statsig configs it reads from.
|
|
6
6
|
*/
|
|
7
7
|
export declare function useIsBlacklistedWithdrawalAddress(address: string): boolean;
|
|
8
|
+
/** The same check as {@link useIsBlacklistedWithdrawalAddress}, for several addresses. */
|
|
9
|
+
export declare function useBlacklistedWithdrawalAddressCheck(): (address: string) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SingleWithdrawalConfig } from '../providers/FunkitCheckoutContext/types';
|
|
2
|
+
/**
|
|
3
|
+
* Whether Cash (Swapped off-ramp) withdrawals are on for `config`, the single
|
|
4
|
+
* config a Cash payout would come from. An enforced allowlist turns them off,
|
|
5
|
+
* since a cash payout skips the list. Pass `undefined` where the surface can't
|
|
6
|
+
* offer Cash; the result is then only the Statsig flag, and nothing logs.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useIsCashWithdrawalEnabled(config: SingleWithdrawalConfig | null | undefined, surface: 'modal' | 'cashier'): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SingleWithdrawalConfig } from '../providers/FunkitCheckoutContext';
|
|
2
|
+
/**
|
|
3
|
+
* - Wallet withdrawals send in one signed transaction; only callback withdrawals can arrive in parts.
|
|
4
|
+
* - Statsig targets the dynamic config to customers, so this holds no customer check.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useIsChunkedWithdrawal(config: SingleWithdrawalConfig, withdrawalUsdValue: number | undefined): boolean;
|
package/dist/index.css
CHANGED
|
@@ -16809,6 +16809,109 @@
|
|
|
16809
16809
|
background-color: var(--rk-colors-secondaryText);
|
|
16810
16810
|
}
|
|
16811
16811
|
|
|
16812
|
+
/* vanilla-extract-css-ns:src/components/Dropdown/BaseActiveDropdownItem.css.ts.vanilla.css?source=Ll8xZGV3aXF3MCB7CiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGN1YmljLWJlemllcigwLjMsIDAsIDAuMDYsIDEpOwogIG1pbi13aWR0aDogMDsKfQ */
|
|
16813
|
+
[data-rk] ._1dewiqw0 {
|
|
16814
|
+
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16815
|
+
min-width: 0;
|
|
16816
|
+
}
|
|
16817
|
+
|
|
16818
|
+
/* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VVYWvbMBD9nl8hAoMEomC3XbcpFMq2f1HKOFvnRETWmdM5aTr634dlp03ahnZjH7ZPlji9d-_eneTrNe4qhhqj-pGHEC93MVM_R0plH9JHKWqgdLIzKlukvTCEWBHXRsUSPE6y-ZdP0y72MFIqz14C8xPAfEA9jK5fqshPqHiL7HUJ79D-MJrvc5_dWBDQvL7tF1FA8Gpceopox7eJvCEXBFnjBoNEowIFXBySnKdjtEGuPG31zihohbpcsWTyvgDWW2dl9RrWGL3FYu1EPx5OdNbFxsPuFcjFoCo6cRSMYvQgboOLAxFGrZy1GI6BxhRYEWMiKCkIBjFqPF4c8UERybeS-ISawVKPlQxLdsvVfr3CfnPxubnr9gWU6yVTG6xR3gUE1ksG6zDIREgVJEL1TG2AJ1rzWpfkiaOmBsN3psbSNnx9pPjWBaezvpkNMAaZLk525PkQJNS-Ju9V_jGroyrbwpW6wHuHPMnm5zOVzVQ2zy5nqh-se-2Cxbs0f8fmQSXI7_eur_Wv2ifU_Jfe9ZerAotaqLkaC7c4vj0ax8NrfwLaG_qEfurHCfBlCv5RLYcsZgVxcgPsQFsXofBo9yKmZtVduZTnsHcuOHHgO0_KliNxZ7Ro8J62aDv66xqtAzVpGCvkqBltW6LVNfVKA-k-hKHEaUrw1qvVDcLwZikFwdXQUWnbMvScqfLFs7C42oWlrtpQ9qeeOXMxOHO2b_IhuHLe65osGlURb4HtC_4ANZqnX87-7f6tJ_ifLScf_ii_AJ3ZdB5dBwAA */
|
|
16819
|
+
@keyframes _1nns6ys0 {
|
|
16820
|
+
0% {
|
|
16821
|
+
opacity: 0;
|
|
16822
|
+
transform: scale(0.97);
|
|
16823
|
+
}
|
|
16824
|
+
100% {
|
|
16825
|
+
opacity: 1;
|
|
16826
|
+
transform: scale(1);
|
|
16827
|
+
}
|
|
16828
|
+
}
|
|
16829
|
+
@keyframes _1nns6ys1 {
|
|
16830
|
+
0% {
|
|
16831
|
+
opacity: 1;
|
|
16832
|
+
transform: scale(1);
|
|
16833
|
+
}
|
|
16834
|
+
100% {
|
|
16835
|
+
opacity: 0;
|
|
16836
|
+
transform: scale(0.97);
|
|
16837
|
+
}
|
|
16838
|
+
}
|
|
16839
|
+
._1nns6ys2[data-rk][data-state=closed] {
|
|
16840
|
+
pointer-events: none;
|
|
16841
|
+
}
|
|
16842
|
+
[data-rk] ._1nns6ys3 {
|
|
16843
|
+
overflow-y: auto;
|
|
16844
|
+
scrollbar-width: none;
|
|
16845
|
+
}
|
|
16846
|
+
[data-rk] ._1nns6ys3::-webkit-scrollbar {
|
|
16847
|
+
display: none;
|
|
16848
|
+
}
|
|
16849
|
+
[data-rk] ._1nns6ys4 {
|
|
16850
|
+
position: relative;
|
|
16851
|
+
overflow: hidden;
|
|
16852
|
+
}
|
|
16853
|
+
[data-rk] ._1nns6ys4::before {
|
|
16854
|
+
content: "";
|
|
16855
|
+
position: absolute;
|
|
16856
|
+
top: 0;
|
|
16857
|
+
left: 0;
|
|
16858
|
+
right: 0;
|
|
16859
|
+
height: 48px;
|
|
16860
|
+
background:
|
|
16861
|
+
linear-gradient(
|
|
16862
|
+
to bottom,
|
|
16863
|
+
var(--rk-colors-openDropdownBackgroundColor),
|
|
16864
|
+
transparent);
|
|
16865
|
+
pointer-events: none;
|
|
16866
|
+
opacity: 0;
|
|
16867
|
+
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16868
|
+
z-index: 1;
|
|
16869
|
+
}
|
|
16870
|
+
[data-rk] ._1nns6ys4::after {
|
|
16871
|
+
content: "";
|
|
16872
|
+
position: absolute;
|
|
16873
|
+
bottom: 0;
|
|
16874
|
+
left: 0;
|
|
16875
|
+
right: 0;
|
|
16876
|
+
height: 48px;
|
|
16877
|
+
background:
|
|
16878
|
+
linear-gradient(
|
|
16879
|
+
to top,
|
|
16880
|
+
var(--rk-colors-openDropdownBackgroundColor),
|
|
16881
|
+
transparent);
|
|
16882
|
+
pointer-events: none;
|
|
16883
|
+
opacity: 0;
|
|
16884
|
+
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16885
|
+
z-index: 1;
|
|
16886
|
+
}
|
|
16887
|
+
[data-rk] ._1nns6ys4[data-fade-top=true]::before {
|
|
16888
|
+
opacity: 1;
|
|
16889
|
+
}
|
|
16890
|
+
[data-rk] ._1nns6ys4[data-fade-bottom=true]::after {
|
|
16891
|
+
opacity: 1;
|
|
16892
|
+
}
|
|
16893
|
+
[data-rk] ._1nns6ys6 {
|
|
16894
|
+
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16895
|
+
}
|
|
16896
|
+
[data-rk] ._1nns6ys6:has([aria-disabled=true]):hover {
|
|
16897
|
+
background: initial;
|
|
16898
|
+
cursor: not-allowed;
|
|
16899
|
+
}
|
|
16900
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
16901
|
+
._1nns6ys2[data-rk][data-state=open] {
|
|
16902
|
+
animation-duration: 150ms;
|
|
16903
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
16904
|
+
animation-fill-mode: forwards;
|
|
16905
|
+
animation-name: _1nns6ys0;
|
|
16906
|
+
}
|
|
16907
|
+
._1nns6ys2[data-rk][data-state=closed] {
|
|
16908
|
+
animation-duration: 150ms;
|
|
16909
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
16910
|
+
animation-fill-mode: forwards;
|
|
16911
|
+
animation-name: _1nns6ys1;
|
|
16912
|
+
}
|
|
16913
|
+
}
|
|
16914
|
+
|
|
16812
16915
|
/* vanilla-extract-css-ns:src/components/FunTransactionSummary/PaymentFeesSummary.css.ts.vanilla.css?source=LnZrd3ZlMzIgewogIGN1cnNvcjogcG9pbnRlcjsKfQoudmt3dmUzMjpmb2N1cy12aXNpYmxlIHsKICBvdXRsaW5lOiAxcHggc29saWQ7CiAgb3V0bGluZS1jb2xvcjogdmFyKC0tcmstY29sb3JzLXRlcnRpYXJ5VGV4dCk7Cn0KLnZrd3ZlMzMgewogIHRyYW5zaXRpb246IGFsbCAwLjJzIGxpbmVhcjsKICB0cmFuc2l0aW9uLWRlbGF5OiAwLjJzOwogIG9wYWNpdHk6IDE7Cn0KLnZrd3ZlMzQgewogIHRyYW5zaXRpb246IGFsbCAwLjJzIGxpbmVhcjsKICBvcGFjaXR5OiAwOwp9 */
|
|
16813
16916
|
[data-rk] .vkwve32 {
|
|
16814
16917
|
cursor: pointer;
|
|
@@ -16931,109 +17034,6 @@
|
|
|
16931
17034
|
outline-color: var(--rk-colors-tertiaryText);
|
|
16932
17035
|
}
|
|
16933
17036
|
|
|
16934
|
-
/* vanilla-extract-css-ns:src/components/Dropdown/BaseActiveDropdownItem.css.ts.vanilla.css?source=Ll8xZGV3aXF3MCB7CiAgdHJhbnNpdGlvbjogYWxsIDE1MG1zIGN1YmljLWJlemllcigwLjMsIDAsIDAuMDYsIDEpOwogIG1pbi13aWR0aDogMDsKfQ */
|
|
16935
|
-
[data-rk] ._1dewiqw0 {
|
|
16936
|
-
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16937
|
-
min-width: 0;
|
|
16938
|
-
}
|
|
16939
|
-
|
|
16940
|
-
/* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdown.css.ts.vanilla.css?source=#H4sIAAAAAAAAA9VVYWvbMBD9nl8hAoMEomC3XbcpFMq2f1HKOFvnRETWmdM5aTr634dlp03ahnZjH7ZPlji9d-_eneTrNe4qhhqj-pGHEC93MVM_R0plH9JHKWqgdLIzKlukvTCEWBHXRsUSPE6y-ZdP0y72MFIqz14C8xPAfEA9jK5fqshPqHiL7HUJ79D-MJrvc5_dWBDQvL7tF1FA8Gpceopox7eJvCEXBFnjBoNEowIFXBySnKdjtEGuPG31zihohbpcsWTyvgDWW2dl9RrWGL3FYu1EPx5OdNbFxsPuFcjFoCo6cRSMYvQgboOLAxFGrZy1GI6BxhRYEWMiKCkIBjFqPF4c8UERybeS-ISawVKPlQxLdsvVfr3CfnPxubnr9gWU6yVTG6xR3gUE1ksG6zDIREgVJEL1TG2AJ1rzWpfkiaOmBsN3psbSNnx9pPjWBaezvpkNMAaZLk525PkQJNS-Ju9V_jGroyrbwpW6wHuHPMnm5zOVzVQ2zy5nqh-se-2Cxbs0f8fmQSXI7_eur_Wv2ifU_Jfe9ZerAotaqLkaC7c4vj0ax8NrfwLaG_qEfurHCfBlCv5RLYcsZgVxcgPsQFsXofBo9yKmZtVduZTnsHcuOHHgO0_KliNxZ7Ro8J62aDv66xqtAzVpGCvkqBltW6LVNfVKA-k-hKHEaUrw1qvVDcLwZikFwdXQUWnbMvScqfLFs7C42oWlrtpQ9qeeOXMxOHO2b_IhuHLe65osGlURb4HtC_4ANZqnX87-7f6tJ_ifLScf_ii_AJ3ZdB5dBwAA */
|
|
16941
|
-
@keyframes _1nns6ys0 {
|
|
16942
|
-
0% {
|
|
16943
|
-
opacity: 0;
|
|
16944
|
-
transform: scale(0.97);
|
|
16945
|
-
}
|
|
16946
|
-
100% {
|
|
16947
|
-
opacity: 1;
|
|
16948
|
-
transform: scale(1);
|
|
16949
|
-
}
|
|
16950
|
-
}
|
|
16951
|
-
@keyframes _1nns6ys1 {
|
|
16952
|
-
0% {
|
|
16953
|
-
opacity: 1;
|
|
16954
|
-
transform: scale(1);
|
|
16955
|
-
}
|
|
16956
|
-
100% {
|
|
16957
|
-
opacity: 0;
|
|
16958
|
-
transform: scale(0.97);
|
|
16959
|
-
}
|
|
16960
|
-
}
|
|
16961
|
-
._1nns6ys2[data-rk][data-state=closed] {
|
|
16962
|
-
pointer-events: none;
|
|
16963
|
-
}
|
|
16964
|
-
[data-rk] ._1nns6ys3 {
|
|
16965
|
-
overflow-y: auto;
|
|
16966
|
-
scrollbar-width: none;
|
|
16967
|
-
}
|
|
16968
|
-
[data-rk] ._1nns6ys3::-webkit-scrollbar {
|
|
16969
|
-
display: none;
|
|
16970
|
-
}
|
|
16971
|
-
[data-rk] ._1nns6ys4 {
|
|
16972
|
-
position: relative;
|
|
16973
|
-
overflow: hidden;
|
|
16974
|
-
}
|
|
16975
|
-
[data-rk] ._1nns6ys4::before {
|
|
16976
|
-
content: "";
|
|
16977
|
-
position: absolute;
|
|
16978
|
-
top: 0;
|
|
16979
|
-
left: 0;
|
|
16980
|
-
right: 0;
|
|
16981
|
-
height: 48px;
|
|
16982
|
-
background:
|
|
16983
|
-
linear-gradient(
|
|
16984
|
-
to bottom,
|
|
16985
|
-
var(--rk-colors-openDropdownBackgroundColor),
|
|
16986
|
-
transparent);
|
|
16987
|
-
pointer-events: none;
|
|
16988
|
-
opacity: 0;
|
|
16989
|
-
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
16990
|
-
z-index: 1;
|
|
16991
|
-
}
|
|
16992
|
-
[data-rk] ._1nns6ys4::after {
|
|
16993
|
-
content: "";
|
|
16994
|
-
position: absolute;
|
|
16995
|
-
bottom: 0;
|
|
16996
|
-
left: 0;
|
|
16997
|
-
right: 0;
|
|
16998
|
-
height: 48px;
|
|
16999
|
-
background:
|
|
17000
|
-
linear-gradient(
|
|
17001
|
-
to top,
|
|
17002
|
-
var(--rk-colors-openDropdownBackgroundColor),
|
|
17003
|
-
transparent);
|
|
17004
|
-
pointer-events: none;
|
|
17005
|
-
opacity: 0;
|
|
17006
|
-
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
17007
|
-
z-index: 1;
|
|
17008
|
-
}
|
|
17009
|
-
[data-rk] ._1nns6ys4[data-fade-top=true]::before {
|
|
17010
|
-
opacity: 1;
|
|
17011
|
-
}
|
|
17012
|
-
[data-rk] ._1nns6ys4[data-fade-bottom=true]::after {
|
|
17013
|
-
opacity: 1;
|
|
17014
|
-
}
|
|
17015
|
-
[data-rk] ._1nns6ys6 {
|
|
17016
|
-
transition: all 150ms cubic-bezier(0.3, 0, 0.06, 1);
|
|
17017
|
-
}
|
|
17018
|
-
[data-rk] ._1nns6ys6:has([aria-disabled=true]):hover {
|
|
17019
|
-
background: initial;
|
|
17020
|
-
cursor: not-allowed;
|
|
17021
|
-
}
|
|
17022
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
17023
|
-
._1nns6ys2[data-rk][data-state=open] {
|
|
17024
|
-
animation-duration: 150ms;
|
|
17025
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
17026
|
-
animation-fill-mode: forwards;
|
|
17027
|
-
animation-name: _1nns6ys0;
|
|
17028
|
-
}
|
|
17029
|
-
._1nns6ys2[data-rk][data-state=closed] {
|
|
17030
|
-
animation-duration: 150ms;
|
|
17031
|
-
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
17032
|
-
animation-fill-mode: forwards;
|
|
17033
|
-
animation-name: _1nns6ys1;
|
|
17034
|
-
}
|
|
17035
|
-
}
|
|
17036
|
-
|
|
17037
17037
|
/* vanilla-extract-css-ns:src/components/Dropdown/BaseDropdownItem.css.ts.vanilla.css?source=Ll8xOGhodzNrMSB7CiAgY3Vyc29yOiBwb2ludGVyOwp9Ci5fMThoaHczazMgewogIGN1cnNvcjogbm90LWFsbG93ZWQ7CiAgb3BhY2l0eTogMC41Owp9 */
|
|
17038
17038
|
[data-rk] ._18hhw3k1 {
|
|
17039
17039
|
cursor: pointer;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export type { CheckoutBlockedReason } from './modals/CheckoutModal/CheckoutBlock
|
|
|
23
23
|
export type { FunkitCheckoutActionParams, FunkitCheckoutConfig, FunkitCheckoutOnCloseResult, FunkitWithdrawalConfig, WalletWithdrawalConfig, CustomWithdrawalConfig, MultiMethodWithdrawalConfig, WithdrawalMethodOption, MultiSourceWithdrawalConfig, WithdrawalSourceOption, SingleWithdrawalConfig, WithdrawalParam, WithdrawalFormData, WithdrawalSourceTokenBalanceParams, WithdrawalSourceCustomData, SourceTokenOption, WithdrawalCustomerData, LighterWithdrawalCustomerData, LighterRouteType, WithdrawalCustomerConfig, UseFunkitCheckoutPropsWithFullConfig, UseFunkitCheckoutProps, FunkitCheckoutValidationResult, FunkitCheckoutResult, DynamicTargetAssetCandidate, AddToWalletToken, TokenInfo, ModalTitleContext, DestinationLineItem, DestinationLineItemContext, LineItemSlot, LineItemValue, LineItemValueColor, WithdrawalFeeItem, WithdrawalFeeItemContext, } from './providers/FunkitCheckoutContext';
|
|
24
24
|
export { useFunkitCheckout, FunCheckoutStartingStep, } from './providers/FunkitCheckoutContext';
|
|
25
25
|
export type { FunkitCheckoutQuoteResult } from './domains/quote';
|
|
26
|
+
export type { AllowedRecipient } from './domains/withdrawalAllowlist';
|
|
26
27
|
export type { FunkitConfig, FunkitUiCustomizationsConfig, FunkitTextCustomizationsConfig, InputAmountComponentContext, } from './providers/FunkitConfigContext';
|
|
27
28
|
export type { SolanaWalletConnection, SolanaWalletSigner, } from './interfaces/solanaWallet';
|
|
28
29
|
export type { SolanaConnection, SolanaSignAndSendTransaction, SolanaSigner, SolanaSignTransaction, } from '@funkit/fun-relay';
|