@storybook/react-webpack5 7.1.0-alpha.25 → 7.1.0-alpha.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +27 -3
- package/dist/preset.d.ts +1 -1
- package/package.json +6 -6
- package/dist/types-6a41b796.d.ts +0 -27
package/dist/index.d.ts
CHANGED
@@ -1,3 +1,27 @@
|
|
1
|
-
|
2
|
-
import '@storybook/
|
3
|
-
|
1
|
+
import { ReactOptions, StorybookConfig as StorybookConfig$1, TypescriptOptions as TypescriptOptions$1 } from '@storybook/preset-react-webpack';
|
2
|
+
import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
|
3
|
+
|
4
|
+
type FrameworkName = '@storybook/react-webpack5';
|
5
|
+
type BuilderName = '@storybook/builder-webpack5';
|
6
|
+
type FrameworkOptions = ReactOptions & {
|
7
|
+
builder?: BuilderOptions;
|
8
|
+
};
|
9
|
+
type StorybookConfigFramework = {
|
10
|
+
framework: FrameworkName | {
|
11
|
+
name: FrameworkName;
|
12
|
+
options: FrameworkOptions;
|
13
|
+
};
|
14
|
+
core?: StorybookConfig$1['core'] & {
|
15
|
+
builder?: BuilderName | {
|
16
|
+
name: BuilderName;
|
17
|
+
options: BuilderOptions;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$1['typescript'];
|
21
|
+
};
|
22
|
+
/**
|
23
|
+
* The interface for Storybook configuration in `main.ts` files.
|
24
|
+
*/
|
25
|
+
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
|
26
|
+
|
27
|
+
export { FrameworkOptions, StorybookConfig };
|
package/dist/preset.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { FileSystemCache } from 'file-system-cache';
|
2
2
|
import { TransformOptions } from '@babel/core';
|
3
3
|
import { Server } from 'http';
|
4
|
-
import {
|
4
|
+
import { StorybookConfig as StorybookConfig$1 } from './index.js';
|
5
5
|
import '@storybook/preset-react-webpack';
|
6
6
|
import '@storybook/builder-webpack5';
|
7
7
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/react-webpack5",
|
3
|
-
"version": "7.1.0-alpha.
|
3
|
+
"version": "7.1.0-alpha.26",
|
4
4
|
"description": "Storybook for React: Develop React Component in isolation with Hot Reloading.",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -47,9 +47,9 @@
|
|
47
47
|
"prep": "../../../scripts/prepare/bundle.ts"
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
|
-
"@storybook/builder-webpack5": "7.1.0-alpha.
|
51
|
-
"@storybook/preset-react-webpack": "7.1.0-alpha.
|
52
|
-
"@storybook/react": "7.1.0-alpha.
|
50
|
+
"@storybook/builder-webpack5": "7.1.0-alpha.26",
|
51
|
+
"@storybook/preset-react-webpack": "7.1.0-alpha.26",
|
52
|
+
"@storybook/react": "7.1.0-alpha.26",
|
53
53
|
"@types/node": "^16.0.0"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"typescript": "~4.9.3"
|
58
58
|
},
|
59
59
|
"peerDependencies": {
|
60
|
-
"@babel/core": "^7.
|
60
|
+
"@babel/core": "^7.22.0",
|
61
61
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
62
62
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
63
63
|
},
|
@@ -82,5 +82,5 @@
|
|
82
82
|
],
|
83
83
|
"platform": "node"
|
84
84
|
},
|
85
|
-
"gitHead": "
|
85
|
+
"gitHead": "515abaa55abc8ad20f906e4ce46cde3d3850991e"
|
86
86
|
}
|
package/dist/types-6a41b796.d.ts
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
import { ReactOptions, StorybookConfig as StorybookConfig$1, TypescriptOptions as TypescriptOptions$1 } from '@storybook/preset-react-webpack';
|
2
|
-
import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
|
3
|
-
|
4
|
-
type FrameworkName = '@storybook/react-webpack5';
|
5
|
-
type BuilderName = '@storybook/builder-webpack5';
|
6
|
-
type FrameworkOptions = ReactOptions & {
|
7
|
-
builder?: BuilderOptions;
|
8
|
-
};
|
9
|
-
type StorybookConfigFramework = {
|
10
|
-
framework: FrameworkName | {
|
11
|
-
name: FrameworkName;
|
12
|
-
options: FrameworkOptions;
|
13
|
-
};
|
14
|
-
core?: StorybookConfig$1['core'] & {
|
15
|
-
builder?: BuilderName | {
|
16
|
-
name: BuilderName;
|
17
|
-
options: BuilderOptions;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$1['typescript'];
|
21
|
-
};
|
22
|
-
/**
|
23
|
-
* The interface for Storybook configuration in `main.ts` files.
|
24
|
-
*/
|
25
|
-
type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
|
26
|
-
|
27
|
-
export { FrameworkOptions as F, StorybookConfig as S };
|