@usecsv/react 0.2.12 → 0.2.14
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 +8 -4
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +8 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +8 -4
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +8 -4
- 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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.2.
|
|
2
|
+
* @usecsv/react v0.2.14
|
|
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.10.0
|
|
38
38
|
* (c) layercode
|
|
39
39
|
* Released under the MIT License.
|
|
40
40
|
*/
|
|
@@ -634,7 +634,7 @@ var insertIframe = function (id, importerDisplay) {
|
|
|
634
634
|
return iframe;
|
|
635
635
|
};
|
|
636
636
|
var useCsvPlugin = function (_a) {
|
|
637
|
-
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;
|
|
637
|
+
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;
|
|
638
638
|
var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
|
|
639
639
|
return whenDomReady().then(function () {
|
|
640
640
|
var iframe = insertIframe(id, importerDisplay);
|
|
@@ -644,7 +644,7 @@ var useCsvPlugin = function (_a) {
|
|
|
644
644
|
};
|
|
645
645
|
var iframeConnection = connectToChild({
|
|
646
646
|
iframe: iframe,
|
|
647
|
-
methods: __assign(__assign(__assign({ closeIframe: closeIframe }, (onData
|
|
647
|
+
methods: __assign(__assign(__assign(__assign({ closeIframe: closeIframe }, (onData
|
|
648
648
|
? {
|
|
649
649
|
onData: function (data) { return onData(data, closeIframe); },
|
|
650
650
|
}
|
|
@@ -656,6 +656,10 @@ var useCsvPlugin = function (_a) {
|
|
|
656
656
|
? {
|
|
657
657
|
onRecordEdit: onRecordEdit,
|
|
658
658
|
}
|
|
659
|
+
: {})), (onClose
|
|
660
|
+
? {
|
|
661
|
+
onClose: onClose,
|
|
662
|
+
}
|
|
659
663
|
: {})),
|
|
660
664
|
});
|
|
661
665
|
iframeConnection.promise.then(function (child) {
|