@storybook/angular 10.1.0-beta.5 → 10.1.0-beta.6
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/dist/_node-chunks/{chunk-EKP67CFJ.js → chunk-33PG3UHH.js} +6 -6
- package/dist/_node-chunks/{chunk-KLQJB5OG.js → chunk-FQMWIAQY.js} +7 -7
- package/dist/builders/build-storybook/index.js +8 -8
- package/dist/builders/start-storybook/index.js +98 -91
- package/dist/index.d.ts +1 -2
- package/dist/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/dist/server/framework-preset-angular-cli.js +7 -7
- package/dist/server/framework-preset-angular-ivy.js +6 -6
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.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_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.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 "./chunk-
|
|
14
|
+
} from "./chunk-33PG3UHH.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/empathic/package.mjs
|
|
17
17
|
function up2(options) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
runCompodoc,
|
|
16
16
|
up as up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-FQMWIAQY.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-33PG3UHH.js";
|
|
21
21
|
|
|
22
22
|
// src/builders/build-storybook/index.ts
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
runCompodoc,
|
|
16
16
|
up as up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-FQMWIAQY.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-33PG3UHH.js";
|
|
21
21
|
|
|
22
22
|
// src/builders/start-storybook/index.ts
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
@@ -26,91 +26,98 @@ import { buildDevStandalone, withTelemetry } from "storybook/internal/core-serve
|
|
|
26
26
|
import { addToGlobalContext } from "storybook/internal/telemetry";
|
|
27
27
|
import { logger } from "storybook/internal/node-logger";
|
|
28
28
|
import { createBuilder, targetFromTargetString } from "@angular-devkit/architect";
|
|
29
|
+
import { Observable } from "rxjs";
|
|
29
30
|
import { VERSION } from "@angular/core";
|
|
30
31
|
addToGlobalContext("cliVersion", versions.storybook);
|
|
31
|
-
var commandBuilder =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
},
|
|
32
|
+
var commandBuilder = (options, context) => new Observable((observer) => {
|
|
33
|
+
(async () => {
|
|
34
|
+
try {
|
|
35
|
+
logger.intro("Starting Storybook");
|
|
36
|
+
let { tsConfig } = await setup(options, context), docTSConfig = up("tsconfig.doc.json", {
|
|
37
|
+
cwd: options.configDir,
|
|
38
|
+
last: getProjectRoot()
|
|
39
|
+
});
|
|
40
|
+
options.compodoc && await runCompodoc(
|
|
41
|
+
{
|
|
42
|
+
compodocArgs: [...options.compodocArgs, ...options.quiet ? ["--silent"] : []],
|
|
43
|
+
tsconfig: docTSConfig ?? tsConfig
|
|
44
|
+
},
|
|
45
|
+
context
|
|
46
|
+
), getEnvConfig(options, {
|
|
47
|
+
port: "SBCONFIG_PORT",
|
|
48
|
+
host: "SBCONFIG_HOSTNAME",
|
|
49
|
+
staticDir: "SBCONFIG_STATIC_DIR",
|
|
50
|
+
configDir: "SBCONFIG_CONFIG_DIR",
|
|
51
|
+
ci: "CI"
|
|
52
|
+
}), options.port = parseInt(`${options.port}`, 10);
|
|
53
|
+
let {
|
|
54
|
+
browserTarget,
|
|
55
|
+
stylePreprocessorOptions,
|
|
56
|
+
styles,
|
|
57
|
+
ci,
|
|
58
|
+
configDir,
|
|
59
|
+
docs,
|
|
60
|
+
host,
|
|
61
|
+
https,
|
|
62
|
+
port,
|
|
63
|
+
quiet,
|
|
64
|
+
enableProdMode = !1,
|
|
65
|
+
smokeTest,
|
|
66
|
+
sslCa,
|
|
67
|
+
sslCert,
|
|
68
|
+
sslKey,
|
|
69
|
+
disableTelemetry,
|
|
70
|
+
assets,
|
|
71
|
+
initialPath,
|
|
72
|
+
open,
|
|
73
|
+
debugWebpack,
|
|
74
|
+
loglevel,
|
|
75
|
+
webpackStatsJson,
|
|
76
|
+
statsJson,
|
|
77
|
+
previewUrl,
|
|
78
|
+
sourceMap = !1,
|
|
79
|
+
preserveSymlinks = !1,
|
|
80
|
+
experimentalZoneless = !!(VERSION.major && Number(VERSION.major) >= 21)
|
|
81
|
+
} = options, packageJsonPath = up2({ cwd: __dirname }), standaloneOptions = {
|
|
82
|
+
packageJson: packageJsonPath != null ? JSON.parse(readFileSync(packageJsonPath, "utf8")) : null,
|
|
83
|
+
ci,
|
|
84
|
+
configDir,
|
|
85
|
+
...docs ? { docs } : {},
|
|
86
|
+
host,
|
|
87
|
+
https,
|
|
88
|
+
port,
|
|
89
|
+
quiet,
|
|
90
|
+
enableProdMode,
|
|
91
|
+
smokeTest,
|
|
92
|
+
sslCa,
|
|
93
|
+
sslCert,
|
|
94
|
+
sslKey,
|
|
95
|
+
disableTelemetry,
|
|
96
|
+
angularBrowserTarget: browserTarget,
|
|
97
|
+
angularBuilderContext: context,
|
|
98
|
+
angularBuilderOptions: {
|
|
99
|
+
...stylePreprocessorOptions ? { stylePreprocessorOptions } : {},
|
|
100
|
+
...styles ? { styles } : {},
|
|
101
|
+
...assets ? { assets } : {},
|
|
102
|
+
preserveSymlinks,
|
|
103
|
+
sourceMap,
|
|
104
|
+
experimentalZoneless
|
|
105
|
+
},
|
|
106
|
+
tsConfig,
|
|
107
|
+
initialPath,
|
|
108
|
+
open,
|
|
109
|
+
debugWebpack,
|
|
110
|
+
webpackStatsJson,
|
|
111
|
+
statsJson,
|
|
112
|
+
loglevel,
|
|
113
|
+
previewUrl
|
|
114
|
+
}, startedPort = await runInstance(standaloneOptions);
|
|
115
|
+
observer.next({ success: !0, info: { port: startedPort } });
|
|
116
|
+
} catch (error) {
|
|
117
|
+
observer.error(error);
|
|
118
|
+
}
|
|
119
|
+
})();
|
|
120
|
+
}), start_storybook_default = createBuilder(commandBuilder);
|
|
114
121
|
async function setup(options, context) {
|
|
115
122
|
let browserOptions, browserTarget;
|
|
116
123
|
return options.browserTarget && (browserTarget = targetFromTargetString(options.browserTarget), browserOptions = await context.validateOptions(
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { WebRenderer, Parameters as Parameters$1, Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, StorybookConfig as StorybookConfig$2, Options, CompatibleString, TypescriptOptions as TypescriptOptions$1 } from 'storybook/internal/types';
|
|
2
2
|
export { ArgTypes, Args, Parameters, StrictArgs } from 'storybook/internal/types';
|
|
3
3
|
import * as AngularCore from '@angular/core';
|
|
4
|
-
import { Provider, Type } from '@angular/core';
|
|
5
|
-
import { ApplicationConfig } from '@angular/platform-browser';
|
|
4
|
+
import { Provider, ApplicationConfig, Type } from '@angular/core';
|
|
6
5
|
import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
|
|
7
6
|
|
|
8
7
|
interface NgModuleMetadata {
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.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_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.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_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.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-33PG3UHH.js";
|
|
15
15
|
|
|
16
16
|
// src/server/framework-preset-angular-cli.ts
|
|
17
17
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_6kb3qb32xf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_6kb3qb32xf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_6kb3qb32xf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_6kb3qb32xf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_6kb3qb32xf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_6kb3qb32xf.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": "10.1.0-beta.
|
|
3
|
+
"version": "10.1.0-beta.6",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"prep": "jiti ../../../scripts/build/build-package.ts"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@storybook/builder-webpack5": "10.1.0-beta.
|
|
64
|
+
"@storybook/builder-webpack5": "10.1.0-beta.6",
|
|
65
65
|
"@storybook/global": "^5.0.0",
|
|
66
66
|
"telejson": "8.0.0",
|
|
67
67
|
"ts-dedent": "^2.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"@angular/forms": "^19.1.1",
|
|
82
82
|
"@angular/platform-browser": "^19.1.1",
|
|
83
83
|
"@angular/platform-browser-dynamic": "^19.1.1",
|
|
84
|
-
"@storybook/core-webpack": "10.1.0-beta.
|
|
84
|
+
"@storybook/core-webpack": "10.1.0-beta.6",
|
|
85
85
|
"@types/node": "^22.0.0",
|
|
86
86
|
"empathic": "^2.0.0",
|
|
87
87
|
"rimraf": "^6.0.1",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"@angular/platform-browser": ">=18.0.0 < 22.0.0",
|
|
103
103
|
"@angular/platform-browser-dynamic": ">=18.0.0 < 22.0.0",
|
|
104
104
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
105
|
-
"storybook": "^10.1.0-beta.
|
|
105
|
+
"storybook": "^10.1.0-beta.6",
|
|
106
106
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
107
107
|
"zone.js": ">=0.14.0"
|
|
108
108
|
},
|