@rpg-engine/long-bow 0.8.153 → 0.8.155

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.
@@ -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
- 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")), blueprints.map(function (blueprint) {
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,
@@ -45991,7 +45997,9 @@ var BuyPanel = function BuyPanel(_ref) {
45991
45997
  openBuyOrdersTotal = _ref$openBuyOrdersTot === void 0 ? 0 : _ref$openBuyOrdersTot,
45992
45998
  _ref$openBuyOrdersPag = _ref.openBuyOrdersPage,
45993
45999
  openBuyOrdersPage = _ref$openBuyOrdersPag === void 0 ? 1 : _ref$openBuyOrdersPag,
45994
- onOpenBuyOrdersPageChange = _ref.onOpenBuyOrdersPageChange;
46000
+ onOpenBuyOrdersPageChange = _ref.onOpenBuyOrdersPageChange,
46001
+ _ref$isLoading = _ref.isLoading,
46002
+ isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading;
45995
46003
  var _useState = useState(''),
45996
46004
  name = _useState[0],
45997
46005
  setName = _useState[1];
@@ -46230,7 +46238,7 @@ var BuyPanel = function BuyPanel(_ref) {
46230
46238
  }))))), React.createElement(ItemComponentScrollWrapper$1, {
46231
46239
  id: "MarketContainer",
46232
46240
  ref: itemsContainer
46233
- }, !hasVisibleContent ? React.createElement(LoadingState, null, React.createElement(Spinner$2, null), React.createElement(LoadingText$1, null, "Loading marketplace...")) : React.createElement(React.Fragment, null, showSellSection && React.createElement(MarketSection, null, React.createElement(SectionHeader, null, React.createElement(SectionTitle$2, null, "Sell Offers"), React.createElement(SectionMeta, null, groupedItems.length, " groups")), groupedItems.length === 0 ? React.createElement(SectionEmpty, null, "No sell offers found.") : groupedItems.map(function (_ref2) {
46241
+ }, isLoading ? React.createElement(LoadingState, null, React.createElement(Spinner$2, null), React.createElement(LoadingText$1, null, "Loading marketplace...")) : !hasVisibleContent ? React.createElement(LoadingState, null, React.createElement(LoadingText$1, null, "No items listed.")) : React.createElement(React.Fragment, null, showSellSection && React.createElement(MarketSection, null, React.createElement(SectionHeader, null, React.createElement(SectionTitle$2, null, "Sell Offers"), React.createElement(SectionMeta, null, groupedItems.length, " groups")), groupedItems.length === 0 ? React.createElement(SectionEmpty, null, "No sell offers found.") : groupedItems.map(function (_ref2) {
46234
46242
  var bestListing = _ref2.bestListing,
46235
46243
  otherListings = _ref2.otherListings;
46236
46244
  return React.createElement(GroupedMarketplaceRow, {
@@ -46412,7 +46420,6 @@ var HistoryPanel = function HistoryPanel(_ref) {
46412
46420
  })), React.createElement(ScrollArea$1, {
46413
46421
  id: "MarketContainer"
46414
46422
  }, transactions.length === 0 ? React.createElement(EmptyState$4, null, "No transactions yet") : transactions.map(function (tx, index) {
46415
- var _tx$metadata;
46416
46423
  return React.createElement(RowWrapper$1, {
46417
46424
  key: index,
46418
46425
  "$even": index % 2 === 0,
@@ -46421,9 +46428,9 @@ var HistoryPanel = function HistoryPanel(_ref) {
46421
46428
  maxLines: 1,
46422
46429
  maxWidth: "200px",
46423
46430
  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, {
46431
+ }, 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
46432
  "$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, ((_tx$metadata = tx.metadata) == null ? void 0 : _tx$metadata['currency']) === 'dc' ?
46433
+ }, 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
46434
  // Show DC only
46428
46435
  React.createElement(DCPriceRow$1, null, atlasIMG && atlasJSON && React.createElement(DCCoinWrapper$1, null, React.createElement(SimpleTooltip, {
46429
46436
  content: "Definya Coin",