@usecsv/react 0.2.6 → 0.2.7
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 +7 -0
- package/build/index.cjs +12 -4
- package/build/index.cjs.map +1 -1
- package/build/index.esm.js +12 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +12 -4
- package/build/index.js.map +1 -1
- package/build/index.mjs +12 -4
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +12 -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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.2.7](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.2.6...v0.2.7) (2022-08-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update "@usecsv/js" , update data hooks ([a002c98](https://github.com/layercodedev/usecsv-react-plugin/commit/a002c987c355b3ca12b29f7ef2b6a1f72be4bf66))
|
|
7
|
+
|
|
1
8
|
## [0.2.6](https://github.com/layercodedev/usecsv-react-plugin/compare/v0.2.5...v0.2.6) (2022-05-12)
|
|
2
9
|
|
|
3
10
|
|
package/build/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @usecsv/react v0.2.
|
|
2
|
+
* @usecsv/react v0.2.7
|
|
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.6.0
|
|
38
38
|
* (c) layercode
|
|
39
39
|
* Released under the MIT License.
|
|
40
40
|
*/
|
|
@@ -626,7 +626,7 @@ var insertIframe = function (id) {
|
|
|
626
626
|
return iframe;
|
|
627
627
|
};
|
|
628
628
|
var useCsvPlugin = function (_a) {
|
|
629
|
-
var importerKey = _a.importerKey, user = _a.user, metadata = _a.metadata, onData = _a.onData;
|
|
629
|
+
var importerKey = _a.importerKey, user = _a.user, metadata = _a.metadata, onData = _a.onData, onRecordsInitial = _a.onRecordsInitial, onRecordEdit = _a.onRecordEdit;
|
|
630
630
|
var id = "usecsv-".concat(Math.round(Math.random() * 100000000));
|
|
631
631
|
return whenDomReady().then(function () {
|
|
632
632
|
var iframe = insertIframe(id);
|
|
@@ -636,10 +636,18 @@ var useCsvPlugin = function (_a) {
|
|
|
636
636
|
};
|
|
637
637
|
var iframeConnection = connectToChild({
|
|
638
638
|
iframe: iframe,
|
|
639
|
-
methods: __assign({ closeIframe: closeIframe }, (onData
|
|
639
|
+
methods: __assign(__assign(__assign({ closeIframe: closeIframe }, (onData
|
|
640
640
|
? {
|
|
641
641
|
onData: function (data) { return onData(data, closeIframe); },
|
|
642
642
|
}
|
|
643
|
+
: {})), (onRecordsInitial
|
|
644
|
+
? {
|
|
645
|
+
onRecordsInitial: onRecordsInitial,
|
|
646
|
+
}
|
|
647
|
+
: {})), (onRecordEdit
|
|
648
|
+
? {
|
|
649
|
+
onRecordEdit: onRecordEdit,
|
|
650
|
+
}
|
|
643
651
|
: {})),
|
|
644
652
|
});
|
|
645
653
|
iframeConnection.promise.then(function (child) {
|