UNPKG

next-sanity

Version:
59 lines 1.89 kB
import { NextStudioProps, NextStudioProps as NextStudioProps$1 } from "next-sanity/studio/client-component"; /** * In router segments (`/app/studio/[[...index]]/page.tsx`): * ```tsx * // If you don't want to change any defaults you can just re-export the viewport config directly: * export {viewport} from 'next-sanity/studio' * * // To customize the viewport config, spread it on the export: * import {viewport as studioViewport} from 'next-sanity/studio' * import type { Viewport } from 'next' * * export const viewport: Viewport = { * ...studioViewport, * // Overrides the viewport to resize behavior * interactiveWidget: 'resizes-content' * }) * ``` * @public */ declare const viewport: { width: "device-width"; initialScale: 1; viewportFit: string; }; /** * In router segments (`/app/studio/[[...index]]/page.tsx`): * ```tsx * // If you don't want to change any defaults you can just re-export the metadata directly: * export {metadata} from 'next-sanity/studio' * * // To customize the metadata, spread it on the export: * import {metadata as studioMetadata} from 'next-sanity/studio' * import type { Metadata } from 'next' * * export const metadata: Metadata = { * ...studioMetadata, * // Set another title * title: 'My Studio', * }) * ``` * @public */ declare const metadata: { referrer: "same-origin"; robots: "noindex"; }; /** @public */ interface NextStudioLayoutProps { children: React.ReactNode; } /** @public */ declare const NextStudioLayout: ({ children }: NextStudioLayoutProps) => React.JSX.Element; /** @internal */ declare const NextStudioNoScript: () => React.JSX.Element; declare function NextStudioWithBridge(props: NextStudioProps$1): React.JSX.Element; export { NextStudioWithBridge as NextStudio, NextStudioLayout, NextStudioLayoutProps, NextStudioNoScript, type NextStudioProps, metadata, viewport }; //# sourceMappingURL=index.d.ts.map