Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export fields as AutoField #469

Merged
merged 11 commits into from May 13, 2024
Merged

Export fields as AutoField #469

merged 11 commits into from May 13, 2024

Conversation

chrisvxd
Copy link
Member

@chrisvxd chrisvxd commented May 3, 2024

Export a new component for rendering Puck style fields inside custom components.

  • Renamed InputOrGroup to AutoField
  • Tidied up and refactored API
  • Fix an iframe style loading issue

Closes #463

Notes

  • 49abe77 introduces a breaking change
  • AutoField is dependant on the Puck context and state, so is not useful for building components outside of <Puck>. It is most suited for adding Puck components to custom fields, or other UI within the <Puck> context.

Copy link

vercel bot commented May 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
puck-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 12, 2024 5:58pm
puck-docs ✅ Ready (Inspect) Visit Preview May 12, 2024 5:58pm

Re-render on change was due to redefinition of default Label component prop on each render. Extracted to DefaultLabel const to address.
This is due to releases failing to load.
@chrisvxd chrisvxd merged commit e0448f0 into main May 13, 2024
4 checks passed
@chrisvxd chrisvxd deleted the export-fields branch May 13, 2024 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider exporting InputOrGroup (or something with a better name)
2 participants