UNPKG

@authsignal/browser

Version:

<img width="1070" alt="Authsignal" src="https://raw.githubusercontent.com/authsignal/authsignal-browser/main/.github/images/authsignal.png">

23 lines (22 loc) 633 B
import { A11yDialogEvent } from "a11y-dialog"; type PopupShowInput = { url: string; expectedOrigin: string; }; type PopupHandlerOptions = { width?: string; height?: string; isClosable?: boolean; }; export declare class PopupHandler { private popup; private height; private resizeListener; constructor({ width, height, isClosable }: PopupHandlerOptions); create({ width, height, isClosable }: PopupHandlerOptions): void; destroy(): void; show({ url, expectedOrigin }: PopupShowInput): void; close(): void; on(event: A11yDialogEvent, listener: EventListener): void; } export {};