@storybook/preact 7.0.2 → 7.0.3
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.0.3",
|
4
4
|
"description": "Storybook Preact renderer",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -48,10 +48,10 @@
|
|
48
48
|
"prep": "../../../scripts/prepare/bundle.ts"
|
49
49
|
},
|
50
50
|
"dependencies": {
|
51
|
-
"@storybook/core-client": "7.0.
|
51
|
+
"@storybook/core-client": "7.0.3",
|
52
52
|
"@storybook/global": "^5.0.0",
|
53
|
-
"@storybook/preview-api": "7.0.
|
54
|
-
"@storybook/types": "7.0.
|
53
|
+
"@storybook/preview-api": "7.0.3",
|
54
|
+
"@storybook/types": "7.0.3",
|
55
55
|
"ts-dedent": "^2.0.0"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
@@ -74,5 +74,5 @@
|
|
74
74
|
],
|
75
75
|
"platform": "browser"
|
76
76
|
},
|
77
|
-
"gitHead": "
|
77
|
+
"gitHead": "71877c1f4ba6b2d8829adc200a9c4bb09f7bfc37"
|
78
78
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Button } from './Button';
|
2
2
|
|
3
|
-
// More on how to set up stories at: https://storybook.js.org/docs/
|
3
|
+
// More on how to set up stories at: https://storybook.js.org/docs/preact/writing-stories/introduction
|
4
4
|
export default {
|
5
5
|
title: 'Example/Button',
|
6
6
|
component: Button,
|
@@ -11,7 +11,7 @@ export default {
|
|
11
11
|
},
|
12
12
|
};
|
13
13
|
|
14
|
-
// More on writing stories with args: https://storybook.js.org/docs/
|
14
|
+
// More on writing stories with args: https://storybook.js.org/docs/preact/writing-stories/args
|
15
15
|
export const Primary = {
|
16
16
|
args: {
|
17
17
|
primary: true,
|
@@ -3,10 +3,10 @@ import { Header } from './Header';
|
|
3
3
|
export default {
|
4
4
|
title: 'Example/Header',
|
5
5
|
component: Header,
|
6
|
-
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/
|
6
|
+
// This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/preact/writing-docs/autodocs
|
7
7
|
tags: ['autodocs'],
|
8
8
|
parameters: {
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/preact/configure/story-layout
|
10
10
|
layout: 'fullscreen',
|
11
11
|
},
|
12
12
|
argTypes: {
|
@@ -6,14 +6,14 @@ export default {
|
|
6
6
|
title: 'Example/Page',
|
7
7
|
component: Page,
|
8
8
|
parameters: {
|
9
|
-
// More on how to position stories at: https://storybook.js.org/docs/
|
9
|
+
// More on how to position stories at: https://storybook.js.org/docs/preact/configure/story-layout
|
10
10
|
layout: 'fullscreen',
|
11
11
|
},
|
12
12
|
};
|
13
13
|
|
14
14
|
export const LoggedOut = {};
|
15
15
|
|
16
|
-
// More on interaction testing: https://storybook.js.org/docs/
|
16
|
+
// More on interaction testing: https://storybook.js.org/docs/preact/writing-tests/interaction-testing
|
17
17
|
export const LoggedIn = {
|
18
18
|
play: async ({ canvasElement }) => {
|
19
19
|
const canvas = within(canvasElement);
|