UNPKG

nuxt-unlayer

Version:

Module used to add the Unlayer email builder to your Nuxt app.

55 lines (54 loc) 1.85 kB
import type { JSONTemplate } from "@unlayer/types"; import type { EditorProps, EditorInstance } from "../props.js"; /** * All standard Unlayer config options plus `initialDesign`, which loads a saved design into the * editor after initialisation and whenever it changes. */ type ComponentProps = EditorProps & { initialDesign?: JSONTemplate; }; declare global { interface Window { unlayer?: any; } } declare const __VLS_export: import("vue").DefineComponent<ComponentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { ready: (editor: EditorInstance | undefined) => any; "design:updated": (data: { type: string; item?: Record<string, any>; changes?: Record<string, any>; }) => any; "design:loaded": (data: { design: JSONTemplate; }) => any; "image:uploaded": (data: { image: { url: string; width?: number; height?: number; }; }) => any; }, string, import("vue").PublicProps, Readonly<ComponentProps> & Readonly<{ onReady?: ((editor: EditorInstance | undefined) => any) | undefined; "onDesign:updated"?: ((data: { type: string; item?: Record<string, any>; changes?: Record<string, any>; }) => any) | undefined; "onDesign:loaded"?: ((data: { design: JSONTemplate; }) => any) | undefined; "onImage:uploaded"?: ((data: { image: { url: string; width?: number; height?: number; }; }) => any) | undefined; }>, { displayMode: import("@unlayer/types").DisplayMode; locale: import("@unlayer/types").UnlayerLocale; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const _default: typeof __VLS_export; export default _default;