chore(deps): update dependency @storybook/addon-svelte-csf to v5.0.4 #197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
=5.0.0-next.28->=5.0.4Release Notes
storybookjs/addon-svelte-csf (@storybook/addon-svelte-csf)
v5.0.4Compare Source
🐛 Bug Fix
'play-fn'-tag to stories with play-functions #317 (@JReinhold)Authors: 1
v5.0.3Compare Source
🐛 Bug Fix
Authors: 1
v5.0.2Compare Source
🐛 Bug Fix
Authors: 2
v5.0.1Compare Source
🐛 Bug Fix
metain stories #309 (@xeho91)Authors: 1
v5.0.0Compare Source
Release Notes
Breaking: Add support for
renderindefineMeta, replacingsetTemplate-function (#295)setTemplate-function removed in favor ofrenderindefineMetaThe
setTemplate-function has been removed. Instead reference your default snippet with therender-property indefineMeta:This new API achieves the same thing, but in a less verbose way, and is closer aligned with Storybook's regular CSF. 🎉
Breaking: Rename
childrenprop totemplate, requireasChildfor static stories (#228)This release contains breaking changes related to the
children-API. The legacy API stays as-is to maintain backwards compatibility.childrenrenamed totemplateThe
children-prop andchildren-snippet onStoryhas been renamed totemplate, to align better with Svelte's API and not be confused with Svelte's defaultchildren-snippet. If you have any stories using thechildrenprop or snippet, you need to migrate them:{#snippet template()} ... {/snippet} -<Story name="MyStory" children={template} /> +<Story name="MyStory" template={template} /> <Story name="MyStory"> - {#snippet children(args)} + {#snippet template(args)} <MyComponent /> {/snippet} </Story>Storychildren are now forwarded to componentsPreviously, to define static stories, you would just add children to a
Story, and they would be the full story. To make it easier to passchildrento your components in stories, the children are now instead forwarded to the component instead of replacing it completely.Previously:
Now:
To get the same behavior as previously, a new
asChildboolean prop has been introduced on theStorycomponent.asChildis a common prop in UI libraries, where you want thechildrento be the output, instead of just being children of the Component. By adding that you can get the old behavior back, when you need more control over what the story renders:Require Storybook 8.2.0 and above, support Storybook 9.0.0 prereleases (#284)
The addon now requires Storybook
8.2.0and upwards (was previously 8.0.0), and has a peer dependency on thestorybook-package. That package should always be in your project anyway though.💥 Breaking Change
renderindefineMeta, replacingsetTemplate-function #295 (@JReinhold)childrenprop totemplate, requireasChildfor static stories #228 (@xeho91 @JReinhold)@storybook/docs-toolsdependency #190 (@JReinhold)🚀 Enhancement
'svelte-csf'tag to all Svelte CSF stories #297 (@JReinhold)🐛 Bug Fix
childrennot overridingargs.children#298 (@JReinhold)getAbsolutePath#296 (@JReinhold)metano longer destructurable fromdefineMeta()call #244 (@xeho91 @JReinhold)sourceprop when value isTemplateLiteral#245 (@xeho91)postenforcement #241 (@xeho91)@sveltejs/vite-plugin-sveltev5 #237 (@JReinhold)parametersattribute from legacy<Story>being removed #224 (@xeho91)enhanceRollupErrorin Vite #222 (@JReinhold)context="module"withmodule#217 (@xeho91)autodocstag issue and extractingrawCode#201 (@xeho91)🏠 Internal
mainandnext#305 (@xeho91 @JReinhold @ndelangen @storybook-bot @valentinpalkovic @bichikim @rChaoz @yannbf)svelte-preprocess#300 (@xeho91)@storybook/experimental-addon-testto repo (internal) #263 (@JReinhold)📝 Documentation
asChildlink in ERRORS.md #292 (@JReinhold)🧪 Tests
vitestandvitedependencies &jsdom->happy-dom#230 (@xeho91 @JReinhold)Authors: 12
v5.0.0-next.30Compare Source
🐛 Bug Fix
🏠 Internal
svelte-preprocess#300 (@xeho91)📝 Documentation
Authors: 2
v5.0.0-next.29Compare Source
Release Notes
Breaking: Add support for
renderindefineMeta, replacingsetTemplate-function (#295)setTemplate-function removed in favor ofrenderindefineMetaThe
setTemplate-function has been removed. Instead reference your default snippet with therender-property indefineMeta:This new API achieves the same thing, but in a less verbose way, and is closer aligned with Storybook's regular CSF. 🎉
Breaking: Rename
childrenprop totemplate, requireasChildfor static stories (#228)This release contains breaking changes related to the
children-API. The legacy API stays as-is to maintain backwards compatibility.childrenrenamed totemplateThe
children-prop andchildren-snippet onStoryhas been renamed totemplate, to align better with Svelte's API and not be confused with Svelte's defaultchildren-snippet. If you have any stories using thechildrenprop or snippet, you need to migrate them:{#snippet template()} ... {/snippet} -<Story name="MyStory" children={template} /> +<Story name="MyStory" template={template} /> <Story name="MyStory"> - {#snippet children(args)} + {#snippet template(args)} <MyComponent /> {/snippet} </Story>Storychildren are now forwarded to componentsPreviously, to define static stories, you would just add children to a
Story, and they would be the full story. To make it easier to passchildrento your components in stories, the children are now instead forwarded to the component instead of replacing it completely.Previously:
Now:
To get the same behavior as previously, a new
asChildboolean prop has been introduced on theStorycomponent.asChildis a common prop in UI libraries, where you want thechildrento be the output, instead of just being children of the Component. By adding that you can get the old behavior back, when you need more control over what the story renders:💥 Breaking Change
renderindefineMeta, replacingsetTemplate-function #295 (@JReinhold)childrenprop totemplate, requireasChildfor static stories #228 (@xeho91 @JReinhold)🚀 Enhancement
'svelte-csf'tag to all Svelte CSF stories #297 (@JReinhold)🐛 Bug Fix
childrennot overridingargs.children#298 (@JReinhold)getAbsolutePath#296 (@JReinhold)🏠 Internal
📝 Documentation
asChildlink in ERRORS.md #292 (@JReinhold)Authors: 3
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.