bnstooltips 1.8.1 → 1.8.2

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
@@ -5900,10 +5900,8 @@ function ItemImproveTooltip(_a) {
5900
5900
  var _j = React.useState(), nextItem = _j[0], setNextItem = _j[1];
5901
5901
  var _k = React.useState([]), steps = _k[0], setSteps = _k[1];
5902
5902
  var _l = React.useState([]), allPossibleUpgrades = _l[0], setAllPossibleUpgrades = _l[1];
5903
- if (offline)
5904
- return null;
5905
5903
  React.useEffect(function () {
5906
- if (data == null || client == null)
5904
+ if (data == null || client == null || offline)
5907
5905
  return;
5908
5906
  (function () { return __awaiter(_this, void 0, void 0, function () {
5909
5907
  var existing, _a, existing, _b, foundIndex, _c;
@@ -6054,7 +6052,7 @@ function AddUpgradeCost(subInfoGroups, item, nextItem, steps, client, region) {
6054
6052
  }
6055
6053
 
6056
6054
  var ItemImproveTooltipWrapper = function (_a) {
6057
- var data = _a.data, region = _a.region, children = _a.children, client = _a.client, _b = _a.offline, offline = _b === void 0 ? false : _b, _c = _a.interactive, interactive = _c === void 0 ? true : _c, _d = _a.placement, placement = _d === void 0 ? "right" : _d, _e = _a.debug, debug = _e === void 0 ? false : _e, _f = _a.followCursor, followCursor$1 = _f === void 0 ? false : _f, _g = _a.trigger, trigger = _g === void 0 ? "mouseenter focus" : _g; _a.showArrow;
6055
+ var data = _a.data, region = _a.region, children = _a.children, client = _a.client, _b = _a.offline, offline = _b === void 0 ? false : _b, _c = _a.interactive, interactive = _c === void 0 ? true : _c, _d = _a.placement, placement = _d === void 0 ? "right" : _d, _e = _a.debug, debug = _e === void 0 ? false : _e, _f = _a.followCursor, followCursor$1 = _f === void 0 ? false : _f, _g = _a.trigger, trigger = _g === void 0 ? "mouseenter focus" : _g, _h = _a.showArrow, showArrow = _h === void 0 ? true : _h;
6058
6056
  var spanRef = React.useRef(null);
6059
6057
  var _j = React.useState(null), childRef = _j[0], setChildRef = _j[1];
6060
6058
  /**
@@ -6070,7 +6068,7 @@ var ItemImproveTooltipWrapper = function (_a) {
6070
6068
  var _k = React.useState(true), isOffline = _k[0], setIsOffline = _k[1];
6071
6069
  return (React__default["default"].createElement(React__default["default"].Fragment, null,
6072
6070
  children,
6073
- childRef ? (React__default["default"].createElement(Tippy, { arrow: false, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, onMount: function () { return setIsOffline(offline); }, placement: placement, animation: "fade", interactive: interactive, content: React__default["default"].createElement(ItemImproveTooltip, { region: region, data: data, offline: isOffline, client: client, debug: debug }), theme: "grade" + data.grade, reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
6071
+ childRef ? (React__default["default"].createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, onMount: function () { return setIsOffline(offline); }, placement: placement, animation: "fade", interactive: interactive, content: React__default["default"].createElement(ItemImproveTooltip, { region: region, data: data, offline: isOffline, client: client, debug: debug }), theme: "grade" + data.grade, reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
6074
6072
  };
6075
6073
 
6076
6074
  function ItemMainInfo(item) {