@storybook/addon-svelte-csf 3.0.2 → 3.0.4
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/index.d.ts +8 -8
- package/package.json +14 -13
package/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Addon_BaseMeta as BaseMeta, Addon_BaseAnnotations as BaseAnnotations, StoryContext } from '@storybook/types';
|
|
1
|
+
import type { SvelteComponent } from 'svelte'
|
|
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,14 +54,14 @@ interface Slots {
|
|
|
54
54
|
/**
|
|
55
55
|
* Meta.
|
|
56
56
|
*/
|
|
57
|
-
export class Meta extends
|
|
57
|
+
export class Meta extends SvelteComponent<BaseMeta<any> & BaseAnnotations<any, DecoratorReturnType>> { }
|
|
58
58
|
/**
|
|
59
59
|
* Story.
|
|
60
60
|
*/
|
|
61
|
-
export class Story extends
|
|
61
|
+
export class Story extends SvelteComponent<StoryProps, any, Slots> { }
|
|
62
62
|
/**
|
|
63
63
|
* Template.
|
|
64
64
|
*
|
|
65
65
|
* Allow to reuse definition between stories.
|
|
66
66
|
*/
|
|
67
|
-
export class Template extends
|
|
67
|
+
export class Template extends SvelteComponent<TemplateProps, any, Slots> { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/addon-svelte-csf",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Allows to write stories in Svelte syntax",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook-addons",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"test": "jest",
|
|
30
30
|
"lint": "eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json,.html,.ts,.tsx,.mjs --report-unused-disable-directives",
|
|
31
31
|
"storybook": "sb dev -p 6006",
|
|
32
|
-
"start": "concurrently \"yarn storybook --
|
|
32
|
+
"start": "concurrently \"yarn storybook --quiet\" \"yarn build -- --watch\"",
|
|
33
33
|
"build-storybook": "sb build",
|
|
34
34
|
"release": "yarn build && auto shipit"
|
|
35
35
|
},
|
|
@@ -47,16 +47,17 @@
|
|
|
47
47
|
"@babel/preset-env": "^7.21.4",
|
|
48
48
|
"@babel/preset-react": "^7.18.6",
|
|
49
49
|
"@babel/preset-typescript": "^7.21.4",
|
|
50
|
-
"@storybook/addon-essentials": "^7.0.
|
|
51
|
-
"@storybook/addon-interactions": "^7.0.
|
|
52
|
-
"@storybook/addon-storyshots": "^7.0.
|
|
53
|
-
"@storybook/core-client": "^7.0.
|
|
54
|
-
"@storybook/core-server": "^7.0.
|
|
50
|
+
"@storybook/addon-essentials": "^7.0.27",
|
|
51
|
+
"@storybook/addon-interactions": "^7.0.27",
|
|
52
|
+
"@storybook/addon-storyshots": "^7.0.27",
|
|
53
|
+
"@storybook/core-client": "^7.0.27",
|
|
54
|
+
"@storybook/core-server": "^7.0.27",
|
|
55
55
|
"@storybook/eslint-config-storybook": "^3.1.2",
|
|
56
56
|
"@storybook/jest": "^0.0.10",
|
|
57
|
-
"@storybook/svelte": "^7.0.
|
|
58
|
-
"@storybook/svelte-webpack5": "^7.0.
|
|
57
|
+
"@storybook/svelte": "^7.0.27",
|
|
58
|
+
"@storybook/svelte-webpack5": "^7.0.27",
|
|
59
59
|
"@storybook/testing-library": "^0.0.13",
|
|
60
|
+
"@storybook/types": "^7.0.27",
|
|
60
61
|
"auto": "^10.43.0",
|
|
61
62
|
"babel-jest": "^29.5.0",
|
|
62
63
|
"babel-loader": "^8.1.0",
|
|
@@ -69,18 +70,18 @@
|
|
|
69
70
|
"react": "^17.0.1",
|
|
70
71
|
"react-dom": "^17.0.1",
|
|
71
72
|
"rimraf": "^3.0.2",
|
|
72
|
-
"sb": "^7.0.
|
|
73
|
-
"svelte": "^
|
|
73
|
+
"sb": "^7.0.27",
|
|
74
|
+
"svelte": "^4.0.0",
|
|
74
75
|
"svelte-jester": "^2.3.2",
|
|
75
76
|
"svelte-loader": "^3.1.7",
|
|
76
|
-
"typescript": "^
|
|
77
|
+
"typescript": "^5.0.0",
|
|
77
78
|
"vite": "^3.1.4"
|
|
78
79
|
},
|
|
79
80
|
"peerDependencies": {
|
|
80
81
|
"@storybook/svelte": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
|
|
81
82
|
"@storybook/theming": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
|
|
82
83
|
"@sveltejs/vite-plugin-svelte": "^1.0.0 || ^2.0.0",
|
|
83
|
-
"svelte": "^3.50.0",
|
|
84
|
+
"svelte": "^3.50.0 || ^4.0.0",
|
|
84
85
|
"svelte-loader": "^3.1.2",
|
|
85
86
|
"vite": "^3.0.0 || ^4.0.0"
|
|
86
87
|
},
|