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