@storybook/angular 10.3.0-beta.2 → 10.3.0
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/{angular-cli-webpack-BMLJI2K6.js → angular-cli-webpack-UARNQQMA.js} +6 -6
- package/dist/_node-chunks/{chunk-RMROILNK.js → chunk-4G3TJANJ.js} +6 -6
- package/dist/_node-chunks/{chunk-I7FDUWWQ.js → chunk-D6WEZ764.js} +7 -7
- package/dist/builders/build-storybook/index.js +8 -8
- package/dist/builders/start-storybook/index.js +8 -8
- package/dist/index.d.ts +2 -2
- package/dist/node/index.js +6 -6
- package/dist/preset.js +6 -6
- package/dist/server/framework-preset-angular-cli.js +8 -8
- package/dist/server/framework-preset-angular-ivy.js +6 -6
- package/package.json +4 -4
package/dist/_node-chunks/{angular-cli-webpack-BMLJI2K6.js → angular-cli-webpack-UARNQQMA.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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-4G3TJANJ.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_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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-D6WEZ764.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-4G3TJANJ.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_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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-D6WEZ764.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-4G3TJANJ.js";
|
|
21
21
|
|
|
22
22
|
// src/builders/start-storybook/index.ts
|
|
23
23
|
import { readFileSync } from "node:fs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { WebRenderer, Parameters as Parameters$1,
|
|
1
|
+
import { WebRenderer, Parameters as Parameters$1, StrictArgs, DecoratorFunction, LoaderFunction, Args, ComponentAnnotations, ProjectAnnotations, StoryContext as StoryContext$1, AnnotatedStoryFn, StoryAnnotations, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Renderer, ArgsStoryFn, 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
4
|
import { Provider, ApplicationConfig, Type } from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { Meta as Meta$1, Story, AddonTypes, Preview as Preview$1, PreviewAddon, InferTypes } from 'storybook/internal/csf';
|
|
6
6
|
import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
|
|
7
7
|
|
|
8
8
|
interface NgModuleMetadata {
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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-4G3TJANJ.js";
|
|
15
15
|
|
|
16
16
|
// src/server/framework-preset-angular-cli.ts
|
|
17
17
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -89,7 +89,7 @@ var relative = function(from, to) {
|
|
|
89
89
|
async function webpackFinal(baseConfig, options) {
|
|
90
90
|
if (!resolvePackageDir("@angular-devkit/build-angular"))
|
|
91
91
|
return logger.info('Using base config because "@angular-devkit/build-angular" is not installed'), baseConfig;
|
|
92
|
-
let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-
|
|
92
|
+
let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-UARNQQMA.js");
|
|
93
93
|
checkForLegacyBuildOptions(options);
|
|
94
94
|
let builderContext = getBuilderContext(options), builderOptions = await getBuilderOptions(options, builderContext), webpackConfig = await getCustomWebpackConfig(baseConfig, {
|
|
95
95
|
builderOptions: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_py5yc5z95nn from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_py5yc5z95nn from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_py5yc5z95nn from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_py5yc5z95nn.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_py5yc5z95nn.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_py5yc5z95nn.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.3.0
|
|
3
|
+
"version": "10.3.0",
|
|
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": "10.3.0
|
|
62
|
+
"@storybook/builder-webpack5": "10.3.0",
|
|
63
63
|
"@storybook/global": "^5.0.0",
|
|
64
64
|
"telejson": "8.0.0",
|
|
65
65
|
"ts-dedent": "^2.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@angular/forms": "^19.1.1",
|
|
80
80
|
"@angular/platform-browser": "^19.1.1",
|
|
81
81
|
"@angular/platform-browser-dynamic": "^19.1.1",
|
|
82
|
-
"@storybook/core-webpack": "10.3.0
|
|
82
|
+
"@storybook/core-webpack": "10.3.0",
|
|
83
83
|
"@types/node": "^22.19.1",
|
|
84
84
|
"empathic": "^2.0.0",
|
|
85
85
|
"rimraf": "^6.0.1",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@angular/platform-browser": ">=18.0.0 < 22.0.0",
|
|
101
101
|
"@angular/platform-browser-dynamic": ">=18.0.0 < 22.0.0",
|
|
102
102
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
103
|
-
"storybook": "^10.3.0
|
|
103
|
+
"storybook": "^10.3.0",
|
|
104
104
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
105
105
|
"zone.js": ">=0.14.0"
|
|
106
106
|
},
|