@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
32 lines (31 loc) • 1.31 kB
TypeScript
import { VueComponentBase, LayoutCanvasStore, BlockInstance, LayoutMediaContext, LayoutFileContext } from "@omnia/fx/ux";
import { Block, GuidValue, IBlockInstance } from "@omnia/fx/models";
import { ILayoutBlockRendererHelper } from "./ILayoutBlockRendererHelper";
import { ISettingsStorage } from "../../../services";
export default class LayoutBlockRendererHelper extends VueComponentBase implements ILayoutBlockRendererHelper {
blockId: string;
blockRenderer: () => JSX.Element;
settingsStorage: ISettingsStorage<any>;
layoutProvider?: string;
blockManifestId?: GuidValue;
blockElementToRender?: string;
onSettingsElementUpdated?: (element: string) => void;
isEditMode?: boolean;
mediaContext: LayoutMediaContext;
fileContext: LayoutFileContext;
onBlockInstanceCreated?: (blockInstance: IBlockInstance) => void;
private subscriptionHandler;
layoutMediaContext: LayoutMediaContext;
layoutFileContext: LayoutFileContext;
layoutStore: LayoutCanvasStore;
blockInstance: BlockInstance;
private subscribeSettingUpdated;
private blockSettingsManager;
private readyToRender;
block: Partial<Block>;
mounted(): void;
beforeDestroy(): void;
created(): void;
private handleSettingsChanged;
render(): JSX.Element;
}