Skip to content
This repository was archived by the owner on May 9, 2026. It is now read-only.

Latest commit

 

History

History
39 lines (26 loc) · 2.11 KB

File metadata and controls

39 lines (26 loc) · 2.11 KB

field-kit

This repo is archived. field-kit was merged into EmDash core as a first-party plugin. Use @emdash-cms/plugin-field-kit instead.

For future updates — for example if PR #2's visibleWhen lands in core — see the blog post. That's where I'll keep the running status.

field-kit started here as a standalone plugin that replaced the default plain text input on EmDash json fields with composable, seed-driven widgets — object-form, list, grid, and tags. The maintainer agreed to bring it into core, and it shipped as a first-party package via PR #702.

Migration

Same widgets, same seed config, same data shapes — only the package name changed.

- import { fieldKitPlugin } from "emdash-plugin-field-kit";
+ import { fieldKitPlugin } from "@emdash-cms/plugin-field-kit";
- "emdash-plugin-field-kit": "^x.y.z"
+ "@emdash-cms/plugin-field-kit": "^x.y.z"

Seed configs ("widget": "field-kit:list", options, sub-field definitions) and stored JSON are unchanged.

Possible follow-up: visibleWhen

PR #2 on this repo prototyped conditional sub-field visibility — sub-fields in object-form and list can declare a visibleWhen rule and hide when a sibling value doesn't match. It's flagged as a follow-up in the EmDash core PR and may land in the first-party package next.

Links

License

MIT