Source

externalCode/modal.js

/**
 * @typedef {Function} TransformModalStyleCallback
 * @param {Object} styles
 * @return {Object}
 */

/**
 * @ignore
 * @class
 * Modal Hooks.
 * Instance name: modalApi
 * @example
 * externalCodeSetup.modalApi.METHOD_NAME
 */
export class ModalApi {
	modalStyle = styles => styles;

	/**
	 * @ignore
	 * Change modal style
	 * @param {TransformModalStyleCallback} modalStyleCallback
	 */
	setModalStyle = modalStyleCallback => (this.modalStyle = modalStyleCallback);
}