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.js
CHANGED
@@ -49548,15 +49548,21 @@ var FileCard = function (_a) {
|
|
49548
49548
|
return path.split('/').reverse()[0];
|
49549
49549
|
}, [path]);
|
49550
49550
|
/**
|
49551
|
-
* Read local file as
|
49551
|
+
* Read local file as base64 - Panel only
|
49552
49552
|
*/
|
49553
49553
|
var base64AndFetch = function (path) {
|
49554
49554
|
if (!path)
|
49555
49555
|
return;
|
49556
49556
|
var data = fromFileToBase64(path);
|
49557
49557
|
var base64Data = data === null || data === void 0 ? void 0 : data.data;
|
49558
|
-
if (!base64Data)
|
49558
|
+
if (!base64Data) {
|
49559
|
+
// Not found...
|
49560
|
+
setIsInactive(true);
|
49561
|
+
setCurrFile(undefined);
|
49562
|
+
setCADintegration(undefined);
|
49563
|
+
setIsLoading(false);
|
49559
49564
|
return;
|
49565
|
+
}
|
49560
49566
|
// bas64 mapping
|
49561
49567
|
var t;
|
49562
49568
|
switch (extension) {
|
@@ -49678,11 +49684,7 @@ var RunContent = function (_a) {
|
|
49678
49684
|
var _d = React.useState([]), currParams = _d[0], setCurrParams = _d[1];
|
49679
49685
|
var _e = React.useState([]), currFiles = _e[0], setCurrFiles = _e[1];
|
49680
49686
|
var _f = React.useState([]), currFolders = _f[0], setCurrFolders = _f[1];
|
49681
|
-
|
49682
|
-
React.useEffect(function () {
|
49683
|
-
setCurrData(inputData);
|
49684
|
-
!isCloud && setReloader(function (prev) { return !prev; });
|
49685
|
-
}, [inputData]);
|
49687
|
+
React.useEffect(function () { return setCurrData(inputData); }, [inputData]);
|
49686
49688
|
React.useEffect(function () {
|
49687
49689
|
if (!currData || currData.length == 0)
|
49688
49690
|
return;
|
@@ -49710,7 +49712,7 @@ var RunContent = function (_a) {
|
|
49710
49712
|
setCurrParams(params);
|
49711
49713
|
setCurrFiles(files);
|
49712
49714
|
setCurrFolders(folders);
|
49713
|
-
}, [currData
|
49715
|
+
}, [currData]);
|
49714
49716
|
// const checkIfValidUUID = (str: string): boolean => {
|
49715
49717
|
// 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
|
49716
49718
|
// return regexExp.test(str)
|