feat!: Add TanStack adapter for AutoForm - #204
Conversation
馃 Changeset detectedLatest commit: 6224b91 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
|
Thank you, nice one! I had two small issues I noticed (lint scripts are broken and package-boundary check is not run in CI yet) - I'll fix those after merging |
Controller in react package to simplify and decouple form field implementation
#184
Hi @vantezzen, this PR is ready for review!
The diff is large, so here's a quick summary of what changed:
This PR adds TanStack Form as a second supported adapter alongside RHF, plus supporting work: external formControl, wrapper overrides, registry, docs, and CI/tooling updates.
1. TanStack Form Adapter
packages/react/src/tanstack-form, alongside the existing RHF path underpackages/react/src/react-hook-form.react-hook-formandtanstack-form.2. External Form Control
formControlsupport inpackages/reactfor both adapters.createFormControl; TanStack usesuseAppForm.form-control.cy.tsxspecs across the UI packages.3. Field Wrapper Overrides
fieldConfigso individual fields can overridefieldWrapper,objectWrapper,arrayWrapper, andarrayElementWrapper.shadcn-zod\ui-customization.cy.tsx.4. Shadcn Registry Split
autoform-rhfandautoform-tanstack. CLI installs adapter specfic files only.registry.json.5. Docs And Examples
6. AI / LLM Discovery
skills/autoformwithSKILL.mdand reference files for installation, schema providers, RHF, TanStack, customization, and examples.llms.txt, markdown docs output by appending .md to routes, and.well-known/agent-skills/index.json.7. Cypress Tests
all.cy.tsxaggregate specs because Cypress already discovers all specs inruncommand; keeping aggregates made specs run twice.8. Tooling / Package Boundaries
scripts/check-package-boundaries.mjsto verify package exports, built files, and RHF/TanStack adapter isolation.This is a major change.
Let me know if anything's unclear or needs adjusting.
After the merge, changeset version and publish will be remaining.
Feel free to edit.