Add UserSettingsProvider to Storybook ScopeDecorator (#16054)

GitOrigin-RevId: 13dbb81ca78880a59dba2a3b8eeb1465850dd1ce
This commit is contained in:
Alf Eaton 2023-11-30 08:59:10 +00:00 committed by Copybot
parent 0f793975d2
commit 8227db9e32

View file

@ -21,6 +21,7 @@ import { LocalCompileProvider } from '@/shared/context/local-compile-context'
import { DetachCompileProvider } from '@/shared/context/detach-compile-context' import { DetachCompileProvider } from '@/shared/context/detach-compile-context'
import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/project-settings-context' import { ProjectSettingsProvider } from '@/features/editor-left-menu/context/project-settings-context'
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'
const scopeWatchers: [string, (value: any) => void][] = [] const scopeWatchers: [string, (value: any) => void][] = []
@ -247,6 +248,7 @@ export const ScopeDecorator = (
ProjectSettingsProvider, ProjectSettingsProvider,
SplitTestProvider, SplitTestProvider,
UserProvider, UserProvider,
UserSettingsProvider,
...opts.providers, ...opts.providers,
} }
@ -254,25 +256,27 @@ export const ScopeDecorator = (
<Providers.SplitTestProvider> <Providers.SplitTestProvider>
<Providers.IdeAngularProvider ide={ide}> <Providers.IdeAngularProvider ide={ide}>
<Providers.UserProvider> <Providers.UserProvider>
<Providers.ProjectProvider> <Providers.UserSettingsProvider>
<Providers.FileTreeDataProvider> <Providers.ProjectProvider>
<Providers.FileTreePathProvider> <Providers.FileTreeDataProvider>
<Providers.DetachProvider> <Providers.FileTreePathProvider>
<Providers.EditorProvider> <Providers.DetachProvider>
<Providers.ProjectSettingsProvider> <Providers.EditorProvider>
<Providers.LayoutProvider> <Providers.ProjectSettingsProvider>
<Providers.LocalCompileProvider> <Providers.LayoutProvider>
<Providers.DetachCompileProvider> <Providers.LocalCompileProvider>
<Story /> <Providers.DetachCompileProvider>
</Providers.DetachCompileProvider> <Story />
</Providers.LocalCompileProvider> </Providers.DetachCompileProvider>
</Providers.LayoutProvider> </Providers.LocalCompileProvider>
</Providers.ProjectSettingsProvider> </Providers.LayoutProvider>
</Providers.EditorProvider> </Providers.ProjectSettingsProvider>
</Providers.DetachProvider> </Providers.EditorProvider>
</Providers.FileTreePathProvider> </Providers.DetachProvider>
</Providers.FileTreeDataProvider> </Providers.FileTreePathProvider>
</Providers.ProjectProvider> </Providers.FileTreeDataProvider>
</Providers.ProjectProvider>
</Providers.UserSettingsProvider>
</Providers.UserProvider> </Providers.UserProvider>
</Providers.IdeAngularProvider> </Providers.IdeAngularProvider>
</Providers.SplitTestProvider> </Providers.SplitTestProvider>