import { EventEmitter } from "../../stencil-public-runtime"; import { StzhIframePreviewSkipEvent, StzhIframeView, StzhIframeViewChangeEvent } from "../../index"; import { StzhIframeLocalizedText } from "./stzh-iframe.localization"; /** * @slot preview-logo - Slot for logo * @slot preview-image - Slot for preview image * @slot cookiewall-text - Slot for cookiewall text */ export declare class StzhIframe { /** Translation strings */ localization: StzhIframeLocalizedText; /** Id of iframe */ iframeId: string; /** Error text of iframe if couldn't be loaded */ iframeErrorText: string; /** Automatic height resizing of iFrame (Option SameSecondLevelDomain is Deprecated)*/ iframeResizerVariant: "None" | "PostMessage" | "SameSecondLevelDomain"; /** Height correction for automatically resized iFrames */ iframeResizerHeightCorrection: number; /** Second level domain for automatically resized iFrames (Deprecated) */ iframeResizerSecondlevelDomain: string; /** * Name of iframe * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe?retiredLocale=de#name */ name: string; /** * Sandbox of iframe * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe?retiredLocale=de#sandbox */ sandbox: string; /** * ReferrerPolicy of Iframe * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe?retiredLocale=de#referrerpolicy */ referrerpolicy: "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url"; /** * Allow of Iframe * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe?retiredLocale=de#allow */ allow: string; /** Width of iframe */ width: string; /** Width of iframe */ height: string; /** `src` of iframe */ src: string; private _src; /** * Cookie name (if not empty, the user will be shown a cookie wall) * Will be prefixed with `stzh-components-iframe-confirm-`. */ cookie: string; /** * Number of days the cookie is valid for. * If omitted or set to null, the cookie expires when browser is closed. * Maximum is on year (365 days, is default). */ cookieExpires: number | null; /** Confirm button icon */ cookieConfirmIcon: string; /** Confirm button label */ cookieConfirmLabel: string; /** Confirm text (use instead of `cookiewall-text` slot) */ cookieConfirmText: string; /** Preview label */ previewLabel: string; /** Preview icon */ previewIcon: string; /** Whether preview should be skipped, if user has passed the cookiewall before */ skipPreviewIfCookieAccepted: boolean; /** Whether preview should always be skipped */ skipPreview: boolean; element: HTMLStzhIframeElement; view: StzhIframeView; /** Preview skip (only gets executed if it goes directly to iframe and not cookiewall) */ stzhPreviewSkip: EventEmitter; /** View change */ stzhViewChange: EventEmitter; srcWatcher(newValue: string): void; viewWatcher(newValue: StzhIframeView): void; private readonly uid; private iframeElement; private previewButtonElement; private confirmButtonElement; private updateFocus; private handleIframeLoad; private initializeIframeResizing; private setupIframeAutoSizing; private handleCookiewallCloseClick; private handleCookiewallConfirmClick; private handlePreviewClick; componentWillLoad(): Promise; componentDidRender(): Promise; render(): any; }