sanity 6.2.0-next.23 → 6.2.0-next.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5159,14 +5159,14 @@ function useDocumentPerspectiveList() {
5159
5159
  }
5160
5160
  const isPublishedChipDisabled = t5;
5161
5161
  let t6;
5162
- $[13] !== displayed?._id || $[14] !== editState?.version || $[15] !== params ? (t6 = (release) => {
5162
+ $[13] !== displayed?._id || $[14] !== editState?.version || $[15] !== params ? (t6 = (releaseId) => {
5163
5163
  if (!params?.historyVersion) {
5164
- const isCurrentVersionGoingToUnpublish = editState?.version && isGoingToUnpublish(editState?.version) && getReleaseIdFromReleaseDocumentId(release._id) === getVersionFromId(editState?.version?._id);
5164
+ const isCurrentVersionGoingToUnpublish = editState?.version && isGoingToUnpublish(editState?.version) && releaseId === getVersionFromId(editState?.version?._id);
5165
5165
  return {
5166
- selected: !!(getReleaseIdFromReleaseDocumentId(release._id) === getVersionFromId(displayed?._id || "") || isCurrentVersionGoingToUnpublish)
5166
+ selected: !!(releaseId === getVersionFromId(displayed?._id || "") || isCurrentVersionGoingToUnpublish)
5167
5167
  };
5168
5168
  }
5169
- const isReleaseHistoryMatch = getReleaseIdFromReleaseDocumentId(release._id) === params.historyVersion;
5169
+ const isReleaseHistoryMatch = releaseId === params.historyVersion;
5170
5170
  return {
5171
5171
  selected: isReleaseHistoryMatch,
5172
5172
  disabled: isReleaseHistoryMatch
@@ -5486,7 +5486,7 @@ const TooltipContent$1 = (t0) => {
5486
5486
  }, children: [
5487
5487
  /* @__PURE__ */ jsx(Text, { size: 1, weight: "medium", children: fullTitle_0 }),
5488
5488
  /* @__PURE__ */ jsx(TooltipContent$1, { release })
5489
- ] }) : /* @__PURE__ */ jsx(TooltipContent$1, { release }), ...getReleaseChipState(release), onClick: () => handlePerspectiveChange(release), text: displayTitle_0, tone: getReleaseTone(release), locked: isReleaseScheduledOrScheduling(release), onCopyToDraftsNavigate: handleCopyToDraftsNavigate, contextValues: {
5489
+ ] }) : /* @__PURE__ */ jsx(TooltipContent$1, { release }), ...getReleaseChipState(getReleaseIdFromReleaseDocumentId(release._id)), onClick: () => handlePerspectiveChange(release), text: displayTitle_0, tone: getReleaseTone(release), locked: isReleaseScheduledOrScheduling(release), onCopyToDraftsNavigate: handleCopyToDraftsNavigate, contextValues: {
5490
5490
  documentId: displayed?._id || "",
5491
5491
  documentType,
5492
5492
  releases: filteredReleases.notCurrentReleases,