@storybook/addon-svelte-csf 3.0.2 → 3.0.3

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/index.d.ts +5 -5
  2. package/package.json +2 -1
package/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import type { SvelteComponentTyped, SvelteComponent } from 'svelte';
2
- import type { Addon_BaseMeta as BaseMeta, Addon_BaseAnnotations as BaseAnnotations, StoryContext } from '@storybook/types';
2
+ import type { Addon_BaseMeta as BaseMeta, Addon_BaseAnnotations as BaseAnnotations, StoryContext, WebRenderer } from '@storybook/types';
3
3
 
4
4
 
5
- type DecoratorReturnType = void|SvelteComponent|{
5
+ type DecoratorReturnType = void | SvelteComponent | {
6
6
  Component: any,
7
7
  props?: any
8
8
  }
9
9
 
10
- interface StoryProps extends BaseAnnotations<any, DecoratorReturnType> {
10
+ interface StoryProps extends BaseAnnotations<any, DecoratorReturnType, WebRenderer> {
11
11
  /**
12
12
  * Id of the story.
13
13
  *
@@ -32,7 +32,7 @@ interface StoryProps extends BaseAnnotations<any, DecoratorReturnType> {
32
32
  * If source is true, then the source of the story will be used instead.
33
33
  * If source is a string, it replaces the source of the story.
34
34
  */
35
- source?: boolean|string
35
+ source?: boolean | string
36
36
  }
37
37
 
38
38
  interface TemplateProps extends BaseAnnotations<any, DecoratorReturnType> {
@@ -54,7 +54,7 @@ interface Slots {
54
54
  /**
55
55
  * Meta.
56
56
  */
57
- export class Meta extends SvelteComponentTyped<BaseMeta<any> & BaseAnnotations<any, DecoratorReturnType>> {}
57
+ export class Meta extends SvelteComponentTyped<BaseMeta<any> & BaseAnnotations<any, DecoratorReturnType>> { }
58
58
  /**
59
59
  * Story.
60
60
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-svelte-csf",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Allows to write stories in Svelte syntax",
5
5
  "keywords": [
6
6
  "storybook-addons",
@@ -57,6 +57,7 @@
57
57
  "@storybook/svelte": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
58
58
  "@storybook/svelte-webpack5": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
59
59
  "@storybook/testing-library": "^0.0.13",
60
+ "@storybook/types": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
60
61
  "auto": "^10.43.0",
61
62
  "babel-jest": "^29.5.0",
62
63
  "babel-loader": "^8.1.0",