@nodeject/ui-components
Version:
UI library for non-trivial components
19 lines (18 loc) • 793 B
TypeScript
import { TributeComponentParams } from './types';
/**
* Re-builds the db html string value with full tribute components
* @param value
* @param getTributeComponent
*/
export declare const dbToHtml: (value: string, getTributeComponent: any) => string;
/**
* Parses the value to trim off full tribute components and replace with lighter ones to save space in the db
* @param value
*/
export declare const htmlToDb: (value: string) => string;
export declare const parser: {
dbToHtml: (value: string, getTributeComponent: any) => string;
htmlToDb: (value: string) => string;
};
export declare const getComponentParams: (component: Element) => TributeComponentParams;
export declare const getTributeComponentsFromHtml: (component: Element | Document) => Element[];