@storybook/angular-vite 11.0.0-alpha.8 → 11.0.0-alpha.9
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-RX6XLQUB.js → chunk-GCT6OYDT.js} +1 -1
- package/dist/_browser-chunks/{chunk-BFQMI74D.js → chunk-IEOSIOYC.js} +1 -1
- package/dist/_browser-chunks/{chunk-WUACJKA6.js → chunk-RMTRNQGG.js} +1 -1
- package/dist/_browser-chunks/{chunk-7BGWKSXV.js → chunk-VFDWJHES.js} +3 -3
- package/dist/_node-chunks/{chunk-FIWIIC4E.js → chunk-3NOOT4P4.js} +7 -7
- package/dist/_node-chunks/{chunk-ELK5QDJM.js → chunk-HHXKBK6J.js} +6 -6
- package/dist/_node-chunks/{chunk-E3INC42D.js → chunk-IIBIIU2W.js} +6 -6
- package/dist/_node-chunks/{story-docs-template-analysis-RYLJZDK3.js → story-docs-template-analysis-R5ORZ5HO.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 +19 -13
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/node/index.js +6 -6
- package/dist/node/vitest.js +6 -6
- package/dist/preset.js +17 -23
- package/package.json +5 -5
|
@@ -334,7 +334,7 @@ _PropertyExtractor.analyzeRestricted = (ngModule) => {
|
|
|
334
334
|
Please remove "BrowserModule" from moduleMetadata.imports to remove this warning.
|
|
335
335
|
`
|
|
336
336
|
), [!0];
|
|
337
|
-
let ngModuleName = ngModule?.name;
|
|
337
|
+
let ngModuleName = ngModule?.name?.replace(/^_+/, "").replace(/\$\d+$/, "");
|
|
338
338
|
return ngModuleName === "BrowserAnimationsModule" || ngModuleName === "NoopAnimationsModule" ? (console.warn(
|
|
339
339
|
dedent`
|
|
340
340
|
Storybook Warning:
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config_exports
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GCT6OYDT.js";
|
|
4
4
|
import {
|
|
5
5
|
config_exports as config_exports2
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RMTRNQGG.js";
|
|
7
7
|
import {
|
|
8
8
|
computesTemplateFromComponent,
|
|
9
9
|
formatPropInTemplate,
|
|
10
10
|
isComponent,
|
|
11
11
|
render_exports
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IEOSIOYC.js";
|
|
13
13
|
|
|
14
14
|
// src/client/portable-stories.ts
|
|
15
15
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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-HHXKBK6J.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_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
printErrorDetails,
|
|
17
17
|
requireBuilderTarget,
|
|
18
18
|
up
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-3NOOT4P4.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveTsconfig
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-HHXKBK6J.js";
|
|
23
23
|
|
|
24
24
|
// src/builders/build-storybook/index.ts
|
|
25
25
|
import { readFileSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
printErrorDetails,
|
|
17
17
|
requireBuilderTarget,
|
|
18
18
|
up
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-3NOOT4P4.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveTsconfig
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-HHXKBK6J.js";
|
|
23
23
|
|
|
24
24
|
// src/builders/start-storybook/index.ts
|
|
25
25
|
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-GCT6OYDT.js";
|
|
6
6
|
import {
|
|
7
7
|
render,
|
|
8
8
|
renderToCanvas
|
|
9
|
-
} from "../_browser-chunks/chunk-
|
|
9
|
+
} from "../_browser-chunks/chunk-IEOSIOYC.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-RMTRNQGG.js";
|
|
5
|
+
import "../../_browser-chunks/chunk-IEOSIOYC.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-VFDWJHES.js";
|
|
9
|
+
import "../_browser-chunks/chunk-GCT6OYDT.js";
|
|
10
|
+
import "../_browser-chunks/chunk-RMTRNQGG.js";
|
|
11
|
+
import "../_browser-chunks/chunk-IEOSIOYC.js";
|
|
12
12
|
export {
|
|
13
13
|
__definePreview,
|
|
14
14
|
applicationConfig,
|
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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-IIBIIU2W.js";
|
|
15
15
|
|
|
16
16
|
// src/docgen/docgen-worker.ts
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
getStoryImportPathFromEntry as getStoryImportPathFromEntry2,
|
|
19
|
+
loadTypeScriptCompilerApi,
|
|
20
|
+
STORY_FILE_TEST_REGEXP
|
|
21
|
+
} from "storybook/internal/common";
|
|
18
22
|
import { logger as logger4 } from "storybook/internal/node-logger";
|
|
19
23
|
|
|
20
24
|
// ../../lib/angular-cm/dist/index.js
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
25
|
+
import CJS_COMPAT_NODE_URL_dx4x88ucjc8 from "node:url";
|
|
26
|
+
import CJS_COMPAT_NODE_PATH_dx4x88ucjc8 from "node:path";
|
|
27
|
+
import CJS_COMPAT_NODE_MODULE_dx4x88ucjc8 from "node:module";
|
|
24
28
|
import { isInNodeModules } from "storybook/internal/common";
|
|
25
29
|
import {
|
|
26
30
|
ComponentMetaManager,
|
|
@@ -36,7 +40,7 @@ import { logger as logger3 } from "storybook/internal/node-logger";
|
|
|
36
40
|
import * as path from "node:path";
|
|
37
41
|
import { logger as logger2 } from "storybook/internal/node-logger";
|
|
38
42
|
import { logger } from "storybook/internal/node-logger";
|
|
39
|
-
var __filename =
|
|
43
|
+
var __filename = CJS_COMPAT_NODE_URL_dx4x88ucjc8.fileURLToPath(import.meta.url), __dirname = CJS_COMPAT_NODE_PATH_dx4x88ucjc8.dirname(__filename), require2 = CJS_COMPAT_NODE_MODULE_dx4x88ucjc8.createRequire(import.meta.url), resolvedSymbol = (ctx, node) => {
|
|
40
44
|
let symbol = ctx.checker.getSymbolAtLocation(node);
|
|
41
45
|
return symbol && symbol.flags & ctx.ts.SymbolFlags.Alias ? ctx.checker.getAliasedSymbol(symbol) : symbol;
|
|
42
46
|
}, resolvedNameSymbol = (ctx, name) => {
|
|
@@ -1874,7 +1878,9 @@ var workerLogger = {
|
|
|
1874
1878
|
debug: (message) => logger4.debug(`[storybook-angular-vite] ${message}`)
|
|
1875
1879
|
}, createManager = async () => {
|
|
1876
1880
|
try {
|
|
1877
|
-
let
|
|
1881
|
+
let manager = new AngularComponentMetaManager(
|
|
1882
|
+
await loadTypeScriptCompilerApi(() => import("typescript"))
|
|
1883
|
+
);
|
|
1878
1884
|
return manager.startWatching(), manager;
|
|
1879
1885
|
} catch (error) {
|
|
1880
1886
|
logger4.warn(
|
package/dist/index.d.ts
CHANGED
|
@@ -46,19 +46,19 @@ type Parameters = Parameters$2 & {
|
|
|
46
46
|
/**
|
|
47
47
|
* Metadata to configure the stories for a component.
|
|
48
48
|
*
|
|
49
|
-
* @see [
|
|
49
|
+
* @see [Meta](https://storybook.js.org/docs/writing-stories/csf#meta)
|
|
50
50
|
*/
|
|
51
51
|
type Meta<TArgs = Args$1> = ComponentAnnotations<AngularRenderer, TransformComponentType<TArgs>>;
|
|
52
52
|
/**
|
|
53
53
|
* Story function that represents a CSFv2 component example.
|
|
54
54
|
*
|
|
55
|
-
* @see [
|
|
55
|
+
* @see [Stories](https://storybook.js.org/docs/writing-stories/csf#stories)
|
|
56
56
|
*/
|
|
57
57
|
type StoryFn<TArgs = Args$1> = AnnotatedStoryFn<AngularRenderer, TransformComponentType<TArgs>>;
|
|
58
58
|
/**
|
|
59
59
|
* Story object that represents a CSFv3 component example.
|
|
60
60
|
*
|
|
61
|
-
* @see [
|
|
61
|
+
* @see [Stories](https://storybook.js.org/docs/writing-stories/csf#stories)
|
|
62
62
|
*/
|
|
63
63
|
type StoryObj<TArgs = Args$1> = StoryAnnotations<AngularRenderer, TransformComponentType<TArgs>>;
|
|
64
64
|
type Decorator<TArgs = StrictArgs$1> = DecoratorFunction<AngularRenderer, TArgs>;
|
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-VFDWJHES.js";
|
|
9
|
+
import "./_browser-chunks/chunk-GCT6OYDT.js";
|
|
10
|
+
import "./_browser-chunks/chunk-RMTRNQGG.js";
|
|
11
|
+
import "./_browser-chunks/chunk-IEOSIOYC.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_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_rfopit31jsf from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_rfopit31jsf from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_rfopit31jsf from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_rfopit31jsf.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_rfopit31jsf.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_rfopit31jsf.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-HHXKBK6J.js";
|
|
15
15
|
import {
|
|
16
16
|
parseStoryFile
|
|
17
|
-
} from "./_node-chunks/chunk-
|
|
17
|
+
} from "./_node-chunks/chunk-IIBIIU2W.js";
|
|
18
18
|
|
|
19
19
|
// src/preset.ts
|
|
20
|
-
import { findConfigFile } from "storybook/internal/common";
|
|
20
|
+
import { findConfigFile, isTypeScriptReadyForDocgen } from "storybook/internal/common";
|
|
21
21
|
import {
|
|
22
22
|
extractMockCalls,
|
|
23
23
|
findMockRedirect,
|
|
@@ -287,7 +287,7 @@ import { resolve as resolve3 } from "node:path";
|
|
|
287
287
|
|
|
288
288
|
// src/docgen/story-docs-args.ts
|
|
289
289
|
import {
|
|
290
|
-
|
|
290
|
+
detachedTextOf,
|
|
291
291
|
parseExpression,
|
|
292
292
|
staticKey,
|
|
293
293
|
parseModule,
|
|
@@ -406,17 +406,13 @@ var EVAL_FAILED = /* @__PURE__ */ Symbol("story-docs-eval-failed"), createArgExt
|
|
|
406
406
|
}, evaluateArgLiteral = (node, enums) => {
|
|
407
407
|
let value = evaluateNode(unwrapExpression(node), enums);
|
|
408
408
|
return value === EVAL_FAILED ? void 0 : printExpressionValue(value, /* @__PURE__ */ new Set());
|
|
409
|
-
}, argFieldValue = (node) =>
|
|
409
|
+
}, argFieldValue = (node) => expandTabs(detachedTextOf(unwrapExpression(node))), evaluateArgExpression = (node, enums) => {
|
|
410
410
|
let literal = evaluateArgLiteral(node, enums);
|
|
411
411
|
return escapeAttributeExpression(
|
|
412
|
-
literal ??
|
|
412
|
+
literal ?? expandTabs(withoutComments(detachedTextOf(unwrapExpression(node))))
|
|
413
413
|
);
|
|
414
|
-
},
|
|
415
|
-
let
|
|
416
|
-
`).slice(1), last = lines.at(-1), indents = lines.filter((line) => line.trim()).map((line) => /^[ \t]*/.exec(line)[0]), indent = last && /^[ \t]*[)\]}]/.test(last) ? /^[ \t]*/.exec(last)[0] : indents.reduce(
|
|
417
|
-
(shortest, current) => current.length < shortest.length ? current : shortest,
|
|
418
|
-
indents[0] ?? ""
|
|
419
|
-
), result = reindent(code, indent, ""), deepest = Math.max(0, ...result.split(`
|
|
414
|
+
}, expandTabs = (code) => {
|
|
415
|
+
let result = code, deepest = Math.max(0, ...result.split(`
|
|
420
416
|
`).map((line) => /^\t*/.exec(line)[0].length));
|
|
421
417
|
for (let depth = deepest; depth > 0; depth--)
|
|
422
418
|
result = reindent(result, " ".repeat(depth), " ".repeat(depth));
|
|
@@ -945,7 +941,7 @@ var buildStoryDocsPayload = async (input, context) => {
|
|
|
945
941
|
fields: fields2
|
|
946
942
|
});
|
|
947
943
|
if (userMarkup?.kind === "literal") {
|
|
948
|
-
let { analyzeStoryTemplate } = await import("./_node-chunks/story-docs-template-analysis-
|
|
944
|
+
let { analyzeStoryTemplate } = await import("./_node-chunks/story-docs-template-analysis-R5ORZ5HO.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(
|
|
949
945
|
referencedNames,
|
|
950
946
|
userMarkup.representedArgs,
|
|
951
947
|
shape,
|
|
@@ -1052,7 +1048,7 @@ var warnedMissingDocgenService = !1, getDocgenPayload = async (componentId) => {
|
|
|
1052
1048
|
});
|
|
1053
1049
|
|
|
1054
1050
|
// src/preset.ts
|
|
1055
|
-
var isDocgenProviderEnabled =
|
|
1051
|
+
var isDocgenProviderEnabled = (_existing, options) => isTypeScriptReadyForDocgen((specifier) => import.meta.resolve(specifier), options), addons = [], features = async (existing) => ({
|
|
1056
1052
|
...existing,
|
|
1057
1053
|
componentsManifest: !0
|
|
1058
1054
|
}), previewAnnotations = async (entries = [], options) => {
|
|
@@ -1349,9 +1345,7 @@ function angularViteRedirectReapplyPlugin(options) {
|
|
|
1349
1345
|
viteConfig.root ?? process.cwd(),
|
|
1350
1346
|
findMockRedirect
|
|
1351
1347
|
);
|
|
1352
|
-
redirects = calls.filter(
|
|
1353
|
-
(call) => !!call.redirectPath
|
|
1354
|
-
).map((call) => ({
|
|
1348
|
+
redirects = calls.filter((call) => !!call.redirectPath).map((call) => ({
|
|
1355
1349
|
absolutePath: call.absolutePath,
|
|
1356
1350
|
redirectPath: call.redirectPath
|
|
1357
1351
|
})), automocks = calls.filter((call) => !call.redirectPath && !!call.absolutePath).map((call) => ({ absolutePath: call.absolutePath, spy: !!call.spy }));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/angular-vite",
|
|
3
|
-
"version": "11.0.0-alpha.
|
|
3
|
+
"version": "11.0.0-alpha.9",
|
|
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": "11.0.0-alpha.
|
|
66
|
+
"@storybook/builder-vite": "11.0.0-alpha.9",
|
|
67
67
|
"@storybook/global": "^5.0.0",
|
|
68
68
|
"telejson": "8.0.0",
|
|
69
69
|
"ts-dedent": "^2.2.0",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"@angular/forms": "^21.2.14",
|
|
82
82
|
"@angular/platform-browser": "^21.2.14",
|
|
83
83
|
"@angular/platform-browser-dynamic": "^21.2.14",
|
|
84
|
-
"@storybook/angular-cm": "11.0.0-alpha.
|
|
85
|
-
"@storybook/angular-compodoc": "11.0.0-alpha.
|
|
84
|
+
"@storybook/angular-cm": "11.0.0-alpha.9",
|
|
85
|
+
"@storybook/angular-compodoc": "11.0.0-alpha.9",
|
|
86
86
|
"@types/node": "^22.19.1",
|
|
87
87
|
"empathic": "^2.0.0",
|
|
88
88
|
"memfs": "^4.11.1",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"rxjs": "^7.4.0",
|
|
106
106
|
"sass": "^1.0.0",
|
|
107
107
|
"sass-embedded": "^1.0.0",
|
|
108
|
-
"storybook": "^11.0.0-alpha.
|
|
108
|
+
"storybook": "^11.0.0-alpha.9",
|
|
109
109
|
"typescript": "^5.9.0 || ^6.0.0 || ^7.0.0",
|
|
110
110
|
"vite": ">=8.0.0",
|
|
111
111
|
"zone.js": ">=0.14.0"
|