sanity 5.1.0-next.20 → 5.1.0-next.23
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 +4 -4
- package/lib/_chunks-es/pane.js.map +1 -1
- package/lib/_chunks-es/version.js +1 -1
- package/lib/_singletons.d.ts +1 -1
- package/lib/desk.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.js +40 -29
- package/lib/index.js.map +1 -1
- package/lib/presentation.d.ts +1 -1
- package/lib/structure.d.ts +1 -1
- package/package.json +15 -15
package/lib/_chunks-es/pane.js
CHANGED
|
@@ -2939,7 +2939,7 @@ function _temp$z(role) {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
const ReferenceChangedBanner = memo(() => {
|
|
2941
2941
|
const $ = c(30), documentPreviewStore = useDocumentPreviewStore(), {
|
|
2942
|
-
|
|
2942
|
+
selectedPerspectiveName
|
|
2943
2943
|
} = usePerspective(), {
|
|
2944
2944
|
params,
|
|
2945
2945
|
groupIndex,
|
|
@@ -2963,7 +2963,7 @@ const ReferenceChangedBanner = memo(() => {
|
|
|
2963
2963
|
break bb0;
|
|
2964
2964
|
}
|
|
2965
2965
|
let t22;
|
|
2966
|
-
if ($[3] !== documentPreviewStore || $[4] !== parentId || $[5] !== parentRefPath || $[6] !== parentRefPathSegment || $[7] !==
|
|
2966
|
+
if ($[3] !== documentPreviewStore || $[4] !== parentId || $[5] !== parentRefPath || $[6] !== parentRefPathSegment || $[7] !== selectedPerspectiveName) {
|
|
2967
2967
|
const publishedId = getPublishedId(parentId), path = fromString(parentRefPathSegment), keyedSegmentIndex = path.findIndex(_temp$y);
|
|
2968
2968
|
let t32;
|
|
2969
2969
|
$[9] !== parentRefPath ? (t32 = (t42) => {
|
|
@@ -2988,8 +2988,8 @@ const ReferenceChangedBanner = memo(() => {
|
|
|
2988
2988
|
}, $[9] = parentRefPath, $[10] = t32) : t32 = $[10], t22 = concat(of({
|
|
2989
2989
|
loading: !0
|
|
2990
2990
|
}), documentPreviewStore.unstable_observePathsDocumentPair(publishedId, keyedSegmentIndex === -1 ? path : path.slice(0, keyedSegmentIndex), {
|
|
2991
|
-
version:
|
|
2992
|
-
}).pipe(debounceTime(750), map$1(t32))), $[3] = documentPreviewStore, $[4] = parentId, $[5] = parentRefPath, $[6] = parentRefPathSegment, $[7] =
|
|
2991
|
+
version: selectedPerspectiveName
|
|
2992
|
+
}).pipe(debounceTime(750), map$1(t32))), $[3] = documentPreviewStore, $[4] = parentId, $[5] = parentRefPath, $[6] = parentRefPathSegment, $[7] = selectedPerspectiveName, $[8] = t22;
|
|
2993
2993
|
} else
|
|
2994
2994
|
t22 = $[8];
|
|
2995
2995
|
t1 = t22;
|