Skip to content

Commit

Permalink
Insatll storybook 8 (#1791)
Browse files Browse the repository at this point in the history
* Insatll storybook 8

* Add @babel/plugin-proposal-private-property-in-object to package.json to avoid the error as https://stackoverflow.com/a/76669429

* Format
  • Loading branch information
whitphx authored Sep 14, 2024
1 parent de3c44d commit cb5fa88
Show file tree
Hide file tree
Showing 16 changed files with 22,657 additions and 43,770 deletions.
1 change: 1 addition & 0 deletions streamlit_webrtc/frontend/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module.exports = {
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:storybook/recommended",
],
globals: {
Atomics: "readonly",
Expand Down
2 changes: 2 additions & 0 deletions streamlit_webrtc/frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

*storybook.log
10 changes: 0 additions & 10 deletions streamlit_webrtc/frontend/.storybook/main.js

This file was deleted.

19 changes: 19 additions & 0 deletions streamlit_webrtc/frontend/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { StorybookConfig } from "@storybook/react-webpack5";

const config: StorybookConfig = {
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
addons: [
"@storybook/preset-create-react-app",
"@storybook/addon-onboarding",
"@storybook/addon-links",
"@storybook/addon-essentials",
"@chromatic-com/storybook",
"@storybook/addon-interactions",
],
framework: {
name: "@storybook/react-webpack5",
options: {},
},
staticDirs: ["../public"],
};
export default config;
9 changes: 0 additions & 9 deletions streamlit_webrtc/frontend/.storybook/preview.js

This file was deleted.

14 changes: 14 additions & 0 deletions streamlit_webrtc/frontend/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { Preview } from "@storybook/react";

const preview: Preview = {
parameters: {
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
};

export default preview;
Loading

0 comments on commit cb5fa88

Please sign in to comment.