diff --git a/examples/sveltekit/package.json b/examples/sveltekit/package.json
index a95326b..0524e51 100644
--- a/examples/sveltekit/package.json
+++ b/examples/sveltekit/package.json
@@ -9,9 +9,11 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
},
- "devDependencies": {
+ "dependencies": {
"@solana-wallets-solid/core": "workspace:*",
- "@solana-wallets-solid/unified": "workspace:*",
+ "@solana-wallets-solid/unified": "workspace:*"
+ },
+ "devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
diff --git a/examples/sveltekit/src/routes/+layout.svelte b/examples/sveltekit/src/routes/+layout.svelte
new file mode 100644
index 0000000..eec0bba
--- /dev/null
+++ b/examples/sveltekit/src/routes/+layout.svelte
@@ -0,0 +1,50 @@
+
+
+
+
+
diff --git a/examples/sveltekit/src/routes/+page.svelte b/examples/sveltekit/src/routes/+page.svelte
index 5982b0a..3076d15 100644
--- a/examples/sveltekit/src/routes/+page.svelte
+++ b/examples/sveltekit/src/routes/+page.svelte
@@ -1,2 +1,8 @@
+
+
Welcome to SvelteKit
Visit kit.svelte.dev to read the documentation
+
+
diff --git a/examples/sveltekit/src/routes/button.svelte b/examples/sveltekit/src/routes/button.svelte
new file mode 100644
index 0000000..7a78f21
--- /dev/null
+++ b/examples/sveltekit/src/routes/button.svelte
@@ -0,0 +1 @@
+
diff --git a/examples/sveltekit/tsconfig.json b/examples/sveltekit/tsconfig.json
index 5ad95a0..71d441c 100644
--- a/examples/sveltekit/tsconfig.json
+++ b/examples/sveltekit/tsconfig.json
@@ -1,4 +1,5 @@
{
+ "extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"module": "esnext",
"target": "es2017",
diff --git a/packages/react/src/useWallet.tsx b/packages/react/src/useWallet.tsx
index b5af5f2..1d83976 100644
--- a/packages/react/src/useWallet.tsx
+++ b/packages/react/src/useWallet.tsx
@@ -20,9 +20,10 @@ export type WalletContext = {
connecting: ReturnType["$connecting"]["get"]>
disconnecting: ReturnType["$disconnecting"]["get"]>
signMessage: ReturnType["signMessage"]
- signTransaction: ReturnType["signTransaction"]
- signAllTransactions: ReturnType["signAllTransactions"]
- sendTransaction: ReturnType["sendTransaction"]
+ signTransactionV1: ReturnType["signTransactionV1"]
+ signAllTransactionsV1: ReturnType["signAllTransactionsV1"]
+ sendTransactionV1: ReturnType["sendTransactionV1"]
+ getTransactionSendingSigner: ReturnType["getTransactionSendingSigner"]
}
const WalletContext = createContext({} as WalletContext)
@@ -37,10 +38,11 @@ const {
$wallets,
$walletsMap,
signMessage,
- sendTransaction,
- signTransaction,
- signAllTransactions,
-} = initStore()
+ signTransactionV1,
+ signAllTransactionsV1,
+ sendTransactionV1,
+ getTransactionSendingSigner,
+} = initStore({ autoConnect: true, disconnectOnAccountChange: true })
const WalletProvider: React.FC = ({ children, ...config }) => {
const wallets = useStore($wallets)
@@ -69,9 +71,10 @@ const WalletProvider: React.FC = ({ children, ...config })
connecting,
disconnecting,
signMessage,
- signTransaction,
- signAllTransactions,
- sendTransaction,
+ signTransactionV1,
+ signAllTransactionsV1,
+ sendTransactionV1,
+ getTransactionSendingSigner,
}}
>
{children}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index bd9d9d1..7c790e3 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -204,13 +204,14 @@ importers:
version: 3.72.2(bufferutil@4.0.8)(utf-8-validate@5.0.10)
examples/sveltekit:
- devDependencies:
+ dependencies:
'@solana-wallets-solid/core':
specifier: workspace:*
version: link:../../packages/core
'@solana-wallets-solid/unified':
specifier: workspace:*
version: link:../../packages/unified
+ devDependencies:
'@sveltejs/adapter-auto':
specifier: ^3.0.0
version: 3.2.5(@sveltejs/kit@2.5.28(@sveltejs/vite-plugin-svelte@3.1.2(svelte@4.2.19)(vite@5.4.6(@types/node@22.5.0)(lightningcss@1.27.0)(terser@5.31.6)))(svelte@4.2.19)(vite@5.4.6(@types/node@22.5.0)(lightningcss@1.27.0)(terser@5.31.6)))