sanity 5.3.0 → 5.3.1
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.
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/index.js +27 -9
- package/lib/index.js.map +1 -1
- package/package.json +13 -13
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"5.3.
|
|
10
|
+
"5.3.1";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -79846,8 +79846,10 @@ function ReleaseTypeMenuSection(t0) {
|
|
|
79846
79846
|
t10
|
|
79847
79847
|
] }), $[26] = t10, $[27] = t8, $[28] = t11) : t11 = $[28], t11;
|
|
79848
79848
|
}
|
|
79849
|
-
const
|
|
79850
|
-
|
|
79849
|
+
const StyledLinkComponent$1 = styled(IntentLink)`
|
|
79850
|
+
text-decoration: none;
|
|
79851
|
+
`, ScheduledDraftsMenuItem = () => {
|
|
79852
|
+
const $ = c(11), router = useRouter(), {
|
|
79851
79853
|
t
|
|
79852
79854
|
} = useTranslation(), telemetry = useTelemetry(), isScheduledDraftsEnabled = useScheduledDraftsEnabled(), {
|
|
79853
79855
|
enabled: isSingleDocReleaseEnabled
|
|
@@ -79870,14 +79872,23 @@ const ScheduledDraftsMenuItem = () => {
|
|
|
79870
79872
|
});
|
|
79871
79873
|
}, $[2] = telemetry, $[3] = t3) : t3 = $[3];
|
|
79872
79874
|
const handleClick = t3;
|
|
79875
|
+
let t4;
|
|
79876
|
+
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = forwardRef(function(restProps, ref) {
|
|
79877
|
+
return /* @__PURE__ */ jsx(StyledLinkComponent$1, { ...restProps, intent: RELEASES_SCHEDULED_DRAFTS_INTENT, params: {
|
|
79878
|
+
view: "drafts"
|
|
79879
|
+
}, ref });
|
|
79880
|
+
}), $[4] = t4) : t4 = $[4];
|
|
79881
|
+
const LinkComponent2 = t4;
|
|
79873
79882
|
if (!isScheduledDraftsEnabled || !isSingleDocReleaseEnabled || !isDraftModelEnabled)
|
|
79874
79883
|
return null;
|
|
79875
|
-
let t4;
|
|
79876
|
-
$[4] !== t ? (t4 = t("release.menu.scheduled-drafts"), $[4] = t, $[5] = t4) : t4 = $[5];
|
|
79877
79884
|
let t5;
|
|
79878
|
-
|
|
79879
|
-
|
|
79880
|
-
|
|
79885
|
+
$[5] !== t ? (t5 = t("release.menu.scheduled-drafts"), $[5] = t, $[6] = t5) : t5 = $[6];
|
|
79886
|
+
let t6;
|
|
79887
|
+
return $[7] !== handleClick || $[8] !== scheduledDraftsUrl || $[9] !== t5 ? (t6 = /* @__PURE__ */ jsx(MenuItem, { as: LinkComponent2, href: scheduledDraftsUrl, onClick: handleClick, icon: CalendarIcon, text: t5, "data-testid": "scheduled-drafts-menu-item" }), $[7] = handleClick, $[8] = scheduledDraftsUrl, $[9] = t5, $[10] = t6) : t6 = $[10], t6;
|
|
79888
|
+
}, StyledLinkComponent = styled(IntentLink)`
|
|
79889
|
+
text-decoration: none;
|
|
79890
|
+
`, ViewContentReleasesMenuItem = () => {
|
|
79891
|
+
const $ = c(11), router = useRouter(), {
|
|
79881
79892
|
t
|
|
79882
79893
|
} = useTranslation(), telemetry = useTelemetry();
|
|
79883
79894
|
let t0;
|
|
@@ -79893,9 +79904,16 @@ const ScheduledDraftsMenuItem = () => {
|
|
|
79893
79904
|
}, $[2] = telemetry, $[3] = t1) : t1 = $[3];
|
|
79894
79905
|
const handleClick = t1;
|
|
79895
79906
|
let t2;
|
|
79896
|
-
$[4]
|
|
79907
|
+
$[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = forwardRef(function(restProps, ref) {
|
|
79908
|
+
return /* @__PURE__ */ jsx(StyledLinkComponent, { ...restProps, intent: RELEASES_INTENT, params: {
|
|
79909
|
+
source: "menu"
|
|
79910
|
+
}, ref });
|
|
79911
|
+
}), $[4] = t2) : t2 = $[4];
|
|
79912
|
+
const LinkComponent2 = t2;
|
|
79897
79913
|
let t3;
|
|
79898
|
-
|
|
79914
|
+
$[5] !== t ? (t3 = t("release.menu.view-releases"), $[5] = t, $[6] = t3) : t3 = $[6];
|
|
79915
|
+
let t4;
|
|
79916
|
+
return $[7] !== handleClick || $[8] !== releasesUrl || $[9] !== t3 ? (t4 = /* @__PURE__ */ jsx(MenuItem, { as: LinkComponent2, href: releasesUrl, onClick: handleClick, icon: CalendarIcon, text: t3, "data-testid": "view-content-releases-menu-item" }), $[7] = handleClick, $[8] = releasesUrl, $[9] = t3, $[10] = t4) : t4 = $[10], t4;
|
|
79899
79917
|
}, orderedReleaseTypes = ["asap", "scheduled", "undecided"], StyledBox = styled(Box)`
|
|
79900
79918
|
overflow: auto;
|
|
79901
79919
|
max-height: 75vh;
|