@usecsv/react 0.2.3 → 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 CHANGED
@@ -1,3 +1,24 @@
1
+ ## [0.2.6](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.2.5...v0.2.6) (2022-05-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update "@usecsv/js" , to fix close fn ([9694fde](https://github.com/layercodedev/usecsv-react-plugin/commit/9694fde17b10b09568575eddef8f5a6ecf9fb0dd))
7
+
8
+ ## [0.2.5](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.2.4...v0.2.5) (2022-04-25)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * update "@usecsv/js" , to use close function param ([928b88d](https://github.com/layercodedev/usecsv-react-plugin/commit/928b88dfcd716888f432f4ca2ebc7dec0e3975b1))
14
+
15
+ ## [0.2.4](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.2.3...v0.2.4) (2022-04-24)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * update usecsv core package ([7b208bd](https://github.com/layercodedev/usecsv-react-plugin/commit/7b208bd70d38e37d038190f10271aa5fa8b878ec))
21
+
1
22
  ## [0.2.3](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.2.2...v0.2.3) (2022-04-06)
2
23
 
3
24
 
package/build/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @usecsv/react v0.2.3
2
+ * @usecsv/react v0.2.6
3
3
  * (c) layercode
4
4
  * Released under the MIT License.
5
5
  */
@@ -34,7 +34,7 @@ function __rest(s, e) {
34
34
  }
35
35
 
36
36
  /*!
37
- * @usecsv/js v0.2.3
37
+ * @usecsv/js v0.3.1
38
38
  * (c) layercode
39
39
  * Released under the MIT License.
40
40
  */
@@ -630,12 +630,17 @@ var useCsvPlugin = function (_a) {
630
630
  var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
631
631
  return whenDomReady().then(function () {
632
632
  var iframe = insertIframe(id);
633
+ var closeIframe = function () {
634
+ var _a;
635
+ (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.remove();
636
+ };
633
637
  var iframeConnection = connectToChild({
634
638
  iframe: iframe,
635
- methods: __assign({ closeIframe: function () {
636
- var _a;
637
- (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.remove();
638
- } }, (onData ? { onData: onData } : {})),
639
+ methods: __assign({ closeIframe: closeIframe }, (onData
640
+ ? {
641
+ onData: function (data) { return onData(data, closeIframe); },
642
+ }
643
+ : {})),
639
644
  });
640
645
  iframeConnection.promise.then(function (child) {
641
646
  var _a;