bnstooltips 1.8.6 → 1.9.0
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/Utilities/ISkill.d.ts +17 -0
- package/build/Utilities/ItemDownloadClient.d.ts +2 -1
- package/build/index.es.js +79 -8
- package/build/index.es.js.map +1 -1
- package/build/index.js +79 -8
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1308,7 +1308,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1308
1308
|
var result;
|
|
1309
1309
|
return __generator(this, function (_a) {
|
|
1310
1310
|
switch (_a.label) {
|
|
1311
|
-
case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(true, false, this.region, this.patch)];
|
|
1311
|
+
case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(true, false, this.region, this.patch, ItemDownloadClient.options)];
|
|
1312
1312
|
case 1:
|
|
1313
1313
|
result = _a.sent();
|
|
1314
1314
|
return [2 /*return*/, result];
|
|
@@ -1321,7 +1321,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1321
1321
|
var result;
|
|
1322
1322
|
return __generator(this, function (_a) {
|
|
1323
1323
|
switch (_a.label) {
|
|
1324
|
-
case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(false, true, this.region, this.patch)];
|
|
1324
|
+
case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(false, true, this.region, this.patch, ItemDownloadClient.options)];
|
|
1325
1325
|
case 1:
|
|
1326
1326
|
result = _a.sent();
|
|
1327
1327
|
return [2 /*return*/, result];
|
|
@@ -1334,7 +1334,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1334
1334
|
var result;
|
|
1335
1335
|
return __generator(this, function (_a) {
|
|
1336
1336
|
switch (_a.label) {
|
|
1337
|
-
case 0: return [4 /*yield*/, this.instance.bnsItemItemByStringGet(idlevelString, this.region, false, this.patch)];
|
|
1337
|
+
case 0: return [4 /*yield*/, this.instance.bnsItemItemByStringGet(idlevelString, this.region, false, this.patch, ItemDownloadClient.options)];
|
|
1338
1338
|
case 1:
|
|
1339
1339
|
result = _a.sent();
|
|
1340
1340
|
return [2 /*return*/, result];
|
|
@@ -1347,7 +1347,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1347
1347
|
var result;
|
|
1348
1348
|
return __generator(this, function (_a) {
|
|
1349
1349
|
switch (_a.label) {
|
|
1350
|
-
case 0: return [4 /*yield*/, this.instance.bnsItemItemGet(id, level, this.region, false, this.patch)];
|
|
1350
|
+
case 0: return [4 /*yield*/, this.instance.bnsItemItemGet(id, level, this.region, false, this.patch, ItemDownloadClient.options)];
|
|
1351
1351
|
case 1:
|
|
1352
1352
|
result = _a.sent();
|
|
1353
1353
|
return [2 /*return*/, result];
|
|
@@ -1355,12 +1355,12 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1355
1355
|
});
|
|
1356
1356
|
});
|
|
1357
1357
|
};
|
|
1358
|
-
ItemDownloadClient.prototype.GetItemsByCategory = function (category, technicalClassName, gradesString) {
|
|
1358
|
+
ItemDownloadClient.prototype.GetItemsByCategory = function (category, technicalClassName, gradesString, minGs) {
|
|
1359
1359
|
return __awaiter(this, void 0, void 0, function () {
|
|
1360
1360
|
var result;
|
|
1361
1361
|
return __generator(this, function (_a) {
|
|
1362
1362
|
switch (_a.label) {
|
|
1363
|
-
case 0: return [4 /*yield*/, this.instance.bnsItemItemsByCategoryGet(this.region, category, technicalClassName, gradesString)];
|
|
1363
|
+
case 0: return [4 /*yield*/, this.instance.bnsItemItemsByCategoryGet(this.region, category, technicalClassName, gradesString, minGs, this.patch, undefined, ItemDownloadClient.options)];
|
|
1364
1364
|
case 1:
|
|
1365
1365
|
result = _a.sent();
|
|
1366
1366
|
return [2 /*return*/, result];
|
|
@@ -1373,7 +1373,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1373
1373
|
var result;
|
|
1374
1374
|
return __generator(this, function (_a) {
|
|
1375
1375
|
switch (_a.label) {
|
|
1376
|
-
case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(item.id, item.level, this.region, this.patch)];
|
|
1376
|
+
case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(item.id, item.level, this.region, this.patch, ItemDownloadClient.options)];
|
|
1377
1377
|
case 1:
|
|
1378
1378
|
result = _a.sent();
|
|
1379
1379
|
return [2 /*return*/, result];
|
|
@@ -1386,7 +1386,7 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1386
1386
|
var result;
|
|
1387
1387
|
return __generator(this, function (_a) {
|
|
1388
1388
|
switch (_a.label) {
|
|
1389
|
-
case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(id, level, this.region, this.patch)];
|
|
1389
|
+
case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(id, level, this.region, this.patch, ItemDownloadClient.options)];
|
|
1390
1390
|
case 1:
|
|
1391
1391
|
result = _a.sent();
|
|
1392
1392
|
return [2 /*return*/, result];
|
|
@@ -1395,6 +1395,11 @@ var ItemDownloadClient = /** @class */ (function () {
|
|
|
1395
1395
|
});
|
|
1396
1396
|
};
|
|
1397
1397
|
ItemDownloadClient.urlBase = "https://bnsitemstoragewebapi.azurewebsites.net";
|
|
1398
|
+
ItemDownloadClient.options = {
|
|
1399
|
+
"headers": {
|
|
1400
|
+
"Referer": "https://yast.vercel.app"
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1398
1403
|
return ItemDownloadClient;
|
|
1399
1404
|
}());
|
|
1400
1405
|
|
|
@@ -6981,6 +6986,7 @@ function SkillTooltip(_a) {
|
|
|
6981
6986
|
AddStances(tooltipBaseProps.subInfoGroups, skill);
|
|
6982
6987
|
if (debug) {
|
|
6983
6988
|
AddIds(tooltipBaseProps.subInfoGroups, skill);
|
|
6989
|
+
AddRealCastConds(tooltipBaseProps.subInfoGroups, skill);
|
|
6984
6990
|
}
|
|
6985
6991
|
}
|
|
6986
6992
|
return React__default["default"].createElement(TooltipBase, __assign({}, tooltipBaseProps));
|
|
@@ -7065,6 +7071,71 @@ function AddIds(subInfoGroups, skill) {
|
|
|
7065
7071
|
"Variation: ",
|
|
7066
7072
|
skill.Variation)],
|
|
7067
7073
|
});
|
|
7074
|
+
}
|
|
7075
|
+
function AddRealCastConds(subInfoGroups, skill) {
|
|
7076
|
+
var realCastCondition = skill.RealCastCondition;
|
|
7077
|
+
if (realCastCondition == undefined || realCastCondition == null)
|
|
7078
|
+
return;
|
|
7079
|
+
var subInfoGroup = {
|
|
7080
|
+
title: "Real cast conditions",
|
|
7081
|
+
texts: [
|
|
7082
|
+
React__default["default"].createElement("div", null,
|
|
7083
|
+
"Stance: ",
|
|
7084
|
+
React__default["default"].createElement(ColoredText, { text: realCastCondition.Stance })),
|
|
7085
|
+
React__default["default"].createElement("div", null,
|
|
7086
|
+
"Required Weapon: ",
|
|
7087
|
+
React__default["default"].createElement(ColoredText, { text: realCastCondition.RequiredWeaponType })),
|
|
7088
|
+
React__default["default"].createElement("div", null,
|
|
7089
|
+
"MoveType: ",
|
|
7090
|
+
React__default["default"].createElement(ColoredText, { text: realCastCondition.MoveType }))
|
|
7091
|
+
],
|
|
7092
|
+
};
|
|
7093
|
+
if (realCastCondition.PrevComboIds != null && realCastCondition.PrevComboIds.length > 0) {
|
|
7094
|
+
var subInfoGroup2 = {
|
|
7095
|
+
title: "Prev combo Ids",
|
|
7096
|
+
texts: []
|
|
7097
|
+
};
|
|
7098
|
+
realCastCondition.PrevComboIds.forEach(function (prevComboId) {
|
|
7099
|
+
subInfoGroup2.texts.push(prevComboId);
|
|
7100
|
+
});
|
|
7101
|
+
}
|
|
7102
|
+
if (realCastCondition.SuccessRecycles != null && realCastCondition.SuccessRecycles.length > 0) {
|
|
7103
|
+
var subInfoGroup3 = {
|
|
7104
|
+
title: "SuccessRecycles",
|
|
7105
|
+
texts: []
|
|
7106
|
+
};
|
|
7107
|
+
realCastCondition.SuccessRecycles.forEach(function (recycle) {
|
|
7108
|
+
subInfoGroup3.texts.push("Group: " + recycle.item1 + ", Id: " + recycle.item2);
|
|
7109
|
+
});
|
|
7110
|
+
}
|
|
7111
|
+
if (realCastCondition.FailRecycles != null && realCastCondition.FailRecycles.length > 0) {
|
|
7112
|
+
var subInfoGroup4 = {
|
|
7113
|
+
title: "FailRecycles",
|
|
7114
|
+
texts: []
|
|
7115
|
+
};
|
|
7116
|
+
realCastCondition.FailRecycles.forEach(function (recycle) {
|
|
7117
|
+
subInfoGroup4.texts.push("Group: " + recycle.item1 + ", Id: " + recycle.item2);
|
|
7118
|
+
});
|
|
7119
|
+
}
|
|
7120
|
+
if (realCastCondition.UnnecessaryAcquired) {
|
|
7121
|
+
subInfoGroup.texts.push(React__default["default"].createElement("div", null,
|
|
7122
|
+
React__default["default"].createElement(ColoredText, { text: "UnnecessaryAcquired" })));
|
|
7123
|
+
}
|
|
7124
|
+
if (realCastCondition.NoFlagsAndFilters) {
|
|
7125
|
+
subInfoGroup.texts.push(React__default["default"].createElement("div", null,
|
|
7126
|
+
React__default["default"].createElement(ColoredText, { text: "NoFlagsAndFilters" })));
|
|
7127
|
+
}
|
|
7128
|
+
subInfoGroups.push(subInfoGroup);
|
|
7129
|
+
if (subInfoGroup2 != null)
|
|
7130
|
+
subInfoGroups.push(subInfoGroup2);
|
|
7131
|
+
if (subInfoGroup3 != null)
|
|
7132
|
+
subInfoGroups.push(subInfoGroup3);
|
|
7133
|
+
if (subInfoGroup4 != null)
|
|
7134
|
+
subInfoGroups.push(subInfoGroup4);
|
|
7135
|
+
}
|
|
7136
|
+
function ColoredText(_a) {
|
|
7137
|
+
var text = _a.text;
|
|
7138
|
+
return (React__default["default"].createElement("span", { className: "tooltipArg" }, text));
|
|
7068
7139
|
}
|
|
7069
7140
|
|
|
7070
7141
|
var css_248z$3 = ".tippy-box {\n max-width: none !important;\n background-color: transparent !important;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; }\n .tippy-box:hover {\n box-shadow: rgba(0, 0, 0, 0.8) 0px 20px 60px 0px !important; }\n\n.tippy-content {\n padding: 0 !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ff0084 !important; }\n";
|