pollination-react-io 1.73.6 → 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
@@ -45149,7 +45149,7 @@ var CreateStudy = function (_a) {
45149
45149
  var jobName_1 = toUnixPath(projectJobInfo.studyId).split('/').reverse()[0];
45150
45150
  // Path is the full path of the local machine where the run input/output are
45151
45151
  setTimeout(function () {
45152
- window.location.href = "".concat(basePath, "/").concat(projectJobInfo.accountName, "/projects/").concat(projectJobInfo.projectName, "/localStudies/").concat(jobName_1, "/?path=").concat(projectJobInfo.studyId);
45152
+ window.location.href = "".concat(basePath, "/").concat(projectJobInfo.accountName, "/projects/").concat(projectJobInfo.projectName, "/localStudies/").concat(jobName_1, "/?path=").concat(projectJobInfo.studyId, "&studyName=").concat(projectJobInfo.jobName);
45153
45153
  }, 3000);
45154
45154
  }
45155
45155
  };
@@ -49275,6 +49275,7 @@ var RunCard = function (_a) {
49275
49275
  window.location.href = "/".concat(projectOwner, "/projects/").concat(projectName, "/studies/").concat(study.id, "/runs/").concat(run.id);
49276
49276
  }
49277
49277
  else {
49278
+ // No studyName. Only completed run are visible in the list
49278
49279
  window.location.href = "/".concat(projectOwner, "/projects/").concat(projectName, "/localStudies/").concat(localStudyURLname, "/?path=").concat(_run.id, "&subfolder=").concat(_run['subfolder']);
49279
49280
  }
49280
49281
  } },
@@ -49808,9 +49809,10 @@ var FileCard = function (_a) {
49808
49809
  var setCADintegration = React.useCallback(function (file) {
49809
49810
  if (!file)
49810
49811
  return;
49811
- if (host !== 'rhino')
49812
+ if (host === 'web')
49812
49813
  return;
49813
- if (path.endsWith('hbjson')) {
49814
+ if (path.endsWith('hbjson')
49815
+ && host === 'rhino') {
49814
49816
  var reader_1 = new FileReader();
49815
49817
  reader_1.readAsText(file);
49816
49818
  reader_1.onload = function () {
@@ -49822,7 +49824,8 @@ var FileCard = function (_a) {
49822
49824
  });
49823
49825
  };
49824
49826
  }
49825
- else if (path.endsWith('vsf')) {
49827
+ else if (path.endsWith('vsf')
49828
+ && (host === 'rhino' || host === 'revit')) {
49826
49829
  var reader_2 = new FileReader();
49827
49830
  reader_2.readAsText(file);
49828
49831
  reader_2.onload = function () {