@storybook/angular 11.0.0-alpha.0 → 11.0.0-alpha.2
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.
- package/build-schema.json +0 -4
- package/dist/_browser-chunks/{chunk-VRHTETWH.js → chunk-A7CCO6TU.js} +1 -1
- package/dist/_browser-chunks/{chunk-TDP52VBS.js → chunk-M5CWHAJJ.js} +4 -4
- package/dist/_browser-chunks/{chunk-RV6FL7AO.js → chunk-OU5A7FPZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-FPQDYJYM.js → chunk-ZATG2N4T.js} +41 -31
- package/dist/_node-chunks/{angular-cli-webpack-2R43YQZV.js → angular-cli-webpack-DJ37RLNT.js} +9 -7
- package/dist/_node-chunks/{chunk-MTZDRM3U.js → chunk-QC32CNUK.js} +6 -6
- package/dist/_node-chunks/{chunk-2NUFSTH3.js → chunk-X2BF55MD.js} +7 -7
- package/dist/builders/build-storybook/index.js +19 -17
- package/dist/builders/start-storybook/index.js +23 -19
- package/dist/client/config.js +2 -2
- package/dist/client/docs/config.js +2 -2
- package/dist/client/index.js +4 -4
- package/dist/index.d.ts +20 -859
- package/dist/index.js +4 -4
- package/dist/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/dist/server/framework-preset-angular-cli.js +16 -9
- package/dist/server/framework-preset-angular-ivy.js +6 -6
- package/package.json +30 -30
- package/start-schema.json +0 -4
package/dist/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "./_browser-chunks/chunk-
|
|
9
|
-
import "./_browser-chunks/chunk-
|
|
10
|
-
import "./_browser-chunks/chunk-
|
|
11
|
-
import "./_browser-chunks/chunk-
|
|
8
|
+
} from "./_browser-chunks/chunk-M5CWHAJJ.js";
|
|
9
|
+
import "./_browser-chunks/chunk-A7CCO6TU.js";
|
|
10
|
+
import "./_browser-chunks/chunk-OU5A7FPZ.js";
|
|
11
|
+
import "./_browser-chunks/chunk-ZATG2N4T.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
|
14
14
|
applicationConfig,
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bh3ft757e7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bh3ft757e7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bh3ft757e7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bh3ft757e7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bh3ft757e7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bh3ft757e7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/preset.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bh3ft757e7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bh3ft757e7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bh3ft757e7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bh3ft757e7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bh3ft757e7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bh3ft757e7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bh3ft757e7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bh3ft757e7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bh3ft757e7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bh3ft757e7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bh3ft757e7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bh3ft757e7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
up
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-QC32CNUK.js";
|
|
15
15
|
|
|
16
16
|
// src/server/framework-preset-angular-cli.ts
|
|
17
17
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -314,7 +314,7 @@ var delimiter = globalThis.process?.platform === "win32" ? ";" : ":", _platforms
|
|
|
314
314
|
async function webpackFinal(baseConfig, options) {
|
|
315
315
|
if (!resolvePackageDir("@angular-devkit/build-angular"))
|
|
316
316
|
return logger.info('Using base config because "@angular-devkit/build-angular" is not installed'), baseConfig;
|
|
317
|
-
let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-
|
|
317
|
+
let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-DJ37RLNT.js");
|
|
318
318
|
checkForLegacyBuildOptions(options);
|
|
319
319
|
let builderContext = getBuilderContext(options), builderOptions = await getBuilderOptions(options, builderContext), webpackConfig = await getCustomWebpackConfig(baseConfig, {
|
|
320
320
|
builderOptions: {
|
|
@@ -372,9 +372,16 @@ async function getBuilderOptions(options, builderContext) {
|
|
|
372
372
|
`Using angular browser target options from "${browserTarget.project}:${browserTarget.target}${browserTarget.configuration ? `:${browserTarget.configuration}` : ""}"`
|
|
373
373
|
), browserTargetOptions = await builderContext.getTargetOptions(browserTarget);
|
|
374
374
|
}
|
|
375
|
+
if (!builderContext.target)
|
|
376
|
+
throw new Error(
|
|
377
|
+
"The Storybook builder must run as an Angular target to read the options it declares."
|
|
378
|
+
);
|
|
375
379
|
let explicitAngularBuilderOptions = await builderContext.getTargetOptions(
|
|
376
380
|
builderContext.target
|
|
377
|
-
), builderOptions = deepMerge(
|
|
381
|
+
), builderOptions = deepMerge(
|
|
382
|
+
browserTargetOptions,
|
|
383
|
+
explicitAngularBuilderOptions || {}
|
|
384
|
+
);
|
|
378
385
|
return builderOptions.tsConfig = options.tsConfig ?? up("tsconfig.json", { cwd: options.configDir, last: getProjectRoot() }) ?? browserTargetOptions.tsConfig, logger.info(
|
|
379
386
|
`Using angular project with "tsConfig:${relative(getProjectRoot(), builderOptions.tsConfig)}"`
|
|
380
387
|
), builderOptions.experimentalZoneless = options.angularBuilderOptions?.experimentalZoneless, builderOptions;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_bh3ft757e7 from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_bh3ft757e7 from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_bh3ft757e7 from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_bh3ft757e7.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_bh3ft757e7.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_bh3ft757e7.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.2",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"!src/**/*"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@storybook/builder-webpack5": "11.0.0-alpha.
|
|
62
|
+
"@storybook/builder-webpack5": "11.0.0-alpha.2",
|
|
63
63
|
"@storybook/global": "^5.0.0",
|
|
64
64
|
"telejson": "8.0.0",
|
|
65
65
|
"ts-dedent": "^2.0.0",
|
|
@@ -67,42 +67,42 @@
|
|
|
67
67
|
"webpack": "5"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@analogjs/vite-plugin-angular": "^
|
|
71
|
-
"@angular-devkit/architect": "^0.
|
|
72
|
-
"@angular-devkit/build-angular": "^
|
|
73
|
-
"@angular-devkit/core": "^
|
|
74
|
-
"@angular/animations": "^
|
|
75
|
-
"@angular/common": "^
|
|
76
|
-
"@angular/compiler": "^
|
|
77
|
-
"@angular/compiler-cli": "^
|
|
78
|
-
"@angular/core": "^
|
|
79
|
-
"@angular/forms": "^
|
|
80
|
-
"@angular/platform-browser": "^
|
|
81
|
-
"@angular/platform-browser-dynamic": "^
|
|
82
|
-
"@storybook/angular-compodoc": "11.0.0-alpha.
|
|
83
|
-
"@storybook/core-webpack": "11.0.0-alpha.
|
|
70
|
+
"@analogjs/vite-plugin-angular": "^2.5.2",
|
|
71
|
+
"@angular-devkit/architect": "^0.2100.0",
|
|
72
|
+
"@angular-devkit/build-angular": "^21.0.0",
|
|
73
|
+
"@angular-devkit/core": "^21.0.0",
|
|
74
|
+
"@angular/animations": "^21.0.0",
|
|
75
|
+
"@angular/common": "^21.0.0",
|
|
76
|
+
"@angular/compiler": "^21.0.0",
|
|
77
|
+
"@angular/compiler-cli": "^21.0.0",
|
|
78
|
+
"@angular/core": "^21.0.0",
|
|
79
|
+
"@angular/forms": "^21.0.0",
|
|
80
|
+
"@angular/platform-browser": "^21.0.0",
|
|
81
|
+
"@angular/platform-browser-dynamic": "^21.0.0",
|
|
82
|
+
"@storybook/angular-compodoc": "11.0.0-alpha.2",
|
|
83
|
+
"@storybook/core-webpack": "11.0.0-alpha.2",
|
|
84
84
|
"@types/node": "^22.19.1",
|
|
85
85
|
"empathic": "^2.0.0",
|
|
86
86
|
"rimraf": "^6.0.1",
|
|
87
87
|
"typescript": "^6.0.3",
|
|
88
88
|
"webpack": "5",
|
|
89
|
-
"zone.js": "^0.
|
|
89
|
+
"zone.js": "^0.16.0"
|
|
90
90
|
},
|
|
91
91
|
"peerDependencies": {
|
|
92
|
-
"@angular-devkit/architect": ">=0.
|
|
93
|
-
"@angular-devkit/build-angular": ">=
|
|
94
|
-
"@angular-devkit/core": ">=
|
|
95
|
-
"@angular/animations": ">=
|
|
96
|
-
"@angular/cli": ">=
|
|
97
|
-
"@angular/common": ">=
|
|
98
|
-
"@angular/compiler": ">=
|
|
99
|
-
"@angular/compiler-cli": ">=
|
|
100
|
-
"@angular/core": ">=
|
|
101
|
-
"@angular/platform-browser": ">=
|
|
102
|
-
"@angular/platform-browser-dynamic": ">=
|
|
92
|
+
"@angular-devkit/architect": ">=0.2100.0 < 0.2300.0",
|
|
93
|
+
"@angular-devkit/build-angular": ">=21.0.0 < 23.0.0",
|
|
94
|
+
"@angular-devkit/core": ">=21.0.0 < 23.0.0",
|
|
95
|
+
"@angular/animations": ">=21.0.0 < 23.0.0",
|
|
96
|
+
"@angular/cli": ">=21.0.0 < 23.0.0",
|
|
97
|
+
"@angular/common": ">=21.0.0 < 23.0.0",
|
|
98
|
+
"@angular/compiler": ">=21.0.0 < 23.0.0",
|
|
99
|
+
"@angular/compiler-cli": ">=21.0.0 < 23.0.0",
|
|
100
|
+
"@angular/core": ">=21.0.0 < 23.0.0",
|
|
101
|
+
"@angular/platform-browser": ">=21.0.0 < 23.0.0",
|
|
102
|
+
"@angular/platform-browser-dynamic": ">=21.0.0 < 23.0.0",
|
|
103
103
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
104
|
-
"storybook": "^11.0.0-alpha.
|
|
105
|
-
"typescript": "^
|
|
104
|
+
"storybook": "^11.0.0-alpha.2",
|
|
105
|
+
"typescript": "^5.9.0 || ^6.0.0",
|
|
106
106
|
"zone.js": ">=0.14.0"
|
|
107
107
|
},
|
|
108
108
|
"peerDependenciesMeta": {
|
package/start-schema.json
CHANGED
|
@@ -141,10 +141,6 @@
|
|
|
141
141
|
"description": "Write stats JSON to disk",
|
|
142
142
|
"default": false
|
|
143
143
|
},
|
|
144
|
-
"previewUrl": {
|
|
145
|
-
"type": "string",
|
|
146
|
-
"description": "Disables the default storybook preview and lets you use your own"
|
|
147
|
-
},
|
|
148
144
|
"loglevel": {
|
|
149
145
|
"type": "string",
|
|
150
146
|
"description": "Controls level of logging during build. Can be one of: [trace, debug, info (default), warn, error, silent].",
|