bnstooltips 1.4.9 → 1.4.10

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
@@ -63,7 +63,7 @@ styleInject(css_248z$6);
63
63
 
64
64
  function TooltipBase(_a) {
65
65
  var title = _a.title, category = _a.subtitle, grade = _a.grade, _b = _a.icon, icon = _b === void 0 ? "" : _b, _c = _a.mainInfos, mainTexts = _c === void 0 ? [] : _c, _d = _a.subInfoGroups, subTexts = _d === void 0 ? [] : _d, id = _a.id, _e = _a.fullHeight, fullHeight = _e === void 0 ? false : _e;
66
- return (React__default["default"].createElement("div", { id: id !== null && id !== void 0 ? id : "", "data-testid": "TooltipBase", className: "TooltipBase_container TooltipBase_border-grade-".concat(grade, " ").concat(fullHeight ? "TooltipBase_containerFullHeight" : "") },
66
+ return (React__default["default"].createElement("div", { "data-contentid": id !== null && id !== void 0 ? id : "", "data-testid": "TooltipBase", className: "TooltipBase_container TooltipBase_border-grade-".concat(grade, " ").concat(fullHeight ? "TooltipBase_containerFullHeight" : "") },
67
67
  (title != null && title != "") ||
68
68
  (category != null && category != "") ? (React__default["default"].createElement("div", { className: "TooltipBase_titlesubtitle" },
69
69
  React__default["default"].createElement("div", { className: "TooltipBase_title" },
@@ -5513,6 +5513,7 @@ function ItemTooltip(_a) {
5513
5513
  var tooltipBaseProps = {
5514
5514
  title: item.name,
5515
5515
  grade: item.grade,
5516
+ id: item.id + "-" + item.level,
5516
5517
  icon: item.icon ? BuildIconPath(item.icon.iconPath) : "",
5517
5518
  subtitle: (_c = (_b = item.categories) === null || _b === void 0 ? void 0 : _b.sort(function (a, b) { return b.index - a.index; })[0].localizedName) !== null && _c !== void 0 ? _c : "",
5518
5519
  mainInfos: [],
@@ -5982,6 +5983,7 @@ function SkillTooltip(_a) {
5982
5983
  var skill = data;
5983
5984
  var tooltipBaseProps = {
5984
5985
  title: skill.Name,
5986
+ id: skill.ID + "-" + skill.Variation,
5985
5987
  grade: 4,
5986
5988
  icon: skill.IconPath ? React__default["default"].createElement(SkillIconWithButton, { skill: skill }) : "",
5987
5989
  subtitle: skill.AdditionalInfo