sanity 5.0.0-next-major.20251215093220 → 5.0.0-next-major.20251215132654
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/bin/sanity +152 -38
- package/lib/_chunks-es/buildAction.js +2 -2
- package/lib/_chunks-es/buildAction2.js +2 -2
- package/lib/_chunks-es/deployAction.js +1 -1
- package/lib/_chunks-es/deployAction2.js +1 -1
- package/lib/_chunks-es/devAction2.js +3 -9
- package/lib/_chunks-es/devAction2.js.map +1 -1
- package/lib/_chunks-es/index3.js +70 -38
- package/lib/_chunks-es/index3.js.map +1 -1
- package/lib/_chunks-es/package.js +1 -1
- package/lib/_chunks-es/pane.js +48 -50
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/shouldAutoUpdate.js +107 -0
- package/lib/_chunks-es/shouldAutoUpdate.js.map +1 -0
- package/lib/_chunks-es/upgradePackages.js +2 -2
- package/lib/_chunks-es/upgradePackages.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_chunks-es/warnAboutMissingAppId.js +135 -93
- package/lib/_chunks-es/warnAboutMissingAppId.js.map +1 -1
- package/lib/_internal.d.ts +1 -1
- package/lib/_singletons.d.ts +1 -1
- package/lib/index.d.ts +21 -21
- package/lib/presentation.d.ts +1 -1
- package/lib/structure.d.ts +1 -1
- package/package.json +23 -23
- package/lib/_chunks-es/moduleFormatUtils.js +0 -149
- package/lib/_chunks-es/moduleFormatUtils.js.map +0 -1
package/lib/_chunks-es/pane.js
CHANGED
|
@@ -82,7 +82,7 @@ function useDiffViewRouter() {
|
|
|
82
82
|
$[3] !== navigate || $[4] !== routerState ? (t1 = () => {
|
|
83
83
|
navigate({
|
|
84
84
|
...routerState,
|
|
85
|
-
_searchParams: (routerState._searchParams ?? []).filter(_temp$
|
|
85
|
+
_searchParams: (routerState._searchParams ?? []).filter(_temp$I)
|
|
86
86
|
});
|
|
87
87
|
}, $[3] = navigate, $[4] = routerState, $[5] = t1) : t1 = $[5];
|
|
88
88
|
const exitDiffView = t1;
|
|
@@ -92,7 +92,7 @@ function useDiffViewRouter() {
|
|
|
92
92
|
exitDiffView
|
|
93
93
|
}, $[6] = exitDiffView, $[7] = navigateDiffView, $[8] = t2) : t2 = $[8], t2;
|
|
94
94
|
}
|
|
95
|
-
function _temp$
|
|
95
|
+
function _temp$I(t0) {
|
|
96
96
|
const [key] = t0;
|
|
97
97
|
return ![DIFF_VIEW_SEARCH_PARAMETER, DIFF_VIEW_PREVIOUS_DOCUMENT_SEARCH_PARAMETER, DIFF_VIEW_NEXT_DOCUMENT_SEARCH_PARAMETER].includes(key);
|
|
98
98
|
}
|
|
@@ -115,7 +115,7 @@ function useDiffViewState(t0) {
|
|
|
115
115
|
previousDocument = searchParams.get(DIFF_VIEW_PREVIOUS_DOCUMENT_SEARCH_PARAMETER), nextDocument = searchParams.get(DIFF_VIEW_NEXT_DOCUMENT_SEARCH_PARAMETER), t2 = searchParams.get(DIFF_VIEW_SEARCH_PARAMETER), $[2] = routerState._searchParams, $[3] = nextDocument, $[4] = previousDocument, $[5] = t2;
|
|
116
116
|
} else
|
|
117
117
|
nextDocument = $[3], previousDocument = $[4], t2 = $[5];
|
|
118
|
-
const mode = t2, anyParamSet = [previousDocument, nextDocument, mode].some(_temp$
|
|
118
|
+
const mode = t2, anyParamSet = [previousDocument, nextDocument, mode].some(_temp$H), t3 = previousDocument ?? "", t4 = nextDocument ?? "", t5 = mode ?? "";
|
|
119
119
|
let t6;
|
|
120
120
|
$[6] !== t3 || $[7] !== t4 || $[8] !== t5 ? (t6 = parseParams({
|
|
121
121
|
previousDocument: t3,
|
|
@@ -141,7 +141,7 @@ function useDiffViewState(t0) {
|
|
|
141
141
|
...params.params
|
|
142
142
|
}, $[20] = params.params, $[21] = t9) : t9 = $[21], t9;
|
|
143
143
|
}
|
|
144
|
-
function _temp$
|
|
144
|
+
function _temp$H(param) {
|
|
145
145
|
return param !== null;
|
|
146
146
|
}
|
|
147
147
|
function parseParams({
|
|
@@ -174,14 +174,14 @@ function useScrollMirror(elements) {
|
|
|
174
174
|
const $ = c(3);
|
|
175
175
|
let t0, t1;
|
|
176
176
|
$[0] !== elements ? (t0 = () => {
|
|
177
|
-
const existentElements = elements.filter(_temp$
|
|
177
|
+
const existentElements = elements.filter(_temp$G);
|
|
178
178
|
if (existentElements.length === 0)
|
|
179
179
|
return;
|
|
180
180
|
const scrollMirror = new ScrollMirror(existentElements);
|
|
181
181
|
return () => scrollMirror.destroy();
|
|
182
182
|
}, t1 = [elements], $[0] = elements, $[1] = t0, $[2] = t1) : (t0 = $[1], t1 = $[2]), useEffect(t0, t1);
|
|
183
183
|
}
|
|
184
|
-
function _temp$
|
|
184
|
+
function _temp$G(element) {
|
|
185
185
|
return element !== null;
|
|
186
186
|
}
|
|
187
187
|
function findRelease(documentId, releases) {
|
|
@@ -218,7 +218,7 @@ const VersionModeHeaderLayout = styled.header`
|
|
|
218
218
|
documents
|
|
219
219
|
} = useDiffViewState(), activeReleases = useActiveReleases();
|
|
220
220
|
let t2;
|
|
221
|
-
$[2] !== documentVersions ? (t2 = documentVersions.flatMap(_temp$
|
|
221
|
+
$[2] !== documentVersions ? (t2 = documentVersions.flatMap(_temp$F), $[2] = documentVersions, $[3] = t2) : t2 = $[3];
|
|
222
222
|
const releasesIds = t2;
|
|
223
223
|
let t3;
|
|
224
224
|
if ($[4] !== activeReleases.data || $[5] !== releasesIds) {
|
|
@@ -441,7 +441,7 @@ function getMenuButtonProps({
|
|
|
441
441
|
tone
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
function _temp$
|
|
444
|
+
function _temp$F(id) {
|
|
445
445
|
return getVersionFromId(id) ?? [];
|
|
446
446
|
}
|
|
447
447
|
const DialogLayout = styled.div`
|
|
@@ -478,7 +478,7 @@ function usePathSyncChannel(t0) {
|
|
|
478
478
|
source
|
|
479
479
|
} = t4;
|
|
480
480
|
return source !== id;
|
|
481
|
-
}, $[6] = id, $[7] = t32) : t32 = $[7], t2 = syncChannel.pipe(distinctUntilChanged(_temp$
|
|
481
|
+
}, $[6] = id, $[7] = t32) : t32 = $[7], t2 = syncChannel.pipe(distinctUntilChanged(_temp$E), filter(t32), map(_temp2$h)), $[3] = id, $[4] = syncChannel, $[5] = t2;
|
|
482
482
|
} else
|
|
483
483
|
t2 = $[5];
|
|
484
484
|
const path = t2;
|
|
@@ -491,7 +491,7 @@ function usePathSyncChannel(t0) {
|
|
|
491
491
|
function _temp2$h(state_0) {
|
|
492
492
|
return state_0.path;
|
|
493
493
|
}
|
|
494
|
-
function _temp$
|
|
494
|
+
function _temp$E(previous, next) {
|
|
495
495
|
return deepEquals(previous.path, next.path);
|
|
496
496
|
}
|
|
497
497
|
const Scroller$5 = styled.div`
|
|
@@ -574,7 +574,7 @@ const Scroller$5 = styled.div`
|
|
|
574
574
|
}, $[0] = compareDocument, $[1] = t1) : t1 = $[1];
|
|
575
575
|
const compareValue = useCompareValue(t1), {
|
|
576
576
|
data: releases
|
|
577
|
-
} = useActiveReleases(), [patchChannel] = useState(_temp$
|
|
577
|
+
} = useActiveReleases(), [patchChannel] = useState(_temp$D);
|
|
578
578
|
let t2;
|
|
579
579
|
$[2] !== documentId || $[3] !== releases ? (t2 = findRelease(documentId, releases), $[2] = documentId, $[3] = releases, $[4] = t2) : t2 = $[4];
|
|
580
580
|
const perspective = t2;
|
|
@@ -676,7 +676,7 @@ function useCompareValue(t0) {
|
|
|
676
676
|
function sanitizeBundleName(bundle) {
|
|
677
677
|
return bundle === "draft" ? "drafts" : bundle;
|
|
678
678
|
}
|
|
679
|
-
function _temp$
|
|
679
|
+
function _temp$D() {
|
|
680
680
|
return createPatchChannel();
|
|
681
681
|
}
|
|
682
682
|
const Link = styled.a`
|
|
@@ -1640,7 +1640,7 @@ function PaneLayout(props) {
|
|
|
1640
1640
|
onExpand,
|
|
1641
1641
|
...restProps
|
|
1642
1642
|
} = props, $[0] = props, $[1] = children, $[2] = minWidth, $[3] = onCollapse, $[4] = onExpand, $[5] = restProps) : (children = $[1], minWidth = $[2], onCollapse = $[3], onExpand = $[4], restProps = $[5]);
|
|
1643
|
-
const [controller] = useState(_temp$
|
|
1643
|
+
const [controller] = useState(_temp$C), [rootElement, setRootElement] = useState(null), width = useElementRect(rootElement)?.width || 0, collapsed = width === void 0 || !minWidth ? void 0 : width < minWidth;
|
|
1644
1644
|
let t0;
|
|
1645
1645
|
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
1646
1646
|
expandedElement: null,
|
|
@@ -1675,7 +1675,7 @@ function PaneLayout(props) {
|
|
|
1675
1675
|
let t14;
|
|
1676
1676
|
return $[38] !== paneLayout || $[39] !== t13 ? (t14 = /* @__PURE__ */ jsx(PaneLayoutContext.Provider, { value: paneLayout, children: t13 }), $[38] = paneLayout, $[39] = t13, $[40] = t14) : t14 = $[40], t14;
|
|
1677
1677
|
}
|
|
1678
|
-
function _temp$
|
|
1678
|
+
function _temp$C() {
|
|
1679
1679
|
return createPaneLayoutController();
|
|
1680
1680
|
}
|
|
1681
1681
|
function ErrorPane(props) {
|
|
@@ -1985,7 +1985,7 @@ function DocumentInspectorMenuItemsResolver(props) {
|
|
|
1985
1985
|
index: index_0,
|
|
1986
1986
|
setMenuItem,
|
|
1987
1987
|
useMenuItem: inspector.useMenuItem
|
|
1988
|
-
}), inspector.name] : [_temp$
|
|
1988
|
+
}), inspector.name] : [_temp$B, ""], $[15] = documentId, $[16] = documentType, $[17] = t72) : t72 = $[17], t6 = inspectors2.map(t72), $[11] = documentId, $[12] = documentType, $[13] = inspectors2, $[14] = t6;
|
|
1989
1989
|
} else
|
|
1990
1990
|
t6 = $[14];
|
|
1991
1991
|
const InspectorMenuItems = t6;
|
|
@@ -1998,7 +1998,7 @@ function _temp2$g(t0) {
|
|
|
1998
1998
|
const [InspectorMenuItem, key] = t0;
|
|
1999
1999
|
return key && /* @__PURE__ */ jsx(InspectorMenuItem, {}, key);
|
|
2000
2000
|
}
|
|
2001
|
-
function _temp$
|
|
2001
|
+
function _temp$B() {
|
|
2002
2002
|
return null;
|
|
2003
2003
|
}
|
|
2004
2004
|
DocumentInspectorMenuItemsResolver.displayName = "DocumentInspectorMenuItemsResolver";
|
|
@@ -2714,7 +2714,7 @@ function RequestPermissionDialog(t0) {
|
|
|
2714
2714
|
let t32;
|
|
2715
2715
|
if ($[2] !== client.observable || $[3] !== projectId) {
|
|
2716
2716
|
let t42;
|
|
2717
|
-
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t42 = (roles) => roles.filter(_temp$
|
|
2717
|
+
$[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t42 = (roles) => roles.filter(_temp$A).find(_temp2$f) ? "editor" : adminRole, $[5] = t42) : t42 = $[5];
|
|
2718
2718
|
let t52;
|
|
2719
2719
|
$[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t52 = () => of(adminRole), $[6] = t52) : t52 = $[6], t32 = client.observable.request({
|
|
2720
2720
|
url: `/projects/${projectId}/roles`
|
|
@@ -2805,7 +2805,7 @@ function RequestPermissionDialog(t0) {
|
|
|
2805
2805
|
function _temp2$f(role_0) {
|
|
2806
2806
|
return role_0.name === "editor";
|
|
2807
2807
|
}
|
|
2808
|
-
function _temp$
|
|
2808
|
+
function _temp$A(role) {
|
|
2809
2809
|
return role?.appliesToUsers;
|
|
2810
2810
|
}
|
|
2811
2811
|
const LOADING_STATE = {
|
|
@@ -2891,7 +2891,7 @@ function InsufficientPermissionBanner(t0) {
|
|
|
2891
2891
|
}, $[0] = t1) : t1 = $[0];
|
|
2892
2892
|
const listFormat = useListFormat(t1), {
|
|
2893
2893
|
t
|
|
2894
|
-
} = useTranslation(structureLocaleNamespace), telemetry = useTelemetry(), roleTitles = currentUserRoles.map(_temp$
|
|
2894
|
+
} = useTranslation(structureLocaleNamespace), telemetry = useTelemetry(), roleTitles = currentUserRoles.map(_temp$z), roles = listFormat.formatToParts(roleTitles).map(_temp2$e);
|
|
2895
2895
|
let t2;
|
|
2896
2896
|
$[1] !== roles ? (t2 = {
|
|
2897
2897
|
Roles: () => /* @__PURE__ */ jsx(Fragment, { children: roles })
|
|
@@ -2928,7 +2928,7 @@ function InsufficientPermissionBanner(t0) {
|
|
|
2928
2928
|
function _temp2$e(part) {
|
|
2929
2929
|
return part.type === "element" ? /* @__PURE__ */ jsx("code", { children: part.value }, part.value) : part.value;
|
|
2930
2930
|
}
|
|
2931
|
-
function _temp$
|
|
2931
|
+
function _temp$z(role) {
|
|
2932
2932
|
return role.title;
|
|
2933
2933
|
}
|
|
2934
2934
|
const ReferenceChangedBanner = memo(() => {
|
|
@@ -2958,7 +2958,7 @@ const ReferenceChangedBanner = memo(() => {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
let t22;
|
|
2960
2960
|
if ($[3] !== documentPreviewStore || $[4] !== parentId || $[5] !== parentRefPath || $[6] !== parentRefPathSegment || $[7] !== selectedReleaseId) {
|
|
2961
|
-
const publishedId = getPublishedId(parentId), path = fromString(parentRefPathSegment), keyedSegmentIndex = path.findIndex(_temp$
|
|
2961
|
+
const publishedId = getPublishedId(parentId), path = fromString(parentRefPathSegment), keyedSegmentIndex = path.findIndex(_temp$y);
|
|
2962
2962
|
let t32;
|
|
2963
2963
|
$[9] !== parentRefPath ? (t32 = (t42) => {
|
|
2964
2964
|
const {
|
|
@@ -3022,7 +3022,7 @@ const ReferenceChangedBanner = memo(() => {
|
|
|
3022
3022
|
return $[27] !== t4 || $[28] !== t6 ? (t7 = /* @__PURE__ */ jsx(Banner, { action: t4, "data-testid": "reference-changed-banner", content: t6, icon: WarningOutlineIcon, tone: "caution" }), $[27] = t4, $[28] = t6, $[29] = t7) : t7 = $[29], t7;
|
|
3023
3023
|
});
|
|
3024
3024
|
ReferenceChangedBanner.displayName = "Memo(ReferenceChangedBanner)";
|
|
3025
|
-
function _temp$
|
|
3025
|
+
function _temp$y(p) {
|
|
3026
3026
|
return typeof p == "object" && "_key" in p;
|
|
3027
3027
|
}
|
|
3028
3028
|
function ScheduledDraftOverrideBanner() {
|
|
@@ -3179,7 +3179,7 @@ const Image = styled.img`
|
|
|
3179
3179
|
}
|
|
3180
3180
|
const variantText = t1;
|
|
3181
3181
|
let t2;
|
|
3182
|
-
$[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => setOpen(_temp$
|
|
3182
|
+
$[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = () => setOpen(_temp$x), $[8] = t2) : t2 = $[8];
|
|
3183
3183
|
const togglePopover = t2;
|
|
3184
3184
|
let t3;
|
|
3185
3185
|
$[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setOpen(!1), $[9] = t3) : t3 = $[9];
|
|
@@ -3222,7 +3222,7 @@ function CanvasLinkedBanner() {
|
|
|
3222
3222
|
let t3;
|
|
3223
3223
|
return $[7] !== t0 || $[8] !== t2 ? (t3 = /* @__PURE__ */ jsx(Banner, { tone: "neutral", "data-test-id": "canvas-linked-banner", paddingY: 0, content: t0, action: t2 }), $[7] = t0, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
|
|
3224
3224
|
}
|
|
3225
|
-
function _temp$
|
|
3225
|
+
function _temp$x(prev) {
|
|
3226
3226
|
return !prev;
|
|
3227
3227
|
}
|
|
3228
3228
|
const ChooseNewDocumentDestinationBanner = (t0) => {
|
|
@@ -3722,7 +3722,7 @@ const TitleContainer = styled(Stack)`
|
|
|
3722
3722
|
selectedPerspective
|
|
3723
3723
|
} = usePerspective(), documentStore = useDocumentStore(), presence = useDocumentPresence(documentId), {
|
|
3724
3724
|
title
|
|
3725
|
-
} = useDocumentTitle(), [patchChannel] = useState(_temp$
|
|
3725
|
+
} = useDocumentTitle(), [patchChannel] = useState(_temp$w), isLocked = editState?.transactionSyncLock?.enabled, {
|
|
3726
3726
|
t
|
|
3727
3727
|
} = useTranslation(structureLocaleNamespace);
|
|
3728
3728
|
let t0;
|
|
@@ -3809,7 +3809,7 @@ function prepareRebaseEvent(event) {
|
|
|
3809
3809
|
patches: fromMutationPatches("remote", remotePatches).concat(fromMutationPatches("local", localPatches))
|
|
3810
3810
|
};
|
|
3811
3811
|
}
|
|
3812
|
-
function _temp$
|
|
3812
|
+
function _temp$w() {
|
|
3813
3813
|
return createPatchChannel();
|
|
3814
3814
|
}
|
|
3815
3815
|
function DocumentHeaderTabs() {
|
|
@@ -3851,18 +3851,16 @@ function DocumentHeaderTab(props) {
|
|
|
3851
3851
|
let t2;
|
|
3852
3852
|
return $[11] !== handleClick || $[12] !== icon || $[13] !== id || $[14] !== isActive || $[15] !== label || $[16] !== rest || $[17] !== t1 || $[18] !== tabPanelId ? (t2 = /* @__PURE__ */ jsx(Tab, { ...rest, "aria-controls": tabPanelId, disabled: t1, icon, id, label, onClick: handleClick, selected: isActive }), $[11] = handleClick, $[12] = icon, $[13] = id, $[14] = isActive, $[15] = label, $[16] = rest, $[17] = t1, $[18] = tabPanelId, $[19] = t2) : t2 = $[19], t2;
|
|
3853
3853
|
}
|
|
3854
|
+
const DEFAULT_VALUE = {
|
|
3855
|
+
paneDataItems: [],
|
|
3856
|
+
routerPanes: [],
|
|
3857
|
+
resolvedPanes: [],
|
|
3858
|
+
maximizedPane: null,
|
|
3859
|
+
setMaximizedPane: () => {
|
|
3860
|
+
}
|
|
3861
|
+
};
|
|
3854
3862
|
function useResolvedPanesList() {
|
|
3855
|
-
|
|
3856
|
-
let t0;
|
|
3857
|
-
return $[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = {
|
|
3858
|
-
paneDataItems: [],
|
|
3859
|
-
routerPanes: [],
|
|
3860
|
-
resolvedPanes: [],
|
|
3861
|
-
maximizedPane: null,
|
|
3862
|
-
setMaximizedPane: _temp$w
|
|
3863
|
-
}, $[0] = t0) : t0 = $[0], context ?? t0;
|
|
3864
|
-
}
|
|
3865
|
-
function _temp$w() {
|
|
3863
|
+
return useContext(ResolvedPanesContext) ?? DEFAULT_VALUE;
|
|
3866
3864
|
}
|
|
3867
3865
|
const _DEBUG = !1, EMPTY_PARAMS$1 = Object.freeze({}), LOADING_PANE = /* @__PURE__ */ Symbol("LOADING_PANE"), DOCUMENT_PANEL_PORTAL_ELEMENT = "documentPanelPortalElement", FocusDocumentPaneClicked = defineEvent({
|
|
3868
3866
|
name: "Maximized Document Pane Clicked",
|
|
@@ -5041,27 +5039,27 @@ const HorizontalScroller = styled(Card)((props) => {
|
|
|
5041
5039
|
onSetMaximizedPane?.(), isMaximizedPane ? telemetry.log(FocusDocumentPaneCollapsed) : telemetry.log(FocusDocumentPaneClicked);
|
|
5042
5040
|
}, $[9] = isMaximizedPane, $[10] = onSetMaximizedPane, $[11] = telemetry, $[12] = t3) : t3 = $[12];
|
|
5043
5041
|
const handleFocusPane = t3;
|
|
5042
|
+
let t4;
|
|
5043
|
+
$[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t4 = /* @__PURE__ */ jsx(DocumentHeaderTitle, {}), $[13] = t4) : t4 = $[13];
|
|
5044
|
+
const title = t4;
|
|
5044
5045
|
let t5;
|
|
5045
|
-
$[
|
|
5046
|
-
const title = t5;
|
|
5047
|
-
let t6;
|
|
5048
|
-
$[14] !== BackLink2 || $[15] !== showBackButton || $[16] !== t ? (t6 = showBackButton && /* @__PURE__ */ jsx(Button$1, { as: BackLink2, "data-as": "a", icon: ArrowLeftIcon, mode: "bleed", tooltipProps: {
|
|
5046
|
+
$[14] !== BackLink2 || $[15] !== showBackButton || $[16] !== t ? (t5 = showBackButton && /* @__PURE__ */ jsx(Button$1, { as: BackLink2, "data-as": "a", icon: ArrowLeftIcon, mode: "bleed", tooltipProps: {
|
|
5049
5047
|
content: t("pane-header.back-button.text")
|
|
5050
|
-
} }), $[14] = BackLink2, $[15] = showBackButton, $[16] = t, $[17] =
|
|
5051
|
-
const backButton =
|
|
5052
|
-
let
|
|
5053
|
-
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] !== ref || $[31] !== referenceElement || $[32] !== schemaType || $[33] !== showGradient || $[34] !== showPaneGroupCloseButton || $[35] !== showSplitPaneButton || $[36] !== showSplitPaneCloseButton || $[37] !== t || $[38] !== tabIndex || $[39] !== unstable_languageFilter ? (
|
|
5048
|
+
} }), $[14] = BackLink2, $[15] = showBackButton, $[16] = t, $[17] = t5) : t5 = $[17];
|
|
5049
|
+
const backButton = t5;
|
|
5050
|
+
let t6;
|
|
5051
|
+
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] !== ref || $[31] !== referenceElement || $[32] !== schemaType || $[33] !== showGradient || $[34] !== showPaneGroupCloseButton || $[35] !== showSplitPaneButton || $[36] !== showSplitPaneCloseButton || $[37] !== t || $[38] !== tabIndex || $[39] !== 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: {
|
|
5054
5052
|
lineHeight: 0
|
|
5055
5053
|
}, borderBottom: !0, children: /* @__PURE__ */ jsxs(Flex, { gap: 3, paddingY: 3, children: [
|
|
5056
5054
|
/* @__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, {}) }) }),
|
|
5057
5055
|
/* @__PURE__ */ jsx(Box, { flex: "none", paddingRight: 3, children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 1, children: [
|
|
5058
5056
|
unstable_languageFilter.length > 0 && /* @__PURE__ */ jsx(Fragment, { children: unstable_languageFilter.map((LanguageFilterComponent, idx) => /* @__PURE__ */ jsx(LanguageFilterComponent, { schemaType }, `language-filter-${idx}`)) }),
|
|
5059
5057
|
menuButtonNodes.map(_temp$s),
|
|
5060
|
-
editState && /* @__PURE__ */ jsx(RenderActionCollectionState, { group: "paneActions", children: (
|
|
5058
|
+
editState && /* @__PURE__ */ jsx(RenderActionCollectionState, { group: "paneActions", children: (t7) => {
|
|
5061
5059
|
const {
|
|
5062
|
-
states
|
|
5063
|
-
} =
|
|
5064
|
-
return /* @__PURE__ */ jsx(DocumentPanelHeaderActionDialogDeferred, { contextMenuNodes, setReferenceElement, referenceElement, states
|
|
5060
|
+
states
|
|
5061
|
+
} = t7;
|
|
5062
|
+
return /* @__PURE__ */ jsx(DocumentPanelHeaderActionDialogDeferred, { contextMenuNodes, setReferenceElement, referenceElement, states });
|
|
5065
5063
|
} }),
|
|
5066
5064
|
showSplitPaneButton && /* @__PURE__ */ jsx(Button$1, { "aria-label": t("buttons.split-pane-button.aria-label"), icon: SplitVerticalIcon, mode: "bleed", onClick: onPaneSplit, tooltipProps: {
|
|
5067
5065
|
content: t("buttons.split-pane-button.tooltip")
|
|
@@ -5076,7 +5074,7 @@ const HorizontalScroller = styled(Card)((props) => {
|
|
|
5076
5074
|
content: t("buttons.split-pane-close-group-button.title")
|
|
5077
5075
|
}, as: BackLink2 }, "close-view-button")
|
|
5078
5076
|
] }) })
|
|
5079
|
-
] }) }) }), $[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] = ref, $[31] = referenceElement, $[32] = schemaType, $[33] = showGradient, $[34] = showPaneGroupCloseButton, $[35] = showSplitPaneButton, $[36] = showSplitPaneCloseButton, $[37] = t, $[38] = tabIndex, $[39] = unstable_languageFilter, $[40] =
|
|
5077
|
+
] }) }) }), $[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] = ref, $[31] = referenceElement, $[32] = schemaType, $[33] = showGradient, $[34] = showPaneGroupCloseButton, $[35] = showSplitPaneButton, $[36] = showSplitPaneCloseButton, $[37] = t, $[38] = tabIndex, $[39] = unstable_languageFilter, $[40] = t6) : t6 = $[40], t6;
|
|
5080
5078
|
})), DocumentPanelHeaderActionDialogDeferred = memo(function(props) {
|
|
5081
5079
|
const $ = c(7), {
|
|
5082
5080
|
setReferenceElement,
|