@vitrosoftware/common-ui-ts 1.1.245 → 1.1.246

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/dist/index.js CHANGED
@@ -60939,6 +60939,10 @@ var ActionHandler = function ActionHandler(props) {
60939
60939
  onClose();
60940
60940
  };
60941
60941
  var onError = function onError(error) {
60942
+ if (error instanceof AbortExceptionImpl) {
60943
+ onCancel();
60944
+ return null;
60945
+ }
60942
60946
  if (props.onError) {
60943
60947
  var res = props.onError(error);
60944
60948
  if (res.abort) {
@@ -61727,7 +61731,7 @@ var TabButtonGroup = function TabButtonGroup(props) {
61727
61731
  var _ref$current;
61728
61732
  resizeTimeout.id = null;
61729
61733
  setWidth(((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.offsetWidth) || 0);
61730
- }, 200);
61734
+ }, 10);
61731
61735
  }
61732
61736
  }
61733
61737
  }
@@ -61740,7 +61744,7 @@ var TabButtonGroup = function TabButtonGroup(props) {
61740
61744
  }
61741
61745
  }, [width]);
61742
61746
  var getOverflowIndex = function getOverflowIndex(width) {
61743
- var scrollWidth = (activeItemTabBtn === null || activeItemTabBtn === void 0 ? void 0 : activeItemTabBtn.width) || 0;
61747
+ var scrollWidth = ((activeItemTabBtn === null || activeItemTabBtn === void 0 ? void 0 : activeItemTabBtn.width) || 0) + 32;
61744
61748
  for (var _iterator2 = _createForOfIteratorHelperLoose(tabList.entries()), _step2; !(_step2 = _iterator2()).done;) {
61745
61749
  var _step2$value = _step2.value,
61746
61750
  index = _step2$value[0],
@@ -66987,7 +66991,7 @@ var Viewer = function Viewer(props) {
66987
66991
  };
66988
66992
 
66989
66993
  var name = "@vitrosoftware/common-ui-ts";
66990
- var version$1 = "1.1.245";
66994
+ var version$1 = "1.1.246";
66991
66995
  var description = "vitro software common ui ts";
66992
66996
  var author = "";
66993
66997
  var license = "MIT";
@@ -86185,6 +86189,7 @@ var Icon = function Icon(props) {
86185
86189
 
86186
86190
  exports.ACTION_HANDLER = ActionHandlerConstants;
86187
86191
  exports.ALERT = AlertConstants;
86192
+ exports.AbortExceptionImpl = AbortExceptionImpl;
86188
86193
  exports.ActionHandler = ActionHandler;
86189
86194
  exports.Activity = Activity;
86190
86195
  exports.ActivityItem = ActivityItem;