@storybook/angular-vite 10.5.1 → 10.5.2
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 +7 -0
- package/dist/_node-chunks/{chunk-AT45D52T.js → chunk-OR7ODAD3.js} +6 -6
- package/dist/_node-chunks/{run-compodoc-J7HEUXG5.js → run-compodoc-52MGVI5B.js} +6 -6
- package/dist/builders/build-storybook/index.js +7 -7
- package/dist/builders/start-storybook/index.js +7 -7
- package/dist/node/index.js +6 -6
- package/dist/node/vitest.js +6 -6
- package/dist/preset.js +8 -8
- package/package.json +3 -3
- package/start-schema.json +7 -0
package/build-schema.json
CHANGED
|
@@ -97,6 +97,13 @@
|
|
|
97
97
|
"items": {
|
|
98
98
|
"type": "string"
|
|
99
99
|
}
|
|
100
|
+
},
|
|
101
|
+
"loadPaths": {
|
|
102
|
+
"description": "Alias for `includePaths` using the dart-sass/Vite spelling. Paths will be resolved to workspace root.",
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
100
107
|
}
|
|
101
108
|
},
|
|
102
109
|
"additionalProperties": false
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_w1511yii5hs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w1511yii5hs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w1511yii5hs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w1511yii5hs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w1511yii5hs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w1511yii5hs.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_w1511yii5hs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w1511yii5hs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w1511yii5hs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w1511yii5hs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w1511yii5hs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w1511yii5hs.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_w1511yii5hs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w1511yii5hs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w1511yii5hs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w1511yii5hs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w1511yii5hs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w1511yii5hs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
up,
|
|
16
16
|
up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-OR7ODAD3.js";
|
|
18
18
|
|
|
19
19
|
// src/builders/build-storybook/index.ts
|
|
20
20
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_w1511yii5hs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w1511yii5hs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w1511yii5hs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w1511yii5hs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w1511yii5hs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w1511yii5hs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
up,
|
|
16
16
|
up2
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-OR7ODAD3.js";
|
|
18
18
|
|
|
19
19
|
// src/builders/start-storybook/index.ts
|
|
20
20
|
import { readFileSync } from "node:fs";
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_w1511yii5hs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w1511yii5hs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w1511yii5hs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w1511yii5hs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w1511yii5hs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w1511yii5hs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
package/dist/node/vitest.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_w1511yii5hs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w1511yii5hs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w1511yii5hs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w1511yii5hs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w1511yii5hs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w1511yii5hs.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_w1511yii5hs from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_w1511yii5hs from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_w1511yii5hs from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_w1511yii5hs.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_w1511yii5hs.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_w1511yii5hs.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -64,7 +64,7 @@ var viteFinal = async (config, options) => {
|
|
|
64
64
|
if (framework.options?.compodoc !== !1) {
|
|
65
65
|
let { existsSync } = await import("node:fs"), path = await import("node:path"), workspaceRoot = options?.angularBuilderContext?.workspaceRoot ?? config?.root ?? process.cwd(), documentationJsonPath = path.resolve(workspaceRoot, "documentation.json");
|
|
66
66
|
if (!existsSync(documentationJsonPath)) {
|
|
67
|
-
let { runCompodoc } = await import("./_node-chunks/run-compodoc-
|
|
67
|
+
let { runCompodoc } = await import("./_node-chunks/run-compodoc-52MGVI5B.js"), tsconfig = framework.options?.tsconfig ?? options?.tsConfig ?? options?.angularBuilderOptions?.tsConfig ?? path.resolve(workspaceRoot, "tsconfig.json"), compodocArgs = framework.options?.compodocArgs ?? ["-e", "json", "-d", "."];
|
|
68
68
|
try {
|
|
69
69
|
await runCompodoc({ compodocArgs, tsconfig, workspaceRoot });
|
|
70
70
|
} catch (err) {
|
|
@@ -139,7 +139,7 @@ function angularOptionsPlugin(options, { normalizePath, zoneless }) {
|
|
|
139
139
|
name: "storybook-angular-vite-options-plugin",
|
|
140
140
|
config(userConfig) {
|
|
141
141
|
resolvedConfig = userConfig, resolvedPreviewPath = findConfigFile("preview", options.configDir) ?? void 0;
|
|
142
|
-
let
|
|
142
|
+
let stylePreprocessorOptions = options?.angularBuilderOptions?.stylePreprocessorOptions ?? {}, loadPaths = stylePreprocessorOptions.includePaths ?? stylePreprocessorOptions.loadPaths, sassOptions = stylePreprocessorOptions.sass;
|
|
143
143
|
if (Array.isArray(loadPaths)) {
|
|
144
144
|
let workspaceRoot = options.angularBuilderContext?.workspaceRoot ?? userConfig?.root ?? process.cwd();
|
|
145
145
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular-vite",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.2",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"!src/**/*"
|
|
63
63
|
],
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@storybook/builder-vite": "10.5.
|
|
65
|
+
"@storybook/builder-vite": "10.5.2",
|
|
66
66
|
"@storybook/global": "^5.0.0",
|
|
67
67
|
"telejson": "8.0.0",
|
|
68
68
|
"ts-dedent": "^2.0.0",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@angular/core": ">=21.0.0 < 23.0.0",
|
|
101
101
|
"@angular/platform-browser": ">=21.0.0 < 23.0.0",
|
|
102
102
|
"rxjs": "^7.4.0",
|
|
103
|
-
"storybook": "^10.5.
|
|
103
|
+
"storybook": "^10.5.2",
|
|
104
104
|
"typescript": ">= 5.9.x",
|
|
105
105
|
"vite": ">=8.0.0",
|
|
106
106
|
"zone.js": ">=0.16.0"
|
package/start-schema.json
CHANGED
|
@@ -110,6 +110,13 @@
|
|
|
110
110
|
"items": {
|
|
111
111
|
"type": "string"
|
|
112
112
|
}
|
|
113
|
+
},
|
|
114
|
+
"loadPaths": {
|
|
115
|
+
"description": "Alias for `includePaths` using the dart-sass/Vite spelling. Paths will be resolved to workspace root.",
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
113
120
|
}
|
|
114
121
|
},
|
|
115
122
|
"additionalProperties": false
|