@o3r/third-party
Version:
This module provides a bridge to communicate with third parties via an iFrame solution.
17 lines • 703 B
TypeScript
import { IFrameBridgeOptions, InternalIframeMessage } from './contracts';
/**
* Default options for an IFrameBridge
*/
export declare const IFRAME_BRIDGE_DEFAULT_OPTIONS: Readonly<IFrameBridgeOptions>;
/**
* Verifies if a message respects the format expected by an IFrameBridge
* @param message
*/
export declare function isSupportedMessage(message: any): message is InternalIframeMessage;
/**
* Generates the html content of an iframe
* @param scriptUrl script to be executed inside the iframe
* @param additionalHeader custom html headers stringified
*/
export declare function generateIFrameContent(scriptUrl: string, additionalHeader?: string): string;
//# sourceMappingURL=helpers.d.ts.map