@storybook/angular-vite 11.0.0-beta.4 → 11.0.0-beta.5
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/_browser-chunks/{chunk-Z2ATXI4R.js → chunk-2JE7SKTX.js} +6 -6
- package/dist/_browser-chunks/{chunk-D6MATLGC.js → chunk-56QYE53C.js} +1 -1
- package/dist/builders/build-storybook/index.js +6 -3
- package/dist/builders/start-storybook/index.js +6 -3
- package/dist/client/docs/config.js +1 -1
- package/dist/client/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/preset.js +3 -1
- package/package.json +6 -6
|
@@ -15,7 +15,7 @@ __export(config_exports, {
|
|
|
15
15
|
decorators: () => decorators,
|
|
16
16
|
parameters: () => parameters
|
|
17
17
|
});
|
|
18
|
-
import { SourceType as SourceType2 } from "storybook/internal/docs-tools";
|
|
18
|
+
import { SourceType as SourceType2, getSourceSnippetRuntime } from "storybook/internal/docs-tools";
|
|
19
19
|
|
|
20
20
|
// src/client/docs/print-hole.ts
|
|
21
21
|
import {
|
|
@@ -65,16 +65,16 @@ var skipSourceRender = (context) => {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// src/client/docs/config.ts
|
|
68
|
-
var
|
|
68
|
+
var snippetRuntime = getSourceSnippetRuntime(), parameters = {
|
|
69
69
|
docs: {
|
|
70
70
|
source: {
|
|
71
71
|
type: SourceType2.DYNAMIC,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
...
|
|
72
|
+
// The server snippet is the TypeScript host component that renders the story.
|
|
73
|
+
language: snippetRuntime === "server" ? "ts" : "html",
|
|
74
|
+
...snippetRuntime === "server" ? { printHole } : {}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
}, decorators =
|
|
77
|
+
}, decorators = snippetRuntime === "preview" ? [sourceDecorator] : [];
|
|
78
78
|
|
|
79
79
|
export {
|
|
80
80
|
parameters,
|
|
@@ -68,9 +68,12 @@ var commandBuilder = async (options, context) => {
|
|
|
68
68
|
tsConfig,
|
|
69
69
|
statsJson: normalizeStatsJson(statsJson)
|
|
70
70
|
};
|
|
71
|
-
if (process.env.STORYBOOK_ANGULAR_BUILDER_OPTIONS_JSON = JSON.stringify(
|
|
72
|
-
standaloneOptions.angularBuilderOptions
|
|
73
|
-
|
|
71
|
+
if (process.env.STORYBOOK_ANGULAR_BUILDER_OPTIONS_JSON = JSON.stringify({
|
|
72
|
+
...standaloneOptions.angularBuilderOptions,
|
|
73
|
+
// Style and load paths in the target options are workspace-root-relative; the addon-vitest
|
|
74
|
+
// child runs with a different Vite root, so it needs the workspace root to resolve them.
|
|
75
|
+
workspaceRoot: context.workspaceRoot
|
|
76
|
+
}), await runInstance({ ...standaloneOptions, mode: "static" }), logTracker.shouldWriteLogsToFile) {
|
|
74
77
|
let logFile = await logTracker.writeToFile(options.logfile);
|
|
75
78
|
logger.info(`Debug logs are written to: ${logFile}`);
|
|
76
79
|
}
|
|
@@ -93,9 +93,12 @@ var commandBuilder = (options, context) => new Observable((observer) => {
|
|
|
93
93
|
statsJson: normalizeStatsJson(statsJson),
|
|
94
94
|
loglevel
|
|
95
95
|
};
|
|
96
|
-
process.env.STORYBOOK_ANGULAR_BUILDER_OPTIONS_JSON = JSON.stringify(
|
|
97
|
-
standaloneOptions.angularBuilderOptions
|
|
98
|
-
|
|
96
|
+
process.env.STORYBOOK_ANGULAR_BUILDER_OPTIONS_JSON = JSON.stringify({
|
|
97
|
+
...standaloneOptions.angularBuilderOptions,
|
|
98
|
+
// Style and load paths in the target options are workspace-root-relative; the addon-vitest
|
|
99
|
+
// child runs with a different Vite root, so it needs the workspace root to resolve them.
|
|
100
|
+
workspaceRoot: context.workspaceRoot
|
|
101
|
+
});
|
|
99
102
|
let startedPort = await runInstance(standaloneOptions);
|
|
100
103
|
observer.next({ success: !0, info: { port: startedPort } });
|
|
101
104
|
} catch (error) {
|
package/dist/client/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "../_browser-chunks/chunk-
|
|
8
|
+
} from "../_browser-chunks/chunk-56QYE53C.js";
|
|
9
9
|
import "../_browser-chunks/chunk-GVR3YWT3.js";
|
|
10
|
-
import "../_browser-chunks/chunk-
|
|
10
|
+
import "../_browser-chunks/chunk-2JE7SKTX.js";
|
|
11
11
|
import "../_browser-chunks/chunk-UU6I6OE3.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "./_browser-chunks/chunk-
|
|
8
|
+
} from "./_browser-chunks/chunk-56QYE53C.js";
|
|
9
9
|
import "./_browser-chunks/chunk-GVR3YWT3.js";
|
|
10
|
-
import "./_browser-chunks/chunk-
|
|
10
|
+
import "./_browser-chunks/chunk-2JE7SKTX.js";
|
|
11
11
|
import "./_browser-chunks/chunk-UU6I6OE3.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
package/dist/preset.js
CHANGED
|
@@ -1402,7 +1402,9 @@ function angularOptionsPlugin(options, { normalizePath, zoneless }) {
|
|
|
1402
1402
|
return {
|
|
1403
1403
|
name: "storybook-angular-vite-options-plugin",
|
|
1404
1404
|
config(userConfig) {
|
|
1405
|
-
resolvedPreviewPath = findConfigFile("preview", options.configDir) ?? void 0
|
|
1405
|
+
resolvedPreviewPath = findConfigFile("preview", options.configDir) ?? void 0;
|
|
1406
|
+
let bridgedWorkspaceRoot = options.angularBuilderOptions?.workspaceRoot;
|
|
1407
|
+
workspaceRoot = options.angularBuilderContext?.workspaceRoot ?? (typeof bridgedWorkspaceRoot == "string" ? bridgedWorkspaceRoot : void 0) ?? userConfig?.root ?? process.cwd();
|
|
1406
1408
|
let stylePreprocessorOptions = options?.angularBuilderOptions?.stylePreprocessorOptions ?? {}, loadPaths = stylePreprocessorOptions.includePaths ?? stylePreprocessorOptions.loadPaths, sassOptions = stylePreprocessorOptions.sass;
|
|
1407
1409
|
if (!(!Array.isArray(loadPaths) && !sassOptions))
|
|
1408
1410
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular-vite",
|
|
3
|
-
"version": "11.0.0-beta.
|
|
3
|
+
"version": "11.0.0-beta.5",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"!src/**/*"
|
|
65
65
|
],
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@storybook/builder-vite": "11.0.0-beta.
|
|
67
|
+
"@storybook/builder-vite": "11.0.0-beta.5",
|
|
68
68
|
"@storybook/global": "^5.0.0",
|
|
69
69
|
"telejson": "8.0.0",
|
|
70
70
|
"ts-dedent": "^2.2.0",
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"@angular/forms": "^21.2.14",
|
|
83
83
|
"@angular/platform-browser": "^21.2.14",
|
|
84
84
|
"@angular/platform-browser-dynamic": "^21.2.14",
|
|
85
|
-
"@storybook/angular-cm": "11.0.0-beta.
|
|
86
|
-
"@storybook/angular-compodoc": "11.0.0-beta.
|
|
87
|
-
"@storybook/component-meta-typescript": "11.0.0-beta.
|
|
85
|
+
"@storybook/angular-cm": "11.0.0-beta.5",
|
|
86
|
+
"@storybook/angular-compodoc": "11.0.0-beta.5",
|
|
87
|
+
"@storybook/component-meta-typescript": "11.0.0-beta.5",
|
|
88
88
|
"@types/node": "^22.19.1",
|
|
89
89
|
"empathic": "^2.0.0",
|
|
90
90
|
"memfs": "^4.11.1",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"rxjs": "^7.4.0",
|
|
108
108
|
"sass": "^1.0.0",
|
|
109
109
|
"sass-embedded": "^1.0.0",
|
|
110
|
-
"storybook": "^11.0.0-beta.
|
|
110
|
+
"storybook": "^11.0.0-beta.5",
|
|
111
111
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
112
112
|
"vite": ">=8.0.0",
|
|
113
113
|
"zone.js": ">=0.14.0"
|