UNPKG

@xysfe/memento-snapshot

Version:

rrweb's component to take a snapshot of DOM, aka DOM serializer

8 lines (7 loc) 943 B
import { serializedNodeWithId, INode, idNodeMap, MaskInputOptions, BlockElement } from './types'; export declare function absoluteToStylesheet(cssText: string | null, href: string): string; export declare function absoluteToDoc(doc: Document, attributeValue: string): string; export declare function transformAttribute(doc: Document, name: string, value: string): string; export declare function serializeNodeWithId(n: Node | INode, doc: Document, map: idNodeMap, blockClass: string | RegExp, skipChild?: boolean, inlineStylesheet?: boolean, maskInputOptions?: MaskInputOptions, blockElements?: BlockElement[]): serializedNodeWithId | null; declare function snapshot(n: Document, blockClass: string | RegExp | undefined, inlineStylesheet: boolean | undefined, maskAllInputsOrOptions: boolean | MaskInputOptions, blockElements?: BlockElement[], recordCanvas?: boolean): [serializedNodeWithId | null, idNodeMap]; export default snapshot;