Skip to content

feat(sanity): align preview kit with upstream v5.2.6#41

Merged
osnoser1 merged 2 commits into
mainfrom
osnoser1/sync-previewkit-with-react-diff
Jun 8, 2026
Merged

feat(sanity): align preview kit with upstream v5.2.6#41
osnoser1 merged 2 commits into
mainfrom
osnoser1/sync-previewkit-with-react-diff

Conversation

@osnoser1

@osnoser1 osnoser1 commented Jun 8, 2026

Copy link
Copy Markdown
Member

PR Checklist

Closes #

What is the new behavior?

This updates the Angular Sanity preview-kit implementation for 1:1 parity with the React preview-kit changes through v5.2.6.

  • Replaces the legacy preview-kit compat messaging path with @sanity/comlink and @sanity/presentation-comlink.
  • Adds provider-scoped perspective handling that mirrors the upstream usePerspective behavior.
  • Moves stable query param normalization into preview-kit internals, based on upstream preview-kit hooks.
  • Removes the private preview-kit-compat and visual-editing-helpers secondary entry points that are no longer needed.
  • Updates the default perspective from previewDrafts to drafts for v5.2.6, including docs, examples, compat tooling, and e2e coverage.
  • Raises the @sanity/client peer floor to ^6.28.0 || ^7.0.0, matching the client versions that support drafts.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Validated with:

  • pnpm --filter @limitless-angular/sanity lint
  • pnpm --filter @limitless-angular/sanity build
  • pnpm --filter @limitless-angular/sanity test
  • pnpm --filter sanity-presentation-e2e lint
  • pnpm --filter analog-sanity-blog-example lint
  • pnpm --filter sanity-presentation-e2e e2e
  • pnpm --filter @limitless-angular/angular-compat test
  • pnpm --filter @limitless-angular/angular-compat compat:assert
  • pnpm --filter @limitless-angular/angular-compat compat:pack
  • git diff --check

[Optional] What gif best describes this PR or how it makes you feel?

@netlify

netlify Bot commented Jun 8, 2026

Copy link
Copy Markdown

Deploy Preview for limitless-angular-sanity-example canceled.

Name Link
🔨 Latest commit 5c0c8b1
🔍 Latest deploy log https://app.netlify.com/projects/limitless-angular-sanity-example/deploys/6a270b409a4ef50008179db9

@pkg-pr-new

pkg-pr-new Bot commented Jun 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@limitless-angular/sanity@41

commit: 5c0c8b1

@osnoser1 osnoser1 marked this pull request as ready for review June 8, 2026 20:24
@osnoser1 osnoser1 merged commit 5dc0695 into main Jun 8, 2026
15 checks passed
@osnoser1 osnoser1 deleted the osnoser1/sync-previewkit-with-react-diff branch June 8, 2026 20:28
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