@usecsv/react 0.13.0 → 0.14.0

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/build/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @usecsv/react v0.13.0
2
+ * @usecsv/react v0.14.0
3
3
  * (c) layercode
4
4
  * Released under the MIT License.
5
5
  */
@@ -32,7 +32,7 @@ function __rest(s, e) {
32
32
  }
33
33
 
34
34
  /*!
35
- * @usecsv/js v0.26.0
35
+ * @usecsv/js v0.27.0
36
36
  * (c) layercode
37
37
  * Released under the MIT License.
38
38
  */
@@ -721,9 +721,14 @@ var useCsvPlugin = function (_a) {
721
721
  var _a;
722
722
  (_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.remove();
723
723
  };
724
+ var closeImporter = function () {
725
+ if (onClose)
726
+ onClose();
727
+ return closeIframe();
728
+ };
724
729
  var iframeConnection = connectToChild({
725
730
  iframe: iframe,
726
- methods: __assign(__assign(__assign(__assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData ? { onData: function (data) { return onData(data, closeIframe); } } : {})), (onRecordsInitial ? { onRecordsInitial: onRecordsInitial } : {})), (onRecordEdit ? { onRecordEdit: onRecordEdit } : {})), (onClose ? { onClose: onClose } : {})), (onError ? { onError: onError } : {})), (onFileUpload ? { onFileUpload: onFileUpload } : {})), (onMatchColumns ? { onMatchColumns: onMatchColumns } : {})),
731
+ methods: __assign(__assign(__assign(__assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData ? { onData: function (data) { return onData(data, closeImporter); } } : {})), (onRecordsInitial ? { onRecordsInitial: onRecordsInitial } : {})), (onRecordEdit ? { onRecordEdit: onRecordEdit } : {})), (onClose ? { onClose: onClose } : {})), (onError ? { onError: onError } : {})), (onFileUpload ? { onFileUpload: onFileUpload } : {})), (onMatchColumns ? { onMatchColumns: onMatchColumns } : {})),
727
732
  });
728
733
  iframeConnection.promise.then(function (child) {
729
734
  var _a;