@storybook/angular-vite 10.6.0 → 11.0.0-alpha.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/_browser-chunks/{chunk-THQDNKQS.js → chunk-PSE2PYUH.js} +3 -3
- package/dist/_browser-chunks/{chunk-VP3W5GY3.js → chunk-RPSYDPZX.js} +1 -1
- package/dist/_browser-chunks/{chunk-AL7GEPYM.js → chunk-SD6SKAYF.js} +1 -1
- package/dist/_browser-chunks/{chunk-UJ3I56EP.js → chunk-YQ53UO6D.js} +15 -19
- package/dist/_node-chunks/{chunk-75LLSEYJ.js → chunk-FV5UMD2C.js} +7 -7
- package/dist/_node-chunks/{chunk-NGQGV5EM.js → chunk-GLAMVNEY.js} +6 -6
- package/dist/_node-chunks/{chunk-ZJ4DIG7Y.js → chunk-RUIEHCV7.js} +6 -6
- package/dist/_node-chunks/{story-docs-template-analysis-3EOTTAMV.js → story-docs-template-analysis-GS3U7KVZ.js} +6 -6
- package/dist/builders/build-storybook/index.js +8 -8
- package/dist/builders/start-storybook/index.js +8 -8
- 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 +11 -11
- package/dist/index.js +4 -4
- package/dist/node/index.js +6 -6
- package/dist/node/vitest.js +6 -6
- package/dist/preset.js +9 -10
- package/package.json +5 -7
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SD6SKAYF.js";
|
|
4
4
|
import {
|
|
5
5
|
config_exports as config_exports2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RPSYDPZX.js";
|
|
7
7
|
import {
|
|
8
8
|
computesTemplateFromComponent,
|
|
9
9
|
formatPropInTemplate,
|
|
10
10
|
isComponent,
|
|
11
11
|
render_exports
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YQ53UO6D.js";
|
|
13
13
|
|
|
14
14
|
// src/client/portable-stories.ts
|
|
15
15
|
import {
|
|
@@ -248,12 +248,6 @@ import {
|
|
|
248
248
|
\u0275ReflectionCapabilities as ReflectionCapabilities3
|
|
249
249
|
} from "@angular/core";
|
|
250
250
|
import { BrowserModule } from "@angular/platform-browser";
|
|
251
|
-
import {
|
|
252
|
-
BrowserAnimationsModule,
|
|
253
|
-
NoopAnimationsModule,
|
|
254
|
-
provideAnimations,
|
|
255
|
-
provideNoopAnimations
|
|
256
|
-
} from "@angular/platform-browser/animations";
|
|
257
251
|
import { dedent } from "ts-dedent";
|
|
258
252
|
|
|
259
253
|
// src/client/renderer/utils/NgModulesAnalyzer.ts
|
|
@@ -326,25 +320,27 @@ var reflectionCapabilities3 = new ReflectionCapabilities3(), REMOVED_MODULES = n
|
|
|
326
320
|
}
|
|
327
321
|
}
|
|
328
322
|
};
|
|
329
|
-
_PropertyExtractor.analyzeRestricted = (ngModule) =>
|
|
330
|
-
|
|
323
|
+
_PropertyExtractor.analyzeRestricted = (ngModule) => {
|
|
324
|
+
if (ngModule === BrowserModule)
|
|
325
|
+
return console.warn(
|
|
326
|
+
dedent`
|
|
331
327
|
Storybook Warning:
|
|
332
328
|
"BrowserModule" is not needed when using bootstrapApplication — its providers are included automatically.
|
|
333
329
|
Please remove "BrowserModule" from moduleMetadata.imports to remove this warning.
|
|
334
330
|
`
|
|
335
|
-
), [!0]
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
Use the 'applicationConfig' decorator from '@storybook/angular-vite' and add 'provideAnimations()' to its providers instead.
|
|
340
|
-
`
|
|
341
|
-
), [!0, provideAnimations()]) : ngModule === NoopAnimationsModule ? (console.warn(
|
|
342
|
-
dedent`
|
|
331
|
+
), [!0];
|
|
332
|
+
let ngModuleName = ngModule?.name;
|
|
333
|
+
return ngModuleName === "BrowserAnimationsModule" || ngModuleName === "NoopAnimationsModule" ? (console.warn(
|
|
334
|
+
dedent`
|
|
343
335
|
Storybook Warning:
|
|
344
|
-
"
|
|
345
|
-
|
|
336
|
+
"${ngModuleName}" was found and removed from moduleMetadata.imports, but @storybook/angular-vite no longer registers its providers automatically.
|
|
337
|
+
This module is part of Angular's legacy animations API, which is deprecated since Angular 20.2 and intended for removal in v23.
|
|
338
|
+
To migrate:
|
|
339
|
+
- Preferred: Use native CSS transitions or the 'animate.enter'/'animate.leave' bindings (Angular 20.2+).
|
|
340
|
+
- Or: Keep using the legacy animations API yourself by adding '${ngModuleName === "BrowserAnimationsModule" ? "provideAnimations" : "provideNoopAnimations"}()' to the 'providers' array of the 'applicationConfig' decorator from '@storybook/angular-vite'.
|
|
346
341
|
`
|
|
347
|
-
), [!0
|
|
342
|
+
), [!0]) : [!1];
|
|
343
|
+
}, _PropertyExtractor.analyzeDecorators = (component) => {
|
|
348
344
|
let decorators = reflectionCapabilities3.annotations(component), isComponent2 = decorators.some((d) => _PropertyExtractor.isDecoratorInstanceOf(d, "Component")), isDirective = decorators.some((d) => _PropertyExtractor.isDecoratorInstanceOf(d, "Directive")), isPipe = decorators.some((d) => _PropertyExtractor.isDecoratorInstanceOf(d, "Pipe")), isDeclarable = isComponent2 || isDirective || isPipe, isStandalone = (isComponent2 || isDirective) && [...decorators].reverse().find(
|
|
349
345
|
(d) => _PropertyExtractor.isDecoratorInstanceOf(d, "Component") || _PropertyExtractor.isDecoratorInstanceOf(d, "Directive")
|
|
350
346
|
)?.standalone;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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-RUIEHCV7.js";
|
|
15
15
|
|
|
16
16
|
// ../../../node_modules/empathic/package.mjs
|
|
17
17
|
function up2(options) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
errorSummary,
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
up
|
|
16
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
+
} from "../../_node-chunks/chunk-FV5UMD2C.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveTsconfig
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-RUIEHCV7.js";
|
|
20
20
|
|
|
21
21
|
// src/builders/build-storybook/index.ts
|
|
22
22
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
errorSummary,
|
|
14
14
|
printErrorDetails,
|
|
15
15
|
up
|
|
16
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
+
} from "../../_node-chunks/chunk-FV5UMD2C.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveTsconfig
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-RUIEHCV7.js";
|
|
20
20
|
|
|
21
21
|
// src/builders/start-storybook/index.ts
|
|
22
22
|
import { readFileSync } from "node:fs";
|
package/dist/client/config.js
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
argTypesEnhancers,
|
|
3
3
|
decorateStory,
|
|
4
4
|
parameters
|
|
5
|
-
} from "../_browser-chunks/chunk-
|
|
5
|
+
} from "../_browser-chunks/chunk-SD6SKAYF.js";
|
|
6
6
|
import {
|
|
7
7
|
render,
|
|
8
8
|
renderToCanvas
|
|
9
|
-
} from "../_browser-chunks/chunk-
|
|
9
|
+
} from "../_browser-chunks/chunk-YQ53UO6D.js";
|
|
10
10
|
export {
|
|
11
11
|
decorateStory as applyDecorators,
|
|
12
12
|
argTypesEnhancers,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
decorators,
|
|
3
3
|
parameters
|
|
4
|
-
} from "../../_browser-chunks/chunk-
|
|
5
|
-
import "../../_browser-chunks/chunk-
|
|
4
|
+
} from "../../_browser-chunks/chunk-RPSYDPZX.js";
|
|
5
|
+
import "../../_browser-chunks/chunk-YQ53UO6D.js";
|
|
6
6
|
export {
|
|
7
7
|
decorators,
|
|
8
8
|
parameters
|
package/dist/client/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "../_browser-chunks/chunk-
|
|
9
|
-
import "../_browser-chunks/chunk-
|
|
10
|
-
import "../_browser-chunks/chunk-
|
|
11
|
-
import "../_browser-chunks/chunk-
|
|
8
|
+
} from "../_browser-chunks/chunk-PSE2PYUH.js";
|
|
9
|
+
import "../_browser-chunks/chunk-SD6SKAYF.js";
|
|
10
|
+
import "../_browser-chunks/chunk-RPSYDPZX.js";
|
|
11
|
+
import "../_browser-chunks/chunk-YQ53UO6D.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
|
14
14
|
applicationConfig,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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
|
resolveStoryComponent
|
|
14
|
-
} from "../_node-chunks/chunk-
|
|
14
|
+
} from "../_node-chunks/chunk-GLAMVNEY.js";
|
|
15
15
|
|
|
16
16
|
// src/docgen/docgen-worker.ts
|
|
17
17
|
import { STORY_FILE_TEST_REGEXP, getStoryImportPathFromEntry as getStoryImportPathFromEntry2 } from "storybook/internal/common";
|
|
18
18
|
import { logger as logger4 } from "storybook/internal/node-logger";
|
|
19
19
|
|
|
20
20
|
// ../../lib/angular-cm/dist/index.js
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
21
|
+
import CJS_COMPAT_NODE_URL_kao67mycvae from "node:url";
|
|
22
|
+
import CJS_COMPAT_NODE_PATH_kao67mycvae from "node:path";
|
|
23
|
+
import CJS_COMPAT_NODE_MODULE_kao67mycvae from "node:module";
|
|
24
24
|
import {
|
|
25
25
|
ComponentMetaManager,
|
|
26
26
|
parseTsconfigCommandLine
|
|
@@ -35,7 +35,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
35
35
|
import * as path from "node:path";
|
|
36
36
|
import { logger as logger2 } from "storybook/internal/node-logger";
|
|
37
37
|
import { logger } from "storybook/internal/node-logger";
|
|
38
|
-
var __filename =
|
|
38
|
+
var __filename = CJS_COMPAT_NODE_URL_kao67mycvae.fileURLToPath(import.meta.url), __dirname = CJS_COMPAT_NODE_PATH_kao67mycvae.dirname(__filename), require2 = CJS_COMPAT_NODE_MODULE_kao67mycvae.createRequire(import.meta.url), NOOP_LOGGER = {
|
|
39
39
|
warn: () => {
|
|
40
40
|
},
|
|
41
41
|
debug: () => {
|
package/dist/index.js
CHANGED
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
componentWrapperDecorator,
|
|
6
6
|
moduleMetadata,
|
|
7
7
|
setProjectAnnotations
|
|
8
|
-
} from "./_browser-chunks/chunk-
|
|
9
|
-
import "./_browser-chunks/chunk-
|
|
10
|
-
import "./_browser-chunks/chunk-
|
|
11
|
-
import "./_browser-chunks/chunk-
|
|
8
|
+
} from "./_browser-chunks/chunk-PSE2PYUH.js";
|
|
9
|
+
import "./_browser-chunks/chunk-SD6SKAYF.js";
|
|
10
|
+
import "./_browser-chunks/chunk-RPSYDPZX.js";
|
|
11
|
+
import "./_browser-chunks/chunk-YQ53UO6D.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
|
14
14
|
applicationConfig,
|
package/dist/node/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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,20 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_nfjvqzfgo2j from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_nfjvqzfgo2j from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_nfjvqzfgo2j.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_nfjvqzfgo2j.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_nfjvqzfgo2j.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
|
findTsconfigUp
|
|
14
|
-
} from "./_node-chunks/chunk-
|
|
14
|
+
} from "./_node-chunks/chunk-RUIEHCV7.js";
|
|
15
15
|
import {
|
|
16
16
|
parseStoryFile
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-GLAMVNEY.js";
|
|
18
18
|
|
|
19
19
|
// src/preset.ts
|
|
20
20
|
import { findConfigFile } from "storybook/internal/common";
|
|
@@ -938,7 +938,7 @@ var buildStoryDocsPayload = async (input, context) => {
|
|
|
938
938
|
fields: fields2
|
|
939
939
|
});
|
|
940
940
|
if (userMarkup?.kind === "literal") {
|
|
941
|
-
let { analyzeStoryTemplate } = await import("./_node-chunks/story-docs-template-analysis-
|
|
941
|
+
let { analyzeStoryTemplate } = await import("./_node-chunks/story-docs-template-analysis-GS3U7KVZ.js"), analysis = analyzeStoryTemplate(userMarkup.markup, userMarkup.expansions), referencedNames = new Set(analysis.kind === "resolved" ? analysis.referencedNames : []), boundOutputs = analysis.kind === "resolved" ? snippetMeta.outputs.filter((name) => analysis.boundOutputs.includes(name)) : [], hostArgs = referencedArgFields(
|
|
942
942
|
referencedNames,
|
|
943
943
|
userMarkup.representedArgs,
|
|
944
944
|
shape,
|
|
@@ -1125,7 +1125,6 @@ var viteFinal = async (config, options) => {
|
|
|
1125
1125
|
"@storybook/angular-vite",
|
|
1126
1126
|
"@angular/compiler",
|
|
1127
1127
|
"@angular/platform-browser",
|
|
1128
|
-
"@angular/platform-browser/animations",
|
|
1129
1128
|
"@angular/common/http",
|
|
1130
1129
|
"tslib",
|
|
1131
1130
|
...zoneless ? [] : ["zone.js"]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular-vite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0-alpha.1",
|
|
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": "
|
|
66
|
+
"@storybook/builder-vite": "11.0.0-alpha.1",
|
|
67
67
|
"@storybook/global": "^5.0.0",
|
|
68
68
|
"telejson": "8.0.0",
|
|
69
69
|
"ts-dedent": "^2.0.0",
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"@angular-devkit/architect": "^0.2102.12",
|
|
75
75
|
"@angular-devkit/build-angular": "^21.2.12",
|
|
76
76
|
"@angular-devkit/core": "^21.2.12",
|
|
77
|
-
"@angular/animations": "^21.2.14",
|
|
78
77
|
"@angular/common": "^21.2.14",
|
|
79
78
|
"@angular/compiler": "^21.2.14",
|
|
80
79
|
"@angular/compiler-cli": "^21.2.14",
|
|
@@ -83,8 +82,8 @@
|
|
|
83
82
|
"@angular/platform-browser": "^21.2.14",
|
|
84
83
|
"@angular/platform-browser-dynamic": "^21.2.14",
|
|
85
84
|
"@babel/types": "^7.28.5",
|
|
86
|
-
"@storybook/angular-cm": "
|
|
87
|
-
"@storybook/angular-compodoc": "
|
|
85
|
+
"@storybook/angular-cm": "11.0.0-alpha.1",
|
|
86
|
+
"@storybook/angular-compodoc": "11.0.0-alpha.1",
|
|
88
87
|
"@types/node": "^22.19.1",
|
|
89
88
|
"empathic": "^2.0.0",
|
|
90
89
|
"memfs": "^4.11.1",
|
|
@@ -96,7 +95,6 @@
|
|
|
96
95
|
"@analogjs/vite-plugin-angular": ">=2.0.0",
|
|
97
96
|
"@angular-devkit/architect": ">=0.2100.0 < 0.2300.0",
|
|
98
97
|
"@angular-devkit/core": ">=21.0.0 < 23.0.0",
|
|
99
|
-
"@angular/animations": ">=21.0.0 < 23.0.0",
|
|
100
98
|
"@angular/build": ">=21.0.0 < 23.0.0",
|
|
101
99
|
"@angular/cli": ">=21.0.0 < 23.0.0",
|
|
102
100
|
"@angular/common": ">=21.0.0 < 23.0.0",
|
|
@@ -108,7 +106,7 @@
|
|
|
108
106
|
"rxjs": "^7.4.0",
|
|
109
107
|
"sass": "^1.0.0",
|
|
110
108
|
"sass-embedded": "^1.0.0",
|
|
111
|
-
"storybook": "^
|
|
109
|
+
"storybook": "^11.0.0-alpha.1",
|
|
112
110
|
"typescript": ">= 5.9.x",
|
|
113
111
|
"vite": ">=8.0.0",
|
|
114
112
|
"zone.js": ">=0.14.0"
|