@rpg-engine/long-bow 0.8.139 → 0.8.141

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.
@@ -4,9 +4,9 @@ export interface IManagmentPanelProps {
4
4
  items: IMarketplaceItem[];
5
5
  atlasJSON: any;
6
6
  atlasIMG: any;
7
- onChangeNameInput: (value: string) => void;
8
7
  equipmentSet?: IEquipmentSet | null;
9
8
  availableGold: number;
9
+ dcBalance?: number;
10
10
  onMarketPlaceItemRemove?: (marketPlaceItemId: string) => void;
11
11
  selectedItemToSell: IItem | null;
12
12
  onSelectedItemToSellRemove: (item: IItem) => void;
@@ -1,6 +1,7 @@
1
1
  import { IEquipmentSet, IItem, IMarketplaceItem } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  import { MarketplacePaymentMethod } from './MarketplaceBuyModal';
4
+ import { MarketplaceAcceptedCurrency } from './MarketplaceSettingsPanel';
4
5
  export interface IMarketPlaceProps {
5
6
  items: IMarketplaceItem[];
6
7
  atlasJSON: any;
@@ -32,5 +33,7 @@ export interface IMarketPlaceProps {
32
33
  onPageChange: (page: number) => void;
33
34
  dcBalance?: number;
34
35
  dcToGoldSwapRate?: number;
36
+ acceptedCurrency?: MarketplaceAcceptedCurrency;
37
+ onAcceptedCurrencyChange?: (value: MarketplaceAcceptedCurrency) => void;
35
38
  }
36
39
  export declare const Marketplace: React.FC<IMarketPlaceProps>;
@@ -1,4 +1,4 @@
1
- import { IEquipmentSet, IItem } from '@rpg-engine/shared';
1
+ import { IEquipmentSet, IItem, IMarketplaceItem } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  export interface IMarketPlaceRowsPropos {
4
4
  atlasJSON: any;
@@ -13,3 +13,15 @@ export interface IMarketPlaceRowsPropos {
13
13
  disabled?: boolean;
14
14
  }
15
15
  export declare const MarketplaceRows: React.FC<IMarketPlaceRowsPropos>;
16
+ export interface IGroupedMarketplaceRowProps {
17
+ bestListing: IMarketplaceItem;
18
+ otherListings: IMarketplaceItem[];
19
+ atlasJSON: any;
20
+ atlasIMG: any;
21
+ equipmentSet?: IEquipmentSet | null;
22
+ dcToGoldSwapRate?: number;
23
+ getDCEquivalentPrice: (goldPrice: number) => number;
24
+ characterId: string;
25
+ onBuy: (id: string) => void;
26
+ }
27
+ export declare const GroupedMarketplaceRow: React.FC<IGroupedMarketplaceRowProps>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare type MarketplaceAcceptedCurrency = 'gold' | 'gold_or_dc';
3
+ export interface IMarketplaceSettingsPanelProps {
4
+ acceptedCurrency: MarketplaceAcceptedCurrency;
5
+ onAcceptedCurrencyChange: (value: MarketplaceAcceptedCurrency) => void;
6
+ }
7
+ export declare const MarketplaceSettingsPanel: React.FC<IMarketplaceSettingsPanelProps>;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ export interface ITabOption {
3
+ id: string;
4
+ label: React.ReactNode;
5
+ icon?: React.ReactNode;
6
+ }
7
+ export interface ITabsProps {
8
+ options: ITabOption[];
9
+ activeTabId: string;
10
+ onTabChange: (tabId: string) => void;
11
+ className?: string;
12
+ }
13
+ export declare const Tabs: React.FC<ITabsProps>;
@@ -0,0 +1 @@
1
+ export * from './Tabs';
package/dist/index.d.ts CHANGED
@@ -37,6 +37,7 @@ export * from './components/ListMenu';
37
37
  export * from './components/Marketplace/Marketplace';
38
38
  export * from './components/Marketplace/MarketplaceBuyModal';
39
39
  export * from './components/Marketplace/MarketplaceRows';
40
+ export * from './components/Marketplace/MarketplaceSettingsPanel';
40
41
  export * from './components/Multitab/TabBody';
41
42
  export * from './components/Multitab/TabsContainer';
42
43
  export * from './components/NPCDialog/NPCDialog';