sanity 5.25.0-next.13 → 5.25.0-next.15
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.
|
@@ -5321,7 +5321,7 @@ const HorizontalScroller = /* @__PURE__ */ styled(Card).withConfig({
|
|
|
5321
5321
|
`}
|
|
5322
5322
|
`;
|
|
5323
5323
|
}), DocumentPanelHeader = memo(forwardRef(function(_props, ref) {
|
|
5324
|
-
const $ = c(
|
|
5324
|
+
const $ = c(42), {
|
|
5325
5325
|
menuItems
|
|
5326
5326
|
} = _props, {
|
|
5327
5327
|
editState,
|
|
@@ -5345,7 +5345,7 @@ const HorizontalScroller = /* @__PURE__ */ styled(Card).withConfig({
|
|
|
5345
5345
|
maximizedPane
|
|
5346
5346
|
} = useResolvedPanesList(), {
|
|
5347
5347
|
actions: fieldActions
|
|
5348
|
-
} = useFieldActions(), [referenceElement, setReferenceElement] = useState(null), scrollContainerRef = useRef(null), showGradient = useChipScrollPosition(scrollContainerRef), telemetry = useTelemetry();
|
|
5348
|
+
} = useFieldActions(), [referenceElement, setReferenceElement] = useState(null), scrollContainerRef = useRef(null), showGradient = useChipScrollPosition(scrollContainerRef), telemetry = useTelemetry(), zIndex = useZIndex(), paneHeaderZIndex = Array.isArray(zIndex.paneHeader) ? zIndex.paneHeader[1] : zIndex.paneHeader;
|
|
5349
5349
|
let t0;
|
|
5350
5350
|
$[0] !== fieldActions || $[1] !== menuItemGroups || $[2] !== menuItems || $[3] !== onMenuAction ? (t0 = resolveMenuNodes({
|
|
5351
5351
|
actionHandler: onMenuAction,
|
|
@@ -5379,8 +5379,10 @@ const HorizontalScroller = /* @__PURE__ */ styled(Card).withConfig({
|
|
|
5379
5379
|
} }), $[14] = BackLink2, $[15] = showBackButton, $[16] = t, $[17] = t5) : t5 = $[17];
|
|
5380
5380
|
const backButton = t5;
|
|
5381
5381
|
let t6;
|
|
5382
|
-
return $[18] !== BackLink2 || $[19] !== backButton || $[20] !== collapsed || $[21] !== connectionState || $[22] !== contextMenuNodes || $[23] !== editState || $[24] !== handleFocusPane || $[25] !== isMaximizedPane || $[26] !== menuButtonNodes || $[27] !== onPaneClose || $[28] !== onPaneSplit || $[29] !== onSetMaximizedPane || $[30] !==
|
|
5383
|
-
lineHeight: 0
|
|
5382
|
+
return $[18] !== BackLink2 || $[19] !== backButton || $[20] !== collapsed || $[21] !== connectionState || $[22] !== contextMenuNodes || $[23] !== editState || $[24] !== handleFocusPane || $[25] !== isMaximizedPane || $[26] !== menuButtonNodes || $[27] !== onPaneClose || $[28] !== onPaneSplit || $[29] !== onSetMaximizedPane || $[30] !== paneHeaderZIndex || $[31] !== ref || $[32] !== referenceElement || $[33] !== schemaType || $[34] !== showGradient || $[35] !== showPaneGroupCloseButton || $[36] !== showSplitPaneButton || $[37] !== showSplitPaneCloseButton || $[38] !== t || $[39] !== tabIndex || $[40] !== unstable_languageFilter ? (t6 = /* @__PURE__ */ jsx(TooltipDelayGroupProvider, { children: collapsed ? /* @__PURE__ */ jsx(PaneHeader$1, { border: !0, ref, loading: connectionState === "connecting" && !editState?.draft && !editState?.published, title, tabIndex, backButton }) : /* @__PURE__ */ jsx(Card, { hidden: collapsed, style: {
|
|
5383
|
+
lineHeight: 0,
|
|
5384
|
+
position: "relative",
|
|
5385
|
+
zIndex: paneHeaderZIndex
|
|
5384
5386
|
}, borderBottom: !0, children: /* @__PURE__ */ jsxs(Flex, { gap: 3, paddingY: 3, children: [
|
|
5385
5387
|
/* @__PURE__ */ jsx(HorizontalScroller, { $showGradient: showGradient, children: /* @__PURE__ */ jsx(Flex, { flex: 1, gap: 1, overflow: "auto", paddingX: 3, "data-testid": "document-perspective-list", ref: scrollContainerRef, children: /* @__PURE__ */ jsx(DocumentPerspectiveList, {}) }) }),
|
|
5386
5388
|
/* @__PURE__ */ jsx(Box, { flex: "none", paddingRight: 3, children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 1, children: [
|
|
@@ -5406,7 +5408,7 @@ const HorizontalScroller = /* @__PURE__ */ styled(Card).withConfig({
|
|
|
5406
5408
|
content: t("buttons.split-pane-close-group-button.title")
|
|
5407
5409
|
}, as: BackLink2 }, "close-view-button")
|
|
5408
5410
|
] }) })
|
|
5409
|
-
] }) }) }), $[18] = BackLink2, $[19] = backButton, $[20] = collapsed, $[21] = connectionState, $[22] = contextMenuNodes, $[23] = editState, $[24] = handleFocusPane, $[25] = isMaximizedPane, $[26] = menuButtonNodes, $[27] = onPaneClose, $[28] = onPaneSplit, $[29] = onSetMaximizedPane, $[30] =
|
|
5411
|
+
] }) }) }), $[18] = BackLink2, $[19] = backButton, $[20] = collapsed, $[21] = connectionState, $[22] = contextMenuNodes, $[23] = editState, $[24] = handleFocusPane, $[25] = isMaximizedPane, $[26] = menuButtonNodes, $[27] = onPaneClose, $[28] = onPaneSplit, $[29] = onSetMaximizedPane, $[30] = paneHeaderZIndex, $[31] = ref, $[32] = referenceElement, $[33] = schemaType, $[34] = showGradient, $[35] = showPaneGroupCloseButton, $[36] = showSplitPaneButton, $[37] = showSplitPaneCloseButton, $[38] = t, $[39] = tabIndex, $[40] = unstable_languageFilter, $[41] = t6) : t6 = $[41], t6;
|
|
5410
5412
|
})), DocumentPanelHeaderActionDialogDeferred = memo(function(props) {
|
|
5411
5413
|
const $ = c(7), {
|
|
5412
5414
|
setReferenceElement,
|