sanity 5.24.1-next.6 → 5.25.0-next.8

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.
@@ -7561,6 +7561,7 @@ declare function isPerspectiveWriteable({
7561
7561
  interface Props$5 {
7562
7562
  withReleasesToolButton?: boolean;
7563
7563
  menuItemProps?: ReleasesNavMenuItemPropsGetter;
7564
+ border?: boolean;
7564
7565
  }
7565
7566
  /**
7566
7567
  * @internal
@@ -16199,6 +16200,9 @@ type DefaultPluginsWorkspaceOptions = {
16199
16200
  scheduledDrafts: {
16200
16201
  enabled: boolean;
16201
16202
  };
16203
+ variants: {
16204
+ enabled: boolean;
16205
+ };
16202
16206
  scheduledPublishing: ScheduledPublishingPluginOptions;
16203
16207
  releases: {
16204
16208
  enabled?: boolean;
@@ -16297,6 +16301,12 @@ interface BetaFeatures {
16297
16301
  documents?: boolean;
16298
16302
  releases?: boolean;
16299
16303
  };
16304
+ /**
16305
+ * Config for variants beta features in Studio.
16306
+ */
16307
+ variants?: {
16308
+ enabled?: boolean;
16309
+ };
16300
16310
  }
16301
16311
  /**
16302
16312
  * @internal
@@ -1843,7 +1843,7 @@ const MotionFlex = motion.create(Flex), Preview = memo(forwardRef(function(props
1843
1843
  previewUrlRef
1844
1844
  } = props, [stablePerspective, setStablePerspective] = useState(null), urlPerspective = encodeStudioPerspective(stablePerspective === null ? perspective : stablePerspective), previewUrl = useMemo(() => {
1845
1845
  const url = new URL(initialUrl);
1846
- return url.searchParams.get(urlSearchParamPreviewPerspective) || url.searchParams.set(urlSearchParamPreviewPerspective, urlPerspective), (vercelProtectionBypass || url.searchParams.get(urlSearchParamVercelProtectionBypass)) && url.searchParams.set(urlSearchParamVercelSetBypassCookie, "samesitenone"), vercelProtectionBypass && !url.searchParams.get(urlSearchParamVercelProtectionBypass) && url.searchParams.set(urlSearchParamVercelProtectionBypass, vercelProtectionBypass), url;
1846
+ return url.searchParams.set(urlSearchParamPreviewPerspective, urlPerspective), (vercelProtectionBypass || url.searchParams.get(urlSearchParamVercelProtectionBypass)) && url.searchParams.set(urlSearchParamVercelSetBypassCookie, "samesitenone"), vercelProtectionBypass && !url.searchParams.get(urlSearchParamVercelProtectionBypass) && url.searchParams.set(urlSearchParamVercelProtectionBypass, vercelProtectionBypass), url;
1847
1847
  }, [initialUrl, urlPerspective, vercelProtectionBypass]);
1848
1848
  useEffect(() => {
1849
1849
  loadersConnection === "connected" && setStablePerspective((prev) => prev === null ? perspective : prev);