Remove local import of backstage-storybook
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"packages": ["packages/*", "plugins/*", "storybook"],
|
||||
"packages": ["packages/*", "plugins/*"],
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"version": "0.0.0"
|
||||
|
||||
+1
-2
@@ -9,8 +9,7 @@
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
"packages/*",
|
||||
"plugins/*",
|
||||
"storybook"
|
||||
"plugins/*"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -96,6 +96,7 @@
|
||||
"@backstage/cli": "workspace:^",
|
||||
"@backstage/core-app-api": "workspace:^",
|
||||
"@backstage/test-utils": "workspace:^",
|
||||
"@storybook/react": "^8.3.5",
|
||||
"@testing-library/dom": "^10.0.0",
|
||||
"@testing-library/jest-dom": "^6.0.0",
|
||||
"@testing-library/react": "^16.0.0",
|
||||
@@ -113,7 +114,6 @@
|
||||
"@types/react-virtualized-auto-sizer": "^1.0.1",
|
||||
"@types/react-window": "^1.8.5",
|
||||
"@types/zen-observable": "^0.8.0",
|
||||
"backstage-storybook": "workspace:^",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"history": "^5.0.0",
|
||||
"msw": "^1.0.0",
|
||||
|
||||
@@ -25,7 +25,7 @@ import Typography from '@material-ui/core/Typography';
|
||||
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
|
||||
import CloseIcon from '@material-ui/icons/Close';
|
||||
|
||||
import type { Meta, StoryObj } from 'backstage-storybook';
|
||||
import type { Meta, StoryObj } from '@storybook/react';
|
||||
|
||||
const meta = {
|
||||
title: 'Layout/Dialog',
|
||||
@@ -50,7 +50,7 @@ export const Default: Story = {
|
||||
args: {
|
||||
open: true,
|
||||
},
|
||||
render: ({ open }) => {
|
||||
render: ({ open }: { open: boolean }) => {
|
||||
const classes = styles();
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
extends: ['plugin:storybook/recommended'],
|
||||
parserOptions: {
|
||||
ecmaVersion: 2020,
|
||||
sourceType: 'module',
|
||||
},
|
||||
env: {
|
||||
es6: true,
|
||||
node: true,
|
||||
},
|
||||
overrides: [
|
||||
{
|
||||
files: ['*.d.ts'],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint'],
|
||||
extends: ['plugin:@typescript-eslint/recommended'],
|
||||
},
|
||||
],
|
||||
};
|
||||
Vendored
-9
@@ -1,9 +0,0 @@
|
||||
import type {
|
||||
Meta as StorybookMeta,
|
||||
StoryObj as StorybookStoryObj,
|
||||
} from '@storybook/react';
|
||||
|
||||
declare module 'backstage-storybook' {
|
||||
export type Meta<T> = StorybookMeta<T>;
|
||||
export type StoryObj<T> = StorybookStoryObj<T>;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
export * from '@storybook/react';
|
||||
+4
-13
@@ -4,8 +4,6 @@
|
||||
"description": "Storybook build for components package",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "index.mjs",
|
||||
"types": "index.d.ts",
|
||||
"scripts": {
|
||||
"build-storybook": "storybook build --output-dir dist",
|
||||
"storybook": "storybook dev -p 6006"
|
||||
@@ -15,6 +13,10 @@
|
||||
"plugin:storybook/recommended"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@chromatic-com/storybook": "^1.9.0",
|
||||
"@storybook/addon-essentials": "^8.3.5",
|
||||
@@ -40,16 +42,5 @@
|
||||
"typescript": "^5.5.3",
|
||||
"typescript-eslint": "^8.7.0",
|
||||
"vite": "^5.4.8"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
||||
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
||||
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
||||
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2262,14 +2262,6 @@ __metadata:
|
||||
typescript: ^5.5.3
|
||||
typescript-eslint: ^8.7.0
|
||||
vite: ^5.4.8
|
||||
peerDependencies:
|
||||
"@types/react": ^16.13.1 || ^17.0.0 || ^18.0.0
|
||||
react: ^16.13.1 || ^17.0.0 || ^18.0.0
|
||||
react-dom: ^16.13.1 || ^17.0.0 || ^18.0.0
|
||||
react-router-dom: 6.0.0-beta.0 || ^6.3.0
|
||||
peerDependenciesMeta:
|
||||
"@types/react":
|
||||
optional: true
|
||||
languageName: unknown
|
||||
linkType: soft
|
||||
|
||||
|
||||
Reference in New Issue
Block a user