pollination-react-io 1.73.7 → 1.74.1
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 +8 -6
- package/build/index.esm.js.map +1 -1
- package/build/index.js +8 -6
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -49809,9 +49809,10 @@ var FileCard = function (_a) {
|
|
49809
49809
|
var setCADintegration = React.useCallback(function (file) {
|
49810
49810
|
if (!file)
|
49811
49811
|
return;
|
49812
|
-
if (host
|
49812
|
+
if (host === 'web')
|
49813
49813
|
return;
|
49814
|
-
if (path.endsWith('hbjson')
|
49814
|
+
if (path.endsWith('hbjson')
|
49815
|
+
&& host === 'rhino') {
|
49815
49816
|
var reader_1 = new FileReader();
|
49816
49817
|
reader_1.readAsText(file);
|
49817
49818
|
reader_1.onload = function () {
|
@@ -49823,7 +49824,8 @@ var FileCard = function (_a) {
|
|
49823
49824
|
});
|
49824
49825
|
};
|
49825
49826
|
}
|
49826
|
-
else if (path.endsWith('vsf')
|
49827
|
+
else if (path.endsWith('vsf')
|
49828
|
+
&& (host === 'rhino' || host === 'revit')) {
|
49827
49829
|
var reader_2 = new FileReader();
|
49828
49830
|
reader_2.readAsText(file);
|
49829
49831
|
reader_2.onload = function () {
|
@@ -49967,10 +49969,10 @@ var FileCard = function (_a) {
|
|
49967
49969
|
// @ts-ignore
|
49968
49970
|
defaultAction: Action$1.preview, optionsConfig: {
|
49969
49971
|
add: true,
|
49970
|
-
delete:
|
49972
|
+
delete: (host === 'revit'),
|
49971
49973
|
'subscribe-preview': false,
|
49972
|
-
clear:
|
49973
|
-
preview:
|
49974
|
+
clear: (host !== 'revit'),
|
49975
|
+
preview: (host !== 'revit')
|
49974
49976
|
}, key: CADdata.id, defaultKey: CADdata.id })),
|
49975
49977
|
open && React__default["default"].createElement("div", { className: 'card-description' }, description));
|
49976
49978
|
};
|