bnstooltips 1.8.4 → 1.8.7

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.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
 
@@ -5702,7 +5707,7 @@ var ItemImproveEffectsTooltipWrapper = function (_a) {
5702
5707
  };
5703
5708
 
5704
5709
  function PrevCurNext(_a) {
5705
- var item = _a.item, client = _a.client, region = _a.region, nextItem = _a.nextItem, prevItem = _a.prevItem, steps = _a.steps; _a.allPossibleUpgrades; _a.SetCustomStage; var NavigateTo = _a.NavigateTo;
5710
+ var item = _a.item, client = _a.client, region = _a.region, nextItem = _a.nextItem, prevItem = _a.prevItem, steps = _a.steps, allPossibleUpgrades = _a.allPossibleUpgrades, SetCustomStage = _a.SetCustomStage, NavigateTo = _a.NavigateTo;
5706
5711
  return (React__default["default"].createElement("div", { className: "ItemImproveTooltip_PrevCurNext" },
5707
5712
  React__default["default"].createElement("div", { className: "ItemImproveTooltip_PrevCurNext_container" },
5708
5713
  React__default["default"].createElement("div", { className: "ItemImproveTooltip_PrevCurNext_container_itemChild" }, prevItem != null ?
@@ -5734,7 +5739,12 @@ function PrevCurNext(_a) {
5734
5739
  React__default["default"].createElement("div", { style: { cursor: "default" } },
5735
5740
  React__default["default"].createElement(ItemImproveEffectsTooltipWrapper, { effectsForName: GetUpgradeEffects(item, steps, nextItem) },
5736
5741
  React__default["default"].createElement("span", { style: { fontSize: 16 }, className: "00008130.UI.Label_Green03_12 material-symbols-outlined" }, "help")))
5737
- : null)
5742
+ : null,
5743
+ React__default["default"].createElement(ItemImproveSelectStageTooltipWrapper, { trigger: "click", interactive: true, items: allPossibleUpgrades, onClick: function (item) {
5744
+ SetCustomStage(item);
5745
+ } },
5746
+ React__default["default"].createElement("div", { className: "ItemImproveTooltip_PrevCurNext_container_itemChildExtra_container_arrow" },
5747
+ React__default["default"].createElement("span", { style: { fontSize: 32 }, className: "material-symbols-outlined" }, "keyboard_arrow_down"))))
5738
5748
  : null))));
5739
5749
  }
5740
5750
  function GetUpgradeEffects(item, steps, nextItem) {
@@ -5862,8 +5872,8 @@ function GetAccumulatedUpgradeCost(item, steps) {
5862
5872
  result = item.itemImprove.upgradeOptions;
5863
5873
  }
5864
5874
  else {
5865
- var mainCost = item.itemImprove.upgradeOptions[0].mainItemCost;
5866
- var subCosts = item.itemImprove.upgradeOptions[0].subItemCost;
5875
+ var mainCost = structuredClone(item.itemImprove.upgradeOptions[0].mainItemCost);
5876
+ var subCosts = structuredClone(item.itemImprove.upgradeOptions[0].subItemCost);
5867
5877
  var moneyCost = item.itemImprove.upgradeOptions[0].moneyCost;
5868
5878
  steps.forEach(function (step) {
5869
5879
  var option0 = step.itemImprove.upgradeOptions[0];
@@ -5880,7 +5890,7 @@ function GetAccumulatedUpgradeCost(item, steps) {
5880
5890
  else {
5881
5891
  subCosts.push(mainCost);
5882
5892
  }
5883
- mainCost = option0.mainItemCost;
5893
+ mainCost = structuredClone(option0.mainItemCost);
5884
5894
  }
5885
5895
  moneyCost += option0.moneyCost;
5886
5896
  option0.subItemCost.forEach(function (subItem) {