UNPKG

@limitless-angular/sanity

Version:

A powerful Angular library for Sanity.io integration, featuring Portable Text rendering and optimized image loading.

39 lines (38 loc) 2.18 kB
import { type VisualEditingOptions } from '@sanity/visual-editing'; import * as i0 from "@angular/core"; export interface VisualEditingProps extends Omit<VisualEditingOptions, 'history'> { /** * If next.config.ts is configured with a basePath we try to configure it automatically, * you can disable this by setting basePath to ''. * @example basePath="/my-custom-base-path" * @alpha experimental and may change without notice * @defaultValue process.env.__NEXT_ROUTER_BASEPATH || '' */ basePath?: string; /** * If next.config.ts is configured with a `trailingSlash` we try to detect it automatically, * it can be controlled manually by passing a boolean. * @example trailingSlash={true} * @alpha experimental and may change without notice * @defaultValue Boolean(process.env.__NEXT_TRAILING_SLASH) */ trailingSlash?: boolean; } export declare class VisualEditingClientComponent { refresh: import("@angular/core").InputSignal<((payload: import("@sanity/visual-editing").HistoryRefresh) => false | Promise<void>) | undefined>; zIndex: import("@angular/core").InputSignal<string | number | undefined>; basePath: import("@angular/core").InputSignalWithTransform<string, string | undefined>; trailingSlash: import("@angular/core").InputSignalWithTransform<boolean, boolean | undefined>; private navigate; private currentUrl; private location; private router; constructor(); private defaultRefresh; private manualFastRefresh; private manualFallbackRefresh; private mutationFastRefresh; private mutationFallbackRefresh; static ɵfac: i0.ɵɵFactoryDeclaration<VisualEditingClientComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<VisualEditingClientComponent, "visual-editing-client", never, { "refresh": { "alias": "refresh"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "basePath": { "alias": "basePath"; "required": false; "isSignal": true; }; "trailingSlash": { "alias": "trailingSlash"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>; }