bnstooltips 1.15.0 → 1.15.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.es.js CHANGED
@@ -8430,17 +8430,28 @@ function AddRealEffects(subInfoGroups, skill) {
8430
8430
  title: "Effect: " + realEffect.Alias,
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 })),
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 })));
8453
+ }
8454
+ subInfoGroup.texts = texts;
8444
8455
  subInfoGroups.push(subInfoGroup);
8445
8456
  }
8446
8457
  }
@@ -8523,6 +8534,10 @@ 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;
8539
+ return (React.createElement("span", { className: "tooltipArg", dangerouslySetInnerHTML: { __html: text } }));
8540
+ }
8526
8541
  function BlueColoredText(_a) {
8527
8542
  var text = _a.text;
8528
8543
  return (React.createElement("span", { className: "tooltipArg" }, 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;