pollination-react-io 1.62.4 → 1.62.6
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/build/index.esm.js +10 -8
- package/build/index.esm.js.map +1 -1
- package/build/index.js +10 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
@@ -49522,15 +49522,21 @@ var FileCard = function (_a) {
|
|
49522
49522
|
return path.split('/').reverse()[0];
|
49523
49523
|
}, [path]);
|
49524
49524
|
/**
|
49525
|
-
* Read local file as
|
49525
|
+
* Read local file as base64 - Panel only
|
49526
49526
|
*/
|
49527
49527
|
var base64AndFetch = function (path) {
|
49528
49528
|
if (!path)
|
49529
49529
|
return;
|
49530
49530
|
var data = fromFileToBase64(path);
|
49531
49531
|
var base64Data = data === null || data === void 0 ? void 0 : data.data;
|
49532
|
-
if (!base64Data)
|
49532
|
+
if (!base64Data) {
|
49533
|
+
// Not found...
|
49534
|
+
setIsInactive(true);
|
49535
|
+
setCurrFile(undefined);
|
49536
|
+
setCADintegration(undefined);
|
49537
|
+
setIsLoading(false);
|
49533
49538
|
return;
|
49539
|
+
}
|
49534
49540
|
// bas64 mapping
|
49535
49541
|
var t;
|
49536
49542
|
switch (extension) {
|
@@ -49652,11 +49658,7 @@ var RunContent = function (_a) {
|
|
49652
49658
|
var _d = useState([]), currParams = _d[0], setCurrParams = _d[1];
|
49653
49659
|
var _e = useState([]), currFiles = _e[0], setCurrFiles = _e[1];
|
49654
49660
|
var _f = useState([]), currFolders = _f[0], setCurrFolders = _f[1];
|
49655
|
-
|
49656
|
-
useEffect(function () {
|
49657
|
-
setCurrData(inputData);
|
49658
|
-
!isCloud && setReloader(function (prev) { return !prev; });
|
49659
|
-
}, [inputData]);
|
49661
|
+
useEffect(function () { return setCurrData(inputData); }, [inputData]);
|
49660
49662
|
useEffect(function () {
|
49661
49663
|
if (!currData || currData.length == 0)
|
49662
49664
|
return;
|
@@ -49684,7 +49686,7 @@ var RunContent = function (_a) {
|
|
49684
49686
|
setCurrParams(params);
|
49685
49687
|
setCurrFiles(files);
|
49686
49688
|
setCurrFolders(folders);
|
49687
|
-
}, [currData
|
49689
|
+
}, [currData]);
|
49688
49690
|
// const checkIfValidUUID = (str: string): boolean => {
|
49689
49691
|
// const regexExp = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi
|
49690
49692
|
// return regexExp.test(str)
|