Open xeho91 opened 3 months ago
@JReinhold
I got tests working. I'm encountering the issue with Chromatic CI which I can't figure out. I don't believe it's related to my changes.
What left is:
legacyTemplate
.And maybe improve test (stories) for legacy API, because I got a feeling you don't want to provide examples for legacy API, right?
@JReinhold PR is ready for review.
Phew, there were some issues so hard to spot, because of missing type support from svelte/compiler
on their AST nodes (reference)
Two requests to put attention to:
Dependencies
Requires #181 to be merged first.
Objectives
Support for legacy components for backward compatibility:
<Meta>
<Meta>
todefineMeta
& insertion into<script context="module">
<Story>
let:args
&let:context
directives to innerchildren
snippet blockautodocs
prop totags={["autodocs"]}
source
by removing when is a shorthand or toparameters.docs.source.code
template
prop tochildren={<template identifier>}
<Template>
Add addon options -
StorybookAddonSvelteCsfOptions
pre-transform
hooksupportLegacy
Deprecation warnings, errors, messages
<Template>
as deprecated)Update stories tests
LegacyTemplate
componentLegacyStory
component (and its legacy props)Meta
componentUpdate indexer
export const meta
syntaxMeta
componentTODO
📦 Published PR as canary version:
4.2.0--canary.186.b543003.0
:sparkles: Test out this PR locally via: ```bash npm install @storybook/addon-svelte-csf@4.2.0--canary.186.b543003.0 # or yarn add @storybook/addon-svelte-csf@4.2.0--canary.186.b543003.0 ```