@funkit/connect 9.11.0 → 9.12.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_feature_gates.d.ts +1 -0
- package/dist/clients/lighter.d.ts +0 -18
- package/dist/clients/lighter.js +4 -99
- package/dist/clients/polymarket.d.ts +97 -9
- package/dist/clients/polymarket.js +181 -10
- package/dist/components/Dialog/DialogContent.css.d.ts +1 -1
- package/dist/components/FunNotificationBanner/FunNotificationBanner.d.ts +1 -1
- package/dist/components/TransactionStatus/AnimatedText.d.ts +4 -0
- package/dist/hooks/queries/useErc20Asset.d.ts +2 -1
- package/dist/hooks/useAssetPrice.d.ts +6 -2
- package/dist/hooks/useCheckoutDirectExecution.d.ts +7 -1
- package/dist/index.css +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2289 -2137
- package/dist/modals/WithdrawalModal/LighterWithdrawal.d.ts +16 -0
- package/dist/providers/FunkitCheckoutContext/index.d.ts +2 -2
- package/dist/providers/FunkitCheckoutContext/types.d.ts +21 -1
- package/dist/providers/FunkitStatsigProvider.d.ts +1 -0
- package/dist/utils/statsig/checkFeatureGate.d.ts +19 -0
- package/dist/wallets/Wallet.d.ts +11 -0
- package/dist/wallets/walletConnectors/index.js +19 -19
- package/package.json +15 -15
|
@@ -4,7 +4,7 @@ import type { CheckoutQuoteResponse } from '@funkit/utils';
|
|
|
4
4
|
import type { Address, Hex } from 'viem';
|
|
5
5
|
import type { FunkitCheckoutQuoteResult } from '../domains/quote';
|
|
6
6
|
import type { FunkitActiveCheckoutItem, FunkitCheckoutActionParams } from '../providers/FunkitCheckoutContext';
|
|
7
|
-
import { type WithdrawalClient } from '../wallets/Wallet';
|
|
7
|
+
import { type WithdrawalClient, type WithdrawalTransaction } from '../wallets/Wallet';
|
|
8
8
|
interface DirectExecutionQuoteRequestParamsBase {
|
|
9
9
|
actionParams: FunkitCheckoutActionParams[];
|
|
10
10
|
bridgeOverride?: 'across' | 'relay';
|
|
@@ -41,6 +41,12 @@ interface DirectExecutionStartParams {
|
|
|
41
41
|
latestQuote: FunkitCheckoutQuoteResult;
|
|
42
42
|
onTransactionConfirmed: (txHash: RelayTxHash<RelayVmType>) => void;
|
|
43
43
|
withdrawalClient?: WithdrawalClient;
|
|
44
|
+
/**
|
|
45
|
+
* Transactions returned by `WalletWithdrawalConfig.preWithdrawalAction`.
|
|
46
|
+
* Prepended to the SDK's withdrawal txn and broadcast as a single
|
|
47
|
+
* atomic batch via `withdrawalClient.sendTransactions`.
|
|
48
|
+
*/
|
|
49
|
+
preWithdrawalTxs?: WithdrawalTransaction[];
|
|
44
50
|
}
|
|
45
51
|
export interface FunkitDirectExecutionInfo {
|
|
46
52
|
isDirectExecution: boolean;
|
package/dist/index.css
CHANGED
|
@@ -14392,7 +14392,7 @@
|
|
|
14392
14392
|
}
|
|
14393
14393
|
}
|
|
14394
14394
|
|
|
14395
|
-
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VXS2/bMAy+
|
|
14395
|
+
/* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VXS2/bMAy+91do6CUBpsB5uG0cYBh23233gZEYW4gsGbKcx4b+98GPuJblPLxhlxam+JEU+ZFUZj/n2S+7Wizn5PcTISmcaIIiTmxEwkWYnTaN8Ci4TSIyD4LDsZQ136swKHXen2atnSiBfPKc68IwpCwBFSPNIMap5+CtduCDrd6jotaAyndoxqJ3AizlaEHIsVCm1U6YFKzQajw2zSTa0Zc9CptwA0eQdCf1cVy0CpmleKrT/HdOU81BUqaVRWVHmMiPkGXIqdgZSHH6mdxWoFIDFyr2PYSeh0WtI9SFdsu3oKai+92BLMdDVuMhYQXJgJc3oaaOP9h0ZBJ3taiDeu07EkpYAbLjioFkk6q5CCXLIDtNN/06BPkhcc2OaZagBLuydXjF4gMN9JC59f17t/PEzd+iKUQv0xfxQF4I2WrD0VCrs8oINcBFkUfkAGZCqdlXAlHT/bveConTHqzyMhK31dbq1PUY+Oeu6QGFJh/ViT6gKUdBRBLBOapNk8XLlV12rUcMXI9D61EcuoJ+hC9XoI8M3OvY2wP3Gu7+wL0R7b2B60G3lc6lpPTULWorPUcECqtLWc6MlnILhsaFtWgiklvYSnTPGroUKkfruosiesTtXljaalcRcJFnEs4tpm3Bl7qntsD2sdGF4pRpqU2nAarvvO6Ab63a9K5fapMire/fkP1Wb00fi8KisQLM+Qee7CMhGGD7OoR/uyC7c8H/ZT1KSpY86CNHphUfzA53WbCTWJW9/E+5MMjKFowI07JIK3JeKF2OaJfSONaUz+mWhB6llVbY742PjmmU6mbphLRzFnO7hId2tbOgem063sAXwsWh+Ts4DMgnkWbaWFC2B31mCbK9LizlAqSOL2+woUgcK35QvWM/35fpMjRxequlLmRE5mTu57kbdf1wbPbXZcyMzWBcoarNI2ra6AyYsGcSzBY5QciRCkV14WYv8WAgJQlmYQ/iFmQRNg8If8N2bAuvkA3Kd7dq3DW+hsx+TZELKEuCqAgoTiadF9Hry1t2qtfIx/O5+uz/xCLkvau0aJSGnq/9B2wPuvShq0Uf2koc6GoAGnrQj4Df/wACpPKqXw4AAA== */
|
|
14396
14396
|
[data-rk] ._1pzt4231 {
|
|
14397
14397
|
max-height: 525px;
|
|
14398
14398
|
max-width: 100vw;
|
|
@@ -14424,7 +14424,7 @@
|
|
|
14424
14424
|
}
|
|
14425
14425
|
[data-rk] ._1pzt4231:has(#swapped-iframe),
|
|
14426
14426
|
[data-rk] ._1pzt4231:has(#swapped-iframe-loading) {
|
|
14427
|
-
max-height:
|
|
14427
|
+
max-height: 525px;
|
|
14428
14428
|
}
|
|
14429
14429
|
[data-rk] ._1pzt4232 {
|
|
14430
14430
|
min-width: 380px;
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { createAuthenticationAdapter, FunkitConnectAuthenticationProvider, } fro
|
|
|
20
20
|
export type { AuthenticationAdapter, FunkitConnectAuthenticationProviderProps, } from './providers/AuthenticationContext';
|
|
21
21
|
export type { AvatarComponent } from './providers/AvatarContext';
|
|
22
22
|
export type { CheckoutBlockedReason } from './modals/CheckoutModal/CheckoutBlockedReason';
|
|
23
|
-
export type { FunkitCheckoutActionParams, FunkitCheckoutConfig, FunkitCheckoutOnCloseResult, FunkitWithdrawalConfig, WalletWithdrawalConfig, CustomWithdrawalConfig, MultiMethodWithdrawalConfig, WithdrawalMethodOption, UseFunkitCheckoutPropsWithFullConfig, UseFunkitCheckoutProps, FunkitCheckoutValidationResult, FunkitCheckoutResult, DynamicTargetAssetCandidate, TokenInfo, } from './providers/FunkitCheckoutContext';
|
|
23
|
+
export type { FunkitCheckoutActionParams, FunkitCheckoutConfig, FunkitCheckoutOnCloseResult, FunkitWithdrawalConfig, WalletWithdrawalConfig, CustomWithdrawalConfig, MultiMethodWithdrawalConfig, WithdrawalMethodOption, WithdrawalParam, UseFunkitCheckoutPropsWithFullConfig, UseFunkitCheckoutProps, FunkitCheckoutValidationResult, FunkitCheckoutResult, DynamicTargetAssetCandidate, TokenInfo, } from './providers/FunkitCheckoutContext';
|
|
24
24
|
export { useFunkitCheckout, FunCheckoutStartingStep, } from './providers/FunkitCheckoutContext';
|
|
25
25
|
export type { FunkitCheckoutQuoteResult } from './domains/quote';
|
|
26
26
|
export type { FunkitConfig, FunkitUiCustomizationsConfig, FunkitTextCustomizationsConfig, } from './providers/FunkitConfigContext';
|