@rpg-engine/long-bow 0.8.135 → 0.8.137

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,18 @@
1
+ import React from 'react';
2
+ export interface IDCTransaction {
3
+ _id: string;
4
+ type: string;
5
+ amount: number;
6
+ balanceAfter: number;
7
+ relatedCharacterName?: string;
8
+ note?: string;
9
+ createdAt: string;
10
+ }
11
+ export interface IDCHistoryPanelProps {
12
+ transactions: IDCTransaction[];
13
+ totalPages: number;
14
+ currentPage: number;
15
+ loading: boolean;
16
+ onRequestHistory: (page: number, type?: string) => void;
17
+ }
18
+ export declare const DCHistoryPanel: React.FC<IDCHistoryPanelProps>;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ export interface IDCTransferCharacterResult {
3
+ _id: string;
4
+ name: string;
5
+ }
6
+ export interface IDCTransferPanelProps {
7
+ dcBalance: number;
8
+ transferLoading: boolean;
9
+ transferResult: {
10
+ success: boolean;
11
+ message: string;
12
+ } | null;
13
+ onSendTransfer: (recipientName: string, amount: number) => void;
14
+ onClearTransferResult: () => void;
15
+ characterName?: string;
16
+ onInputFocus?: () => void;
17
+ onInputBlur?: () => void;
18
+ onSearchCharacter?: (name: string) => void;
19
+ searchResults?: IDCTransferCharacterResult[];
20
+ }
21
+ export declare const DCTransferPanel: React.FC<IDCTransferPanelProps>;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { IDCTransaction } from './DCHistoryPanel';
3
+ import { IDCTransferCharacterResult } from './DCTransferPanel';
4
+ export interface IDCWalletModalProps {
5
+ dcBalance: number;
6
+ 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
+ }
28
+ export declare const DCWalletModal: React.FC<IDCWalletModalProps>;
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/DCWalletModal';
14
15
  export * from './components/LoginStreak/LoginStreakPanel';
15
16
  export * from './components/DPad/JoystickDPad';
16
17
  export * from './components/DraggableContainer';