@storybook/preact 0.0.0-pr-25303-sha-7c4e18ec → 0.0.0-pr-25474-sha-c0c8ae28
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storybook/preact",
|
3
|
-
"version": "0.0.0-pr-
|
3
|
+
"version": "0.0.0-pr-25474-sha-c0c8ae28",
|
4
4
|
"description": "Storybook Preact renderer",
|
5
5
|
"keywords": [
|
6
6
|
"storybook"
|
@@ -48,8 +48,8 @@
|
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
50
|
"@storybook/global": "^5.0.0",
|
51
|
-
"@storybook/preview-api": "0.0.0-pr-
|
52
|
-
"@storybook/types": "0.0.0-pr-
|
51
|
+
"@storybook/preview-api": "0.0.0-pr-25474-sha-c0c8ae28",
|
52
|
+
"@storybook/types": "0.0.0-pr-25474-sha-c0c8ae28",
|
53
53
|
"ts-dedent": "^2.0.0"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { fn } from '@storybook/test';
|
1
2
|
import { Button } from './Button';
|
2
3
|
|
3
4
|
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
|
@@ -9,6 +10,8 @@ export default {
|
|
9
10
|
backgroundColor: { control: 'color' },
|
10
11
|
onClick: { action: 'onClick' },
|
11
12
|
},
|
13
|
+
// Use `fn` to spy on the onClick arg, which will appear in the actions panel once invoked: https://storybook.js.org/docs/essentials/actions#action-args
|
14
|
+
args: { onClick: fn() },
|
12
15
|
};
|
13
16
|
|
14
17
|
// More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
|