Repository navigation
Shared sections for the json form builder - #171
Merged
Merged
Conversation
lero62
requested review from
ChiefCreator,
SearheiParkhamchuk and
dogfrogfog
as code owners
October 6, 2026 11:27
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🎉 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A section built once and followed by many documents.
library— a json field holding shared sections.library: trueputs it in the plugin's own global;jsonLibraryField()is exported so it can be mounted anywhere instead. A field offers them withjsonField({ shares: true }).Attaching happens in the builder's sidebar: Attached sections with a
×, Shared sections with a+. An attached section carries aglobalchip 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.