sanity 6.3.0-next.23 → 6.3.0-next.24
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.
|
@@ -12990,7 +12990,7 @@ declare const unstable_useObserveDocument: (args: Parameters<typeof useUnstableO
|
|
|
12990
12990
|
* @internal
|
|
12991
12991
|
* @deprecated use useValuePreview instead
|
|
12992
12992
|
*/
|
|
12993
|
-
declare
|
|
12993
|
+
declare const unstable_useValuePreview: typeof useValuePreview;
|
|
12994
12994
|
interface State$1 {
|
|
12995
12995
|
isLoading: boolean;
|
|
12996
12996
|
error?: Error;
|
package/lib/_chunks-es/index2.js
CHANGED
|
@@ -27615,10 +27615,7 @@ function EnhancedObjectDialogProvider(props2) {
|
|
|
27615
27615
|
function isGoingToUnpublish(document2) {
|
|
27616
27616
|
return document2._system?.delete === !0;
|
|
27617
27617
|
}
|
|
27618
|
-
|
|
27619
|
-
return useValuePreview(args);
|
|
27620
|
-
}
|
|
27621
|
-
const INITIAL_STATE$9 = {
|
|
27618
|
+
const unstable_useValuePreview = useValuePreview, INITIAL_STATE$9 = {
|
|
27622
27619
|
isLoading: !0
|
|
27623
27620
|
}, IDLE_STATE = {
|
|
27624
27621
|
isLoading: !1,
|
|
@@ -46051,7 +46048,9 @@ function _temp$1Y(document2) {
|
|
|
46051
46048
|
document: document2
|
|
46052
46049
|
};
|
|
46053
46050
|
}
|
|
46054
|
-
const unstable_useObserveDocument = (args)
|
|
46051
|
+
const unstable_useObserveDocument = function(args) {
|
|
46052
|
+
return useUnstableObserveDocument(...args);
|
|
46053
|
+
};
|
|
46055
46054
|
function getPreviewStateObservable$1(documentPreviewStore, schemaType, documentId, perspective, viewOptions) {
|
|
46056
46055
|
const perspectiveSnapshot = documentPreviewStore.observeForPreview({
|
|
46057
46056
|
_id: getPublishedId(documentId)
|
|
@@ -80672,10 +80671,14 @@ function Resizer(props2) {
|
|
|
80672
80671
|
event.preventDefault(), mouseXRef.current = event.pageX, onResizeStart();
|
|
80673
80672
|
const handleMouseMove = (e) => {
|
|
80674
80673
|
e.preventDefault(), onResize(mouseXRef.current - e.pageX);
|
|
80675
|
-
}, handleMouseUp = () => {
|
|
80676
|
-
|
|
80677
|
-
};
|
|
80678
|
-
window.addEventListener("mousemove", handleMouseMove
|
|
80674
|
+
}, controller = new AbortController(), handleMouseUp = () => controller.abort(), {
|
|
80675
|
+
signal
|
|
80676
|
+
} = controller;
|
|
80677
|
+
window.addEventListener("mousemove", handleMouseMove, {
|
|
80678
|
+
signal
|
|
80679
|
+
}), window.addEventListener("mouseup", handleMouseUp, {
|
|
80680
|
+
signal
|
|
80681
|
+
});
|
|
80679
80682
|
}, $[0] = onResize, $[1] = onResizeStart, $[2] = t0) : t0 = $[2];
|
|
80680
80683
|
const handleMouseDown = t0;
|
|
80681
80684
|
let t1, t2;
|