@rpg-engine/long-bow 0.8.159 → 0.8.160
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/Marketplace/Marketplace.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +9 -5
- 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 +10 -6
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DCWallet/DCWalletContent.tsx +1 -2
- package/src/components/Marketplace/BlueprintSearchModal.tsx +2 -2
- package/src/components/Marketplace/Marketplace.tsx +4 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, Component, useRef, useCallback, useMemo, me
|
|
|
2
2
|
import styled, { css, keyframes, createGlobalStyle } from 'styled-components';
|
|
3
3
|
import { BeatLoader } from 'react-spinners';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
|
-
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, isMobileOrTablet, RewardType,
|
|
5
|
+
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, ItemSubType, isMobile, TaskType, TaskStatus, isMobileOrTablet, RewardType, ItemSlotType, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, MarketplaceBuyOrderStatus, formatDCAmount, goldToDC, MarketplaceTransactionType, MarketplaceAcceptedCurrency, CharacterClass, QuestStatus, getLevelFromXP, getSkillConstants, getLevelFromSPTiered, getXPForLevel, getSPForLevelTiered, MetadataType, PurchaseType, UserAccountTypes, PaymentCurrency, PeriodOfDay } from '@rpg-engine/shared';
|
|
6
6
|
export { MarketplaceAcceptedCurrency } from '@rpg-engine/shared';
|
|
7
7
|
import dayjs from 'dayjs';
|
|
8
8
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
@@ -39732,7 +39732,7 @@ var DCWalletContent = function DCWalletContent(_ref) {
|
|
|
39732
39732
|
onRequestHistory: onRequestHistory
|
|
39733
39733
|
})
|
|
39734
39734
|
}];
|
|
39735
|
-
return React.createElement(WalletContainer, null, React.createElement(BalanceHeader, null, React.createElement(BalanceTop, null, React.createElement(BalanceBlock, null, React.createElement(BalanceLabel, null, "DC BALANCE"), React.createElement(BalanceAmount, null,
|
|
39735
|
+
return React.createElement(WalletContainer, null, React.createElement(BalanceHeader, null, React.createElement(BalanceTop, null, React.createElement(BalanceBlock, null, React.createElement(BalanceLabel, null, "DC BALANCE"), React.createElement(BalanceAmount, null, dcBalance.toLocaleString(), " ", React.createElement(BalanceDC, null, "DC")), React.createElement(BalanceEquiv, null, "\u2248 $", usdValue, " USD \xA0\xB7\xA0 ", goldValue, " Gold")), onBuyDC && React.createElement(BuyButton, {
|
|
39736
39736
|
onPointerDown: onBuyDC,
|
|
39737
39737
|
role: "button",
|
|
39738
39738
|
tabIndex: 0,
|
|
@@ -44641,7 +44641,9 @@ var typeOptions = /*#__PURE__*/[{
|
|
|
44641
44641
|
id: 1,
|
|
44642
44642
|
value: '',
|
|
44643
44643
|
option: 'All Types'
|
|
44644
|
-
}].concat( /*#__PURE__*/Object.keys(
|
|
44644
|
+
}].concat( /*#__PURE__*/Object.keys(ItemSubType).filter(function (t) {
|
|
44645
|
+
return t !== 'DeadBody';
|
|
44646
|
+
}).map(function (t, index) {
|
|
44645
44647
|
return {
|
|
44646
44648
|
id: index + 2,
|
|
44647
44649
|
value: t,
|
|
@@ -46959,7 +46961,9 @@ var Marketplace = function Marketplace(props) {
|
|
|
46959
46961
|
historySelectedType = _props$historySelecte === void 0 ? 'All' : _props$historySelecte,
|
|
46960
46962
|
onHistoryTypeChange = props.onHistoryTypeChange,
|
|
46961
46963
|
onHistoryPageChange = props.onHistoryPageChange,
|
|
46962
|
-
walletProps = props.walletProps
|
|
46964
|
+
walletProps = props.walletProps,
|
|
46965
|
+
_props$showWalletTab = props.showWalletTab,
|
|
46966
|
+
showWalletTab = _props$showWalletTab === void 0 ? true : _props$showWalletTab;
|
|
46963
46967
|
var _useState = useState('marketplace'),
|
|
46964
46968
|
activeTab = _useState[0],
|
|
46965
46969
|
setActiveTab = _useState[1];
|
|
@@ -47022,7 +47026,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
47022
47026
|
width: 18,
|
|
47023
47027
|
height: 18
|
|
47024
47028
|
})
|
|
47025
|
-
}].concat(walletProps ? [{
|
|
47029
|
+
}].concat(showWalletTab && walletProps ? [{
|
|
47026
47030
|
id: 'wallet',
|
|
47027
47031
|
label: 'Wallet',
|
|
47028
47032
|
icon: React.createElement(Wallet, {
|
|
@@ -47090,7 +47094,7 @@ var Marketplace = function Marketplace(props) {
|
|
|
47090
47094
|
atlasJSON: props.atlasJSON,
|
|
47091
47095
|
atlasIMG: props.atlasIMG,
|
|
47092
47096
|
dcToGoldSwapRate: props.dcToGoldSwapRate
|
|
47093
|
-
}), activeTab === 'wallet' && walletProps && React.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
|
|
47097
|
+
}), activeTab === 'wallet' && showWalletTab && walletProps && React.createElement(DCWalletContent, Object.assign({}, walletProps)), activeTab === 'settings' && React.createElement(MarketplaceSettingsPanel, {
|
|
47094
47098
|
acceptedCurrency: acceptedCurrency,
|
|
47095
47099
|
onAcceptedCurrencyChange: handleCurrencyChange
|
|
47096
47100
|
}), showSharedPager && React.createElement(PagerContainer$3, null, React.createElement(Pager, Object.assign({}, props))));
|