pollination-react-io 1.77.1 → 1.77.3

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.
@@ -56040,7 +56040,9 @@ var FileCard = function (_a) {
56040
56040
  res.blob()
56041
56041
  .then(function (blob) {
56042
56042
  setCurrFile(blob);
56043
- fetchHTML(blob);
56043
+ if (path === null || path === void 0 ? void 0 : path.endsWith('vsf')) {
56044
+ fetchHTML(blob);
56045
+ }
56044
56046
  setCADintegration(blob);
56045
56047
  setIsLoading(false);
56046
56048
  setIsInactive(false);
@@ -56127,14 +56129,14 @@ var FileCard = function (_a) {
56127
56129
  label)
56128
56130
  : React__default.createElement(LoadingIcon, { size: 14 })),
56129
56131
  !isLoading && React__default.createElement("div", { style: { textAlign: 'right' } },
56130
- filename && filename.endsWith('vsf') && !loading &&
56131
- React__default.createElement("button", { style: { all: 'unset', margin: '0 0 0 8px' }, title: 'Download HTML', onMouseOver: function () { return setHtmlOver(true); }, onMouseLeave: function () { return setHtmlOver(false); }, onClick: function (event) {
56132
+ (filename && filename.endsWith('vsf')) && (loading ? React__default.createElement(LoadingIcon, { size: 14 }) :
56133
+ (React__default.createElement("button", { style: { all: 'unset', margin: '0 0 0 8px' }, title: 'Download HTML', onMouseOver: function () { return setHtmlOver(true); }, onMouseLeave: function () { return setHtmlOver(false); }, onClick: function (event) {
56132
56134
  if (!html)
56133
56135
  return;
56134
56136
  event.stopPropagation();
56135
56137
  download(html, "".concat(label, ".html"));
56136
56138
  } },
56137
- React__default.createElement(FiletypeHtml$1, { size: 14, style: htmlOver ? { color: '#40a9ff' } : {} })),
56139
+ React__default.createElement(FiletypeHtml$1, { size: 14, style: htmlOver ? { color: '#40a9ff' } : {} })))),
56138
56140
  React__default.createElement("button", { style: { all: 'unset', margin: '0 0 0 8px' }, title: 'Download', onMouseOver: function () { return setInfoOver(true); }, onMouseLeave: function () { return setInfoOver(false); }, onClick: function (event) {
56139
56141
  if (!currFile || !path)
56140
56142
  return;