@rpg-engine/long-bow 0.8.237 → 0.8.240

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.
@@ -2865,6 +2865,12 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
2865
2865
  text: "Detach Gems"
2866
2866
  });
2867
2867
  }
2868
+ if (itemContainerType === shared.ItemContainerType.Inventory && item.subType === shared.ItemSubType.SoulGem && item.soulGem) {
2869
+ contextActionMenu.push({
2870
+ id: 'attach-soul-gem',
2871
+ text: 'Attach gem'
2872
+ });
2873
+ }
2868
2874
  return contextActionMenu;
2869
2875
  };
2870
2876
 
@@ -6281,7 +6287,9 @@ var LoginStreakPanel = function LoginStreakPanel(_ref) {
6281
6287
  return React__default.createElement(MilestoneCard, {
6282
6288
  key: milestone.day,
6283
6289
  "$reached": milestone.reached
6284
- }, React__default.createElement(MilestoneDayLabel, null, "Day ", milestone.day), React__default.createElement(MilestoneRewardName, null, milestone.quantity, "x ", milestone.itemName), React__default.createElement(MilestoneBadge, {
6290
+ }, React__default.createElement(MilestoneDayLabel, null, "Day ", milestone.day), React__default.createElement(MilestoneRewardName, null, milestone.rewards.map(function (reward) {
6291
+ return reward.quantity + "x " + reward.itemName;
6292
+ }).join(', ')), React__default.createElement(MilestoneBadge, {
6285
6293
  "$reached": milestone.reached
6286
6294
  }, milestone.reached ? '✓' : '○'));
6287
6295
  })), React__default.createElement(MotivationalText, null, getMotivationalText(streak, isConsecutive, milestones))));
@@ -17414,7 +17422,10 @@ var SpellInfoWrapper = function SpellInfoWrapper(_ref) {
17414
17422
  if (!isTooltipMobileVisible) setIsTooltipVisible(true);
17415
17423
  },
17416
17424
  onMouseLeave: function onMouseLeave(event) {
17417
- if (!event.currentTarget.contains(document.activeElement)) setIsTooltipVisible(false);
17425
+ var _document$activeEleme;
17426
+ if (!event.currentTarget.contains(document.activeElement) || !((_document$activeEleme = document.activeElement) != null && _document$activeEleme.matches(':focus-visible'))) {
17427
+ setIsTooltipVisible(false);
17428
+ }
17418
17429
  },
17419
17430
  onTouchStart: handleTouchStart,
17420
17431
  onTouchEnd: clearHold,
@@ -17527,15 +17538,19 @@ var Spell = function Spell(_ref) {
17527
17538
  "$unavailable": unavailable
17528
17539
  }, note)));
17529
17540
  };
17541
+ var assignmentPulse = /*#__PURE__*/styled.keyframes(["0%,100%{background-color:rgba(255,247,215,.5);}50%{background-color:rgba(255,252,235,.9);}"]);
17530
17542
  var Card$1 = /*#__PURE__*/styled__default.button.withConfig({
17531
17543
  displayName: "Spell__Card",
17532
17544
  componentId: "sc-j96fa2-0"
17533
- })(["box-sizing:border-box;display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-width:0;padding:7px 8px 8px;text-align:left;color:#392718;background:rgba(255,247,215,0.5);border:1px solid ", ";box-shadow:", ";border-radius:3px;font:inherit;cursor:pointer;transition:background .12s,border-color .12s;&:hover:not(:disabled){background:rgba(255,252,235,.9);border-color:#8a5a14;box-shadow:inset 0 0 0 1px #8a5a14;}&:focus-visible{outline:3px solid #3a2110;outline-offset:2px;}&&:disabled{cursor:default;background:rgba(113,81,49,.1);border-style:dashed;color:#392718;filter:none;}&:disabled img,&:disabled canvas{opacity:.55;}"], function (_ref2) {
17545
+ })(["box-sizing:border-box;display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-width:0;padding:7px 8px 8px;text-align:left;color:#392718;background:rgba(255,247,215,0.5);border:1px solid ", ";box-shadow:", ";border-radius:3px;font:inherit;cursor:pointer;transition:background .12s,border-color .12s;animation-name:", ";animation-duration:1.4s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;&:disabled{animation-name:none;}@media (prefers-reduced-motion:reduce){animation-name:none;}&:hover:not(:disabled){background:rgba(255,252,235,.9);border-color:#8a5a14;box-shadow:inset 0 0 0 1px #8a5a14;}&:focus-visible{outline:3px solid #3a2110;outline-offset:2px;}&&:disabled{cursor:default;background:rgba(113,81,49,.1);border-style:dashed;color:#392718;filter:none;}&:disabled img,&:disabled canvas{opacity:.55;}"], function (_ref2) {
17534
17546
  var $assigning = _ref2.$assigning;
17535
17547
  return $assigning ? '#8a5a14' : 'rgba(89, 56, 28, .4)';
17536
17548
  }, function (_ref3) {
17537
17549
  var $assigning = _ref3.$assigning;
17538
17550
  return $assigning ? 'inset 0 0 0 1px #8a5a14' : 'none';
17551
+ }, function (_ref4) {
17552
+ var $assigning = _ref4.$assigning;
17553
+ return $assigning ? assignmentPulse : 'none';
17539
17554
  });
17540
17555
  var Heading = /*#__PURE__*/styled__default.span.withConfig({
17541
17556
  displayName: "Spell__Heading",
@@ -17568,12 +17583,12 @@ var RARITY_INK = (_RARITY_INK = {}, _RARITY_INK[shared.ItemRarities.Common] = '#
17568
17583
  var Rarity$1 = /*#__PURE__*/styled__default.span.withConfig({
17569
17584
  displayName: "Spell__Rarity",
17570
17585
  componentId: "sc-j96fa2-6"
17571
- })(["display:inline-block;flex:none;padding:1px 5px;border:1px solid ", ";border-radius:2px;background:rgba(255,250,229,.7);&&{font-size:9px;line-height:1.3;color:", ";text-shadow:none;}"], function (_ref4) {
17572
- var $rarity = _ref4.$rarity;
17573
- return RARITY_INK[$rarity];
17574
- }, function (_ref5) {
17586
+ })(["display:inline-block;flex:none;padding:1px 5px;border:1px solid ", ";border-radius:2px;background:rgba(255,250,229,.7);&&{font-size:9px;line-height:1.3;color:", ";text-shadow:none;}"], function (_ref5) {
17575
17587
  var $rarity = _ref5.$rarity;
17576
17588
  return RARITY_INK[$rarity];
17589
+ }, function (_ref6) {
17590
+ var $rarity = _ref6.$rarity;
17591
+ return RARITY_INK[$rarity];
17577
17592
  });
17578
17593
  var Description$8 = /*#__PURE__*/styled__default.span.withConfig({
17579
17594
  displayName: "Spell__Description",
@@ -17589,8 +17604,8 @@ var Facts = /*#__PURE__*/styled__default.span.withConfig({
17589
17604
  var Requirement = /*#__PURE__*/styled__default.span.withConfig({
17590
17605
  displayName: "Spell__Requirement",
17591
17606
  componentId: "sc-j96fa2-9"
17592
- })(["display:block;&&{font-size:9px;line-height:1.5;color:#392718;text-shadow:none;}", ""], function (_ref6) {
17593
- var $unmet = _ref6.$unmet;
17607
+ })(["display:block;&&{font-size:9px;line-height:1.5;color:#392718;text-shadow:none;}", ""], function (_ref7) {
17608
+ var $unmet = _ref7.$unmet;
17594
17609
  return $unmet && styled.css(["padding:3px 6px;background:rgba(138,42,34,.12);border-left:3px solid #8a2a22;border-radius:2px;&&{color:#8a2a22;}"]);
17595
17610
  });
17596
17611
  var Stats = /*#__PURE__*/styled__default.span.withConfig({
@@ -17612,18 +17627,18 @@ var STAT_TONES = {
17612
17627
  var Value$2 = /*#__PURE__*/styled__default.span.withConfig({
17613
17628
  displayName: "Spell__Value",
17614
17629
  componentId: "sc-j96fa2-13"
17615
- })(["&&{font-size:10px;line-height:1.4;color:", ";text-shadow:none;}"], function (_ref7) {
17616
- var $tone = _ref7.$tone;
17630
+ })(["&&{font-size:10px;line-height:1.4;color:", ";text-shadow:none;}"], function (_ref8) {
17631
+ var $tone = _ref8.$tone;
17617
17632
  return $tone ? STAT_TONES[$tone] : '#2a1708';
17618
17633
  });
17619
17634
  var Status$1 = /*#__PURE__*/styled__default.span.withConfig({
17620
17635
  displayName: "Spell__Status",
17621
17636
  componentId: "sc-j96fa2-14"
17622
- })(["display:flex;align-items:center;gap:6px;margin-top:4px;&&{font-size:9px;line-height:1.5;color:", ";text-shadow:none;}&::before{content:'';flex:none;width:6px;height:6px;background:currentColor;clip-path:", ";}"], function (_ref8) {
17623
- var $unavailable = _ref8.$unavailable;
17624
- return $unavailable ? '#8a2a22' : '#4b4420';
17625
- }, function (_ref9) {
17637
+ })(["display:flex;align-items:center;gap:6px;margin-top:4px;&&{font-size:9px;line-height:1.5;color:", ";text-shadow:none;}&::before{content:'';flex:none;width:6px;height:6px;background:currentColor;clip-path:", ";}"], function (_ref9) {
17626
17638
  var $unavailable = _ref9.$unavailable;
17639
+ return $unavailable ? '#8a2a22' : '#4b4420';
17640
+ }, function (_ref10) {
17641
+ var $unavailable = _ref10.$unavailable;
17627
17642
  return $unavailable ? 'none' : 'polygon(0 0, 100% 50%, 0 100%)';
17628
17643
  });
17629
17644