@storybook/angular 10.1.0-alpha.9 → 10.1.0-beta.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.
@@ -1,17 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_4jamwxc2gs3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4jamwxc2gs3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4jamwxc2gs3 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_4jamwxc2gs3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4jamwxc2gs3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4jamwxc2gs3.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- var __defProp = Object.defineProperty;
13
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
14
-
15
- export {
16
- __name
17
- };
@@ -1,93 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_4jamwxc2gs3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4jamwxc2gs3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4jamwxc2gs3 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_4jamwxc2gs3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4jamwxc2gs3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4jamwxc2gs3.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- up
14
- } from "./chunk-T6SLYNLE.js";
15
- import {
16
- __name
17
- } from "./chunk-PBNB2IPX.js";
18
-
19
- // ../../node_modules/empathic/package.mjs
20
- function up2(options) {
21
- return up("package.json", options);
22
- }
23
- __name(up2, "up");
24
-
25
- // src/builders/utils/error-handler.ts
26
- import { logger, instance as npmLog } from "storybook/internal/node-logger";
27
- import { dedent } from "ts-dedent";
28
- var printErrorDetails = /* @__PURE__ */ __name((error) => {
29
- npmLog.heading = "";
30
- if (error instanceof Error) {
31
- if (error.error) {
32
- logger.error(error.error);
33
- } else if (error.stats && error.stats.compilation.errors) {
34
- error.stats.compilation.errors.forEach((e) => logger.plain(e));
35
- } else {
36
- logger.error(error);
37
- }
38
- } else if (error.compilation?.errors) {
39
- error.compilation.errors.forEach((e) => logger.plain(e));
40
- }
41
- logger.line();
42
- }, "printErrorDetails");
43
- var errorSummary = /* @__PURE__ */ __name((error) => {
44
- return error.close ? dedent`
45
- FATAL broken build!, will close the process,
46
- Fix the error below and restart storybook.
47
- ` : dedent`
48
- Broken build, fix the error above.
49
- You may need to refresh the browser.
50
- `;
51
- }, "errorSummary");
52
-
53
- // src/builders/utils/run-compodoc.ts
54
- import { isAbsolute, relative } from "node:path";
55
- import { JsPackageManagerFactory } from "storybook/internal/common";
56
- import { Observable } from "rxjs";
57
- var hasTsConfigArg = /* @__PURE__ */ __name((args) => args.indexOf("-p") !== -1, "hasTsConfigArg");
58
- var hasOutputArg = /* @__PURE__ */ __name((args) => args.indexOf("-d") !== -1 || args.indexOf("--output") !== -1, "hasOutputArg");
59
- var toRelativePath = /* @__PURE__ */ __name((pathToTsConfig) => {
60
- return isAbsolute(pathToTsConfig) ? relative(".", pathToTsConfig) : pathToTsConfig;
61
- }, "toRelativePath");
62
- var runCompodoc = /* @__PURE__ */ __name(({ compodocArgs, tsconfig }, context) => {
63
- return new Observable((observer) => {
64
- const tsConfigPath = toRelativePath(tsconfig);
65
- const finalCompodocArgs = [
66
- ...hasTsConfigArg(compodocArgs) ? [] : ["-p", tsConfigPath],
67
- ...hasOutputArg(compodocArgs) ? [] : ["-d", `${context.workspaceRoot || "."}`],
68
- ...compodocArgs
69
- ];
70
- const packageManager = JsPackageManagerFactory.getPackageManager();
71
- try {
72
- const stdout = packageManager.runPackageCommandSync(
73
- "compodoc",
74
- finalCompodocArgs,
75
- context.workspaceRoot,
76
- "inherit"
77
- );
78
- context.logger.info(stdout);
79
- observer.next();
80
- observer.complete();
81
- } catch (e) {
82
- context.logger.error(e);
83
- observer.error();
84
- }
85
- });
86
- }, "runCompodoc");
87
-
88
- export {
89
- up2 as up,
90
- printErrorDetails,
91
- errorSummary,
92
- runCompodoc
93
- };
@@ -1,58 +0,0 @@
1
- import CJS_COMPAT_NODE_URL_4jamwxc2gs3 from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_4jamwxc2gs3 from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_4jamwxc2gs3 from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_4jamwxc2gs3.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_4jamwxc2gs3.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_4jamwxc2gs3.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
- import {
13
- __name
14
- } from "./chunk-PBNB2IPX.js";
15
-
16
- // ../../node_modules/empathic/find.mjs
17
- import { join as join2 } from "node:path";
18
- import { existsSync, statSync } from "node:fs";
19
-
20
- // ../../node_modules/empathic/walk.mjs
21
- import { dirname } from "node:path";
22
-
23
- // ../../node_modules/empathic/resolve.mjs
24
- import { isAbsolute, join, resolve } from "node:path";
25
- function absolute(input, root) {
26
- return isAbsolute(input) ? input : resolve(root || ".", input);
27
- }
28
- __name(absolute, "absolute");
29
-
30
- // ../../node_modules/empathic/walk.mjs
31
- function up(base, options) {
32
- let { last, cwd } = options || {};
33
- let tmp = absolute(base, cwd);
34
- let root = absolute(last || "/", cwd);
35
- let prev, arr = [];
36
- while (prev !== root) {
37
- arr.push(tmp);
38
- tmp = dirname(prev = tmp);
39
- if (tmp === prev) break;
40
- }
41
- return arr;
42
- }
43
- __name(up, "up");
44
-
45
- // ../../node_modules/empathic/find.mjs
46
- function up2(name, options) {
47
- let dir, tmp;
48
- let start = options && options.cwd || "";
49
- for (dir of up(start, options)) {
50
- tmp = join2(dir, name);
51
- if (existsSync(tmp)) return tmp;
52
- }
53
- }
54
- __name(up2, "up");
55
-
56
- export {
57
- up2 as up
58
- };