@rpg-engine/long-bow 0.8.136 → 0.8.138
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/dist/components/DCWallet/DCTransferPanel.d.ts +6 -0
- package/dist/components/DCWallet/DCWalletModal.d.ts +4 -0
- package/dist/components/Marketplace/BuyPanel.d.ts +4 -1
- package/dist/components/Marketplace/Marketplace.d.ts +4 -1
- package/dist/components/Marketplace/MarketplaceBuyModal.d.ts +10 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +1 -0
- package/dist/components/Store/sections/StorePacksSection.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +427 -140
- package/dist/long-bow.cjs.development.js.map +1 -1
- package/dist/long-bow.cjs.production.min.js +1 -1
- package/dist/long-bow.cjs.production.min.js.map +1 -1
- package/dist/long-bow.esm.js +428 -142
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +130 -68
- package/src/components/DCWallet/DCTransferPanel.tsx +102 -10
- package/src/components/DCWallet/DCWalletModal.tsx +46 -7
- package/src/components/Marketplace/BuyPanel.tsx +29 -2
- package/src/components/Marketplace/Marketplace.tsx +4 -1
- package/src/components/Marketplace/MarketplaceBuyModal.tsx +230 -0
- package/src/components/Marketplace/MarketplaceRows.tsx +41 -16
- package/src/components/Store/Store.tsx +5 -1
- package/src/components/Store/sections/StorePacksSection.tsx +17 -1
- package/src/index.tsx +1 -0
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export interface IDCTransferCharacterResult {
|
|
3
|
+
_id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
2
6
|
export interface IDCTransferPanelProps {
|
|
3
7
|
dcBalance: number;
|
|
4
8
|
transferLoading: boolean;
|
|
@@ -11,5 +15,7 @@ export interface IDCTransferPanelProps {
|
|
|
11
15
|
characterName?: string;
|
|
12
16
|
onInputFocus?: () => void;
|
|
13
17
|
onInputBlur?: () => void;
|
|
18
|
+
onSearchCharacter?: (name: string) => void;
|
|
19
|
+
searchResults?: IDCTransferCharacterResult[];
|
|
14
20
|
}
|
|
15
21
|
export declare const DCTransferPanel: React.FC<IDCTransferPanelProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDCTransaction } from './DCHistoryPanel';
|
|
3
|
+
import { IDCTransferCharacterResult } from './DCTransferPanel';
|
|
3
4
|
export interface IDCWalletModalProps {
|
|
4
5
|
dcBalance: number;
|
|
5
6
|
onClose: () => void;
|
|
@@ -20,5 +21,8 @@ export interface IDCWalletModalProps {
|
|
|
20
21
|
characterName?: string;
|
|
21
22
|
onInputFocus?: () => void;
|
|
22
23
|
onInputBlur?: () => void;
|
|
24
|
+
onBuyDC?: () => void;
|
|
25
|
+
onSearchCharacter?: (name: string) => void;
|
|
26
|
+
searchResults?: IDCTransferCharacterResult[];
|
|
23
27
|
}
|
|
24
28
|
export declare const DCWalletModal: React.FC<IDCWalletModalProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IEquipmentSet, IMarketplaceItem } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { MarketplacePaymentMethod } from './MarketplaceBuyModal';
|
|
3
4
|
export interface IBuyPanelProps {
|
|
4
5
|
items: IMarketplaceItem[];
|
|
5
6
|
atlasJSON: any;
|
|
@@ -14,10 +15,12 @@ export interface IBuyPanelProps {
|
|
|
14
15
|
onChangePriceInput: (value: [number | undefined, number | undefined]) => void;
|
|
15
16
|
scale?: number;
|
|
16
17
|
equipmentSet?: IEquipmentSet | null;
|
|
17
|
-
onMarketPlaceItemBuy?: (marketPlaceItemId: string) => void;
|
|
18
|
+
onMarketPlaceItemBuy?: (marketPlaceItemId: string, paymentMethod?: MarketplacePaymentMethod) => void;
|
|
18
19
|
characterId: string;
|
|
19
20
|
enableHotkeys?: () => void;
|
|
20
21
|
disableHotkeys?: () => void;
|
|
21
22
|
currentPage: number;
|
|
23
|
+
dcBalance?: number;
|
|
24
|
+
dcToGoldSwapRate?: number;
|
|
22
25
|
}
|
|
23
26
|
export declare const BuyPanel: React.FC<IBuyPanelProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IEquipmentSet, IItem, IMarketplaceItem } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { MarketplacePaymentMethod } from './MarketplaceBuyModal';
|
|
3
4
|
export interface IMarketPlaceProps {
|
|
4
5
|
items: IMarketplaceItem[];
|
|
5
6
|
atlasJSON: any;
|
|
@@ -14,7 +15,7 @@ export interface IMarketPlaceProps {
|
|
|
14
15
|
onChangePriceInput: (value: [number | undefined, number | undefined]) => void;
|
|
15
16
|
scale?: number;
|
|
16
17
|
equipmentSet?: IEquipmentSet | null;
|
|
17
|
-
onMarketPlaceItemBuy?: (marketPlaceItemId: string) => void;
|
|
18
|
+
onMarketPlaceItemBuy?: (marketPlaceItemId: string, paymentMethod?: MarketplacePaymentMethod) => void;
|
|
18
19
|
onMarketPlaceItemRemove?: (marketPlaceItemId: string) => void;
|
|
19
20
|
availableGold: number;
|
|
20
21
|
selectedItemToSell: IItem | null;
|
|
@@ -29,5 +30,7 @@ export interface IMarketPlaceProps {
|
|
|
29
30
|
currentPage: number;
|
|
30
31
|
itemsPerPage: number;
|
|
31
32
|
onPageChange: (page: number) => void;
|
|
33
|
+
dcBalance?: number;
|
|
34
|
+
dcToGoldSwapRate?: number;
|
|
32
35
|
}
|
|
33
36
|
export declare const Marketplace: React.FC<IMarketPlaceProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type MarketplacePaymentMethod = 'gold' | 'dc';
|
|
3
|
+
export interface IMarketplaceBuyModalProps {
|
|
4
|
+
goldPrice: number;
|
|
5
|
+
dcEquivalentPrice: number;
|
|
6
|
+
dcBalance: number;
|
|
7
|
+
onConfirm: (paymentMethod: MarketplacePaymentMethod) => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const MarketplaceBuyModal: React.FC<IMarketplaceBuyModalProps>;
|
|
@@ -4,6 +4,8 @@ interface IStorePacksSectionProps {
|
|
|
4
4
|
packs: IItemPack[];
|
|
5
5
|
onAddToCart: (pack: IItemPack) => void;
|
|
6
6
|
onSelectPack?: (pack: IItemPack) => void;
|
|
7
|
+
atlasJSON?: any;
|
|
8
|
+
atlasIMG?: string;
|
|
7
9
|
}
|
|
8
10
|
export declare const StorePacksSection: React.FC<IStorePacksSectionProps>;
|
|
9
11
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './components/itemSelector/ItemSelector';
|
|
|
35
35
|
export * from './components/Leaderboard/Leaderboard';
|
|
36
36
|
export * from './components/ListMenu';
|
|
37
37
|
export * from './components/Marketplace/Marketplace';
|
|
38
|
+
export * from './components/Marketplace/MarketplaceBuyModal';
|
|
38
39
|
export * from './components/Marketplace/MarketplaceRows';
|
|
39
40
|
export * from './components/Multitab/TabBody';
|
|
40
41
|
export * from './components/Multitab/TabsContainer';
|