@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.
- package/README.md +12 -20
- package/apps/hello-world/.storybook/main.ts +27 -5
- package/apps/hello-world/package-lock.json +781 -3474
- package/apps/hello-world/package.json +12 -8
- package/apps/hello-world/src/stories/hello-world.stories.ts +6 -6
- package/apps/hello-world-webpack/.storybook/main.ts +0 -1
- package/apps/hello-world-webpack/package-lock.json +229 -2042
- package/apps/hello-world-webpack/package.json +8 -7
- package/apps/hello-world-webpack/src/hello-world.html +6 -0
- package/apps/hello-world-webpack/src/hello-world.ts +17 -0
- package/apps/hello-world-webpack/src/my-app.stories.ts +10 -7
- package/apps/hello-world-webpack/src/stories/hello-world.stories.ts +54 -0
- package/dist/index.js +65 -121
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -115
- package/dist/index.mjs.map +1 -1
- package/dist/preset.js +17 -10
- package/dist/preset.js.map +1 -1
- package/dist/preset.mjs +15 -1
- package/dist/preset.mjs.map +1 -1
- package/dist/preview/render.js +44 -124
- package/dist/preview/render.js.map +1 -1
- package/dist/preview/render.mjs +41 -116
- package/dist/preview/render.mjs.map +1 -1
- package/dist/preview/types.js +0 -1
- package/dist/preview/types.js.map +1 -1
- package/dist/preview.js +84 -44
- package/dist/preview.js.map +1 -1
- package/dist/preview.mjs +81 -39
- package/dist/preview.mjs.map +1 -1
- package/dist/webpack.js +1 -3
- package/dist/webpack.js.map +1 -1
- package/package.json +16 -19
- package/rollup.config.mjs +10 -8
- package/src/index.ts +28 -0
- package/src/preset.ts +20 -2
- package/src/preview/render.ts +49 -47
- package/src/preview.ts +1 -50
- 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.
|
|
12
|
-
"@aurelia/validation": "^2.0.0-beta.
|
|
13
|
-
"@aurelia/validation-html": "^2.0.0-beta.
|
|
14
|
-
"aurelia": "^2.0.0-beta.
|
|
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": "
|
|
18
|
-
"@aurelia/testing": "^2.0.0-beta.
|
|
19
|
-
"@aurelia/vite-plugin": "^2.0.0-beta.
|
|
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 {
|
|
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
|
|
22
|
-
onIncrement:
|
|
21
|
+
message: "Hello frof",
|
|
22
|
+
onIncrement: fn()
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
export const InteractiveHelloWorld = {
|
|
27
27
|
args: {
|
|
28
|
-
message: "
|
|
29
|
-
onIncrement:
|
|
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
|
|
52
|
+
message: "This is a custom messageddd"
|
|
53
53
|
}
|
|
54
54
|
};
|