sanity-plugin-iframe-pane

5.0.235.0.24
dist/index.js
~dist/index.jsModified
+2−2
Index: package/dist/index.js
===================================================================
--- package/dist/index.js
+++ package/dist/index.js
@@ -221,9 +221,9 @@
 function encodeStudioPerspective(studioPerspective) {
 	return Array.isArray(studioPerspective) ? studioPerspective.join(",") : studioPerspective;
 }
 function Iframe(props) {
-	let $ = c(36), { document, options } = props, draft = document.draft || document.published || document.displayed, { defaultSize: t0, reload, attributes, showDisplayUrl: t1, key } = options, defaultSize = t0 === void 0 ? DEFAULT_SIZE : t0, showDisplayUrl = t1 === void 0 ? !0 : t1, basePath = useActiveWorkspace()?.activeWorkspace?.basePath || "/", urlRef = useRef(options.url), t2;
+	let $ = c(36), { document, options } = props, draft = document.draft || document.published || document.displayed, { defaultSize: t0, reload, attributes, showDisplayUrl: t1, key } = options, defaultSize = t0 === void 0 ? DEFAULT_SIZE : t0, showDisplayUrl = t1 === void 0 || t1, basePath = useActiveWorkspace()?.activeWorkspace?.basePath || "/", urlRef = useRef(options.url), t2;
 	$[0] !== draft || $[1] !== key ? (t2 = () => ({
 		key,
 		draft
 	}), $[0] = draft, $[1] = key, $[2] = t2) : t2 = $[2];
@@ -313,9 +313,9 @@
 }
 const IframeInner = memo(function(props) {
 	let $ = c(35), { isResolvingUrl, defaultSize: t0, reload, attributes: t1, showDisplayUrl: t2, draftSnapshot, userId, expiresAt, perspective: t3, _key } = props, defaultSize = t0 === void 0 ? DEFAULT_SIZE : t0, t4;
 	$[0] === t1 ? t4 = $[1] : (t4 = t1 === void 0 ? {} : t1, $[0] = t1, $[1] = t4);
-	let attributes = t4, showDisplayUrl = t2 === void 0 ? !0 : t2, { selectedPerspectiveName, perspectiveStack } = t3, [iframeSize, setIframeSize] = useState(sizes?.[defaultSize] ? defaultSize : DEFAULT_SIZE), prefersReducedMotion = usePrefersReducedMotion(), t5;
+	let attributes = t4, showDisplayUrl = t2 === void 0 || t2, { selectedPerspectiveName, perspectiveStack } = t3, [iframeSize, setIframeSize] = useState(sizes?.[defaultSize] ? defaultSize : DEFAULT_SIZE), prefersReducedMotion = usePrefersReducedMotion(), t5;
 	$[2] !== draftSnapshot || $[3] !== props ? (t5 = () => props.url(draftSnapshot), $[2] = draftSnapshot, $[3] = props, $[4] = t5) : t5 = $[4];
 	let t6;
 	$[5] !== _key || $[6] !== draftSnapshot || $[7] !== expiresAt || $[8] !== perspectiveStack || $[9] !== selectedPerspectiveName || $[10] !== t5 || $[11] !== userId ? (t6 = suspend(t5, [
 		"sanity-plugin-iframe-pane",