@rpg-engine/long-bow 0.8.203 → 0.8.205

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.
Files changed (43) hide show
  1. package/dist/components/Item/Inventory/ErrorBoundary.d.ts +2 -0
  2. package/dist/components/Marketplace/BuyOrderPanel.d.ts +2 -2
  3. package/dist/components/Marketplace/BuyOrderRows.d.ts +4 -4
  4. package/dist/components/Marketplace/HistoryPanel.d.ts +2 -2
  5. package/dist/components/Marketplace/MarketplaceRows.d.ts +2 -0
  6. package/dist/components/shared/MMORPGNumber.d.ts +6 -0
  7. package/dist/long-bow.cjs.development.js +465 -34317
  8. package/dist/long-bow.cjs.development.js.map +1 -1
  9. package/dist/long-bow.cjs.production.min.js +1 -1
  10. package/dist/long-bow.cjs.production.min.js.map +1 -1
  11. package/dist/long-bow.esm.js +466 -34318
  12. package/dist/long-bow.esm.js.map +1 -1
  13. package/dist/utils/numberUtils.d.ts +7 -0
  14. package/package.json +1 -1
  15. package/src/components/DCWallet/DCWalletContent.tsx +5 -3
  16. package/src/components/Item/Inventory/ErrorBoundary.tsx +25 -8
  17. package/src/components/Item/Inventory/ItemPropertyColorSelector.tsx +3 -1
  18. package/src/components/Marketplace/BuyOrderPanel.tsx +2 -2
  19. package/src/components/Marketplace/BuyOrderRows.tsx +13 -7
  20. package/src/components/Marketplace/CharacterDetailModal.tsx +99 -17
  21. package/src/components/Marketplace/CharacterListingModal.tsx +2 -1
  22. package/src/components/Marketplace/GroupedRowContainer.tsx +10 -10
  23. package/src/components/Marketplace/HistoryPanel.tsx +5 -5
  24. package/src/components/Marketplace/MarketplaceBuyModal.tsx +4 -4
  25. package/src/components/Marketplace/MarketplaceRows.tsx +13 -7
  26. package/src/components/Marketplace/__test__/CharacterDetailModal.spec.tsx +137 -0
  27. package/src/components/Store/CartView.tsx +2 -1
  28. package/src/components/Store/FeaturedBanner.tsx +1 -0
  29. package/src/components/Store/PaymentMethodModal.tsx +11 -3
  30. package/src/components/Store/StoreCharacterSkinRow.tsx +9 -3
  31. package/src/components/Store/StoreItemDetails.tsx +9 -1
  32. package/src/components/Store/StoreItemRow.tsx +13 -3
  33. package/src/components/Store/sections/StorePacksSection.tsx +7 -0
  34. package/src/components/Store/sections/StoreRedeemSection.tsx +2 -1
  35. package/src/components/shared/DCRateStrip.tsx +3 -2
  36. package/src/components/shared/MMORPGNumber.tsx +22 -0
  37. package/src/stories/Features/marketplace/CharacterDetailModal.stories.tsx +69 -15
  38. package/src/stories/Features/marketplace/CharacterMarketplace.stories.tsx +105 -11
  39. package/src/stories/Features/store/Store.stories.tsx +125 -35
  40. package/src/stories/Features/trading/Marketplace.stories.tsx +8 -4
  41. package/src/utils/__test__/atlasUtils.spec.ts +15 -0
  42. package/src/utils/atlasUtils.ts +78 -0
  43. package/src/utils/numberUtils.ts +31 -0
@@ -1,6 +1,8 @@
1
1
  import React, { Component, ErrorInfo, ReactNode } from 'react';
2
2
  interface Props {
3
3
  children?: ReactNode;
4
+ atlasJSON?: any;
5
+ atlasIMG?: any;
4
6
  }
5
7
  interface State {
6
8
  hasError: boolean;
@@ -1,8 +1,8 @@
1
1
  import { IMarketplaceBlueprintSummary, IMarketplaceBuyOrderItem } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  export interface IBuyOrderPanelProps {
4
- atlasJSON?: any;
5
- atlasIMG?: any;
4
+ atlasJSON: any;
5
+ atlasIMG: any;
6
6
  selectedBlueprint?: IMarketplaceBlueprintSummary;
7
7
  onOpenBlueprintSearch: () => void;
8
8
  onCloseDetails?: () => void;
@@ -2,8 +2,8 @@ import { IMarketplaceBuyOrderItem } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  export interface IBuyOrderRowProps {
4
4
  buyOrder: IMarketplaceBuyOrderItem;
5
- atlasJSON?: any;
6
- atlasIMG?: any;
5
+ atlasJSON: any;
6
+ atlasIMG: any;
7
7
  isOwn?: boolean;
8
8
  onCancel?: (buyOrderId: string) => void;
9
9
  onFulfill?: (buyOrderId: string) => void;
@@ -14,8 +14,8 @@ export declare const BuyOrderRow: React.FC<IBuyOrderRowProps>;
14
14
  export interface IGroupedBuyOrderRowProps {
15
15
  bestOrder: IMarketplaceBuyOrderItem;
16
16
  otherOrders: IMarketplaceBuyOrderItem[];
17
- atlasJSON?: any;
18
- atlasIMG?: any;
17
+ atlasJSON: any;
18
+ atlasIMG: any;
19
19
  isOwn?: boolean;
20
20
  onCancel?: (buyOrderId: string) => void;
21
21
  onFulfill?: (buyOrderId: string) => void;
@@ -8,8 +8,8 @@ export interface IHistoryPanelProps {
8
8
  selectedType: string;
9
9
  onTypeChange: (type: string) => void;
10
10
  onPageChange: (page: number) => void;
11
- atlasJSON?: any;
12
- atlasIMG?: any;
11
+ atlasJSON: any;
12
+ atlasIMG: any;
13
13
  dcToGoldSwapRate?: number;
14
14
  }
15
15
  declare const HISTORY_ITEMS_PER_PAGE = 10;
@@ -13,6 +13,8 @@ export interface IMarketPlaceRowsPropos {
13
13
  onMarketPlaceItemRemove?: () => void;
14
14
  onDCCoinClick?: () => void;
15
15
  disabled?: boolean;
16
+ /** If true, adds padding-right to details to avoid overlapping with grouped badges */
17
+ $isGrouped?: boolean;
16
18
  }
17
19
  export declare const MarketplaceRows: React.FC<IMarketPlaceRowsPropos>;
18
20
  export interface IGroupedMarketplaceRowProps {
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IMMORPGNumberProps {
3
+ value: number;
4
+ }
5
+ export declare const MMORPGNumber: React.FC<IMMORPGNumberProps>;
6
+ export {};