Skip to content

chore(deps): update examples to @sanity/ui v4 and @sanity/icons v5 - #150

Merged
stipsan merged 1 commit into
mainfrom
cody/sanity-ui-v4-f6dd
Nov 23, 2026
Merged

stipsan merged 1 commit into
mainfrom
cody/sanity-ui-v4-f6dd

Conversation

@stipsan

@stipsan stipsan commented Nov 23, 2026

Copy link
Copy Markdown
Member

Moves both examples to @sanity/ui 4.4 and @sanity/icons 5.4, following the v3 → v4 migration guide:

  • import @sanity/ui/styles.css before rendering ThemeProvider
  • space → gap
  • Menu* imports now come from @sanity/ui/menu
  • Grid columns/rows/cols → gridTemplateColumns/gridTemplateRows
  • removed width on Card and size on Flex. They were never valid props, just passed through to the div, and v4 types reject them.
  • icons are imported from per-icon subpaths (@sanity/icons/Trash). The root entry only keeps never type stubs for them, so these misses show up in vite build, not in tsc.

I built the web example with a placeholder project ID and screenshotted it headless on v3 and v4. The screenshots are byte-identical, both on load and after navigating.

web-example-sanity-ui-v4.webm

Stacked on #149; last in the stack.

Checked locally: lint, typecheck, typecheck:examples, build, test, prettier, vite build for both examples, docs:build.

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

@stipsan
stipsan added this pull request to stack #145 November 23, 2026 14:38
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
mutate-docs Ready Ready Preview Nov 23, 2026 5:33pm UTC
mutate-example-visual-editing Ready Ready Preview Nov 23, 2026 5:33pm UTC
mutate-example-web Ready Ready Preview Nov 23, 2026 5:33pm UTC

Request Review

@socket-security

socket-security Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​sanity/​ui@​3.2.0 ⏵ 4.4.1299 +110090 +598 +5100
Updatednpm/​@​sanity/​icons@​3.7.4 ⏵ 5.4.0100 +2100100 +1995 +13100

View full report

Co-authored-by: Cody Olsen <stipsan@users.noreply.github.com>

This branch was successfully deployed

3 active deployments
Preview – mutate-example-visual-editing — b50b9fab Deployed Nov 23, 2026 by vercel[bot]
Preview – mutate-docs — b50b9fab Deployed Nov 23, 2026 by vercel[bot]
Preview – mutate-example-web — b50b9fab Deployed Nov 23, 2026 by vercel[bot]
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.

3 participants