@usecsv/react 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/build/index.cjs +11 -6
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +11 -6
- package/build/index.esm.js.map +1 -1
- package/build/index.js +11 -6
- package/build/index.js.map +1 -1
- package/build/index.mjs +11 -6
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +11 -6
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +3 -3
- package/build/index.umd.min.js.map +1 -1
- package/package.json +2 -2
package/build/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.2.
|
|
2
|
+
* @usecsv/react v0.2.6
|
|
3
3
|
* (c) layercode
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/*!
|
|
41
|
-
* @usecsv/js v0.3.
|
|
41
|
+
* @usecsv/js v0.3.1
|
|
42
42
|
* (c) layercode
|
|
43
43
|
* Released under the MIT License.
|
|
44
44
|
*/
|
|
@@ -634,12 +634,17 @@
|
|
|
634
634
|
var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
|
|
635
635
|
return whenDomReady().then(function () {
|
|
636
636
|
var iframe = insertIframe(id);
|
|
637
|
+
var closeIframe = function () {
|
|
638
|
+
var _a;
|
|
639
|
+
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.remove();
|
|
640
|
+
};
|
|
637
641
|
var iframeConnection = connectToChild({
|
|
638
642
|
iframe: iframe,
|
|
639
|
-
methods: __assign({ closeIframe:
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}
|
|
643
|
+
methods: __assign({ closeIframe: closeIframe }, (onData
|
|
644
|
+
? {
|
|
645
|
+
onData: function (data) { return onData(data, closeIframe); },
|
|
646
|
+
}
|
|
647
|
+
: {})),
|
|
643
648
|
});
|
|
644
649
|
iframeConnection.promise.then(function (child) {
|
|
645
650
|
var _a;
|