bnstooltips 1.10.2 → 1.11.1

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
@@ -7084,6 +7084,11 @@ function AddIds(subInfoGroups, skill) {
7084
7084
  "Gcd group: ",
7085
7085
  React__default["default"].createElement(BlueColoredText, { text: skill.GcdGroup.toString() })));
7086
7086
  }
7087
+ if (skill.GcdDuration != null) {
7088
+ subInfoGroup.texts.push(React__default["default"].createElement("div", null,
7089
+ "Gcd duration: ",
7090
+ React__default["default"].createElement(BlueColoredText, { text: skill.GcdDuration.toString() })));
7091
+ }
7087
7092
  if (skill.CdRecycle != null) {
7088
7093
  subInfoGroup.texts.push(React__default["default"].createElement("div", null,
7089
7094
  "Cd group: ",
@@ -7092,6 +7097,11 @@ function AddIds(subInfoGroups, skill) {
7092
7097
  "Cd id: ",
7093
7098
  React__default["default"].createElement(BlueColoredText, { text: skill.CdRecycle.Item2.toString() })));
7094
7099
  }
7100
+ if (skill.RealCooldown != null) {
7101
+ subInfoGroup.texts.push(React__default["default"].createElement("div", null,
7102
+ "Real cooldown: ",
7103
+ React__default["default"].createElement(BlueColoredText, { text: skill.RealCooldown.toString() })));
7104
+ }
7095
7105
  subInfoGroups.push(subInfoGroup);
7096
7106
  }
7097
7107
  function AddRealCastConds(subInfoGroups, skill) {
@@ -7190,9 +7200,9 @@ var css_248z$3 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818; }\n\n.T
7190
7200
  styleInject(css_248z$3);
7191
7201
 
7192
7202
  var SkillTooltipWrapper = function (_a) {
7193
- var data = _a.data, children = _a.children, _b = _a.interactive, interactive = _b === void 0 ? false : _b, _c = _a.placement, placement = _c === void 0 ? "right" : _c, _d = _a.followCursor, followCursor$1 = _d === void 0 ? false : _d, _e = _a.trigger, trigger = _e === void 0 ? "mouseenter focus" : _e, _f = _a.showArrow, showArrow = _f === void 0 ? true : _f;
7203
+ var data = _a.data, children = _a.children, _b = _a.interactive, interactive = _b === void 0 ? false : _b, _c = _a.placement, placement = _c === void 0 ? "right" : _c, _d = _a.followCursor, followCursor$1 = _d === void 0 ? false : _d, _e = _a.trigger, trigger = _e === void 0 ? "mouseenter focus" : _e, _f = _a.showArrow, showArrow = _f === void 0 ? true : _f, _g = _a.debug, debug = _g === void 0 ? false : _g;
7194
7204
  var spanRef = React.useRef(null);
7195
- var _g = React.useState(null), childRef = _g[0], setChildRef = _g[1];
7205
+ var _h = React.useState(null), childRef = _h[0], setChildRef = _h[1];
7196
7206
  /**
7197
7207
  * Mount the temporary span element.
7198
7208
  * retrieve and store the target element's reference.
@@ -7205,7 +7215,7 @@ var SkillTooltipWrapper = function (_a) {
7205
7215
  }, []);
7206
7216
  return (React__default["default"].createElement(React__default["default"].Fragment, null,
7207
7217
  children,
7208
- childRef ? (React__default["default"].createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, placement: placement, animation: "fade", interactive: interactive, content: React__default["default"].createElement(SkillTooltip, { data: data, debug: false }), theme: "grade" + 4, reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
7218
+ childRef ? (React__default["default"].createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, placement: placement, animation: "fade", interactive: interactive, content: React__default["default"].createElement(SkillTooltip, { data: data, debug: debug }), theme: "grade" + 4, reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
7209
7219
  };
7210
7220
 
7211
7221
  exports.ServerRegion = void 0;