Skip to content

Shared sections for the json form builder - #171

Merged
lero62 merged 5 commits into
mainfrom
feat/section-library
Oct 6, 2026
Merged

lero62 merged 5 commits into
mainfrom
feat/section-library

Conversation

@lero62

@lero62 lero62 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

A section built once and followed by many documents.

library — a json field holding shared sections. library: true puts it in the plugin's own global; jsonLibraryField() is exported so it can be mounted anywhere instead. A field offers them with jsonField({ shares: true }).

Attaching happens in the builder's sidebar: Attached sections with a ×, Shared sections with a +. An attached section carries a global chip in the form and is not editable there — its shape is the library's.

The shape is read from the library on every read; the values were copied once, when the section was attached. Removing a section from the library takes nothing away: the documents keep it and stop following.

Also here: the package's comments cut from 321 lines to 23 — the ones that name a trap — and a README that leads with what the plugin is for, with two screenshots.

@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ideal-cms Ready Ready Preview Oct 6, 2026 11:28am UTC

Request Review

@lero62
lero62 merged commit 4148b26 into main Oct 6, 2026
2 checks passed
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.3.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

This branch was successfully deployed

1 active deployment
Preview — 7d560dab Deployed Oct 6, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant