Skip to content

Commit

Permalink
Merge pull request #207 from storybookjs/203-bug-story-level-tags-are…
Browse files Browse the repository at this point in the history
…-ignored

Add support for story-level tags
  • Loading branch information
JReinhold authored Sep 1, 2024
2 parents 765f2a0 + 1873b6d commit cda2e91
Show file tree
Hide file tree
Showing 8 changed files with 2,192 additions and 1,169 deletions.
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@
},
"devDependencies": {
"@auto-it/released": "^10.32.6",
"@storybook/addon-actions": "^8.0.0-rc.2",
"@storybook/addon-essentials": "^8.0.0-rc.2",
"@storybook/addon-interactions": "^8.0.0-rc.2",
"@storybook/blocks": "^8.0.0-rc.2",
"@storybook/client-logger": "^8.0.0-rc.2",
"@storybook/components": "^8.0.0-rc.2",
"@storybook/addon-actions": "~8.1.0",
"@storybook/addon-essentials": "~8.1.0",
"@storybook/addon-interactions": "~8.1.0",
"@storybook/blocks": "~8.1.0",
"@storybook/client-logger": "~8.1.0",
"@storybook/components": "~8.1.0",
"@storybook/csf": "^0.1.1",
"@storybook/eslint-config-storybook": "^3.1.2",
"@storybook/preview-api": "^8.0.0-rc.2",
"@storybook/svelte": "^8.0.0-rc.2",
"@storybook/svelte-vite": "^8.0.0-rc.2",
"@storybook/test": "^8.0.0-rc.2",
"@storybook/theming": "^8.0.0-rc.2",
"@storybook/preview-api": "~8.1.0",
"@storybook/svelte": "~8.1.0",
"@storybook/svelte-vite": "~8.1.0",
"@storybook/test": "~8.1.0",
"@storybook/theming": "~8.1.0",
"@sveltejs/kit": "^2.5.7",
"@sveltejs/package": "^2.2.0",
"@sveltejs/vite-plugin-svelte": "^2.4.2",
Expand All @@ -81,7 +81,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rimraf": "^3.0.2",
"storybook": "^8.0.0-rc.2",
"storybook": "~8.1.0",
"svelte": "^4.2.2",
"svelte-check": "^3.5.0",
"svelte-jester": "^2.3.2",
Expand Down
3,072 changes: 1,956 additions & 1,116 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

14 changes: 11 additions & 3 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,15 @@ interface StoryProps extends BaseAnnotations<any, DecoratorReturnType, WebRender
* If source is true, then the source of the story will be used instead.
* If source is a string, it replaces the source of the story.
*/
source?: boolean | string
source?: boolean | string;
/**
* List of tags to add to the story.
*
* It must be a static array of strings.
*
* @example tags={['!dev', 'autodocs']}
*/
tags?: string[];
}

interface TemplateProps extends BaseAnnotations<any, DecoratorReturnType> {
Expand All @@ -54,9 +62,9 @@ interface MetaProps extends BaseMeta<any>, BaseAnnotations<any, DecoratorReturnT
/**
* List of tags to add to the stories.
*
* It should be a static array of strings.
* It must be a static array of strings.
*
* @example tags={['autodocs']}
* @example tags={['!dev', 'autodocs']}
*/
tags?: string[];
}
Expand Down
Loading

0 comments on commit cda2e91

Please sign in to comment.