@funkit/connect 13.0.0 → 13.1.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 +37 -0
- package/dist/clients/internal/nado/withdrawalForm.js +1 -1
- package/dist/clients/lighter.d.ts +1 -1
- package/dist/hooks/track/analytics/events.d.ts +5 -1
- package/dist/hooks/track/analytics/swappedIframePayload.d.ts +1 -0
- package/dist/hooks/track/analytics/swappedIframeSubmission.d.ts +4 -0
- package/dist/hooks/track/analytics/useTrackSwappedIframeEvents.d.ts +1 -0
- package/dist/hooks/useSwappedPillAmounts.d.ts +8 -0
- package/dist/index.js +195 -111
- 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 +54 -54
- 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 +5 -5
- package/dist/wallets/walletConnectors/{chunk-CU5J53XR.js → chunk-53MYTA42.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ZSSSLFQF.js → chunk-65ULY6OC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-XODA5ESL.js → chunk-A5POD5SV.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RXRYHMRI.js → chunk-ANODOMIN.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IWOMSW64.js → chunk-ASTCNVJC.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-U52QO5HF.js → chunk-F45CUFRR.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-YRMBR6NA.js → chunk-FYPQ3HP4.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-BBDNB5TQ.js → chunk-IWPW26AL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-4FHNLTR3.js → chunk-JJBLW4IU.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-NXWG6FG2.js → chunk-KE4CWI3A.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-BBB2J3US.js → chunk-MWB6LFSG.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-34B7OJNT.js → chunk-OVDCDVFX.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-SR5CZR3L.js → chunk-PPQ6L4K2.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-IA5432IR.js → chunk-RJF2YEZ5.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-RFCZYLNR.js → chunk-RQYEGJKL.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-TRZDAXCQ.js → chunk-TIHTQ3OB.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-ALGPGI6V.js → chunk-TM7UBV3Q.js} +3 -3
- package/dist/wallets/walletConnectors/{chunk-HOCKAU5H.js → chunk-USLZMUJ3.js} +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @funkit/connect
|
|
2
2
|
|
|
3
|
+
## 13.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fca33a2: Lighter Fast withdrawals pass the entered recipient and Relay's `protocol.v2` order to `signerClient.transfer` as `withdrawal`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 51ecbdf: Track Swapped deposit submissions once per checkout with payment method, order identifiers, and the configured destination chain and token.
|
|
12
|
+
- 352ba38: Swapped quick-amount buttons now show amounts in the user's local currency instead of fixed USD values.
|
|
13
|
+
- Updated dependencies [36310a3]
|
|
14
|
+
- Updated dependencies [fca33a2]
|
|
15
|
+
- Updated dependencies [07ea33e]
|
|
16
|
+
- Updated dependencies [2573e4a]
|
|
17
|
+
- Updated dependencies [fca33a2]
|
|
18
|
+
- Updated dependencies [116e0f0]
|
|
19
|
+
- Updated dependencies [f2d66a8]
|
|
20
|
+
- Updated dependencies [352ba38]
|
|
21
|
+
- @funkit/api-base@10.3.0
|
|
22
|
+
- @funkit/connect-core@16.1.0
|
|
23
|
+
- @funkit/fun-relay@4.1.0
|
|
24
|
+
|
|
25
|
+
## 13.0.1
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- 3d01d63: Track Swapped iframe errors with stable codes and suppress duplicate analytics for the same order.
|
|
30
|
+
- aa86460: Include routing quote IDs in web quote, submission, and outcome analytics when available.
|
|
31
|
+
- Updated dependencies [e98320c]
|
|
32
|
+
- Updated dependencies [467ee46]
|
|
33
|
+
- Updated dependencies [a9efb82]
|
|
34
|
+
- Updated dependencies [b40c65e]
|
|
35
|
+
- Updated dependencies [9e87f76]
|
|
36
|
+
- @funkit/connect-core@16.0.0
|
|
37
|
+
- @funkit/chains@3.0.0
|
|
38
|
+
- @funkit/fun-relay@4.0.1
|
|
39
|
+
|
|
3
40
|
## 13.0.0
|
|
4
41
|
|
|
5
42
|
### Major Changes
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isNadoWithdrawalConfig
|
|
4
4
|
} from "../../chunk-LCYJLY4X.js";
|
|
5
|
+
import "../../chunk-LICTGZXW.js";
|
|
5
6
|
import "../../chunk-PZSKO3BJ.js";
|
|
6
7
|
import {
|
|
7
8
|
useFunkitConfig
|
|
@@ -9,7 +10,6 @@ import {
|
|
|
9
10
|
import {
|
|
10
11
|
useFunkitTranslation
|
|
11
12
|
} from "../../chunk-ZEXIDBIZ.js";
|
|
12
|
-
import "../../chunk-LICTGZXW.js";
|
|
13
13
|
import "../../chunk-2W2P3OS6.js";
|
|
14
14
|
import "../../chunk-ZBBYOJWK.js";
|
|
15
15
|
import {
|
|
@@ -20,7 +20,7 @@ import { type LighterSigner } from '@funkit/connect-core/clients/lighter';
|
|
|
20
20
|
import type { CustomWithdrawalConfig, LighterRouteType, MultiMethodWithdrawalConfig, SourceTokenOption, WithdrawalSourceTokenBalanceParams } from '../providers/FunkitCheckoutContext/types';
|
|
21
21
|
export { LIGHTER_ROUTE_TYPE } from '@funkit/connect-core/clients/lighter';
|
|
22
22
|
export type { LighterRouteType } from '../providers/FunkitCheckoutContext/types';
|
|
23
|
-
export type { LighterSigner, LighterTransaction, LighterTransferParams, } from '@funkit/connect-core/clients/lighter';
|
|
23
|
+
export type { LighterSigner, LighterTransaction, LighterTransferParams, WithdrawalIntent, } from '@funkit/connect-core/clients/lighter';
|
|
24
24
|
export { LIGHTER_WITHDRAW_ABI, buildLighterL1WithdrawTransaction, isLighterWithdrawalRateLimitError, } from '@funkit/connect-core/clients/lighter';
|
|
25
25
|
/** Lighter base units, defaulting to mainnet for existing connect integrators. */
|
|
26
26
|
export declare function lighterWithdrawBaseUnits(assetIndex: number, amountTokenUnits: string, chainId?: LighterChainId): bigint;
|
|
@@ -210,9 +210,13 @@ export type ExecutionTransactionSnapshotProperties = DepositAssetContextProperti
|
|
|
210
210
|
tx_hash: string | null;
|
|
211
211
|
user_id?: string;
|
|
212
212
|
};
|
|
213
|
-
export type TransactionSubmittedProperties = ExecutionTransactionSnapshotProperties & {
|
|
213
|
+
export type TransactionSubmittedProperties = Omit<ExecutionTransactionSnapshotProperties, 'target_chain' | 'target_asset'> & {
|
|
214
|
+
target_chain: string | null;
|
|
215
|
+
target_asset: string | null;
|
|
214
216
|
est_fulfillment_time_ms: number | null;
|
|
215
217
|
quote_id: string | null;
|
|
218
|
+
payment_rail?: AnalyticsPaymentRail | null;
|
|
219
|
+
order_id?: string | null;
|
|
216
220
|
};
|
|
217
221
|
export type ExecutionSucceededProperties = ExecutionTransactionSnapshotProperties & {
|
|
218
222
|
fulfillment_time_ms: number | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function readSwappedIdentifier(value: unknown): string | null;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FormOfPaymentType } from '@funkit/api-base';
|
|
2
|
+
import type { ApiFunkitCheckoutConfig } from '@funkit/utils';
|
|
3
|
+
import type { TransactionSubmittedProperties } from './events';
|
|
4
|
+
export declare function buildSwappedIframeSubmissionProperties(data: unknown, fopType: FormOfPaymentType, checkoutId: string, config: Pick<ApiFunkitCheckoutConfig, 'targetChain' | 'targetAsset' | 'targetAssetTicker'>): TransactionSubmittedProperties;
|
|
@@ -2,4 +2,5 @@ import type { FormOfPaymentType } from '@funkit/api-base';
|
|
|
2
2
|
import { type AnalyticsFlow } from './events';
|
|
3
3
|
export declare function useTrackSwappedIframeEvents(flow: AnalyticsFlow): {
|
|
4
4
|
trackIframeStepViewed: (step: string, fopType: FormOfPaymentType) => void;
|
|
5
|
+
trackIframeTransactionSubmitted: (data: unknown, fopType: FormOfPaymentType) => void;
|
|
5
6
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SwappedPillAmounts } from '@funkit/connect-core';
|
|
2
|
+
/**
|
|
3
|
+
* The Swapped embed's quick-amount pills in the user's local currency. Both
|
|
4
|
+
* queries are the ones /fops already ran, so this adds no requests.
|
|
5
|
+
* - Undefined while the currency or rates load; the session re-sends the
|
|
6
|
+
* theme once they arrive.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useSwappedPillAmounts(): SwappedPillAmounts | undefined;
|