bnstooltips 1.5.6 → 1.6.3
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/NpcTooltip/NpcTooltip.d.ts +5 -0
- package/build/NpcTooltip/NpcTooltip.types.d.ts +11 -0
- package/build/NpcTooltip/SubComponents/ItemBuyLimit.d.ts +6 -0
- package/build/NpcTooltip/SubComponents/Money.d.ts +5 -0
- package/build/NpcTooltip/SubComponents/NpcStoreEntry.d.ts +8 -0
- package/build/NpcTooltip/SubComponents/NpcStores.d.ts +9 -0
- package/build/NpcTooltip/SubComponents/StoreItemBuyPriceEntry.d.ts +8 -0
- package/build/NpcTooltip/SubComponents/StoreTogge.d.ts +8 -0
- package/build/NpcTooltip/SubComponents/StoreToggleBar.d.ts +8 -0
- package/build/Utilities/Helpers.d.ts +6 -0
- package/build/Utilities/INpc.d.ts +39 -0
- package/build/Utilities/ItemDownloadClient.d.ts +1 -1
- package/build/index.d.ts +2 -0
- package/build/index.es.js +294 -17
- package/build/index.es.js.map +1 -1
- package/build/index.js +294 -16
- package/build/index.js.map +1 -1
- package/build/itemapiclient/api.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ServerRegion } from "..";
|
|
2
|
+
import { INpc } from "../Utilities/INpc";
|
|
3
|
+
import { ItemDownloadClient } from "../Utilities/ItemDownloadClient";
|
|
4
|
+
export interface NpcTooltipProps {
|
|
5
|
+
npc: INpc;
|
|
6
|
+
region: ServerRegion;
|
|
7
|
+
grade?: number;
|
|
8
|
+
debug?: boolean;
|
|
9
|
+
client?: ItemDownloadClient;
|
|
10
|
+
fullHeight?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { INpcStoreEntry } from "../../Utilities/INpc";
|
|
3
|
+
import { ItemDownloadClient } from "../../Utilities/ItemDownloadClient";
|
|
4
|
+
declare function NpcStoreEntry({ data, client, }: {
|
|
5
|
+
data: INpcStoreEntry;
|
|
6
|
+
client: ItemDownloadClient;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export default NpcStoreEntry;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { INpcStore } from "../../Utilities/INpc";
|
|
3
|
+
import { ItemDownloadClient } from "../../Utilities/ItemDownloadClient";
|
|
4
|
+
declare function NpcStores({ stores, activeTab, client, }: {
|
|
5
|
+
stores: INpcStore[];
|
|
6
|
+
activeTab: number;
|
|
7
|
+
client: ItemDownloadClient;
|
|
8
|
+
}): JSX.Element;
|
|
9
|
+
export default NpcStores;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ItemRefWithCount } from "../../itemapiclient";
|
|
3
|
+
import { ItemDownloadClient } from "../../Utilities/ItemDownloadClient";
|
|
4
|
+
declare function StoreItemBuyPriceEntry({ itemRef, client, }: {
|
|
5
|
+
itemRef: ItemRefWithCount;
|
|
6
|
+
client: ItemDownloadClient;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export default StoreItemBuyPriceEntry;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { INpcStore } from "../../Utilities/INpc";
|
|
3
|
+
declare function StoreToggleBar({ stores, activeTab, setActiveTab, }: {
|
|
4
|
+
stores: INpcStore[];
|
|
5
|
+
activeTab: number;
|
|
6
|
+
setActiveTab: React.Dispatch<React.SetStateAction<number>>;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export default StoreToggleBar;
|
|
@@ -7,3 +7,9 @@ export declare function ReplaceBossAndPvpAp(english: string): string;
|
|
|
7
7
|
export declare function GetRangeString(min: number, max?: number): string;
|
|
8
8
|
export declare function GetJobStyleNameString(jobstyle: string): string;
|
|
9
9
|
export declare function getNormalizedButton(skill: Skill): string;
|
|
10
|
+
export interface IBnsMoney {
|
|
11
|
+
Gold: number;
|
|
12
|
+
Silver: number;
|
|
13
|
+
Copper: number;
|
|
14
|
+
}
|
|
15
|
+
export declare function getMoneyObj(money: number): IBnsMoney | null;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ItemRefWithCount } from "../itemapiclient";
|
|
2
|
+
export interface INpc {
|
|
3
|
+
Name: string;
|
|
4
|
+
Title?: string;
|
|
5
|
+
Alias: string;
|
|
6
|
+
AutoId: number;
|
|
7
|
+
Stores: INpcStore[];
|
|
8
|
+
}
|
|
9
|
+
export interface INpcStore {
|
|
10
|
+
Id: number;
|
|
11
|
+
Alias: string;
|
|
12
|
+
Name: string;
|
|
13
|
+
Icon: string;
|
|
14
|
+
Entries: INpcStoreEntry[];
|
|
15
|
+
}
|
|
16
|
+
export interface INpcStoreEntry {
|
|
17
|
+
Item: ItemRefWithCount;
|
|
18
|
+
Limit?: IBuyLimit;
|
|
19
|
+
BuyPrice: IBuyPrice;
|
|
20
|
+
}
|
|
21
|
+
export interface IBuyPrice {
|
|
22
|
+
Items?: ItemRefWithCount[];
|
|
23
|
+
Money?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IBuyLimit {
|
|
26
|
+
Amount: number;
|
|
27
|
+
LimitReset: BuyLimitReset;
|
|
28
|
+
LimitType: BuyLimitType;
|
|
29
|
+
}
|
|
30
|
+
export declare enum BuyLimitReset {
|
|
31
|
+
Day = 0,
|
|
32
|
+
Week = 1,
|
|
33
|
+
Month = 2,
|
|
34
|
+
Absolute = 3
|
|
35
|
+
}
|
|
36
|
+
export declare enum BuyLimitType {
|
|
37
|
+
Character = 0,
|
|
38
|
+
Account = 1
|
|
39
|
+
}
|
|
@@ -4,7 +4,7 @@ export declare class ItemDownloadClient {
|
|
|
4
4
|
private static urlBase;
|
|
5
5
|
private instance;
|
|
6
6
|
private patch;
|
|
7
|
-
|
|
7
|
+
region: ServerRegion;
|
|
8
8
|
constructor(region: ServerRegion, patch?: string);
|
|
9
9
|
GetNewItems(): Promise<api.BnsItemDto[]>;
|
|
10
10
|
GetModifiedItems(): Promise<api.BnsItemDto[]>;
|
package/build/index.d.ts
CHANGED
|
@@ -14,3 +14,5 @@ import { ServerRegion } from "./Utilities/Models";
|
|
|
14
14
|
export { ServerRegion };
|
|
15
15
|
import { GetCooldownString } from "./ItemTooltip/SubComponents/ItemCooldowns";
|
|
16
16
|
export { GetCooldownString };
|
|
17
|
+
import NpcTooltip from "./NpcTooltip/NpcTooltip";
|
|
18
|
+
export { NpcTooltip };
|