Skip to content

Commit

Permalink
chore: update storybook up to v8 (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCG authored Apr 8, 2024
1 parent 2c3c76b commit 2d4142a
Show file tree
Hide file tree
Showing 6 changed files with 1,410 additions and 2,882 deletions.
5 changes: 2 additions & 3 deletions .storybook/addons/theme-addon/register.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from 'react';

import {addons, types} from '@storybook/addons';
import {useGlobals} from '@storybook/api';
import type {API} from '@storybook/api';
import {addons, types, useGlobals} from '@storybook/manager-api';
import type {API} from '@storybook/manager-api';

import {themes} from '../../theme';

Expand Down
4 changes: 1 addition & 3 deletions .storybook/addons/yaml-addon/register.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, {useMemo} from 'react';
import {addons, types} from '@storybook/addons';
import {AddonPanel} from '@storybook/components';
import {useGlobals} from '@storybook/manager-api';
import {useArgs} from '@storybook/api';
import {addons, types, useGlobals, useArgs} from '@storybook/manager-api';
import yaml from 'js-yaml';
import {ClipboardButton, ThemeProvider} from '@gravity-ui/uikit';

Expand Down
1 change: 1 addition & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const config = {
'./addons/yaml-addon/preset',
'./addons/theme-addon/register.tsx',
'@storybook/addon-mdx-gfm',
'@storybook/addon-webpack5-compiler-babel',
],
webpackFinal: (storybookBaseConfig: any) => {
storybookBaseConfig.plugins.push(
Expand Down
2 changes: 1 addition & 1 deletion .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {addons} from '@storybook/addons';
import {addons} from '@storybook/manager-api';
import {themeLight} from './theme/light';

addons.setConfig({
Expand Down
Loading

0 comments on commit 2d4142a

Please sign in to comment.