Upgrade storybook to 8

This commit is contained in:
Fedor Indutny
2024-07-08 11:23:27 -07:00
committed by GitHub
parent 92f25e8a75
commit c68aac7401
22 changed files with 4665 additions and 8269 deletions

View File

@@ -1,13 +0,0 @@
diff --git a/node_modules/@storybook/manager-api/dist/index.d.ts b/node_modules/@storybook/manager-api/dist/index.d.ts
index 7afb86e..a15b801 100644
--- a/node_modules/@storybook/manager-api/dist/index.d.ts
+++ b/node_modules/@storybook/manager-api/dist/index.d.ts
@@ -822,7 +822,7 @@ declare class ManagerProvider extends Component<ManagerProviderProps, State> {
static getDerivedStateFromProps(props: ManagerProviderProps, state: State): State;
shouldComponentUpdate(nextProps: ManagerProviderProps, nextState: State): boolean;
initModules: () => void;
- render(): React.JSX.Element;
+ render(): JSX.Element;
}
interface ManagerConsumerProps<P = unknown> {
filter?: (combo: Combo) => P;

View File

@@ -1,22 +0,0 @@
diff --git a/node_modules/@storybook/router/dist/index.d.ts b/node_modules/@storybook/router/dist/index.d.ts
index ed699f7..71f48eb 100644
--- a/node_modules/@storybook/router/dist/index.d.ts
+++ b/node_modules/@storybook/router/dist/index.d.ts
@@ -335,7 +335,7 @@ declare const useNavigate: () => (to: To | number, { plain, ...options }?: any)
* A component that will navigate to a new location/path when clicked
*/
declare const Link: {
- ({ to, children, ...rest }: LinkProps): React__default.JSX.Element;
+ ({ to, children, ...rest }: LinkProps): JSX.Element;
displayName: string;
};
/**
@@ -343,7 +343,7 @@ declare const Link: {
* and will be called whenever it changes when it changes
*/
declare const Location: {
- ({ children }: LocationProps): React__default.JSX.Element;
+ ({ children }: LocationProps): JSX.Element;
displayName: string;
};
/**

View File

@@ -1,35 +0,0 @@
diff --git a/node_modules/@types/jest/index.d.ts b/node_modules/@types/jest/index.d.ts
index b37b188..1908c0c 100755
--- a/node_modules/@types/jest/index.d.ts
+++ b/node_modules/@types/jest/index.d.ts
@@ -30,18 +30,18 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.3
-declare var beforeAll: jest.Lifecycle;
-declare var beforeEach: jest.Lifecycle;
-declare var afterAll: jest.Lifecycle;
-declare var afterEach: jest.Lifecycle;
-declare var describe: jest.Describe;
-declare var fdescribe: jest.Describe;
-declare var xdescribe: jest.Describe;
-declare var it: jest.It;
-declare var fit: jest.It;
-declare var xit: jest.It;
-declare var test: jest.It;
-declare var xtest: jest.It;
+// declare var beforeAll: jest.Lifecycle;
+// declare var beforeEach: jest.Lifecycle;
+// declare var afterAll: jest.Lifecycle;
+// declare var afterEach: jest.Lifecycle;
+// declare var describe: jest.Describe;
+// declare var fdescribe: jest.Describe;
+// declare var xdescribe: jest.Describe;
+// declare var it: jest.It;
+// declare var fit: jest.It;
+// declare var xit: jest.It;
+// declare var test: jest.It;
+// declare var xtest: jest.It;
declare const expect: jest.Expect;

File diff suppressed because it is too large Load Diff