bnstooltips 1.15.0 → 1.15.2

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
@@ -8110,7 +8110,7 @@ function JsonArrayToJsxArray(stringArray) {
8110
8110
  return jsxArray;
8111
8111
  }
8112
8112
 
8113
- var css_248z$4 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818; }\n\n.TooltipBase_bns_downgradeBlue_color {\n color: #28A9F0; }\n\n.SkillTooltip_skillIconContainer {\n width: 60px;\n height: 60px;\n padding: 0;\n float: left;\n position: relative; }\n\n.SkillTooltip_skillIcon {\n width: 60px;\n height: 60px;\n position: relative; }\n\n.SkillTooltip_skillIconCanvas {\n width: 60px;\n height: 60px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n filter: blur(30px);\n opacity: .5; }\n\n.SkillTooltip_buttonIcon {\n position: absolute;\n right: 1px;\n bottom: 1px;\n height: 18px;\n opacity: 0.9; }\n\n.SkillTooltip_buttonIconMouse {\n background-color: rgba(0, 0, 0, 0.8); }\n\n.SkillTooltip_mainText {\n font-weight: 500; }\n\n.SkillTooltip_smallText {\n font-size: 12px; }\n\n.SkillTooltip_subTextMargin {\n margin-bottom: 0.3rem; }\n\n.SkillTooltip_boundaryContainer {\n display: flex;\n width: 100%;\n margin-bottom: 0.5rem;\n line-height: 17px; }\n\n.SkillTooltip_boundary {\n flex: 1;\n flex-basis: 0px;\n min-width: 0;\n display: flex;\n flex-direction: column;\n color: black;\n margin: 0.15rem; }\n\n.SkillTooltip_boundary:first-of-type > .SkillTooltip_boundaryHead {\n border-radius: 3px 0 0 0; }\n\n.SkillTooltip_boundary:last-of-type > .SkillTooltip_boundaryHead {\n border-radius: 0 3px 0 0; }\n\n.SkillTooltip_boundary:first-of-type > .SkillTooltip_boundaryBody {\n border-radius: 0 0 0 3px; }\n\n.SkillTooltip_boundary:last-of-type > .SkillTooltip_boundaryBody {\n border-radius: 0 0 3px 0; }\n\n.SkillTooltip_boundaryHead {\n color: white;\n font-weight: 500;\n font-size: 12px;\n text-overflow: ellipsis;\n overflow: hidden;\n padding: 0.3rem;\n text-align: center;\n flex: 1;\n min-height: 26px;\n background-color: rgba(127, 127, 127, 0.4); }\n\n.SkillTooltip_boundaryBody {\n color: white;\n padding: 0.5rem 0.3rem;\n margin-top: 0.15rem;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 40px;\n flex: 2;\n background-color: rgba(127, 127, 127, 0.4); }\n\n.SkillTooltip_boundaryBodyModifier {\n min-height: 33px !important; }\n\n.SkillTooltip_boundaryHasIcon {\n min-height: 50px !important; }\n\n.SkillTooltip_conditionRow {\n display: flex;\n align-items: center;\n font-size: 12px; }\n\n.SkillTooltip_conditionRow:not(:last-of-type) {\n margin-bottom: 0.1rem; }\n\n.SkillTooltip_conditionIcon {\n width: 20px;\n height: 20px;\n margin-right: 0.33rem; }\n\n.SkillTooltip_conditionIconSmall {\n width: 12px;\n height: 12px;\n margin-right: 0.22rem; }\n\n.tooltipArg {\n color: #46bee1;\n font-weight: 600; }\n\n.target-360 {\n background-image: url(\"./360.png\");\n background-repeat: no-repeat;\n background-position: 50% 60%;\n background-size: auto 64px; }\n\n.target-front-180 {\n background-image: url(\"./180.png\");\n background-repeat: no-repeat;\n background-position: 50% 70%;\n background-size: auto 64px; }\n\n.laser {\n background-image: url(\"./laser.png\");\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: auto 64px; }\n";
8113
+ var css_248z$4 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818; }\n\n.TooltipBase_bns_downgradeBlue_color {\n color: #28A9F0; }\n\n.SkillTooltip_skillIconContainer {\n width: 60px;\n height: 60px;\n padding: 0;\n float: left;\n position: relative; }\n\n.SkillTooltip_skillIcon {\n width: 60px;\n height: 60px;\n position: relative; }\n\n.SkillTooltip_skillIconCanvas {\n width: 60px;\n height: 60px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n filter: blur(30px);\n opacity: .5; }\n\n.SkillTooltip_buttonIcon {\n position: absolute;\n right: 1px;\n bottom: 1px;\n height: 18px;\n opacity: 0.9; }\n\n.SkillTooltip_buttonIconMouse {\n background-color: rgba(0, 0, 0, 0.8); }\n\n.SkillTooltip_mainText {\n font-weight: 500; }\n\n.SkillTooltip_smallText {\n font-size: 12px; }\n\n.SkillTooltip_subTextMargin {\n margin-bottom: 0.3rem; }\n\n.SkillTooltip_boundaryContainer {\n display: flex;\n width: 100%;\n margin-bottom: 0.5rem;\n line-height: 17px; }\n\n.SkillTooltip_boundary {\n flex: 1;\n flex-basis: 0px;\n min-width: 0;\n display: flex;\n flex-direction: column;\n color: black;\n margin: 0.15rem; }\n\n.SkillTooltip_boundary:first-of-type > .SkillTooltip_boundaryHead {\n border-radius: 3px 0 0 0; }\n\n.SkillTooltip_boundary:last-of-type > .SkillTooltip_boundaryHead {\n border-radius: 0 3px 0 0; }\n\n.SkillTooltip_boundary:first-of-type > .SkillTooltip_boundaryBody {\n border-radius: 0 0 0 3px; }\n\n.SkillTooltip_boundary:last-of-type > .SkillTooltip_boundaryBody {\n border-radius: 0 0 3px 0; }\n\n.SkillTooltip_boundaryHead {\n color: white;\n font-weight: 500;\n font-size: 12px;\n text-overflow: ellipsis;\n overflow: hidden;\n padding: 0.3rem;\n text-align: center;\n flex: 1;\n min-height: 26px;\n background-color: rgba(127, 127, 127, 0.4); }\n\n.SkillTooltip_boundaryBody {\n color: white;\n padding: 0.5rem 0.3rem;\n margin-top: 0.15rem;\n text-align: center;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 40px;\n flex: 2;\n background-color: rgba(127, 127, 127, 0.4); }\n\n.SkillTooltip_boundaryBodyModifier {\n min-height: 33px !important; }\n\n.SkillTooltip_boundaryHasIcon {\n min-height: 50px !important; }\n\n.SkillTooltip_conditionRow {\n display: flex;\n align-items: center;\n font-size: 12px; }\n\n.SkillTooltip_conditionRow:not(:last-of-type) {\n margin-bottom: 0.1rem; }\n\n.SkillTooltip_conditionIcon {\n width: 20px;\n height: 20px;\n margin-right: 0.33rem; }\n\n.SkillTooltip_conditionIconSmall {\n width: 12px;\n height: 12px;\n margin-right: 0.22rem; }\n\n.tooltipArg {\n color: #46bee1;\n font-weight: 600; }\n\n.wordbreakall {\n word-break: break-all; }\n\n.wordbreakword {\n word-break: break-word; }\n\n.target-360 {\n background-image: url(\"./360.png\");\n background-repeat: no-repeat;\n background-position: 50% 60%;\n background-size: auto 64px; }\n\n.target-front-180 {\n background-image: url(\"./180.png\");\n background-repeat: no-repeat;\n background-position: 50% 70%;\n background-size: auto 64px; }\n\n.laser {\n background-image: url(\"./laser.png\");\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: auto 64px; }\n";
8114
8114
  styleInject(css_248z$4);
8115
8115
 
8116
8116
  function getButtonIconPath(button) {
@@ -8427,20 +8427,31 @@ function AddRealEffects(subInfoGroups, skill) {
8427
8427
  for (var key in realEffects.Effects) {
8428
8428
  var realEffect = realEffects.Effects[key];
8429
8429
  var subInfoGroup = {
8430
- title: "Effect: " + realEffect.Alias,
8430
+ title: "Effect",
8431
8431
  texts: []
8432
8432
  };
8433
- subInfoGroup.texts.push(React.createElement("div", null,
8434
- "Id: ",
8435
- React.createElement(BlueColoredText, { text: realEffect.Id.toString() })), React.createElement("div", null,
8436
- "Alias: ",
8437
- React.createElement(BlueColoredText, { text: realEffect.Alias })), React.createElement("div", null,
8438
- "Name: ",
8439
- React.createElement(BlueColoredText, { text: realEffect.Name })), React.createElement("div", null,
8440
- "Description: ",
8441
- React.createElement("span", { dangerouslySetInnerHTML: { __html: realEffect.Description } })), React.createElement("div", null,
8442
- "Effect type: ",
8443
- React.createElement(BlueColoredText, { text: realEffect.EffectType })));
8433
+ var texts = [
8434
+ React.createElement("div", null,
8435
+ "Id: ",
8436
+ React.createElement(BlueColoredText, { text: realEffect.Id.toString() })),
8437
+ React.createElement("div", null,
8438
+ "Alias: ",
8439
+ React.createElement(BlueColoredText, { text: realEffect.Alias, customClasses: "wordbreakall" })),
8440
+ React.createElement("div", null,
8441
+ "Effect type: ",
8442
+ React.createElement(BlueColoredText, { text: realEffect.EffectType }))
8443
+ ];
8444
+ if (realEffect.Name != null && realEffect.Name != "") {
8445
+ texts.push(React.createElement("div", null,
8446
+ "Name: ",
8447
+ React.createElement(BlueColoredText, { text: realEffect.Name })));
8448
+ }
8449
+ if (realEffect.Description != null && realEffect.Description != "") {
8450
+ texts.push(React.createElement("div", null,
8451
+ "Description: ",
8452
+ React.createElement(BlueColoredTextDangerous, { text: realEffect.Description, customClasses: "wordbreakword" })));
8453
+ }
8454
+ subInfoGroup.texts = texts;
8444
8455
  subInfoGroups.push(subInfoGroup);
8445
8456
  }
8446
8457
  }
@@ -8449,7 +8460,7 @@ function AddRealCastConds(subInfoGroups, skill) {
8449
8460
  if (realCastCondition == undefined || realCastCondition == null)
8450
8461
  return;
8451
8462
  var subInfoGroup = {
8452
- title: "Real cast conditions",
8463
+ title: "Cast conditions",
8453
8464
  texts: [],
8454
8465
  };
8455
8466
  if (realCastCondition.Id != null) {
@@ -8523,9 +8534,13 @@ function AddRealCastConds(subInfoGroups, skill) {
8523
8534
  if (subInfoGroup4 != null)
8524
8535
  subInfoGroups.push(subInfoGroup4);
8525
8536
  }
8537
+ function BlueColoredTextDangerous(_a) {
8538
+ var text = _a.text, _b = _a.customClasses, customClasses = _b === void 0 ? "" : _b;
8539
+ return (React.createElement("span", { className: "tooltipArg " + customClasses, dangerouslySetInnerHTML: { __html: text } }));
8540
+ }
8526
8541
  function BlueColoredText(_a) {
8527
- var text = _a.text;
8528
- return (React.createElement("span", { className: "tooltipArg" }, text));
8542
+ var text = _a.text, _b = _a.customClasses, customClasses = _b === void 0 ? "" : _b;
8543
+ return (React.createElement("span", { className: "tooltipArg " + customClasses }, text));
8529
8544
  }
8530
8545
  function RedColoredText(_a) {
8531
8546
  var text = _a.text;
@@ -8555,7 +8570,7 @@ var SkillTooltipWrapper = function (_a) {
8555
8570
  }, []);
8556
8571
  return (React.createElement(React.Fragment, null,
8557
8572
  children,
8558
- childRef ? (React.createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, placement: placement, animation: "fade", interactive: interactive, content: React.createElement(SkillTooltip, { data: data, debug: debug }), theme: "grade" + 4, reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
8573
+ childRef ? (React.createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && (!interactive && !debug), appendTo: document.body, placement: placement, animation: "fade", interactive: interactive || debug, content: React.createElement(SkillTooltip, { data: data, debug: debug }), theme: "grade" + 4, reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
8559
8574
  };
8560
8575
 
8561
8576
  var ServerRegion;