@storybook/angular-vite 10.6.0-alpha.6 → 10.6.0-alpha.8
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 +33 -5
- package/dist/_browser-chunks/{chunk-CHMLOECK.js → chunk-AL7GEPYM.js} +15 -26
- package/dist/_browser-chunks/{chunk-HBLYOJ22.js → chunk-THQDNKQS.js} +3 -3
- package/dist/_browser-chunks/{chunk-ECGMCGUZ.js → chunk-UJ3I56EP.js} +6 -6
- package/dist/_browser-chunks/{chunk-BUNW7ROM.js → chunk-VP3W5GY3.js} +4 -4
- package/dist/_node-chunks/{chunk-ORVVXDOZ.js → chunk-5GTDRCMW.js} +18 -8
- package/dist/_node-chunks/{chunk-6P3TQP4W.js → chunk-DQYSVBAE.js} +7 -7
- package/dist/_node-chunks/chunk-FLU3HTGB.js +42 -0
- package/dist/_node-chunks/story-docs-template-analysis-LGFOFAHO.js +163 -0
- package/dist/builders/build-storybook/index.js +15 -10
- package/dist/builders/start-storybook/index.js +15 -10
- package/dist/chunk-Bv2XDHY-.d.ts +64 -0
- package/dist/client/config.js +2 -2
- package/dist/client/docs/config.js +2 -2
- package/dist/client/index.js +4 -4
- package/dist/docgen/docgen-worker.js +784 -286
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +6 -6
- package/dist/node/vitest.js +6 -6
- package/dist/preset.js +770 -197
- package/package.json +6 -6
- package/start-schema.json +33 -5
- package/dist/_node-chunks/chunk-5LXEVSHB.js +0 -35
- package/dist/chunk-D8_SR6hI.d.ts +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular-vite",
|
|
3
|
-
"version": "10.6.0-alpha.
|
|
3
|
+
"version": "10.6.0-alpha.8",
|
|
4
4
|
"description": "Storybook for Angular: Develop, document, and test UI components in isolation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"!src/**/*"
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@storybook/builder-vite": "10.6.0-alpha.
|
|
66
|
+
"@storybook/builder-vite": "10.6.0-alpha.8",
|
|
67
67
|
"@storybook/global": "^5.0.0",
|
|
68
68
|
"telejson": "8.0.0",
|
|
69
69
|
"ts-dedent": "^2.0.0",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"@angular/platform-browser": "^21.2.14",
|
|
84
84
|
"@angular/platform-browser-dynamic": "^21.2.14",
|
|
85
85
|
"@babel/types": "^7.28.5",
|
|
86
|
-
"@storybook/angular-cm": "10.6.0-alpha.
|
|
87
|
-
"@storybook/angular-compodoc": "10.6.0-alpha.
|
|
86
|
+
"@storybook/angular-cm": "10.6.0-alpha.8",
|
|
87
|
+
"@storybook/angular-compodoc": "10.6.0-alpha.8",
|
|
88
88
|
"@types/node": "^22.19.1",
|
|
89
89
|
"empathic": "^2.0.0",
|
|
90
90
|
"memfs": "^4.11.1",
|
|
@@ -105,10 +105,10 @@
|
|
|
105
105
|
"@angular/core": ">=21.0.0 < 23.0.0",
|
|
106
106
|
"@angular/platform-browser": ">=21.0.0 < 23.0.0",
|
|
107
107
|
"rxjs": "^7.4.0",
|
|
108
|
-
"storybook": "^10.6.0-alpha.
|
|
108
|
+
"storybook": "^10.6.0-alpha.8",
|
|
109
109
|
"typescript": ">= 5.9.x",
|
|
110
110
|
"vite": ">=8.0.0",
|
|
111
|
-
"zone.js": ">=0.
|
|
111
|
+
"zone.js": ">=0.14.0"
|
|
112
112
|
},
|
|
113
113
|
"peerDependenciesMeta": {
|
|
114
114
|
"@angular/cli": {
|
package/start-schema.json
CHANGED
|
@@ -82,16 +82,16 @@
|
|
|
82
82
|
},
|
|
83
83
|
"compodoc": {
|
|
84
84
|
"type": "boolean",
|
|
85
|
-
"description": "
|
|
86
|
-
"
|
|
85
|
+
"description": "Deprecated. Compodoc no longer runs.",
|
|
86
|
+
"x-deprecated": "Compodoc no longer runs. @storybook/angular-vite extracts Angular metadata in-process, so this option does nothing. Remove it from angular.json."
|
|
87
87
|
},
|
|
88
88
|
"compodocArgs": {
|
|
89
89
|
"type": "array",
|
|
90
|
-
"description": "
|
|
91
|
-
"default": ["-e", "json"],
|
|
90
|
+
"description": "Deprecated. Compodoc no longer runs.",
|
|
92
91
|
"items": {
|
|
93
92
|
"type": "string"
|
|
94
|
-
}
|
|
93
|
+
},
|
|
94
|
+
"x-deprecated": "Compodoc no longer runs. @storybook/angular-vite extracts Angular metadata in-process, so this option does nothing. Remove it from angular.json."
|
|
95
95
|
},
|
|
96
96
|
"styles": {
|
|
97
97
|
"type": "array",
|
|
@@ -117,6 +117,34 @@
|
|
|
117
117
|
"items": {
|
|
118
118
|
"type": "string"
|
|
119
119
|
}
|
|
120
|
+
},
|
|
121
|
+
"sass": {
|
|
122
|
+
"description": "Options to pass to the sass preprocessor.",
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"fatalDeprecations": {
|
|
126
|
+
"description": "A set of deprecations to treat as fatal. If a deprecation warning of any provided type is encountered during compilation, the compiler will error instead. If a Version is provided, then all deprecations that were active in that compiler version will be treated as fatal.",
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"silenceDeprecations": {
|
|
133
|
+
"description": "A set of active deprecations to ignore. If a deprecation warning of any provided type is encountered during compilation, the compiler will ignore it instead.",
|
|
134
|
+
"type": "array",
|
|
135
|
+
"items": {
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"futureDeprecations": {
|
|
140
|
+
"description": "A set of future deprecations to opt into early. Future deprecations passed here will be treated as active by the compiler, emitting warnings as necessary.",
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": {
|
|
143
|
+
"type": "string"
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"additionalProperties": false
|
|
120
148
|
}
|
|
121
149
|
},
|
|
122
150
|
"additionalProperties": false
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import CJS_COMPAT_NODE_URL_ze1vib595n from 'node:url';
|
|
2
|
-
import CJS_COMPAT_NODE_PATH_ze1vib595n from 'node:path';
|
|
3
|
-
import CJS_COMPAT_NODE_MODULE_ze1vib595n from "node:module";
|
|
4
|
-
|
|
5
|
-
var __filename = CJS_COMPAT_NODE_URL_ze1vib595n.fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = CJS_COMPAT_NODE_PATH_ze1vib595n.dirname(__filename);
|
|
7
|
-
var require = CJS_COMPAT_NODE_MODULE_ze1vib595n.createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ------------------------------------------------------------
|
|
10
|
-
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
-
// ------------------------------------------------------------
|
|
12
|
-
|
|
13
|
-
// src/docgen/resolve-component.ts
|
|
14
|
-
import { createMetaComponentResolver } from "storybook/internal/common";
|
|
15
|
-
import { loadCsf } from "storybook/internal/csf-tools";
|
|
16
|
-
import { readFileSync } from "node:fs";
|
|
17
|
-
var resolveMetaComponent = createMetaComponentResolver();
|
|
18
|
-
function parseStoryFile(storyFilePath, title) {
|
|
19
|
-
try {
|
|
20
|
-
let source = readFileSync(storyFilePath, "utf8").replace(/\r\n/g, `
|
|
21
|
-
`);
|
|
22
|
-
return { source, csf: loadCsf(source, { makeTitle: () => title }).parse() };
|
|
23
|
-
} catch {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function resolveStoryComponent(storyFilePath, title = "Docgen") {
|
|
28
|
-
let parsed = parseStoryFile(storyFilePath, title);
|
|
29
|
-
return parsed ? resolveMetaComponent(parsed.csf, storyFilePath) : { reason: "no-meta-component" };
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export {
|
|
33
|
-
parseStoryFile,
|
|
34
|
-
resolveStoryComponent
|
|
35
|
-
};
|
package/dist/chunk-D8_SR6hI.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { CompatibleString, StorybookConfig } from "storybook/internal/types";
|
|
2
|
-
import { BuilderOptions, StorybookConfigVite } from "@storybook/builder-vite";
|
|
3
|
-
|
|
4
|
-
//#region code/frameworks/angular-vite/.dts-emit/code/frameworks/angular-vite/src/types.d.ts
|
|
5
|
-
type FrameworkName = CompatibleString<'@storybook/angular-vite'>;
|
|
6
|
-
type BuilderName = CompatibleString<'@storybook/builder-vite'>;
|
|
7
|
-
type FrameworkOptions = {
|
|
8
|
-
builder?: BuilderOptions;
|
|
9
|
-
jit?: boolean;
|
|
10
|
-
liveReload?: boolean;
|
|
11
|
-
inlineStylesExtension?: string;
|
|
12
|
-
tsconfig?: string;
|
|
13
|
-
compodoc?: boolean;
|
|
14
|
-
compodocArgs?: string[];
|
|
15
|
-
};
|
|
16
|
-
type StorybookConfigFramework = {
|
|
17
|
-
framework: FrameworkName | {
|
|
18
|
-
name: FrameworkName;
|
|
19
|
-
options: FrameworkOptions;
|
|
20
|
-
};
|
|
21
|
-
core?: StorybookConfig['core'] & {
|
|
22
|
-
builder?: BuilderName | {
|
|
23
|
-
name: BuilderName;
|
|
24
|
-
options: BuilderOptions;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
/** The interface for Storybook configuration in `main.ts` files. */
|
|
29
|
-
type StorybookConfig$1 = Omit<StorybookConfig, keyof StorybookConfigVite | keyof StorybookConfigFramework> & StorybookConfigVite & StorybookConfigFramework;
|
|
30
|
-
//#endregion
|
|
31
|
-
export { StorybookConfig$1 as n, FrameworkOptions as t };
|