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.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 !== 'rhino')
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 () {