sanity 5.20.1-next.2 → 5.20.1-next.4
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.
|
@@ -7572,8 +7572,8 @@ declare function useScheduleAction(props: DocumentActionProps): {
|
|
|
7572
7572
|
icon: react.ForwardRefExoticComponent<Omit<react.SVGProps<SVGSVGElement>, "ref"> & react.RefAttributes<SVGSVGElement>>;
|
|
7573
7573
|
label: string;
|
|
7574
7574
|
title: react.JSX.Element;
|
|
7575
|
-
onHandle?: undefined;
|
|
7576
7575
|
dialog?: undefined;
|
|
7576
|
+
onHandle?: undefined;
|
|
7577
7577
|
} | {
|
|
7578
7578
|
dialog: false | DocumentActionModalDialogProps;
|
|
7579
7579
|
disabled: boolean;
|
|
@@ -12384,18 +12384,18 @@ function IncomingReferencesList() {
|
|
|
12384
12384
|
documentId,
|
|
12385
12385
|
documentPreviewStore,
|
|
12386
12386
|
getClient
|
|
12387
|
-
}).pipe(map(_temp3)
|
|
12387
|
+
}).pipe(map(_temp3)), $[0] = documentId, $[1] = documentPreviewStore, $[2] = getClient, $[3] = t0) : t0 = $[3];
|
|
12388
12388
|
const references = useObservable(t0, null);
|
|
12389
12389
|
let t1;
|
|
12390
12390
|
$[4] !== client || $[5] !== documentId || $[6] !== documentPreviewStore ? (t1 = getCrossDatasetIncomingReferences({
|
|
12391
12391
|
documentId,
|
|
12392
12392
|
client,
|
|
12393
12393
|
documentPreviewStore
|
|
12394
|
-
}).pipe(map(
|
|
12394
|
+
}).pipe(map(_temp6)), $[4] = client, $[5] = documentId, $[6] = documentPreviewStore, $[7] = t1) : t1 = $[7];
|
|
12395
12395
|
const crossDatasetRefs = useObservable(t1, null);
|
|
12396
12396
|
let t2;
|
|
12397
12397
|
$[8] !== documentId ? (t2 = (document2) => /* @__PURE__ */ jsx(IncomingReferenceDocument, { document: document2, referenceToId: documentId }), $[8] = documentId, $[9] = t2) : t2 = $[9];
|
|
12398
|
-
const renderSameDatasetItem = t2, renderCrossDatasetItem =
|
|
12398
|
+
const renderSameDatasetItem = t2, renderCrossDatasetItem = _temp7;
|
|
12399
12399
|
let t3;
|
|
12400
12400
|
$[10] !== t ? (t3 = t("incoming-references-pane.no-references-found"), $[10] = t, $[11] = t3) : t3 = $[11];
|
|
12401
12401
|
const emptyMessage = t3, showEmptyState = !references?.loading && references?.list.length === 0 && !crossDatasetRefs?.loading && crossDatasetRefs?.list.length === 0;
|
|
@@ -12424,43 +12424,39 @@ function IncomingReferencesList() {
|
|
|
12424
12424
|
t6
|
|
12425
12425
|
] }), $[26] = t4, $[27] = t5, $[28] = t6, $[29] = t7) : t7 = $[29], t7;
|
|
12426
12426
|
}
|
|
12427
|
-
function
|
|
12427
|
+
function _temp7(document_0) {
|
|
12428
12428
|
return /* @__PURE__ */ jsx(CrossDatasetIncomingReferenceDocumentPreview, { document: document_0 });
|
|
12429
12429
|
}
|
|
12430
|
-
function
|
|
12430
|
+
function _temp6(t0) {
|
|
12431
|
+
const {
|
|
12432
|
+
documents: documents_0,
|
|
12433
|
+
loading: loading_0
|
|
12434
|
+
} = t0, documentsByType_0 = documents_0.reduce(_temp4, {});
|
|
12431
12435
|
return {
|
|
12432
|
-
list:
|
|
12433
|
-
loading:
|
|
12436
|
+
list: Object.entries(documentsByType_0).map(_temp5),
|
|
12437
|
+
loading: loading_0
|
|
12434
12438
|
};
|
|
12435
12439
|
}
|
|
12436
|
-
function
|
|
12437
|
-
const {
|
|
12438
|
-
documents: documents_0
|
|
12439
|
-
} = t0, documentsByType_0 = documents_0.reduce(_temp5, {});
|
|
12440
|
-
return Object.entries(documentsByType_0).map(_temp6);
|
|
12441
|
-
}
|
|
12442
|
-
function _temp6(t0) {
|
|
12440
|
+
function _temp5(t0) {
|
|
12443
12441
|
const [type_2, docs_0] = t0;
|
|
12444
12442
|
return {
|
|
12445
12443
|
type: type_2,
|
|
12446
12444
|
documents: docs_0
|
|
12447
12445
|
};
|
|
12448
12446
|
}
|
|
12449
|
-
function
|
|
12447
|
+
function _temp4(acc_0, doc_0) {
|
|
12450
12448
|
const type_1 = doc_0.type;
|
|
12451
12449
|
return acc_0[type_1] ? acc_0[type_1].push(doc_0) : acc_0[type_1] = [doc_0], acc_0;
|
|
12452
12450
|
}
|
|
12453
|
-
function _temp4(list) {
|
|
12454
|
-
return {
|
|
12455
|
-
list,
|
|
12456
|
-
loading: !1
|
|
12457
|
-
};
|
|
12458
|
-
}
|
|
12459
12451
|
function _temp3(t0) {
|
|
12460
12452
|
const {
|
|
12461
|
-
documents
|
|
12453
|
+
documents,
|
|
12454
|
+
loading
|
|
12462
12455
|
} = t0, documentsByType = documents.reduce(_temp$2, {});
|
|
12463
|
-
return
|
|
12456
|
+
return {
|
|
12457
|
+
list: Object.entries(documentsByType).map(_temp2),
|
|
12458
|
+
loading
|
|
12459
|
+
};
|
|
12464
12460
|
}
|
|
12465
12461
|
function _temp2(t0) {
|
|
12466
12462
|
const [type_0, docs] = t0;
|