Skip to content

feat: migrate to @elevenlabs/react v1 with granular hooks#68

Merged
kraenhansen merged 10 commits into
mainfrom
feat/elevenlabs-sdk-v1-migration
May 15, 2026
Merged

feat: migrate to @elevenlabs/react v1 with granular hooks#68
kraenhansen merged 10 commits into
mainfrom
feat/elevenlabs-sdk-v1-migration

Conversation

@kraenhansen

Copy link
Copy Markdown
Member

Summary

  • Upgrade @elevenlabs/client and @elevenlabs/react from ^0.12.0 to 1.0.0-rc.1
  • Replace useConversation with granular hooks (useConversationStatus, useConversationControls, useConversationInput) across all conversation components
  • Remove built-in ConversationProvider from ConversationBar — callers now provide their own provider
  • Add shared ConversationProvider in CardsDemo for the homepage demo

Test plan

  • Run pnpm dev and verify homepage renders with all voice chat components
  • Test voice-chat-01: text input sends messages, voice call connects/disconnects
  • Test voice-chat-02: voice call connects/disconnects, orb responds to volume
  • Test voice-chat-03: conversation bar connects, messages display, mute toggles
  • Test conversation-bar-demo on its docs page
  • pnpm typecheck passes (only pre-existing [[...slug]] route error)

🤖 Generated with Claude Code

@vercel

vercel Bot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ui Ready Ready Preview, Comment May 14, 2026 7:23pm

Request Review

@peoray

peoray commented Mar 20, 2026

Copy link
Copy Markdown

are there plans for a Vue alternative for the react package?

It'd be cool to have something to use for Elevenlabs UI Vue

@kraenhansen

Copy link
Copy Markdown
Member Author

@peoray elevenlabs/packages#434 is the place to subscribe to updates for that and direct your Vue friends to add their "👍"

I see you're already active there 😉 which is great!

kraenhansen and others added 6 commits May 14, 2026 18:43
- Update @elevenlabs/client and @elevenlabs/react to 1.0.0-rc.1
- Wrap useConversation consumers with ConversationProvider (required in v1)
- Guard getInputVolume/getOutputVolume with try-catch for pre-session calls
- Add NEXT_PUBLIC_ELEVENLABS_AGENT_ID to .env.example

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…r from ConversationBar

Replace local connection state (agentState, isMuted) with granular hooks
(useConversationStatus, useConversationControls, useConversationInput)
across all conversation components. Remove ConversationProvider from
ConversationBar so it uses whatever provider exists in the tree.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Conversation components now expect a provider from the caller.
The CardsDemo page provides the single shared provider.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…able

Upgrade @elevenlabs/client (1.0.0-rc.1 → ^1.7.0) and
@elevenlabs/react (1.0.0-rc.1 → ^1.6.0) to their latest
stable releases. No code changes needed — the codebase already
uses the new API patterns.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kraenhansen kraenhansen force-pushed the feat/elevenlabs-sdk-v1-migration branch from 62be968 to d993983 Compare May 14, 2026 16:53
@kraenhansen kraenhansen changed the title feat: migrate to @elevenlabs/react v1.0.0-rc.1 with granular hooks feat: migrate to @elevenlabs/react v1 with granular hooks May 14, 2026
@kraenhansen kraenhansen requested a review from louisjoecodes May 14, 2026 17:53
@kraenhansen kraenhansen marked this pull request as ready for review May 14, 2026 17:53
cursoragent and others added 3 commits May 14, 2026 19:11
Co-authored-by: Kræn Hansen <mail@kraenhansen.dk>
Co-authored-by: Kræn Hansen <mail@kraenhansen.dk>
Co-authored-by: Kræn Hansen <mail@kraenhansen.dk>
@kraenhansen kraenhansen merged commit e2e4e6e into main May 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants