UNPKG

@aurigma/design-editor-iframe

Version:

Using this module you can embed Design Editor (a part of Customer's Canvas) to your page through the IFrame API.

21 lines (20 loc) 1.2 kB
import { IProductDefinition, IPrintAreaTemplate, IPrintAreaDefinition, IMockupData, IMockupTemplate, SurfaceTypes, IStateSurfaces, IStateSurface } from "./ObjectModel"; /** @internal */ export declare function isEmptyMockup(mockup: IMockupTemplate): boolean; /** @internal */ export declare function prepareForServer(definition: IProductDefinition): IProductDefinition; /** @internal */ export declare function fromPrintAreas(printAreas: (IPrintAreaTemplate | IPrintAreaDefinition)[]): IProductDefinition; /** @internal */ export declare function fromMockupsData(mockups: IMockupData[]): IProductDefinition; /** @internal */ export declare function fromSurface(surface: SurfaceTypes): string[] | IProductDefinition; /** @internal */ export declare function fromSurfaces(surfaces: SurfaceTypes[] | IStateSurfaces): IProductDefinition | string[]; /** @internal */ export declare function isStateSurface(surface: SurfaceTypes | SurfaceTypes[] | IStateSurfaces | IStateSurface): surface is IStateSurfaces | IStateSurface; /** @internal */ export declare function normalizeMockupTemplate(surfaceTemplate: { mockup?: IMockupTemplate; previewMockups?: IMockupTemplate[]; }): void;