bnstooltips 2.0.0 → 2.0.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/Utilities/Models.d.ts +6 -0
- package/build/index.es.js +100 -80
- package/build/index.es.js.map +1 -1
- package/build/index.js +100 -80
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -5641,57 +5641,6 @@ var TooltipWrapperSettings = /** @class */ (function () {
|
|
|
5641
5641
|
var css_248z$3 = ".tippy-box {\n max-width: none !important;\n background-color: transparent !important;\n box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;\n transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important; }\n .tippy-box:hover {\n box-shadow: black 0px 20px 60px 0px !important; }\n\n.tippy-content {\n padding: 0 !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade1\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #6c6c6c !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade2\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ffffff !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade3\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #58ff77 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade4\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #46bee1 !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade5\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #d739ff !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade6\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #f1b248 !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade7\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ff770a !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"bottom\"]\n.tippy-arrow::before {\n border-bottom-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"top\"]\n.tippy-arrow::before {\n border-top-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"left\"]\n.tippy-arrow::before {\n border-left-color: #ff0084 !important; }\n\n.tippy-box[data-theme~=\"grade8\"][data-placement^=\"right\"]\n.tippy-arrow::before {\n border-right-color: #ff0084 !important; }\n";
|
|
5642
5642
|
styleInject(css_248z$3);
|
|
5643
5643
|
|
|
5644
|
-
exports.ServerRegion = void 0;
|
|
5645
|
-
(function (ServerRegion) {
|
|
5646
|
-
ServerRegion["EUNA"] = "EUNA";
|
|
5647
|
-
ServerRegion["Korea"] = "Korea";
|
|
5648
|
-
ServerRegion["KoreaTest"] = "KoreaTest";
|
|
5649
|
-
})(exports.ServerRegion || (exports.ServerRegion = {}));
|
|
5650
|
-
var TooltipSettingsBase = /** @class */ (function () {
|
|
5651
|
-
function TooltipSettingsBase(offline) {
|
|
5652
|
-
if (offline === void 0) { offline = false; }
|
|
5653
|
-
this.debug = false;
|
|
5654
|
-
this.fullHeight = false;
|
|
5655
|
-
this.offline = offline;
|
|
5656
|
-
}
|
|
5657
|
-
return TooltipSettingsBase;
|
|
5658
|
-
}());
|
|
5659
|
-
var TooltipWithNetworkSettings = /** @class */ (function (_super) {
|
|
5660
|
-
__extends(TooltipWithNetworkSettings, _super);
|
|
5661
|
-
function TooltipWithNetworkSettings(region, client, offline) {
|
|
5662
|
-
if (offline === void 0) { offline = false; }
|
|
5663
|
-
var _this = this;
|
|
5664
|
-
var l_offline = offline;
|
|
5665
|
-
if (region == null)
|
|
5666
|
-
l_offline = true;
|
|
5667
|
-
_this = _super.call(this, l_offline) || this;
|
|
5668
|
-
_this.region = region;
|
|
5669
|
-
_this.client = client;
|
|
5670
|
-
return _this;
|
|
5671
|
-
}
|
|
5672
|
-
return TooltipWithNetworkSettings;
|
|
5673
|
-
}(TooltipSettingsBase));
|
|
5674
|
-
|
|
5675
|
-
var ItemTooltipSettings = /** @class */ (function (_super) {
|
|
5676
|
-
__extends(ItemTooltipSettings, _super);
|
|
5677
|
-
function ItemTooltipSettings(data, region, client, offline) {
|
|
5678
|
-
var _this = _super.call(this, region, client, offline) || this;
|
|
5679
|
-
_this.data = data;
|
|
5680
|
-
return _this;
|
|
5681
|
-
}
|
|
5682
|
-
return ItemTooltipSettings;
|
|
5683
|
-
}(TooltipWithNetworkSettings));
|
|
5684
|
-
|
|
5685
|
-
var SkillTooltipSettings = /** @class */ (function (_super) {
|
|
5686
|
-
__extends(SkillTooltipSettings, _super);
|
|
5687
|
-
function SkillTooltipSettings(data) {
|
|
5688
|
-
var _this = _super.call(this) || this;
|
|
5689
|
-
_this.data = data;
|
|
5690
|
-
return _this;
|
|
5691
|
-
}
|
|
5692
|
-
return SkillTooltipSettings;
|
|
5693
|
-
}(TooltipSettingsBase));
|
|
5694
|
-
|
|
5695
5644
|
var css_248z$2 = ".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\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";
|
|
5696
5645
|
styleInject(css_248z$2);
|
|
5697
5646
|
|
|
@@ -5970,18 +5919,6 @@ function AddIds(subInfoGroups, skill) {
|
|
|
5970
5919
|
});
|
|
5971
5920
|
}
|
|
5972
5921
|
|
|
5973
|
-
var NpcTooltipSettings = /** @class */ (function (_super) {
|
|
5974
|
-
__extends(NpcTooltipSettings, _super);
|
|
5975
|
-
function NpcTooltipSettings(npc, region, grade, client, offline) {
|
|
5976
|
-
if (grade === void 0) { grade = 4; }
|
|
5977
|
-
var _this = _super.call(this, region, client, offline) || this;
|
|
5978
|
-
_this.npc = npc;
|
|
5979
|
-
_this.grade = grade;
|
|
5980
|
-
return _this;
|
|
5981
|
-
}
|
|
5982
|
-
return NpcTooltipSettings;
|
|
5983
|
-
}(TooltipWithNetworkSettings));
|
|
5984
|
-
|
|
5985
5922
|
var css_248z$1 = ".NpcTooltip_toggleBarContainer {\n display: flex; }\n\n.NpcTooltip_toggleButton {\n border: none;\n padding: 0.33rem;\n margin: 0 0.1rem;\n border-radius: 0;\n background-color: rgba(233, 233, 233, 0.1);\n color: #fff;\n opacity: 0.8;\n cursor: pointer;\n transition: background-color 0.1s; }\n .NpcTooltip_toggleButton:hover {\n background-color: rgba(255, 255, 255, 0.2);\n opacity: 1; }\n .NpcTooltip_toggleButton-active {\n background-color: rgba(255, 255, 255, 0.3) !important;\n color: #fff;\n opacity: 1; }\n .NpcTooltip_toggleButton img {\n width: 32px;\n height: 32px; }\n\n.NpcTooltip_storeEntry {\n display: flex;\n align-items: stretch;\n background-color: rgba(233, 233, 233, 0.1);\n padding: 0.33rem;\n font-size: 14px; }\n .NpcTooltip_storeEntry:not(:last-child) {\n margin-bottom: 0.2rem; }\n\n.NpcTooltip_storeEntryItemNameLimit {\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center; }\n\n.NpcTooltip_storeEntryItemLimit {\n font-size: 12px; }\n\n.NpcTooltip_storeEntryItemName {\n flex: 1;\n display: flex;\n align-items: center; }\n\n.NpcTooltip_storeEntryItemIconName {\n display: flex;\n align-items: center; }\n .NpcTooltip_storeEntryItemIconName img {\n width: 48px;\n height: 48px;\n margin-right: 0.33rem; }\n\n.NpcTooltip_itemBuyPriceEntriesContainer {\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: flex-end;\n justify-content: center;\n padding-left: 2rem; }\n\n.NpcTooltip_itemBuyPriceEntries {\n display: flex; }\n .NpcTooltip_itemBuyPriceEntries-moneyMargin {\n margin-bottom: 0.2rem; }\n\n.NpcTooltip_itemBuyPriceEntry:not(:first-child) {\n margin-left: 0.33rem; }\n\n.NpcTooltip_itemBuyPriceEntryContainer {\n position: relative;\n height: 32px; }\n .NpcTooltip_itemBuyPriceEntryContainer img {\n width: 32px;\n height: 32px; }\n .NpcTooltip_itemBuyPriceEntryContainer-shadow {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n box-shadow: inset 0 0 2px 0px #000000; }\n\n.NpcTooltip_itemBuyPriceEntryCount {\n position: absolute;\n bottom: 0;\n left: 0;\n color: #ffffff;\n background-color: rgba(0, 0, 0, 0.4);\n width: 32px;\n line-height: 12px;\n text-align: center; }\n\n.NpcTooltip_moneyContainer {\n display: flex;\n align-items: center;\n justify-content: flex-end; }\n .NpcTooltip_moneyContainer > span {\n display: flex;\n align-items: center; }\n .NpcTooltip_moneyContainer > span:not(:first-child) {\n margin-left: 0.1rem; }\n .NpcTooltip_moneyContainer > span > img {\n width: 16px;\n height: 16px; }\n";
|
|
5986
5923
|
styleInject(css_248z$1);
|
|
5987
5924
|
|
|
@@ -5996,6 +5933,54 @@ function StoreToggleBar(_a) {
|
|
|
5996
5933
|
return (React__default["default"].createElement("div", { className: "NpcTooltip_toggleBarContainer" }, stores.map(function (store, i) { return (React__default["default"].createElement(StoreToggle, { key: i, store: store, isActive: activeTab === i, setActive: function () { return setActiveTab(i); } })); })));
|
|
5997
5934
|
}
|
|
5998
5935
|
|
|
5936
|
+
exports.ServerRegion = void 0;
|
|
5937
|
+
(function (ServerRegion) {
|
|
5938
|
+
ServerRegion["EUNA"] = "EUNA";
|
|
5939
|
+
ServerRegion["Korea"] = "Korea";
|
|
5940
|
+
ServerRegion["KoreaTest"] = "KoreaTest";
|
|
5941
|
+
})(exports.ServerRegion || (exports.ServerRegion = {}));
|
|
5942
|
+
var TooltipType;
|
|
5943
|
+
(function (TooltipType) {
|
|
5944
|
+
TooltipType[TooltipType["Item"] = 0] = "Item";
|
|
5945
|
+
TooltipType[TooltipType["Skill"] = 1] = "Skill";
|
|
5946
|
+
TooltipType[TooltipType["Npc"] = 2] = "Npc";
|
|
5947
|
+
})(TooltipType || (TooltipType = {}));
|
|
5948
|
+
var TooltipSettingsBase = /** @class */ (function () {
|
|
5949
|
+
function TooltipSettingsBase(offline) {
|
|
5950
|
+
if (offline === void 0) { offline = false; }
|
|
5951
|
+
this.debug = false;
|
|
5952
|
+
this.fullHeight = false;
|
|
5953
|
+
this.offline = offline;
|
|
5954
|
+
}
|
|
5955
|
+
return TooltipSettingsBase;
|
|
5956
|
+
}());
|
|
5957
|
+
var TooltipWithNetworkSettings = /** @class */ (function (_super) {
|
|
5958
|
+
__extends(TooltipWithNetworkSettings, _super);
|
|
5959
|
+
function TooltipWithNetworkSettings(region, client, offline) {
|
|
5960
|
+
if (offline === void 0) { offline = false; }
|
|
5961
|
+
var _this = this;
|
|
5962
|
+
var l_offline = offline;
|
|
5963
|
+
if (region == null)
|
|
5964
|
+
l_offline = true;
|
|
5965
|
+
_this = _super.call(this, l_offline) || this;
|
|
5966
|
+
_this.region = region;
|
|
5967
|
+
_this.client = client;
|
|
5968
|
+
return _this;
|
|
5969
|
+
}
|
|
5970
|
+
return TooltipWithNetworkSettings;
|
|
5971
|
+
}(TooltipSettingsBase));
|
|
5972
|
+
|
|
5973
|
+
var ItemTooltipSettings = /** @class */ (function (_super) {
|
|
5974
|
+
__extends(ItemTooltipSettings, _super);
|
|
5975
|
+
function ItemTooltipSettings(data, region, client, offline) {
|
|
5976
|
+
var _this = _super.call(this, region, client, offline) || this;
|
|
5977
|
+
_this.data = data;
|
|
5978
|
+
_this.type = TooltipType.Item;
|
|
5979
|
+
return _this;
|
|
5980
|
+
}
|
|
5981
|
+
return ItemTooltipSettings;
|
|
5982
|
+
}(TooltipWithNetworkSettings));
|
|
5983
|
+
|
|
5999
5984
|
var BuyLimitReset;
|
|
6000
5985
|
(function (BuyLimitReset) {
|
|
6001
5986
|
BuyLimitReset[BuyLimitReset["Day"] = 0] = "Day";
|
|
@@ -6196,7 +6181,6 @@ function AddStores(subInfoGroups, activeTab, client, Stores) {
|
|
|
6196
6181
|
}
|
|
6197
6182
|
|
|
6198
6183
|
function TooltipWrapper(_a) {
|
|
6199
|
-
var _b;
|
|
6200
6184
|
var settings = _a.settings, tooltipSettings = _a.tooltipSettings, children = _a.children, jobstyleOverride = _a.jobstyleOverride;
|
|
6201
6185
|
if (settings == undefined) {
|
|
6202
6186
|
settings = new TooltipWrapperSettings();
|
|
@@ -6204,7 +6188,7 @@ function TooltipWrapper(_a) {
|
|
|
6204
6188
|
if (settings == null || tooltipSettings == null)
|
|
6205
6189
|
return null;
|
|
6206
6190
|
var spanRef = React.useRef(null);
|
|
6207
|
-
var
|
|
6191
|
+
var _b = React.useState(null), childRef = _b[0], setChildRef = _b[1];
|
|
6208
6192
|
/**
|
|
6209
6193
|
* Mount the temporary span element.
|
|
6210
6194
|
* retrieve and store the target element's reference.
|
|
@@ -6215,23 +6199,35 @@ function TooltipWrapper(_a) {
|
|
|
6215
6199
|
}
|
|
6216
6200
|
return function () { return setChildRef(null); };
|
|
6217
6201
|
}, []);
|
|
6218
|
-
var
|
|
6219
|
-
var grade =
|
|
6220
|
-
var content =
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6202
|
+
var _c = React.useState(true), isOffline = _c[0], setIsOffline = _c[1];
|
|
6203
|
+
var _d = React.useState(4), grade = _d[0], setGrade = _d[1];
|
|
6204
|
+
var _e = React.useState(null), content = _e[0], setContent = _e[1];
|
|
6205
|
+
React.useEffect(function () {
|
|
6206
|
+
var _a;
|
|
6207
|
+
if (tooltipSettings.type == TooltipType.Item) {
|
|
6208
|
+
setContent(React__default["default"].createElement(ItemTooltip, { jobstyleOverride: jobstyleOverride, settings: tooltipSettings }));
|
|
6209
|
+
setGrade(tooltipSettings.data.grade);
|
|
6210
|
+
}
|
|
6211
|
+
else if (tooltipSettings.type == TooltipType.Skill) {
|
|
6212
|
+
setContent(React__default["default"].createElement(SkillTooltip, { settings: tooltipSettings }));
|
|
6213
|
+
setGrade(4);
|
|
6214
|
+
}
|
|
6215
|
+
else if (tooltipSettings.type == TooltipType.Npc) {
|
|
6216
|
+
setContent(React__default["default"].createElement(NpcTooltip, { settings: tooltipSettings }));
|
|
6217
|
+
setGrade((_a = tooltipSettings.grade) !== null && _a !== void 0 ? _a : 4);
|
|
6218
|
+
}
|
|
6219
|
+
}, [tooltipSettings]);
|
|
6220
|
+
React.useEffect(function () {
|
|
6221
|
+
if (content != null)
|
|
6222
|
+
setContent(function (prev) {
|
|
6223
|
+
var newSettings = JSON.parse(JSON.stringify(tooltipSettings));
|
|
6224
|
+
newSettings.offline = isOffline;
|
|
6225
|
+
return React__default["default"].cloneElement(prev, { tooltipSettings: newSettings });
|
|
6226
|
+
});
|
|
6227
|
+
}, [isOffline]);
|
|
6232
6228
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
6233
6229
|
children,
|
|
6234
|
-
childRef ? (React__default["default"].createElement(Tippy, { arrow: settings.showArrow, trigger: settings.trigger, plugins: [followCursor], followCursor: settings.followCursor && !settings.interactive, appendTo: document.body, onMount: function () { return setIsOffline(tooltipSettings.offline); }, placement: settings.placement, animation: "fade", interactive: settings.interactive, content: content, theme: "grade" + grade, reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
6230
|
+
childRef && content ? (React__default["default"].createElement(Tippy, { arrow: settings.showArrow, trigger: settings.trigger, plugins: [followCursor], followCursor: settings.followCursor && !settings.interactive, appendTo: document.body, onMount: function () { return setIsOffline(tooltipSettings.offline); }, placement: settings.placement, animation: "fade", interactive: settings.interactive, content: content, theme: "grade" + grade, reference: childRef })) : (React__default["default"].createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
6235
6231
|
}
|
|
6236
6232
|
|
|
6237
6233
|
function ItemIconNameDiv(_a) {
|
|
@@ -6716,6 +6712,30 @@ function JsonArrayToJsxArray(stringArray) {
|
|
|
6716
6712
|
return jsxArray;
|
|
6717
6713
|
}
|
|
6718
6714
|
|
|
6715
|
+
var NpcTooltipSettings = /** @class */ (function (_super) {
|
|
6716
|
+
__extends(NpcTooltipSettings, _super);
|
|
6717
|
+
function NpcTooltipSettings(npc, region, grade, client, offline) {
|
|
6718
|
+
if (grade === void 0) { grade = 4; }
|
|
6719
|
+
var _this = _super.call(this, region, client, offline) || this;
|
|
6720
|
+
_this.npc = npc;
|
|
6721
|
+
_this.grade = grade;
|
|
6722
|
+
_this.type = TooltipType.Npc;
|
|
6723
|
+
return _this;
|
|
6724
|
+
}
|
|
6725
|
+
return NpcTooltipSettings;
|
|
6726
|
+
}(TooltipWithNetworkSettings));
|
|
6727
|
+
|
|
6728
|
+
var SkillTooltipSettings = /** @class */ (function (_super) {
|
|
6729
|
+
__extends(SkillTooltipSettings, _super);
|
|
6730
|
+
function SkillTooltipSettings(data) {
|
|
6731
|
+
var _this = _super.call(this) || this;
|
|
6732
|
+
_this.data = data;
|
|
6733
|
+
_this.type = TooltipType.Skill;
|
|
6734
|
+
return _this;
|
|
6735
|
+
}
|
|
6736
|
+
return SkillTooltipSettings;
|
|
6737
|
+
}(TooltipSettingsBase));
|
|
6738
|
+
|
|
6719
6739
|
exports.GetCooldownString = GetCooldownString;
|
|
6720
6740
|
exports.ItemTooltip = ItemTooltip;
|
|
6721
6741
|
exports.ItemTooltipSettings = ItemTooltipSettings;
|