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