UNPKG

@ovine/craft

Version:
107 lines (106 loc) 3.37 kB
export const PreviewProvider: import("react").Provider<any>; export function usePreviewStore(): any; export const previewStore: { hoverId: string; selectedId: string; editId: string; } & import("mobx-state-tree/dist/internal").NonEmptyObject & { schema: {}; clipboard: {}; } & { readonly renderSchema: any; readonly codeText: void; readonly baobabSchema: Baobab; readonly hoverInfo: {}; readonly selectedCursor: any; readonly editCursor: any; readonly selectedInfo: {}; readonly clipboardSchema: any; } & { setRawSchema: (schema: any) => void; setSchema: (schema: any, option?: {}) => void; saveBaobabSchema: (cursor: any) => void; setHoverId: (id?: string, sponsor?: string) => void; setEditId: (id: any) => void; setSelectedId: (id?: string, sponsor?: string) => void; setClipboard: () => void; } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{ hoverId: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>; selectedId: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>; editId: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>; }, { schema: {}; clipboard: {}; } & { readonly renderSchema: any; readonly codeText: void; readonly baobabSchema: Baobab; readonly hoverInfo: {}; readonly selectedCursor: any; readonly editCursor: any; readonly selectedInfo: {}; readonly clipboardSchema: any; } & { setRawSchema: (schema: any) => void; setSchema: (schema: any, option?: {}) => void; saveBaobabSchema: (cursor: any) => void; setHoverId: (id?: string, sponsor?: string) => void; setEditId: (id: any) => void; setSelectedId: (id?: string, sponsor?: string) => void; setClipboard: () => void; }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>; export namespace initialStore { const type: string; const title: string; const subTitle: string; const remark: string; const body: ({ type: string; html: string; label?: undefined; className?: undefined; actionType?: undefined; dialog?: undefined; title?: undefined; mode?: undefined; controls?: undefined; } | { label: string; type: string; className: string; actionType: string; dialog: { type: string; title: string; body: { type: string; title: string; mode: string; controls: { type: string; name: string; label: string; }[]; }; }; html?: undefined; title?: undefined; mode?: undefined; controls?: undefined; } | { type: string; title: string; mode: string; controls: { type: string; name: string; label: string; }[]; html?: undefined; label?: undefined; className?: undefined; actionType?: undefined; dialog?: undefined; })[]; } import Baobab from "baobab";