@usecsv/react 0.8.3 → 0.9.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/CHANGELOG.md +14 -0
- package/build/index.cjs +5 -4
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +5 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +5 -4
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +5 -4
- package/build/index.umd.js.map +1 -1
- package/build/index.umd.min.js +4 -4
- package/build/index.umd.min.js.map +1 -1
- package/package.json +6 -6
package/build/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.
|
|
2
|
+
* @usecsv/react v0.9.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.
|
|
35
|
+
* @usecsv/js v0.22.0
|
|
36
36
|
* (c) layercode
|
|
37
37
|
* Released under the MIT License.
|
|
38
38
|
*/
|
|
@@ -713,7 +713,7 @@ var insertIframe = function (id, importerDisplay) {
|
|
|
713
713
|
return iframe;
|
|
714
714
|
};
|
|
715
715
|
var useCsvPlugin = function (_a) {
|
|
716
|
-
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;
|
|
716
|
+
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, columnWidth = _a.columnWidth, onMatchColumns = _a.onMatchColumns;
|
|
717
717
|
var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
|
|
718
718
|
return whenDomReady().then(function () {
|
|
719
719
|
var iframe = insertIframe(id, importerDisplay);
|
|
@@ -723,7 +723,7 @@ var useCsvPlugin = function (_a) {
|
|
|
723
723
|
};
|
|
724
724
|
var iframeConnection = connectToChild({
|
|
725
725
|
iframe: iframe,
|
|
726
|
-
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 } : {})),
|
|
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 } : {})),
|
|
727
727
|
});
|
|
728
728
|
iframeConnection.promise.then(function (child) {
|
|
729
729
|
var _a;
|
|
@@ -744,6 +744,7 @@ var useCsvPlugin = function (_a) {
|
|
|
744
744
|
defaultLanguage: defaultLanguage,
|
|
745
745
|
customText: customText,
|
|
746
746
|
acceptedFileFormats: acceptedFileFormats,
|
|
747
|
+
columnWidth: columnWidth,
|
|
747
748
|
});
|
|
748
749
|
});
|
|
749
750
|
return iframeConnection;
|