@storybook/html 8.0.0-rc.3 → 8.0.0-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/html",
3
- "version": "8.0.0-rc.3",
3
+ "version": "8.0.0-rc.4",
4
4
  "description": "Storybook HTML renderer",
5
5
  "keywords": [
6
6
  "storybook"
@@ -47,10 +47,10 @@
47
47
  "prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
48
48
  },
49
49
  "dependencies": {
50
- "@storybook/docs-tools": "8.0.0-rc.3",
50
+ "@storybook/docs-tools": "8.0.0-rc.4",
51
51
  "@storybook/global": "^5.0.0",
52
- "@storybook/preview-api": "8.0.0-rc.3",
53
- "@storybook/types": "8.0.0-rc.3",
52
+ "@storybook/preview-api": "8.0.0-rc.4",
53
+ "@storybook/types": "8.0.0-rc.4",
54
54
  "ts-dedent": "^2.0.0"
55
55
  },
56
56
  "devDependencies": {
@@ -1,3 +1,4 @@
1
+ import { fn } from '@storybook/test';
1
2
  import { createHeader } from './Header';
2
3
 
3
4
  export default {
@@ -9,11 +10,10 @@ export default {
9
10
  // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
10
11
  layout: 'fullscreen',
11
12
  },
12
- // More on argTypes: https://storybook.js.org/docs/api/argtypes
13
- argTypes: {
14
- onLogin: { action: 'onLogin' },
15
- onLogout: { action: 'onLogout' },
16
- onCreateAccount: { action: 'onCreateAccount' },
13
+ args: {
14
+ onLogin: fn(),
15
+ onLogout: fn(),
16
+ onCreateAccount: fn(),
17
17
  },
18
18
  };
19
19
 
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/html';
2
+ import { fn } from '@storybook/test';
2
3
  import type { HeaderProps } from './Header';
3
4
  import { createHeader } from './Header';
4
5
 
@@ -12,10 +13,10 @@ const meta: Meta<HeaderProps> = {
12
13
  layout: 'fullscreen',
13
14
  },
14
15
  // More on argTypes: https://storybook.js.org/docs/api/argtypes
15
- argTypes: {
16
- onLogin: { action: 'onLogin' },
17
- onLogout: { action: 'onLogout' },
18
- onCreateAccount: { action: 'onCreateAccount' },
16
+ args: {
17
+ onLogin: fn(),
18
+ onLogout: fn(),
19
+ onCreateAccount: fn(),
19
20
  },
20
21
  };
21
22
 
@@ -1,4 +1,5 @@
1
1
  import type { Meta, StoryObj } from '@storybook/html';
2
+ import { fn } from '@storybook/test';
2
3
  import type { HeaderProps } from './Header';
3
4
  import { createHeader } from './Header';
4
5
 
@@ -12,10 +13,10 @@ const meta = {
12
13
  layout: 'fullscreen',
13
14
  },
14
15
  // More on argTypes: https://storybook.js.org/docs/api/argtypes
15
- argTypes: {
16
- onLogin: { action: 'onLogin' },
17
- onLogout: { action: 'onLogout' },
18
- onCreateAccount: { action: 'onCreateAccount' },
16
+ args: {
17
+ onLogin: fn(),
18
+ onLogout: fn(),
19
+ onCreateAccount: fn(),
19
20
  },
20
21
  } satisfies Meta<HeaderProps>;
21
22