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.es.js +3 -5
- package/build/index.es.js.map +1 -1
- package/build/index.js +3 -5
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -5872,10 +5872,8 @@ function ItemImproveTooltip(_a) {
|
|
|
5872
5872
|
var _j = useState(), nextItem = _j[0], setNextItem = _j[1];
|
|
5873
5873
|
var _k = useState([]), steps = _k[0], setSteps = _k[1];
|
|
5874
5874
|
var _l = useState([]), allPossibleUpgrades = _l[0], setAllPossibleUpgrades = _l[1];
|
|
5875
|
-
if (offline)
|
|
5876
|
-
return null;
|
|
5877
5875
|
useEffect(function () {
|
|
5878
|
-
if (data == null || client == null)
|
|
5876
|
+
if (data == null || client == null || offline)
|
|
5879
5877
|
return;
|
|
5880
5878
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
5881
5879
|
var existing, _a, existing, _b, foundIndex, _c;
|
|
@@ -6026,7 +6024,7 @@ function AddUpgradeCost(subInfoGroups, item, nextItem, steps, client, region) {
|
|
|
6026
6024
|
}
|
|
6027
6025
|
|
|
6028
6026
|
var ItemImproveTooltipWrapper = function (_a) {
|
|
6029
|
-
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
|
|
6027
|
+
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;
|
|
6030
6028
|
var spanRef = useRef(null);
|
|
6031
6029
|
var _j = useState(null), childRef = _j[0], setChildRef = _j[1];
|
|
6032
6030
|
/**
|
|
@@ -6042,7 +6040,7 @@ var ItemImproveTooltipWrapper = function (_a) {
|
|
|
6042
6040
|
var _k = useState(true), isOffline = _k[0], setIsOffline = _k[1];
|
|
6043
6041
|
return (React.createElement(React.Fragment, null,
|
|
6044
6042
|
children,
|
|
6045
|
-
childRef ? (React.createElement(Tippy, { arrow:
|
|
6043
|
+
childRef ? (React.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.createElement(ItemImproveTooltip, { region: region, data: data, offline: isOffline, client: client, debug: debug }), theme: "grade" + data.grade, reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
6046
6044
|
};
|
|
6047
6045
|
|
|
6048
6046
|
function ItemMainInfo(item) {
|