@storybook/addon-svelte-csf 3.0.3 → 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 +4 -4
- package/package.json +14 -14
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SvelteComponent } from 'svelte'
|
|
2
2
|
import type { Addon_BaseMeta as BaseMeta, Addon_BaseAnnotations as BaseAnnotations, StoryContext, WebRenderer } from '@storybook/types';
|
|
3
3
|
|
|
4
4
|
|
|
@@ -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,17 +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.
|
|
60
|
+
"@storybook/types": "^7.0.27",
|
|
61
61
|
"auto": "^10.43.0",
|
|
62
62
|
"babel-jest": "^29.5.0",
|
|
63
63
|
"babel-loader": "^8.1.0",
|
|
@@ -70,18 +70,18 @@
|
|
|
70
70
|
"react": "^17.0.1",
|
|
71
71
|
"react-dom": "^17.0.1",
|
|
72
72
|
"rimraf": "^3.0.2",
|
|
73
|
-
"sb": "^7.0.
|
|
74
|
-
"svelte": "^
|
|
73
|
+
"sb": "^7.0.27",
|
|
74
|
+
"svelte": "^4.0.0",
|
|
75
75
|
"svelte-jester": "^2.3.2",
|
|
76
76
|
"svelte-loader": "^3.1.7",
|
|
77
|
-
"typescript": "^
|
|
77
|
+
"typescript": "^5.0.0",
|
|
78
78
|
"vite": "^3.1.4"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@storybook/svelte": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
|
|
82
82
|
"@storybook/theming": "^7.0.0-beta.0 || ^7.0.0-rc.0 || ^7.0.0",
|
|
83
83
|
"@sveltejs/vite-plugin-svelte": "^1.0.0 || ^2.0.0",
|
|
84
|
-
"svelte": "^3.50.0",
|
|
84
|
+
"svelte": "^3.50.0 || ^4.0.0",
|
|
85
85
|
"svelte-loader": "^3.1.2",
|
|
86
86
|
"vite": "^3.0.0 || ^4.0.0"
|
|
87
87
|
},
|