pollination-react-io 1.74.2 → 1.74.4

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
@@ -49857,11 +49857,13 @@ var FileCard = function (_a) {
49857
49857
  setCurrFile(blob);
49858
49858
  setCADintegration(blob);
49859
49859
  setIsLoading(false);
49860
+ setIsInactive(false);
49860
49861
  });
49861
49862
  })
49862
49863
  .catch(function (err) {
49863
49864
  console.error(err);
49864
49865
  setIsLoading(false);
49866
+ setIsInactive(true);
49865
49867
  });
49866
49868
  };
49867
49869
  var extension = React.useMemo(function () {
@@ -49967,7 +49969,7 @@ var FileCard = function (_a) {
49967
49969
  highlight: 'var(--slate7)'
49968
49970
  }, results: CADdata.data, buttonLabel: label,
49969
49971
  // @ts-ignore
49970
- defaultAction: Action$1.preview, optionsConfig: {
49972
+ defaultAction: (host === 'revit') ? Action$1.add : Action$1.preview, optionsConfig: {
49971
49973
  add: true,
49972
49974
  delete: (host === 'revit'),
49973
49975
  'subscribe-preview': false,