pollination-react-io 1.41.2 → 1.41.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.
@@ -48692,7 +48692,7 @@ var RunCard = function (_a) {
48692
48692
  /*
48693
48693
  * Manage hover
48694
48694
  */
48695
- var _m = useState({
48695
+ var initialValues = {
48696
48696
  account: false,
48697
48697
  project: false,
48698
48698
  details: false,
@@ -48704,7 +48704,8 @@ var RunCard = function (_a) {
48704
48704
  author: false,
48705
48705
  recipe: false,
48706
48706
  info: false
48707
- }), hover = _m[0], setHover = _m[1];
48707
+ };
48708
+ var _m = useState(initialValues), hover = _m[0], setHover = _m[1];
48708
48709
  var toggleHover = function (event, inputId, value) {
48709
48710
  if (inputId === void 0) { inputId = undefined; }
48710
48711
  if (value === void 0) { value = false; }
@@ -48717,6 +48718,11 @@ var RunCard = function (_a) {
48717
48718
  return (__assign(__assign({}, prevHover), (_a = {}, _a[id] = value, _a)));
48718
48719
  });
48719
48720
  };
48721
+ // Reset hover and use default tab
48722
+ useEffect(function () {
48723
+ var _a;
48724
+ setHover(__assign(__assign({}, initialValues), (_a = {}, _a[defaultTab] = true, _a)));
48725
+ }, [defaultTab]);
48720
48726
  return (React__default.createElement("div", { className: enableClick ? 'grid-container' : 'grid-container disable-click', tabIndex: 0, role: 'button', style: __assign({ borderColor: (_c = (_b = statusMap[status]) === null || _b === void 0 ? void 0 : _b.color) !== null && _c !== void 0 ? _c : '#d0d7de' }, style), onClick: function () {
48721
48727
  if (run && enableClick) {
48722
48728
  window.location.href = "/".concat(projectOwner, "/projects/").concat(projectName, "/studies/").concat(study.id, "/runs/").concat(run.id);