react-modal-promise
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -88,2 +88,8 @@ import React, { forwardRef, useState, useCallback, useImperativeHandle, useEffect, useMemo } from 'react'; | ||
var rejectAll = useCallback(function (r) { return Object.values(instances).forEach(function (i) { return i.reject(r); }); }, [instances]); | ||
var hasInstance = useCallback(function (hash) { return !!(instances === null || instances === void 0 ? void 0 : instances[hash]); }, [ | ||
instances, | ||
]); | ||
var getInstance = useCallback(function (hash) { return instances === null || instances === void 0 ? void 0 : instances[hash]; }, [ | ||
instances, | ||
]); | ||
var remove = useCallback(function (hash, options) { | ||
@@ -129,2 +135,4 @@ setHashStack(function (stack) { return stack.filter(function (s) { return s !== hash; }); }); | ||
rejectAll: rejectAll, | ||
hasInstance: hasInstance, | ||
getInstance: getInstance, | ||
}); }); | ||
@@ -138,2 +146,4 @@ useEffect(function () { | ||
rejectAll: rejectAll, | ||
hasInstance: hasInstance, | ||
getInstance: getInstance, | ||
}); | ||
@@ -172,2 +182,2 @@ return function () { return unregisterContainer(scope); }; | ||
export { Container, DEFAULT_SCOPE, SCOPE_KEY, create, createModal, getContainer, hexGen, registerContainer, unregisterContainer }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZXMuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy9oZXgtZ2VuLnRzIiwiLi4vc3JjL3V0aWxzL3JlZ2lzdGVyLXNjb3BlLnRzIiwiLi4vc3JjL0NvbnRhaW5lci50c3giLCIuLi9zcmMvY3JlYXRlLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBIZXggPSBzdHJpbmdcblxuZXhwb3J0IGNvbnN0IGhleEdlbiA9IChsZW46IG51bWJlciA9IDEyKTogSGV4ID0+IHtcbiAgY29uc3QgbWF4bGVuID0gOFxuICBjb25zdCBtaW4gPSBNYXRoLnBvdygxNiwgTWF0aC5taW4obGVuLCBtYXhsZW4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jb25zdCB7IFtoYXNoXTogXywgLi4ub21pdEhhc2ggfSA9IGluc3RhbmNlc1xuXG4gICAgICAgICAgcmV0dXJuIG9taXRIYXNoXG4gICAgICAgIH0pXG4gICAgICAgIG9uUmVtb3ZlPy4oaGFzaClcbiAgICAgIH0sIG9wdGlvbnM/LmV4aXRUaW1lb3V0KVxuICAgIH0sXG4gICAgW29uUmVtb3ZlXVxuICApXG5cbiAgY29uc3QgY3JlYXRlOiBJbnN0YW5jZUNyZWF0b3IgPSB1c2VDYWxsYmFjayhcbiAgICAoQ29tcG9uZW50LCBvcHRpb25zID0ge30sIHByb3BzKSA9PlxuICAgICAgbmV3IFByb21pc2UoKHJlcywgcmVqKSA9PiB7XG4gICAgICAgIGNvbnN0IGhhc2ggPSBwcm9wcz8uaW5zdGFuY2VJZCB8fCBoZXhHZW4oKVxuXG4gICAgICAgIGNvbnN0IGluc3RhbmNlT3B0aW9ucyA9IHtcbiAgICAgICAgICBlbnRlclRpbWVvdXQsXG4gICAgICAgICAgZXhpdFRpbWVvdXQsXG4gICAgICAgICAgaW5zdGFuY2VJZDogaGFzaCxcbiAgICAgICAgICAuLi5vcHRpb25zLFxuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgaW5zdGFuY2U6IEluc3RhbmNlID0ge1xuICAgICAgICAgIENvbXBvbmVudCxcbiAgICAgICAgICBwcm9wczogeyAuLi5pbnN0YW5jZU9wdGlvbnMsIC4uLnByb3BzIH0sXG4gICAgICAgICAgcmVzb2x2ZTogdiA9PiB7XG4gICAgICAgICAgICByZW1vdmUoaGFzaCwgaW5zdGFuY2VPcHRpb25zKVxuICAgICAgICAgICAgcmVzKHYpXG4gICAgICAgICAgICBvblJlc29sdmU/Lih2LCBoYXNoKVxuICAgICAgICAgIH0sXG4gICAgICAgICAgcmVqZWN0OiByID0+IHtcbiAgICAgICAgICAgIHJlbW92ZShoYXNoLCBpbnN0YW5jZU9wdGlvbnMpXG4gICAgICAgICAgICByZWoocilcbiAgICAgICAgICAgIG9uUmVqZWN0Py4ociwgaGFzaClcbiAgICAgICAgICB9LFxuICAgICAgICAgIC4uLmluc3RhbmNlT3B0aW9ucyxcbiAgICAgICAgfVxuXG4gICAgICAgIHNldEluc3RhbmNlcyhpbnN0YW5jZXMgPT5cbiAgICAgICAgICBpc0FwcGVuZEludGFuY2VzXG4gICAgICAgICAgICA/IHtcbiAgICAgICAgICAgICAgICAuLi5pbnN0YW5jZXMsXG4gICAgICAgICAgICAgICAgW2hhc2hdOiBpbnN0YW5jZSxcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgOiB7XG4gICAgICAgICAgICAgICAgW2hhc2hdOiBpbnN0YW5jZSxcbiAgICAgICAgICAgICAgICAuLi5pbnN0YW5jZXMsXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgKVxuXG4gICAgICAgIHNldFRpbWVvdXQoXG4gICAgICAgICAgKCkgPT4gc2V0SGFzaFN0YWNrKHN0YWNrID0+IFsuLi5zdGFjaywgaGFzaF0pLFxuICAgICAgICAgIGluc3RhbmNlT3B0aW9ucy5lbnRlclRpbWVvdXRcbiAgICAgICAgKVxuXG4gICAgICAgIG9uT3Blbj8uKGhhc2gsIGluc3RhbmNlKVxuICAgICAgfSksXG4gICAgW2VudGVyVGltZW91dCwgZXhpdFRpbWVvdXQsIG9uT3Blbiwgb25SZXNvbHZlLCBvblJlamVjdCwgaXNBcHBlbmRJbnRhbmNlc11cbiAgKVxuXG4gIHVzZUltcGVyYXRpdmVIYW5kbGUocmVmLCAoKSA9PiAoe1xuICAgIGNyZWF0ZSxcbiAgICByZXNvbHZlLFxuICAgIHJlamVjdCxcbiAgICByZXNvbHZlQWxsLFxuICAgIHJlamVjdEFsbCxcbiAgfSkpXG5cbiAgdXNlRWZmZWN0KCgpID0+IHtcbiAgICByZWdpc3RlckNvbnRhaW5lcihzY29wZSwge1xuICAgICAgY3JlYXRlLFxuICAgICAgcmVzb2x2ZSxcbiAgICAgIHJlamVjdCxcbiAgICAgIHJlc29sdmVBbGwsXG4gICAgICByZWplY3RBbGwsXG4gICAgfSlcblxuICAgIHJldHVybiAoKSA9PiB1bnJlZ2lzdGVyQ29udGFpbmVyKHNjb3BlKVxuICB9LCBbc2NvcGVdKVxuXG4gIGNvbnN0IG1hcEtleXMgPSB1c2VNZW1vKCgpID0+IHtcbiAgICBjb25zdCBrZXlzID0gT2JqZWN0LmtleXMoaW5zdGFuY2VzKVxuXG4gICAgcmV0dXJuIGtleXMubWFwKGtleSA9PiB7XG4gICAgICBjb25zdCB7IENvbXBvbmVudCwgcHJvcHMsIHJlc29sdmUsIHJlamVjdCB9ID0gaW5zdGFuY2VzW2tleV1cblxuICAgICAgY29uc3QgaXNPcGVuID0gISFoYXNoU3RhY2suZmluZChoID0+IGggPT09IGtleSlcblxuICAgICAgcmV0dXJuIChcbiAgICAgICAgPENvbXBvbmVudFxuICAgICAgICAgIHsuLi5wcm9wc31cbiAgICAgICAgICBrZXk9e2tleX1cbiAgICAgICAgICBpc09wZW49e2lzT3Blbn1cbiAgICAgICAgICBvblJlamVjdD17cmVqZWN0fVxuICAgICAgICAgIG9uUmVzb2x2ZT17cmVzb2x2ZX1cbiAgICAgICAgICAvKiogQGRlcHJlY2F0ZWQgKiovXG4gICAgICAgICAgY2xvc2U9e3Jlc29sdmV9XG4gICAgICAgICAgLyoqIEBkZXByZWNhdGVkICoqL1xuICAgICAgICAgIG9wZW49e2lzT3Blbn1cbiAgICAgICAgLz5cbiAgICAgIClcbiAgICB9KVxuICB9LCBbaW5zdGFuY2VzLCBoYXNoU3RhY2tdKVxuXG4gIHJldHVybiA8PnttYXBLZXlzfTwvPlxufVxuXG5leHBvcnQgY29uc3QgQ29udGFpbmVyID0gZm9yd2FyZFJlZihJbnN0YW5jZUNvbnRhaW5lcilcblxuQ29udGFpbmVyLmRlZmF1bHRQcm9wcyA9IHtcbiAgZXhpdFRpbWVvdXQ6IDUwMCxcbiAgZW50ZXJUaW1lb3V0OiA1MCxcbn1cbiIsImltcG9ydCB7IG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SBpbnN0YW5jZXNcblxuICAgICAgICAgIHJldHVybiBvbWl0SGFzaFxuICAgICAgICB9KVxuICAgICAgICBvblJlbW92ZT8uKGhhc2gpXG4gICAgICB9LCBvcHRpb25zPy5leGl0VGltZW91dClcbiAgICB9LFxuICAgIFtvblJlbW92ZV1cbiAgKVxuXG4gIGNvbnN0IGNyZWF0ZTogSW5zdGFuY2VDcmVhdG9yID0gdXNlQ2FsbGJhY2soXG4gICAgKENvbXBvbmVudCwgb3B0aW9ucyA9IHt9LCBwcm9wcykgPT5cbiAgICAgIG5ldyBQcm9taXNlKChyZXMsIHJlaikgPT4ge1xuICAgICAgICBjb25zdCBoYXNoID0gcHJvcHM/Lmluc3RhbmNlSWQgfHwgaGV4R2VuKClcblxuICAgICAgICBjb25zdCBpbnN0YW5jZU9wdGlvbnMgPSB7XG4gICAgICAgICAgZW50ZXJUaW1lb3V0LFxuICAgICAgICAgIGV4aXRUaW1lb3V0LFxuICAgICAgICAgIGluc3RhbmNlSWQ6IGhhc2gsXG4gICAgICAgICAgLi4ub3B0aW9ucyxcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGluc3RhbmNlOiBJbnN0YW5jZSA9IHtcbiAgICAgICAgICBDb21wb25lbnQsXG4gICAgICAgICAgcHJvcHM6IHsgLi4uaW5zdGFuY2VPcHRpb25zLCAuLi5wcm9wcyB9LFxuICAgICAgICAgIHJlc29sdmU6IHYgPT4ge1xuICAgICAgICAgICAgcmVtb3ZlKGhhc2gsIGluc3RhbmNlT3B0aW9ucylcbiAgICAgICAgICAgIHJlcyh2KVxuICAgICAgICAgICAgb25SZXNvbHZlPy4odiwgaGFzaClcbiAgICAgICAgICB9LFxuICAgICAgICAgIHJlamVjdDogciA9PiB7XG4gICAgICAgICAgICByZW1vdmUoaGFzaCwgaW5zdGFuY2VPcHRpb25zKVxuICAgICAgICAgICAgcmVqKHIpXG4gICAgICAgICAgICBvblJlamVjdD8uKHIsIGhhc2gpXG4gICAgICAgICAgfSxcbiAgICAgICAgICAuLi5pbnN0YW5jZU9wdGlvbnMsXG4gICAgICAgIH1cblxuICAgICAgICBzZXRJbnN0YW5jZXMoaW5zdGFuY2VzID0+XG4gICAgICAgICAgaXNBcHBlbmRJbnRhbmNlc1xuICAgICAgICAgICAgPyB7XG4gICAgICAgICAgICAgICAgLi4uaW5zdGFuY2VzLFxuICAgICAgICAgICAgICAgIFtoYXNoXTogaW5zdGFuY2UsXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIDoge1xuICAgICAgICAgICAgICAgIFtoYXNoXTogaW5zdGFuY2UsXG4gICAgICAgICAgICAgICAgLi4uaW5zdGFuY2VzLFxuICAgICAgICAgICAgICB9XG4gICAgICAgIClcblxuICAgICAgICBzZXRUaW1lb3V0KFxuICAgICAgICAgICgpID0+IHNldEhhc2hTdGFjayhzdGFjayA9PiBbLi4uc3RhY2ssIGhhc2hdKSxcbiAgICAgICAgICBpbnN0YW5jZU9wdGlvbnMuZW50ZXJUaW1lb3V0XG4gICAgICAgIClcblxuICAgICAgICBvbk9wZW4/LihoYXNoLCBpbnN0YW5jZSlcbiAgICAgIH0pLFxuICAgIFtlbnRlclRpbWVvdXQsIGV4aXRUaW1lb3V0LCBvbk9wZW4sIG9uUmVzb2x2ZSwgb25SZWplY3QsIGlzQXBwZW5kSW50YW5jZXNdXG4gIClcblxuICB1c2VJbXBlcmF0aXZlSGFuZGxlKHJlZiwgKCkgPT4gKHtcbiAgICBjcmVhdGUsXG4gICAgcmVzb2x2ZSxcbiAgICByZWplY3QsXG4gICAgcmVzb2x2ZUFsbCxcbiAgICByZWplY3RBbGwsXG4gICAgaGFzSW5zdGFuY2UsXG4gICAgZ2V0SW5zdGFuY2UsXG4gIH0pKVxuXG4gIHVzZUVmZmVjdCgoKSA9PiB7XG4gICAgcmVnaXN0ZXJDb250YWluZXIoc2NvcGUsIHtcbiAgICAgIGNyZWF0ZSxcbiAgICAgIHJlc29sdmUsXG4gICAgICByZWplY3QsXG4gICAgICByZXN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1osRUFDSDtTQUNGLENBQUMsQ0FBQTtLQUNILEVBQUUsQ0FBQyxTQUFTLEVBQUUsU0FBUyxDQUFDLENBQUMsQ0FBQTtJQUUxQixPQUFPLDBDQUFHLE9BQU8sQ0FBSSxDQUFBO0FBQ3ZCLENBQUMsQ0FBQTtJQUVZLFNBQVMsR0FBRyxVQUFVLENBQUMsaUJBQWlCLEVBQUM7QUFFdEQsU0FBUyxDQUFDLFlBQVksR0FBRztJQUN2QixXQUFXLEVBQUUsR0FBRztJQUNoQixZQUFZLEVBQUUsRUFBRTtDQUNqQjs7QUMzTEQ7SUFDYSxXQUFXLEdBQW1CLFVBQUMsU0FBUyxFQUFFLE9BQU8sSUFBSyxPQUFBLFVBQUEsS0FBSztJQUN0RSxPQUFBLFlBQVksQ0FBQyxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUUsS0FBSyxDQUFDLENBQUMsTUFBTSxDQUFDLFNBQVMsRUFBRSxPQUFPLEVBQUUsS0FBSyxDQUFDO0FBQTlELENBQThELElBQUE7SUFFbkQsTUFBTSxHQUFtQixVQUFDLFNBQVMsRUFBRSxPQUFPLElBQUssT0FBQSxVQUFBLEtBQUs7SUFDakUsT0FBQSxZQUFZLENBQUMsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLEtBQUssQ0FBQyxDQUFDLE1BQU0sQ0FBQyxTQUFTLEVBQUUsT0FBTyxFQUFFLEtBQUssQ0FBQztBQUE5RCxDQUE4RDs7Ozs7In0= |
@@ -96,2 +96,8 @@ 'use strict'; | ||
var rejectAll = React.useCallback(function (r) { return Object.values(instances).forEach(function (i) { return i.reject(r); }); }, [instances]); | ||
var hasInstance = React.useCallback(function (hash) { return !!(instances === null || instances === void 0 ? void 0 : instances[hash]); }, [ | ||
instances, | ||
]); | ||
var getInstance = React.useCallback(function (hash) { return instances === null || instances === void 0 ? void 0 : instances[hash]; }, [ | ||
instances, | ||
]); | ||
var remove = React.useCallback(function (hash, options) { | ||
@@ -137,2 +143,4 @@ setHashStack(function (stack) { return stack.filter(function (s) { return s !== hash; }); }); | ||
rejectAll: rejectAll, | ||
hasInstance: hasInstance, | ||
getInstance: getInstance, | ||
}); }); | ||
@@ -146,2 +154,4 @@ React.useEffect(function () { | ||
rejectAll: rejectAll, | ||
hasInstance: hasInstance, | ||
getInstance: getInstance, | ||
}); | ||
@@ -188,2 +198,2 @@ return function () { return unregisterContainer(scope); }; | ||
exports.unregisterContainer = unregisterContainer; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzIjpbIi4uL3NyYy91dGlscy9oZXgtZ2VuLnRzIiwiLi4vc3JjL3V0aWxzL3JlZ2lzdGVyLXNjb3BlLnRzIiwiLi4vc3JjL0NvbnRhaW5lci50c3giLCIuLi9zcmMvY3JlYXRlLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBIZXggPSBzdHJpbmdcblxuZXhwb3J0IGNvbnN0IGhleEdlbiA9IChsZW46IG51bWJlciA9IDEyKTogSGV4ID0+IHtcbiAgY29uc3QgbWF4bGVuID0gOFxuICBjb25zdCBtaW4gPSBNYXRoLnBvdygxNiwgTWF0aC5taW4obGVuLCBtYXhsZW4pIC0gMSlcbiAgY29uc3QgbWF4ID0gTWF0aC5wb3coMTYsIE1hdGgubWluKGxlbiwgbWF4bGVuKSkgLSAxXG4gIGNvbnN0IG4gPSBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAobWF4IC0gbWluICsgMSkpICsgbWluXG4gIGxldCByID0gbi50b1N0cmluZygxNilcbiAgd2hpbGUgKHIubGVuZ3RoIDwgbGVuKSB7XG4gICAgciA9IHIgKyBoZXhHZW4obGVuIC0gbWF4bGVuKVxuICB9XG4gIHJldHVybiByXG59XG4iLCJpbXBvcnQgeyBTY29wZSwgU2NvcGVNb2RlbCwgQ29udGFpbmVyUmVmIH0gZnJv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JlcywgcmVqKSA9PiB7XG4gICAgICAgIGNvbnN0IGhhc2ggPSBwcm9wcz8uaW5zdGFuY2VJZCB8fCBoZXhHZW4oKVxuXG4gICAgICAgIGNvbnN0IGluc3RhbmNlT3B0aW9ucyA9IHtcbiAgICAgICAgICBlbnRlclRpbWVvdXQsXG4gICAgICAgICAgZXhpdFRpbWVvdXQsXG4gICAgICAgICAgaW5zdGFuY2VJZDogaGFzaCxcbiAgICAgICAgICAuLi5vcHRpb25zLFxuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgaW5zdGFuY2U6IEluc3RhbmNlID0ge1xuICAgICAgICAgIENvbXBvbmVudCxcbiAgICAgICAgICBwcm9wczogeyAuLi5pbnN0YW5jZU9wdGlvbnMsIC4uLnByb3BzIH0sXG4gICAgICAgICAgcmVzb2x2ZTogdiA9PiB7XG4gICAgICAgICAgICByZW1vdmUoaGFzaCwgaW5zdGFuY2VPcHRpb25zKVxuICAgICAgICAgICAgcmVzKHYpXG4gICAgICAgICAgICBvblJlc29sdmU/Lih2LCBoYXNoKVxuICAgICAgICAgIH0sXG4gICAgICAgICAgcmVqZWN0OiByID0+IHtcbiAgICAgICAgICAgIHJlbW92ZShoYXNoLCBpbnN0YW5jZU9wdGlvbnMpXG4gICAgICAgICAgICByZWoocilcbiAgICAgICAgICAgIG9uUmVqZWN0Py4ociwgaGFzaClcbiAgICAgICAgICB9LFxuICAgICAgICAgIC4uLmluc3RhbmNlT3B0aW9ucyxcbiAgICAgICAgfVxuXG4gICAgICAgIHNldEluc3RhbmNlcyhpbnN0YW5jZXMgPT5cbiAgICAgICAgICBpc0FwcGVuZEludGFuY2VzXG4gICAgICAgICAgICA/IHtcbiAgICAgICAgICAgICAgICAuLi5pbnN0YW5jZXMsXG4gICAgICAgICAgICAgICAgW2hhc2hdOiBpbnN0YW5jZSxcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgOiB7XG4gICAgICAgICAgICAgICAgW2hhc2hdOiBpbnN0YW5jZSxcbi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tvblJlbW92ZV1cbiAgKVxuXG4gIGNvbnN0IGNyZWF0ZTogSW5zdGFuY2VDcmVhdG9yID0gdXNlQ2FsbGJhY2soXG4gICAgKENvbXBvbmVudCwgb3B0aW9ucyA9IHt9LCBwcm9wcykgPT5cbiAgICAgIG5ldyBQcm9taXNlKChyZXMsIHJlaikgPT4ge1xuICAgICAgICBjb25zdCBoYXNoID0gcHJvcHM/Lmluc3RhbmNlSWQgfHwgaGV4R2VuKClcblxuICAgICAgICBjb25zdCBpbnN0YW5jZU9wdGlvbnMgPSB7XG4gICAgICAgICAgZW50ZXJUaW1lb3V0LFxuICAgICAgICAgIGV4aXRUaW1lb3V0LFxuICAgICAgICAgIGluc3RhbmNlSWQ6IGhhc2gsXG4gICAgICAgICAgLi4ub3B0aW9ucyxcbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IGluc3RhbmNlOiBJbnN0YW5jZSA9IHtcbiAgICAgICAgICBDb21wb25lbnQsXG4gICAgICAgICAgcHJvcHM6IHsgLi4uaW5zdGFuY2VPcHRpb25zLCAuLi5wcm9wcyB9LFxuICAgICAgICAgIHJlc29sdmU6IHYgPT4ge1xuICAgICAgICAgICAgcmVtb3ZlKGhhc2gsIGluc3RhbmNlT3B0aW9ucylcbiAgICAgICAgICAgIHJlcyh2KVxuICAgICAgICAgICAgb25SZXNvbHZlPy4odiwgaGFzaClcbiAgICAgICAgICB9LFxuICAgICAgICAgIHJlamVjdDogciA9PiB7XG4gICAgICAgICAgICByZW1vdmUoaGFzaCwgaW5zdGFuY2VPcHRpb25zKVxuICAgICAgICAgICAgcmVqKHIpXG4gICAgICAgICAgICBvblJlamVjdD8uKHIsIGhhc2gpXG4gICAgICAgICAgfSxcbiAgICAgICAgICAuLi5pbnN0YW5jZU9wdGlvbnMsXG4gICAgICAgIH1cblxuICAgICAgICBzZXRJbnN0YW5jZXMoaW5zdGFuY2VzID0+XG4gICAgICAgICAgaXNBcHBlbmRJbnRhbmNlc1xuICAgICAgICAgICAgP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s7Z0JBRWQsSUFBSSxFQUFFLE1BQU0sSUFDWixFQUNIO1NBQ0YsQ0FBQyxDQUFBO0tBQ0gsRUFBRSxDQUFDLFNBQVMsRUFBRSxTQUFTLENBQUMsQ0FBQyxDQUFBO0lBRTFCLE9BQU9BLGtGQUFHLE9BQU8sQ0FBSSxDQUFBO0FBQ3ZCLENBQUMsQ0FBQTtJQUVZLFNBQVMsR0FBR0MsZ0JBQVUsQ0FBQyxpQkFBaUIsRUFBQztBQUV0RCxTQUFTLENBQUMsWUFBWSxHQUFHO0lBQ3ZCLFdBQVcsRUFBRSxHQUFHO0lBQ2hCLFlBQVksRUFBRSxFQUFFO0NBQ2pCOztBQzNMRDtJQUNhLFdBQVcsR0FBbUIsVUFBQyxTQUFTLEVBQUUsT0FBTyxJQUFLLE9BQUEsVUFBQSxLQUFLO0lBQ3RFLE9BQUEsWUFBWSxDQUFDLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxLQUFLLENBQUMsQ0FBQyxNQUFNLENBQUMsU0FBUyxFQUFFLE9BQU8sRUFBRSxLQUFLLENBQUM7QUFBOUQsQ0FBOEQsSUFBQTtJQUVuRCxNQUFNLEdBQW1CLFVBQUMsU0FBUyxFQUFFLE9BQU8sSUFBSyxPQUFBLFVBQUEsS0FBSztJQUNqRSxPQUFBLFlBQVksQ0FBQyxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUUsS0FBSyxDQUFDLENBQUMsTUFBTSxDQUFDLFNBQVMsRUFBRSxPQUFPLEVBQUUsS0FBSyxDQUFDO0FBQTlELENBQThEOzs7Ozs7Ozs7Ozs7OyJ9 |
@@ -35,3 +35,3 @@ /// <reference types="react" /> | ||
isAppendIntances?: boolean; | ||
onOpen?: (id?: Hex, instance?: Instance) => void; | ||
onOpen?: (id?: InstanceId, instance?: Instance) => void; | ||
onResolve?: Resolver; | ||
@@ -47,2 +47,4 @@ onReject?: Rejector; | ||
rejectAll: <T>(reason?: T) => void; | ||
getInstance: (id: InstanceId) => Instance | null; | ||
hasInstance: (id: InstanceId) => boolean; | ||
} | ||
@@ -49,0 +51,0 @@ export interface CreateInstance { |
{ | ||
"name": "react-modal-promise", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Promise wrapper for React components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56921
555