UNPKG

@cmk/fe_utils

Version:
41 lines (39 loc) 1.28 kB
import { EditorStateType } from '../types/editorState'; import { Attribute, Property } from '../types'; export declare const makeNewProperty: (params: { prop_id?: string; element_id: string; prop_name: string; prop_value: string; project_id: string; template_id?: string; component_id?: string; action_ids?: string[]; viewport?: string; }) => Property; export declare const makeNewAttribute: (params: { attr_id?: string; element_id?: string; template_id?: string; component_id?: string; project_id: string; attr_name: string; attr_value: any; viewport?: string; }) => Attribute; export declare const defaultElements: (project_id: string) => { element_id: string; project_id: string; element_html_id: string; parent_id: string | null; element_type: string; content: string | null; element_page: string | null; template_id: string | null; component_id: string | null; ref_component_id: string | null; viewport: string | null; }[]; export declare const defaultProperties: (rootElementId: string, project_id: string) => Property; /** ATTENTION - DUPLICATE IN THE TEMPLATE PROJECT */ export declare const defaultEditorState: (existingProjectId?: string) => EditorStateType;