bnstooltips 2.1.0 → 3.0.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/README.md +16 -3
- package/build/EffectTooltip/EffectTooltip.d.ts +5 -0
- package/build/EffectTooltip/EffectTooltip.types.d.ts +5 -0
- package/build/EffectTooltipWrapper/EffectTooltipWrapper.d.ts +6 -0
- package/build/EffectTooltipWrapper/EffectTooltipWrapper.types.d.ts +6 -0
- package/build/ItemImproveEffectsTooltip/ItemImproveEffectsTooltip.d.ts +5 -0
- package/build/ItemImproveEffectsTooltip/ItemImproveEffectsTooltip.types.d.ts +4 -0
- package/build/ItemImproveEffectsTooltipWrapper/ItemImproveEffectsTooltipWrapper.d.ts +6 -0
- package/build/ItemImproveEffectsTooltipWrapper/ItemImproveEffectsTooltipWrapper.types.d.ts +5 -0
- package/build/ItemImproveSelectStageTooltip/ItemImproveSelectStageTooltip.d.ts +5 -0
- package/build/ItemImproveSelectStageTooltip/ItemImproveSelectStageTooltip.types.d.ts +5 -0
- package/build/ItemImproveSelectStageTooltipWrapper/ItemImproveSelectStageTooltipWrapper.d.ts +6 -0
- package/build/ItemImproveSelectStageTooltipWrapper/ItemImproveSelectStageTooltipWrapper.types.d.ts +6 -0
- package/build/ItemImproveTooltip/ItemImproveTooltip.d.ts +5 -0
- package/build/ItemImproveTooltip/ItemImproveTooltip.types.d.ts +11 -0
- package/build/ItemImproveTooltip/SubComponents/ItemImproveUpgradeCost.d.ts +12 -0
- package/build/ItemImproveTooltip/SubComponents/ItemWithText.d.ts +15 -0
- package/build/ItemImproveTooltip/SubComponents/MainCostSelector.d.ts +12 -0
- package/build/ItemImproveTooltip/SubComponents/PrevCurNext.d.ts +20 -0
- package/build/ItemImproveTooltip/SubComponents/SubCosts.d.ts +11 -0
- package/build/ItemImproveTooltipWrapper/ItemImproveTooltipWrapper.d.ts +6 -0
- package/build/ItemImproveTooltipWrapper/ItemImproveTooltipWrapper.types.d.ts +11 -0
- package/build/ItemTooltip/ItemTooltip.d.ts +2 -2
- package/build/ItemTooltip/ItemTooltip.types.d.ts +9 -7
- package/build/ItemTooltip/SubComponents/AccountTransfer.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/DecomposeResults.d.ts +2 -1
- package/build/ItemTooltip/SubComponents/EtchingStones.d.ts +6 -0
- package/build/ItemTooltip/SubComponents/GearScore.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemCooldowns.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemIconNameDiv.d.ts +7 -2
- package/build/ItemTooltip/SubComponents/ItemMainInfo.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemRandomStats.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemSkillDescriptions.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/ItemSkillTitles.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/ItemSkillTrainLink.d.ts +9 -0
- package/build/ItemTooltip/SubComponents/ItemStats.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemSubInfo.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/ItemUpgradeEffects.d.ts +8 -0
- package/build/ItemTooltip/SubComponents/SealingResult.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/SetBonus.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/SetBonusItems.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/SkillModifierGroup.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/SkillModifiers.d.ts +1 -1
- package/build/ItemTooltip/SubComponents/TopText.d.ts +2 -2
- package/build/ItemTooltip/SubComponents/index.d.ts +6 -0
- package/build/ItemTooltipWrapper/ItemTooltipWrapper.types.d.ts +3 -1
- package/build/MultiItemTooltip/MultiItemTooltip.d.ts +5 -0
- package/build/MultiItemTooltip/MultiItemTooltip.types.d.ts +16 -0
- package/build/MultiItemTooltipWrapper/MultiItemTooltipWrapper.d.ts +6 -0
- package/build/MultiItemTooltipWrapper/MultiItemTooltipWrapper.types.d.ts +7 -0
- package/build/MultiSkillTooltip/MultiSkillTooltip.d.ts +5 -0
- package/build/MultiSkillTooltip/MultiSkillTooltip.types.d.ts +11 -0
- package/build/MultiSkillTooltipWrapper/MultiSkillTooltipWrapper.d.ts +6 -0
- package/build/MultiSkillTooltipWrapper/MultiSkillTooltipWrapper.types.d.ts +7 -0
- package/build/NpcTooltip/NpcTooltip.d.ts +1 -1
- package/build/NpcTooltip/NpcTooltip.types.d.ts +5 -6
- package/build/NpcTooltip/SubComponents/Money.d.ts +2 -1
- package/build/NpcTooltip/SubComponents/StoreItemBuyPriceEntry.d.ts +1 -1
- package/build/SkillTooltip/SkillTooltip.d.ts +1 -1
- package/build/SkillTooltip/SkillTooltip.types.d.ts +4 -5
- package/build/SkillTooltipWrapper/SkillTooltipWrapper.types.d.ts +3 -0
- package/build/TooltipBase/TooltipBase.d.ts +1 -1
- package/build/TooltipBase/TooltipBase.types.d.ts +1 -0
- package/build/Utilities/Helpers.d.ts +21 -1
- package/build/Utilities/IBnsEffect.d.ts +12 -0
- package/build/Utilities/INpc.d.ts +1 -1
- package/build/Utilities/ISkill.d.ts +84 -0
- package/build/Utilities/ItemDownloadClient.d.ts +12 -7
- package/build/Utilities/Models.d.ts +10 -1
- package/build/index.d.ts +30 -10
- package/build/index.es.js +5723 -2133
- package/build/index.es.js.map +1 -1
- package/build/index.js +5738 -2158
- package/build/index.js.map +1 -1
- package/build/itemapiclient/BnsItemApiClientBase.d.ts +3 -0
- package/build/itemapiclient/ItemApiClient.d.ts +813 -0
- package/build/webcomponents/tooltip-web.d.ts +1 -0
- package/build/webcomponents/tooltips-wc.d.ts +1 -0
- package/package.json +5 -5
- package/build/TestComponent/TestComponent.d.ts +0 -5
- package/build/TestComponent/TestComponent.types.d.ts +0 -3
- package/build/TooltipWrapper/TooltipWrapper.d.ts +0 -6
- package/build/TooltipWrapper/TooltipWrapper.types.d.ts +0 -17
- package/build/Utilities/TooltipSettingsBase.d.ts +0 -13
- package/build/itemapiclient/api.d.ts +0 -1200
- package/build/itemapiclient/configuration.d.ts +0 -55
- package/build/itemapiclient/index.d.ts +0 -13
- package/build/stories/Button.d.ts +0 -29
- package/build/stories/Header.d.ts +0 -10
- package/build/stories/Page.d.ts +0 -10
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Skill } from "../Utilities/ISkill";
|
|
2
|
-
import { TooltipSettingsBase } from "../Utilities/TooltipSettingsBase";
|
|
3
2
|
export interface SkillTooltipProps {
|
|
4
|
-
settings: SkillTooltipSettings;
|
|
5
|
-
}
|
|
6
|
-
export declare class SkillTooltipSettings extends TooltipSettingsBase {
|
|
7
|
-
constructor(data: Skill);
|
|
8
3
|
data: Skill;
|
|
4
|
+
masteryPoints?: number;
|
|
5
|
+
showZeroMastery?: boolean;
|
|
6
|
+
debug?: boolean;
|
|
7
|
+
multi?: boolean;
|
|
9
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TooltipBaseProps } from "./TooltipBase.types";
|
|
3
3
|
import "./TooltipBase.scss";
|
|
4
|
-
declare function TooltipBase({ title, subtitle: category, grade, icon, mainInfos: mainTexts, subInfoGroups: subTexts, id, fullHeight, }: TooltipBaseProps): JSX.Element;
|
|
4
|
+
declare function TooltipBase({ title, subtitle: category, grade, icon, mainInfos: mainTexts, subInfoGroups: subTexts, id, fullHeight, widthOverride }: TooltipBaseProps): JSX.Element;
|
|
5
5
|
export default TooltipBase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Skill } from "./ISkill";
|
|
1
|
+
import { Skill, SkillArcaneInfo, SkillArcaneInfo2 } from "./ISkill";
|
|
2
2
|
export declare function BuildIconPath(iconPath: string, iconIndex?: number): string;
|
|
3
3
|
export declare function IsNullOrEmpty(property?: string): boolean;
|
|
4
4
|
export declare function ReplaceIconsInHtmlString(htmlString: string): string;
|
|
@@ -13,3 +13,23 @@ export interface IBnsMoney {
|
|
|
13
13
|
Copper: number;
|
|
14
14
|
}
|
|
15
15
|
export declare function getMoneyObj(money: number): IBnsMoney | null;
|
|
16
|
+
export declare function GetSkillMasteryValue(points: number, arcaneInfo: SkillArcaneInfo): number;
|
|
17
|
+
export declare function GetSkillMasteryValue2(points: number, arcaneInfo: SkillArcaneInfo2 | undefined): number;
|
|
18
|
+
/**
|
|
19
|
+
* Calculates the cooldown reduction value based on skill mastery points and defined breakpoints.
|
|
20
|
+
*
|
|
21
|
+
* @param mastery - The total skill mastery points.
|
|
22
|
+
* @param cooldownBreakpoints - An object mapping breakpoints to their corresponding cooldown reduction values.
|
|
23
|
+
* @returns The total cooldown reduction value.
|
|
24
|
+
*/
|
|
25
|
+
export declare function GetSkillMasteryCdValueForPoints(mastery: number, cooldownBreakpoints: {
|
|
26
|
+
[id: number]: number;
|
|
27
|
+
}): number;
|
|
28
|
+
/**
|
|
29
|
+
* Calculates the total skill bonus based on mastery points and the given damage sections.
|
|
30
|
+
*
|
|
31
|
+
* @param mastery - The total mastery points.
|
|
32
|
+
* @param damageSections - An object defining breakpoints and corresponding multipliers.
|
|
33
|
+
* @returns The total bonus percentage.
|
|
34
|
+
*/
|
|
35
|
+
export declare function GetSkillMasteryDamageValueForPoints(mastery: number, damageSections: Record<number, number>): number;
|
|
@@ -14,6 +14,90 @@ export interface Skill {
|
|
|
14
14
|
EqualizedPvp: string;
|
|
15
15
|
Pvp: string;
|
|
16
16
|
BreakValue: string;
|
|
17
|
+
GcdGroup: number;
|
|
18
|
+
GcdGroupDiffOld?: number;
|
|
19
|
+
GcdDuration: number;
|
|
20
|
+
GcdDurationDiffOld?: number;
|
|
21
|
+
RealCooldown: number;
|
|
22
|
+
CdRecycle: {
|
|
23
|
+
Item1: string;
|
|
24
|
+
Item2: number;
|
|
25
|
+
};
|
|
26
|
+
RealCastCondition: RealCastCondition;
|
|
27
|
+
RealEffects: RealEffects;
|
|
28
|
+
ArcaneInfo?: SkillArcaneInfo;
|
|
29
|
+
ArcaneInfo2?: SkillArcaneInfo2;
|
|
30
|
+
ArcaneInfo3?: SkillArcaneInfo3;
|
|
31
|
+
ArcaneInfoDiffText?: string;
|
|
32
|
+
ShortcutFixed?: boolean;
|
|
33
|
+
ShortcutEnumValue?: string;
|
|
34
|
+
SecretSkillInfo?: SecretSkillInfo;
|
|
35
|
+
}
|
|
36
|
+
export interface SecretSkillInfo {
|
|
37
|
+
FixedStackCount: number;
|
|
38
|
+
RandomStackCount: number;
|
|
39
|
+
RandomStackMissProbability: number;
|
|
40
|
+
}
|
|
41
|
+
export interface SkillArcaneInfo3 {
|
|
42
|
+
ArcaneScore: number;
|
|
43
|
+
DamageSections: {
|
|
44
|
+
[id: number]: number;
|
|
45
|
+
};
|
|
46
|
+
CooldownBreakpoints: {
|
|
47
|
+
[id: number]: number;
|
|
48
|
+
};
|
|
49
|
+
EffectBreakpoints: {
|
|
50
|
+
[id: number]: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export declare enum ArcaneModifyType {
|
|
54
|
+
None = 0,
|
|
55
|
+
Damage = 1,
|
|
56
|
+
Cooldown = 2
|
|
57
|
+
}
|
|
58
|
+
export interface SkillArcaneInfo2 {
|
|
59
|
+
Type: ArcaneModifyType;
|
|
60
|
+
Breakpoints: {
|
|
61
|
+
[id: number]: number;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface SkillArcaneInfo {
|
|
65
|
+
IsCooldown: boolean;
|
|
66
|
+
DamageSections: {
|
|
67
|
+
[id: number]: number;
|
|
68
|
+
};
|
|
69
|
+
CooldownBreakpoints: {
|
|
70
|
+
[id: number]: number;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface RealEffects {
|
|
74
|
+
Effects: {
|
|
75
|
+
[id: number]: RealEffect;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export interface RealEffect {
|
|
79
|
+
Id: number;
|
|
80
|
+
Alias: string;
|
|
81
|
+
Name: string;
|
|
82
|
+
Description: string;
|
|
83
|
+
EffectType: string;
|
|
84
|
+
}
|
|
85
|
+
export interface RealCastCondition {
|
|
86
|
+
Id: number;
|
|
87
|
+
Stance: string;
|
|
88
|
+
RequiredWeaponType: string;
|
|
89
|
+
UnnecessaryAcquired: boolean;
|
|
90
|
+
MoveType: string;
|
|
91
|
+
PrevComboIds: number[];
|
|
92
|
+
NoFlagsAndFilters: boolean;
|
|
93
|
+
SuccessRecycles: {
|
|
94
|
+
Item1: string;
|
|
95
|
+
Item2: number;
|
|
96
|
+
}[];
|
|
97
|
+
FailRecycles: {
|
|
98
|
+
Item1: string;
|
|
99
|
+
Item2: number;
|
|
100
|
+
}[];
|
|
17
101
|
}
|
|
18
102
|
export interface Tooltip {
|
|
19
103
|
Main1: TooltipItem[];
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AllItemImproveEffectOptionsForItemResponse, BnsItemDto } from "../itemapiclient/ItemApiClient";
|
|
2
2
|
import { ServerRegion } from "./Models";
|
|
3
3
|
export declare class ItemDownloadClient {
|
|
4
|
-
private static
|
|
4
|
+
private static GetUrlBase;
|
|
5
5
|
private instance;
|
|
6
6
|
private patch;
|
|
7
7
|
region: ServerRegion;
|
|
8
|
+
private apiV;
|
|
8
9
|
constructor(region: ServerRegion, patch?: string);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
GetPatch(): Promise<string>;
|
|
11
|
+
GetNewItems(): Promise<BnsItemDto[]>;
|
|
12
|
+
GetModifiedItems(): Promise<BnsItemDto[]>;
|
|
13
|
+
GetItemByString(idlevelString: string): Promise<BnsItemDto>;
|
|
14
|
+
GetItem(id: number, level: number): Promise<BnsItemDto>;
|
|
15
|
+
GetItemsByCategory(category: string, technicalClassName: string, gradesString: string, minGs?: string): Promise<BnsItemDto[]>;
|
|
16
|
+
GetItemUpgrades(item: BnsItemDto): Promise<BnsItemDto[]>;
|
|
17
|
+
GetItemUpgradesByIdLevel(id: number, level: number): Promise<BnsItemDto[]>;
|
|
18
|
+
GetAllItemImproveEffectOptionsForItem(id: number, level: number): Promise<AllItemImproveEffectOptionsForItemResponse>;
|
|
14
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Placement } from "tippy.js";
|
|
1
2
|
export interface PatchesList {
|
|
2
3
|
patches: {
|
|
3
4
|
[key: string]: PatchesListPatch;
|
|
@@ -17,5 +18,13 @@ export interface ItemLookupFile {
|
|
|
17
18
|
export declare enum ServerRegion {
|
|
18
19
|
EUNA = "EUNA",
|
|
19
20
|
Korea = "Korea",
|
|
20
|
-
|
|
21
|
+
NEOKR = "NEOKR",
|
|
22
|
+
NEOEU = "NEOEU"
|
|
23
|
+
}
|
|
24
|
+
export interface ITooltipWrapper {
|
|
25
|
+
followCursor?: boolean;
|
|
26
|
+
interactive?: boolean;
|
|
27
|
+
placement?: Placement;
|
|
28
|
+
trigger?: string;
|
|
29
|
+
showArrow?: boolean;
|
|
21
30
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -4,21 +4,41 @@ import ItemTooltip from "./ItemTooltip/ItemTooltip";
|
|
|
4
4
|
export { ItemTooltip };
|
|
5
5
|
import JsonTooltip from "./JsonTooltip/JsonTooltip";
|
|
6
6
|
export { JsonTooltip };
|
|
7
|
+
import ItemTooltipWrapper from "./ItemTooltipWrapper/ItemTooltipWrapper";
|
|
8
|
+
export { ItemTooltipWrapper };
|
|
7
9
|
import SkillTooltip from "./SkillTooltip/SkillTooltip";
|
|
8
10
|
export { SkillTooltip };
|
|
11
|
+
import SkillTooltipWrapper from "./SkillTooltipWrapper/SkillTooltipWrapper";
|
|
12
|
+
export { SkillTooltipWrapper };
|
|
9
13
|
import { ServerRegion } from "./Utilities/Models";
|
|
10
14
|
export { ServerRegion };
|
|
11
15
|
import { GetCooldownString } from "./ItemTooltip/SubComponents/ItemCooldowns";
|
|
12
16
|
export { GetCooldownString };
|
|
13
17
|
import NpcTooltip from "./NpcTooltip/NpcTooltip";
|
|
14
18
|
export { NpcTooltip };
|
|
15
|
-
import
|
|
16
|
-
export {
|
|
17
|
-
import
|
|
18
|
-
export {
|
|
19
|
-
import
|
|
20
|
-
export {
|
|
21
|
-
import
|
|
22
|
-
export {
|
|
23
|
-
import
|
|
24
|
-
export {
|
|
19
|
+
import ItemImproveTooltip from "./ItemImproveTooltip/ItemImproveTooltip";
|
|
20
|
+
export { ItemImproveTooltip };
|
|
21
|
+
import ItemImproveTooltipWrapper from "./ItemImproveTooltipWrapper/ItemImproveTooltipWrapper";
|
|
22
|
+
export { ItemImproveTooltipWrapper };
|
|
23
|
+
import ItemImproveEffectsTooltip from "./ItemImproveEffectsTooltip/ItemImproveEffectsTooltip";
|
|
24
|
+
export { ItemImproveEffectsTooltip };
|
|
25
|
+
import ItemImproveEffectsTooltipWrapper from "./ItemImproveEffectsTooltipWrapper/ItemImproveEffectsTooltipWrapper";
|
|
26
|
+
export { ItemImproveEffectsTooltipWrapper };
|
|
27
|
+
import ItemImproveSelectStageTooltip from "./ItemImproveSelectStageTooltip/ItemImproveSelectStageTooltip";
|
|
28
|
+
export { ItemImproveSelectStageTooltip };
|
|
29
|
+
import ItemImproveSelectStageTooltipWrapper from "./ItemImproveSelectStageTooltipWrapper/ItemImproveSelectStageTooltipWrapper";
|
|
30
|
+
export { ItemImproveSelectStageTooltipWrapper };
|
|
31
|
+
import EffectTooltip from "./EffectTooltip/EffectTooltip";
|
|
32
|
+
export { EffectTooltip };
|
|
33
|
+
import EffectTooltipWrapper from "./EffectTooltipWrapper/EffectTooltipWrapper";
|
|
34
|
+
export { EffectTooltipWrapper };
|
|
35
|
+
import { ItemDownloadClient } from "./Utilities/ItemDownloadClient";
|
|
36
|
+
export { ItemDownloadClient };
|
|
37
|
+
import MultiSkillTooltip from "./MultiSkillTooltip/MultiSkillTooltip";
|
|
38
|
+
export { MultiSkillTooltip };
|
|
39
|
+
import MultiSkillTooltipWrapper from "./MultiSkillTooltipWrapper/MultiSkillTooltipWrapper";
|
|
40
|
+
export { MultiSkillTooltipWrapper };
|
|
41
|
+
import MultiItemTooltip from "./MultiItemTooltip/MultiItemTooltip";
|
|
42
|
+
export { MultiItemTooltip };
|
|
43
|
+
import MultiItemTooltipWrapper from "./MultiItemTooltipWrapper/MultiItemTooltipWrapper";
|
|
44
|
+
export { MultiItemTooltipWrapper };
|