Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
};
exports.INITIAL_PROPS = INITIAL_PROPS;
const WINDOW_REFERENCES = {
OPENER: `opener`,
TOP: `top`,
PARENT: `parent`,
GLOBAL: `global`
};
exports.WINDOW_REFERENCES = WINDOW_REFERENCES;
const PROP_SERIALIZATION = {
JSON: 'json',
DOTIFY: 'dotify',
BASE64: 'base64'
};
exports.PROP_SERIALIZATION = PROP_SERIALIZATION;
const CONTEXT = _src.WINDOW_TYPE;
exports.CONTEXT = CONTEXT;
const WILDCARD = '*';
exports.WILDCARD = WILDCARD;
const DEFAULT_DIMENSIONS = {
WIDTH: '300px',
HEIGHT: '150px'
};
exports.DEFAULT_DIMENSIONS = DEFAULT_DIMENSIONS;
const EVENT = {
RENDER: 'zoid-render',
RENDERED: 'zoid-rendered',
DISPLAY: 'zoid-display',
ERROR: 'zoid-error',
CLOSE: 'zoid-close',
PROPS: 'zoid-props',
RESIZE: 'zoid-resize'
getType: () => winPromise.then(win => {
return (0, _src.getOpener)(win) ? _src.WINDOW_TYPE.POPUP : _src.WINDOW_TYPE.IFRAME;
}),
getInstanceID: (0, _src3.memoizePromise)(() => winPromise.then(win => (0, _lib.getWindowInstanceID)(win, {