Files
brave-core/components/ai_rewriter
Pete Miller c48470dbc6 [AI Chat] Migrate ConversationContext to createInterfaceApi pattern (#33689)
* Migrate ConversationContext to createInterfaceApi pattern

This migrates ConversationContext following the migration of AIChatContext, and leaves
UntrustedConversationContext (and associated API binding classes) alone,
in the interest of making an effort to minimize the branch sizes.

Context Changes:
- conversation_context.tsx: Uses generateReactContextForAPI with new ConversationProvider

API Changes:
- Use new (previously added) API wrapper exported from `api/conversation_api.ts`
- Remove old binding functions from api/index.ts in favor of new (previously added) bindings in `api/bind_conversation.ts`
- state/mock_context.tsx: Update test context wrapper to include ConversationContext and API data

Test and Storybook Updates:
- Now use MockContext from state/mock_context.tsx for ConversationContext
2026-02-25 08:49:21 +00:00
..