@storybook/angular 10.3.0-alpha.1 → 10.3.0-alpha.10
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 +1 -1
- package/dist/_node-chunks/{chunk-YNCYGTE3.js → chunk-3J7GS5JT.js} +6 -6
- package/dist/_node-chunks/{chunk-2OJOBGBV.js → chunk-4WAUCFXZ.js} +7 -7
- package/dist/builders/build-storybook/index.js +15 -9
- package/dist/builders/start-storybook/index.js +15 -9
- 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 +6 -4
- package/start-schema.json +1 -1
package/build-schema.json
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"loglevel": {
|
|
33
33
|
"type": "string",
|
|
34
|
-
"description": "Controls level of logging during build. Can be one of: [
|
|
34
|
+
"description": "Controls level of logging during build. Can be one of: [trace, debug, info (default), warn, error, silent].",
|
|
35
35
|
"pattern": "(trace|debug|info|warn|error|silent)"
|
|
36
36
|
},
|
|
37
37
|
"logfile": {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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-3J7GS5JT.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_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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-4WAUCFXZ.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-3J7GS5JT.js";
|
|
21
21
|
|
|
22
22
|
// src/builders/build-storybook/index.ts
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
@@ -27,6 +27,7 @@ import { addToGlobalContext } from "storybook/internal/telemetry";
|
|
|
27
27
|
import { logger, logTracker } from "storybook/internal/node-logger";
|
|
28
28
|
import { createBuilder, targetFromTargetString } from "@angular-devkit/architect";
|
|
29
29
|
import { VERSION } from "@angular/core";
|
|
30
|
+
import { Channel } from "storybook/internal/channels";
|
|
30
31
|
addToGlobalContext("cliVersion", versions.storybook);
|
|
31
32
|
var commandBuilder = async (options, context) => {
|
|
32
33
|
options.loglevel && logger.setLogLevel(options.loglevel), options.logfile && logTracker.enableLogWriting(), logger.intro("Building Storybook");
|
|
@@ -109,7 +110,12 @@ async function runInstance(options) {
|
|
|
109
110
|
"build",
|
|
110
111
|
{
|
|
111
112
|
cliOptions: options,
|
|
112
|
-
presetOptions: {
|
|
113
|
+
presetOptions: {
|
|
114
|
+
...options,
|
|
115
|
+
corePresets: [],
|
|
116
|
+
overridePresets: [],
|
|
117
|
+
channel: new Channel({})
|
|
118
|
+
},
|
|
113
119
|
printError: printErrorDetails
|
|
114
120
|
},
|
|
115
121
|
async () => await buildStaticStandalone(options)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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-4WAUCFXZ.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-3J7GS5JT.js";
|
|
21
21
|
|
|
22
22
|
// src/builders/start-storybook/index.ts
|
|
23
23
|
import { readFileSync } from "node:fs";
|
|
@@ -28,6 +28,7 @@ import { logger, logTracker } from "storybook/internal/node-logger";
|
|
|
28
28
|
import { createBuilder, targetFromTargetString } from "@angular-devkit/architect";
|
|
29
29
|
import { Observable } from "rxjs";
|
|
30
30
|
import { VERSION } from "@angular/core";
|
|
31
|
+
import { Channel } from "storybook/internal/channels";
|
|
31
32
|
addToGlobalContext("cliVersion", versions.storybook);
|
|
32
33
|
var commandBuilder = (options, context) => new Observable((observer) => {
|
|
33
34
|
(async () => {
|
|
@@ -142,7 +143,12 @@ async function runInstance(options) {
|
|
|
142
143
|
"dev",
|
|
143
144
|
{
|
|
144
145
|
cliOptions: options,
|
|
145
|
-
presetOptions: {
|
|
146
|
+
presetOptions: {
|
|
147
|
+
...options,
|
|
148
|
+
corePresets: [],
|
|
149
|
+
overridePresets: [],
|
|
150
|
+
channel: new Channel({})
|
|
151
|
+
},
|
|
146
152
|
printError: printErrorDetails
|
|
147
153
|
},
|
|
148
154
|
() => buildDevStandalone(options)
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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-3J7GS5JT.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_a848nhmxa7q from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_a848nhmxa7q from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_a848nhmxa7q from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_a848nhmxa7q.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_a848nhmxa7q.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_a848nhmxa7q.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-alpha.
|
|
3
|
+
"version": "10.3.0-alpha.10",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
29
|
"types": "./dist/index.d.ts",
|
|
30
|
+
"code": "./src/index.ts",
|
|
30
31
|
"default": "./dist/index.js"
|
|
31
32
|
},
|
|
32
33
|
"./builders/build-storybook": "./dist/builders/build-storybook/index.js",
|
|
@@ -37,6 +38,7 @@
|
|
|
37
38
|
"./client/preview-prod": "./dist/client/preview-prod.js",
|
|
38
39
|
"./node": {
|
|
39
40
|
"types": "./dist/node/index.d.ts",
|
|
41
|
+
"code": "./src/node/index.ts",
|
|
40
42
|
"default": "./dist/node/index.js"
|
|
41
43
|
},
|
|
42
44
|
"./package.json": "./package.json",
|
|
@@ -57,7 +59,7 @@
|
|
|
57
59
|
"!src/**/*"
|
|
58
60
|
],
|
|
59
61
|
"dependencies": {
|
|
60
|
-
"@storybook/builder-webpack5": "10.3.0-alpha.
|
|
62
|
+
"@storybook/builder-webpack5": "10.3.0-alpha.10",
|
|
61
63
|
"@storybook/global": "^5.0.0",
|
|
62
64
|
"telejson": "8.0.0",
|
|
63
65
|
"ts-dedent": "^2.0.0",
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
"@angular/forms": "^19.1.1",
|
|
78
80
|
"@angular/platform-browser": "^19.1.1",
|
|
79
81
|
"@angular/platform-browser-dynamic": "^19.1.1",
|
|
80
|
-
"@storybook/core-webpack": "10.3.0-alpha.
|
|
82
|
+
"@storybook/core-webpack": "10.3.0-alpha.10",
|
|
81
83
|
"@types/node": "^22.19.1",
|
|
82
84
|
"empathic": "^2.0.0",
|
|
83
85
|
"rimraf": "^6.0.1",
|
|
@@ -98,7 +100,7 @@
|
|
|
98
100
|
"@angular/platform-browser": ">=18.0.0 < 22.0.0",
|
|
99
101
|
"@angular/platform-browser-dynamic": ">=18.0.0 < 22.0.0",
|
|
100
102
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
101
|
-
"storybook": "^10.3.0-alpha.
|
|
103
|
+
"storybook": "^10.3.0-alpha.10",
|
|
102
104
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
103
105
|
"zone.js": ">=0.14.0"
|
|
104
106
|
},
|
package/start-schema.json
CHANGED
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
},
|
|
148
148
|
"loglevel": {
|
|
149
149
|
"type": "string",
|
|
150
|
-
"description": "Controls level of logging during build. Can be one of: [
|
|
150
|
+
"description": "Controls level of logging during build. Can be one of: [trace, debug, info (default), warn, error, silent].",
|
|
151
151
|
"pattern": "(trace|debug|info|warn|error|silent)"
|
|
152
152
|
},
|
|
153
153
|
"logfile": {
|