@storybook/builder-webpack5 7.0.0-alpha.50 → 7.0.0-alpha.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -738,8 +738,8 @@ interface Options$1 {
|
|
|
738
738
|
/**
|
|
739
739
|
* ⚠️ This file contains internal WIP types they MUST NOT be exported outside this package for now!
|
|
740
740
|
*/
|
|
741
|
-
|
|
742
|
-
|
|
741
|
+
type BuilderName = 'webpack5' | '@storybook/builder-webpack5' | string;
|
|
742
|
+
type RendererName = string;
|
|
743
743
|
interface CoreConfig {
|
|
744
744
|
builder?: BuilderName | {
|
|
745
745
|
name: BuilderName;
|
|
@@ -806,7 +806,7 @@ interface ReleaseNotesData {
|
|
|
806
806
|
interface Stats {
|
|
807
807
|
toJson: () => any;
|
|
808
808
|
}
|
|
809
|
-
|
|
809
|
+
type PackageJson = PackageJson$1 & Record<string, any>;
|
|
810
810
|
interface LoadOptions {
|
|
811
811
|
packageJson: PackageJson;
|
|
812
812
|
outputDir?: string;
|
|
@@ -863,7 +863,7 @@ interface StorybookConfigOptions {
|
|
|
863
863
|
presets: Presets;
|
|
864
864
|
presetsList?: LoadedPreset[];
|
|
865
865
|
}
|
|
866
|
-
|
|
866
|
+
type Options = LoadOptions & StorybookConfigOptions & CLIOptions & BuilderOptions;
|
|
867
867
|
interface Builder<Config, BuilderStats extends Stats = Stats> {
|
|
868
868
|
getConfig: (options: Options) => Promise<Config>;
|
|
869
869
|
start: (args: {
|
|
@@ -937,8 +937,8 @@ interface CoreCommon_StoriesSpecifier {
|
|
|
937
937
|
*/
|
|
938
938
|
files?: string;
|
|
939
939
|
}
|
|
940
|
-
|
|
941
|
-
|
|
940
|
+
type CoreCommon_StoriesEntry = string | CoreCommon_StoriesSpecifier;
|
|
941
|
+
type Preset = string | {
|
|
942
942
|
name: string;
|
|
943
943
|
options?: any;
|
|
944
944
|
};
|
|
@@ -946,14 +946,14 @@ declare type Preset = string | {
|
|
|
946
946
|
* An additional script that gets injected into the
|
|
947
947
|
* preview or the manager,
|
|
948
948
|
*/
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
type Entry = string;
|
|
950
|
+
type CoreCommon_StorybookRefs = Record<string, {
|
|
951
951
|
title: string;
|
|
952
952
|
url: string;
|
|
953
953
|
} | {
|
|
954
954
|
disable: boolean;
|
|
955
955
|
}>;
|
|
956
|
-
|
|
956
|
+
type DocsOptions = {
|
|
957
957
|
/**
|
|
958
958
|
* Should we generate docs entries at all under any circumstances? (i.e. can they be rendered)
|
|
959
959
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import webpack__default, { Configuration, Stats } from 'webpack';
|
|
2
|
-
import { O as Options$1, B as Builder } from './index.d-
|
|
2
|
+
import { O as Options$1, B as Builder } from './index.d-6d224b26.js';
|
|
3
3
|
import { StorybookConfig, Options, BuilderResult as BuilderResult$1 } from '@storybook/core-webpack';
|
|
4
4
|
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
|
|
5
5
|
import 'file-system-cache';
|
|
@@ -7,7 +7,7 @@ import '@babel/core';
|
|
|
7
7
|
import 'express';
|
|
8
8
|
import 'http';
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
type TypeScriptOptionsBase = Required<StorybookConfig>['typescript'];
|
|
11
11
|
/**
|
|
12
12
|
* Options for TypeScript usage within Storybook.
|
|
13
13
|
*/
|
|
@@ -28,7 +28,7 @@ interface StorybookConfigWebpack extends Pick<StorybookConfig, 'webpack' | 'webp
|
|
|
28
28
|
*/
|
|
29
29
|
webpackFinal?: (config: Configuration, options: Options) => Configuration | Promise<Configuration>;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
type BuilderOptions = {
|
|
32
32
|
fsCache?: boolean;
|
|
33
33
|
lazyCompilation?: boolean;
|
|
34
34
|
};
|
|
@@ -36,8 +36,8 @@ interface BuilderResult extends BuilderResult$1 {
|
|
|
36
36
|
stats?: Stats;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
type WebpackBuilder = Builder<Configuration, Stats>;
|
|
40
|
+
type BuilderStartOptions = Parameters<WebpackBuilder['start']>['0'];
|
|
41
41
|
declare const executor: {
|
|
42
42
|
get: (options: Options$1) => Promise<typeof webpack__default>;
|
|
43
43
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as webpack$1 from 'webpack';
|
|
2
2
|
import { Configuration } from 'webpack';
|
|
3
|
-
import { O as Options } from '../index.d-
|
|
3
|
+
import { O as Options } from '../index.d-6d224b26.js';
|
|
4
4
|
import 'file-system-cache';
|
|
5
5
|
import '@babel/core';
|
|
6
6
|
import 'express';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/builder-webpack5",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.52",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -52,26 +52,26 @@
|
|
|
52
52
|
"prep": "../../../scripts/prepare/bundle.ts"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@babel/core": "^7.
|
|
56
|
-
"@storybook/addons": "7.0.0-alpha.
|
|
57
|
-
"@storybook/api": "7.0.0-alpha.
|
|
58
|
-
"@storybook/channel-postmessage": "7.0.0-alpha.
|
|
59
|
-
"@storybook/channel-websocket": "7.0.0-alpha.
|
|
60
|
-
"@storybook/channels": "7.0.0-alpha.
|
|
61
|
-
"@storybook/client-api": "7.0.0-alpha.
|
|
62
|
-
"@storybook/client-logger": "7.0.0-alpha.
|
|
63
|
-
"@storybook/components": "7.0.0-alpha.
|
|
64
|
-
"@storybook/core-common": "7.0.0-alpha.
|
|
65
|
-
"@storybook/core-events": "7.0.0-alpha.
|
|
66
|
-
"@storybook/core-webpack": "7.0.0-alpha.
|
|
67
|
-
"@storybook/node-logger": "7.0.0-alpha.
|
|
68
|
-
"@storybook/preview-web": "7.0.0-alpha.
|
|
69
|
-
"@storybook/router": "7.0.0-alpha.
|
|
70
|
-
"@storybook/store": "7.0.0-alpha.
|
|
71
|
-
"@storybook/theming": "7.0.0-alpha.
|
|
72
|
-
"@types/node": "^16.0.0",
|
|
55
|
+
"@babel/core": "^7.20.2",
|
|
56
|
+
"@storybook/addons": "7.0.0-alpha.52",
|
|
57
|
+
"@storybook/api": "7.0.0-alpha.52",
|
|
58
|
+
"@storybook/channel-postmessage": "7.0.0-alpha.52",
|
|
59
|
+
"@storybook/channel-websocket": "7.0.0-alpha.52",
|
|
60
|
+
"@storybook/channels": "7.0.0-alpha.52",
|
|
61
|
+
"@storybook/client-api": "7.0.0-alpha.52",
|
|
62
|
+
"@storybook/client-logger": "7.0.0-alpha.52",
|
|
63
|
+
"@storybook/components": "7.0.0-alpha.52",
|
|
64
|
+
"@storybook/core-common": "7.0.0-alpha.52",
|
|
65
|
+
"@storybook/core-events": "7.0.0-alpha.52",
|
|
66
|
+
"@storybook/core-webpack": "7.0.0-alpha.52",
|
|
67
|
+
"@storybook/node-logger": "7.0.0-alpha.52",
|
|
68
|
+
"@storybook/preview-web": "7.0.0-alpha.52",
|
|
69
|
+
"@storybook/router": "7.0.0-alpha.52",
|
|
70
|
+
"@storybook/store": "7.0.0-alpha.52",
|
|
71
|
+
"@storybook/theming": "7.0.0-alpha.52",
|
|
72
|
+
"@types/node": "^16.0.0 || ^18.0.0",
|
|
73
73
|
"@types/semver": "^7.3.4",
|
|
74
|
-
"babel-loader": "^8.
|
|
74
|
+
"babel-loader": "^8.3.0",
|
|
75
75
|
"babel-plugin-named-exports-order": "^0.0.2",
|
|
76
76
|
"browser-assert": "^1.2.1",
|
|
77
77
|
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"@types/webpack-dev-middleware": "^5.3.0",
|
|
98
98
|
"@types/webpack-hot-middleware": "^2.25.6",
|
|
99
99
|
"@types/webpack-virtual-modules": "^0.1.1",
|
|
100
|
-
"typescript": "
|
|
100
|
+
"typescript": "^4.9.3"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
],
|
|
120
120
|
"platform": "node"
|
|
121
121
|
},
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "d2494e3f51ce0f55bcb1ef693a6477c669fbe666"
|
|
123
123
|
}
|