From 340feeac2a105e0782cae0d815bf056d4d7b7de9 Mon Sep 17 00:00:00 2001 From: NasgulNexus Date: Fri, 17 Jan 2025 11:15:47 +0100 Subject: [PATCH 1/3] fix: hide stotybook actions --- .storybook/preview.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 8e2cd876..ed56225c 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -3,13 +3,8 @@ import {withTheme, withLang} from './decorators'; export const decorators = [withTheme, withLang]; export const parameters = { - actions: {argTypesRegex: '^on[A-Z].*'}, - controls: { - matchers: { - color: /(background|color)$/i, - date: /Date$/, - }, - }, + controls: {disable: true}, + actions: {disable: true}, }; export const globalTypes = { @@ -37,4 +32,4 @@ export const globalTypes = { ], }, }, -} +}; From 655e3f7f633beabe6fc14d8dab8479e32c1974f9 Mon Sep 17 00:00:00 2001 From: NasgulNexus Date: Tue, 28 Jan 2025 16:01:56 +0100 Subject: [PATCH 2/3] fix: hide controls and actions --- .storybook/main.ts | 11 ++++++++++- .storybook/preview.ts | 16 ++++++++++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/.storybook/main.ts b/.storybook/main.ts index a8fb1705..f7963393 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -4,7 +4,16 @@ const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin'); const config: StorybookConfig = { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], - addons: ['@storybook/addon-essentials', '@storybook/preset-scss', '@storybook/addon-docs'], + addons: [ + { + name: '@storybook/addon-essentials', + options: { + controls: false, + actions: false, + }, + }, + '@storybook/preset-scss', + ], framework: { name: '@storybook/react-webpack5', options: {fastRefresh: true}, diff --git a/.storybook/preview.ts b/.storybook/preview.ts index ed56225c..46f3b714 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -2,11 +2,19 @@ import {withTheme, withLang} from './decorators'; export const decorators = [withTheme, withLang]; -export const parameters = { - controls: {disable: true}, - actions: {disable: true}, +/* export const parameters = { + options: { + showPanel: false, + controls: {expanded: false}, + }, + previewTabs: { + docs: {hidden: true}, + 'storybook/docs/panel': { + hidden: true, + }, + }, }; - + */ export const globalTypes = { theme: { defaultValue: 'light', From 3b3799adcc2158cbaf3c78d42503584cb1b5a687 Mon Sep 17 00:00:00 2001 From: NasgulNexus Date: Tue, 28 Jan 2025 16:03:08 +0100 Subject: [PATCH 3/3] fix: delete commit --- .storybook/preview.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.storybook/preview.ts b/.storybook/preview.ts index 46f3b714..cdde3314 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -2,19 +2,6 @@ import {withTheme, withLang} from './decorators'; export const decorators = [withTheme, withLang]; -/* export const parameters = { - options: { - showPanel: false, - controls: {expanded: false}, - }, - previewTabs: { - docs: {hidden: true}, - 'storybook/docs/panel': { - hidden: true, - }, - }, -}; - */ export const globalTypes = { theme: { defaultValue: 'light',