sanity 4.3.1-next.6 → 4.3.1-next.8
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/pane.mjs
CHANGED
@@ -4667,9 +4667,8 @@ const DISABLED_REASON_KEY = {
|
|
4667
4667
|
UnpublishAction.action = "unpublish";
|
4668
4668
|
UnpublishAction.displayName = "UnpublishAction";
|
4669
4669
|
const DocumentStatusBarActionsInner = memo(function(props) {
|
4670
|
-
const $ = c(
|
4670
|
+
const $ = c(31), {
|
4671
4671
|
disabled,
|
4672
|
-
showMenu,
|
4673
4672
|
states
|
4674
4673
|
} = props, {
|
4675
4674
|
__internal_tasks
|
@@ -4711,18 +4710,18 @@ const DocumentStatusBarActionsInner = memo(function(props) {
|
|
4711
4710
|
let t4;
|
4712
4711
|
$[15] !== disabled || $[16] !== firstActionState || $[17] !== showFirstActionButton || $[18] !== 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" }) }) }) }), $[15] = disabled, $[16] = firstActionState, $[17] = showFirstActionButton, $[18] = tooltipContent, $[19] = t4) : t4 = $[19];
|
4713
4712
|
let t5;
|
4714
|
-
$[20] !== disabled || $[21] !==
|
4713
|
+
$[20] !== disabled || $[21] !== sideMenuItems ? (t5 = sideMenuItems.length > 0 && /* @__PURE__ */ jsx(ActionMenuButton, { actionStates: sideMenuItems, disabled }), $[20] = disabled, $[21] = sideMenuItems, $[22] = t5) : t5 = $[22];
|
4715
4714
|
let t6;
|
4716
|
-
$[
|
4715
|
+
$[23] !== buttonElement || $[24] !== firstActionState ? (t6 = firstActionState && firstActionState.dialog && /* @__PURE__ */ jsx(ActionStateDialog, { dialog: firstActionState.dialog, referenceElement: buttonElement }), $[23] = buttonElement, $[24] = firstActionState, $[25] = t6) : t6 = $[25];
|
4717
4716
|
let t7;
|
4718
|
-
return $[
|
4717
|
+
return $[26] !== t3 || $[27] !== t4 || $[28] !== t5 || $[29] !== t6 ? (t7 = /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 1, children: [
|
4719
4718
|
t3,
|
4720
4719
|
t4,
|
4721
4720
|
t5,
|
4722
4721
|
t6
|
4723
|
-
] }), $[
|
4722
|
+
] }), $[26] = t3, $[27] = t4, $[28] = t5, $[29] = t6, $[30] = t7) : t7 = $[30], t7;
|
4724
4723
|
}), DocumentStatusBarActions = memo(function() {
|
4725
|
-
const $ = c(
|
4724
|
+
const $ = c(14), {
|
4726
4725
|
actions: allActions,
|
4727
4726
|
connectionState,
|
4728
4727
|
documentId,
|
@@ -4741,17 +4740,17 @@ const DocumentStatusBarActionsInner = memo(function(props) {
|
|
4741
4740
|
} : null, $[4] = editState, $[5] = isInitialValueLoading, $[6] = t4) : t4 = $[6], t3 = t4;
|
4742
4741
|
const actionProps = t3;
|
4743
4742
|
let t5;
|
4744
|
-
$[7] !==
|
4743
|
+
$[7] !== connectionState || $[8] !== documentId ? (t5 = (t62) => {
|
4745
4744
|
const {
|
4746
4745
|
states
|
4747
4746
|
} = t62;
|
4748
|
-
return /* @__PURE__ */ jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected",
|
4749
|
-
}, $[7] =
|
4747
|
+
return /* @__PURE__ */ jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected", states }, documentId);
|
4748
|
+
}, $[7] = connectionState, $[8] = documentId, $[9] = t5) : t5 = $[9];
|
4750
4749
|
const renderDocumentStatusBarActions = t5;
|
4751
4750
|
if (actions.length === 0 || !actionProps)
|
4752
4751
|
return null;
|
4753
4752
|
let t6;
|
4754
|
-
return $[
|
4753
|
+
return $[10] !== actionProps || $[11] !== actions || $[12] !== renderDocumentStatusBarActions ? (t6 = /* @__PURE__ */ jsx(RenderActionCollectionState, { actions, actionProps, group: "default", children: renderDocumentStatusBarActions }), $[10] = actionProps, $[11] = actions, $[12] = renderDocumentStatusBarActions, $[13] = t6) : t6 = $[13], t6;
|
4755
4754
|
}), HistoryStatusBarActions = memo(function() {
|
4756
4755
|
const $ = c(15), {
|
4757
4756
|
actions,
|
@@ -4777,7 +4776,7 @@ const DocumentStatusBarActionsInner = memo(function(props) {
|
|
4777
4776
|
const {
|
4778
4777
|
states
|
4779
4778
|
} = t62;
|
4780
|
-
return /* @__PURE__ */ jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected" || !!disabled,
|
4779
|
+
return /* @__PURE__ */ jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected" || !!disabled, states });
|
4781
4780
|
}, $[8] = connectionState, $[9] = disabled, $[10] = t5) : t5 = $[10];
|
4782
4781
|
const renderDocumentStatusBarActions = t5;
|
4783
4782
|
if (!actionProps)
|