@aurelia/storybook 1.0.1 → 2.0.0

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.
Files changed (39) hide show
  1. package/README.md +12 -20
  2. package/apps/hello-world/.storybook/main.ts +27 -5
  3. package/apps/hello-world/package-lock.json +781 -3474
  4. package/apps/hello-world/package.json +12 -8
  5. package/apps/hello-world/src/stories/hello-world.stories.ts +6 -6
  6. package/apps/hello-world-webpack/.storybook/main.ts +0 -1
  7. package/apps/hello-world-webpack/package-lock.json +229 -2042
  8. package/apps/hello-world-webpack/package.json +8 -7
  9. package/apps/hello-world-webpack/src/hello-world.html +6 -0
  10. package/apps/hello-world-webpack/src/hello-world.ts +17 -0
  11. package/apps/hello-world-webpack/src/my-app.stories.ts +10 -7
  12. package/apps/hello-world-webpack/src/stories/hello-world.stories.ts +54 -0
  13. package/dist/index.js +65 -121
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +62 -115
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/preset.js +17 -10
  18. package/dist/preset.js.map +1 -1
  19. package/dist/preset.mjs +15 -1
  20. package/dist/preset.mjs.map +1 -1
  21. package/dist/preview/render.js +44 -124
  22. package/dist/preview/render.js.map +1 -1
  23. package/dist/preview/render.mjs +41 -116
  24. package/dist/preview/render.mjs.map +1 -1
  25. package/dist/preview/types.js +0 -1
  26. package/dist/preview/types.js.map +1 -1
  27. package/dist/preview.js +84 -44
  28. package/dist/preview.js.map +1 -1
  29. package/dist/preview.mjs +81 -39
  30. package/dist/preview.mjs.map +1 -1
  31. package/dist/webpack.js +1 -3
  32. package/dist/webpack.js.map +1 -1
  33. package/package.json +16 -19
  34. package/rollup.config.mjs +10 -8
  35. package/src/index.ts +28 -0
  36. package/src/preset.ts +20 -2
  37. package/src/preview/render.ts +49 -47
  38. package/src/preview.ts +1 -50
  39. package/tsconfig.json +1 -1
@@ -8,27 +8,31 @@
8
8
  },
9
9
  "license": "UNLICENSED",
10
10
  "dependencies": {
11
- "@aurelia/router": "^2.0.0-beta.24",
12
- "@aurelia/validation": "^2.0.0-beta.24",
13
- "@aurelia/validation-html": "^2.0.0-beta.24",
14
- "aurelia": "^2.0.0-beta.24"
11
+ "@aurelia/router": "^2.0.0-beta.25",
12
+ "@aurelia/validation": "^2.0.0-beta.25",
13
+ "@aurelia/validation-html": "^2.0.0-beta.25",
14
+ "aurelia": "^2.0.0-beta.25"
15
15
  },
16
16
  "devDependencies": {
17
- "@aurelia/storybook": "file:../..",
18
- "@aurelia/testing": "^2.0.0-beta.24",
19
- "@aurelia/vite-plugin": "^2.0.0-beta.24",
17
+ "@aurelia/storybook": "^1.0.2",
18
+ "@aurelia/testing": "^2.0.0-beta.25",
19
+ "@aurelia/vite-plugin": "^2.0.0-beta.25",
20
20
  "@storybook/addon-actions": "^9.0.0",
21
21
  "@storybook/addon-links": "^9.0.0",
22
22
  "@storybook/builder-vite": "^9.0.0",
23
23
  "@storybook/test": "^9.0.0-alpha.2",
24
- "storybook": "^9.0.0",
25
24
  "@tailwindcss/vite": "^4.0.0",
26
25
  "@types/node": "^22.10.2",
26
+ "@types/react": "^19.1.8",
27
+ "@types/react-dom": "^19.1.6",
27
28
  "eslint": "^9.17.0",
28
29
  "globals": "^15.14.0",
29
30
  "jsdom": "^25.0.1",
30
31
  "node-html-parser": "^7.0.1",
32
+ "react": "^19.1.0",
33
+ "react-dom": "^19.1.0",
31
34
  "sass": "^1.83.4",
35
+ "storybook": "^9.0.0",
32
36
  "stylelint": "^16.12.0",
33
37
  "stylelint-config-standard": "^36.0.1",
34
38
  "stylus": "^0.64.0",
@@ -1,5 +1,5 @@
1
1
  import { HelloWorld } from '../hello-world';
2
- import { action } from '@storybook/addon-actions';
2
+ import { fn } from '@storybook/test';
3
3
  import { userEvent, within } from '@storybook/test';
4
4
 
5
5
  const meta = {
@@ -18,15 +18,15 @@ export default meta;
18
18
 
19
19
  export const DefaultHelloWorld = {
20
20
  args: {
21
- message: "Hello from Storybook!",
22
- onIncrement: action('increment')
21
+ message: "Hello frof",
22
+ onIncrement: fn()
23
23
  }
24
24
  };
25
25
 
26
26
  export const InteractiveHelloWorld = {
27
27
  args: {
28
- message: "Try clicking the button!",
29
- onIncrement: action('increment')
28
+ message: "fsdfdddsdsdsdsdddddfdddd",
29
+ onIncrement: fn()
30
30
  },
31
31
  play: async ({ canvasElement }: { canvasElement: HTMLElement }) => {
32
32
  const canvas = within(canvasElement);
@@ -49,6 +49,6 @@ export const WithCustomTemplate = {
49
49
  template: `<hello-world message.bind="message">Click me!</hello-world>`
50
50
  }),
51
51
  args: {
52
- message: "This is a custom message"
52
+ message: "This is a custom messageddd"
53
53
  }
54
54
  };
@@ -1,7 +1,6 @@
1
1
  const config = {
2
2
  stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
3
3
  addons: [
4
- "@storybook/addon-webpack5-compiler-swc",
5
4
  "@storybook/addon-links"
6
5
  ],
7
6
  framework: {