sanity 5.1.0-next.12 → 5.1.0-next.13

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.
@@ -1,4 +1,4 @@
1
- var version = "5.1.0-next.12+dfae558a35", peerDependencies = {
1
+ var version = "5.1.0-next.13+05f65ae994", peerDependencies = {
2
2
  "styled-components": "^6.1.15"
3
3
  };
4
4
  export {
@@ -5483,7 +5483,7 @@ const usePublishAction = (props) => {
5483
5483
  documentId,
5484
5484
  documentType,
5485
5485
  value
5486
- } = useDocumentPane(), validationStatus = useValidationStatus(value._id, type), syncState = useSyncState(id, type), editState = useEditState(documentId, documentType), {
5486
+ } = useDocumentPane(), validationStatus = useValidationStatus(value._id, type, !release), syncState = useSyncState(id, type), editState = useEditState(documentId, documentType), {
5487
5487
  t
5488
5488
  } = useTranslation(structureLocaleNamespace);
5489
5489
  let t0;
@@ -12437,7 +12437,7 @@ function useMenuItem(props) {
12437
12437
  value
12438
12438
  } = useDocumentPane(), {
12439
12439
  validation: validationMarkers
12440
- } = useValidationStatus(value._id, documentType, selectedReleaseId);
12440
+ } = useValidationStatus(value._id, documentType, !selectedReleaseId);
12441
12441
  let t0;
12442
12442
  $[0] !== validationMarkers ? (t0 = validationMarkers.map(_temp), $[0] = validationMarkers, $[1] = t0) : t0 = $[1];
12443
12443
  const validation = t0, hasErrors = validation.some(isValidationError), hasWarnings = validation.some(isValidationWarning);