sanity 5.1.0-next.16 → 5.1.0-next.17

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.16+f441eea71b", peerDependencies = {
1
+ var version = "5.1.0-next.17+a8190f8806", peerDependencies = {
2
2
  "styled-components": "^6.1.15"
3
3
  };
4
4
  export {
@@ -5702,7 +5702,7 @@ const DISABLED_REASON_KEY = {
5702
5702
  useUnpublishAction.action = "unpublish";
5703
5703
  useUnpublishAction.displayName = "UnpublishAction";
5704
5704
  const DocumentStatusBarActionsInner = memo(function(props) {
5705
- const $ = c(37), {
5705
+ const $ = c(38), {
5706
5706
  disabled,
5707
5707
  states
5708
5708
  } = props, {
@@ -5742,24 +5742,24 @@ const DocumentStatusBarActionsInner = memo(function(props) {
5742
5742
  }
5743
5743
  const tooltipContent = t0;
5744
5744
  let t1;
5745
- $[11] !== editState?.liveEdit || $[12] !== firstActionState || $[13] !== selectedReleaseId || $[14] !== showingRevision ? (t1 = showingRevision ? !!firstActionState : selectedReleaseId ? firstActionState && !isSanityDefinedAction(firstActionState) : firstActionState && !editState?.liveEdit, $[11] = editState?.liveEdit, $[12] = firstActionState, $[13] = selectedReleaseId, $[14] = showingRevision, $[15] = t1) : t1 = $[15];
5745
+ $[11] !== editState?.liveEdit || $[12] !== editState?.version || $[13] !== firstActionState || $[14] !== selectedReleaseId || $[15] !== showingRevision ? (t1 = showingRevision ? !!firstActionState : selectedReleaseId ? firstActionState && selectedReleaseId && !isSanityDefinedAction(firstActionState) : firstActionState && (!editState?.liveEdit || editState?.version), $[11] = editState?.liveEdit, $[12] = editState?.version, $[13] = firstActionState, $[14] = selectedReleaseId, $[15] = showingRevision, $[16] = t1) : t1 = $[16];
5746
5746
  const showFirstActionButton = t1;
5747
5747
  let t2;
5748
- $[16] !== firstActionState || $[17] !== menuActionStates || $[18] !== showFirstActionButton ? (t2 = showFirstActionButton ? menuActionStates : [firstActionState, ...menuActionStates].filter(Boolean), $[16] = firstActionState, $[17] = menuActionStates, $[18] = showFirstActionButton, $[19] = t2) : t2 = $[19];
5748
+ $[17] !== firstActionState || $[18] !== menuActionStates || $[19] !== showFirstActionButton ? (t2 = showFirstActionButton ? menuActionStates : [firstActionState, ...menuActionStates].filter(Boolean), $[17] = firstActionState, $[18] = menuActionStates, $[19] = showFirstActionButton, $[20] = t2) : t2 = $[20];
5749
5749
  const sideMenuItems = t2, t3 = __internal_tasks && __internal_tasks.footerAction;
5750
5750
  let t4;
5751
- $[20] !== disabled || $[21] !== firstActionState || $[22] !== showFirstActionButton || $[23] !== tooltipContent ? (t4 = showFirstActionButton && /* @__PURE__ */ jsx(LayerProvider, { zOffset: 200, children: /* @__PURE__ */ jsx(Tooltip, { disabled: !tooltipContent, content: tooltipContent, placement: "top", children: /* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(Button$1, { "data-testid": `action-${toLowerCaseNoSpaces(firstActionState.label)}`, disabled: disabled || !!firstActionState.disabled, icon: firstActionState.icon, onClick: firstActionState.onHandle, ref: setButtonElement, text: firstActionState.label, tone: firstActionState.tone || "primary" }) }) }) }), $[20] = disabled, $[21] = firstActionState, $[22] = showFirstActionButton, $[23] = tooltipContent, $[24] = t4) : t4 = $[24];
5751
+ $[21] !== disabled || $[22] !== firstActionState || $[23] !== showFirstActionButton || $[24] !== tooltipContent ? (t4 = showFirstActionButton && /* @__PURE__ */ jsx(LayerProvider, { zOffset: 200, children: /* @__PURE__ */ jsx(Tooltip, { disabled: !tooltipContent, content: tooltipContent, placement: "top", children: /* @__PURE__ */ jsx(Stack, { children: /* @__PURE__ */ jsx(Button$1, { "data-testid": `action-${toLowerCaseNoSpaces(firstActionState.label)}`, disabled: disabled || !!firstActionState.disabled, icon: firstActionState.icon, onClick: firstActionState.onHandle, ref: setButtonElement, text: firstActionState.label, tone: firstActionState.tone || "primary" }) }) }) }), $[21] = disabled, $[22] = firstActionState, $[23] = showFirstActionButton, $[24] = tooltipContent, $[25] = t4) : t4 = $[25];
5752
5752
  let t5;
5753
- $[25] !== disabled || $[26] !== sideMenuItems ? (t5 = sideMenuItems.length > 0 && /* @__PURE__ */ jsx(ActionMenuButton, { actionStates: sideMenuItems, disabled }), $[25] = disabled, $[26] = sideMenuItems, $[27] = t5) : t5 = $[27];
5753
+ $[26] !== disabled || $[27] !== sideMenuItems ? (t5 = sideMenuItems.length > 0 && /* @__PURE__ */ jsx(ActionMenuButton, { actionStates: sideMenuItems, disabled }), $[26] = disabled, $[27] = sideMenuItems, $[28] = t5) : t5 = $[28];
5754
5754
  let t6;
5755
- $[28] !== buttonElement || $[29] !== firstActionState || $[30] !== showFirstActionButton ? (t6 = showFirstActionButton && firstActionState && firstActionState.dialog && /* @__PURE__ */ jsx(ActionStateDialog, { dialog: firstActionState.dialog, referenceElement: buttonElement }), $[28] = buttonElement, $[29] = firstActionState, $[30] = showFirstActionButton, $[31] = t6) : t6 = $[31];
5755
+ $[29] !== buttonElement || $[30] !== firstActionState || $[31] !== showFirstActionButton ? (t6 = showFirstActionButton && firstActionState && firstActionState.dialog && /* @__PURE__ */ jsx(ActionStateDialog, { dialog: firstActionState.dialog, referenceElement: buttonElement }), $[29] = buttonElement, $[30] = firstActionState, $[31] = showFirstActionButton, $[32] = t6) : t6 = $[32];
5756
5756
  let t7;
5757
- return $[32] !== t3 || $[33] !== t4 || $[34] !== t5 || $[35] !== t6 ? (t7 = /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 1, children: [
5757
+ return $[33] !== t3 || $[34] !== t4 || $[35] !== t5 || $[36] !== t6 ? (t7 = /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 1, children: [
5758
5758
  t3,
5759
5759
  t4,
5760
5760
  t5,
5761
5761
  t6
5762
- ] }), $[32] = t3, $[33] = t4, $[34] = t5, $[35] = t6, $[36] = t7) : t7 = $[36], t7;
5762
+ ] }), $[33] = t3, $[34] = t4, $[35] = t5, $[36] = t6, $[37] = t7) : t7 = $[37], t7;
5763
5763
  }), DocumentStatusBarActions = memo(function() {
5764
5764
  const $ = c(1);
5765
5765
  let t0;