sanity 5.2.1-next.1 → 5.2.1-next.3
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/package.js +1 -1
- package/lib/_chunks-es/pane.js +81 -62
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +5 -3
- package/lib/index.js.map +1 -1
- package/package.json +13 -13
package/lib/_chunks-es/pane.js
CHANGED
|
@@ -8694,46 +8694,63 @@ const ChevronWrapper = styled(Box)`
|
|
|
8694
8694
|
] }) }), $[10] = t1, $[11] = t4, $[12] = t5) : t5 = $[12], t5;
|
|
8695
8695
|
};
|
|
8696
8696
|
function PaneItemPreview(props) {
|
|
8697
|
-
const $ = c(
|
|
8697
|
+
const $ = c(30), {
|
|
8698
8698
|
icon,
|
|
8699
8699
|
layout,
|
|
8700
8700
|
presence,
|
|
8701
8701
|
schemaType,
|
|
8702
|
+
sortOrder,
|
|
8702
8703
|
value
|
|
8703
8704
|
} = props, versionsInfo = useDocumentVersionInfo(value._id), {
|
|
8704
8705
|
perspectiveStack
|
|
8705
8706
|
} = usePerspective();
|
|
8706
8707
|
let t0;
|
|
8707
|
-
|
|
8708
|
-
|
|
8708
|
+
bb0: {
|
|
8709
|
+
if (!sortOrder) {
|
|
8710
|
+
t0 = void 0;
|
|
8711
|
+
break bb0;
|
|
8712
|
+
}
|
|
8713
|
+
let t12;
|
|
8714
|
+
$[0] !== sortOrder.by ? (t12 = {
|
|
8715
|
+
ordering: {
|
|
8716
|
+
title: "",
|
|
8717
|
+
name: "",
|
|
8718
|
+
by: sortOrder.by
|
|
8719
|
+
}
|
|
8720
|
+
}, $[0] = sortOrder.by, $[1] = t12) : t12 = $[1], t0 = t12;
|
|
8721
|
+
}
|
|
8722
|
+
const viewOptions = t0;
|
|
8709
8723
|
let t1;
|
|
8710
|
-
$[
|
|
8724
|
+
$[2] !== perspectiveStack || $[3] !== props.documentPreviewStore || $[4] !== schemaType || $[5] !== value._id || $[6] !== viewOptions ? (t1 = getPreviewStateObservable(props.documentPreviewStore, schemaType, value._id, perspectiveStack, viewOptions), $[2] = perspectiveStack, $[3] = props.documentPreviewStore, $[4] = schemaType, $[5] = value._id, $[6] = viewOptions, $[7] = t1) : t1 = $[7];
|
|
8725
|
+
const previewStateObservable = t1;
|
|
8726
|
+
let t2;
|
|
8727
|
+
$[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = {
|
|
8711
8728
|
snapshot: null,
|
|
8712
8729
|
isLoading: !0,
|
|
8713
8730
|
original: null
|
|
8714
|
-
}, $[
|
|
8731
|
+
}, $[8] = t2) : t2 = $[8];
|
|
8715
8732
|
const {
|
|
8716
8733
|
snapshot,
|
|
8717
8734
|
original,
|
|
8718
8735
|
isLoading: previewIsLoading
|
|
8719
|
-
} = useObservable(previewStateObservable,
|
|
8720
|
-
let
|
|
8721
|
-
$[
|
|
8736
|
+
} = useObservable(previewStateObservable, t2), isLoading = previewIsLoading;
|
|
8737
|
+
let t3;
|
|
8738
|
+
$[9] !== isLoading || $[10] !== presence || $[11] !== versionsInfo.draft || $[12] !== versionsInfo.published || $[13] !== versionsInfo.versions ? (t3 = isLoading ? null : /* @__PURE__ */ jsx(TooltipDelayGroupProvider, { children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 3, children: [
|
|
8722
8739
|
presence && presence.length > 0 && /* @__PURE__ */ jsx(DocumentPreviewPresence, { presence }),
|
|
8723
8740
|
/* @__PURE__ */ jsx(DocumentStatusIndicator, { draft: versionsInfo.draft, published: versionsInfo.published, versions: versionsInfo.versions })
|
|
8724
|
-
] }) }), $[
|
|
8725
|
-
const status =
|
|
8726
|
-
let t3;
|
|
8727
|
-
$[12] !== versionsInfo.draft || $[13] !== versionsInfo.published || $[14] !== versionsInfo.versions ? (t3 = /* @__PURE__ */ jsx(DocumentStatus, { draft: versionsInfo.draft, published: versionsInfo.published, versions: versionsInfo.versions }), $[12] = versionsInfo.draft, $[13] = versionsInfo.published, $[14] = versionsInfo.versions, $[15] = t3) : t3 = $[15];
|
|
8728
|
-
const tooltip = t3;
|
|
8741
|
+
] }) }), $[9] = isLoading, $[10] = presence, $[11] = versionsInfo.draft, $[12] = versionsInfo.published, $[13] = versionsInfo.versions, $[14] = t3) : t3 = $[14];
|
|
8742
|
+
const status = t3;
|
|
8729
8743
|
let t4;
|
|
8730
|
-
$[
|
|
8744
|
+
$[15] !== versionsInfo.draft || $[16] !== versionsInfo.published || $[17] !== versionsInfo.versions ? (t4 = /* @__PURE__ */ jsx(DocumentStatus, { draft: versionsInfo.draft, published: versionsInfo.published, versions: versionsInfo.versions }), $[15] = versionsInfo.draft, $[16] = versionsInfo.published, $[17] = versionsInfo.versions, $[18] = t4) : t4 = $[18];
|
|
8745
|
+
const tooltip = t4;
|
|
8746
|
+
let t5;
|
|
8747
|
+
$[19] !== original || $[20] !== snapshot || $[21] !== value ? (t5 = getPreviewValueWithFallback({
|
|
8731
8748
|
snapshot,
|
|
8732
8749
|
original,
|
|
8733
8750
|
fallback: value
|
|
8734
|
-
}), $[
|
|
8735
|
-
let
|
|
8736
|
-
return $[
|
|
8751
|
+
}), $[19] = original, $[20] = snapshot, $[21] = value, $[22] = t5) : t5 = $[22];
|
|
8752
|
+
let t6;
|
|
8753
|
+
return $[23] !== icon || $[24] !== isLoading || $[25] !== layout || $[26] !== status || $[27] !== t5 || $[28] !== tooltip ? (t6 = /* @__PURE__ */ jsx(SanityDefaultPreview, { ...t5, isPlaceholder: isLoading, icon, layout, status, tooltip }), $[23] = icon, $[24] = isLoading, $[25] = layout, $[26] = status, $[27] = t5, $[28] = tooltip, $[29] = t6) : t6 = $[29], t6;
|
|
8737
8754
|
}
|
|
8738
8755
|
const EMPTY_ARRAY = [];
|
|
8739
8756
|
function ReferencePreviewLink(props) {
|
|
@@ -9525,13 +9542,14 @@ function getIconWithFallback(icon, schemaType, defaultIcon) {
|
|
|
9525
9542
|
return icon === !1 ? !1 : icon || schemaType && schemaType.icon || defaultIcon || !1;
|
|
9526
9543
|
}
|
|
9527
9544
|
function PaneItem(props) {
|
|
9528
|
-
const $ = c(
|
|
9545
|
+
const $ = c(43), {
|
|
9529
9546
|
icon,
|
|
9530
9547
|
id,
|
|
9531
9548
|
layout: t0,
|
|
9532
9549
|
pressed,
|
|
9533
9550
|
schemaType,
|
|
9534
9551
|
selected,
|
|
9552
|
+
sortOrder,
|
|
9535
9553
|
title,
|
|
9536
9554
|
value,
|
|
9537
9555
|
margin,
|
|
@@ -9551,52 +9569,52 @@ function PaneItem(props) {
|
|
|
9551
9569
|
let t23;
|
|
9552
9570
|
$[2] !== icon || $[3] !== schemaType ? (t23 = getIconWithFallback(icon, schemaType, DocumentIcon), $[2] = icon, $[3] = schemaType, $[4] = t23) : t23 = $[4];
|
|
9553
9571
|
let t33;
|
|
9554
|
-
$[5] !== documentPresence || $[6] !== documentPreviewStore || $[7] !== layout || $[8] !== schemaType || $[9] !==
|
|
9572
|
+
$[5] !== documentPresence || $[6] !== documentPreviewStore || $[7] !== layout || $[8] !== schemaType || $[9] !== sortOrder || $[10] !== t23 || $[11] !== value ? (t33 = /* @__PURE__ */ jsx(PaneItemPreview, { documentPreviewStore, icon: t23, layout, schemaType, sortOrder, value, presence: documentPresence }), $[5] = documentPresence, $[6] = documentPreviewStore, $[7] = layout, $[8] = schemaType, $[9] = sortOrder, $[10] = t23, $[11] = value, $[12] = t33) : t33 = $[12], t1 = t33;
|
|
9555
9573
|
break bb0;
|
|
9556
9574
|
}
|
|
9557
9575
|
let t22;
|
|
9558
|
-
$[
|
|
9576
|
+
$[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t22 = {
|
|
9559
9577
|
opacity: 0.5
|
|
9560
|
-
}, $[
|
|
9578
|
+
}, $[13] = t22) : t22 = $[13];
|
|
9561
9579
|
let t32;
|
|
9562
|
-
$[
|
|
9580
|
+
$[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t32 = /* @__PURE__ */ jsx(Box, { style: t22, children: /* @__PURE__ */ jsx(Text, { muted: !0, size: 1, children: /* @__PURE__ */ jsx(ChevronRightIcon, {}) }) }), $[14] = t32) : t32 = $[14];
|
|
9563
9581
|
let t42;
|
|
9564
|
-
$[
|
|
9582
|
+
$[15] !== icon || $[16] !== schemaType ? (t42 = getIconWithFallback(icon, schemaType, FolderIcon), $[15] = icon, $[16] = schemaType, $[17] = t42) : t42 = $[17];
|
|
9565
9583
|
let t52;
|
|
9566
|
-
$[
|
|
9584
|
+
$[18] !== t42 || $[19] !== title ? (t52 = /* @__PURE__ */ jsx(SanityDefaultPreview, { status: t32, icon: t42, layout: "compact", title }), $[18] = t42, $[19] = title, $[20] = t52) : t52 = $[20], t1 = t52;
|
|
9567
9585
|
}
|
|
9568
9586
|
const preview = t1;
|
|
9569
9587
|
let t2;
|
|
9570
|
-
$[
|
|
9588
|
+
$[21] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t2 = (e) => {
|
|
9571
9589
|
if (e.metaKey) {
|
|
9572
9590
|
setClicked(!1);
|
|
9573
9591
|
return;
|
|
9574
9592
|
}
|
|
9575
9593
|
setClicked(!0);
|
|
9576
|
-
}, $[
|
|
9594
|
+
}, $[21] = t2) : t2 = $[21];
|
|
9577
9595
|
const handleClick = t2;
|
|
9578
9596
|
let t3;
|
|
9579
|
-
$[
|
|
9597
|
+
$[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t3 = () => setClicked(!1), $[22] = t3) : t3 = $[22];
|
|
9580
9598
|
let t4;
|
|
9581
|
-
$[
|
|
9599
|
+
$[23] !== selected ? (t4 = [selected], $[23] = selected, $[24] = t4) : t4 = $[24], useEffect(t3, t4);
|
|
9582
9600
|
const [preloading, setPreload] = useState(!1), timeoutRef = useRef(null);
|
|
9583
9601
|
let t5;
|
|
9584
|
-
$[
|
|
9602
|
+
$[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t5 = () => {
|
|
9585
9603
|
timeoutRef.current = setTimeout(() => startTransition(() => setPreload(!0)), 400);
|
|
9586
|
-
}, $[
|
|
9604
|
+
}, $[25] = t5) : t5 = $[25];
|
|
9587
9605
|
const handleMouseEnter = t5;
|
|
9588
9606
|
let t6;
|
|
9589
|
-
$[
|
|
9607
|
+
$[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
|
|
9590
9608
|
timeoutRef.current && clearTimeout(timeoutRef.current), startTransition(() => setPreload(!1));
|
|
9591
|
-
}, $[
|
|
9609
|
+
}, $[26] = t6) : t6 = $[26];
|
|
9592
9610
|
const handleMouseLeave = t6, t7 = `pane-item-${title}`, t8 = ChildLink2, t9 = selected || clicked;
|
|
9593
9611
|
let t10;
|
|
9594
|
-
$[
|
|
9612
|
+
$[27] !== id || $[28] !== preloading || $[29] !== schemaType || $[30] !== value ? (t10 = preloading && schemaType?.name && value && isSanityDocument$1(value) && /* @__PURE__ */ jsx(PreloadDocumentPane, { documentId: id, documentType: schemaType.name }), $[27] = id, $[28] = preloading, $[29] = schemaType, $[30] = value, $[31] = t10) : t10 = $[31];
|
|
9595
9613
|
let t11;
|
|
9596
|
-
return $[
|
|
9614
|
+
return $[32] !== id || $[33] !== margin || $[34] !== marginBottom || $[35] !== marginTop || $[36] !== pressed || $[37] !== preview || $[38] !== t10 || $[39] !== t7 || $[40] !== t8 || $[41] !== t9 ? (t11 = /* @__PURE__ */ jsxs(PreviewCard, { "data-testid": t7, __unstable_focusRing: !0, as: t8, childId: id, "data-as": "a", margin, marginBottom, marginTop, onClick: handleClick, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, pressed, radius: 2, selected: t9, sizing: "border", tabIndex: -1, tone: "inherit", children: [
|
|
9597
9615
|
preview,
|
|
9598
9616
|
t10
|
|
9599
|
-
] }), $[
|
|
9617
|
+
] }), $[32] = id, $[33] = margin, $[34] = marginBottom, $[35] = marginTop, $[36] = pressed, $[37] = preview, $[38] = t10, $[39] = t7, $[40] = t8, $[41] = t9, $[42] = t11) : t11 = $[42], t11;
|
|
9600
9618
|
}
|
|
9601
9619
|
function PreloadDocumentPane(props) {
|
|
9602
9620
|
const $ = c(2), {
|
|
@@ -9661,7 +9679,7 @@ function LoadingView(props) {
|
|
|
9661
9679
|
return $[2] !== t0 ? (t1 = /* @__PURE__ */ jsx(Stack, { paddingX: 3, paddingY: 2, paddingTop: 0, space: 1, children: t0 }), $[2] = t0, $[3] = t1) : t1 = $[3], t1;
|
|
9662
9680
|
}
|
|
9663
9681
|
function DocumentListPaneContent(props) {
|
|
9664
|
-
const $ = c(
|
|
9682
|
+
const $ = c(67), {
|
|
9665
9683
|
childItemId,
|
|
9666
9684
|
error,
|
|
9667
9685
|
isRetrying,
|
|
@@ -9683,7 +9701,8 @@ function DocumentListPaneContent(props) {
|
|
|
9683
9701
|
onRetry,
|
|
9684
9702
|
paneTitle,
|
|
9685
9703
|
searchInputElement,
|
|
9686
|
-
showIcons
|
|
9704
|
+
showIcons,
|
|
9705
|
+
sortOrder
|
|
9687
9706
|
} = props, schema = useSchema(), {
|
|
9688
9707
|
collapsed: layoutCollapsed
|
|
9689
9708
|
} = usePaneLayout(), {
|
|
@@ -9711,32 +9730,32 @@ function DocumentListPaneContent(props) {
|
|
|
9711
9730
|
let t2;
|
|
9712
9731
|
$[5] !== collapsed || $[6] !== items ? (t2 = [collapsed, items], $[5] = collapsed, $[6] = items, $[7] = t2) : t2 = $[7], useEffect(t1, t2);
|
|
9713
9732
|
let t3;
|
|
9714
|
-
$[8] !== childItemId || $[9] !== hasMaxItems || $[10] !== isActive || $[11] !== isLazyLoading || $[12] !== items.length || $[13] !== layout || $[14] !== schema || $[15] !== showIcons || $[16] !== t ? (t3 = (item, t42) => {
|
|
9733
|
+
$[8] !== childItemId || $[9] !== hasMaxItems || $[10] !== isActive || $[11] !== isLazyLoading || $[12] !== items.length || $[13] !== layout || $[14] !== schema || $[15] !== showIcons || $[16] !== sortOrder || $[17] !== t ? (t3 = (item, t42) => {
|
|
9715
9734
|
const {
|
|
9716
9735
|
activeIndex
|
|
9717
9736
|
} = t42, publishedId = getPublishedId(item._id), isSelected = childItemId === publishedId, pressed = !isActive && isSelected, selected = isActive && isSelected, isLastItem = activeIndex === items.length - 1, showSpinner = isLastItem && isLazyLoading, showMaxItemsMessage = isLastItem && hasMaxItems;
|
|
9718
9737
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9719
|
-
/* @__PURE__ */ jsx(PaneItem, { icon: showIcons === !1 ? !1 : void 0, id: publishedId, layout, marginBottom: 1, pressed, schemaType: schema.get(item._type), selected, value: item }),
|
|
9738
|
+
/* @__PURE__ */ jsx(PaneItem, { icon: showIcons === !1 ? !1 : void 0, id: publishedId, layout, marginBottom: 1, pressed, schemaType: schema.get(item._type), selected, sortOrder, value: item }),
|
|
9720
9739
|
showSpinner && /* @__PURE__ */ jsx(LoadingBlock, {}),
|
|
9721
9740
|
showMaxItemsMessage && /* @__PURE__ */ jsx(Box, { marginY: 1, paddingX: 3, paddingY: 4, children: /* @__PURE__ */ jsx(Text, { align: "center", muted: !0, size: 1, children: t("panes.document-list-pane.max-items.text", {
|
|
9722
9741
|
limit: FULL_LIST_LIMIT
|
|
9723
9742
|
}) }) })
|
|
9724
9743
|
] });
|
|
9725
|
-
}, $[8] = childItemId, $[9] = hasMaxItems, $[10] = isActive, $[11] = isLazyLoading, $[12] = items.length, $[13] = layout, $[14] = schema, $[15] = showIcons, $[16] =
|
|
9744
|
+
}, $[8] = childItemId, $[9] = hasMaxItems, $[10] = isActive, $[11] = isLazyLoading, $[12] = items.length, $[13] = layout, $[14] = schema, $[15] = showIcons, $[16] = sortOrder, $[17] = t, $[18] = t3) : t3 = $[18];
|
|
9726
9745
|
const renderItem = t3;
|
|
9727
9746
|
let t4;
|
|
9728
9747
|
bb0: {
|
|
9729
9748
|
if (hasSearchQuery) {
|
|
9730
9749
|
let t53;
|
|
9731
|
-
$[
|
|
9750
|
+
$[19] !== t ? (t53 = t("panes.document-list-pane.no-documents.text"), $[19] = t, $[20] = t53) : t53 = $[20];
|
|
9732
9751
|
let t63;
|
|
9733
|
-
$[
|
|
9752
|
+
$[21] !== t53 ? (t63 = /* @__PURE__ */ jsx(Flex, { align: "center", direction: "column", height: "fill", justify: "center", children: /* @__PURE__ */ jsx(Container$1, { width: 1, children: /* @__PURE__ */ jsx(Box, { paddingX: 4, paddingY: 5, children: /* @__PURE__ */ jsx(Text, { align: "center", muted: !0, children: t53 }) }) }) }), $[21] = t53, $[22] = t63) : t63 = $[22], t4 = t63;
|
|
9734
9753
|
break bb0;
|
|
9735
9754
|
}
|
|
9736
9755
|
let t52;
|
|
9737
|
-
$[
|
|
9756
|
+
$[23] !== filterIsSimpleTypeConstraint || $[24] !== t ? (t52 = t(filterIsSimpleTypeConstraint ? "panes.document-list-pane.no-documents-of-type.text" : "panes.document-list-pane.no-matching-documents.text"), $[23] = filterIsSimpleTypeConstraint, $[24] = t, $[25] = t52) : t52 = $[25];
|
|
9738
9757
|
let t62;
|
|
9739
|
-
$[
|
|
9758
|
+
$[26] !== t52 ? (t62 = /* @__PURE__ */ jsx(Flex, { align: "center", direction: "column", height: "fill", justify: "center", children: /* @__PURE__ */ jsx(Container$1, { width: 1, children: /* @__PURE__ */ jsx(Box, { paddingX: 4, paddingY: 5, children: /* @__PURE__ */ jsx(Text, { align: "center", muted: !0, children: t52 }) }) }) }), $[26] = t52, $[27] = t62) : t62 = $[27], t4 = t62;
|
|
9740
9759
|
}
|
|
9741
9760
|
const noDocumentsContent = t4;
|
|
9742
9761
|
let t5;
|
|
@@ -9748,35 +9767,35 @@ function DocumentListPaneContent(props) {
|
|
|
9748
9767
|
const isOnline = window.navigator.onLine;
|
|
9749
9768
|
if (error) {
|
|
9750
9769
|
let t63;
|
|
9751
|
-
$[
|
|
9770
|
+
$[28] !== t ? (t63 = t("panes.document-list-pane.error.title"), $[28] = t, $[29] = t63) : t63 = $[29];
|
|
9752
9771
|
let t73;
|
|
9753
|
-
$[
|
|
9772
|
+
$[30] !== t63 ? (t73 = /* @__PURE__ */ jsx(Heading, { as: "h3", children: t63 }), $[30] = t63, $[31] = t73) : t73 = $[31];
|
|
9754
9773
|
let t82;
|
|
9755
|
-
$[
|
|
9774
|
+
$[32] !== error || $[33] !== t ? (t82 = isDev ? /* @__PURE__ */ jsx(Translate, { t, i18nKey: "panes.document-list-pane.error.text.dev", values: {
|
|
9756
9775
|
error: error.message
|
|
9757
9776
|
}, components: {
|
|
9758
9777
|
Code: _temp$9
|
|
9759
|
-
} }) : t(isOnline ? "panes.document-list-pane.error.text" : "panes.document-list-pane.error.text.offline"), $[
|
|
9778
|
+
} }) : t(isOnline ? "panes.document-list-pane.error.text" : "panes.document-list-pane.error.text.offline"), $[32] = error, $[33] = t, $[34] = t82) : t82 = $[34];
|
|
9760
9779
|
let t9;
|
|
9761
|
-
$[
|
|
9780
|
+
$[35] !== t82 ? (t9 = /* @__PURE__ */ jsx(Text, { as: "p", children: t82 }), $[35] = t82, $[36] = t9) : t9 = $[36];
|
|
9762
9781
|
const t10 = isOnline && canRetry ? onRetry : void 0;
|
|
9763
9782
|
let t11;
|
|
9764
|
-
$[
|
|
9783
|
+
$[37] !== error || $[38] !== isRetrying || $[39] !== t10 ? (t11 = /* @__PURE__ */ jsx(ErrorActions, { error, eventId: null, onRetry: t10, isRetrying }), $[37] = error, $[38] = isRetrying, $[39] = t10, $[40] = t11) : t11 = $[40];
|
|
9765
9784
|
let t12;
|
|
9766
|
-
$[
|
|
9785
|
+
$[41] !== autoRetry || $[42] !== canRetry || $[43] !== isRetrying || $[44] !== retryCount || $[45] !== t ? (t12 = canRetry ? /* @__PURE__ */ jsx(Text, { as: "p", muted: !0, size: 1, children: isRetrying ? t("panes.document-list-pane.error.retrying", {
|
|
9767
9786
|
count: retryCount
|
|
9768
9787
|
}) : autoRetry ? t("panes.document-list-pane.error.will-retry-automatically", {
|
|
9769
9788
|
count: retryCount
|
|
9770
9789
|
}) : t("panes.document-list-pane.error.max-retries-attempted", {
|
|
9771
9790
|
count: retryCount
|
|
9772
|
-
}) }) : null, $[
|
|
9791
|
+
}) }) : null, $[41] = autoRetry, $[42] = canRetry, $[43] = isRetrying, $[44] = retryCount, $[45] = t, $[46] = t12) : t12 = $[46];
|
|
9773
9792
|
let t13;
|
|
9774
|
-
$[
|
|
9793
|
+
$[47] !== t11 || $[48] !== t12 || $[49] !== t73 || $[50] !== t9 ? (t13 = /* @__PURE__ */ jsx(Flex, { align: "center", direction: "column", height: "fill", justify: "center", children: /* @__PURE__ */ jsx(Container$1, { width: 1, children: /* @__PURE__ */ jsxs(Stack, { paddingX: 4, paddingY: 5, space: 4, children: [
|
|
9775
9794
|
t73,
|
|
9776
9795
|
t9,
|
|
9777
9796
|
t11,
|
|
9778
9797
|
t12
|
|
9779
|
-
] }) }) }), $[
|
|
9798
|
+
] }) }) }), $[47] = t11, $[48] = t12, $[49] = t73, $[50] = t9, $[51] = t13) : t13 = $[51], t5 = t13;
|
|
9780
9799
|
break bb1;
|
|
9781
9800
|
}
|
|
9782
9801
|
if (isConnected && !isLoading && items.length === 0) {
|
|
@@ -9785,7 +9804,7 @@ function DocumentListPaneContent(props) {
|
|
|
9785
9804
|
}
|
|
9786
9805
|
if (loadingVariant === "initial" && isLoading) {
|
|
9787
9806
|
let t63;
|
|
9788
|
-
$[
|
|
9807
|
+
$[52] !== layout ? (t63 = /* @__PURE__ */ jsx(Delay, { ms: 300, children: /* @__PURE__ */ jsx(LoadingView, { layout }) }), $[52] = layout, $[53] = t63) : t63 = $[53], t5 = t63;
|
|
9789
9808
|
break bb1;
|
|
9790
9809
|
}
|
|
9791
9810
|
if (loadingVariant === "spinner" && isLoading) {
|
|
@@ -9794,13 +9813,13 @@ function DocumentListPaneContent(props) {
|
|
|
9794
9813
|
}
|
|
9795
9814
|
const key = `${index}-${collapsed}`, t62 = muted ? 0.8 : 1;
|
|
9796
9815
|
let t72;
|
|
9797
|
-
$[
|
|
9816
|
+
$[54] !== handleEndReached || $[55] !== items || $[56] !== key || $[57] !== paneTitle || $[58] !== renderItem || $[59] !== searchInputElement ? (t72 = /* @__PURE__ */ jsx(CommandListBox, { children: /* @__PURE__ */ jsx(CommandList, { activeItemDataAttr: "data-hovered", ariaLabel: paneTitle, canReceiveFocus: !0, inputElement: searchInputElement, itemHeight: 51, items, onEndReached: handleEndReached, onlyShowSelectionWhenActive: !0, overscan: 10, paddingBottom: 1, paddingX: 3, renderItem, wrapAround: !1 }, key) }), $[54] = handleEndReached, $[55] = items, $[56] = key, $[57] = paneTitle, $[58] = renderItem, $[59] = searchInputElement, $[60] = t72) : t72 = $[60];
|
|
9798
9817
|
let t8;
|
|
9799
|
-
$[
|
|
9818
|
+
$[61] !== t62 || $[62] !== t72 ? (t8 = /* @__PURE__ */ jsx(RootBox, { overflow: "hidden", height: "fill", $opacity: t62, children: t72 }), $[61] = t62, $[62] = t72, $[63] = t8) : t8 = $[63], t5 = t8;
|
|
9800
9819
|
}
|
|
9801
9820
|
const mainContent = t5, t6 = layoutCollapsed || loadingVariant === "initial" ? "hidden" : "auto";
|
|
9802
9821
|
let t7;
|
|
9803
|
-
return $[
|
|
9822
|
+
return $[64] !== mainContent || $[65] !== t6 ? (t7 = /* @__PURE__ */ jsx(PaneContent, { "data-testid": "document-list-pane", overflow: t6, children: mainContent }), $[64] = mainContent, $[65] = t6, $[66] = t7) : t7 = $[66], t7;
|
|
9804
9823
|
}
|
|
9805
9824
|
function _temp$9(t0) {
|
|
9806
9825
|
const {
|
|
@@ -10194,7 +10213,7 @@ const rotate = keyframes`
|
|
|
10194
10213
|
${fadeIn} 1000ms linear;
|
|
10195
10214
|
opacity: 0.4;
|
|
10196
10215
|
`, DocumentListPane = memo(function(props) {
|
|
10197
|
-
const $ = c(
|
|
10216
|
+
const $ = c(70), {
|
|
10198
10217
|
childItemId,
|
|
10199
10218
|
isActive,
|
|
10200
10219
|
pane: pane2,
|
|
@@ -10322,12 +10341,12 @@ const rotate = keyframes`
|
|
|
10322
10341
|
$[34] !== handleQueryChange || $[35] !== searchInputValue || $[36] !== t15 || $[37] !== t16 || $[38] !== t18 || $[39] !== t19 || $[40] !== textInputIcon ? (t20 = /* @__PURE__ */ jsx(Box, { paddingX: 3, paddingBottom: 3, children: /* @__PURE__ */ jsx(TextInput, { "aria-label": t15, autoComplete: "off", border: !1, clearButton: t16, fontSize: t17, icon: textInputIcon, iconRight: t18, onChange: handleQueryChange, onClear: handleClearSearch, onKeyDown: handleSearchKeyDown, padding: 2, placeholder: t19, radius: 2, ref: setSearchInputElement, spellCheck: !1, value: searchInputValue }) }), $[34] = handleQueryChange, $[35] = searchInputValue, $[36] = t15, $[37] = t16, $[38] = t18, $[39] = t19, $[40] = textInputIcon, $[41] = t20) : t20 = $[41];
|
|
10323
10342
|
const t21 = !!typeName, t22 = items.length === FULL_LIST_LIMIT, t23 = !!searchQuery, t24 = loadingVariant === "subtle";
|
|
10324
10343
|
let t25;
|
|
10325
|
-
$[42] !== autoRetry || $[43] !== canRetry || $[44] !== childItemId || $[45] !== connected || $[46] !== error || $[47] !== isActive || $[48] !== isLoading || $[49] !== isLoadingFullList || $[50] !== isRetrying || $[51] !== items || $[52] !== layout || $[53] !== loadingVariant || $[54] !== onLoadFullList || $[55] !== onRetry || $[56] !== paneKey || $[57] !== retryCount || $[58] !== searchInputElement || $[59] !== showIcons || $[60] !==
|
|
10344
|
+
$[42] !== autoRetry || $[43] !== canRetry || $[44] !== childItemId || $[45] !== connected || $[46] !== error || $[47] !== isActive || $[48] !== isLoading || $[49] !== isLoadingFullList || $[50] !== isRetrying || $[51] !== items || $[52] !== layout || $[53] !== loadingVariant || $[54] !== onLoadFullList || $[55] !== onRetry || $[56] !== paneKey || $[57] !== retryCount || $[58] !== searchInputElement || $[59] !== showIcons || $[60] !== sortOrder || $[61] !== t21 || $[62] !== t22 || $[63] !== t23 || $[64] !== t24 || $[65] !== title ? (t25 = /* @__PURE__ */ jsx(DocumentListPaneContent, { childItemId, error, filterIsSimpleTypeConstraint: t21, hasMaxItems: t22, hasSearchQuery: t23, isActive, isLazyLoading: isLoadingFullList, isLoading, autoRetry, canRetry, retryCount, isRetrying, isConnected: connected, items, layout, muted: t24, loadingVariant, onEndReached: onLoadFullList, onRetry, paneTitle: title, searchInputElement, showIcons, sortOrder }, paneKey), $[42] = autoRetry, $[43] = canRetry, $[44] = childItemId, $[45] = connected, $[46] = error, $[47] = isActive, $[48] = isLoading, $[49] = isLoadingFullList, $[50] = isRetrying, $[51] = items, $[52] = layout, $[53] = loadingVariant, $[54] = onLoadFullList, $[55] = onRetry, $[56] = paneKey, $[57] = retryCount, $[58] = searchInputElement, $[59] = showIcons, $[60] = sortOrder, $[61] = t21, $[62] = t22, $[63] = t23, $[64] = t24, $[65] = title, $[66] = t25) : t25 = $[66];
|
|
10326
10345
|
let t26;
|
|
10327
|
-
return $[
|
|
10346
|
+
return $[67] !== t20 || $[68] !== t25 ? (t26 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10328
10347
|
t20,
|
|
10329
10348
|
t25
|
|
10330
|
-
] }), $[
|
|
10349
|
+
] }), $[67] = t20, $[68] = t25, $[69] = t26) : t26 = $[69], t26;
|
|
10331
10350
|
});
|
|
10332
10351
|
function _temp$7(event) {
|
|
10333
10352
|
return event.target.value;
|