@storybook/csf 0.1.8--canary.91.84e764b.0 → 0.1.8--canary.91.89e16ed.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -247,7 +247,7 @@ interface StoryContextUpdate<TArgs = Args> {
247
247
  [key: string]: any;
248
248
  }
249
249
  type ViewMode = 'story' | 'docs';
250
- type LoaderFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContext<TRenderer, TArgs>) => Promise<Record<string, any> | void> | Record<string, any> | void;
250
+ type LoaderFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContextForLoaders<TRenderer, TArgs>) => Promise<Record<string, any> | void> | Record<string, any> | void;
251
251
  type Awaitable<T> = T | PromiseLike<T>;
252
252
  type CleanupCallback = () => Awaitable<unknown>;
253
253
  type BeforeEach<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContext<TRenderer, TArgs>) => Awaitable<CleanupCallback | void>;
@@ -267,7 +267,7 @@ interface PlayFunctionContext<TRenderer extends Renderer = Renderer, TArgs = Arg
267
267
  }
268
268
  type StepLabel = string;
269
269
  type StepFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (label: StepLabel, play: PlayFunction<TRenderer, TArgs>) => Promise<void> | void;
270
- type PlayFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContext<TRenderer, TArgs>) => Promise<void> | void;
270
+ type PlayFunction<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: PlayFunctionContext<TRenderer, TArgs>) => Promise<void> | void;
271
271
  type PartialStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (update?: StoryContextUpdate<Partial<TArgs>>) => TRenderer['storyResult'];
272
272
  type LegacyStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (context: StoryContext<TRenderer, TArgs>) => TRenderer['storyResult'];
273
273
  type ArgsStoryFn<TRenderer extends Renderer = Renderer, TArgs = Args> = (args: TArgs, context: StoryContext<TRenderer, TArgs>) => (TRenderer & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/csf",
3
- "version": "0.1.8--canary.91.84e764b.0",
3
+ "version": "0.1.8--canary.91.89e16ed.0",
4
4
  "description": "Component Story Format (CSF) utilities",
5
5
  "keywords": [
6
6
  "storybook",