Skip to content

Commit 8626865

Browse files
Fixed workflow build
1 parent 9e7114a commit 8626865

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

.storybook/main.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ const config = {
22
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
33
addons: ['@storybook/addon-links', '@storybook/addon-docs'],
44
framework: {
5-
name: '@storybook/web-components-vite',
6-
options: {},
5+
name: '@stencil/storybook-plugin',
76
},
87
managerHead: (head: string) => `
98
${head}
@@ -13,14 +12,6 @@ const config = {
1312
${head}
1413
<base href="./" />
1514
`,
16-
typescript: {
17-
check: false,
18-
reactDocgen: 'react-docgen-typescript',
19-
reactDocgenTypescriptOptions: {
20-
shouldExtractLiteralValuesFromEnum: true,
21-
propFilter: (prop: any) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
22-
},
23-
},
2415
};
2516

2617
export default config;

.storybook/preview.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import type { Preview } from '@storybook/web-components';
2-
import { html } from 'lit';
1+
/** @jsx h */
2+
import { h } from '@stencil/core';
3+
import type { Preview } from '@stencil/storybook-plugin';
34

45
import { defineCustomElements } from '../dist/web-components';
56

@@ -10,13 +11,11 @@ import './tailwind.css';
1011
defineCustomElements();
1112

1213
export const decorators: Preview['decorators'] = [
13-
(story, context) => {
14-
return html`
15-
<div data-mvx-theme="mvx:${context.globals.backgrounds.value}-theme">
16-
${story()}
17-
</div>
18-
`;
19-
},
14+
(Story, context) => (
15+
<div data-mvx-theme={`mvx:${context.globals.backgrounds.value}-theme`}>
16+
<Story />
17+
</div>
18+
),
2019
];
2120

2221
export const initialGlobals: Preview['initialGlobals'] = {

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,9 @@
101101
"@rollup/plugin-image": "^3.0.3",
102102
"@stencil/sass": "^3.0.12",
103103
"@stencil/store": "2.0.16",
104-
"@storybook/addon-docs": "8.4.7",
105-
"@storybook/addon-links": "8.4.7",
106-
"@storybook/web-components-vite": "8.4.7",
107-
"lit": "^3.0.0",
104+
"@stencil/storybook-plugin": "^0.4.2",
105+
"@storybook/addon-docs": "9.1.7",
106+
"@storybook/addon-links": "9.1.7",
108107
"@tailwindcss/cli": "4.0.17",
109108
"@tailwindcss/postcss": "4.1.3",
110109
"@types/jest": "^29.5.14",
@@ -115,7 +114,7 @@
115114
"@typescript-eslint/parser": "^8.23.0",
116115
"eslint": "^9.19.0",
117116
"eslint-plugin-simple-import-sort": "^12.1.1",
118-
"eslint-plugin-storybook": "0.10.2",
117+
"eslint-plugin-storybook": "9.1.7",
119118
"globals": "^15.14.0",
120119
"jest": "^29.7.0",
121120
"jest-cli": "^29.7.0",
@@ -125,7 +124,7 @@
125124
"rollup-plugin-node-polyfills": "^0.2.1",
126125
"sass-embedded": "^1.85.1",
127126
"stencil-tailwind-plugin": "2.0.5",
128-
"storybook": "^8.4.7",
127+
"storybook": "^9.1.7",
129128
"tailwindcss": "4.0.15",
130129
"tsc-alias": "^1.8.16",
131130
"typescript": "^5.7.3",

0 commit comments

Comments
 (0)