@sanity/vision 6.7.0-next.53 → 6.7.0-next.61

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.
@@ -379,7 +379,7 @@ function tryParseParams(val, t) {
379
379
  }
380
380
  }
381
381
  var controlsContainer = "ior2o0m", downloadsCard = "ior2o0j", header = "ior2o03", inputBackgroundContainer = "ior2o07", inputBackgroundContainerLeft = "ior2o08", inputContainer = "ior2o09", queryCopyLink = "ior2o06", queryRecallPaneContainer = "ior2o01", queryRecallPaneWrapper = "ior2o02", result = "ior2o0e", resultContainer = "ior2o0c", resultContainerInvalid = "ior2o0d", resultFooter = "ior2o0f", resultInnerContainer = "ior2o0b", resultOuterContainer = "ior2o0a", root = "ior2o00", saveResultLabel = "ior2o0l", saveResultSpanGapVar = "var(--ior2o0k)", splitpaneContainer = "ior2o05", styledLabel = "ior2o04", timingsCard = "ior2o0g", timingsTextContainer = "ior2o0i", timingsTextMinHeightVar = "var(--ior2o0h)";
382
- const Root = forwardRef(function(props, ref) {
382
+ const Root = forwardRef(function Root(props, ref) {
383
383
  let $ = c(3), t0;
384
384
  return $[0] !== props || $[1] !== ref ? (t0 = /* @__PURE__ */ jsx(Flex, {
385
385
  ...props,
@@ -1411,13 +1411,13 @@ function usePaneSize(t0) {
1411
1411
  let $ = c(7), { visionRootRef } = t0, [rootSize, setRootSize] = useState(_temp$4), [isNarrowBreakpoint, setIsNarrowBreakpoint] = useState(_temp2$3), [paneSizeOptions, setPaneSizeOptions] = useState(_temp3$2), t1, t2;
1412
1412
  $[0] === visionRootRef ? (t1 = $[1], t2 = $[2]) : (t1 = () => {
1413
1413
  if (!visionRootRef.current) return;
1414
- let resizeObserver = new ResizeObserver((entries) => {
1414
+ let handleResize = (entries) => {
1415
1415
  let entry = entries?.[0];
1416
1416
  entry && (setRootSize({
1417
1417
  width: entry.contentRect.width,
1418
1418
  height: entry.contentRect.height
1419
1419
  }), setIsNarrowBreakpoint(entry.contentRect.width > 600), setPaneSizeOptions(calculatePaneSizeOptions(entry.contentRect.height)));
1420
- });
1420
+ }, resizeObserver = new ResizeObserver(handleResize);
1421
1421
  return resizeObserver.observe(visionRootRef.current), () => {
1422
1422
  resizeObserver.disconnect();
1423
1423
  };
@@ -2768,4 +2768,4 @@ function SanityVision(props) {
2768
2768
  }
2769
2769
  export { SanityVision as default };
2770
2770
 
2771
- //# sourceMappingURL=SanityVision-BKf_KyD3.js.map
2771
+ //# sourceMappingURL=SanityVision-DHdFKqJn.js.map