@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 +14 -0
- package/build/index.cjs +4 -24
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +4 -24
- package/build/index.esm.js.map +1 -1
- package/build/index.js +4 -24
- package/build/index.js.map +1 -1
- package/build/index.mjs +4 -24
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +4 -24
- 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
|
+
* @usecsv/react v0.8.1
|
|
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.
|
|
41
|
+
* @usecsv/js v0.21.2
|
|
42
42
|
* (c) layercode
|
|
43
43
|
* Released under the MIT License.
|
|
44
44
|
*/
|
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
return iframe;
|
|
720
720
|
};
|
|
721
721
|
var useCsvPlugin = function (_a) {
|
|
722
|
-
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;
|
|
722
|
+
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;
|
|
723
723
|
var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
|
|
724
724
|
return whenDomReady().then(function () {
|
|
725
725
|
var iframe = insertIframe(id, importerDisplay);
|
|
@@ -729,27 +729,7 @@
|
|
|
729
729
|
};
|
|
730
730
|
var iframeConnection = connectToChild({
|
|
731
731
|
iframe: iframe,
|
|
732
|
-
methods: __assign(__assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData
|
|
733
|
-
? {
|
|
734
|
-
onData: function (data) { return onData(data, closeIframe); },
|
|
735
|
-
}
|
|
736
|
-
: {})), (onRecordsInitial
|
|
737
|
-
? {
|
|
738
|
-
onRecordsInitial: onRecordsInitial,
|
|
739
|
-
}
|
|
740
|
-
: {})), (onRecordEdit
|
|
741
|
-
? {
|
|
742
|
-
onRecordEdit: onRecordEdit,
|
|
743
|
-
}
|
|
744
|
-
: {})), (onClose
|
|
745
|
-
? {
|
|
746
|
-
onClose: onClose,
|
|
747
|
-
}
|
|
748
|
-
: {})), (onError
|
|
749
|
-
? {
|
|
750
|
-
onError: onError,
|
|
751
|
-
}
|
|
752
|
-
: {})),
|
|
732
|
+
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 } : {})),
|
|
753
733
|
});
|
|
754
734
|
iframeConnection.promise.then(function (child) {
|
|
755
735
|
var _a;
|