import * as _nuxt_schema from '@nuxt/schema'; import { ClientConfig as ClientConfig$1 } from '@sanity/client'; import { HistoryRefresh, SuspiciousStegaReport } from '@sanity/visual-editing-standalone'; import { ClientConfig } from '../dist/runtime/minimal-client.js'; import { SanityVisualEditingZIndex } from '../dist/runtime/types.js'; type SanityVisualEditingMode = 'live-visual-editing' | 'visual-editing' | 'custom'; type SanityVisualEditingRefreshHandler = (payload: HistoryRefresh, refreshDefault: () => false | Promise) => false | Promise; type SanityVisualEditingOnSuspiciousStega = (reports: SuspiciousStegaReport[]) => void; interface SanityModuleVisualEditingOptions { /** * Enable preview mode or configure preview endpoints */ previewMode?: boolean | { enable?: string; disable?: string; }; /** * Enable visual editing at app level or per component * @default 'live-visual-editing' */ mode?: SanityVisualEditingMode; /** * Proxy endpoint for fetching preview data * @default '/_sanity/visual-editing/fetch' */ proxyEndpoint?: string; /** * Read token for server side queries * @required */ token?: string; /** * The URL of the Sanity Studio */ studioUrl?: string; /** * Enable stega * @default false */ stega?: boolean; /** * While visual editing is enabled, stega-encoded metadata (invisible * characters) is automatically stripped from clipboard data when content is * copied from the page. Set this option to `true` to opt out and keep stega * in copied content. * @default false */ keepStegaOnCopy?: boolean; /** * An optional function for overriding the default handling of refresh events * received from the studio. This is generally not need needed if the `mode` * option is set to `live-visual-editing`. */ refresh?: SanityVisualEditingRefreshHandler; /** * An optional callback that reports stega payloads found in places where * they always cause bugs or bloat, such as `class`, `href`, `src`, `id` and * other attributes, inside ``, `