@funkit/connect 13.0.1 → 13.1.1

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.
@@ -1,4 +1,5 @@
1
- import type { Address } from 'viem';
1
+ import { type Address } from 'viem';
2
+ import type { ExecutionTransactionSubmittedArgs } from '../../hooks/track/analytics/resolveExecutionProgressContext';
2
3
  import { type CustomWithdrawalConfig, type FunkitActiveWithdrawalItem, type WalletWithdrawalConfig } from '../../providers/FunkitCheckoutContext';
3
4
  /**
4
5
  * Provider-agnostic fiat off-ramp order: deliver `amount` of the accepted
@@ -18,12 +19,14 @@ export interface FiatWithdrawalOrder {
18
19
  */
19
20
  providerCrypto?: string;
20
21
  providerNetwork?: string;
22
+ providerTimestamp?: number;
21
23
  }
22
24
  interface UseFiatWithdrawalParams {
23
25
  config: WalletWithdrawalConfig | CustomWithdrawalConfig;
24
26
  withdrawalItem: FunkitActiveWithdrawalItem | null;
25
27
  /** Invoked for unrecoverable failures (the caller tears down the flow). */
26
28
  onError: () => void;
29
+ onSubmitted: (order: FiatWithdrawalOrder, execution: ExecutionTransactionSubmittedArgs, txHash: string) => void;
27
30
  }
28
31
  /**
29
32
  * Owns the order → quote → execute pipeline for a fiat off-ramp withdrawal,
@@ -34,7 +37,7 @@ interface UseFiatWithdrawalParams {
34
37
  * to {@link useWithdrawal}, which owns preWithdrawalAction + confirmCheckout +
35
38
  * error mapping.
36
39
  */
37
- export declare function useFiatWithdrawal({ config, withdrawalItem, onError, }: UseFiatWithdrawalParams): {
40
+ export declare function useFiatWithdrawal({ config, withdrawalItem, onError, onSubmitted, }: UseFiatWithdrawalParams): {
38
41
  processOrder: (order: FiatWithdrawalOrder) => Promise<void>;
39
42
  };
40
43
  export {};
@@ -1,9 +1,10 @@
1
1
  import type { Hex } from 'viem';
2
2
  import { type CheckoutConfirmationError } from '../../domains/checkoutErrors';
3
3
  import { type AllowedRecipient } from '../../domains/withdrawalAllowlist';
4
- import { type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig, type WithdrawalFormData } from '../../providers/FunkitCheckoutContext';
4
+ import { type CheckoutConfirmationResult, type FunkitActiveWithdrawalItem, type FunkitWithdrawalConfig, type WithdrawalFormData } from '../../providers/FunkitCheckoutContext';
5
+ type WithdrawalSubmission = NonNullable<CheckoutConfirmationResult['transactionSubmitted']>;
5
6
  interface UseWithdrawalResult {
6
- handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<Hex | null>;
7
+ handleWithdrawal: (withdrawal: WithdrawalFormData) => Promise<WithdrawalSubmission | null>;
7
8
  isWithdrawing: boolean;
8
9
  withdrawalError: CheckoutConfirmationError | null;
9
10
  stepMessage: string | null;
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
- xdefiWallet
4
- } from "./chunk-HXX4PRE2.js";
5
- import {
6
- zerionWallet
7
- } from "./chunk-34B7OJNT.js";
3
+ uniswapWallet
4
+ } from "./chunk-UNDWHCDH.js";
8
5
  import {
9
6
  zealWallet
10
7
  } from "./chunk-GLX5FULK.js";
8
+ import {
9
+ zerionWallet
10
+ } from "./chunk-34B7OJNT.js";
11
11
  import {
12
12
  subWallet
13
13
  } from "./chunk-XODA5ESL.js";
@@ -27,26 +27,23 @@ import {
27
27
  trustWallet
28
28
  } from "./chunk-SR5CZR3L.js";
29
29
  import {
30
- uniswapWallet
31
- } from "./chunk-UNDWHCDH.js";
30
+ xdefiWallet
31
+ } from "./chunk-HXX4PRE2.js";
32
32
  import {
33
33
  walletConnectWallet
34
34
  } from "./chunk-DUX4XCDV.js";
35
+ import {
36
+ phantomWallet
37
+ } from "./chunk-Q27YVDDH.js";
35
38
  import {
36
39
  rainbowWallet
37
40
  } from "./chunk-ZSSSLFQF.js";
38
41
  import {
39
42
  rabbyWallet
40
43
  } from "./chunk-RQ2GXOJL.js";
41
- import {
42
- ramperWallet
43
- } from "./chunk-GPXIBTWN.js";
44
44
  import {
45
45
  roninWallet
46
46
  } from "./chunk-IA5432IR.js";
47
- import {
48
- phantomWallet
49
- } from "./chunk-Q27YVDDH.js";
50
47
  import {
51
48
  safeWallet
52
49
  } from "./chunk-IR3PJMVM.js";
@@ -57,20 +54,23 @@ import {
57
54
  safepalWallet
58
55
  } from "./chunk-BBB2J3US.js";
59
56
  import {
60
- metaMaskWallet
61
- } from "./chunk-RXRYHMRI.js";
57
+ ramperWallet
58
+ } from "./chunk-GPXIBTWN.js";
62
59
  import {
63
60
  ledgerWallet
64
61
  } from "./chunk-BL4OC2EJ.js";
65
62
  import {
66
63
  mewWallet
67
64
  } from "./chunk-DSPQXAB2.js";
68
- import {
69
- okxWallet
70
- } from "./chunk-CU5J53XR.js";
71
65
  import {
72
66
  oktoWallet
73
67
  } from "./chunk-V4M3SNPS.js";
68
+ import {
69
+ metaMaskWallet
70
+ } from "./chunk-RXRYHMRI.js";
71
+ import {
72
+ okxWallet
73
+ } from "./chunk-CU5J53XR.js";
74
74
  import {
75
75
  omniWallet
76
76
  } from "./chunk-2TAUCVX7.js";
@@ -89,51 +89,45 @@ import {
89
89
  import {
90
90
  frameWallet
91
91
  } from "./chunk-B572YIAQ.js";
92
+ import {
93
+ frontierWallet
94
+ } from "./chunk-IWOMSW64.js";
92
95
  import {
93
96
  gateWallet
94
97
  } from "./chunk-YRMBR6NA.js";
95
98
  import {
96
99
  imTokenWallet
97
100
  } from "./chunk-YY2JA23M.js";
98
- import {
99
- frontierWallet
100
- } from "./chunk-IWOMSW64.js";
101
101
  import {
102
102
  injectedWallet
103
103
  } from "./chunk-M75V7OL3.js";
104
104
  import {
105
105
  kresusWallet
106
106
  } from "./chunk-V77ATGZT.js";
107
- import {
108
- bybitWallet
109
- } from "./chunk-BBDNB5TQ.js";
110
107
  import {
111
108
  clvWallet
112
109
  } from "./chunk-4FHNLTR3.js";
113
110
  import {
114
111
  coin98Wallet
115
112
  } from "./chunk-RFCZYLNR.js";
113
+ import {
114
+ bitverseWallet
115
+ } from "./chunk-5AEWIKRA.js";
116
116
  import {
117
117
  coinbaseWallet
118
118
  } from "./chunk-SM2A3OSG.js";
119
+ import {
120
+ coreWallet
121
+ } from "./chunk-TRZDAXCQ.js";
119
122
  import {
120
123
  customWallet
121
124
  } from "./chunk-VKM5M5UK.js";
122
125
  import {
123
126
  dawnWallet
124
127
  } from "./chunk-LV6YV3DE.js";
125
- import {
126
- coreWallet
127
- } from "./chunk-TRZDAXCQ.js";
128
128
  import {
129
129
  desigWallet
130
130
  } from "./chunk-DFHP75HV.js";
131
- import {
132
- bifrostWallet
133
- } from "./chunk-ALGPGI6V.js";
134
- import {
135
- argentWallet
136
- } from "./chunk-XSDTNMQY.js";
137
131
  import {
138
132
  bitgetWallet
139
133
  } from "./chunk-HOCKAU5H.js";
@@ -141,11 +135,17 @@ import {
141
135
  bitskiWallet
142
136
  } from "./chunk-NPITCCJE.js";
143
137
  import {
144
- bitverseWallet
145
- } from "./chunk-5AEWIKRA.js";
138
+ argentWallet
139
+ } from "./chunk-XSDTNMQY.js";
140
+ import {
141
+ bifrostWallet
142
+ } from "./chunk-ALGPGI6V.js";
146
143
  import {
147
144
  bloomWallet
148
145
  } from "./chunk-PNHDOC77.js";
146
+ import {
147
+ bybitWallet
148
+ } from "./chunk-BBDNB5TQ.js";
149
149
  import "./chunk-AALSJCUR.js";
150
150
  import {
151
151
  braveWallet
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "13.0.1",
3
+ "version": "13.1.1",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -54,9 +54,9 @@
54
54
  "devDependencies": {
55
55
  "@chromatic-com/storybook": "^5.1.2",
56
56
  "@statsig/statsig-node-core": "^0.11.1",
57
- "@storybook/addon-docs": "^10.3.6",
58
- "@storybook/addon-links": "^10.3.6",
59
- "@storybook/react-vite": "^10.3.6",
57
+ "@storybook/addon-docs": "^10.6.2",
58
+ "@storybook/addon-links": "^10.6.2",
59
+ "@storybook/react-vite": "^10.6.2",
60
60
  "@testing-library/jest-dom": "^6.2.0",
61
61
  "@testing-library/react": "^16.3.2",
62
62
  "@testing-library/user-event": "^14.5.2",
@@ -79,7 +79,7 @@
79
79
  "postcss-prefix-selector": "^1.16.0",
80
80
  "process": "^0.11.10",
81
81
  "react": "^19.0.0",
82
- "storybook": "^10.3.6",
82
+ "storybook": "^10.6.2",
83
83
  "stream-browserify": "^3.0.0",
84
84
  "tsc-alias": "1.8.17",
85
85
  "util": "^0.12.5",
@@ -91,10 +91,10 @@
91
91
  "@aave-dao/aave-address-book": "^4.49.9",
92
92
  "@aave/client": "^0.9.3",
93
93
  "@datadog/browser-logs": "5.22.0",
94
- "@funkit/api-base": "10.2.1",
94
+ "@funkit/api-base": "10.4.0",
95
95
  "@funkit/chains": "3.0.0",
96
- "@funkit/connect-core": "16.0.0",
97
- "@funkit/fun-relay": "4.0.1",
96
+ "@funkit/connect-core": "17.0.0",
97
+ "@funkit/fun-relay": "4.1.0",
98
98
  "@funkit/utils": "5.1.2",
99
99
  "@number-flow/react": "^0.5.5",
100
100
  "@radix-ui/react-dropdown-menu": "^2.1.7",