mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat: Upgrade storybook to 9.1.6 (no-changelog) (#19550)
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "@n8n/storybook",
|
|
||||||
"private": true,
|
|
||||||
"version": "0.0.1",
|
|
||||||
"devDependencies": {
|
|
||||||
"@chromatic-com/storybook": "^3.2.5",
|
|
||||||
"@storybook/addon-a11y": "^8.6.4",
|
|
||||||
"@storybook/addon-actions": "^8.6.4",
|
|
||||||
"@storybook/addon-docs": "^8.6.4",
|
|
||||||
"@storybook/addon-essentials": "^8.6.4",
|
|
||||||
"@storybook/addon-interactions": "^8.6.4",
|
|
||||||
"@storybook/addon-links": "^8.6.4",
|
|
||||||
"@storybook/addon-themes": "^8.6.4",
|
|
||||||
"@storybook/blocks": "^8.6.4",
|
|
||||||
"@storybook/test": "^8.6.4",
|
|
||||||
"@storybook/vue3": "^8.6.4",
|
|
||||||
"@storybook/vue3-vite": "^8.6.4",
|
|
||||||
"chromatic": "^11.27.0",
|
|
||||||
"storybook": "^8.6.4"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
import { setup } from '@storybook/vue3';
|
|
||||||
import { withThemeByDataAttribute } from '@storybook/addon-themes';
|
|
||||||
|
|
||||||
import './storybook.scss';
|
|
||||||
// import '../src/css/tailwind/index.css';
|
|
||||||
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core';
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
||||||
import { fas } from '@fortawesome/free-solid-svg-icons';
|
import { fas } from '@fortawesome/free-solid-svg-icons';
|
||||||
|
import { sharedTags } from '@n8n/storybook/main';
|
||||||
|
import { withThemeByDataAttribute } from '@storybook/addon-themes';
|
||||||
|
import { setup } from '@storybook/vue3';
|
||||||
import ElementPlus from 'element-plus';
|
import ElementPlus from 'element-plus';
|
||||||
|
// @ts-expect-error no types
|
||||||
import lang from 'element-plus/dist/locale/en.mjs';
|
import lang from 'element-plus/dist/locale/en.mjs';
|
||||||
|
|
||||||
import { N8nPlugin } from '../src/plugin';
|
import { N8nPlugin } from '../src/plugin';
|
||||||
|
|
||||||
|
import './storybook.scss';
|
||||||
|
// import '../src/css/tailwind/index.css';
|
||||||
|
|
||||||
setup((app) => {
|
setup((app) => {
|
||||||
library.add(fas);
|
library.add(fas);
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ setup((app) => {
|
|||||||
locale: lang,
|
locale: lang,
|
||||||
});
|
});
|
||||||
|
|
||||||
app.use(N8nPlugin);
|
app.use(N8nPlugin, {});
|
||||||
});
|
});
|
||||||
|
|
||||||
export const parameters = {
|
export const parameters = {
|
||||||
@@ -83,3 +83,5 @@ export const decorators = [
|
|||||||
parentSelector: 'body',
|
parentSelector: 'body',
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
|
|
||||||
|
export const tags = sharedTags;
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
@use './fonts.scss';
|
@use './fonts.scss';
|
||||||
|
@use '../src/css/base.scss';
|
||||||
@use '../src/css/base.scss'; // @TODO CHECK IF NEEDED with (
|
|
||||||
// $font-path: 'element-ui/lib/theme-chalk/fonts'
|
|
||||||
//);
|
|
||||||
|
|
||||||
@use '../src/css/reset.scss';
|
@use '../src/css/reset.scss';
|
||||||
@use '../src/css/index.scss';
|
@use '../src/css/index.scss';
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import storybook from 'eslint-plugin-storybook';
|
||||||
|
|
||||||
import { defineConfig } from 'eslint/config';
|
import { defineConfig } from 'eslint/config';
|
||||||
import { frontendConfig } from '@n8n/eslint-config/frontend';
|
import { frontendConfig } from '@n8n/eslint-config/frontend';
|
||||||
|
|
||||||
@@ -49,4 +51,5 @@ export default defineConfig(
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
storybook.configs['flat/recommended'],
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import AssistantAvatar from './AssistantAvatar.vue';
|
import AssistantAvatar from './AssistantAvatar.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import AskAssistantButton from './AskAssistantButton.vue';
|
import AskAssistantButton from './AskAssistantButton.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import AskAssistantChat from './AskAssistantChat.vue';
|
import AskAssistantChat from './AskAssistantChat.vue';
|
||||||
import type { ChatUI } from '../../types/assistant';
|
import type { ChatUI } from '../../types/assistant';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import AssistantIcon from './AssistantIcon.vue';
|
import AssistantIcon from './AssistantIcon.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import AssistantLoadingMessage from './AssistantLoadingMessage.vue';
|
import AssistantLoadingMessage from './AssistantLoadingMessage.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import DemoComponent from './DemoComponent.vue';
|
import DemoComponent from './DemoComponent.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import AssistantText from './AssistantText.vue';
|
import AssistantText from './AssistantText.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import BetaTag from './BetaTag.vue';
|
import BetaTag from './BetaTag.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import BlinkingCursor from './BlinkingCursor.vue';
|
import BlinkingCursor from './BlinkingCursor.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import CodeDiff from './CodeDiff.vue';
|
import CodeDiff from './CodeDiff.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import InlineAskAssistantButton from './InlineAskAssistantButton.vue';
|
import InlineAskAssistantButton from './InlineAskAssistantButton.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nActionBox from './ActionBox.vue';
|
import N8nActionBox from './ActionBox.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nActionDropdown from './ActionDropdown.vue';
|
import N8nActionDropdown from './ActionDropdown.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nActionToggle from './ActionToggle.vue';
|
import N8nActionToggle from './ActionToggle.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nAlert from './Alert.vue';
|
import N8nAlert from './Alert.vue';
|
||||||
import N8nIcon from '../N8nIcon';
|
import N8nIcon from '../N8nIcon';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nAvatar from './Avatar.vue';
|
import N8nAvatar from './Avatar.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nBadge from './Badge.vue';
|
import N8nBadge from './Badge.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nBlockUi from './BlockUi.vue';
|
import N8nBlockUi from './BlockUi.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import type { IUser, UserAction } from '@n8n/design-system/types';
|
import type { IUser, UserAction } from '@n8n/design-system/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nButton from './Button.vue';
|
import N8nButton from './Button.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nCallout from './Callout.vue';
|
import N8nCallout from './Callout.vue';
|
||||||
import N8nLink from '../N8nLink';
|
import N8nLink from '../N8nLink';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nCard from './Card.vue';
|
import N8nCard from './Card.vue';
|
||||||
import N8nButton from '../N8nButton/Button.vue';
|
import N8nButton from '../N8nButton/Button.vue';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nCheckbox from './Checkbox.vue';
|
import N8nCheckbox from './Checkbox.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nCircleLoader from './CircleLoader.vue';
|
import N8nCircleLoader from './CircleLoader.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nColorPicker from './ColorPicker.vue';
|
import N8nColorPicker from './ColorPicker.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import { rows, columns } from './__tests__/data';
|
import { rows, columns } from './__tests__/data';
|
||||||
import N8nDatatable from './Datatable.vue';
|
import N8nDatatable from './Datatable.vue';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nExternalLink from './ExternalLink.vue';
|
import N8nExternalLink from './ExternalLink.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nFormBox from './FormBox.vue';
|
import N8nFormBox from './FormBox.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nFormInput from './FormInput.vue';
|
import N8nFormInput from './FormInput.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nFormInputs from './FormInputs.vue';
|
import N8nFormInputs from './FormInputs.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nHeading from './Heading.vue';
|
import N8nHeading from './Heading.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nIcon from './Icon.vue';
|
import N8nIcon from './Icon.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nIconButton from './IconButton.vue';
|
import N8nIconButton from './IconButton.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nIconPicker from './IconPicker.vue';
|
import N8nIconPicker from './IconPicker.vue';
|
||||||
import { type IconOrEmoji } from './types';
|
import { type IconOrEmoji } from './types';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nInfoAccordion from './InfoAccordion.vue';
|
import N8nInfoAccordion from './InfoAccordion.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nInfoTip from './InfoTip.vue';
|
import N8nInfoTip from './InfoTip.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import InlineTextEdit from './InlineTextEdit.vue';
|
import InlineTextEdit from './InlineTextEdit.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nInput from './Input.vue';
|
import N8nInput from './Input.vue';
|
||||||
import N8nIcon from '../N8nIcon';
|
import N8nIcon from '../N8nIcon';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nInputLabel from './InputLabel.vue';
|
import N8nInputLabel from './InputLabel.vue';
|
||||||
import N8nInput from '../N8nInput';
|
import N8nInput from '../N8nInput';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nInputNumber from './InputNumber.vue';
|
import N8nInputNumber from './InputNumber.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nKeyboardShorcut from './N8nKeyboardShortcut.vue';
|
import N8nKeyboardShorcut from './N8nKeyboardShortcut.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nLink from './Link.vue';
|
import N8nLink from './Link.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nLoading from './Loading.vue';
|
import N8nLoading from './Loading.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nMarkdown from './Markdown.vue';
|
import N8nMarkdown from './Markdown.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nMenu from './Menu.vue';
|
import N8nMenu from './Menu.vue';
|
||||||
import N8nCallout from '../N8nCallout';
|
import N8nCallout from '../N8nCallout';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import { ElMenu } from 'element-plus';
|
import { ElMenu } from 'element-plus';
|
||||||
|
|
||||||
import N8nMenuItem from '.';
|
import N8nMenuItem from '.';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import NavigationDropdown from './NavigationDropdown.vue';
|
import NavigationDropdown from './NavigationDropdown.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nNodeCreatorNode from './NodeCreatorNode.vue';
|
import N8nNodeCreatorNode from './NodeCreatorNode.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nNodeIcon from './NodeIcon.vue';
|
import N8nNodeIcon from './NodeIcon.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nNotice from './Notice.vue';
|
import N8nNotice from './Notice.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nPagination from './Pagination.vue';
|
import N8nPagination from './Pagination.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nPopover from './Popover.vue';
|
import N8nPopover from './Popover.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import N8nPopoverReka from './N8nPopoverReka.vue';
|
import N8nPopoverReka from './N8nPopoverReka.vue';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nPulse from './Pulse.vue';
|
import N8nPulse from './Pulse.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nRadioButtons from './RadioButtons.vue';
|
import N8nRadioButtons from './RadioButtons.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { ComponentInstance } from 'vue';
|
import type { ComponentInstance } from 'vue';
|
||||||
|
|
||||||
import N8nRecycleScroller from './RecycleScroller.vue';
|
import N8nRecycleScroller from './RecycleScroller.vue';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { type ActionOptions, action } from '@storybook/addon-actions';
|
import { type StoryFn } from '@storybook/vue3-vite';
|
||||||
import { type StoryFn } from '@storybook/vue3';
|
import { type ActionOptions, action } from 'storybook/actions';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import N8nResizeWrapper from './ResizeWrapper.vue';
|
import N8nResizeWrapper from './ResizeWrapper.vue';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nResizeableSticky from './ResizeableSticky.vue';
|
import N8nResizeableSticky from './ResizeableSticky.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nScrollArea from './N8nScrollArea.vue';
|
import N8nScrollArea from './N8nScrollArea.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nSelect from './Select.vue';
|
import N8nSelect from './Select.vue';
|
||||||
import N8nIcon from '../N8nIcon';
|
import N8nIcon from '../N8nIcon';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nSelectableList from './SelectableList.vue';
|
import N8nSelectableList from './SelectableList.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nSpinner from './Spinner.vue';
|
import N8nSpinner from './Spinner.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nSticky from './Sticky.vue';
|
import N8nSticky from './Sticky.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import type { SuggestedActionsProps } from './SuggestedActions.vue';
|
import type { SuggestedActionsProps } from './SuggestedActions.vue';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nTabs from './Tabs.vue';
|
import N8nTabs from './Tabs.vue';
|
||||||
import type { TabOptions } from '../../types/tabs';
|
import type { TabOptions } from '../../types/tabs';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nTag from './Tag.vue';
|
import N8nTag from './Tag.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nTags from './Tags.vue';
|
import N8nTags from './Tags.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nText from './Text.vue';
|
import N8nText from './Text.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nTooltip from './Tooltip.vue';
|
import N8nTooltip from './Tooltip.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nTree from './Tree.vue';
|
import N8nTree from './Tree.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import N8nUserInfo from './UserInfo.vue';
|
import N8nUserInfo from './UserInfo.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import N8nUserSelect from './UserSelect.vue';
|
import N8nUserSelect from './UserSelect.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/* eslint-disable @typescript-eslint/naming-convention */
|
/* eslint-disable @typescript-eslint/naming-convention */
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import UserStack from './UserStack.vue';
|
import UserStack from './UserStack.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { action } from '@storybook/addon-actions';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import type { StoryFn } from '@storybook/vue3';
|
import { action } from 'storybook/actions';
|
||||||
|
|
||||||
import type { IUser } from '@n8n/design-system/types';
|
import type { IUser } from '@n8n/design-system/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
import TableHeaderControlsButton from './TableHeaderControlsButton.vue';
|
import TableHeaderControlsButton from './TableHeaderControlsButton.vue';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type StoryFn } from '@storybook/vue3';
|
import { type StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import VariableTable from './VariableTable.vue';
|
import VariableTable from './VariableTable.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type StoryFn } from '@storybook/vue3';
|
import { type StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import ColorCircles from './ColorCircles.vue';
|
import ColorCircles from './ColorCircles.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type StoryFn } from '@storybook/vue3';
|
import { type StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import ColorCircles from './ColorCircles.vue';
|
import ColorCircles from './ColorCircles.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type StoryFn } from '@storybook/vue3';
|
import { type StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import Sizes from './Sizes.vue';
|
import Sizes from './Sizes.vue';
|
||||||
import VariableTable from './VariableTable.vue';
|
import VariableTable from './VariableTable.vue';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type StoryFn } from '@storybook/vue3';
|
import { type StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import Sizes from './Sizes.vue';
|
import Sizes from './Sizes.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { type StoryFn } from '@storybook/vue3';
|
import { type StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Utilities/Float',
|
title: 'Utilities/Float',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Utilities/Lists',
|
title: 'Utilities/Lists',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { StoryFn } from '@storybook/vue3';
|
import type { StoryFn } from '@storybook/vue3-vite';
|
||||||
|
|
||||||
import SpacingPreview from '../components/SpacingPreview.vue';
|
import SpacingPreview from '../components/SpacingPreview.vue';
|
||||||
|
|
||||||
|
|||||||
@@ -17,5 +17,5 @@
|
|||||||
"@n8n/utils*": ["../../../@n8n/utils/src*"]
|
"@n8n/utils*": ["../../../@n8n/utils/src*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src/**/*.ts", "src/**/*.vue"]
|
"include": ["src/**/*.ts", "src/**/*.vue", ".storybook/**/*.ts"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,12 +3,10 @@ import type { StorybookConfig } from '@storybook/vue3-vite';
|
|||||||
export const sharedConfig: StorybookConfig = {
|
export const sharedConfig: StorybookConfig = {
|
||||||
stories: ['../src/**/*.stories.ts'],
|
stories: ['../src/**/*.stories.ts'],
|
||||||
addons: [
|
addons: [
|
||||||
'@chromatic-com/storybook',
|
'storybook-dark-mode',
|
||||||
'@storybook/addon-a11y',
|
|
||||||
'@storybook/addon-essentials',
|
|
||||||
'@storybook/addon-interactions',
|
|
||||||
'@storybook/addon-links',
|
|
||||||
'@storybook/addon-themes',
|
'@storybook/addon-themes',
|
||||||
|
'@storybook/addon-links',
|
||||||
|
'@chromatic-com/storybook',
|
||||||
],
|
],
|
||||||
staticDirs: ['../public'],
|
staticDirs: ['../public'],
|
||||||
framework: {
|
framework: {
|
||||||
@@ -18,7 +16,6 @@ export const sharedConfig: StorybookConfig = {
|
|||||||
core: {
|
core: {
|
||||||
disableTelemetry: true,
|
disableTelemetry: true,
|
||||||
},
|
},
|
||||||
docs: {
|
|
||||||
autodocs: true,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const sharedTags: string[] = ['autodocs'];
|
||||||
19
packages/frontend/@n8n/storybook/package.json
Normal file
19
packages/frontend/@n8n/storybook/package.json
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "@n8n/storybook",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.0.1",
|
||||||
|
"devDependencies": {
|
||||||
|
"@chromatic-com/storybook": "^3.2.5",
|
||||||
|
"@storybook/addon-a11y": "^9.1.6",
|
||||||
|
"@storybook/addon-actions": "^9.0.8",
|
||||||
|
"@storybook/addon-docs": "^9.1.6",
|
||||||
|
"@storybook/addon-links": "^9.1.6",
|
||||||
|
"@storybook/addon-themes": "^9.1.6",
|
||||||
|
"@storybook/vue3": "^9.1.6",
|
||||||
|
"@storybook/vue3-vite": "^9.1.6",
|
||||||
|
"chromatic": "^11.27.0",
|
||||||
|
"eslint-plugin-storybook": "9.1.6",
|
||||||
|
"storybook": "^9.1.6",
|
||||||
|
"storybook-dark-mode": "^4.0.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -114,6 +114,7 @@
|
|||||||
"@n8n/typescript-config": "workspace:*",
|
"@n8n/typescript-config": "workspace:*",
|
||||||
"@n8n/vitest-config": "workspace:*",
|
"@n8n/vitest-config": "workspace:*",
|
||||||
"@pinia/testing": "^0.1.6",
|
"@pinia/testing": "^0.1.6",
|
||||||
|
"@storybook/types": "^8.6.14",
|
||||||
"@testing-library/vue": "catalog:frontend",
|
"@testing-library/vue": "catalog:frontend",
|
||||||
"@types/dateformat": "^3.0.0",
|
"@types/dateformat": "^3.0.0",
|
||||||
"@types/file-saver": "^2.0.1",
|
"@types/file-saver": "^2.0.1",
|
||||||
|
|||||||
7
packages/frontend/editor-ui/src/shims.d.ts
vendored
7
packages/frontend/editor-ui/src/shims.d.ts
vendored
@@ -5,6 +5,7 @@ import type { VNode, ComponentPublicInstance } from 'vue';
|
|||||||
import type { PartialDeep } from 'type-fest';
|
import type { PartialDeep } from 'type-fest';
|
||||||
import type { ExternalHooks } from '@/types/externalHooks';
|
import type { ExternalHooks } from '@/types/externalHooks';
|
||||||
import type { FrontendSettings } from '@n8n/api-types';
|
import type { FrontendSettings } from '@n8n/api-types';
|
||||||
|
import type { Plugin as PrettierPlugin } from 'prettier';
|
||||||
|
|
||||||
export {};
|
export {};
|
||||||
|
|
||||||
@@ -39,3 +40,9 @@ declare global {
|
|||||||
findLast(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T;
|
findLast(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare module 'prettier/plugins/estree' {
|
||||||
|
const plugin: PrettierPlugin;
|
||||||
|
export = plugin;
|
||||||
|
export default plugin;
|
||||||
|
}
|
||||||
|
|||||||
2522
pnpm-lock.yaml
generated
2522
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user