bnstooltips 1.20.4 → 1.20.5

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SkillTooltipProps } from "./SkillTooltip.types";
3
3
  import "./SkillTooltip.scss";
4
- declare function SkillTooltip({ data, debug, masteryPoints }: SkillTooltipProps): JSX.Element;
4
+ declare function SkillTooltip({ data, debug, masteryPoints, }: SkillTooltipProps): JSX.Element;
5
5
  export default SkillTooltip;
package/build/index.d.ts CHANGED
@@ -32,3 +32,5 @@ import EffectTooltip from "./EffectTooltip/EffectTooltip";
32
32
  export { EffectTooltip };
33
33
  import EffectTooltipWrapper from "./EffectTooltipWrapper/EffectTooltipWrapper";
34
34
  export { EffectTooltipWrapper };
35
+ import { ItemDownloadClient } from "./Utilities/ItemDownloadClient";
36
+ export { ItemDownloadClient };
package/build/index.es.js CHANGED
@@ -8922,6 +8922,7 @@ function SkillTooltip(_a) {
8922
8922
  AddBoundaries(tooltipBaseProps.subInfoGroups, skill);
8923
8923
  AddConditions(tooltipBaseProps.subInfoGroups, skill);
8924
8924
  AddStances(tooltipBaseProps.subInfoGroups, skill);
8925
+ AddGcd(tooltipBaseProps.subInfoGroups, skill);
8925
8926
  if (debug) {
8926
8927
  AddIds(tooltipBaseProps.subInfoGroups, skill);
8927
8928
  AddRealCastConds(tooltipBaseProps.subInfoGroups, skill);
@@ -8975,7 +8976,9 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
8975
8976
  var masteryValue = GetSkillMasteryValue(masteryPoints, arcaneInfo);
8976
8977
  if (masteryValue == null)
8977
8978
  return;
8978
- var formattedMasteryValue = Number.isInteger(masteryValue) ? masteryValue.toString() : masteryValue.toFixed(2).replace(',', '.');
8979
+ var formattedMasteryValue = Number.isInteger(masteryValue)
8980
+ ? masteryValue.toString()
8981
+ : masteryValue.toFixed(2).replace(",", ".");
8979
8982
  subInfoGroups.push({
8980
8983
  title: "",
8981
8984
  texts: [
@@ -8984,18 +8987,15 @@ function AddSkillMastery(subInfoGroups, masteryPoints, arcaneInfo) {
8984
8987
  React.createElement("span", { className: "tooltipArg", style: { fontSize: "14px" } }, "Skill Grandmaster"),
8985
8988
  React.createElement("div", { className: "arcanemark" }),
8986
8989
  React.createElement("span", { className: "tooltipArg", style: { fontSize: "14px" } }, masteryPoints)),
8987
- !arcaneInfo.IsCooldown ?
8988
- React.createElement("div", null,
8989
- "Damage increase:\u00A0",
8990
- React.createElement("span", { className: "tooltipArg" },
8991
- formattedMasteryValue,
8992
- "%"))
8993
- :
8994
- React.createElement("div", null,
8995
- "Cooldown reduction:\u00A0",
8996
- React.createElement("span", { className: "tooltipArg" },
8997
- formattedMasteryValue,
8998
- " sec."))),
8990
+ !arcaneInfo.IsCooldown ? (React.createElement("div", null,
8991
+ "Damage increase:\u00A0",
8992
+ React.createElement("span", { className: "tooltipArg" },
8993
+ formattedMasteryValue,
8994
+ "%"))) : (React.createElement("div", null,
8995
+ "Cooldown reduction:\u00A0",
8996
+ React.createElement("span", { className: "tooltipArg" },
8997
+ formattedMasteryValue,
8998
+ " sec.")))),
8999
8999
  ],
9000
9000
  });
9001
9001
  }
@@ -9031,10 +9031,28 @@ function AddStances(subInfoGroups, skill) {
9031
9031
  texts: [React.createElement(SkillConditions, { tooltipItems: skill.Tooltip.Stance })],
9032
9032
  });
9033
9033
  }
9034
+ function AddGcd(subInfoGroups, skill) {
9035
+ if (skill.GcdGroup == null || skill.GcdDuration == null)
9036
+ return;
9037
+ if (skill.GcdGroup == 0 && skill.GcdDuration == 0)
9038
+ return;
9039
+ subInfoGroups.push({
9040
+ title: "Global Cooldown",
9041
+ texts: [
9042
+ React.createElement("div", null,
9043
+ "Group:\u00A0",
9044
+ React.createElement("span", { className: "tooltipArg" }, skill.GcdGroup),
9045
+ "\u00A0 Duration:\u00A0",
9046
+ React.createElement("span", { className: "tooltipArg" },
9047
+ skill.GcdDuration,
9048
+ " ms")),
9049
+ ],
9050
+ });
9051
+ }
9034
9052
  function AddIds(subInfoGroups, skill) {
9035
9053
  subInfoGroups.push({
9036
9054
  title: "",
9037
- texts: [React.createElement("hr", null)]
9055
+ texts: [React.createElement("hr", null)],
9038
9056
  });
9039
9057
  var subInfoGroup = {
9040
9058
  title: "Debug info",
@@ -9080,18 +9098,19 @@ function AddRealEffects(subInfoGroups, skill) {
9080
9098
  var realEffect = realEffects.Effects[key];
9081
9099
  var subInfoGroup = {
9082
9100
  title: "Effect",
9083
- texts: []
9101
+ texts: [],
9084
9102
  };
9085
9103
  var texts = [
9086
9104
  React.createElement("div", null,
9087
9105
  "Id: ",
9088
9106
  React.createElement(BlueColoredText$1, { text: realEffect.Id.toString() })),
9089
9107
  React.createElement("div", null,
9090
- "Alias: ",
9108
+ "Alias:",
9109
+ " ",
9091
9110
  React.createElement(BlueColoredText$1, { text: realEffect.Alias, customClasses: "wordbreakall" })),
9092
9111
  React.createElement("div", null,
9093
9112
  "Effect type: ",
9094
- React.createElement(BlueColoredText$1, { text: realEffect.EffectType }))
9113
+ React.createElement(BlueColoredText$1, { text: realEffect.EffectType })),
9095
9114
  ];
9096
9115
  if (realEffect.Name != null && realEffect.Name != "") {
9097
9116
  texts.push(React.createElement("div", null,
@@ -9100,7 +9119,8 @@ function AddRealEffects(subInfoGroups, skill) {
9100
9119
  }
9101
9120
  if (realEffect.Description != null && realEffect.Description != "") {
9102
9121
  texts.push(React.createElement("div", null,
9103
- "Description: ",
9122
+ "Description:",
9123
+ " ",
9104
9124
  React.createElement(BlueColoredTextDangerous, { text: realEffect.Description, customClasses: "wordbreakword" })));
9105
9125
  }
9106
9126
  subInfoGroup.texts = texts;
@@ -9123,42 +9143,48 @@ function AddRealCastConds(subInfoGroups, skill) {
9123
9143
  subInfoGroup.texts.push(React.createElement("div", null,
9124
9144
  "Stance: ",
9125
9145
  React.createElement(BlueColoredText$1, { text: realCastCondition.Stance })), React.createElement("div", null,
9126
- "Required weapon: ",
9146
+ "Required weapon:",
9147
+ " ",
9127
9148
  React.createElement(BlueColoredText$1, { text: realCastCondition.RequiredWeaponType })), React.createElement("div", null,
9128
9149
  "Move type: ",
9129
9150
  React.createElement(BlueColoredText$1, { text: realCastCondition.MoveType })));
9130
- if (realCastCondition.PrevComboIds != null && realCastCondition.PrevComboIds.length > 0) {
9151
+ if (realCastCondition.PrevComboIds != null &&
9152
+ realCastCondition.PrevComboIds.length > 0) {
9131
9153
  var subInfoGroup2 = {
9132
9154
  title: "Prev combo Ids",
9133
- texts: []
9155
+ texts: [],
9134
9156
  };
9135
9157
  realCastCondition.PrevComboIds.forEach(function (prevComboId) {
9136
9158
  subInfoGroup2.texts.push(prevComboId);
9137
9159
  });
9138
9160
  }
9139
- if (realCastCondition.SuccessRecycles != null && realCastCondition.SuccessRecycles.length > 0) {
9161
+ if (realCastCondition.SuccessRecycles != null &&
9162
+ realCastCondition.SuccessRecycles.length > 0) {
9140
9163
  var subInfoGroup3 = {
9141
9164
  title: "SuccessRecycles",
9142
- texts: []
9165
+ texts: [],
9143
9166
  };
9144
9167
  realCastCondition.SuccessRecycles.forEach(function (recycle) {
9145
9168
  subInfoGroup3.texts.push(React.createElement("div", null,
9146
9169
  "Group: ",
9147
9170
  React.createElement(BlueColoredText$1, { text: recycle.Item1 }),
9148
- ", Id: ",
9171
+ ", Id:",
9172
+ " ",
9149
9173
  React.createElement(BlueColoredText$1, { text: recycle.Item2.toString() })));
9150
9174
  });
9151
9175
  }
9152
- if (realCastCondition.FailRecycles != null && realCastCondition.FailRecycles.length > 0) {
9176
+ if (realCastCondition.FailRecycles != null &&
9177
+ realCastCondition.FailRecycles.length > 0) {
9153
9178
  var subInfoGroup4 = {
9154
9179
  title: "FailRecycles",
9155
- texts: []
9180
+ texts: [],
9156
9181
  };
9157
9182
  realCastCondition.FailRecycles.forEach(function (recycle) {
9158
9183
  subInfoGroup4.texts.push(React.createElement("div", null,
9159
9184
  "Group: ",
9160
9185
  React.createElement(BlueColoredText$1, { text: recycle.Item1 }),
9161
- ", Id: ",
9186
+ ", Id:",
9187
+ " ",
9162
9188
  React.createElement(BlueColoredText$1, { text: recycle.Item2.toString() })));
9163
9189
  });
9164
9190
  }
@@ -9192,15 +9218,15 @@ function BlueColoredTextDangerous(_a) {
9192
9218
  }
9193
9219
  function BlueColoredText$1(_a) {
9194
9220
  var text = _a.text, _b = _a.customClasses, customClasses = _b === void 0 ? "" : _b;
9195
- return (React.createElement("span", { className: "tooltipArg " + customClasses }, text));
9221
+ return React.createElement("span", { className: "tooltipArg " + customClasses }, text);
9196
9222
  }
9197
9223
  function RedColoredText(_a) {
9198
9224
  var text = _a.text;
9199
- return (React.createElement("span", { className: "TooltipBase_bns_upgradeRed_color" }, text));
9225
+ return React.createElement("span", { className: "TooltipBase_bns_upgradeRed_color" }, text);
9200
9226
  }
9201
9227
  function GreenColoredText(_a) {
9202
9228
  var text = _a.text;
9203
- return (React.createElement("span", { className: "00008130.UI.Label_Green03_12" }, text));
9229
+ return React.createElement("span", { className: "00008130.UI.Label_Green03_12" }, text);
9204
9230
  }
9205
9231
 
9206
9232
  var css_248z$5 = ".TooltipBase_bns_upgradeRed_color {\n color: #FF2818;\n}\n\n.TooltipBase_bns_downgradeBlue_color {\n color: #28A9F0;\n}\n\n.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}\n.tippy-box:hover {\n box-shadow: rgba(0, 0, 0, 0.8) 0px 20px 60px 0px !important;\n}\n\n.tippy-content {\n padding: 0 !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=top] .tippy-arrow::before {\n border-top-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=left] .tippy-arrow::before {\n border-left-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade1][data-placement^=right] .tippy-arrow::before {\n border-right-color: #9B9B9B !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=top] .tippy-arrow::before {\n border-top-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=left] .tippy-arrow::before {\n border-left-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade2][data-placement^=right] .tippy-arrow::before {\n border-right-color: #ffffff !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=top] .tippy-arrow::before {\n border-top-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=left] .tippy-arrow::before {\n border-left-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade3][data-placement^=right] .tippy-arrow::before {\n border-right-color: #57FF78 !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=top] .tippy-arrow::before {\n border-top-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=left] .tippy-arrow::before {\n border-left-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade4][data-placement^=right] .tippy-arrow::before {\n border-right-color: #00D9FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=top] .tippy-arrow::before {\n border-top-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=left] .tippy-arrow::before {\n border-left-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade5][data-placement^=right] .tippy-arrow::before {\n border-right-color: #D836FF !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade6][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FF9700 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade7][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FF7802 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade8][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FF0085 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=bottom] .tippy-arrow::before {\n border-bottom-color: #FFED23 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=top] .tippy-arrow::before {\n border-top-color: #FFED23 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=left] .tippy-arrow::before {\n border-left-color: #FFED23 !important;\n}\n\n.tippy-box[data-theme~=grade9][data-placement^=right] .tippy-arrow::before {\n border-right-color: #FFED23 !important;\n}";
@@ -9574,5 +9600,5 @@ var EffectTooltipWrapper = function (_a) {
9574
9600
  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(EffectTooltip, { data: data, debug: debug }), theme: "grade" + 4, reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
9575
9601
  };
9576
9602
 
9577
- export { EffectTooltip, EffectTooltipWrapper, GetCooldownString, ItemImproveEffectsTooltip, ItemImproveEffectsTooltipWrapper, ItemImproveSelectStageTooltip, ItemImproveSelectStageTooltipWrapper, ItemImproveTooltip, ItemImproveTooltipWrapper, ItemTooltip, ItemTooltipWrapper, JsonTooltip, NpcTooltip, ServerRegion, SkillTooltip, SkillTooltipWrapper, TooltipBase };
9603
+ export { EffectTooltip, EffectTooltipWrapper, GetCooldownString, ItemDownloadClient, ItemImproveEffectsTooltip, ItemImproveEffectsTooltipWrapper, ItemImproveSelectStageTooltip, ItemImproveSelectStageTooltipWrapper, ItemImproveTooltip, ItemImproveTooltipWrapper, ItemTooltip, ItemTooltipWrapper, JsonTooltip, NpcTooltip, ServerRegion, SkillTooltip, SkillTooltipWrapper, TooltipBase };
9578
9604
  //# sourceMappingURL=index.es.js.map