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 +32 -17
- package/build/index.es.js.map +1 -1
- package/build/index.js +32 -17
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -8118,7 +8118,7 @@ function JsonArrayToJsxArray(stringArray) {
|
|
|
8118
8118
|
return jsxArray;
|
|
8119
8119
|
}
|
|
8120
8120
|
|
|
8121
|
-
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";
|
|
8121
|
+
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";
|
|
8122
8122
|
styleInject(css_248z$4);
|
|
8123
8123
|
|
|
8124
8124
|
function getButtonIconPath(button) {
|
|
@@ -8435,20 +8435,31 @@ function AddRealEffects(subInfoGroups, skill) {
|
|
|
8435
8435
|
for (var key in realEffects.Effects) {
|
|
8436
8436
|
var realEffect = realEffects.Effects[key];
|
|
8437
8437
|
var subInfoGroup = {
|
|
8438
|
-
title: "Effect
|
|
8438
|
+
title: "Effect",
|
|
8439
8439
|
texts: []
|
|
8440
8440
|
};
|
|
8441
|
-
|
|
8442
|
-
"
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
React__default["default"].createElement(
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
"
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8441
|
+
var texts = [
|
|
8442
|
+
React__default["default"].createElement("div", null,
|
|
8443
|
+
"Id: ",
|
|
8444
|
+
React__default["default"].createElement(BlueColoredText, { text: realEffect.Id.toString() })),
|
|
8445
|
+
React__default["default"].createElement("div", null,
|
|
8446
|
+
"Alias: ",
|
|
8447
|
+
React__default["default"].createElement(BlueColoredText, { text: realEffect.Alias, customClasses: "wordbreakall" })),
|
|
8448
|
+
React__default["default"].createElement("div", null,
|
|
8449
|
+
"Effect type: ",
|
|
8450
|
+
React__default["default"].createElement(BlueColoredText, { text: realEffect.EffectType }))
|
|
8451
|
+
];
|
|
8452
|
+
if (realEffect.Name != null && realEffect.Name != "") {
|
|
8453
|
+
texts.push(React__default["default"].createElement("div", null,
|
|
8454
|
+
"Name: ",
|
|
8455
|
+
React__default["default"].createElement(BlueColoredText, { text: realEffect.Name })));
|
|
8456
|
+
}
|
|
8457
|
+
if (realEffect.Description != null && realEffect.Description != "") {
|
|
8458
|
+
texts.push(React__default["default"].createElement("div", null,
|
|
8459
|
+
"Description: ",
|
|
8460
|
+
React__default["default"].createElement(BlueColoredTextDangerous, { text: realEffect.Description, customClasses: "wordbreakword" })));
|
|
8461
|
+
}
|
|
8462
|
+
subInfoGroup.texts = texts;
|
|
8452
8463
|
subInfoGroups.push(subInfoGroup);
|
|
8453
8464
|
}
|
|
8454
8465
|
}
|
|
@@ -8457,7 +8468,7 @@ function AddRealCastConds(subInfoGroups, skill) {
|
|
|
8457
8468
|
if (realCastCondition == undefined || realCastCondition == null)
|
|
8458
8469
|
return;
|
|
8459
8470
|
var subInfoGroup = {
|
|
8460
|
-
title: "
|
|
8471
|
+
title: "Cast conditions",
|
|
8461
8472
|
texts: [],
|
|
8462
8473
|
};
|
|
8463
8474
|
if (realCastCondition.Id != null) {
|
|
@@ -8531,9 +8542,13 @@ function AddRealCastConds(subInfoGroups, skill) {
|
|
|
8531
8542
|
if (subInfoGroup4 != null)
|
|
8532
8543
|
subInfoGroups.push(subInfoGroup4);
|
|
8533
8544
|
}
|
|
8545
|
+
function BlueColoredTextDangerous(_a) {
|
|
8546
|
+
var text = _a.text, _b = _a.customClasses, customClasses = _b === void 0 ? "" : _b;
|
|
8547
|
+
return (React__default["default"].createElement("span", { className: "tooltipArg " + customClasses, dangerouslySetInnerHTML: { __html: text } }));
|
|
8548
|
+
}
|
|
8534
8549
|
function BlueColoredText(_a) {
|
|
8535
|
-
var text = _a.text;
|
|
8536
|
-
return (React__default["default"].createElement("span", { className: "tooltipArg" }, text));
|
|
8550
|
+
var text = _a.text, _b = _a.customClasses, customClasses = _b === void 0 ? "" : _b;
|
|
8551
|
+
return (React__default["default"].createElement("span", { className: "tooltipArg " + customClasses }, text));
|
|
8537
8552
|
}
|
|
8538
8553
|
function RedColoredText(_a) {
|
|
8539
8554
|
var text = _a.text;
|
|
@@ -8563,7 +8578,7 @@ var SkillTooltipWrapper = function (_a) {
|
|
|
8563
8578
|
}, []);
|
|
8564
8579
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
8565
8580
|
children,
|
|
8566
|
-
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" } }))));
|
|
8581
|
+
childRef ? (React__default["default"].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__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" } }))));
|
|
8567
8582
|
};
|
|
8568
8583
|
|
|
8569
8584
|
exports.ServerRegion = void 0;
|