bnstooltips 1.7.0 → 1.7.1
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 +36 -21
- package/build/index.es.js.map +1 -1
- package/build/index.js +36 -21
- package/build/index.js.map +1 -1
- package/build/itemapiclient/api.d.ts +45 -14
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -5872,32 +5872,47 @@ function ItemImproveTooltip(_a) {
|
|
|
5872
5872
|
fullHeight: fullHeight,
|
|
5873
5873
|
};
|
|
5874
5874
|
if (!offline) {
|
|
5875
|
-
if (data.
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
//
|
|
5879
|
-
//
|
|
5875
|
+
if (data.itemNext != null && data.upgradeOptions != null && data.upgradeOptions.length > 0) {
|
|
5876
|
+
if (data.useMileageSave != null && data.useMileageSave === true && data.upgradeOptions.find(function (x) { return x.isRandom; }) != null)
|
|
5877
|
+
tooltipBaseProps.mainInfos.push(React__default["default"].createElement("div", null, "The upgrade chance is 100% when the pity meter is filled."));
|
|
5878
|
+
// if (data.itemPrev != null) {
|
|
5879
|
+
// tooltipBaseProps.subInfoGroups.push({
|
|
5880
|
+
// title: "Previous Upgrade:",
|
|
5881
|
+
// texts: [
|
|
5882
|
+
// <ItemIconNameDiv showUpgrade={true} client={client} region={region} item={data.itemPrev} interactive={true} />
|
|
5883
|
+
// ]
|
|
5884
|
+
// });
|
|
5885
|
+
// }
|
|
5880
5886
|
tooltipBaseProps.subInfoGroups.push({
|
|
5881
5887
|
title: "Next Upgrade:",
|
|
5882
5888
|
texts: [
|
|
5883
|
-
React__default["default"].createElement(ItemIconNameDiv, { showUpgrade: true, client: client, region: region, item: data.
|
|
5889
|
+
React__default["default"].createElement(ItemIconNameDiv, { showUpgrade: true, client: client, region: region, item: data.itemNext, interactive: true })
|
|
5884
5890
|
]
|
|
5885
5891
|
});
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
|
|
5892
|
+
data.upgradeOptions.forEach(function (upgradeOption, i, _) {
|
|
5893
|
+
var costGroup = {
|
|
5894
|
+
title: "Upgrade option " + (i + 1) + ":",
|
|
5895
|
+
texts: []
|
|
5896
|
+
};
|
|
5897
|
+
if (upgradeOption.isRandom != null && upgradeOption.isRandom === true) {
|
|
5898
|
+
costGroup.texts.push(React__default["default"].createElement("div", { className: "TooltipBase_flex ItemImproveTooltip_moneyContainer" },
|
|
5899
|
+
React__default["default"].createElement("span", { className: "TooltipBase_grade-8" }, "This option has a chance to fail!")));
|
|
5900
|
+
}
|
|
5901
|
+
if (upgradeOption.mainItemCost != null)
|
|
5902
|
+
costGroup.texts.push(React__default["default"].createElement(ItemIconNameDiv, { showUpgrade: false, client: client, region: region, item: upgradeOption.mainItemCost, interactive: true }));
|
|
5903
|
+
if (upgradeOption.subItemCost != null && upgradeOption.subItemCost.length > 0) {
|
|
5904
|
+
costGroup.texts.push(React__default["default"].createElement(DecomposeResults, { client: client, region: region, showUpgrade: false, items: upgradeOption.subItemCost }));
|
|
5905
|
+
}
|
|
5906
|
+
if (upgradeOption.moneyCost != null && upgradeOption.moneyCost > 0) {
|
|
5907
|
+
costGroup.texts.push(React__default["default"].createElement("div", { className: "TooltipBase_flex ItemImproveTooltip_moneyContainer" },
|
|
5908
|
+
React__default["default"].createElement("span", { className: "TooltipBase_grade-6" }, "Money:\u00A0"),
|
|
5909
|
+
React__default["default"].createElement(Money, { money: upgradeOption.moneyCost })));
|
|
5910
|
+
}
|
|
5911
|
+
tooltipBaseProps.subInfoGroups.push(costGroup);
|
|
5912
|
+
});
|
|
5898
5913
|
}
|
|
5899
5914
|
}
|
|
5900
|
-
if (data.
|
|
5915
|
+
if (data.bonusEffectOptions != null && data.bonusEffectOptions.length > 0) {
|
|
5901
5916
|
tooltipBaseProps.mainInfos.push(React__default["default"].createElement("div", null, "Random effects can be obtained when upgrading."));
|
|
5902
5917
|
var subInfoGroupStats_1 = {
|
|
5903
5918
|
title: "Possible Stats:",
|
|
@@ -5907,7 +5922,7 @@ function ItemImproveTooltip(_a) {
|
|
|
5907
5922
|
title: "Possible Effects:",
|
|
5908
5923
|
texts: []
|
|
5909
5924
|
};
|
|
5910
|
-
data.
|
|
5925
|
+
data.bonusEffectOptions.forEach(function (option) {
|
|
5911
5926
|
if (option.isEffect) {
|
|
5912
5927
|
subInfoGroupEffects_1.texts.push(React__default["default"].createElement("div", { className: "ItemImproveTooltip_option", dangerouslySetInnerHTML: { __html: option.effectDescription } }));
|
|
5913
5928
|
}
|
|
@@ -5941,7 +5956,7 @@ var ItemImproveTooltipWrapper = function (_a) {
|
|
|
5941
5956
|
var _k = React.useState(true), isOffline = _k[0], setIsOffline = _k[1];
|
|
5942
5957
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
5943
5958
|
children,
|
|
5944
|
-
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: "
|
|
5959
|
+
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: "grade4", reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
5945
5960
|
};
|
|
5946
5961
|
|
|
5947
5962
|
function ItemTooltip(_a) {
|