@funkit/connect 12.8.0 → 12.9.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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 12.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e623ec7: Add a `createConnectedWithdrawalClient` export that adapts the connected wallet into a withdrawal wallet, so integrations no longer need to hand-write one.
8
+
9
+ ### Patch Changes
10
+
11
+ - 3375ad1: The build starts from an empty output directory, so a published or cached bundle never carries files left over from an earlier build.
12
+ - c7ba486: Shadow mode retries a failed stylesheet load before falling back to light DOM, and reports the real cause when it does fall back.
13
+ - Updated dependencies [142dfed]
14
+ - Updated dependencies [1bccb47]
15
+ - Updated dependencies [38e9946]
16
+ - Updated dependencies [d532b7d]
17
+ - Updated dependencies [00e8eae]
18
+ - Updated dependencies [cd5ac82]
19
+ - Updated dependencies [154a1bb]
20
+ - Updated dependencies [f147595]
21
+ - Updated dependencies [c4ea859]
22
+ - Updated dependencies [bc00257]
23
+ - @funkit/connect-core@8.2.0
24
+
3
25
  ## 12.8.0
4
26
 
5
27
  ### Minor Changes
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "../../chunk-YD27ZAJB.js";
5
- import "../../chunk-4DBUYTEE.js";
4
+ } from "../../chunk-4OOCXIMA.js";
6
5
  import "../../chunk-B5KCBBSV.js";
6
+ import "../../chunk-4DBUYTEE.js";
7
7
  import "../../chunk-OODIKHYE.js";
8
8
  import "../../chunk-7GPRX32F.js";
9
9
  import "../../chunk-I5GSXPFE.js";
@@ -5,6 +5,7 @@ import {
5
5
  import {
6
6
  PLACEHOLDER_FUNKIT_USER_INFO
7
7
  } from "../../chunk-CE42WHAA.js";
8
+ import "../../chunk-4DBUYTEE.js";
8
9
  import "../../chunk-6EU6CXNH.js";
9
10
  import {
10
11
  useFunkitConfig
@@ -12,7 +13,6 @@ import {
12
13
  import {
13
14
  useFunkitTranslation
14
15
  } from "../../chunk-ATNOIBW2.js";
15
- import "../../chunk-4DBUYTEE.js";
16
16
  import "../../chunk-2W2P3OS6.js";
17
17
  import "../../chunk-7GPRX32F.js";
18
18
  import {
@@ -79,7 +79,7 @@ export interface MallardWithdrawalConfig {
79
79
  /**
80
80
  * React entry point for Mallard withdrawals. Returns a
81
81
  * {@link WalletWithdrawalConfig} (executing wallet = the connected wallet, via
82
- * {@link createConnectedWalletWithdrawalClient}), or `null` until a config is
82
+ * {@link createConnectedWithdrawalClient}), or `null` until a config is
83
83
  * passed and a wallet is connected. Balance isn't read here — the modal sources
84
84
  * it from the checkout config's `withdrawalSourceTokenBalance`, like
85
85
  * Lighter/Polymarket.
@@ -29,6 +29,63 @@ import {
29
29
  getAddress,
30
30
  maxUint256
31
31
  } from "viem";
32
+
33
+ // src/wallets/createConnectedWithdrawalClient.ts
34
+ function createConnectedWithdrawalClient(config, ownerAddress, sourceChainId) {
35
+ const ensureOnChain = async (chainId) => {
36
+ if (getAccount(config).chainId !== chainId) {
37
+ await switchChain(config, { chainId });
38
+ }
39
+ };
40
+ return {
41
+ address: () => ownerAddress,
42
+ getChainId: async () => sourceChainId,
43
+ switchChain: async (chainId) => {
44
+ await ensureOnChain(chainId);
45
+ },
46
+ sendTransaction: async (chainId, transaction) => {
47
+ await ensureOnChain(chainId);
48
+ return sendTransaction(config, {
49
+ to: transaction.to,
50
+ data: transaction.data,
51
+ value: BigInt(transaction.value || "0"),
52
+ chainId
53
+ });
54
+ },
55
+ confirmTransaction: (txHash, chainId) => (
56
+ // wagmi-core's receipt (chain-formatter generics) is the same runtime
57
+ // shape as viem's `TransactionReceipt` but isn't structurally assignable
58
+ // to it; cast at this boundary. Using wagmi (not a viem publicClient) is
59
+ // deliberate — it reuses the connected wallet's configured transport
60
+ // instead of requiring a separate RPC endpoint.
61
+ waitForTransactionReceipt(config, {
62
+ hash: txHash,
63
+ chainId
64
+ })
65
+ ),
66
+ // Gasless (EIP-3009/permit) relay routes return a typed-data signature
67
+ // step instead of a transaction — sign it with the connected wallet.
68
+ signTypedData: async (typedData) => {
69
+ const domainChainId = typedData.domain?.chainId;
70
+ if (domainChainId != null) {
71
+ await ensureOnChain(Number(domainChainId));
72
+ }
73
+ return signTypedData(config, {
74
+ account: ownerAddress,
75
+ domain: typedData.domain,
76
+ types: typedData.types,
77
+ primaryType: typedData.primaryType,
78
+ message: typedData.message
79
+ });
80
+ },
81
+ signMessage: (message) => signMessage(config, {
82
+ account: ownerAddress,
83
+ message: typeof message === "string" ? message : { raw: message.raw }
84
+ })
85
+ };
86
+ }
87
+
88
+ // src/clients/mallard.tsx
32
89
  var MALLARD_DEPOSIT_ADDRESS = getAddress(
33
90
  "0xD42c46c7BaD6A54b38395F846b09981CE75fb8e2"
34
91
  );
@@ -103,59 +160,6 @@ var MALLARD_USDG_ADDRESS = getAddress(
103
160
  "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"
104
161
  );
105
162
  var MALLARD_USDG_ICON_SRC = "https://sdk-cdn.fun.xyz/images/usdg.svg";
106
- function createConnectedWalletWithdrawalClient(config, ownerAddress, sourceChainId) {
107
- const ensureOnChain = async (chainId) => {
108
- if (getAccount(config).chainId !== chainId) {
109
- await switchChain(config, { chainId });
110
- }
111
- };
112
- return {
113
- address: () => ownerAddress,
114
- getChainId: async () => sourceChainId,
115
- switchChain: async (chainId) => {
116
- await ensureOnChain(chainId);
117
- },
118
- sendTransaction: async (chainId, transaction) => {
119
- await ensureOnChain(chainId);
120
- return sendTransaction(config, {
121
- to: transaction.to,
122
- data: transaction.data,
123
- value: BigInt(transaction.value || "0"),
124
- chainId
125
- });
126
- },
127
- confirmTransaction: (txHash, chainId) => (
128
- // wagmi-core's receipt (chain-formatter generics) is the same runtime
129
- // shape as viem's `TransactionReceipt` but isn't structurally assignable
130
- // to it; cast at this boundary. Using wagmi (not a viem publicClient) is
131
- // deliberate — it reuses the connected wallet's configured transport
132
- // instead of requiring a separate RPC endpoint.
133
- waitForTransactionReceipt(config, {
134
- hash: txHash,
135
- chainId
136
- })
137
- ),
138
- // Gasless (EIP-3009/permit) relay routes return a typed-data signature
139
- // step instead of a transaction — sign it with the connected wallet.
140
- signTypedData: async (typedData) => {
141
- const domainChainId = typedData.domain?.chainId;
142
- if (domainChainId != null) {
143
- await ensureOnChain(Number(domainChainId));
144
- }
145
- return signTypedData(config, {
146
- account: ownerAddress,
147
- domain: typedData.domain,
148
- types: typedData.types,
149
- primaryType: typedData.primaryType,
150
- message: typedData.message
151
- });
152
- },
153
- signMessage: (message) => signMessage(config, {
154
- account: ownerAddress,
155
- message: typeof message === "string" ? message : { raw: message.raw }
156
- })
157
- };
158
- }
159
163
  function useMallardWithdrawalConfig(config) {
160
164
  const { t } = useFunkitTranslation();
161
165
  const wagmiConfig = useConfig();
@@ -166,7 +170,7 @@ function useMallardWithdrawalConfig(config) {
166
170
  if (!config || !address) {
167
171
  return null;
168
172
  }
169
- const wallet = createConnectedWalletWithdrawalClient(
173
+ const wallet = createConnectedWithdrawalClient(
170
174
  wagmiConfig,
171
175
  address,
172
176
  sourceChainId
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  createNadoWithdrawalCallback
4
- } from "./chunk-YD27ZAJB.js";
5
- import "./chunk-4DBUYTEE.js";
4
+ } from "./chunk-4OOCXIMA.js";
6
5
  import "./chunk-B5KCBBSV.js";
6
+ import "./chunk-4DBUYTEE.js";
7
7
  import "./chunk-OODIKHYE.js";
8
8
  import {
9
9
  useAccount,
package/dist/index.d.ts CHANGED
@@ -46,6 +46,7 @@ export { customWallet, type CustomWalletOptions, } from './wallets/walletConnect
46
46
  export type { WalletAdoptionConfig } from './wallets/useWalletAdoption';
47
47
  export type { ConnectorsForWalletsParameters } from './wallets/connectorsForWallets';
48
48
  export type { FunkitConnectWalletConnectParameters, Wallet, WalletDetailsParams, WalletList, WithdrawalClient, WithdrawalTransaction, } from './wallets/Wallet';
49
+ export { createConnectedWithdrawalClient } from './wallets/createConnectedWithdrawalClient';
49
50
  export { useSolanaWithdrawalConfig, type SolanaWithdrawalConfig, } from './wallets/solanaWithdrawal';
50
51
  export { useFunkitAccount, useFunkitDisconnect, useFunkitReconnect, useFunkitSwitchChains, } from './providers/GeneralWalletProvider';
51
52
  export { SelectedHomeTab } from './modals/ProfileDetails/FunProfileViews/Home';
package/dist/index.js CHANGED
@@ -113,7 +113,7 @@ function setFunkitConnectVersion({ version }) {
113
113
  localStorage.setItem(storageKey, version);
114
114
  }
115
115
  function getCurrentSdkVersion() {
116
- return "12.8.0";
116
+ return "12.9.0";
117
117
  }
118
118
  function useFingerprint() {
119
119
  const fingerprint = useCallback(() => {
@@ -12258,20 +12258,60 @@ function useMountShadowHost(shadowCss, themeId) {
12258
12258
  import { useEffect as useEffect16, useState as useState12 } from "react";
12259
12259
 
12260
12260
  // src/shadow/loadShadowCss.ts
12261
+ var RETRY_DELAYS_MS = [0, 1e3];
12262
+ async function importShadowCss() {
12263
+ const mod = await import("@funkit/connect/shadow-css");
12264
+ if (!mod) {
12265
+ throw new Error("shadow stylesheet module resolved to undefined");
12266
+ }
12267
+ if (typeof mod.funkitShadowCss !== "string" || !mod.funkitShadowCss) {
12268
+ throw new Error("shadow stylesheet is empty");
12269
+ }
12270
+ return mod.funkitShadowCss;
12271
+ }
12272
+ function describeError(error) {
12273
+ return error instanceof Error ? error.message : String(error);
12274
+ }
12261
12275
  async function loadShadowCss() {
12262
- try {
12263
- const mod = await import("@funkit/connect/shadow-css");
12264
- if (typeof mod.funkitShadowCss !== "string" || !mod.funkitShadowCss) {
12265
- throw new Error("shadow stylesheet is empty");
12276
+ const startedAt = performance.now();
12277
+ const attempts = RETRY_DELAYS_MS.length + 1;
12278
+ let firstError;
12279
+ let firstAttemptMs = 0;
12280
+ for (let attempt = 1; attempt <= attempts; attempt++) {
12281
+ try {
12282
+ const css = await importShadowCss();
12283
+ if (attempt > 1) {
12284
+ logger.warn("shadowMode:stylesheetLoadRecovered", {
12285
+ message: "Shadow stylesheet loaded on retry after a failed first attempt",
12286
+ firstError: describeError(firstError),
12287
+ firstAttemptMs,
12288
+ recoveredOnAttempt: attempt,
12289
+ elapsedMs: Math.round(performance.now() - startedAt)
12290
+ });
12291
+ }
12292
+ return css;
12293
+ } catch (error) {
12294
+ if (attempt === 1) {
12295
+ firstError = error;
12296
+ firstAttemptMs = Math.round(performance.now() - startedAt);
12297
+ }
12298
+ if (attempt === attempts) {
12299
+ logger.warn("shadowMode:stylesheetLoadFailed", {
12300
+ message: "Shadow mode unavailable: shadow stylesheet failed to load. Staying in light DOM",
12301
+ error: describeError(error),
12302
+ firstError: describeError(firstError),
12303
+ firstAttemptMs,
12304
+ attempts,
12305
+ elapsedMs: Math.round(performance.now() - startedAt)
12306
+ });
12307
+ return null;
12308
+ }
12266
12309
  }
12267
- return mod.funkitShadowCss;
12268
- } catch (error) {
12269
- logger.warn("shadowMode:stylesheetLoadFailed", {
12270
- message: "Shadow mode unavailable: shadow stylesheet failed to load. Staying in light DOM",
12271
- error: error instanceof Error ? error.message : String(error)
12272
- });
12273
- return null;
12310
+ await new Promise(
12311
+ (resolve) => setTimeout(resolve, RETRY_DELAYS_MS[attempt - 1])
12312
+ );
12274
12313
  }
12314
+ return null;
12275
12315
  }
12276
12316
 
12277
12317
  // src/shadow/useShadowCss.ts
@@ -56483,6 +56523,61 @@ function getDefaultWallets(parameters) {
56483
56523
  };
56484
56524
  }
56485
56525
 
56526
+ // src/wallets/createConnectedWithdrawalClient.ts
56527
+ function createConnectedWithdrawalClient(config, ownerAddress, sourceChainId) {
56528
+ const ensureOnChain = async (chainId2) => {
56529
+ if (getAccount(config).chainId !== chainId2) {
56530
+ await switchChain(config, { chainId: chainId2 });
56531
+ }
56532
+ };
56533
+ return {
56534
+ address: () => ownerAddress,
56535
+ getChainId: async () => sourceChainId,
56536
+ switchChain: async (chainId2) => {
56537
+ await ensureOnChain(chainId2);
56538
+ },
56539
+ sendTransaction: async (chainId2, transaction) => {
56540
+ await ensureOnChain(chainId2);
56541
+ return sendTransaction(config, {
56542
+ to: transaction.to,
56543
+ data: transaction.data,
56544
+ value: BigInt(transaction.value || "0"),
56545
+ chainId: chainId2
56546
+ });
56547
+ },
56548
+ confirmTransaction: (txHash, chainId2) => (
56549
+ // wagmi-core's receipt (chain-formatter generics) is the same runtime
56550
+ // shape as viem's `TransactionReceipt` but isn't structurally assignable
56551
+ // to it; cast at this boundary. Using wagmi (not a viem publicClient) is
56552
+ // deliberate — it reuses the connected wallet's configured transport
56553
+ // instead of requiring a separate RPC endpoint.
56554
+ waitForTransactionReceipt(config, {
56555
+ hash: txHash,
56556
+ chainId: chainId2
56557
+ })
56558
+ ),
56559
+ // Gasless (EIP-3009/permit) relay routes return a typed-data signature
56560
+ // step instead of a transaction — sign it with the connected wallet.
56561
+ signTypedData: async (typedData) => {
56562
+ const domainChainId = typedData.domain?.chainId;
56563
+ if (domainChainId != null) {
56564
+ await ensureOnChain(Number(domainChainId));
56565
+ }
56566
+ return signTypedData(config, {
56567
+ account: ownerAddress,
56568
+ domain: typedData.domain,
56569
+ types: typedData.types,
56570
+ primaryType: typedData.primaryType,
56571
+ message: typedData.message
56572
+ });
56573
+ },
56574
+ signMessage: (message) => signMessage(config, {
56575
+ account: ownerAddress,
56576
+ message: typeof message === "string" ? message : { raw: message.raw }
56577
+ })
56578
+ };
56579
+ }
56580
+
56486
56581
  // src/wallets/solanaWithdrawal.ts
56487
56582
  import { solanaChain as solanaChain8 } from "@funkit/chains";
56488
56583
  import { toValidatedSolanaAddress as toValidatedSolanaAddress2, useLogOnce as useLogOnce6 } from "@funkit/connect-core";
@@ -56539,6 +56634,7 @@ export {
56539
56634
  SelectedHomeTab,
56540
56635
  __private__,
56541
56636
  createAuthenticationAdapter,
56637
+ createConnectedWithdrawalClient,
56542
56638
  createFunkitWagmiConfig,
56543
56639
  cssObjectFromTheme,
56544
56640
  cssStringFromTheme,
@@ -1,9 +1,7 @@
1
1
  /**
2
- * Fetch the compiled shadow stylesheet at runtime. `dist/shadow-css.js` is a
3
- * build artifact of this same build, so it can't be imported statically —
4
- * and a static import would ship the ~800KB CSS string to every integrator.
5
- * The dynamic specifier survives esbuild (bare imports are externalized) and
6
- * resolves through node_modules from inside the published package, so the
7
- * chunk is only fetched when shadow mode actually turns on.
2
+ * Load the shadow stylesheet, retrying on the schedule above. Webpack and
3
+ * Turbopack re-attempt a failed chunk on the next call, which clears most
4
+ * transient network failures; a stale-deploy 404 fails the same way every
5
+ * time and falls back.
8
6
  */
9
7
  export declare function loadShadowCss(): Promise<string | null>;
@@ -0,0 +1,13 @@
1
+ import type { Address } from 'viem';
2
+ import type { Config } from '../wagmi/hooks';
3
+ import type { WithdrawalClient } from './Wallet';
4
+ /**
5
+ * Adapts the user's connected (wagmi) wallet into the {@link WithdrawalClient}
6
+ * shape the SDK's relay execution drives.
7
+ *
8
+ * Everything is routed through wagmi-core actions bound to the live `config`
9
+ * (not a captured viem client) so chain switches and account changes are always
10
+ * read from current state — `sendTransaction` ensures the wallet is on
11
+ * `chainId` first, so the relay flow never broadcasts on the wrong chain.
12
+ */
13
+ export declare function createConnectedWithdrawalClient(config: Config, ownerAddress: Address, sourceChainId: number): WithdrawalClient;
@@ -2,54 +2,54 @@
2
2
  import {
3
3
  xdefiWallet
4
4
  } from "./chunk-HXX4PRE2.js";
5
- import {
6
- zealWallet
7
- } from "./chunk-GLX5FULK.js";
8
5
  import {
9
6
  zerionWallet
10
7
  } from "./chunk-34B7OJNT.js";
8
+ import {
9
+ zealWallet
10
+ } from "./chunk-GLX5FULK.js";
11
11
  import {
12
12
  subWallet
13
13
  } from "./chunk-XODA5ESL.js";
14
+ import {
15
+ tahoWallet
16
+ } from "./chunk-U74RFZOL.js";
14
17
  import {
15
18
  talismanWallet
16
19
  } from "./chunk-IAYYWCVB.js";
17
20
  import {
18
21
  tokenPocketWallet
19
22
  } from "./chunk-NXWG6FG2.js";
20
- import {
21
- tahoWallet
22
- } from "./chunk-U74RFZOL.js";
23
23
  import {
24
24
  tokenaryWallet
25
25
  } from "./chunk-TPM5PUJD.js";
26
- import {
27
- trustWallet
28
- } from "./chunk-SR5CZR3L.js";
29
26
  import {
30
27
  uniswapWallet
31
28
  } from "./chunk-UNDWHCDH.js";
29
+ import {
30
+ trustWallet
31
+ } from "./chunk-SR5CZR3L.js";
32
32
  import {
33
33
  walletConnectWallet
34
34
  } from "./chunk-DUX4XCDV.js";
35
35
  import {
36
- phantomWallet
37
- } from "./chunk-Q27YVDDH.js";
36
+ oneKeyWallet
37
+ } from "./chunk-KN32ITJ7.js";
38
38
  import {
39
39
  rabbyWallet
40
40
  } from "./chunk-RQ2GXOJL.js";
41
- import {
42
- ramperWallet
43
- } from "./chunk-GPXIBTWN.js";
44
41
  import {
45
42
  rainbowWallet
46
43
  } from "./chunk-ZSSSLFQF.js";
47
44
  import {
48
- roninWallet
49
- } from "./chunk-IA5432IR.js";
45
+ ramperWallet
46
+ } from "./chunk-GPXIBTWN.js";
50
47
  import {
51
48
  safeWallet
52
49
  } from "./chunk-IR3PJMVM.js";
50
+ import {
51
+ roninWallet
52
+ } from "./chunk-IA5432IR.js";
53
53
  import {
54
54
  safeheronWallet
55
55
  } from "./chunk-UN3ONVNC.js";
@@ -68,9 +68,6 @@ import {
68
68
  import {
69
69
  oktoWallet
70
70
  } from "./chunk-V4M3SNPS.js";
71
- import {
72
- okxWallet
73
- } from "./chunk-CU5J53XR.js";
74
71
  import {
75
72
  omniWallet
76
73
  } from "./chunk-2TAUCVX7.js";
@@ -78,14 +75,17 @@ import {
78
75
  oneInchWallet
79
76
  } from "./chunk-GFS2AVAH.js";
80
77
  import {
81
- oneKeyWallet
82
- } from "./chunk-KN32ITJ7.js";
78
+ okxWallet
79
+ } from "./chunk-CU5J53XR.js";
83
80
  import {
84
- enkryptWallet
85
- } from "./chunk-Z6LDN2AN.js";
81
+ phantomWallet
82
+ } from "./chunk-Q27YVDDH.js";
86
83
  import {
87
84
  foxWallet
88
85
  } from "./chunk-U52QO5HF.js";
86
+ import {
87
+ clvWallet
88
+ } from "./chunk-4FHNLTR3.js";
89
89
  import {
90
90
  frontierWallet
91
91
  } from "./chunk-IWOMSW64.js";
@@ -105,51 +105,51 @@ import {
105
105
  kresusWallet
106
106
  } from "./chunk-V77ATGZT.js";
107
107
  import {
108
- bybitWallet
109
- } from "./chunk-BBDNB5TQ.js";
108
+ braveWallet
109
+ } from "./chunk-U2XXV45G.js";
110
110
  import {
111
- clvWallet
112
- } from "./chunk-4FHNLTR3.js";
111
+ coin98Wallet
112
+ } from "./chunk-RFCZYLNR.js";
113
113
  import {
114
114
  coinbaseWallet
115
115
  } from "./chunk-SM2A3OSG.js";
116
116
  import {
117
117
  coreWallet
118
118
  } from "./chunk-TRZDAXCQ.js";
119
- import {
120
- coin98Wallet
121
- } from "./chunk-RFCZYLNR.js";
122
119
  import {
123
120
  customWallet
124
121
  } from "./chunk-VKM5M5UK.js";
125
122
  import {
126
123
  dawnWallet
127
124
  } from "./chunk-LV6YV3DE.js";
125
+ import {
126
+ enkryptWallet
127
+ } from "./chunk-Z6LDN2AN.js";
128
128
  import {
129
129
  desigWallet
130
130
  } from "./chunk-DFHP75HV.js";
131
- import {
132
- bitskiWallet
133
- } from "./chunk-NPITCCJE.js";
134
131
  import {
135
132
  bifrostWallet
136
133
  } from "./chunk-ALGPGI6V.js";
134
+ import {
135
+ bitgetWallet
136
+ } from "./chunk-HOCKAU5H.js";
137
137
  import {
138
138
  argentWallet
139
139
  } from "./chunk-XSDTNMQY.js";
140
+ import {
141
+ bloomWallet
142
+ } from "./chunk-PNHDOC77.js";
140
143
  import {
141
144
  bitverseWallet
142
145
  } from "./chunk-5AEWIKRA.js";
143
146
  import {
144
- bloomWallet
145
- } from "./chunk-PNHDOC77.js";
147
+ bitskiWallet
148
+ } from "./chunk-NPITCCJE.js";
146
149
  import {
147
- bitgetWallet
148
- } from "./chunk-HOCKAU5H.js";
150
+ bybitWallet
151
+ } from "./chunk-BBDNB5TQ.js";
149
152
  import "./chunk-AALSJCUR.js";
150
- import {
151
- braveWallet
152
- } from "./chunk-U2XXV45G.js";
153
153
  import "./chunk-EYWGX5LT.js";
154
154
  import "./chunk-B454LLKJ.js";
155
155
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "12.8.0",
3
+ "version": "12.9.0",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -119,11 +119,11 @@
119
119
  "ua-parser-js": "^1.0.37",
120
120
  "use-debounce": "^10.0.5",
121
121
  "uuid": "^11.1.1",
122
- "@funkit/chains": "2.4.0",
123
- "@funkit/connect-core": "8.1.1",
124
- "@funkit/utils": "5.0.0",
125
122
  "@funkit/api-base": "8.4.0",
126
- "@funkit/fun-relay": "3.0.1"
123
+ "@funkit/chains": "2.4.0",
124
+ "@funkit/connect-core": "8.2.0",
125
+ "@funkit/fun-relay": "3.0.1",
126
+ "@funkit/utils": "5.0.0"
127
127
  },
128
128
  "repository": {
129
129
  "type": "git",
@@ -136,7 +136,7 @@
136
136
  "build": "node build.js && pnpm typecheck",
137
137
  "build:watch": "node build.js --watch",
138
138
  "dev": "pnpm build:watch & pnpm typegen:watch",
139
- "prebuild": "pnpm typegen",
139
+ "prebuild": "rm -rf dist && pnpm typegen",
140
140
  "typecheck": "pnpm tsc --noEmit",
141
141
  "typegen": "tsc --project tsconfig.build.json --emitDeclarationOnly && tsc-alias",
142
142
  "typegen:watch": "tsc --project tsconfig.build.json --emitDeclarationOnly --watch & tsc-alias --project tsconfig.build.json --watch",