Files
klz-cables.com/.pnpm-store/v10/files/98/9af6d62df4f424f1bfdc62dcf72ddb7e2220821d971b806852e4891d672770823dfc868b5f5230f1caa52cf7830e12b17d6784b8b3b5b82c6e91be362f42a9
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

46 lines
2.0 KiB
Plaintext

import { Bounds } from '../css/layout/bounds';
import { Context } from '../core/context';
export interface CloneOptions {
ignoreElements?: (element: Element) => boolean;
onclone?: (document: Document, element: HTMLElement) => void;
allowTaint?: boolean;
}
export interface WindowOptions {
scrollX: number;
scrollY: number;
windowWidth: number;
windowHeight: number;
}
export declare type CloneConfigurations = CloneOptions & {
inlineImages: boolean;
copyStyles: boolean;
};
export declare class DocumentCloner {
private readonly context;
private readonly options;
private readonly scrolledElements;
private readonly referenceElement;
clonedReferenceElement?: HTMLElement;
private readonly documentElement;
private readonly counters;
private quoteDepth;
constructor(context: Context, element: HTMLElement, options: CloneConfigurations);
toIFrame(ownerDocument: Document, windowSize: Bounds): Promise<HTMLIFrameElement>;
createElementClone<T extends HTMLElement | SVGElement>(node: T): HTMLElement | SVGElement;
createCustomElementClone(node: HTMLElement): HTMLElement;
createStyleClone(node: HTMLStyleElement): HTMLStyleElement;
createCanvasClone(canvas: HTMLCanvasElement): HTMLImageElement | HTMLCanvasElement;
createVideoClone(video: HTMLVideoElement): HTMLCanvasElement;
appendChildNode(clone: HTMLElement | SVGElement, child: Node, copyStyles: boolean): void;
cloneChildNodes(node: Element, clone: HTMLElement | SVGElement, copyStyles: boolean): void;
cloneNode(node: Node, copyStyles: boolean): Node;
resolvePseudoContent(node: Element, clone: Element, style: CSSStyleDeclaration, pseudoElt: PseudoElementType): HTMLElement | void;
static destroy(container: HTMLIFrameElement): boolean;
}
declare enum PseudoElementType {
BEFORE = 0,
AFTER = 1
}
export declare const copyCSSStyles: <T extends HTMLElement | SVGElement>(style: CSSStyleDeclaration, target: T) => T;
export {};