Releases: jonathanawesome/react-foundry
Release list
react-foundry@0.0.16
Patch Changes
- f464950: Previews mount
renderas a component, so hooks work without a wrapper and state survives Fast Refresh. Controls gainderive,label, and alisttype. The props panel gets collapsible sections and an info mark showing each prop's TypeScript type and description, read through the project'stypescript(an optional peer,>=5.4). Numbers and booleans are written to the URL bare, and tooltips render in a portal so they are never clipped.
react-foundry@0.0.15
Patch Changes
-
ef5f4c6: Toolbar controls now have keyboard shortcuts, and a tooltip on each button naming the control and its key. S and P toggle the shelf and the controls panel, T flips the theme, A toggles the accessibility check.
They are bare letters with no modifier, since the obvious chords are already taken by browsers. To stay out of your component's way, a keystroke is ignored when it lands on an input, a textarea, a select or a rich text editor on the canvas, when ctrl, cmd or alt is held, or when something closer to the keystroke has already handled it. The shortcut is announced to a screen reader as a description on the button, so it is discoverable without seeing the key cap.
react-foundry@0.0.14
react-foundry@0.0.13
Patch Changes
- e20ce6f: Add
controlsFor, which accepts a component for typing.
react-foundry@0.0.12
Patch Changes
- 2a020b7: Fix previews that render through a portal losing their margin and padding. Menus, popovers, dropdowns and tooltips mount on
document.bodyby default in Base UI, Radix and Floating UI, which puts them outside the preview canvas, where foundry's chrome reset was stripping their spacing. The reset is now scoped to foundry's own chrome rather than to everything that is not the canvas, so a portalled popup renders exactly as it does in your app.
react-foundry@0.0.11
Patch Changes
- 685f8ca: Fix hot reloading in the preview canvas: component and preview edits now patch in place instead of doing nothing. Changing
previews,portorhostnow warns that a restart is needed.
react-foundry@0.0.10
Patch Changes
- 156f5d3: Fixes and new API from a real migration onto foundry
react-foundry@0.0.9
Patch Changes
- e93fe6a: Fix a crash on first load when installed from npm. The
use-sync-external-storeshim was inlined into the client bundle as CommonJS, leaving arequire("react")call that throws in the browser. It is now external and resolves from foundry's own dependencies.
react-foundry@0.0.8
Patch Changes
-
0dc7539: TanStack Router is no longer part of your project's module graph.
Foundry's shell is built on TanStack Router, but that was leaking out: the
app tree and the client bundle both carried bare@tanstack/react-router
imports your Vite had to resolve, held together by a forceddedupeyou
could add to but never remove.If you use TanStack Router yourself, this was worse than overhead. Dedupe
resolved the router from foundry's own directory, so a previewed component
bound to foundry's copy and its provider. CallinguseParams()in a preview
didn't throw, it quietly returned the shell's own route params. Your previews
now get your version and your context.If you don't use it, it's simply gone:
react-foundryno longer depends on
@tanstack/react-routeror@tanstack/react-store, and neither is
pre-bundled into your dev server.No API change, and nothing to do on your end.
-
fee9468: Prune stale navigation UI state