v0.5.0
Minor Changes
-
dd274ac: Namespace the workflow stage color type to avoid collisions with host studios.
v0.4.0 registered
@sanity/color-inputviacolorInput(), which defines a globalcolorobject type. Studios that already define their owncolortype (for example acolorproduct-attribute document) failed to compile with "A type with name 'color' is already defined".The stage color field now uses a namespaced
workflow.colorobject that reuses color-input's field structure, preview, andColorInputcomponent, so the plugin no longer registers the barecolortype. No consumer configuration is required.Breaking: stage
colorvalues stored under_type: 'color'(v0.4.0) or as legacy hex strings (<= v0.3.0) must be converted. Run the bundled migration:npx sanity migration run color-to-color-input