@storybook/angular 10.0.0-rc.4 → 10.0.1
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-5MNTKSCL.js → chunk-JG4E5KI4.js} +6 -6
- package/dist/_node-chunks/{chunk-34HADQ7U.js → chunk-L7OKPSLE.js} +7 -7
- package/dist/_node-chunks/{chunk-TUQATD2S.js → chunk-ZM43BDWP.js} +8 -8
- package/dist/builders/build-storybook/index.js +9 -9
- package/dist/builders/start-storybook/index.js +9 -9
- package/dist/node/index.js +7 -7
- package/dist/preset.js +13 -9
- package/dist/server/framework-preset-angular-cli.js +8 -8
- package/dist/server/framework-preset-angular-ivy.js +7 -7
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.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_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.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
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JG4E5KI4.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/empathic/find.mjs
|
|
17
17
|
import { join as join2 } from "node:path";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.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-L7OKPSLE.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JG4E5KI4.js";
|
|
18
18
|
|
|
19
19
|
// ../../node_modules/empathic/package.mjs
|
|
20
20
|
function up2(options) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
runCompodoc,
|
|
16
16
|
up as up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-ZM43BDWP.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-L7OKPSLE.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-JG4E5KI4.js";
|
|
24
24
|
|
|
25
25
|
// src/builders/build-storybook/index.ts
|
|
26
26
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
runCompodoc,
|
|
16
16
|
up as up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-ZM43BDWP.js";
|
|
18
18
|
import {
|
|
19
19
|
up
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-L7OKPSLE.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
|
-
} from "../../_node-chunks/chunk-
|
|
23
|
+
} from "../../_node-chunks/chunk-JG4E5KI4.js";
|
|
24
24
|
|
|
25
25
|
// src/builders/start-storybook/index.ts
|
|
26
26
|
import { readFileSync } from "node:fs";
|
package/dist/node/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.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
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-JG4E5KI4.js";
|
|
15
15
|
|
|
16
16
|
// src/node/index.ts
|
|
17
17
|
function defineMain(config) {
|
package/dist/preset.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.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
|
__name
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-JG4E5KI4.js";
|
|
15
15
|
|
|
16
16
|
// src/preset.ts
|
|
17
17
|
import { fileURLToPath } from "node:url";
|
|
@@ -23,13 +23,17 @@ var previewAnnotations = /* @__PURE__ */ __name(async (entries = [], options) =>
|
|
|
23
23
|
const config = fileURLToPath(import.meta.resolve("@storybook/angular/client/config"));
|
|
24
24
|
const annotations = [...entries, config];
|
|
25
25
|
if (options.enableProdMode) {
|
|
26
|
-
const previewProdPath =
|
|
26
|
+
const previewProdPath = fileURLToPath(
|
|
27
|
+
import.meta.resolve("@storybook/angular/client/preview-prod")
|
|
28
|
+
);
|
|
27
29
|
annotations.unshift(previewProdPath);
|
|
28
30
|
}
|
|
29
31
|
const docsConfig = await options.presets.apply("docs", {}, options);
|
|
30
32
|
const docsEnabled = Object.keys(docsConfig).length > 0;
|
|
31
33
|
if (docsEnabled) {
|
|
32
|
-
const docsConfigPath =
|
|
34
|
+
const docsConfigPath = fileURLToPath(
|
|
35
|
+
import.meta.resolve("@storybook/angular/client/docs/config")
|
|
36
|
+
);
|
|
33
37
|
annotations.push(docsConfigPath);
|
|
34
38
|
}
|
|
35
39
|
return annotations;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.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-L7OKPSLE.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
|
-
} from "../_node-chunks/chunk-
|
|
17
|
+
} from "../_node-chunks/chunk-JG4E5KI4.js";
|
|
18
18
|
|
|
19
19
|
// src/server/framework-preset-angular-cli.ts
|
|
20
20
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rqtokcujeed from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rqtokcujeed from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rqtokcujeed from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rqtokcujeed.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rqtokcujeed.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rqtokcujeed.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
|
__name
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-JG4E5KI4.js";
|
|
15
15
|
|
|
16
16
|
// src/server/framework-preset-angular-ivy.ts
|
|
17
17
|
import { join } from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.1",
|
|
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.0.
|
|
64
|
+
"@storybook/builder-webpack5": "10.0.1",
|
|
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.0.
|
|
84
|
+
"@storybook/core-webpack": "10.0.1",
|
|
85
85
|
"@types/node": "^22.0.0",
|
|
86
86
|
"empathic": "^2.0.0",
|
|
87
87
|
"rimraf": "^6.0.1",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@angular/platform-browser": ">=18.0.0 < 21.0.0",
|
|
104
104
|
"@angular/platform-browser-dynamic": ">=18.0.0 < 21.0.0",
|
|
105
105
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
106
|
-
"storybook": "^10.0.
|
|
106
|
+
"storybook": "^10.0.1",
|
|
107
107
|
"typescript": "^4.9.0 || ^5.0.0",
|
|
108
108
|
"zone.js": ">=0.14.0"
|
|
109
109
|
},
|