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.
@@ -14,6 +14,23 @@ export interface Skill {
14
14
  EqualizedPvp: string;
15
15
  Pvp: string;
16
16
  BreakValue: string;
17
+ RealCastCondition: RealCastCondition;
18
+ }
19
+ export interface RealCastCondition {
20
+ Stance: string;
21
+ RequiredWeaponType: string;
22
+ UnnecessaryAcquired: boolean;
23
+ MoveType: string;
24
+ PrevComboIds: number[];
25
+ NoFlagsAndFilters: boolean;
26
+ SuccessRecycles: {
27
+ item1: string;
28
+ item2: number;
29
+ }[];
30
+ FailRecycles: {
31
+ item1: string;
32
+ item2: number;
33
+ }[];
17
34
  }
18
35
  export interface Tooltip {
19
36
  Main1: TooltipItem[];
@@ -2,6 +2,7 @@ import * as api from "../itemapiclient/api";
2
2
  import { ServerRegion } from "./Models";
3
3
  export declare class ItemDownloadClient {
4
4
  private static urlBase;
5
+ private static options;
5
6
  private instance;
6
7
  private patch;
7
8
  region: ServerRegion;
@@ -10,7 +11,7 @@ export declare class ItemDownloadClient {
10
11
  GetModifiedItems(): Promise<api.BnsItemDto[]>;
11
12
  GetItemByString(idlevelString: string): Promise<api.BnsItemDto>;
12
13
  GetItem(id: number, level: number): Promise<api.BnsItemDto>;
13
- GetItemsByCategory(category: string, technicalClassName: string, gradesString: string): Promise<api.BnsItemDto[]>;
14
+ GetItemsByCategory(category: string, technicalClassName: string, gradesString: string, minGs?: string): Promise<api.BnsItemDto[]>;
14
15
  GetItemUpgrades(item: api.BnsItemDto): Promise<api.BnsItemDto[]>;
15
16
  GetItemUpgradesByIdLevel(id: number, level: number): Promise<api.BnsItemDto[]>;
16
17
  }
package/build/index.es.js CHANGED
@@ -1280,7 +1280,7 @@ var ItemDownloadClient = /** @class */ (function () {
1280
1280
  var result;
1281
1281
  return __generator(this, function (_a) {
1282
1282
  switch (_a.label) {
1283
- case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(true, false, this.region, this.patch)];
1283
+ case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(true, false, this.region, this.patch, ItemDownloadClient.options)];
1284
1284
  case 1:
1285
1285
  result = _a.sent();
1286
1286
  return [2 /*return*/, result];
@@ -1293,7 +1293,7 @@ var ItemDownloadClient = /** @class */ (function () {
1293
1293
  var result;
1294
1294
  return __generator(this, function (_a) {
1295
1295
  switch (_a.label) {
1296
- case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(false, true, this.region, this.patch)];
1296
+ case 0: return [4 /*yield*/, this.instance.bnsItemAddedOrModifiedItemsGet(false, true, this.region, this.patch, ItemDownloadClient.options)];
1297
1297
  case 1:
1298
1298
  result = _a.sent();
1299
1299
  return [2 /*return*/, result];
@@ -1306,7 +1306,7 @@ var ItemDownloadClient = /** @class */ (function () {
1306
1306
  var result;
1307
1307
  return __generator(this, function (_a) {
1308
1308
  switch (_a.label) {
1309
- case 0: return [4 /*yield*/, this.instance.bnsItemItemByStringGet(idlevelString, this.region, false, this.patch)];
1309
+ case 0: return [4 /*yield*/, this.instance.bnsItemItemByStringGet(idlevelString, this.region, false, this.patch, ItemDownloadClient.options)];
1310
1310
  case 1:
1311
1311
  result = _a.sent();
1312
1312
  return [2 /*return*/, result];
@@ -1319,7 +1319,7 @@ var ItemDownloadClient = /** @class */ (function () {
1319
1319
  var result;
1320
1320
  return __generator(this, function (_a) {
1321
1321
  switch (_a.label) {
1322
- case 0: return [4 /*yield*/, this.instance.bnsItemItemGet(id, level, this.region, false, this.patch)];
1322
+ case 0: return [4 /*yield*/, this.instance.bnsItemItemGet(id, level, this.region, false, this.patch, ItemDownloadClient.options)];
1323
1323
  case 1:
1324
1324
  result = _a.sent();
1325
1325
  return [2 /*return*/, result];
@@ -1327,12 +1327,12 @@ var ItemDownloadClient = /** @class */ (function () {
1327
1327
  });
1328
1328
  });
1329
1329
  };
1330
- ItemDownloadClient.prototype.GetItemsByCategory = function (category, technicalClassName, gradesString) {
1330
+ ItemDownloadClient.prototype.GetItemsByCategory = function (category, technicalClassName, gradesString, minGs) {
1331
1331
  return __awaiter(this, void 0, void 0, function () {
1332
1332
  var result;
1333
1333
  return __generator(this, function (_a) {
1334
1334
  switch (_a.label) {
1335
- case 0: return [4 /*yield*/, this.instance.bnsItemItemsByCategoryGet(this.region, category, technicalClassName, gradesString)];
1335
+ case 0: return [4 /*yield*/, this.instance.bnsItemItemsByCategoryGet(this.region, category, technicalClassName, gradesString, minGs, this.patch, undefined, ItemDownloadClient.options)];
1336
1336
  case 1:
1337
1337
  result = _a.sent();
1338
1338
  return [2 /*return*/, result];
@@ -1345,7 +1345,7 @@ var ItemDownloadClient = /** @class */ (function () {
1345
1345
  var result;
1346
1346
  return __generator(this, function (_a) {
1347
1347
  switch (_a.label) {
1348
- case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(item.id, item.level, this.region, this.patch)];
1348
+ case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(item.id, item.level, this.region, this.patch, ItemDownloadClient.options)];
1349
1349
  case 1:
1350
1350
  result = _a.sent();
1351
1351
  return [2 /*return*/, result];
@@ -1358,7 +1358,7 @@ var ItemDownloadClient = /** @class */ (function () {
1358
1358
  var result;
1359
1359
  return __generator(this, function (_a) {
1360
1360
  switch (_a.label) {
1361
- case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(id, level, this.region, this.patch)];
1361
+ case 0: return [4 /*yield*/, this.instance.bnsItemAllUpgradesForItemGet(id, level, this.region, this.patch, ItemDownloadClient.options)];
1362
1362
  case 1:
1363
1363
  result = _a.sent();
1364
1364
  return [2 /*return*/, result];
@@ -1367,6 +1367,11 @@ var ItemDownloadClient = /** @class */ (function () {
1367
1367
  });
1368
1368
  };
1369
1369
  ItemDownloadClient.urlBase = "https://bnsitemstoragewebapi.azurewebsites.net";
1370
+ ItemDownloadClient.options = {
1371
+ "headers": {
1372
+ "Referer": "https://yast.vercel.app"
1373
+ }
1374
+ };
1370
1375
  return ItemDownloadClient;
1371
1376
  }());
1372
1377
 
@@ -6953,6 +6958,7 @@ function SkillTooltip(_a) {
6953
6958
  AddStances(tooltipBaseProps.subInfoGroups, skill);
6954
6959
  if (debug) {
6955
6960
  AddIds(tooltipBaseProps.subInfoGroups, skill);
6961
+ AddRealCastConds(tooltipBaseProps.subInfoGroups, skill);
6956
6962
  }
6957
6963
  }
6958
6964
  return React.createElement(TooltipBase, __assign({}, tooltipBaseProps));
@@ -7037,6 +7043,71 @@ function AddIds(subInfoGroups, skill) {
7037
7043
  "Variation: ",
7038
7044
  skill.Variation)],
7039
7045
  });
7046
+ }
7047
+ function AddRealCastConds(subInfoGroups, skill) {
7048
+ var realCastCondition = skill.RealCastCondition;
7049
+ if (realCastCondition == undefined || realCastCondition == null)
7050
+ return;
7051
+ var subInfoGroup = {
7052
+ title: "Real cast conditions",
7053
+ texts: [
7054
+ React.createElement("div", null,
7055
+ "Stance: ",
7056
+ React.createElement(ColoredText, { text: realCastCondition.Stance })),
7057
+ React.createElement("div", null,
7058
+ "Required Weapon: ",
7059
+ React.createElement(ColoredText, { text: realCastCondition.RequiredWeaponType })),
7060
+ React.createElement("div", null,
7061
+ "MoveType: ",
7062
+ React.createElement(ColoredText, { text: realCastCondition.MoveType }))
7063
+ ],
7064
+ };
7065
+ if (realCastCondition.PrevComboIds != null && realCastCondition.PrevComboIds.length > 0) {
7066
+ var subInfoGroup2 = {
7067
+ title: "Prev combo Ids",
7068
+ texts: []
7069
+ };
7070
+ realCastCondition.PrevComboIds.forEach(function (prevComboId) {
7071
+ subInfoGroup2.texts.push(prevComboId);
7072
+ });
7073
+ }
7074
+ if (realCastCondition.SuccessRecycles != null && realCastCondition.SuccessRecycles.length > 0) {
7075
+ var subInfoGroup3 = {
7076
+ title: "SuccessRecycles",
7077
+ texts: []
7078
+ };
7079
+ realCastCondition.SuccessRecycles.forEach(function (recycle) {
7080
+ subInfoGroup3.texts.push("Group: " + recycle.item1 + ", Id: " + recycle.item2);
7081
+ });
7082
+ }
7083
+ if (realCastCondition.FailRecycles != null && realCastCondition.FailRecycles.length > 0) {
7084
+ var subInfoGroup4 = {
7085
+ title: "FailRecycles",
7086
+ texts: []
7087
+ };
7088
+ realCastCondition.FailRecycles.forEach(function (recycle) {
7089
+ subInfoGroup4.texts.push("Group: " + recycle.item1 + ", Id: " + recycle.item2);
7090
+ });
7091
+ }
7092
+ if (realCastCondition.UnnecessaryAcquired) {
7093
+ subInfoGroup.texts.push(React.createElement("div", null,
7094
+ React.createElement(ColoredText, { text: "UnnecessaryAcquired" })));
7095
+ }
7096
+ if (realCastCondition.NoFlagsAndFilters) {
7097
+ subInfoGroup.texts.push(React.createElement("div", null,
7098
+ React.createElement(ColoredText, { text: "NoFlagsAndFilters" })));
7099
+ }
7100
+ subInfoGroups.push(subInfoGroup);
7101
+ if (subInfoGroup2 != null)
7102
+ subInfoGroups.push(subInfoGroup2);
7103
+ if (subInfoGroup3 != null)
7104
+ subInfoGroups.push(subInfoGroup3);
7105
+ if (subInfoGroup4 != null)
7106
+ subInfoGroups.push(subInfoGroup4);
7107
+ }
7108
+ function ColoredText(_a) {
7109
+ var text = _a.text;
7110
+ return (React.createElement("span", { className: "tooltipArg" }, text));
7040
7111
  }
7041
7112
 
7042
7113
  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";