@aurelia/storybook 1.0.0 → 1.0.1

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.
@@ -14,18 +14,14 @@
14
14
  "aurelia": "^2.0.0-beta.24"
15
15
  },
16
16
  "devDependencies": {
17
- "@aurelia/storybook": "^0.1.1",
17
+ "@aurelia/storybook": "file:../..",
18
18
  "@aurelia/testing": "^2.0.0-beta.24",
19
19
  "@aurelia/vite-plugin": "^2.0.0-beta.24",
20
- "@storybook/addon-actions": "^8.5.3",
21
- "@storybook/addon-essentials": "^8.5.3",
22
- "@storybook/addon-interactions": "^8.5.3",
23
- "@storybook/addon-links": "^8.5.3",
24
- "@storybook/builder-vite": "^8.5.3",
25
- "@storybook/core-common": "^8.5.3",
26
- "@storybook/preview-api": "^8.5.3",
27
- "@storybook/testing-library": "^0.2.1",
28
- "@storybook/types": "^8.5.3",
20
+ "@storybook/addon-actions": "^9.0.0",
21
+ "@storybook/addon-links": "^9.0.0",
22
+ "@storybook/builder-vite": "^9.0.0",
23
+ "@storybook/test": "^9.0.0-alpha.2",
24
+ "storybook": "^9.0.0",
29
25
  "@tailwindcss/vite": "^4.0.0",
30
26
  "@types/node": "^22.10.2",
31
27
  "eslint": "^9.17.0",
@@ -1,11 +1,11 @@
1
1
  import { HelloWorld } from '../hello-world';
2
2
  import { action } from '@storybook/addon-actions';
3
- import { userEvent, within } from '@storybook/testing-library';
3
+ import { userEvent, within } from '@storybook/test';
4
4
 
5
5
  const meta = {
6
6
  title: 'Example/HelloWorld',
7
7
  component: HelloWorld,
8
- render: (args) => ({
8
+ render: () => ({
9
9
  template: `<hello-world message.bind="message" on-increment.bind="onIncrement"></hello-world>`,
10
10
  }),
11
11
  argTypes: {
@@ -28,9 +28,10 @@ export const InteractiveHelloWorld = {
28
28
  message: "Try clicking the button!",
29
29
  onIncrement: action('increment')
30
30
  },
31
- play: async ({ canvasElement }) => {
31
+ play: async ({ canvasElement }: { canvasElement: HTMLElement }) => {
32
32
  const canvas = within(canvasElement);
33
33
  const button = canvas.getByRole('button');
34
+ // Simulate three button clicks
34
35
  await userEvent.click(button);
35
36
  await userEvent.click(button);
36
37
  await userEvent.click(button);
@@ -44,7 +45,7 @@ export const NoArgs = {
44
45
  };
45
46
 
46
47
  export const WithCustomTemplate = {
47
- render: (args) => ({
48
+ render: () => ({
48
49
  template: `<hello-world message.bind="message">Click me!</hello-world>`
49
50
  }),
50
51
  args: {
@@ -1,10 +1,8 @@
1
- /** @type { import('@storybook/core-common').StorybookConfig } */
2
1
  const config = {
3
2
  stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
4
3
  addons: [
5
4
  "@storybook/addon-webpack5-compiler-swc",
6
- "@storybook/addon-links",
7
- "@storybook/addon-essentials"
5
+ "@storybook/addon-links"
8
6
  ],
9
7
  framework: {
10
8
  name: '@aurelia/storybook',