@rpg-engine/long-bow 0.8.153 → 0.8.154
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/long-bow.cjs.development.js +9 -4
- 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 +9 -4
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Marketplace/BlueprintTable.tsx +10 -3
- package/src/components/Marketplace/HistoryPanel.tsx +2 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -44507,12 +44507,18 @@ var TabButton$1 = /*#__PURE__*/styled.button.withConfig({
|
|
|
44507
44507
|
return $active ? '#ffffff' : '#888888';
|
|
44508
44508
|
});
|
|
44509
44509
|
|
|
44510
|
+
var BLOCKED_SUBTYPES = /*#__PURE__*/new Set([ItemSubType.DeadBody]);
|
|
44510
44511
|
var BlueprintTable = function BlueprintTable(_ref) {
|
|
44511
44512
|
var blueprints = _ref.blueprints,
|
|
44512
44513
|
atlasJSON = _ref.atlasJSON,
|
|
44513
44514
|
atlasIMG = _ref.atlasIMG,
|
|
44514
44515
|
onSelect = _ref.onSelect;
|
|
44515
|
-
|
|
44516
|
+
var filteredBlueprints = useMemo(function () {
|
|
44517
|
+
return blueprints.filter(function (b) {
|
|
44518
|
+
return !BLOCKED_SUBTYPES.has(b.subType);
|
|
44519
|
+
});
|
|
44520
|
+
}, [blueprints]);
|
|
44521
|
+
return React.createElement(React.Fragment, null, React.createElement(ResultsHeader, null, React.createElement("span", null), React.createElement(ColName, null, "Name"), React.createElement(ColType, null, "Type"), React.createElement(ColTier, null, "Tier")), filteredBlueprints.map(function (blueprint) {
|
|
44516
44522
|
return React.createElement(ResultRow, {
|
|
44517
44523
|
key: blueprint.key,
|
|
44518
44524
|
"$selectable": !!onSelect,
|
|
@@ -46412,7 +46418,6 @@ var HistoryPanel = function HistoryPanel(_ref) {
|
|
|
46412
46418
|
})), React.createElement(ScrollArea$1, {
|
|
46413
46419
|
id: "MarketContainer"
|
|
46414
46420
|
}, transactions.length === 0 ? React.createElement(EmptyState$4, null, "No transactions yet") : transactions.map(function (tx, index) {
|
|
46415
|
-
var _tx$metadata;
|
|
46416
46421
|
return React.createElement(RowWrapper$1, {
|
|
46417
46422
|
key: index,
|
|
46418
46423
|
"$even": index % 2 === 0,
|
|
@@ -46421,9 +46426,9 @@ var HistoryPanel = function HistoryPanel(_ref) {
|
|
|
46421
46426
|
maxLines: 1,
|
|
46422
46427
|
maxWidth: "200px",
|
|
46423
46428
|
fontSize: "10px"
|
|
46424
|
-
}, tx.itemName)) : React.createElement(ItemName$3, null, React.createElement(NoItemText, null, tx.type === MarketplaceTransactionType.Withdrawal ? 'Gold Withdrawal' : '--')), React.createElement(MetaRow$1, null, React.createElement(Label$5, {
|
|
46429
|
+
}, tx.qty && tx.qty > 1 ? tx.qty + "x " + tx.itemName : tx.itemName)) : React.createElement(ItemName$3, null, React.createElement(NoItemText, null, tx.type === MarketplaceTransactionType.Withdrawal ? 'Gold Withdrawal' : '--')), React.createElement(MetaRow$1, null, React.createElement(Label$5, {
|
|
46425
46430
|
"$bg": TRANSACTION_TYPE_COLORS$1[tx.type]
|
|
46426
|
-
}, formatTransactionLabel(tx.type)), React.createElement(SecondaryText, null, formatDate(tx.createdAt)), tx.counterpartName && React.createElement(SecondaryText, null, "w/ ", tx.counterpartName)))), tx.goldAmount > 0 && React.createElement(PriceSection, null,
|
|
46431
|
+
}, formatTransactionLabel(tx.type)), React.createElement(SecondaryText, null, formatDate(tx.createdAt)), tx.counterpartName && React.createElement(SecondaryText, null, "w/ ", tx.counterpartName)))), tx.goldAmount > 0 && React.createElement(PriceSection, null, tx.currency === 'dc' ?
|
|
46427
46432
|
// Show DC only
|
|
46428
46433
|
React.createElement(DCPriceRow$1, null, atlasIMG && atlasJSON && React.createElement(DCCoinWrapper$1, null, React.createElement(SimpleTooltip, {
|
|
46429
46434
|
content: "Definya Coin",
|