@storybook/angular 0.0.0-pr-35341-sha-e49cb7a9 → 0.0.0-pr-35482-sha-e0c7884d

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.
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.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 CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.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-XBEPETZP.js";
14
+ } from "./chunk-3SEHDQIH.js";
15
15
 
16
16
  // ../../../node_modules/empathic/package.mjs
17
17
  function up2(options) {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,10 +14,10 @@ import {
14
14
  printErrorDetails,
15
15
  runCompodoc,
16
16
  up as up2
17
- } from "../../_node-chunks/chunk-CMK7XT5U.js";
17
+ } from "../../_node-chunks/chunk-TTS7VJIE.js";
18
18
  import {
19
19
  up
20
- } from "../../_node-chunks/chunk-XBEPETZP.js";
20
+ } from "../../_node-chunks/chunk-3SEHDQIH.js";
21
21
 
22
22
  // src/builders/build-storybook/index.ts
23
23
  import { readFileSync } from "node:fs";
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,10 +14,10 @@ import {
14
14
  printErrorDetails,
15
15
  runCompodoc,
16
16
  up as up2
17
- } from "../../_node-chunks/chunk-CMK7XT5U.js";
17
+ } from "../../_node-chunks/chunk-TTS7VJIE.js";
18
18
  import {
19
19
  up
20
- } from "../../_node-chunks/chunk-XBEPETZP.js";
20
+ } from "../../_node-chunks/chunk-3SEHDQIH.js";
21
21
 
22
22
  // src/builders/start-storybook/index.ts
23
23
  import { readFileSync } from "node:fs";
package/dist/index.d.ts CHANGED
@@ -1,69 +1,68 @@
1
- import { n as FrameworkOptions, r as StorybookConfig, t as AngularOptions } from "./chunk-D12NRfQ8.js";
2
- import { AnnotatedStoryFn, ArgTypes, Args, Args as Args$1, ArgsStoryFn, ComponentAnnotations, DecoratorFunction, LoaderFunction, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Parameters as Parameters$2, Parameters as Parameters$3, ProjectAnnotations, Renderer, StoryAnnotations, StoryContext as StoryContext$1, StrictArgs, StrictArgs as StrictArgs$1, WebRenderer } from "storybook/internal/types";
3
- import * as AngularCore from "@angular/core";
4
- import { ApplicationConfig, Provider, Type } from "@angular/core";
5
- import { AddonTypes, InferTypes, Meta as Meta$1, Preview as Preview$1, PreviewAddon, Story } from "storybook/internal/csf";
1
+ import { WebRenderer, Parameters as Parameters$2, Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations, NamedOrDefaultProjectAnnotations, NormalizedProjectAnnotations, Renderer, ArgsStoryFn, StorybookConfig as StorybookConfig$2, Options, CompatibleString, TypescriptOptions as TypescriptOptions$1 } from 'storybook/internal/types';
2
+ export { ArgTypes, Args, Parameters, StrictArgs } from 'storybook/internal/types';
3
+ import * as AngularCore from '@angular/core';
4
+ import { Provider, ApplicationConfig, Type } from '@angular/core';
5
+ import { PreviewAddon, InferTypes, AddonTypes, Preview as Preview$1, Meta as Meta$1, Story } from 'storybook/internal/csf';
6
+ import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from '@storybook/builder-webpack5';
6
7
 
7
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/client/types.d.ts
8
8
  interface NgModuleMetadata {
9
- /** List of components, directives, and pipes that belong to your component. */
10
- declarations?: any[];
11
- entryComponents?: any[];
12
- /**
13
- * List of modules that should be available to the root Storybook Component and all its children.
14
- * If you want to register application providers or if you want to use the forRoot() pattern,
15
- * please use the `applicationConfig` decorator in combination with the importProvidersFrom helper
16
- * function from @angular/core instead.
17
- */
18
- imports?: any[];
19
- schemas?: any[];
20
- /**
21
- * List of providers that should be available on the root component and all its children. Use the
22
- * `applicationConfig` decorator to register environemt and application-wide providers.
23
- */
24
- providers?: Provider[];
9
+ /** List of components, directives, and pipes that belong to your component. */
10
+ declarations?: any[];
11
+ entryComponents?: any[];
12
+ /**
13
+ * List of modules that should be available to the root Storybook Component and all its children.
14
+ * If you want to register application providers or if you want to use the forRoot() pattern,
15
+ * please use the `applicationConfig` decorator in combination with the importProvidersFrom helper
16
+ * function from @angular/core instead.
17
+ */
18
+ imports?: any[];
19
+ schemas?: any[];
20
+ /**
21
+ * List of providers that should be available on the root component and all its children. Use the
22
+ * `applicationConfig` decorator to register environemt and application-wide providers.
23
+ */
24
+ providers?: Provider[];
25
25
  }
26
26
  interface ICollection {
27
- [p: string]: any;
27
+ [p: string]: any;
28
28
  }
29
29
  interface StoryFnAngularReturnType {
30
- props?: ICollection;
31
- moduleMetadata?: NgModuleMetadata;
32
- applicationConfig?: ApplicationConfig;
33
- template?: string;
34
- styles?: string[];
35
- userDefinedTemplate?: boolean;
30
+ props?: ICollection;
31
+ moduleMetadata?: NgModuleMetadata;
32
+ applicationConfig?: ApplicationConfig;
33
+ template?: string;
34
+ styles?: string[];
35
+ userDefinedTemplate?: boolean;
36
36
  }
37
37
  interface AngularRenderer extends WebRenderer {
38
- component: any;
39
- storyResult: StoryFnAngularReturnType;
38
+ component: any;
39
+ storyResult: StoryFnAngularReturnType;
40
40
  }
41
- type Parameters$1 = Parameters$3 & {
42
- bootstrapModuleOptions?: unknown;
41
+ type Parameters$1 = Parameters$2 & {
42
+ bootstrapModuleOptions?: unknown;
43
43
  };
44
- //#endregion
45
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/client/public-types.d.ts
44
+
46
45
  /**
47
46
  * Metadata to configure the stories for a component.
48
47
  *
49
48
  * @see [Default export](https://storybook.js.org/docs/api/csf#default-export)
50
49
  */
51
- type Meta<TArgs = Args$1> = ComponentAnnotations<AngularRenderer, TransformComponentType<TArgs>>;
50
+ type Meta<TArgs = Args> = ComponentAnnotations<AngularRenderer, TransformComponentType<TArgs>>;
52
51
  /**
53
52
  * Story function that represents a CSFv2 component example.
54
53
  *
55
54
  * @see [Named Story exports](https://storybook.js.org/docs/api/csf#named-story-exports)
56
55
  */
57
- type StoryFn<TArgs = Args$1> = AnnotatedStoryFn<AngularRenderer, TransformComponentType<TArgs>>;
56
+ type StoryFn<TArgs = Args> = AnnotatedStoryFn<AngularRenderer, TransformComponentType<TArgs>>;
58
57
  /**
59
58
  * Story object that represents a CSFv3 component example.
60
59
  *
61
60
  * @see [Named Story exports](https://storybook.js.org/docs/api/csf#named-story-exports)
62
61
  */
63
- type StoryObj<TArgs = Args$1> = StoryAnnotations<AngularRenderer, TransformComponentType<TArgs>>;
64
- type Decorator<TArgs = StrictArgs$1> = DecoratorFunction<AngularRenderer, TArgs>;
65
- type Loader<TArgs = StrictArgs$1> = LoaderFunction<AngularRenderer, TArgs>;
66
- type StoryContext<TArgs = StrictArgs$1> = StoryContext$1<AngularRenderer, TArgs>;
62
+ type StoryObj<TArgs = Args> = StoryAnnotations<AngularRenderer, TransformComponentType<TArgs>>;
63
+ type Decorator<TArgs = StrictArgs> = DecoratorFunction<AngularRenderer, TArgs>;
64
+ type Loader<TArgs = StrictArgs> = LoaderFunction<AngularRenderer, TArgs>;
65
+ type StoryContext<TArgs = StrictArgs> = StoryContext$1<AngularRenderer, TArgs>;
67
66
  type Preview = ProjectAnnotations<AngularRenderer>;
68
67
  /**
69
68
  * Transforms InputSignal, ModelSignal, OutputEmitterRef and EventEmitter member
@@ -80,24 +79,33 @@ type AngularInputSignalWithTransform<T, U> = AngularCore.InputSignalWithTransfor
80
79
  type AngularOutputEmitterRef<T> = AngularCore.OutputEmitterRef<T>;
81
80
  type AngularModelSignal<T> = AngularCore.ModelSignal<T>;
82
81
  type AngularHasInputSignal = typeof AngularCore extends {
83
- input: infer U;
82
+ input: infer U;
84
83
  } ? true : false;
85
84
  type AngularHasOutputSignal = typeof AngularCore extends {
86
- output: infer U;
85
+ output: infer U;
87
86
  } ? true : false;
88
87
  type AngularHasModelSignal = typeof AngularCore extends {
89
- model: infer U;
88
+ model: infer U;
90
89
  } ? true : false;
91
90
  type InputSignal<T> = AngularHasInputSignal extends true ? AngularInputSignal<T> : never;
92
91
  type InputSignalWithTransform<T, U> = AngularHasInputSignal extends true ? AngularInputSignalWithTransform<T, U> : never;
93
92
  type OutputEmitterRef<T> = AngularHasOutputSignal extends true ? AngularOutputEmitterRef<T> : never;
94
93
  type ModelSignal<T> = AngularHasModelSignal extends true ? AngularModelSignal<T> : never;
95
- type TransformInputSignalType<T> = { [K in keyof T]: T[K] extends InputSignal<infer E> ? E : T[K] extends InputSignalWithTransform<any, infer U> ? U : T[K] };
96
- type TransformOutputSignalType<T> = { [K in keyof T]: T[K] extends OutputEmitterRef<infer E> ? (e: E) => void : T[K] };
97
- type TransformModelSignalType<T> = { [K in keyof T]: T[K] extends ModelSignal<infer E> ? E : T[K] } & { [K in keyof T as T[K] extends ModelSignal<infer _E> ? `${K & string}Change` : never]: T[K] extends ModelSignal<infer E> ? (e: E) => void : never };
98
- type TransformEventType<T> = { [K in keyof T]: T[K] extends AngularCore.EventEmitter<infer E> ? (e: E) => void : T[K] };
99
- //#endregion
100
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/client/portable-stories.d.ts
94
+ type TransformInputSignalType<T> = {
95
+ [K in keyof T]: T[K] extends InputSignal<infer E> ? E : T[K] extends InputSignalWithTransform<any, infer U> ? U : T[K];
96
+ };
97
+ type TransformOutputSignalType<T> = {
98
+ [K in keyof T]: T[K] extends OutputEmitterRef<infer E> ? (e: E) => void : T[K];
99
+ };
100
+ type TransformModelSignalType<T> = {
101
+ [K in keyof T]: T[K] extends ModelSignal<infer E> ? E : T[K];
102
+ } & {
103
+ [K in keyof T as T[K] extends ModelSignal<infer _E> ? `${K & string}Change` : never]: T[K] extends ModelSignal<infer E> ? (e: E) => void : never;
104
+ };
105
+ type TransformEventType<T> = {
106
+ [K in keyof T]: T[K] extends AngularCore.EventEmitter<infer E> ? (e: E) => void : T[K];
107
+ };
108
+
101
109
  /**
102
110
  * Function that sets the globalConfig of your storybook. The global config is the preview module of
103
111
  * your .storybook folder.
@@ -119,8 +127,7 @@ type TransformEventType<T> = { [K in keyof T]: T[K] extends AngularCore.EventEmi
119
127
  * @param projectAnnotations - E.g. (import projectAnnotations from '../.storybook/preview')
120
128
  */
121
129
  declare function setProjectAnnotations(projectAnnotations: NamedOrDefaultProjectAnnotations<any> | NamedOrDefaultProjectAnnotations<any>[]): NormalizedProjectAnnotations<AngularRenderer>;
122
- //#endregion
123
- //#region node_modules/type-fest/source/union-to-intersection.d.ts
130
+
124
131
  /**
125
132
  Convert a union type to an intersection type.
126
133
 
@@ -138,18 +145,23 @@ type Intersection = UnionToIntersection<Union>;
138
145
 
139
146
  @category Type
140
147
  */
141
- type UnionToIntersection<Union> = (// `extends unknown` is always going to be the case and is used to convert the
142
- // `Union` into a [distributive conditional
143
- // type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).
144
- Union extends unknown // The union type is used as the only argument to a function since the union
145
- // of function arguments is an intersection.
146
- ? (distributedUnion: Union) => void // This won't happen.
147
- : never // Infer the `Intersection` type since TypeScript represents the positional
148
- // arguments of unions of functions as an intersection of the union.
149
- ) extends ((mergedIntersection: infer Intersection) => void) // The `& Union` is to ensure result of `UnionToIntersection<A | B>` is always assignable to `A | B`
150
- ? Intersection & Union : never;
151
- //#endregion
152
- //#region node_modules/type-fest/source/keys-of-union.d.ts
148
+ type UnionToIntersection<Union> = (
149
+ // `extends unknown` is always going to be the case and is used to convert the
150
+ // `Union` into a [distributive conditional
151
+ // type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).
152
+ Union extends unknown
153
+ // The union type is used as the only argument to a function since the union
154
+ // of function arguments is an intersection.
155
+ ? (distributedUnion: Union) => void
156
+ // This won't happen.
157
+ : never
158
+ // Infer the `Intersection` type since TypeScript represents the positional
159
+ // arguments of unions of functions as an intersection of the union.
160
+ ) extends ((mergedIntersection: infer Intersection) => void)
161
+ // The `& Union` is to ensure result of `UnionToIntersection<A | B>` is always assignable to `A | B`
162
+ ? Intersection & Union
163
+ : never;
164
+
153
165
  /**
154
166
  Create a union of all keys from a given type, even those exclusive to specific union members.
155
167
 
@@ -187,10 +199,10 @@ type AllKeys = KeysOfUnion<Union>;
187
199
 
188
200
  @category Object
189
201
  */
190
- type KeysOfUnion<ObjectType> = // Hack to fix https://github.com/sindresorhus/type-fest/issues/1008
191
- keyof UnionToIntersection<ObjectType extends unknown ? Record<keyof ObjectType, never> : never>;
192
- //#endregion
193
- //#region node_modules/type-fest/source/is-any.d.ts
202
+ type KeysOfUnion<ObjectType> =
203
+ // Hack to fix https://github.com/sindresorhus/type-fest/issues/1008
204
+ keyof UnionToIntersection<ObjectType extends unknown ? Record<keyof ObjectType, never> : never>;
205
+
194
206
  /**
195
207
  Returns a boolean for whether the given type is `any`.
196
208
 
@@ -220,8 +232,7 @@ const anyA = get(anyObject, 'a');
220
232
  @category Utilities
221
233
  */
222
234
  type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
223
- //#endregion
224
- //#region node_modules/type-fest/source/is-optional-key-of.d.ts
235
+
225
236
  /**
226
237
  Returns a boolean for whether the given key is an optional key of type.
227
238
 
@@ -262,9 +273,14 @@ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
262
273
  @category Type Guard
263
274
  @category Utilities
264
275
  */
265
- type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
266
- //#endregion
267
- //#region node_modules/type-fest/source/optional-keys-of.d.ts
276
+ type IsOptionalKeyOf<Type extends object, Key extends keyof Type> =
277
+ IsAny<Type | Key> extends true ? never
278
+ : Key extends keyof Type
279
+ ? Type extends Record<Key, Type[Key]>
280
+ ? false
281
+ : true
282
+ : false;
283
+
268
284
  /**
269
285
  Extract all optional keys from the given type.
270
286
 
@@ -298,11 +314,16 @@ const update2: UpdateOperation<User> = {
298
314
 
299
315
  @category Utilities
300
316
  */
301
- type OptionalKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
302
- ? (keyof { [Key in keyof Type as IsOptionalKeyOf<Type, Key> extends false ? never : Key]: never }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
303
- : never;
304
- //#endregion
305
- //#region node_modules/type-fest/source/required-keys-of.d.ts
317
+ type OptionalKeysOf<Type extends object> =
318
+ Type extends unknown // For distributing `Type`
319
+ ? (keyof {[Key in keyof Type as
320
+ IsOptionalKeyOf<Type, Key> extends false
321
+ ? never
322
+ : Key
323
+ ]: never
324
+ }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
325
+ : never; // Should never happen
326
+
306
327
  /**
307
328
  Extract all required keys from the given type.
308
329
 
@@ -333,10 +354,11 @@ const validator3 = createValidation<User>('luckyNumber', value => value > 0);
333
354
 
334
355
  @category Utilities
335
356
  */
336
- type RequiredKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
337
- ? Exclude<keyof Type, OptionalKeysOf<Type>> : never;
338
- //#endregion
339
- //#region node_modules/type-fest/source/is-never.d.ts
357
+ type RequiredKeysOf<Type extends object> =
358
+ Type extends unknown // For distributing `Type`
359
+ ? Exclude<keyof Type, OptionalKeysOf<Type>>
360
+ : never; // Should never happen
361
+
340
362
  /**
341
363
  Returns a boolean for whether the given type is `never`.
342
364
 
@@ -391,8 +413,7 @@ type B = IsTrueFixed<never>;
391
413
  @category Utilities
392
414
  */
393
415
  type IsNever<T> = [T] extends [never] ? true : false;
394
- //#endregion
395
- //#region node_modules/type-fest/source/if.d.ts
416
+
396
417
  /**
397
418
  An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
398
419
 
@@ -485,9 +506,13 @@ type Works = IncludesWithoutIf<HundredZeroes, '1'>;
485
506
  @category Type Guard
486
507
  @category Utilities
487
508
  */
488
- type If<Type extends boolean, IfBranch, ElseBranch> = IsNever<Type> extends true ? ElseBranch : Type extends true ? IfBranch : ElseBranch;
489
- //#endregion
490
- //#region node_modules/type-fest/source/simplify.d.ts
509
+ type If<Type extends boolean, IfBranch, ElseBranch> =
510
+ IsNever<Type> extends true
511
+ ? ElseBranch
512
+ : Type extends true
513
+ ? IfBranch
514
+ : ElseBranch;
515
+
491
516
  /**
492
517
  Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
493
518
 
@@ -546,9 +571,8 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
546
571
  @see {@link SimplifyDeep}
547
572
  @category Object
548
573
  */
549
- type Simplify<T> = { [KeyType in keyof T]: T[KeyType] } & {};
550
- //#endregion
551
- //#region node_modules/type-fest/source/is-equal.d.ts
574
+ type Simplify<T> = {[KeyType in keyof T]: T[KeyType]} & {};
575
+
552
576
  /**
553
577
  Returns a boolean for whether the two given types are equal.
554
578
 
@@ -575,11 +599,20 @@ type Includes<Value extends readonly any[], Item> =
575
599
  @category Type Guard
576
600
  @category Utilities
577
601
  */
578
- type IsEqual<A, B> = [A] extends [B] ? [B] extends [A] ? _IsEqual<A, B> : false : false;
602
+ type IsEqual<A, B> =
603
+ [A] extends [B]
604
+ ? [B] extends [A]
605
+ ? _IsEqual<A, B>
606
+ : false
607
+ : false;
608
+
579
609
  // This version fails the `equalWrappedTupleIntersectionToBeNeverAndNeverExpanded` test in `test-d/is-equal.ts`.
580
- type _IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
581
- //#endregion
582
- //#region node_modules/type-fest/source/omit-index-signature.d.ts
610
+ type _IsEqual<A, B> =
611
+ (<G>() => G extends A & G | G ? 1 : 2) extends
612
+ (<G>() => G extends B & G | G ? 1 : 2)
613
+ ? true
614
+ : false;
615
+
583
616
  /**
584
617
  Omit any index signatures from the given object type, leaving only explicitly defined properties.
585
618
 
@@ -671,9 +704,12 @@ type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
671
704
  @see {@link PickIndexSignature}
672
705
  @category Object
673
706
  */
674
- type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType] };
675
- //#endregion
676
- //#region node_modules/type-fest/source/pick-index-signature.d.ts
707
+ type OmitIndexSignature<ObjectType> = {
708
+ [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown>
709
+ ? never
710
+ : KeyType]: ObjectType[KeyType];
711
+ };
712
+
677
713
  /**
678
714
  Pick only index signatures from the given object type, leaving out all explicitly defined properties.
679
715
 
@@ -719,11 +755,17 @@ type ExampleIndexSignature = PickIndexSignature<Example>;
719
755
  @see {@link OmitIndexSignature}
720
756
  @category Object
721
757
  */
722
- type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType] };
723
- //#endregion
724
- //#region node_modules/type-fest/source/merge.d.ts
758
+ type PickIndexSignature<ObjectType> = {
759
+ [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown>
760
+ ? KeyType
761
+ : never]: ObjectType[KeyType];
762
+ };
763
+
725
764
  // Merges two objects without worrying about index signatures.
726
- type SimpleMerge<Destination, Source> = Simplify<{ [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key] } & Source>;
765
+ type SimpleMerge<Destination, Source> = Simplify<{
766
+ [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key];
767
+ } & Source>;
768
+
727
769
  /**
728
770
  Merge two types into a new type. Keys of the second type overrides keys of the first type.
729
771
 
@@ -786,14 +828,19 @@ Note: If you want a merge type that more accurately reflects the runtime behavio
786
828
  @see {@link ObjectMerge}
787
829
  @category Object
788
830
  */
789
- type Merge<Destination, Source> = Destination extends unknown // For distributing `Destination`
790
- ? Source extends unknown // For distributing `Source`
791
- ? If<IsEqual<Destination, Source>, Destination, _Merge<Destination, Source>> : never // Should never happen
792
- : never;
793
- // Should never happen
794
- type _Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
795
- //#endregion
796
- //#region node_modules/type-fest/source/internal/object.d.ts
831
+ type Merge<Destination, Source> =
832
+ Destination extends unknown // For distributing `Destination`
833
+ ? Source extends unknown // For distributing `Source`
834
+ ? If<IsEqual<Destination, Source>, Destination, _Merge<Destination, Source>>
835
+ : never // Should never happen
836
+ : never; // Should never happen
837
+
838
+ type _Merge<Destination, Source> =
839
+ Simplify<
840
+ SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>>
841
+ & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>
842
+ >;
843
+
797
844
  /**
798
845
  Works similar to the built-in `Pick` utility type, except for the following differences:
799
846
  - Distributes over union types and allows picking keys from any member of the union type.
@@ -831,7 +878,10 @@ type Any = HomomorphicPick<{a: 1; b: 2} | {c: 3}, any>;
831
878
  type IndexSignature = HomomorphicPick<{[k: string]: unknown}, number>;
832
879
  //=> {}
833
880
  */
834
- type HomomorphicPick<T, Keys extends KeysOfUnion<T>> = { [P in keyof T as Extract<P, Keys>]: T[P] };
881
+ type HomomorphicPick<T, Keys extends KeysOfUnion<T>> = {
882
+ [P in keyof T as Extract<P, Keys>]: T[P]
883
+ };
884
+
835
885
  /**
836
886
  Merges user specified options with default options.
837
887
 
@@ -884,9 +934,19 @@ type Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOp
884
934
  // Types of property 'leavesOnly' are incompatible. Type 'string' is not assignable to type 'boolean'.
885
935
  ```
886
936
  */
887
- type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>, SpecifiedOptions extends Options> = If<IsAny<SpecifiedOptions>, Defaults, If<IsNever<SpecifiedOptions>, Defaults, Simplify<Merge<Defaults, { [Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options> ? undefined extends SpecifiedOptions[Key] ? never : Key : Key]: SpecifiedOptions[Key] }> & Required<Options>>>>;
888
- //#endregion
889
- //#region node_modules/type-fest/source/except.d.ts
937
+ type ApplyDefaultOptions<
938
+ Options extends object,
939
+ Defaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>,
940
+ SpecifiedOptions extends Options,
941
+ > =
942
+ If<IsAny<SpecifiedOptions>, Defaults,
943
+ If<IsNever<SpecifiedOptions>, Defaults,
944
+ Simplify<Merge<Defaults, {
945
+ [Key in keyof SpecifiedOptions
946
+ as Key extends OptionalKeysOf<Options> ? undefined extends SpecifiedOptions[Key] ? never : Key : Key
947
+ ]: SpecifiedOptions[Key]
948
+ }> & Required<Options>>>>;
949
+
890
950
  /**
891
951
  Filter out keys from an object.
892
952
 
@@ -915,17 +975,22 @@ type Filtered = Filter<'bar', 'foo'>;
915
975
  @see {Except}
916
976
  */
917
977
  type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
978
+
918
979
  type ExceptOptions = {
919
- /**
920
- Disallow assigning non-specified properties.
921
- Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
922
- @default false
923
- */
924
- requireExactProps?: boolean;
980
+ /**
981
+ Disallow assigning non-specified properties.
982
+
983
+ Note that any omitted properties in the resulting type will be present in autocomplete as `undefined`.
984
+
985
+ @default false
986
+ */
987
+ requireExactProps?: boolean;
925
988
  };
989
+
926
990
  type DefaultExceptOptions = {
927
- requireExactProps: false;
991
+ requireExactProps: false;
928
992
  };
993
+
929
994
  /**
930
995
  Create a type from an object type without certain keys.
931
996
 
@@ -981,10 +1046,15 @@ type PostPayloadFixed = Except<UserData, 'email'>;
981
1046
 
982
1047
  @category Object
983
1048
  */
984
- type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> = _Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;
985
- type _Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = { [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType] } & (Options['requireExactProps'] extends true ? Partial<Record<KeysType, never>> : {});
986
- //#endregion
987
- //#region node_modules/type-fest/source/set-optional.d.ts
1049
+ type Except<ObjectType, KeysType extends keyof ObjectType, Options extends ExceptOptions = {}> =
1050
+ _Except<ObjectType, KeysType, ApplyDefaultOptions<ExceptOptions, DefaultExceptOptions, Options>>;
1051
+
1052
+ type _Except<ObjectType, KeysType extends keyof ObjectType, Options extends Required<ExceptOptions>> = {
1053
+ [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
1054
+ } & (Options['requireExactProps'] extends true
1055
+ ? Partial<Record<KeysType, never>>
1056
+ : {});
1057
+
988
1058
  /**
989
1059
  Create a type that makes the given keys optional, while keeping the remaining keys as is.
990
1060
 
@@ -1006,13 +1076,22 @@ type SomeOptional = SetOptional<Foo, 'b' | 'c'>;
1006
1076
 
1007
1077
  @category Object
1008
1078
  */
1009
- type SetOptional<BaseType, Keys extends keyof BaseType> = (BaseType extends ((...arguments_: never) => any) ? (...arguments_: Parameters<BaseType>) => ReturnType<BaseType> : unknown) & _SetOptional<BaseType, Keys>;
1010
- type _SetOptional<BaseType, Keys extends keyof BaseType> = BaseType extends unknown // To distribute `BaseType` when it's a union type.
1011
- ? Simplify< // Pick just the keys that are readonly from the base type.
1012
- Except<BaseType, Keys> // Pick the keys that should be mutable from the base type and make them mutable.
1013
- & Partial<HomomorphicPick<BaseType, Keys>>> : never;
1014
- //#endregion
1015
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/client/preview.d.ts
1079
+ type SetOptional<BaseType, Keys extends keyof BaseType> =
1080
+ (BaseType extends (...arguments_: never) => any
1081
+ ? (...arguments_: Parameters<BaseType>) => ReturnType<BaseType>
1082
+ : unknown)
1083
+ & _SetOptional<BaseType, Keys>;
1084
+
1085
+ type _SetOptional<BaseType, Keys extends keyof BaseType> =
1086
+ BaseType extends unknown // To distribute `BaseType` when it's a union type.
1087
+ ? Simplify<
1088
+ // Pick just the keys that are readonly from the base type.
1089
+ Except<BaseType, Keys>
1090
+ // Pick the keys that should be mutable from the base type and make them mutable.
1091
+ & Partial<HomomorphicPick<BaseType, Keys>>
1092
+ >
1093
+ : never;
1094
+
1016
1095
  /**
1017
1096
  * Creates an Angular-specific preview configuration with CSF factories support.
1018
1097
  *
@@ -1033,12 +1112,12 @@ Except<BaseType, Keys> // Pick the keys that should be mutable from the base typ
1033
1112
  * ```
1034
1113
  */
1035
1114
  declare function __definePreview<Addons extends PreviewAddon<never>[]>(input: {
1036
- addons: Addons;
1115
+ addons: Addons;
1037
1116
  } & ProjectAnnotations<AngularRenderer & InferTypes<Addons>>): AngularPreview<AngularRenderer & InferTypes<Addons>>;
1038
1117
  type InferArgs<TArgs, T, Decorators> = Simplify<TArgs & Simplify<OmitIndexSignature<DecoratorsArgs<AngularRenderer & T, Decorators>>>>;
1039
1118
  type InferComponentArgs<C extends abstract new (...args: any) => any> = Partial<TransformComponentType<InstanceType<C>>>;
1040
1119
  type InferAngularTypes<T, TArgs, Decorators> = AngularRenderer & T & {
1041
- args: Simplify<InferArgs<TArgs, T, Decorators>>;
1120
+ args: Simplify<InferArgs<TArgs, T, Decorators>>;
1042
1121
  };
1043
1122
  /**
1044
1123
  * Angular-specific Preview interface that provides type-safe CSF factory methods.
@@ -1055,33 +1134,33 @@ type InferAngularTypes<T, TArgs, Decorators> = AngularRenderer & T & {
1055
1134
  * ```
1056
1135
  */
1057
1136
  interface AngularPreview<T extends AddonTypes> extends Preview$1<AngularRenderer & T> {
1058
- /**
1059
- * Narrows the type of the preview to include additional type information. This is useful when you
1060
- * need to add args that aren't inferred from the component.
1061
- *
1062
- * @example
1063
- *
1064
- * ```ts
1065
- * const meta = preview.type<{ args: { theme: 'light' | 'dark' } }>().meta({
1066
- * component: ButtonComponent,
1067
- * });
1068
- * ```
1069
- */
1070
- type<S>(): AngularPreview<T & S>;
1071
- meta<C extends abstract new (...args: any) => any, Decorators extends DecoratorFunction<AngularRenderer & T, any>, TMetaArgs extends Partial<InferComponentArgs<C> & T['args']>>(meta: {
1072
- component?: C;
1073
- args?: TMetaArgs;
1074
- decorators?: Decorators | Decorators[];
1075
- } & Omit<ComponentAnnotations<AngularRenderer & T, InferComponentArgs<C> & T['args']>, 'decorators' | 'component' | 'args'>): AngularMeta<InferAngularTypes<T, InferComponentArgs<C>, Decorators>, Omit<ComponentAnnotations<InferAngularTypes<T, InferComponentArgs<C>, Decorators>>, 'args'> & {
1076
- args: {} extends TMetaArgs ? {} : TMetaArgs;
1077
- }>;
1078
- meta<TArgs, Decorators extends DecoratorFunction<AngularRenderer & T, any>, TMetaArgs extends Partial<TArgs & T['args']>>(meta: {
1079
- render?: ArgsStoryFn<AngularRenderer & T, TArgs & T['args']>;
1080
- args?: TMetaArgs;
1081
- decorators?: Decorators | Decorators[];
1082
- } & Omit<ComponentAnnotations<AngularRenderer & T, TArgs & T['args']>, 'decorators' | 'args' | 'render' | 'component'>): AngularMeta<InferAngularTypes<T, TArgs, Decorators>, Omit<ComponentAnnotations<InferAngularTypes<T, TArgs, Decorators>>, 'args'> & {
1083
- args: {} extends TMetaArgs ? {} : TMetaArgs;
1084
- }>;
1137
+ /**
1138
+ * Narrows the type of the preview to include additional type information. This is useful when you
1139
+ * need to add args that aren't inferred from the component.
1140
+ *
1141
+ * @example
1142
+ *
1143
+ * ```ts
1144
+ * const meta = preview.type<{ args: { theme: 'light' | 'dark' } }>().meta({
1145
+ * component: ButtonComponent,
1146
+ * });
1147
+ * ```
1148
+ */
1149
+ type<S>(): AngularPreview<T & S>;
1150
+ meta<C extends abstract new (...args: any) => any, Decorators extends DecoratorFunction<AngularRenderer & T, any>, TMetaArgs extends Partial<InferComponentArgs<C> & T['args']>>(meta: {
1151
+ component?: C;
1152
+ args?: TMetaArgs;
1153
+ decorators?: Decorators | Decorators[];
1154
+ } & Omit<ComponentAnnotations<AngularRenderer & T, InferComponentArgs<C> & T['args']>, 'decorators' | 'component' | 'args'>): AngularMeta<InferAngularTypes<T, InferComponentArgs<C>, Decorators>, Omit<ComponentAnnotations<InferAngularTypes<T, InferComponentArgs<C>, Decorators>>, 'args'> & {
1155
+ args: {} extends TMetaArgs ? {} : TMetaArgs;
1156
+ }>;
1157
+ meta<TArgs, Decorators extends DecoratorFunction<AngularRenderer & T, any>, TMetaArgs extends Partial<TArgs & T['args']>>(meta: {
1158
+ render?: ArgsStoryFn<AngularRenderer & T, TArgs & T['args']>;
1159
+ args?: TMetaArgs;
1160
+ decorators?: Decorators | Decorators[];
1161
+ } & Omit<ComponentAnnotations<AngularRenderer & T, TArgs & T['args']>, 'decorators' | 'args' | 'render' | 'component'>): AngularMeta<InferAngularTypes<T, TArgs, Decorators>, Omit<ComponentAnnotations<InferAngularTypes<T, TArgs, Decorators>>, 'args'> & {
1162
+ args: {} extends TMetaArgs ? {} : TMetaArgs;
1163
+ }>;
1085
1164
  }
1086
1165
  /** Extracts and unions all args types from an array of decorators. */
1087
1166
  type DecoratorsArgs<TRenderer extends Renderer, Decorators> = UnionToIntersection<Decorators extends DecoratorFunction<TRenderer, infer TArgs> ? TArgs : unknown>;
@@ -1093,72 +1172,72 @@ type DecoratorsArgs<TRenderer extends Renderer, Decorators> = UnionToIntersectio
1093
1172
  * story level.
1094
1173
  */
1095
1174
  interface AngularMeta<T extends AngularRenderer, MetaInput extends ComponentAnnotations<T>> extends Meta$1<T, MetaInput> {
1096
- /**
1097
- * Creates a story with a custom render function that takes no args.
1098
- *
1099
- * This overload allows you to define a story using just a render function or an object with a
1100
- * render function that doesn't depend on args. Since the render function doesn't use args, no
1101
- * args need to be provided regardless of what's required by the component.
1102
- *
1103
- * @example
1104
- *
1105
- * ```ts
1106
- * // Using just a render function
1107
- * export const CustomTemplate = meta.story(() => ({
1108
- * template: '<div>Custom static content</div>',
1109
- * }));
1110
- *
1111
- * // Using an object with render
1112
- * export const WithRender = meta.story({
1113
- * render: () => ({ template: '<my-component></my-component>' }),
1114
- * });
1115
- * ```
1116
- */
1117
- story<TInput extends (() => AngularRenderer['storyResult']) | (StoryAnnotations<T, T['args']> & {
1118
- render: () => AngularRenderer['storyResult'];
1119
- })>(story: TInput): AngularStory<T, TInput extends (() => AngularRenderer['storyResult']) ? {
1120
- render: TInput;
1121
- } : TInput>;
1122
- /**
1123
- * Creates a story with custom configuration including args, decorators, or other annotations.
1124
- *
1125
- * This is the primary overload for defining stories. Args that were already provided in meta
1126
- * become optional, while any remaining required args must be specified here.
1127
- *
1128
- * @example
1129
- *
1130
- * ```ts
1131
- * // Provide required args not in meta
1132
- * export const Primary = meta.story({
1133
- * args: { label: 'Click me', disabled: false },
1134
- * });
1135
- *
1136
- * // Override meta args and add story-specific configuration
1137
- * export const Disabled = meta.story({
1138
- * args: { disabled: true },
1139
- * decorators: [withCustomWrapper],
1140
- * });
1141
- * ```
1142
- */
1143
- story<TInput extends Simplify<StoryAnnotations<T, T['args'], SetOptional<T['args'], keyof T['args'] & keyof MetaInput['args']>>>>(story: TInput): AngularStory<T, TInput>;
1144
- /**
1145
- * Creates a story with no additional configuration.
1146
- *
1147
- * This overload is only available when all required args have been provided in meta. The
1148
- * conditional type `Partial<T['args']> extends SetOptional<...>` checks if the remaining required
1149
- * args (after accounting for args provided in meta) are all optional. If so, the function accepts
1150
- * zero arguments `[]`. Otherwise, it requires `[never]` which makes this overload unmatchable,
1151
- * forcing the user to provide args.
1152
- *
1153
- * @example
1154
- *
1155
- * ```ts
1156
- * // When meta provides all required args, story() can be called with no arguments
1157
- * const meta = preview.meta({ component: Button, args: { label: 'Hi', disabled: false } });
1158
- * export const Default = meta.story(); // Valid - all args provided in meta
1159
- * ```
1160
- */
1161
- story(..._args: Partial<T['args']> extends SetOptional<T['args'], keyof T['args'] & keyof MetaInput['args']> ? [] : [never]): AngularStory<T, {}>;
1175
+ /**
1176
+ * Creates a story with a custom render function that takes no args.
1177
+ *
1178
+ * This overload allows you to define a story using just a render function or an object with a
1179
+ * render function that doesn't depend on args. Since the render function doesn't use args, no
1180
+ * args need to be provided regardless of what's required by the component.
1181
+ *
1182
+ * @example
1183
+ *
1184
+ * ```ts
1185
+ * // Using just a render function
1186
+ * export const CustomTemplate = meta.story(() => ({
1187
+ * template: '<div>Custom static content</div>',
1188
+ * }));
1189
+ *
1190
+ * // Using an object with render
1191
+ * export const WithRender = meta.story({
1192
+ * render: () => ({ template: '<my-component></my-component>' }),
1193
+ * });
1194
+ * ```
1195
+ */
1196
+ story<TInput extends (() => AngularRenderer['storyResult']) | (StoryAnnotations<T, T['args']> & {
1197
+ render: () => AngularRenderer['storyResult'];
1198
+ })>(story: TInput): AngularStory<T, TInput extends () => AngularRenderer['storyResult'] ? {
1199
+ render: TInput;
1200
+ } : TInput>;
1201
+ /**
1202
+ * Creates a story with custom configuration including args, decorators, or other annotations.
1203
+ *
1204
+ * This is the primary overload for defining stories. Args that were already provided in meta
1205
+ * become optional, while any remaining required args must be specified here.
1206
+ *
1207
+ * @example
1208
+ *
1209
+ * ```ts
1210
+ * // Provide required args not in meta
1211
+ * export const Primary = meta.story({
1212
+ * args: { label: 'Click me', disabled: false },
1213
+ * });
1214
+ *
1215
+ * // Override meta args and add story-specific configuration
1216
+ * export const Disabled = meta.story({
1217
+ * args: { disabled: true },
1218
+ * decorators: [withCustomWrapper],
1219
+ * });
1220
+ * ```
1221
+ */
1222
+ story<TInput extends Simplify<StoryAnnotations<T, T['args'], SetOptional<T['args'], keyof T['args'] & keyof MetaInput['args']>>>>(story: TInput): AngularStory<T, TInput>;
1223
+ /**
1224
+ * Creates a story with no additional configuration.
1225
+ *
1226
+ * This overload is only available when all required args have been provided in meta. The
1227
+ * conditional type `Partial<T['args']> extends SetOptional<...>` checks if the remaining required
1228
+ * args (after accounting for args provided in meta) are all optional. If so, the function accepts
1229
+ * zero arguments `[]`. Otherwise, it requires `[never]` which makes this overload unmatchable,
1230
+ * forcing the user to provide args.
1231
+ *
1232
+ * @example
1233
+ *
1234
+ * ```ts
1235
+ * // When meta provides all required args, story() can be called with no arguments
1236
+ * const meta = preview.meta({ component: Button, args: { label: 'Hi', disabled: false } });
1237
+ * export const Default = meta.story(); // Valid - all args provided in meta
1238
+ * ```
1239
+ */
1240
+ story(..._args: Partial<T['args']> extends SetOptional<T['args'], keyof T['args'] & keyof MetaInput['args']> ? [] : [never]): AngularStory<T, {}>;
1162
1241
  }
1163
1242
  /**
1164
1243
  * Angular-specific Story interface returned by `meta.story()`.
@@ -1166,37 +1245,36 @@ interface AngularMeta<T extends AngularRenderer, MetaInput extends ComponentAnno
1166
1245
  * Represents a single story with its configuration and provides access to the composed story for
1167
1246
  * testing via `story.run()`.
1168
1247
  */
1169
- interface AngularStory<T extends AngularRenderer, TInput extends StoryAnnotations<T, T['args']>> extends Story<T, TInput> {}
1170
- //#endregion
1171
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/client/decorators.d.ts
1248
+ interface AngularStory<T extends AngularRenderer, TInput extends StoryAnnotations<T, T['args']>> extends Story<T, TInput> {
1249
+ }
1250
+
1172
1251
  declare const moduleMetadata: <TArgs = any>(metadata: Partial<NgModuleMetadata>) => DecoratorFunction<AngularRenderer, TArgs>;
1173
1252
  /**
1174
1253
  * Decorator to set the config options which are available during the application bootstrap
1175
1254
  * operation
1176
1255
  */
1177
- declare function applicationConfig<TArgs = any>(/** Set of config options available during the application bootstrap operation. */
1178
-
1256
+ declare function applicationConfig<TArgs = any>(
1257
+ /** Set of config options available during the application bootstrap operation. */
1179
1258
  config: ApplicationConfig): DecoratorFunction<AngularRenderer, TArgs>;
1180
1259
  declare const componentWrapperDecorator: <TArgs = any>(element: Type<unknown> | ((story: string) => string), props?: ICollection | ((storyContext: StoryContext$1<AngularRenderer, TArgs>) => ICollection)) => DecoratorFunction<AngularRenderer, TArgs>;
1181
- //#endregion
1182
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/client/argsToTemplate.d.ts
1260
+
1183
1261
  /**
1184
1262
  * Options for controlling the behavior of the argsToTemplate function.
1185
1263
  *
1186
1264
  * @template T The type of the keys in the target object.
1187
1265
  */
1188
1266
  interface ArgsToTemplateOptions<T> {
1189
- /**
1190
- * An array of keys to specifically include in the output. If provided, only the keys from this
1191
- * array will be included in the output, irrespective of the `exclude` option. Undefined values
1192
- * will still be excluded from the output.
1193
- */
1194
- include?: Array<T>;
1195
- /**
1196
- * An array of keys to specifically exclude from the output. If provided, these keys will be
1197
- * omitted from the output. This option is ignored if the `include` option is also provided
1198
- */
1199
- exclude?: Array<T>;
1267
+ /**
1268
+ * An array of keys to specifically include in the output. If provided, only the keys from this
1269
+ * array will be included in the output, irrespective of the `exclude` option. Undefined values
1270
+ * will still be excluded from the output.
1271
+ */
1272
+ include?: Array<T>;
1273
+ /**
1274
+ * An array of keys to specifically exclude from the output. If provided, these keys will be
1275
+ * omitted from the output. This option is ignored if the `include` option is also provided
1276
+ */
1277
+ exclude?: Array<T>;
1200
1278
  }
1201
1279
  /**
1202
1280
  * Converts an object of arguments to a string of property and event bindings and excludes undefined
@@ -1236,5 +1314,58 @@ interface ArgsToTemplateOptions<T> {
1236
1314
  * ```
1237
1315
  */
1238
1316
  declare function argsToTemplate<A extends Record<string, any>>(args: A, options?: ArgsToTemplateOptions<keyof A>): string;
1239
- //#endregion
1240
- export { AngularMeta, AngularOptions, type Parameters$1 as AngularParameters, AngularPreview, type AngularRenderer, AngularStory, type ArgTypes, type Args, Decorator, FrameworkOptions, type StoryFnAngularReturnType as IStory, Loader, Meta, type Parameters$2 as Parameters, Preview, StoryContext, StoryFn, StoryObj, StorybookConfig, type StrictArgs, TransformComponentType, __definePreview, __definePreview as definePreview, applicationConfig, argsToTemplate, componentWrapperDecorator, moduleMetadata, setProjectAnnotations };
1317
+
1318
+ type RulesConfig = any;
1319
+ type ModuleConfig = {
1320
+ rules?: RulesConfig[];
1321
+ };
1322
+ type ResolveConfig = {
1323
+ extensions?: string[];
1324
+ mainFields?: (string | string[])[] | undefined;
1325
+ alias?: any;
1326
+ };
1327
+ interface WebpackConfiguration {
1328
+ plugins?: any[];
1329
+ module?: ModuleConfig;
1330
+ resolve?: ResolveConfig;
1331
+ optimization?: any;
1332
+ devtool?: false | string | {
1333
+ type: 'all' | 'javascript' | 'css';
1334
+ use: any;
1335
+ }[];
1336
+ }
1337
+ type StorybookConfig$1<TWebpackConfiguration = WebpackConfiguration> = StorybookConfig$2 & {
1338
+ /**
1339
+ * Modify or return a custom Webpack config after the Storybook's default configuration has run
1340
+ * (mostly used by addons).
1341
+ */
1342
+ webpack?: (config: TWebpackConfiguration, options: Options) => TWebpackConfiguration | Promise<TWebpackConfiguration>;
1343
+ /** Modify or return a custom Webpack config after every addon has run. */
1344
+ webpackFinal?: (config: TWebpackConfiguration, options: Options) => TWebpackConfiguration | Promise<TWebpackConfiguration>;
1345
+ };
1346
+
1347
+ type FrameworkName = CompatibleString<'@storybook/angular'>;
1348
+ type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
1349
+ type FrameworkOptions = AngularOptions & {
1350
+ builder?: BuilderOptions;
1351
+ };
1352
+ type StorybookConfigFramework = {
1353
+ framework: FrameworkName | {
1354
+ name: FrameworkName;
1355
+ options: FrameworkOptions;
1356
+ };
1357
+ core?: StorybookConfig$1['core'] & {
1358
+ builder?: BuilderName | {
1359
+ name: BuilderName;
1360
+ options: BuilderOptions;
1361
+ };
1362
+ };
1363
+ typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$1['typescript'];
1364
+ };
1365
+ /** The interface for Storybook configuration in `main.ts` files. */
1366
+ type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
1367
+ interface AngularOptions {
1368
+ enableIvy?: boolean;
1369
+ }
1370
+
1371
+ export { type AngularMeta, type AngularOptions, type Parameters$1 as AngularParameters, type AngularPreview, type AngularRenderer, type AngularStory, type Decorator, type FrameworkOptions, type StoryFnAngularReturnType as IStory, type Loader, type Meta, type Preview, type StoryContext, type StoryFn, type StoryObj, type StorybookConfig, type TransformComponentType, __definePreview, applicationConfig, argsToTemplate, componentWrapperDecorator, __definePreview as definePreview, moduleMetadata, setProjectAnnotations };
@@ -1,6 +1,59 @@
1
- import { r as StorybookConfig } from "../chunk-D12NRfQ8.js";
1
+ import { StorybookConfig as StorybookConfig$2, Options, CompatibleString, TypescriptOptions as TypescriptOptions$1 } from 'storybook/internal/types';
2
+ import { StorybookConfigWebpack, BuilderOptions, TypescriptOptions } from '@storybook/builder-webpack5';
3
+
4
+ type RulesConfig = any;
5
+ type ModuleConfig = {
6
+ rules?: RulesConfig[];
7
+ };
8
+ type ResolveConfig = {
9
+ extensions?: string[];
10
+ mainFields?: (string | string[])[] | undefined;
11
+ alias?: any;
12
+ };
13
+ interface WebpackConfiguration {
14
+ plugins?: any[];
15
+ module?: ModuleConfig;
16
+ resolve?: ResolveConfig;
17
+ optimization?: any;
18
+ devtool?: false | string | {
19
+ type: 'all' | 'javascript' | 'css';
20
+ use: any;
21
+ }[];
22
+ }
23
+ type StorybookConfig$1<TWebpackConfiguration = WebpackConfiguration> = StorybookConfig$2 & {
24
+ /**
25
+ * Modify or return a custom Webpack config after the Storybook's default configuration has run
26
+ * (mostly used by addons).
27
+ */
28
+ webpack?: (config: TWebpackConfiguration, options: Options) => TWebpackConfiguration | Promise<TWebpackConfiguration>;
29
+ /** Modify or return a custom Webpack config after every addon has run. */
30
+ webpackFinal?: (config: TWebpackConfiguration, options: Options) => TWebpackConfiguration | Promise<TWebpackConfiguration>;
31
+ };
32
+
33
+ type FrameworkName = CompatibleString<'@storybook/angular'>;
34
+ type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
35
+ type FrameworkOptions = AngularOptions & {
36
+ builder?: BuilderOptions;
37
+ };
38
+ type StorybookConfigFramework = {
39
+ framework: FrameworkName | {
40
+ name: FrameworkName;
41
+ options: FrameworkOptions;
42
+ };
43
+ core?: StorybookConfig$1['core'] & {
44
+ builder?: BuilderName | {
45
+ name: BuilderName;
46
+ options: BuilderOptions;
47
+ };
48
+ };
49
+ typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$1['typescript'];
50
+ };
51
+ /** The interface for Storybook configuration in `main.ts` files. */
52
+ type StorybookConfig = Omit<StorybookConfig$1, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
53
+ interface AngularOptions {
54
+ enableIvy?: boolean;
55
+ }
2
56
 
3
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/node/index.d.ts
4
57
  declare function defineMain(config: StorybookConfig): StorybookConfig;
5
- //#endregion
6
- export { type StorybookConfig, defineMain };
58
+
59
+ export { type StorybookConfig, defineMain };
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.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 CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -1,17 +1,17 @@
1
- import CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.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 "../_node-chunks/chunk-XBEPETZP.js";
14
+ } from "../_node-chunks/chunk-3SEHDQIH.js";
15
15
 
16
16
  // src/server/framework-preset-angular-cli.ts
17
17
  import { logger } from "storybook/internal/node-logger";
@@ -89,7 +89,7 @@ var relative = function(from, to) {
89
89
  async function webpackFinal(baseConfig, options) {
90
90
  if (!resolvePackageDir("@angular-devkit/build-angular"))
91
91
  return logger.info('Using base config because "@angular-devkit/build-angular" is not installed'), baseConfig;
92
- let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-FEJL5JRJ.js");
92
+ let { WebpackDefinePlugin, WebpackIgnorePlugin } = await import("@storybook/builder-webpack5"), { getWebpackConfig: getCustomWebpackConfig } = await import("../_node-chunks/angular-cli-webpack-Q27LDOOX.js");
93
93
  checkForLegacyBuildOptions(options);
94
94
  let builderContext = getBuilderContext(options), builderOptions = await getBuilderOptions(options, builderContext), webpackConfig = await getCustomWebpackConfig(baseConfig, {
95
95
  builderOptions: {
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_k65g8lxwg1e from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_k65g8lxwg1e from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_k65g8lxwg1e from "node:module";
1
+ import CJS_COMPAT_NODE_URL_gf7udbp6tme from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_gf7udbp6tme from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_gf7udbp6tme from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_k65g8lxwg1e.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_k65g8lxwg1e.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_k65g8lxwg1e.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_gf7udbp6tme.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_gf7udbp6tme.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_gf7udbp6tme.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/angular",
3
- "version": "0.0.0-pr-35341-sha-e49cb7a9",
3
+ "version": "0.0.0-pr-35482-sha-e0c7884d",
4
4
  "description": "Storybook for Angular: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -59,7 +59,7 @@
59
59
  "!src/**/*"
60
60
  ],
61
61
  "dependencies": {
62
- "@storybook/builder-webpack5": "0.0.0-pr-35341-sha-e49cb7a9",
62
+ "@storybook/builder-webpack5": "0.0.0-pr-35482-sha-e0c7884d",
63
63
  "@storybook/global": "^5.0.0",
64
64
  "telejson": "8.0.0",
65
65
  "ts-dedent": "^2.0.0",
@@ -79,11 +79,11 @@
79
79
  "@angular/forms": "^19.1.1",
80
80
  "@angular/platform-browser": "^19.1.1",
81
81
  "@angular/platform-browser-dynamic": "^19.1.1",
82
- "@storybook/core-webpack": "0.0.0-pr-35341-sha-e49cb7a9",
82
+ "@storybook/core-webpack": "0.0.0-pr-35482-sha-e0c7884d",
83
83
  "@types/node": "^22.19.1",
84
84
  "empathic": "^2.0.0",
85
85
  "rimraf": "^6.0.1",
86
- "typescript": "^6.0.3",
86
+ "typescript": "^5.9.3",
87
87
  "webpack": "5",
88
88
  "zone.js": "^0.15.0"
89
89
  },
@@ -100,8 +100,8 @@
100
100
  "@angular/platform-browser": ">=18.0.0 < 23.0.0",
101
101
  "@angular/platform-browser-dynamic": ">=18.0.0 < 23.0.0",
102
102
  "rxjs": "^6.5.3 || ^7.4.0",
103
- "storybook": "^0.0.0-pr-35341-sha-e49cb7a9",
104
- "typescript": "^4.9.0 || ^5.0.0 || ^6.0.0",
103
+ "storybook": "^0.0.0-pr-35482-sha-e0c7884d",
104
+ "typescript": "^4.9.0 || ^5.0.0",
105
105
  "zone.js": ">=0.14.0"
106
106
  },
107
107
  "peerDependenciesMeta": {
@@ -1,60 +0,0 @@
1
- import { CompatibleString, Options, StorybookConfig, TypescriptOptions as TypescriptOptions$1 } from "storybook/internal/types";
2
- import { BuilderOptions, StorybookConfigWebpack, TypescriptOptions } from "@storybook/builder-webpack5";
3
-
4
- //#region code/lib/core-webpack/dist/index.d.ts
5
- //#region code/lib/core-webpack/.dts-emit/code/lib/core-webpack/src/types.d.ts
6
- type RulesConfig = any;
7
- type ModuleConfig = {
8
- rules?: RulesConfig[];
9
- };
10
- type ResolveConfig = {
11
- extensions?: string[];
12
- mainFields?: (string | string[])[] | undefined;
13
- alias?: any;
14
- };
15
- interface WebpackConfiguration {
16
- plugins?: any[];
17
- module?: ModuleConfig;
18
- resolve?: ResolveConfig;
19
- optimization?: any;
20
- devtool?: false | string | {
21
- type: 'all' | 'javascript' | 'css';
22
- use: any;
23
- }[];
24
- }
25
- type StorybookConfig$2<TWebpackConfiguration = WebpackConfiguration> = StorybookConfig & {
26
- /**
27
- * Modify or return a custom Webpack config after the Storybook's default configuration has run
28
- * (mostly used by addons).
29
- */
30
- webpack?: (config: TWebpackConfiguration, options: Options) => TWebpackConfiguration | Promise<TWebpackConfiguration>; /** Modify or return a custom Webpack config after every addon has run. */
31
- webpackFinal?: (config: TWebpackConfiguration, options: Options) => TWebpackConfiguration | Promise<TWebpackConfiguration>;
32
- }; //#endregion
33
- //#region code/lib/core-webpack/.dts-emit/code/lib/core-webpack/src/load-custom-webpack-config.d.ts
34
- //#endregion
35
- //#region code/frameworks/angular/.dts-emit/code/frameworks/angular/src/types.d.ts
36
- type FrameworkName = CompatibleString<'@storybook/angular'>;
37
- type BuilderName = CompatibleString<'@storybook/builder-webpack5'>;
38
- type FrameworkOptions = AngularOptions & {
39
- builder?: BuilderOptions;
40
- };
41
- type StorybookConfigFramework = {
42
- framework: FrameworkName | {
43
- name: FrameworkName;
44
- options: FrameworkOptions;
45
- };
46
- core?: StorybookConfig$2['core'] & {
47
- builder?: BuilderName | {
48
- name: BuilderName;
49
- options: BuilderOptions;
50
- };
51
- };
52
- typescript?: Partial<TypescriptOptions & TypescriptOptions$1> & StorybookConfig$2['typescript'];
53
- };
54
- /** The interface for Storybook configuration in `main.ts` files. */
55
- type StorybookConfig$1 = Omit<StorybookConfig$2, keyof StorybookConfigWebpack | keyof StorybookConfigFramework> & StorybookConfigWebpack & StorybookConfigFramework;
56
- interface AngularOptions {
57
- enableIvy?: boolean;
58
- }
59
- //#endregion
60
- export { FrameworkOptions as n, StorybookConfig$1 as r, AngularOptions as t };