pollination-react-io 1.73.7 → 1.74.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/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/package.json +1 -1
package/build/index.esm.js
CHANGED
@@ -49783,9 +49783,10 @@ var FileCard = function (_a) {
|
|
49783
49783
|
var setCADintegration = useCallback(function (file) {
|
49784
49784
|
if (!file)
|
49785
49785
|
return;
|
49786
|
-
if (host
|
49786
|
+
if (host === 'web')
|
49787
49787
|
return;
|
49788
|
-
if (path.endsWith('hbjson')
|
49788
|
+
if (path.endsWith('hbjson')
|
49789
|
+
&& host === 'rhino') {
|
49789
49790
|
var reader_1 = new FileReader();
|
49790
49791
|
reader_1.readAsText(file);
|
49791
49792
|
reader_1.onload = function () {
|
@@ -49797,7 +49798,8 @@ var FileCard = function (_a) {
|
|
49797
49798
|
});
|
49798
49799
|
};
|
49799
49800
|
}
|
49800
|
-
else if (path.endsWith('vsf')
|
49801
|
+
else if (path.endsWith('vsf')
|
49802
|
+
&& (host === 'rhino' || host === 'revit')) {
|
49801
49803
|
var reader_2 = new FileReader();
|
49802
49804
|
reader_2.readAsText(file);
|
49803
49805
|
reader_2.onload = function () {
|