sanity 4.3.1-next.6 → 4.3.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.
package/lib/_chunks-cjs/pane.js
CHANGED
@@ -4645,9 +4645,8 @@ const DISABLED_REASON_KEY = {
|
|
4645
4645
|
UnpublishAction.action = "unpublish";
|
4646
4646
|
UnpublishAction.displayName = "UnpublishAction";
|
4647
4647
|
const DocumentStatusBarActionsInner = React.memo(function(props) {
|
4648
|
-
const $ = reactCompilerRuntime.c(
|
4648
|
+
const $ = reactCompilerRuntime.c(31), {
|
4649
4649
|
disabled,
|
4650
|
-
showMenu,
|
4651
4650
|
states
|
4652
4651
|
} = props, {
|
4653
4652
|
__internal_tasks
|
@@ -4689,18 +4688,18 @@ const DocumentStatusBarActionsInner = React.memo(function(props) {
|
|
4689
4688
|
let t4;
|
4690
4689
|
$[15] !== disabled || $[16] !== firstActionState || $[17] !== showFirstActionButton || $[18] !== tooltipContent ? (t4 = showFirstActionButton && /* @__PURE__ */ jsxRuntime.jsx(ui.LayerProvider, { zOffset: 200, children: /* @__PURE__ */ jsxRuntime.jsx(TooltipDelayGroupProvider.Tooltip, { disabled: !tooltipContent, content: tooltipContent, placement: "top", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Stack, { children: /* @__PURE__ */ jsxRuntime.jsx(TooltipDelayGroupProvider.Button, { "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];
|
4691
4690
|
let t5;
|
4692
|
-
$[20] !== disabled || $[21] !==
|
4691
|
+
$[20] !== disabled || $[21] !== sideMenuItems ? (t5 = sideMenuItems.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ActionMenuButton, { actionStates: sideMenuItems, disabled }), $[20] = disabled, $[21] = sideMenuItems, $[22] = t5) : t5 = $[22];
|
4693
4692
|
let t6;
|
4694
|
-
$[
|
4693
|
+
$[23] !== buttonElement || $[24] !== firstActionState ? (t6 = firstActionState && firstActionState.dialog && /* @__PURE__ */ jsxRuntime.jsx(ActionStateDialog, { dialog: firstActionState.dialog, referenceElement: buttonElement }), $[23] = buttonElement, $[24] = firstActionState, $[25] = t6) : t6 = $[25];
|
4695
4694
|
let t7;
|
4696
|
-
return $[
|
4695
|
+
return $[26] !== t3 || $[27] !== t4 || $[28] !== t5 || $[29] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsxs(ui.Flex, { align: "center", gap: 1, children: [
|
4697
4696
|
t3,
|
4698
4697
|
t4,
|
4699
4698
|
t5,
|
4700
4699
|
t6
|
4701
|
-
] }), $[
|
4700
|
+
] }), $[26] = t3, $[27] = t4, $[28] = t5, $[29] = t6, $[30] = t7) : t7 = $[30], t7;
|
4702
4701
|
}), DocumentStatusBarActions = React.memo(function() {
|
4703
|
-
const $ = reactCompilerRuntime.c(
|
4702
|
+
const $ = reactCompilerRuntime.c(14), {
|
4704
4703
|
actions: allActions,
|
4705
4704
|
connectionState,
|
4706
4705
|
documentId,
|
@@ -4719,17 +4718,17 @@ const DocumentStatusBarActionsInner = React.memo(function(props) {
|
|
4719
4718
|
} : null, $[4] = editState, $[5] = isInitialValueLoading, $[6] = t4) : t4 = $[6], t3 = t4;
|
4720
4719
|
const actionProps = t3;
|
4721
4720
|
let t5;
|
4722
|
-
$[7] !==
|
4721
|
+
$[7] !== connectionState || $[8] !== documentId ? (t5 = (t62) => {
|
4723
4722
|
const {
|
4724
4723
|
states
|
4725
4724
|
} = t62;
|
4726
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected",
|
4727
|
-
}, $[7] =
|
4725
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected", states }, documentId);
|
4726
|
+
}, $[7] = connectionState, $[8] = documentId, $[9] = t5) : t5 = $[9];
|
4728
4727
|
const renderDocumentStatusBarActions = t5;
|
4729
4728
|
if (actions.length === 0 || !actionProps)
|
4730
4729
|
return null;
|
4731
4730
|
let t6;
|
4732
|
-
return $[
|
4731
|
+
return $[10] !== actionProps || $[11] !== actions || $[12] !== renderDocumentStatusBarActions ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(RenderActionCollectionState, { actions, actionProps, group: "default", children: renderDocumentStatusBarActions }), $[10] = actionProps, $[11] = actions, $[12] = renderDocumentStatusBarActions, $[13] = t6) : t6 = $[13], t6;
|
4733
4732
|
}), HistoryStatusBarActions = React.memo(function() {
|
4734
4733
|
const $ = reactCompilerRuntime.c(15), {
|
4735
4734
|
actions,
|
@@ -4755,7 +4754,7 @@ const DocumentStatusBarActionsInner = React.memo(function(props) {
|
|
4755
4754
|
const {
|
4756
4755
|
states
|
4757
4756
|
} = t62;
|
4758
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected" || !!disabled,
|
4757
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DocumentStatusBarActionsInner, { disabled: connectionState !== "connected" || !!disabled, states });
|
4759
4758
|
}, $[8] = connectionState, $[9] = disabled, $[10] = t5) : t5 = $[10];
|
4760
4759
|
const renderDocumentStatusBarActions = t5;
|
4761
4760
|
if (!actionProps)
|