Skip to content

Releases: jonathanawesome/react-foundry

react-foundry@0.0.16

Choose a tag to compare

@github-actions github-actions released this 13 Sep 17:02
9728aec

Patch Changes

  • f464950: Previews mount render as a component, so hooks work without a wrapper and state survives Fast Refresh. Controls gain derive, label, and a list type. The props panel gets collapsible sections and an info mark showing each prop's TypeScript type and description, read through the project's typescript (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

Choose a tag to compare

@github-actions github-actions released this 10 Sep 21:20
9af1edb

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

Choose a tag to compare

@github-actions github-actions released this 09 Sep 21:38
adac6ca

Patch Changes

  • db167f9: Fixes nav items overlapping
  • 1860327: recurse controlsFor into object-typed props

react-foundry@0.0.13

Choose a tag to compare

@github-actions github-actions released this 08 Sep 20:35
0c5fd00

Patch Changes

  • e20ce6f: Add controlsFor, which accepts a component for typing.

react-foundry@0.0.12

Choose a tag to compare

@github-actions github-actions released this 08 Sep 04:11
98f029d

Patch Changes

  • 2a020b7: Fix previews that render through a portal losing their margin and padding. Menus, popovers, dropdowns and tooltips mount on document.body by 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

Choose a tag to compare

@github-actions github-actions released this 07 Aug 03:22
6f6b0b4

Patch Changes

  • 685f8ca: Fix hot reloading in the preview canvas: component and preview edits now patch in place instead of doing nothing. Changing previews, port or host now warns that a restart is needed.

react-foundry@0.0.10

Choose a tag to compare

@github-actions github-actions released this 05 Aug 15:46
76c2414

Patch Changes

  • 156f5d3: Fixes and new API from a real migration onto foundry

react-foundry@0.0.9

Choose a tag to compare

@github-actions github-actions released this 04 Aug 23:32
5f2978a

Patch Changes

  • e93fe6a: Fix a crash on first load when installed from npm. The use-sync-external-store shim was inlined into the client bundle as CommonJS, leaving a require("react") call that throws in the browser. It is now external and resolves from foundry's own dependencies.

react-foundry@0.0.8

Choose a tag to compare

@github-actions github-actions released this 04 Aug 20:11
18b99a1

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 forced dedupe you
    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. Calling useParams() 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-foundry no longer depends on
    @tanstack/react-router or @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

react-foundry@0.0.7

Choose a tag to compare

@github-actions github-actions released this 28 Jul 17:50
757a46f

Patch Changes

  • 9a50835: Document the a11y checker and style isolation
  • ec0ad5e: Locate accessibility violations in the preview canvas, and reporthonestly on what was measured.