sanity 6.2.1-next.5 → 6.2.1-next.7

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.
@@ -47120,7 +47120,7 @@ const releasesLocaleNamespace = "releases", releasesUsEnglishLocaleBundle = {
47120
47120
  resources: () => import("./resources3.js")
47121
47121
  };
47122
47122
  function DiscardVersionDialog(props2) {
47123
- const $ = c(57), {
47123
+ const $ = c(58), {
47124
47124
  onClose,
47125
47125
  documentId,
47126
47126
  documentType,
@@ -47197,27 +47197,27 @@ function DiscardVersionDialog(props2) {
47197
47197
  confirmButton: t12
47198
47198
  }, $[34] = t12, $[35] = t9, $[36] = t13) : t13 = $[36];
47199
47199
  let t14;
47200
- $[37] !== currentRelease || $[38] !== documentId || $[39] !== isGoingToUnpublish2 || $[40] !== schemaType ? (t14 = schemaType ? /* @__PURE__ */ jsx(Preview$1, { value: {
47200
+ $[37] !== currentRelease || $[38] !== discardType || $[39] !== documentId || $[40] !== isGoingToUnpublish2 || $[41] !== schemaType ? (t14 = schemaType ? /* @__PURE__ */ jsx(Preview$1, { value: {
47201
47201
  _id: isGoingToUnpublish2 ? getPublishedId(documentId) : documentId
47202
- }, schemaType, perspectiveStack: isGoingToUnpublish2 ? [] : [currentRelease] }) : /* @__PURE__ */ jsx(LoadingBlock, {}), $[37] = currentRelease, $[38] = documentId, $[39] = isGoingToUnpublish2, $[40] = schemaType, $[41] = t14) : t14 = $[41];
47202
+ }, schemaType, perspectiveStack: isGoingToUnpublish2 ? [] : discardType === "draft" ? ["drafts"] : [currentRelease] }) : /* @__PURE__ */ jsx(LoadingBlock, {}), $[37] = currentRelease, $[38] = discardType, $[39] = documentId, $[40] = isGoingToUnpublish2, $[41] = schemaType, $[42] = t14) : t14 = $[42];
47203
47203
  let t15;
47204
- $[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t15 = {
47204
+ $[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t15 = {
47205
47205
  maxWidth: "400px"
47206
- }, $[42] = t15) : t15 = $[42];
47206
+ }, $[43] = t15) : t15 = $[43];
47207
47207
  const t16 = `discard-version-dialog.description-${discardType}`;
47208
47208
  let t17;
47209
- $[43] !== releaseName ? (t17 = {
47209
+ $[44] !== releaseName ? (t17 = {
47210
47210
  releaseTitle: releaseName
47211
- }, $[43] = releaseName, $[44] = t17) : t17 = $[44];
47211
+ }, $[44] = releaseName, $[45] = t17) : t17 = $[45];
47212
47212
  let t18;
47213
- $[45] !== t || $[46] !== t16 || $[47] !== t17 ? (t18 = /* @__PURE__ */ jsx(Box, { paddingX: 2, style: t15, children: /* @__PURE__ */ jsx(Text$1, { size: 1, muted: !0, children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: t16, values: t17 }) }) }), $[45] = t, $[46] = t16, $[47] = t17, $[48] = t18) : t18 = $[48];
47213
+ $[46] !== t || $[47] !== t16 || $[48] !== t17 ? (t18 = /* @__PURE__ */ jsx(Box, { paddingX: 2, style: t15, children: /* @__PURE__ */ jsx(Text$1, { size: 1, muted: !0, children: /* @__PURE__ */ jsx(Translate, { t, i18nKey: t16, values: t17 }) }) }), $[46] = t, $[47] = t16, $[48] = t17, $[49] = t18) : t18 = $[49];
47214
47214
  let t19;
47215
- $[49] !== t14 || $[50] !== t18 ? (t19 = /* @__PURE__ */ jsxs(Stack, { space: 3, paddingX: 3, marginBottom: 2, children: [
47215
+ $[50] !== t14 || $[51] !== t18 ? (t19 = /* @__PURE__ */ jsxs(Stack, { space: 3, paddingX: 3, marginBottom: 2, children: [
47216
47216
  t14,
47217
47217
  t18
47218
- ] }), $[49] = t14, $[50] = t18, $[51] = t19) : t19 = $[51];
47218
+ ] }), $[50] = t14, $[51] = t18, $[52] = t19) : t19 = $[52];
47219
47219
  let t20;
47220
- return $[52] !== onClose || $[53] !== t13 || $[54] !== t19 || $[55] !== t8 ? (t20 = /* @__PURE__ */ jsx(Dialog$1, { id: "discard-version-dialog", header: t8, onClose, width: 0, padding: !1, footer: t13, children: t19 }), $[52] = onClose, $[53] = t13, $[54] = t19, $[55] = t8, $[56] = t20) : t20 = $[56], t20;
47220
+ return $[53] !== onClose || $[54] !== t13 || $[55] !== t19 || $[56] !== t8 ? (t20 = /* @__PURE__ */ jsx(Dialog$1, { id: "discard-version-dialog", header: t8, onClose, width: 0, padding: !1, footer: t13, children: t19 }), $[53] = onClose, $[54] = t13, $[55] = t19, $[56] = t8, $[57] = t20) : t20 = $[57], t20;
47221
47221
  }
47222
47222
  const RELEASE_FORM_STORAGE_KEY = "studio.release-form.recovery";
47223
47223
  function useReleaseFormStorage() {