@storybook/csf 0.0.2--canary.87bc651.0 → 0.0.2--canary.835a408.0

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.
Files changed (2) hide show
  1. package/dist/story.d.ts +7 -7
  2. package/package.json +1 -1
package/dist/story.d.ts CHANGED
@@ -85,20 +85,19 @@ export declare type StoryFn<TFramework extends AnyFramework = AnyFramework, TArg
85
85
  export declare type DecoratorFunction<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = (fn: PartialStoryFn<TFramework, TArgs>, c: StoryContext<TFramework, TArgs>) => TFramework['storyResult'];
86
86
  export declare type DecoratorApplicator<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = (storyFn: LegacyStoryFn<TFramework, TArgs>, decorators: DecoratorFunction<TFramework, TArgs>[]) => LegacyStoryFn<TFramework, TArgs>;
87
87
  export declare type BaseAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = {
88
- decorators?: DecoratorFunction<TFramework, TArgs>[];
88
+ decorators?: DecoratorFunction<TFramework, Args>[];
89
89
  parameters?: Parameters;
90
90
  args?: Partial<TArgs>;
91
91
  argTypes?: Partial<ArgTypes<TArgs>>;
92
- loaders?: LoaderFunction<TFramework, TArgs>[];
93
- render?: ArgsStoryFn<TFramework, TArgs>;
94
- play?: PlayFunction<TFramework, TArgs>;
92
+ loaders?: LoaderFunction<TFramework, Args>[];
93
+ render?: ArgsStoryFn<TFramework, Args>;
95
94
  };
96
95
  export declare type ProjectAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = BaseAnnotations<TFramework, TArgs> & {
97
- argsEnhancers?: ArgsEnhancer<TFramework, TArgs>[];
98
- argTypesEnhancers?: ArgTypesEnhancer<TFramework, TArgs>[];
96
+ argsEnhancers?: ArgsEnhancer<TFramework, Args>[];
97
+ argTypesEnhancers?: ArgTypesEnhancer<TFramework, Args>[];
99
98
  globals?: Globals;
100
99
  globalTypes?: GlobalTypes;
101
- applyDecorators?: DecoratorApplicator<TFramework, TArgs>;
100
+ applyDecorators?: DecoratorApplicator<TFramework, Args>;
102
101
  };
103
102
  declare type StoryDescriptor = string[] | RegExp;
104
103
  export declare type ComponentAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = BaseAnnotations<TFramework, TArgs> & {
@@ -112,6 +111,7 @@ export declare type ComponentAnnotations<TFramework extends AnyFramework = AnyFr
112
111
  export declare type StoryAnnotations<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = BaseAnnotations<TFramework, TArgs> & {
113
112
  name?: StoryName;
114
113
  storyName?: StoryName;
114
+ play?: PlayFunction<TFramework, TArgs>;
115
115
  story?: Omit<StoryAnnotations<TFramework, TArgs>, 'story'>;
116
116
  };
117
117
  export declare type LegacyAnnotatedStoryFn<TFramework extends AnyFramework = AnyFramework, TArgs = Args> = StoryFn<TFramework, TArgs> & StoryAnnotations<TFramework, TArgs>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/csf",
3
- "version": "0.0.2--canary.87bc651.0",
3
+ "version": "0.0.2--canary.835a408.0",
4
4
  "description": "Component Story Format (CSF) utilities",
5
5
  "keywords": [
6
6
  "storybook",