@rpg-engine/long-bow 0.8.156 → 0.8.158

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.
@@ -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 { IDCTransaction } from './DCHistoryPanel';
3
- import { IDCTransferCharacterResult } from './DCTransferPanel';
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>;
@@ -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 {
@@ -70,5 +71,6 @@ export interface IMarketPlaceProps {
70
71
  historySelectedType?: string;
71
72
  onHistoryTypeChange?: (type: string) => void;
72
73
  onHistoryPageChange?: (page: number) => void;
74
+ walletProps?: IDCWalletContentProps;
73
75
  }
74
76
  export declare const Marketplace: React.FC<IMarketPlaceProps>;
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';