feat: added functional Storybook implementation#921
Conversation
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…-primitives into v2/add-storybook
Summary
storybook-solidjs-vite@10.1.0) at the repo root as a development and documentation tool for Solid 2.0-migrated primitivespackages/[name]/stories/*.stories.tsx, discovered via a single root globstorybook-solidjs-vite/nexttyped API (definePreview/meta.story) for type-safe stories@solid-primitives/sourcecustom condition (same approach as thesite/playground), so stories always run against TypeScript sourceviteFinalfor Solid 2.0 beta: asolid-js/web → @solidjs/webalias and a transform that patchesaddEventListener → addEventgenerated by an olderbabel-preset-solidnested insidestorybook-solidjs-vite's bundledvite-plugin-solidFirst package:
@solid-primitives/audioFour stories covering the full API surface:
createAudio— reactive player: track switching via a reactive source signal,<Loading>integration fordurationcreateAudio— reactive source swap: demonstrates automatic reconnect when the source accessor changesmakeAudio— non-reactive: rawHTMLAudioElementwith manual lifecyclemakeAudioPlayer— controls: imperativeplay/pause/seek/setVolumewithout signalsAudio samples live in
packages/audio/stories/assets/and are served by Storybook at/audio/*.Scaffolding
template/stories/index.stories.tsxstub added so every new package generated bynew-packageships with the stories patternstorybook-static/added to.gitignoreUsage