Skip to content

Commit c83966e

Browse files
authored
feat: upd deps: storybook and move gulp deps to devDeps (#260)
* feat: upd deps: storybook and move gulp deps to devDeps * feat: upd snapshots * feat: upd snapshots2 * feat: after rebase
1 parent 0d91664 commit c83966e

File tree

6 files changed

+1615
-4285
lines changed

6 files changed

+1615
-4285
lines changed

.storybook/decorators/DocsDecorator/DocsDecorator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const b = cn('docs-decorator');
1616

1717
export function DocsDecorator({children, context}: DocsDecoratorProps) {
1818
// @ts-expect-error
19-
const theme = context.store.globals.globals.theme;
19+
const theme = context.store.userGlobals.globals.theme;
2020

2121
return (
2222
<div className={b()}>

.storybook/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const config: StorybookConfig = {
77
},
88
stories: ['./stories/**/*.mdx', '../src/**/__stories__/*.mdx', '../src/**/*.stories.@(ts|tsx)'],
99
docs: {
10-
autodocs: true,
1110
defaultName: 'Docs',
1211
},
1312
addons: [

.storybook/manager-head.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
<link rel="icon" href="https://storage.yandexcloud.net/cloud-www-assets/constructor/storybook/images/favicon.png" />
2+
<style type="text/css">
3+
/* Hide create story button next to the search bar */
4+
.search-field + div button {
5+
display: none !important;
6+
}
7+
</style>

.storybook/preview.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const withBlogConstructorProvider: Decorator = (Story, context) => {
3939

4040
const preview: Preview = {
4141
decorators: [withTheme, withLang, withMobile, withContextProvider, withBlogConstructorProvider],
42+
4243
parameters: {
4344
docs: {
4445
theme: themes.light,
@@ -57,6 +58,7 @@ const preview: Preview = {
5758
},
5859
},
5960
},
61+
6062
globalTypes: {
6163
theme: {
6264
name: 'Theme',
@@ -91,6 +93,8 @@ const preview: Preview = {
9193
},
9294
},
9395
},
96+
97+
tags: ['autodocs', 'autodocs', 'autodocs'],
9498
};
9599

96100
export default preview;

0 commit comments

Comments
 (0)