@usecsv/react 0.5.0 → 0.7.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 -3
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +5 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +5 -3
- package/build/index.js.map +1 -1
- package/build/index.mjs +5 -3
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +5 -3
- 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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [0.7.0](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.6.0...v0.7.0) (2023-11-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* update usecsv/js to add accepted files formats frontend prop ([0e3ef88](https://github.com/layercodedev/usecsv-react-plugin/commit/0e3ef88c3bcbaccd44afe770ff2c5eb54562a38a))
|
|
7
|
+
|
|
8
|
+
# [0.6.0](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.5.0...v0.6.0) (2023-10-27)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* update usecsv/js version to add customText prop ([449c7f3](https://github.com/layercodedev/usecsv-react-plugin/commit/449c7f3ebc758021ffc7c9cb8cd84c8afdd14b42))
|
|
14
|
+
|
|
1
15
|
# [0.5.0](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.4.1...v0.5.0) (2023-10-23)
|
|
2
16
|
|
|
3
17
|
|
package/build/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.
|
|
2
|
+
* @usecsv/react v0.7.0
|
|
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.
|
|
37
|
+
* @usecsv/js v0.20.0
|
|
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;
|
|
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;
|
|
719
719
|
var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
|
|
720
720
|
return whenDomReady().then(function () {
|
|
721
721
|
var iframe = insertIframe(id, importerDisplay);
|
|
@@ -764,6 +764,8 @@ var useCsvPlugin = function (_a) {
|
|
|
764
764
|
downloadExampleButton: downloadExampleButton,
|
|
765
765
|
dynamicColumns: dynamicColumns,
|
|
766
766
|
defaultLanguage: defaultLanguage,
|
|
767
|
+
customText: customText,
|
|
768
|
+
acceptedFileFormats: acceptedFileFormats,
|
|
767
769
|
});
|
|
768
770
|
});
|
|
769
771
|
return iframeConnection;
|