@usecsv/react 0.7.0 → 0.8.1

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,17 @@
1
+ ## [0.8.1](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.8.0...v0.8.1) (2023-11-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update usecsv/js to update theme type ([1a75386](https://github.com/layercodedev/usecsv-react-plugin/commit/1a75386351e2d7a131bfc4a3f4298fd8ff60942f))
7
+
8
+ # [0.8.0](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.7.0...v0.8.0) (2023-11-01)
9
+
10
+
11
+ ### Features
12
+
13
+ * update usecsv/js to add onFileUpload function prop ([f3ef707](https://github.com/layercodedev/usecsv-react-plugin/commit/f3ef707fd065f3edc0082b348d806f6c77b8b1b1))
14
+
1
15
  # [0.7.0](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.6.0...v0.7.0) (2023-11-01)
2
16
 
3
17
 
package/build/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @usecsv/react v0.7.0
2
+ * @usecsv/react v0.8.1
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.20.0
37
+ * @usecsv/js v0.21.2
38
38
  * (c) layercode
39
39
  * Released under the MIT License.
40
40
  */
@@ -715,7 +715,7 @@ var insertIframe = function (id, importerDisplay) {
715
715
  return iframe;
716
716
  };
717
717
  var useCsvPlugin = function (_a) {
718
- var importerKey = _a.importerKey, user = _a.user, metadata = _a.metadata, onData = _a.onData, onRecordsInitial = _a.onRecordsInitial, onRecordEdit = _a.onRecordEdit, _b = _a.importerDisplay, importerDisplay = _b === void 0 ? "modal" : _b, onClose = _a.onClose, theme = _a.theme, batchSize = _a.batchSize, sampleFileURL = _a.sampleFileURL, _c = _a.downloadExampleButton, downloadExampleButton = _c === void 0 ? true : _c, dynamicColumns = _a.dynamicColumns, defaultLanguage = _a.defaultLanguage, onError = _a.onError, customText = _a.customText, acceptedFileFormats = _a.acceptedFileFormats;
718
+ var importerKey = _a.importerKey, user = _a.user, metadata = _a.metadata, onData = _a.onData, onRecordsInitial = _a.onRecordsInitial, onRecordEdit = _a.onRecordEdit, _b = _a.importerDisplay, importerDisplay = _b === void 0 ? "modal" : _b, onClose = _a.onClose, theme = _a.theme, batchSize = _a.batchSize, sampleFileURL = _a.sampleFileURL, _c = _a.downloadExampleButton, downloadExampleButton = _c === void 0 ? true : _c, dynamicColumns = _a.dynamicColumns, defaultLanguage = _a.defaultLanguage, onError = _a.onError, customText = _a.customText, acceptedFileFormats = _a.acceptedFileFormats, onFileUpload = _a.onFileUpload;
719
719
  var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
720
720
  return whenDomReady().then(function () {
721
721
  var iframe = insertIframe(id, importerDisplay);
@@ -725,27 +725,7 @@ var useCsvPlugin = function (_a) {
725
725
  };
726
726
  var iframeConnection = connectToChild({
727
727
  iframe: iframe,
728
- methods: __assign(__assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData
729
- ? {
730
- onData: function (data) { return onData(data, closeIframe); },
731
- }
732
- : {})), (onRecordsInitial
733
- ? {
734
- onRecordsInitial: onRecordsInitial,
735
- }
736
- : {})), (onRecordEdit
737
- ? {
738
- onRecordEdit: onRecordEdit,
739
- }
740
- : {})), (onClose
741
- ? {
742
- onClose: onClose,
743
- }
744
- : {})), (onError
745
- ? {
746
- onError: onError,
747
- }
748
- : {})),
728
+ methods: __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 } : {})),
749
729
  });
750
730
  iframeConnection.promise.then(function (child) {
751
731
  var _a;