bnstooltips 1.18.9 → 1.18.11

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 CHANGED
@@ -519,6 +519,69 @@ var BnsItemApiClient = /** @class */ (function (_super) {
519
519
  }
520
520
  return Promise.resolve(null);
521
521
  };
522
+ /**
523
+ * @param patch (optional)
524
+ * @param v (optional)
525
+ * @return Success
526
+ */
527
+ BnsItemApiClient.prototype.yastItemsNeo = function (region, itemType, technicalJobName, patch, v) {
528
+ var _this = this;
529
+ var url_ = this.baseUrl + "/BnsItem/YastItemsNeo?";
530
+ if (region === undefined || region === null)
531
+ throw new Error("The parameter 'region' must be defined and cannot be null.");
532
+ else
533
+ url_ += "region=" + encodeURIComponent("" + region) + "&";
534
+ if (itemType === undefined || itemType === null)
535
+ throw new Error("The parameter 'itemType' must be defined and cannot be null.");
536
+ else
537
+ url_ += "itemType=" + encodeURIComponent("" + itemType) + "&";
538
+ if (technicalJobName === undefined || technicalJobName === null)
539
+ throw new Error("The parameter 'technicalJobName' must be defined and cannot be null.");
540
+ else
541
+ url_ += "technicalJobName=" + encodeURIComponent("" + technicalJobName) + "&";
542
+ if (patch === null)
543
+ throw new Error("The parameter 'patch' cannot be null.");
544
+ else if (patch !== undefined)
545
+ url_ += "patch=" + encodeURIComponent("" + patch) + "&";
546
+ if (v === null)
547
+ throw new Error("The parameter 'v' cannot be null.");
548
+ else if (v !== undefined)
549
+ url_ += "v=" + encodeURIComponent("" + v) + "&";
550
+ url_ = url_.replace(/[?&]$/, "");
551
+ var options_ = {
552
+ method: "GET",
553
+ headers: {
554
+ "Accept": "application/json"
555
+ }
556
+ };
557
+ return this.transformOptions(options_).then(function (transformedOptions_) {
558
+ return _this.http.fetch(url_, transformedOptions_);
559
+ }).then(function (_response) {
560
+ return _this.processYastItemsNeo(_response);
561
+ });
562
+ };
563
+ BnsItemApiClient.prototype.processYastItemsNeo = function (response) {
564
+ var _this = this;
565
+ var status = response.status;
566
+ var _headers = {};
567
+ if (response.headers && response.headers.forEach) {
568
+ response.headers.forEach(function (v, k) { return _headers[k] = v; });
569
+ }
570
+ if (status === 200) {
571
+ return response.text().then(function (_responseText) {
572
+ var result200 = null;
573
+ var resultData200 = _responseText === "" ? null : JSON.parse(_responseText, _this.jsonParseReviver);
574
+ result200 = ItemsResponse.fromJS(resultData200);
575
+ return result200;
576
+ });
577
+ }
578
+ else if (status !== 200 && status !== 204) {
579
+ return response.text().then(function (_responseText) {
580
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
581
+ });
582
+ }
583
+ return Promise.resolve(null);
584
+ };
522
585
  /**
523
586
  * @param patch (optional)
524
587
  * @param v (optional)
@@ -7222,7 +7285,13 @@ function ItemImproveEffectsTooltip(_a) {
7222
7285
  var subGroupTexts = [];
7223
7286
  itemName.effects.forEach(function (effect) {
7224
7287
  if (effect.isEffect) {
7225
- subGroupTexts.push(React.createElement("div", { className: "ItemImproveEffectsTooltip_entry", dangerouslySetInnerHTML: { __html: effect.effectDescription } }));
7288
+ subGroupTexts.push(React.createElement(React.Fragment, null,
7289
+ React.createElement("div", { className: "ItemImproveEffectsTooltip_entry", dangerouslySetInnerHTML: { __html: effect.effectDescription } }),
7290
+ effect.additionalDescription && effect.additionalDescription != "" ?
7291
+ React.createElement(React.Fragment, null,
7292
+ "\u00A0",
7293
+ React.createElement("span", { dangerouslySetInnerHTML: { __html: effect.additionalDescription.trim() } }))
7294
+ : null));
7226
7295
  }
7227
7296
  else {
7228
7297
  if (effect.statName.includes("-min"))
@@ -7238,7 +7307,9 @@ function ItemImproveEffectsTooltip(_a) {
7238
7307
  "\u00A0",
7239
7308
  React.createElement("span", { dangerouslySetInnerHTML: { __html: ReplaceBossAndPvpAp(effect.statName).replace("Max.", "").trim() } }),
7240
7309
  effect.additionalDescription && effect.additionalDescription != "" ?
7241
- React.createElement("span", { dangerouslySetInnerHTML: { __html: effect.additionalDescription } })
7310
+ React.createElement(React.Fragment, null,
7311
+ "\u00A0",
7312
+ React.createElement("span", { dangerouslySetInnerHTML: { __html: effect.additionalDescription.trim() } }))
7242
7313
  : null));
7243
7314
  }
7244
7315
  });