From 9b7bc3ff65ca54863b2e4d906f6586e5ec8f8887 Mon Sep 17 00:00:00 2001 From: Yos Riady Date: Fri, 31 Jul 2026 16:44:13 +0700 Subject: [PATCH] Point the Solana JSDoc at the packages that actually exist The @example blocks on SolanaOptions.store and SolanaManager.setStore told users to `import { createClient } from '@solana-foundation/framework-kit'`. That package does not exist; npm returns a 404. framework-kit ships as `@solana/client` and `@solana/react-hooks`, which is what examples/with-solana depends on and what the docs instruct. SolanaOptions is the type users hover in their editor when wiring the Solana integration, so this is the first import they copy. The two prose mentions keep calling it framework-kit, which is correct as the project name; they just drop the bogus package scope. The examples also import `autoDiscover`, since both examples call it. Co-Authored-By: Claude Opus 5 (1M context) --- src/solana/SolanaManager.ts | 2 +- src/solana/storeTypes.ts | 2 +- src/solana/types.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/solana/SolanaManager.ts b/src/solana/SolanaManager.ts index aca10a85..ebf5a6c6 100644 --- a/src/solana/SolanaManager.ts +++ b/src/solana/SolanaManager.ts @@ -47,7 +47,7 @@ export class SolanaManager { * * @example * ```tsx - * import { createClient } from '@solana-foundation/framework-kit'; + * import { createClient, autoDiscover } from '@solana/client'; * * const client = createClient({ endpoint: '...', walletConnectors: autoDiscover() }); * formo.solana.setStore(client.store); diff --git a/src/solana/storeTypes.ts b/src/solana/storeTypes.ts index d2bed134..a515ab13 100644 --- a/src/solana/storeTypes.ts +++ b/src/solana/storeTypes.ts @@ -1,7 +1,7 @@ /** * Type definitions for framework-kit's zustand store integration. * - * These types mirror the state shape of @solana-foundation/framework-kit's + * These types mirror the state shape of framework-kit's * vanilla zustand store, allowing the SDK to subscribe to wallet and * transaction state changes without wrapping any wallet methods. * diff --git a/src/solana/types.ts b/src/solana/types.ts index 29aab826..4075efc2 100644 --- a/src/solana/types.ts +++ b/src/solana/types.ts @@ -75,11 +75,11 @@ export interface SolanaOptions { * When provided, wallet connect/disconnect and transaction events are tracked * automatically by subscribing to zustand store state changes. * - * This is the recommended approach for apps using @solana-foundation/framework-kit. + * This is the recommended approach for apps using framework-kit. * * @example * ```tsx - * import { createClient } from '@solana-foundation/framework-kit'; + * import { createClient, autoDiscover } from '@solana/client'; * const client = createClient({ endpoint, walletConnectors: autoDiscover() }); * const formo = await Formo.init(writeKey, { solana: { store: client.store } }); * ```