@rpg-engine/long-bow 0.8.137 → 0.8.139
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/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 +280 -79
- 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 +281 -81
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +16 -6
- package/src/components/DCWallet/DCWalletModal.tsx +1 -1
- package/src/components/Marketplace/BuyPanel.tsx +30 -3
- package/src/components/Marketplace/Marketplace.tsx +4 -1
- package/src/components/Marketplace/MarketplaceBuyModal.tsx +231 -0
- package/src/components/Marketplace/MarketplaceRows.tsx +14 -1
- package/src/components/Store/Store.tsx +5 -2
- package/src/components/Store/sections/StorePacksSection.tsx +17 -1
- package/src/index.tsx +1 -0
|
@@ -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';
|