@rpg-engine/long-bow 0.8.155 → 0.8.157
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/DCWalletContent.d.ts +27 -0
- package/dist/components/DCWallet/DCWalletModal.d.ts +2 -24
- package/dist/components/Marketplace/BuyPanel.d.ts +1 -0
- package/dist/components/Marketplace/Marketplace.d.ts +3 -0
- package/dist/components/Marketplace/MarketplaceRows.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +159 -122
- 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 +159 -123
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DCWallet/DCHistoryPanel.tsx +32 -49
- package/src/components/DCWallet/DCWalletContent.tsx +183 -0
- package/src/components/DCWallet/DCWalletModal.tsx +6 -166
- package/src/components/Marketplace/BuyPanel.tsx +32 -27
- package/src/components/Marketplace/Marketplace.tsx +22 -1
- package/src/components/Marketplace/MarketplaceRows.tsx +16 -3
- package/src/components/shared/Tabs/Tabs.tsx +7 -6
- package/src/index.tsx +1 -0
- package/src/stories/Features/trading/Marketplace.stories.tsx +32 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDCTransaction } from './DCHistoryPanel';
|
|
3
|
+
import { IDCTransferCharacterResult } from './DCTransferPanel';
|
|
4
|
+
export interface IDCWalletContentProps {
|
|
5
|
+
dcBalance: number;
|
|
6
|
+
historyData: {
|
|
7
|
+
transactions: IDCTransaction[];
|
|
8
|
+
totalPages: number;
|
|
9
|
+
currentPage: number;
|
|
10
|
+
} | null;
|
|
11
|
+
historyLoading: boolean;
|
|
12
|
+
onRequestHistory: (page: number, type?: string) => void;
|
|
13
|
+
transferLoading: boolean;
|
|
14
|
+
transferResult: {
|
|
15
|
+
success: boolean;
|
|
16
|
+
message: string;
|
|
17
|
+
} | null;
|
|
18
|
+
onSendTransfer: (recipientName: string, amount: number) => void;
|
|
19
|
+
onClearTransferResult: () => void;
|
|
20
|
+
characterName?: string;
|
|
21
|
+
onInputFocus?: () => void;
|
|
22
|
+
onInputBlur?: () => void;
|
|
23
|
+
onBuyDC?: () => void;
|
|
24
|
+
onSearchCharacter?: (name: string) => void;
|
|
25
|
+
searchResults?: IDCTransferCharacterResult[];
|
|
26
|
+
}
|
|
27
|
+
export declare const DCWalletContent: React.FC<IDCWalletContentProps>;
|
|
@@ -1,28 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface IDCWalletModalProps {
|
|
5
|
-
dcBalance: number;
|
|
2
|
+
import { IDCWalletContentProps } from './DCWalletContent';
|
|
3
|
+
export interface IDCWalletModalProps extends IDCWalletContentProps {
|
|
6
4
|
onClose: () => void;
|
|
7
|
-
historyData: {
|
|
8
|
-
transactions: IDCTransaction[];
|
|
9
|
-
totalPages: number;
|
|
10
|
-
currentPage: number;
|
|
11
|
-
} | null;
|
|
12
|
-
historyLoading: boolean;
|
|
13
|
-
onRequestHistory: (page: number, type?: string) => void;
|
|
14
|
-
transferLoading: boolean;
|
|
15
|
-
transferResult: {
|
|
16
|
-
success: boolean;
|
|
17
|
-
message: string;
|
|
18
|
-
} | null;
|
|
19
|
-
onSendTransfer: (recipientName: string, amount: number) => void;
|
|
20
|
-
onClearTransferResult: () => void;
|
|
21
|
-
characterName?: string;
|
|
22
|
-
onInputFocus?: () => void;
|
|
23
|
-
onInputBlur?: () => void;
|
|
24
|
-
onBuyDC?: () => void;
|
|
25
|
-
onSearchCharacter?: (name: string) => void;
|
|
26
|
-
searchResults?: IDCTransferCharacterResult[];
|
|
27
5
|
}
|
|
28
6
|
export declare const DCWalletModal: React.FC<IDCWalletModalProps>;
|
|
@@ -17,6 +17,7 @@ export interface IBuyPanelProps {
|
|
|
17
17
|
equipmentSet?: IEquipmentSet | null;
|
|
18
18
|
onMarketPlaceItemBuy?: (marketPlaceItemId: string, paymentMethod?: MarketplacePaymentMethod) => void;
|
|
19
19
|
onFulfillBuyOrder?: (buyOrderId: string) => void;
|
|
20
|
+
onDCCoinClick?: () => void;
|
|
20
21
|
characterId: string;
|
|
21
22
|
enableHotkeys?: () => void;
|
|
22
23
|
disableHotkeys?: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IEquipmentSet, IItem, IMarketplaceBlueprintSearchRequest, IMarketplaceBlueprintSummary, IMarketplaceBuyOrderItem, IMarketplaceItem, IMarketplaceTransaction } from '@rpg-engine/shared';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { IDCWalletContentProps } from '../DCWallet/DCWalletContent';
|
|
3
4
|
import { MarketplacePaymentMethod } from './MarketplaceBuyModal';
|
|
4
5
|
import { MarketplaceAcceptedCurrency } from './MarketplaceSettingsPanel';
|
|
5
6
|
export interface IMarketPlaceProps {
|
|
@@ -18,6 +19,7 @@ export interface IMarketPlaceProps {
|
|
|
18
19
|
equipmentSet?: IEquipmentSet | null;
|
|
19
20
|
onMarketPlaceItemBuy?: (marketPlaceItemId: string, paymentMethod?: MarketplacePaymentMethod) => void;
|
|
20
21
|
onFulfillBuyOrder?: (buyOrderId: string) => void;
|
|
22
|
+
onDCCoinClick?: () => void;
|
|
21
23
|
onMarketPlaceItemRemove?: (marketPlaceItemId: string) => void;
|
|
22
24
|
availableGold: number;
|
|
23
25
|
selectedItemToSell: IItem | null;
|
|
@@ -69,5 +71,6 @@ export interface IMarketPlaceProps {
|
|
|
69
71
|
historySelectedType?: string;
|
|
70
72
|
onHistoryTypeChange?: (type: string) => void;
|
|
71
73
|
onHistoryPageChange?: (page: number) => void;
|
|
74
|
+
walletProps?: IDCWalletContentProps;
|
|
72
75
|
}
|
|
73
76
|
export declare const Marketplace: React.FC<IMarketPlaceProps>;
|
|
@@ -10,6 +10,7 @@ export interface IMarketPlaceRowsPropos {
|
|
|
10
10
|
scale?: number;
|
|
11
11
|
onMarketPlaceItemBuy?: () => void;
|
|
12
12
|
onMarketPlaceItemRemove?: () => void;
|
|
13
|
+
onDCCoinClick?: () => void;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare const MarketplaceRows: React.FC<IMarketPlaceRowsPropos>;
|
|
@@ -23,5 +24,6 @@ export interface IGroupedMarketplaceRowProps {
|
|
|
23
24
|
getDCEquivalentPrice: (goldPrice: number) => number;
|
|
24
25
|
characterId: string;
|
|
25
26
|
onBuy: (id: string) => void;
|
|
27
|
+
onDCCoinClick?: () => void;
|
|
26
28
|
}
|
|
27
29
|
export declare const GroupedMarketplaceRow: React.FC<IGroupedMarketplaceRowProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './components/CheckItem';
|
|
|
11
11
|
export * from './components/CircularController/CircularController';
|
|
12
12
|
export * from './components/CraftBook/CraftBook';
|
|
13
13
|
export * from './components/DailyTasks/DailyTasks';
|
|
14
|
+
export * from './components/DCWallet/DCWalletContent';
|
|
14
15
|
export * from './components/DCWallet/DCWalletModal';
|
|
15
16
|
export * from './components/LoginStreak/LoginStreakPanel';
|
|
16
17
|
export * from './components/DPad/JoystickDPad';
|