Skip to content

feat(@sanity/presets): multiple custom named presets#728

Draft
jordanl17 wants to merge 4 commits intomainfrom
feat/multiple-custom-named-presets
Draft

feat(@sanity/presets): multiple custom named presets#728
jordanl17 wants to merge 4 commits intomainfrom
feat/multiple-custom-named-presets

Conversation

@jordanl17
Copy link
Member

@jordanl17 jordanl17 commented Mar 13, 2026

Description

Add optional name to linkField so multiple instances with different type names can coexist. A shared BasePresetConfig interface provides the name field, and createLinkFieldType accepts the resolved name directly instead of importing the constant. The test studio demonstrates two link fields side by side - one default, one custom-named.

What to review

Testing

Integration tests (extracted from composer.test.ts into link-field/composer-integration.test.ts) verify deduplication across named variants.

@vercel
Copy link

vercel bot commented Mar 13, 2026

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

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview, Comment Mar 13, 2026 2:57pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Mar 13, 2026

🦋 Changeset detected

Latest commit: d001548

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sanity/presets Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jordanl17 jordanl17 changed the title feat(presets): multiple custom named presets feat(@sanity/presets): multiple custom named presets Mar 13, 2026
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.

1 participant