@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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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 CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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-EKP67CFJ.js";
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 CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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-KLQJB5OG.js";
17
+ } from "../../_node-chunks/chunk-FQMWIAQY.js";
18
18
  import {
19
19
  up
20
- } from "../../_node-chunks/chunk-EKP67CFJ.js";
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 CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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-KLQJB5OG.js";
17
+ } from "../../_node-chunks/chunk-FQMWIAQY.js";
18
18
  import {
19
19
  up
20
- } from "../../_node-chunks/chunk-EKP67CFJ.js";
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 = async (options, context) => {
32
- logger.intro("Starting Storybook");
33
- let { tsConfig } = await setup(options, context), docTSConfig = up("tsconfig.doc.json", {
34
- cwd: options.configDir,
35
- last: getProjectRoot()
36
- });
37
- options.compodoc && await runCompodoc(
38
- {
39
- compodocArgs: [...options.compodocArgs, ...options.quiet ? ["--silent"] : []],
40
- tsconfig: docTSConfig ?? tsConfig
41
- },
42
- context
43
- ), getEnvConfig(options, {
44
- port: "SBCONFIG_PORT",
45
- host: "SBCONFIG_HOSTNAME",
46
- staticDir: "SBCONFIG_STATIC_DIR",
47
- configDir: "SBCONFIG_CONFIG_DIR",
48
- ci: "CI"
49
- }), options.port = parseInt(`${options.port}`, 10);
50
- let {
51
- browserTarget,
52
- stylePreprocessorOptions,
53
- styles,
54
- ci,
55
- configDir,
56
- docs,
57
- host,
58
- https,
59
- port,
60
- quiet,
61
- enableProdMode = !1,
62
- smokeTest,
63
- sslCa,
64
- sslCert,
65
- sslKey,
66
- disableTelemetry,
67
- assets,
68
- initialPath,
69
- open,
70
- debugWebpack,
71
- loglevel,
72
- webpackStatsJson,
73
- statsJson,
74
- previewUrl,
75
- sourceMap = !1,
76
- preserveSymlinks = !1,
77
- experimentalZoneless = !!(VERSION.major && Number(VERSION.major) >= 21)
78
- } = options, packageJsonPath = up2({ cwd: __dirname }), standaloneOptions = {
79
- packageJson: packageJsonPath != null ? JSON.parse(readFileSync(packageJsonPath, "utf8")) : null,
80
- ci,
81
- configDir,
82
- ...docs ? { docs } : {},
83
- host,
84
- https,
85
- port,
86
- quiet,
87
- enableProdMode,
88
- smokeTest,
89
- sslCa,
90
- sslCert,
91
- sslKey,
92
- disableTelemetry,
93
- angularBrowserTarget: browserTarget,
94
- angularBuilderContext: context,
95
- angularBuilderOptions: {
96
- ...stylePreprocessorOptions ? { stylePreprocessorOptions } : {},
97
- ...styles ? { styles } : {},
98
- ...assets ? { assets } : {},
99
- preserveSymlinks,
100
- sourceMap,
101
- experimentalZoneless
102
- },
103
- tsConfig,
104
- initialPath,
105
- open,
106
- debugWebpack,
107
- webpackStatsJson,
108
- statsJson,
109
- loglevel,
110
- previewUrl
111
- };
112
- return { success: !0, info: { port: await runInstance(standaloneOptions) } };
113
- }, start_storybook_default = createBuilder(commandBuilder);
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 {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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 CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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 CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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-EKP67CFJ.js";
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 CJS_COMPAT_NODE_URL_s3jq2xa5woe from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_s3jq2xa5woe from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_s3jq2xa5woe from "node:module";
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 = CJS_COMPAT_NODE_URL_s3jq2xa5woe.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_s3jq2xa5woe.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_s3jq2xa5woe.createRequire(import.meta.url);
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.5",
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.5",
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.5",
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.5",
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
  },