Skip to content

Commit

Permalink
chore(demo): update storybook 7.1.1->8.4.1 (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
St1ggy authored Nov 5, 2024
1 parent 4480b83 commit 81b3543
Show file tree
Hide file tree
Showing 40 changed files with 3,218 additions and 7,182 deletions.
6 changes: 4 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ import type {StorybookConfig} from '@storybook/react-webpack5';

import pkg from '../package.json';

const config:StorybookConfig = {
const config: StorybookConfig = {
framework: {
name: '@storybook/react-webpack5',
options: {fastRefresh: true},
options: {},
},
stories: ['../demo/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/preset-scss',
{name: '@storybook/addon-essentials', options: {backgrounds: false}},
'@storybook/addon-webpack5-compiler-babel',
],
typescript: {
check: true,
reactDocgen: 'react-docgen-typescript'
},
webpackFinal(config) {
config.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 {themes} from './theme';

addons.setConfig({
Expand Down
3 changes: 3 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const preview: Preview = {
order: ['Markdown Editor', ['Playground', '*'], '*'],
}
},
controls: {
exclude: ['withDefaultInitialContent', 'initial']
}
},
globalTypes: {
theme: {
Expand Down
38 changes: 0 additions & 38 deletions demo/EscapeConfig.stories.tsx

This file was deleted.

281 changes: 0 additions & 281 deletions demo/Markdown.stories.tsx

This file was deleted.

Loading

0 comments on commit 81b3543

Please sign in to comment.