Skip to content

Commit

Permalink
Upgrade to latest storybook
Browse files Browse the repository at this point in the history
To make sure that the plugin works with the most recent Storybook
version, I'm upgrading dev dependencies.

As part of this I'm attempting to fix
#104, applying the
changes (different imports in addons.js and decorator.js) suggested
there.
  • Loading branch information
trotzig committed Jan 11, 2024
1 parent e6de227 commit b80f4be
Show file tree
Hide file tree
Showing 4 changed files with 2,080 additions and 1,630 deletions.
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.8.0",
"@storybook/addon-actions": "^7.0.0-beta.57",
"@storybook/addon-interactions": "^7.0.0-beta.57",
"@storybook/addons": "^7.0.0-beta.57",
"@storybook/api": "^7.0.0-beta.57",
"@storybook/addon-actions": "^7.6.7",
"@storybook/addon-interactions": "^7.6.7",
"@storybook/api": "^7.6.7",
"@storybook/jest": "^0.2.3",
"@storybook/react": "^7.0.0-beta.57",
"@storybook/react-webpack5": "^7.0.0-beta.57",
"@storybook/testing-library": "^0.0.14-next.1",
"@storybook/manager-api": "^7.6.7",
"@storybook/preview-api": "^7.6.7",
"@storybook/react": "^7.6.7",
"@storybook/react-webpack5": "^7.6.7",
"@storybook/testing-library": "^0.2.2",
"babel-loader": "^8.0.5",
"eslint": "^8.6.0",
"eslint-plugin-react": "^7.28.0",
Expand All @@ -68,7 +69,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-tether": "^2.0.0",
"storybook": "^7.0.0-beta.57",
"storybook": "^7.6.7",
"styled-components": "^4.1.3",
"webpack": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/addon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

import { addons, types } from '@storybook/addons';
import { addons, types } from '@storybook/manager-api';
import { useParameter, useChannel, useStorybookState } from '@storybook/api';

import { AddonPanel } from '@storybook/components';
Expand Down
2 changes: 1 addition & 1 deletion src/decorator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeDecorator, addons } from '@storybook/addons';
import { makeDecorator, addons } from '@storybook/preview-api';
import { useEffect } from 'react';

const { SB_ROOT_ELEMENT_SELECTOR } = require('./constants');
Expand Down
Loading

0 comments on commit b80f4be

Please sign in to comment.