bnstooltips 1.18.2 → 1.18.4
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 +14 -17
- package/build/index.es.js.map +1 -1
- package/build/index.js +14 -17
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -8004,32 +8004,23 @@ function FilterStones(stones) {
|
|
|
8004
8004
|
}
|
|
8005
8005
|
|
|
8006
8006
|
function ItemUpgradeEffects(props) {
|
|
8007
|
-
var _this = this;
|
|
8008
8007
|
var _a = useState(undefined), effectData = _a[0], setEffectData = _a[1];
|
|
8009
8008
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
|
8010
8009
|
var _c = useState(true), fresh = _c[0], setFresh = _c[1];
|
|
8011
|
-
useEffect(function () {
|
|
8012
|
-
if (props.client)
|
|
8013
|
-
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
8014
|
-
return __generator(this, function (_a) {
|
|
8015
|
-
return [2 /*return*/];
|
|
8016
|
-
});
|
|
8017
|
-
}); })();
|
|
8018
|
-
}, [props, props.id, props.level, props.client]);
|
|
8019
8010
|
function LoadEffectOptions() {
|
|
8020
8011
|
return __awaiter(this, void 0, void 0, function () {
|
|
8021
8012
|
var result, itemImproveEffectsForName_1;
|
|
8022
|
-
return __generator(this, function (
|
|
8023
|
-
switch (
|
|
8013
|
+
return __generator(this, function (_b) {
|
|
8014
|
+
switch (_b.label) {
|
|
8024
8015
|
case 0:
|
|
8025
8016
|
setLoading(true);
|
|
8026
8017
|
setFresh(false);
|
|
8027
|
-
|
|
8018
|
+
_b.label = 1;
|
|
8028
8019
|
case 1:
|
|
8029
|
-
|
|
8020
|
+
_b.trys.push([1, 3, 4, 5]);
|
|
8030
8021
|
return [4 /*yield*/, props.client.GetAllItemImproveEffectOptionsForItem(props.id, props.level)];
|
|
8031
8022
|
case 2:
|
|
8032
|
-
result =
|
|
8023
|
+
result = _b.sent();
|
|
8033
8024
|
if (result && result.itemImproveEffectOptions && result.itemImproveEffectOptions.length > 0) {
|
|
8034
8025
|
itemImproveEffectsForName_1 = [];
|
|
8035
8026
|
result.itemImproveEffectOptions.sort(function (a, b) { return a.index - b.index; }).forEach(function (effectOption) {
|
|
@@ -8043,11 +8034,14 @@ function ItemUpgradeEffects(props) {
|
|
|
8043
8034
|
else {
|
|
8044
8035
|
setEffectData(undefined);
|
|
8045
8036
|
}
|
|
8046
|
-
return [3 /*break*/,
|
|
8037
|
+
return [3 /*break*/, 5];
|
|
8047
8038
|
case 3:
|
|
8039
|
+
_b.sent();
|
|
8040
|
+
return [3 /*break*/, 5];
|
|
8041
|
+
case 4:
|
|
8048
8042
|
setLoading(false);
|
|
8049
8043
|
return [7 /*endfinally*/];
|
|
8050
|
-
case
|
|
8044
|
+
case 5: return [2 /*return*/];
|
|
8051
8045
|
}
|
|
8052
8046
|
});
|
|
8053
8047
|
});
|
|
@@ -8055,7 +8049,10 @@ function ItemUpgradeEffects(props) {
|
|
|
8055
8049
|
if (props.client) {
|
|
8056
8050
|
if (fresh) {
|
|
8057
8051
|
return (React.createElement("div", { className: "ItemTooltip_optionPadding" },
|
|
8058
|
-
React.createElement("span", { className: "ItemTooltip_showButton", onClick:
|
|
8052
|
+
React.createElement("span", { className: "ItemTooltip_showButton", onClick: function (e) {
|
|
8053
|
+
e.stopPropagation();
|
|
8054
|
+
LoadEffectOptions();
|
|
8055
|
+
} }, "Load Upgrade effects")));
|
|
8059
8056
|
}
|
|
8060
8057
|
else if (effectData != undefined) {
|
|
8061
8058
|
return (React.createElement("div", { className: "ItemTooltip_optionPadding" },
|