@nuxtjs/sanity
Version:
Sanity integration for Nuxt
13 lines (12 loc) • 660 B
TypeScript
import type { PreviewEnvironment } from '../types.js';
/**
* Reports the current preview mode environment.
* Use it to determine how to adapt the UI based on whether:
* - Your app is previewed in a iframe, inside Presentation Tool in a Sanity Studio.
* - Your app is previewed in a new window, spawned from Presentation Tool in a Sanity Studio.
* - Your app is live previewing drafts in a standalone context.
* - Your app is previewing drafts, but not live.
* - Your app is not previewing anything (that could be detected).
* @public
*/
export declare function useSanityPreviewEnvironment(): import("vue").Ref<PreviewEnvironment, PreviewEnvironment>;