@rpg-engine/long-bow 0.8.207 → 0.8.208

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.
@@ -13347,6 +13347,12 @@ var rarityColor$1 = function rarityColor(rarity) {
13347
13347
  var _RARITY_COLORS$toLowe;
13348
13348
  return (_RARITY_COLORS$toLowe = RARITY_COLORS$1[(rarity != null ? rarity : '').toLowerCase()]) != null ? _RARITY_COLORS$toLowe : RARITY_COLORS$1.common;
13349
13349
  };
13350
+ var rarityGlowColor = function rarityGlowColor(rarity) {
13351
+ var _RARITY_COLORS$key;
13352
+ var key = (rarity != null ? rarity : '').toLowerCase();
13353
+ if (!key || key === 'common') return null;
13354
+ return (_RARITY_COLORS$key = RARITY_COLORS$1[key]) != null ? _RARITY_COLORS$key : null;
13355
+ };
13350
13356
  var formatEquipmentSlot = function formatEquipmentSlot(slot) {
13351
13357
  if (!slot) return 'Unknown';
13352
13358
  return slot.replace(/([a-z0-9])([A-Z])/g, '$1 $2').replace(/[_-]+/g, ' ').replace(/\b\w/g, function (_char) {
@@ -13393,7 +13399,7 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
13393
13399
  var a = _ref2[1];
13394
13400
  var b = _ref3[1];
13395
13401
  return b - a;
13396
- }).slice(0, 8);
13402
+ });
13397
13403
  return React.createElement(ModalPortal, null, isConfirming && React.createElement(ConfirmModal, {
13398
13404
  onConfirm: handleConfirm,
13399
13405
  onClose: function onClose() {
@@ -13411,7 +13417,7 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
13411
13417
  onPointerDown: handleClose,
13412
13418
  "aria-label": "Close",
13413
13419
  type: "button"
13414
- }, React.createElement(FaTimes, null))), React.createElement(HeroSection, null, React.createElement(SpriteContainer$5, null, React.createElement(SpriteFromAtlas, {
13420
+ }, React.createElement(FaTimes, null))), React.createElement(ScrollableBody, null, React.createElement(HeroSection, null, React.createElement(SpriteContainer$5, null, React.createElement(SpriteFromAtlas, {
13415
13421
  atlasIMG: characterAtlasIMG,
13416
13422
  atlasJSON: characterAtlasJSON,
13417
13423
  spriteKey: snap.textureKey + "/down/standing/0.png",
@@ -13421,7 +13427,7 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
13421
13427
  centered: true
13422
13428
  })), React.createElement(HeroInfo, null, React.createElement(CharacterName$1, null, snap.name || 'Unknown'), React.createElement(CharacterClass, null, "Lv.", snap.level, " \xB7 ", snap["class"]), React.createElement(CharacterOrigin, null, snap.race, " \xB7 ", snap.faction), React.createElement(ModeBadge, {
13423
13429
  "$hardcore": ((_snap$mode = snap.mode) == null ? void 0 : _snap$mode.toLowerCase()) === 'hardcore'
13424
- }, snap.mode || 'Standard'))), React.createElement(Divider, null), React.createElement(MetaColumns, null, topSkills.length > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Skills"), React.createElement(SkillsList, null, topSkills.map(function (_ref4) {
13430
+ }, snap.mode || 'Standard'), snap.gold != null && snap.gold > 0 && React.createElement(GoldRow, null, React.createElement(GoldLabel, null, "GOLD"), React.createElement(GoldAmount$1, null, snap.gold.toLocaleString())))), React.createElement(Divider, null), React.createElement(MetaColumns, null, topSkills.length > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Skills"), React.createElement(SkillsList, null, topSkills.map(function (_ref4) {
13425
13431
  var name = _ref4[0],
13426
13432
  value = _ref4[1];
13427
13433
  return React.createElement(SkillRow, {
@@ -13430,7 +13436,9 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
13430
13436
  }))), ((_snap$equipment = snap.equipment) == null ? void 0 : _snap$equipment.length) > 0 && React.createElement(Section$3, null, React.createElement(SectionTitle$3, null, "Equipment"), React.createElement(EquipmentList, null, snap.equipment.map(function (eq, i) {
13431
13437
  return React.createElement(EquipmentRow, {
13432
13438
  key: i
13433
- }, React.createElement(EquipmentSprite, null, React.createElement(SpriteFromAtlas, {
13439
+ }, React.createElement(EquipmentSprite, {
13440
+ "$rarity": eq.rarity
13441
+ }, React.createElement(SpriteFromAtlas, {
13434
13442
  atlasIMG: atlasIMG,
13435
13443
  atlasJSON: atlasJSON,
13436
13444
  spriteKey: eq.itemKey,
@@ -13438,10 +13446,16 @@ var CharacterDetailModal = function CharacterDetailModal(_ref) {
13438
13446
  width: 32,
13439
13447
  height: 32,
13440
13448
  centered: true
13441
- })), React.createElement(EquipMeta, null, React.createElement(EquipName, null, eq.itemName), React.createElement(EquipDetails, null, React.createElement(EquipSlot, null, formatEquipmentSlot(eq.slot)), React.createElement(RarityBadge, {
13449
+ }), eq.attachedGems && eq.attachedGems.length > 0 && React.createElement(GemRow, null, eq.attachedGems.map(function (gem, gi) {
13450
+ var _gemColors$gem$key;
13451
+ return React.createElement(GemDot, {
13452
+ key: gi,
13453
+ "$color": (_gemColors$gem$key = gemColors[gem.key]) != null ? _gemColors$gem$key : '#fff'
13454
+ });
13455
+ }))), React.createElement(EquipMeta, null, React.createElement(EquipName, null, eq.itemName), React.createElement(EquipDetails, null, React.createElement(EquipSlot, null, formatEquipmentSlot(eq.slot)), React.createElement(RarityBadge, {
13442
13456
  "$rarity": eq.rarity
13443
13457
  }, eq.rarity || 'Common'))));
13444
- })))), React.createElement(Divider, null), React.createElement(Footer$1, null, React.createElement(SellerInfo, null, "Listed by ", listing.listedByCharacterName), React.createElement(FooterActions, null, React.createElement(PriceDisplay, null, React.createElement(DCCoinWrapper$2, null, React.createElement(SpriteFromAtlas, {
13458
+ }))))), React.createElement(FooterDivider, null), React.createElement(Footer$1, null, React.createElement(SellerInfo, null, "Listed by ", listing.listedByCharacterName), React.createElement(FooterActions, null, React.createElement(PriceDisplay, null, React.createElement(DCCoinWrapper$2, null, React.createElement(SpriteFromAtlas, {
13445
13459
  atlasIMG: atlasIMG,
13446
13460
  atlasJSON: atlasJSON,
13447
13461
  spriteKey: "others/definya-coin.png",
@@ -13469,7 +13483,7 @@ var ModalContainer$5 = /*#__PURE__*/styled.div.withConfig({
13469
13483
  var ModalContent$5 = /*#__PURE__*/styled.div.withConfig({
13470
13484
  displayName: "CharacterDetailModal__ModalContent",
13471
13485
  componentId: "sc-1kdn1l6-2"
13472
- })(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px;width:580px;max-width:96%;max-height:85dvh;display:flex;flex-direction:column;gap:14px;overflow-y:auto;overflow-x:hidden;pointer-events:auto;animation:", " 0.15s ease-out;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.2);border-radius:4px;}&::-webkit-scrollbar-thumb{background:rgba(245,158,11,0.3);border-radius:4px;}"], scaleIn$2);
13486
+ })(["background:#1a1a2e;border:2px solid #f59e0b;border-radius:8px;padding:20px 24px 16px;width:580px;max-width:96%;max-height:85dvh;display:flex;flex-direction:column;gap:14px;overflow:hidden;pointer-events:auto;animation:", " 0.15s ease-out;"], scaleIn$2);
13473
13487
  var Header$b = /*#__PURE__*/styled.div.withConfig({
13474
13488
  displayName: "CharacterDetailModal__Header",
13475
13489
  componentId: "sc-1kdn1l6-3"
@@ -13520,103 +13534,141 @@ var Divider = /*#__PURE__*/styled.hr.withConfig({
13520
13534
  displayName: "CharacterDetailModal__Divider",
13521
13535
  componentId: "sc-1kdn1l6-13"
13522
13536
  })(["border:none;border-top:1px solid rgba(255,255,255,0.06);margin:0;flex-shrink:0;"]);
13537
+ var FooterDivider = /*#__PURE__*/styled(Divider).withConfig({
13538
+ displayName: "CharacterDetailModal__FooterDivider",
13539
+ componentId: "sc-1kdn1l6-14"
13540
+ })([""]);
13541
+ var ScrollableBody = /*#__PURE__*/styled.div.withConfig({
13542
+ displayName: "CharacterDetailModal__ScrollableBody",
13543
+ componentId: "sc-1kdn1l6-15"
13544
+ })(["flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:14px;min-height:0;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:rgba(0,0,0,0.2);border-radius:4px;}&::-webkit-scrollbar-thumb{background:rgba(245,158,11,0.3);border-radius:4px;}"]);
13523
13545
  var Section$3 = /*#__PURE__*/styled.div.withConfig({
13524
13546
  displayName: "CharacterDetailModal__Section",
13525
- componentId: "sc-1kdn1l6-14"
13547
+ componentId: "sc-1kdn1l6-16"
13526
13548
  })(["display:flex;flex-direction:column;gap:8px;"]);
13527
13549
  var SectionTitle$3 = /*#__PURE__*/styled.span.withConfig({
13528
13550
  displayName: "CharacterDetailModal__SectionTitle",
13529
- componentId: "sc-1kdn1l6-15"
13551
+ componentId: "sc-1kdn1l6-17"
13530
13552
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.45rem !important;color:#f59e0b !important;text-transform:uppercase;letter-spacing:1px;"]);
13531
13553
  var MetaColumns = /*#__PURE__*/styled.div.withConfig({
13532
13554
  displayName: "CharacterDetailModal__MetaColumns",
13533
- componentId: "sc-1kdn1l6-16"
13555
+ componentId: "sc-1kdn1l6-18"
13534
13556
  })(["display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;@media (max-width:640px){grid-template-columns:1fr;}"]);
13535
13557
  var SkillsList = /*#__PURE__*/styled.div.withConfig({
13536
13558
  displayName: "CharacterDetailModal__SkillsList",
13537
- componentId: "sc-1kdn1l6-17"
13559
+ componentId: "sc-1kdn1l6-19"
13538
13560
  })(["display:flex;flex-direction:column;gap:4px;"]);
13539
13561
  var SkillRow = /*#__PURE__*/styled.div.withConfig({
13540
13562
  displayName: "CharacterDetailModal__SkillRow",
13541
- componentId: "sc-1kdn1l6-18"
13563
+ componentId: "sc-1kdn1l6-20"
13542
13564
  })(["display:flex;justify-content:space-between;align-items:center;gap:8px;"]);
13543
13565
  var SkillName = /*#__PURE__*/styled.span.withConfig({
13544
13566
  displayName: "CharacterDetailModal__SkillName",
13545
- componentId: "sc-1kdn1l6-19"
13567
+ componentId: "sc-1kdn1l6-21"
13546
13568
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#9ca3af !important;text-transform:capitalize;"]);
13547
13569
  var SkillValue = /*#__PURE__*/styled.span.withConfig({
13548
13570
  displayName: "CharacterDetailModal__SkillValue",
13549
- componentId: "sc-1kdn1l6-20"
13571
+ componentId: "sc-1kdn1l6-22"
13550
13572
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#fef08a !important;"]);
13551
13573
  var EquipmentList = /*#__PURE__*/styled.div.withConfig({
13552
13574
  displayName: "CharacterDetailModal__EquipmentList",
13553
- componentId: "sc-1kdn1l6-21"
13575
+ componentId: "sc-1kdn1l6-23"
13554
13576
  })(["display:flex;flex-direction:column;gap:5px;"]);
13555
13577
  var EquipmentRow = /*#__PURE__*/styled.div.withConfig({
13556
13578
  displayName: "CharacterDetailModal__EquipmentRow",
13557
- componentId: "sc-1kdn1l6-22"
13579
+ componentId: "sc-1kdn1l6-24"
13558
13580
  })(["display:flex;align-items:center;gap:8px;padding:5px 8px;background:rgba(255,255,255,0.02);border:1px solid rgba(255,255,255,0.05);border-radius:4px;min-width:0;"]);
13559
13581
  var EquipmentSprite = /*#__PURE__*/styled.div.withConfig({
13560
13582
  displayName: "CharacterDetailModal__EquipmentSprite",
13561
- componentId: "sc-1kdn1l6-23"
13562
- })(["display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;"]);
13583
+ componentId: "sc-1kdn1l6-25"
13584
+ })(["position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border-radius:3px;", ""], function (_ref7) {
13585
+ var $rarity = _ref7.$rarity;
13586
+ var color = rarityGlowColor($rarity);
13587
+ return color ? "box-shadow: 0 0 4px 3px " + color + " inset, 0 0 6px 2px " + color + ";" : '';
13588
+ });
13589
+ var GemRow = /*#__PURE__*/styled.div.withConfig({
13590
+ displayName: "CharacterDetailModal__GemRow",
13591
+ componentId: "sc-1kdn1l6-26"
13592
+ })(["position:absolute;bottom:-1px;left:0;display:flex;gap:1px;pointer-events:none;"]);
13593
+ var GemDot = /*#__PURE__*/styled.div.withConfig({
13594
+ displayName: "CharacterDetailModal__GemDot",
13595
+ componentId: "sc-1kdn1l6-27"
13596
+ })(["width:5px;height:5px;border-radius:1px;transform:rotate(45deg);background:radial-gradient( circle at 30% 30%,rgba(255,255,255,0.8),transparent 40% ),linear-gradient(45deg,", ",rgba(255,255,255,0.2));border:1px solid rgba(0,0,0,0.6);box-shadow:0 0 3px ", ";"], function (_ref8) {
13597
+ var $color = _ref8.$color;
13598
+ return $color;
13599
+ }, function (_ref9) {
13600
+ var $color = _ref9.$color;
13601
+ return $color;
13602
+ });
13603
+ var GoldRow = /*#__PURE__*/styled.div.withConfig({
13604
+ displayName: "CharacterDetailModal__GoldRow",
13605
+ componentId: "sc-1kdn1l6-28"
13606
+ })(["display:flex;align-items:center;gap:4px;margin-top:2px;"]);
13607
+ var GoldLabel = /*#__PURE__*/styled.span.withConfig({
13608
+ displayName: "CharacterDetailModal__GoldLabel",
13609
+ componentId: "sc-1kdn1l6-29"
13610
+ })(["font-family:'Press Start 2P',cursive !important;font-size:0.35rem !important;color:#6b7280 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
13611
+ var GoldAmount$1 = /*#__PURE__*/styled.span.withConfig({
13612
+ displayName: "CharacterDetailModal__GoldAmount",
13613
+ componentId: "sc-1kdn1l6-30"
13614
+ })(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#fde68a !important;"]);
13563
13615
  var EquipMeta = /*#__PURE__*/styled.div.withConfig({
13564
13616
  displayName: "CharacterDetailModal__EquipMeta",
13565
- componentId: "sc-1kdn1l6-24"
13617
+ componentId: "sc-1kdn1l6-31"
13566
13618
  })(["display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;"]);
13567
13619
  var EquipDetails = /*#__PURE__*/styled.div.withConfig({
13568
13620
  displayName: "CharacterDetailModal__EquipDetails",
13569
- componentId: "sc-1kdn1l6-25"
13621
+ componentId: "sc-1kdn1l6-32"
13570
13622
  })(["display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;"]);
13571
13623
  var EquipSlot = /*#__PURE__*/styled.span.withConfig({
13572
13624
  displayName: "CharacterDetailModal__EquipSlot",
13573
- componentId: "sc-1kdn1l6-26"
13625
+ componentId: "sc-1kdn1l6-33"
13574
13626
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.34rem !important;color:#6b7280 !important;text-transform:capitalize;min-width:0;"]);
13575
13627
  var EquipName = /*#__PURE__*/styled.span.withConfig({
13576
13628
  displayName: "CharacterDetailModal__EquipName",
13577
- componentId: "sc-1kdn1l6-27"
13629
+ componentId: "sc-1kdn1l6-34"
13578
13630
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#d1d5db !important;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]);
13579
13631
  var RarityBadge = /*#__PURE__*/styled.span.withConfig({
13580
13632
  displayName: "CharacterDetailModal__RarityBadge",
13581
- componentId: "sc-1kdn1l6-28"
13582
- })(["font-family:'Press Start 2P',cursive !important;font-size:0.32rem !important;color:", " !important;border:1px solid ", "44;border-radius:2px;padding:1px 4px;text-transform:uppercase;flex-shrink:0;"], function (_ref7) {
13583
- var $rarity = _ref7.$rarity;
13633
+ componentId: "sc-1kdn1l6-35"
13634
+ })(["font-family:'Press Start 2P',cursive !important;font-size:0.32rem !important;color:", " !important;border:1px solid ", "44;border-radius:2px;padding:1px 4px;text-transform:uppercase;flex-shrink:0;"], function (_ref10) {
13635
+ var $rarity = _ref10.$rarity;
13584
13636
  return rarityColor$1($rarity);
13585
- }, function (_ref8) {
13586
- var $rarity = _ref8.$rarity;
13637
+ }, function (_ref11) {
13638
+ var $rarity = _ref11.$rarity;
13587
13639
  return rarityColor$1($rarity);
13588
13640
  });
13589
13641
  var Footer$1 = /*#__PURE__*/styled.div.withConfig({
13590
13642
  displayName: "CharacterDetailModal__Footer",
13591
- componentId: "sc-1kdn1l6-29"
13643
+ componentId: "sc-1kdn1l6-36"
13592
13644
  })(["display:flex;flex-direction:column;gap:8px;flex-shrink:0;"]);
13593
13645
  var SellerInfo = /*#__PURE__*/styled.span.withConfig({
13594
13646
  displayName: "CharacterDetailModal__SellerInfo",
13595
- componentId: "sc-1kdn1l6-30"
13647
+ componentId: "sc-1kdn1l6-37"
13596
13648
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.38rem !important;color:#6b7280 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
13597
13649
  var FooterActions = /*#__PURE__*/styled.div.withConfig({
13598
13650
  displayName: "CharacterDetailModal__FooterActions",
13599
- componentId: "sc-1kdn1l6-31"
13651
+ componentId: "sc-1kdn1l6-38"
13600
13652
  })(["display:flex;align-items:center;justify-content:space-between;gap:12px;@media (max-width:640px){flex-direction:column;align-items:stretch;}"]);
13601
13653
  var PriceDisplay = /*#__PURE__*/styled.div.withConfig({
13602
13654
  displayName: "CharacterDetailModal__PriceDisplay",
13603
- componentId: "sc-1kdn1l6-32"
13655
+ componentId: "sc-1kdn1l6-39"
13604
13656
  })(["display:flex;align-items:center;gap:6px;line-height:1;"]);
13605
13657
  var DCCoinWrapper$2 = /*#__PURE__*/styled.span.withConfig({
13606
13658
  displayName: "CharacterDetailModal__DCCoinWrapper",
13607
- componentId: "sc-1kdn1l6-33"
13659
+ componentId: "sc-1kdn1l6-40"
13608
13660
  })(["display:flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0;"]);
13609
13661
  var PriceAmount = /*#__PURE__*/styled.span.withConfig({
13610
13662
  displayName: "CharacterDetailModal__PriceAmount",
13611
- componentId: "sc-1kdn1l6-34"
13663
+ componentId: "sc-1kdn1l6-41"
13612
13664
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.7rem !important;color:#fef08a !important;"]);
13613
13665
  var BuyBtn = /*#__PURE__*/styled(CTAButton).withConfig({
13614
13666
  displayName: "CharacterDetailModal__BuyBtn",
13615
- componentId: "sc-1kdn1l6-35"
13667
+ componentId: "sc-1kdn1l6-42"
13616
13668
  })(["flex-shrink:0;padding:10px 18px;height:34px;span{font-size:0.6rem;}"]);
13617
13669
  var PendingNotice = /*#__PURE__*/styled.span.withConfig({
13618
13670
  displayName: "CharacterDetailModal__PendingNotice",
13619
- componentId: "sc-1kdn1l6-36"
13671
+ componentId: "sc-1kdn1l6-43"
13620
13672
  })(["font-family:'Press Start 2P',cursive !important;font-size:0.35rem !important;color:#ef4444 !important;text-transform:uppercase;letter-spacing:0.5px;"]);
13621
13673
 
13622
13674
  var CharacterMarketplacePanel = function CharacterMarketplacePanel(_ref) {