包详细信息

@sanity/types

sanity-io2.4mMIT3.95.0

Type definitions for common Sanity data structures

sanity, cms, headless, realtime

自述文件

packages/sanity/README.md

更新日志

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.95.0 (2025-06-25)

Features

  • sanity: activate the create document buttons for all perspectives (c0b5a0c) by Ash (ash@sanity.io)
  • sanity: add document panel banner for choosing new document destination (95e7ad7) by Ash (ash@sanity.io)

Bug Fixes

  • deps: update dependency @portabletext/block-tools to ^1.1.32 (#9805) (96c0193) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.55.5 (#9806) (275b7a1) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • structure: fix issue where the versions were being slowly loaded and so the last chip was the wrong one giving us the wrong element (#9803) (5c48abb) by RitaDias (rita@sanity.io)

3.94.2 (2025-06-24)

Note: Version bump only for package sanity-root

3.94.1 (2025-06-24)

Bug Fixes

  • cli: init unattended mode (#9481) (feb8c15) by Rune Botten (rbotten@gmail.com)

3.94.0 (2025-06-24)

Features

  • add support for tagging auto update bundles (#9654) (7cabaea) by Bjørge Næss (bjoerge@gmail.com)
  • core: media validator (#9648) (2e3d18b) by Per-Kristian Nordnes (per.kristian.nordnes@gmail.com)
  • sanity: add isNewDocument function (1a05454) by Ash (ash@sanity.io)
  • sanity: add isPerspectiveWriteable function (253c508) by Ash (ash@sanity.io)
  • sanity: allow new, unpersisted, documents to move between perspectives seamlessly (a71f330) by Ash (ash@sanity.io)

Bug Fixes

  • actions: fix e2e UI test (#9718) (3919f50) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • build: fixes bundle build script failing (#9719) (7508e51) by Binoy Patel (me@binoy.io)
  • ci: upload modules after releasing next (#9751) (a49ed83) by Bjørge Næss (bjoerge@gmail.com)
  • core: fix handle of change of dates (#9732) (23b8016) by RitaDias (rita@sanity.io)
  • core: fix issues with ML uploads (#9745) (8bce663) by Per-Kristian Nordnes (per.kristian.nordnes@gmail.com)
  • core: update error tooltip for copypaste (#9696) (7b16d65) by RitaDias (rita@sanity.io)
  • deps: bump vitejs/plugin-react to v4.6 (#9779) (346d9fc) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • deps: unpin scrollmirror now that it's MIT licensed (#9786) (5dd3876) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • deps: update dependency @portabletext/block-tools to ^1.1.31 (#9728) (d37cf06) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.53.1 (#9729) (cf0bf85) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.54.2 (#9736) (dfff499) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.54.3 (#9746) (af9f8fa) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.54.4 (#9762) (3b22192) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.55.0 (#9767) (87ebf9f) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.55.2 (#9781) (a8f4d4c) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.55.3 (#9790) (4776574) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/export to ^3.45.0 (#9717) (61f7421) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/icons to ^3.7.3 (#9737) (198ab74) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/icons to ^3.7.4 (#9756) (ac74b4d) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/ui to ^2.16.0 (#9716) (2586169) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/ui to ^2.16.2 (#9726) (74d5316) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @xstate/react to v6 (#9743) (2c77e7d) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency framer-motion to ^12.19.1 (#9778) (40af063) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency groq-js to ^1.17.1 (#9766) (f915231) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency xstate to ^5.20.0 (#9742) (586a638) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: Update dev-non-major (#9741) (d233393) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: Update dev-non-major (#9755) (17c8ae5) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • examples: auto tag config (#9722) (afab857) by Knut Melvær (knut@sanity.io)
  • manifest extract now correctly handles inline array.of item types that has a name conflicting with a global type (#9664) (6c1896c) by Snorre Eskeland Brekke (snorre.e.brekke@gmail.com)
  • pin scrollmirror to MIT licensed version (#9777) (6da4675) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • print available workspaces for easier debugging (#9377) (6377c06) by Simeon Griggs (simeon@hey.com)
  • sanity: be more resilient to process.env not being processed (#9769) (91c1afb) by Magnus Holm (judofyr@gmail.com)
  • stop publishing src folders to npm (#9744) (e9296c1) by Cody Olsen (81981+stipsan@users.noreply.github.com)

3.93.0 (2025-06-17)

Features

  • Add comprehensive examples directory structure (#9651) (3548bd0) by Knut Melvær (knut@sanity.io)
  • ci: optimize workflows to skip examples-only changes (#9680) (92b1fa5) by Knut Melvær (knut@sanity.io)
  • cli: Improve guidance after SDK app init (#9640) (52ea1d6) by Cole Peters (cole@colepeters.com)
  • cli: report error cause after catching CLI error (b137973) by Ash (ash@sanity.io)
  • cli: update runtime-cli and enable example flag (#9652) (2daf089) by Taylor Beseda (tbeseda@gmail.com)
  • core: add one line portable text editor option (#9625) (f64bd68) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • schema: serialize schema in debug mode (#9503) (d9d9d67) by Magnus Holm (judofyr@gmail.com)

Bug Fixes

  • actions: Vercel deployment failure when PR titles "contain" double quotes (#9630) (a0c9889) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • ci: remove @conventional-changelog/git-client version override (#9653) (093bcb6) by Bjørge Næss (bjoerge@gmail.com)
  • core: ensure virtualized array items are rendered before scroll (#9611) (8d8cfa2) by Rupert Dunk (rupert@rupertdunk.com)
  • deps: bump react virtual to v3.13.6 (#9705) (85eacd8) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • deps: bump react-virtual to v3.13.10 (#9711) (6bbf3bd) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • deps: pin react-virtual to v3.13.2 (#9700) (aa28847) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • deps: Update babel monorepo (#9690) (6d52330) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: Update CodeMirror (#9691) (6538309) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/block-tools to ^1.1.29 (#9602) (8d6ac7c) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/block-tools to ^1.1.30 (#9619) (408c5e3) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.52.0 (#9603) (7bdcbcb) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.52.7 (#9620) (6673c7f) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.53.0 (#9642) (8b60220) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/client to ^7.6.0 (#9649) (e41e814) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency framer-motion to ^12.18.1 (#9674) (3969445) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency react-rx to ^4.1.30 (#9693) (0f09c4c) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: Update dnd-kit monorepo (#9692) (571808d) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • manifest extract now correctly serializes global document references (#9604) (5b15f40) by Snorre Eskeland Brekke (snorre.e.brekke@gmail.com)
  • presentation: hide locations banner if location is empty (#9655) (f636721) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • sanity: avoid writing to message property of unknown caught value (cedda92) by Ash (ash@sanity.io)
  • update link to join community (#9646) (608e0a2) by Bjørge Næss (bjoerge@gmail.com)
  • update readme broken links (#9618) (b1f95e8) by David T (73550581+JoanCTO@users.noreply.github.com)

3.92.0 (2025-06-10)

Features

  • add timeZone settings to datetime input (#8181) (1ca2568) by Eoin Falconer (eoin.falc@gmail.com)
  • cli: update React and friends for Studios created via init (#9576) (0ebfbfe) by Bjørge Næss (bjoerge@gmail.com)
  • core: allow configuring PTE plugins (#8785) (57b8dc5) by Christian Grøngaard (christian.groengaard@sanity.io)
  • core: versions primary action (#9596) (c0d9efa) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • sanity: add display names to middleware components (f7f756b) by Ash (ash@sanity.io)
  • sanity: add suspense boundaries to middleware components (3fbca9c) by Ash (ash@sanity.io)
  • sanity: allow ReleasesNav inner MenuItem props to be customised (7fd6773) by Ash (ash@sanity.io)
  • sanity: allow ReleasesNav to be rendered without releases tool button (07359c8) by Ash (ash@sanity.io)
  • sanity: allow workspace switching in Dashboard (#9569) (6e43480) by Ash (ash@sanity.io)
  • sanity: export ReleasesNav (7aeb253) by Ash (ash@sanity.io)
  • Support Portable Text object deprecation (#9590) (08204e1) by Saskia (72471533+bobinska-dev@users.noreply.github.com)

Bug Fixes

  • duplicate context error for media library (#9580) (8fcb587) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • ci: skip creating release pr for release commit (#9555) (0c62475) by Bjørge Næss (bjoerge@gmail.com)
  • ci: use pnpm for pkg.pr.new (#9554) (8e8a224) by Bjørge Næss (bjoerge@gmail.com)
  • cli: bring back the continue option for auto-update prompts (#9578) (762b668) by Bjørge Næss (bjoerge@gmail.com)
  • cli: do not create projects with undefined organizations (#9548) (3717582) by Carolina Gonzalez (carolina@sanity.io)
  • cli: skip auto update prompt for non-interactive sessions (#9577) (19ebe8f) by Bjørge Næss (bjoerge@gmail.com)
  • core: get correct document title when creating comments (#9560) (e9b861a) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • core: history cleared event should be the last event in the even… (#9559) (1dc766a) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • core: restore delete document uses lastRevision (#9552) (8832126) by Jordan Lawrence (jordanl17@me.com)
  • core: update buildCommentBreadCrumb recursivity (#9525) (70815e6) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • deps: update dependency @portabletext/block-tools to ^1.1.28 (#9424) (b366fcd) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @portabletext/editor to ^1.50.8 (#9508) (f6357db) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/client to ^7.4.1 (#9563) (28995c1) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/client to ^7.5.0 (#9591) (f33154b) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: Update xstate monorepo (#9586) (cd358b0) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • DevEx improvements when using functions cli commands (#9595) (844b3d4) by Simon MacDonald (simon.macdonald@gmail.com)
  • fixing search for timezones (#9579) (8af6f8d) by Eoin Falconer (eoin.falc@gmail.com)
  • handle imperative focus state in slug input correctly (#9581) (672fba8) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • resolve getAttribute is not a function errors in PTE on next.js (#9571) (db63fa1) by Cody Olsen (81981+stipsan@users.noreply.github.com)
  • sanity: perspective menu vertical alignment (aaa5db2) by Ash (ash@sanity.io)
  • speedup sanity dev by warming up the entry file (#9567) (10dc15d) by Cody Olsen (81981+stipsan@users.noreply.github.com)

3.91.0 (2025-06-03)

Features

  • duplicate release (#9445) (f9d03da) by Jordan Lawrence (jordanl17@me.com)
  • sanity: add ability to map document upon duplication (#9517) (25e5bfd) by Ash (ash@sanity.io)
  • sanity: add workspace release count limit (3268a01) by Ash (ash@sanity.io)
  • sanity: make releases.enabled configuration optional (505631c) by Ash (ash@sanity.io)

Bug Fixes

  • ci: add token requirement for npm provenance (#9549) (2ac64d1) by Bjørge Næss (bjoerge@gmail.com)
  • ci: fix efps document references (#9542) (d9ca72d) by Bjørge Næss (bjoerge@gmail.com)
  • cli: check if is interactive before prompting to upgrade (#9530) (5aa3c1d) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • core: add condition in useDocumentTitle to allow for unpublished preview title (#9489) (45fbd31) by RitaDias (rita@sanity.io)
  • core: hide getAddonDataset error (#9520) (ee3eda6) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • core: updates to change indicators in review changes (#9516) (633b489) by Pedro Bonamin (46196328+pedrobonamin@users.noreply.github.com)
  • deps: update dependency @sanity/client to ^7.4.0 (#9527) (1184899) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/comlink to ^3.0.5 (#9522) (50ff007) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/insert-menu to v1.1.12 (#9523) (897eaae) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/presentation-comlink to ^1.0.20 (#9468) (0814c03) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency @sanity/presentation-comlink to ^1.0.21 (#9524) (70e5d40) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency groq-js to ^1.17.0 (#9507) (ceb86ec) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • deps: update dependency react-rx to ^4.1.29 (#9513) (b77cc08) by renovate[bot] (29139614+renovate[bot]@users.noreply.github.com)
  • presentation: fix multiple resolver document location state (#9428) (fb3a956) by Rupert Dunk (rupert@rupertdunk.com)
  • releases: optimize document availability subscription (#9373) (6987830) by Bjørge Næss (bjoerge@gmail.com)

Reverts