Merge pull request #16847 from overleaf/td-chat-context-provider-storybook

Add chat context provider to Storybook scope decorator

GitOrigin-RevId: 04c95581dfaa4818dc9c9976e854612b4e642101
This commit is contained in:
Tim Down 2024-02-02 11:54:36 +00:00 committed by Copybot
parent 3a88a60e23
commit 7764fb9139

View file

@ -23,6 +23,7 @@ import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/pro
import { FileTreePathProvider } from '@/features/file-tree/contexts/file-tree-path' import { FileTreePathProvider } from '@/features/file-tree/contexts/file-tree-path'
import { UserSettingsProvider } from '@/shared/context/user-settings-context' import { UserSettingsProvider } from '@/shared/context/user-settings-context'
import { OutlineProvider } from '@/features/ide-react/context/outline-context' import { OutlineProvider } from '@/features/ide-react/context/outline-context'
import { ChatProvider } from '@/features/chat/context/chat-context'
const scopeWatchers: [string, (value: any) => void][] = [] const scopeWatchers: [string, (value: any) => void][] = []
@ -242,6 +243,7 @@ export const ScopeDecorator = (
useMeta(meta) useMeta(meta)
const Providers = { const Providers = {
ChatProvider,
DetachCompileProvider, DetachCompileProvider,
DetachProvider, DetachProvider,
EditorProvider, EditorProvider,
@ -273,9 +275,11 @@ export const ScopeDecorator = (
<Providers.LayoutProvider> <Providers.LayoutProvider>
<Providers.LocalCompileProvider> <Providers.LocalCompileProvider>
<Providers.DetachCompileProvider> <Providers.DetachCompileProvider>
<Providers.ChatProvider>
<Providers.OutlineProvider> <Providers.OutlineProvider>
<Story /> <Story />
</Providers.OutlineProvider> </Providers.OutlineProvider>
</Providers.ChatProvider>
</Providers.DetachCompileProvider> </Providers.DetachCompileProvider>
</Providers.LocalCompileProvider> </Providers.LocalCompileProvider>
</Providers.LayoutProvider> </Providers.LayoutProvider>