bnstooltips 1.7.0 → 1.7.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.
- package/build/index.es.js +39 -21
- package/build/index.es.js.map +1 -1
- package/build/index.js +39 -21
- package/build/index.js.map +1 -1
- package/build/itemapiclient/api.d.ts +45 -14
- package/package.json +2 -2
package/build/index.es.js
CHANGED
|
@@ -5844,32 +5844,50 @@ function ItemImproveTooltip(_a) {
|
|
|
5844
5844
|
fullHeight: fullHeight,
|
|
5845
5845
|
};
|
|
5846
5846
|
if (!offline) {
|
|
5847
|
-
if (data.
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
//
|
|
5851
|
-
//
|
|
5847
|
+
if (data.itemNext != null && data.upgradeOptions != null && data.upgradeOptions.length > 0) {
|
|
5848
|
+
if (data.useMileageSave != null && data.useMileageSave === true && data.upgradeOptions.find(function (x) { return x.isRandom; }) != null)
|
|
5849
|
+
tooltipBaseProps.mainInfos.push(React.createElement("div", null, "The upgrade chance is 100% when the pity meter is filled."));
|
|
5850
|
+
// if (data.itemPrev != null) {
|
|
5851
|
+
// tooltipBaseProps.subInfoGroups.push({
|
|
5852
|
+
// title: "Previous Upgrade:",
|
|
5853
|
+
// texts: [
|
|
5854
|
+
// <ItemIconNameDiv showUpgrade={true} client={client} region={region} item={data.itemPrev} interactive={true} />
|
|
5855
|
+
// ]
|
|
5856
|
+
// });
|
|
5857
|
+
// }
|
|
5852
5858
|
tooltipBaseProps.subInfoGroups.push({
|
|
5853
5859
|
title: "Next Upgrade:",
|
|
5854
5860
|
texts: [
|
|
5855
|
-
React.createElement(ItemIconNameDiv, { showUpgrade: true, client: client, region: region, item: data.
|
|
5861
|
+
React.createElement(ItemIconNameDiv, { showUpgrade: true, client: client, region: region, item: data.itemNext, interactive: true })
|
|
5856
5862
|
]
|
|
5857
5863
|
});
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5864
|
+
data.upgradeOptions.forEach(function (upgradeOption, i, _) {
|
|
5865
|
+
var costGroup = {
|
|
5866
|
+
title: "Upgrade option " + (i + 1) + ":",
|
|
5867
|
+
texts: []
|
|
5868
|
+
};
|
|
5869
|
+
if (upgradeOption.isRandom != null && upgradeOption.isRandom === true) {
|
|
5870
|
+
costGroup.texts.push(React.createElement("div", { className: "TooltipBase_flex ItemImproveTooltip_moneyContainer" },
|
|
5871
|
+
React.createElement("span", { className: "TooltipBase_grade-8" }, "This option has a chance to fail!")));
|
|
5872
|
+
}
|
|
5873
|
+
if (upgradeOption.mainItemCost != null) {
|
|
5874
|
+
var mainItems;
|
|
5875
|
+
mainItems.push(upgradeOption.mainItemCost);
|
|
5876
|
+
costGroup.texts.push(React.createElement(DecomposeResults, { client: client, region: region, showUpgrade: false, items: mainItems }));
|
|
5877
|
+
}
|
|
5878
|
+
if (upgradeOption.subItemCost != null && upgradeOption.subItemCost.length > 0) {
|
|
5879
|
+
costGroup.texts.push(React.createElement(DecomposeResults, { client: client, region: region, showUpgrade: false, items: upgradeOption.subItemCost }));
|
|
5880
|
+
}
|
|
5881
|
+
if (upgradeOption.moneyCost != null && upgradeOption.moneyCost > 0) {
|
|
5882
|
+
costGroup.texts.push(React.createElement("div", { className: "TooltipBase_flex ItemImproveTooltip_moneyContainer" },
|
|
5883
|
+
React.createElement("span", { className: "TooltipBase_grade-6" }, "Money:\u00A0"),
|
|
5884
|
+
React.createElement(Money, { money: upgradeOption.moneyCost })));
|
|
5885
|
+
}
|
|
5886
|
+
tooltipBaseProps.subInfoGroups.push(costGroup);
|
|
5887
|
+
});
|
|
5870
5888
|
}
|
|
5871
5889
|
}
|
|
5872
|
-
if (data.
|
|
5890
|
+
if (data.bonusEffectOptions != null && data.bonusEffectOptions.length > 0) {
|
|
5873
5891
|
tooltipBaseProps.mainInfos.push(React.createElement("div", null, "Random effects can be obtained when upgrading."));
|
|
5874
5892
|
var subInfoGroupStats_1 = {
|
|
5875
5893
|
title: "Possible Stats:",
|
|
@@ -5879,7 +5897,7 @@ function ItemImproveTooltip(_a) {
|
|
|
5879
5897
|
title: "Possible Effects:",
|
|
5880
5898
|
texts: []
|
|
5881
5899
|
};
|
|
5882
|
-
data.
|
|
5900
|
+
data.bonusEffectOptions.forEach(function (option) {
|
|
5883
5901
|
if (option.isEffect) {
|
|
5884
5902
|
subInfoGroupEffects_1.texts.push(React.createElement("div", { className: "ItemImproveTooltip_option", dangerouslySetInnerHTML: { __html: option.effectDescription } }));
|
|
5885
5903
|
}
|
|
@@ -5913,7 +5931,7 @@ var ItemImproveTooltipWrapper = function (_a) {
|
|
|
5913
5931
|
var _k = useState(true), isOffline = _k[0], setIsOffline = _k[1];
|
|
5914
5932
|
return (React.createElement(React.Fragment, null,
|
|
5915
5933
|
children,
|
|
5916
|
-
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: "
|
|
5934
|
+
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: "grade4", reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
5917
5935
|
};
|
|
5918
5936
|
|
|
5919
5937
|
function ItemTooltip(_a) {
|