@rpg-engine/long-bow 0.8.238 → 0.8.239
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 -1
- 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 +10 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/components/Item/Inventory/__tests__/itemContainerHelper.spec.ts +60 -0
- package/src/components/Item/Inventory/itemContainerHelper.ts +9 -0
- package/src/components/LoginStreak/LoginStreakPanel.tsx +1 -1
- package/src/components/LoginStreak/__tests__/LoginStreakPanel.spec.tsx +33 -0
- package/src/stories/Features/loginStreak/LoginStreakPanel.stories.tsx +16 -16
- package/src/stories/Features/quest/QuestList.stories.tsx +2 -2
package/dist/long-bow.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect, Component, useRef, useCallback, useMemo, me
|
|
|
2
2
|
import styled, { css, createGlobalStyle, keyframes } from 'styled-components';
|
|
3
3
|
import { BeatLoader } from 'react-spinners';
|
|
4
4
|
import { v4 } from 'uuid';
|
|
5
|
-
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities,
|
|
5
|
+
import { GRID_WIDTH, GRID_HEIGHT, ShortcutType, getItemTextureKeyPath, ItemContainerType, ItemType, DepotSocketEvents, ItemSocketEvents, ItemSocketEventsDisplayLabels, ItemSubType, ActionsForInventory, ActionsForEquipmentSet, ActionsForLoot, ActionsForMapContainer, ItemQualityLevel, ItemRarities, isMobile, TaskType, TaskStatus, isMobileOrTablet, RewardType, DC_TO_GOLD_SWAP_RATE, ItemSlotType, NPCSubtype, EntityAttackType, NPCAlignment, VideoGuideCategory, VideoGuideLanguage, MarketplaceBuyOrderStatus, MarketplaceAcceptedCurrency, formatDCAmount, goldToDC, MarketplaceTransactionType, CharacterClass as CharacterClass$2, QuestType, QuestStatus, getLevelFromXP, getSkillConstants, getLevelFromSPTiered, getXPForLevel, getSPForLevelTiered, MetadataType, PurchaseType, PaymentCurrency, UserAccountTypes, PeriodOfDay } from '@rpg-engine/shared';
|
|
6
6
|
export { MarketplaceAcceptedCurrency } from '@rpg-engine/shared';
|
|
7
7
|
import dayjs from 'dayjs';
|
|
8
8
|
import { ErrorBoundary as ErrorBoundary$1 } from 'react-error-boundary';
|
|
@@ -2859,6 +2859,12 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType,
|
|
|
2859
2859
|
text: "Detach Gems"
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
|
+
if (itemContainerType === ItemContainerType.Inventory && item.subType === ItemSubType.SoulGem && item.soulGem) {
|
|
2863
|
+
contextActionMenu.push({
|
|
2864
|
+
id: 'attach-soul-gem',
|
|
2865
|
+
text: 'Attach gem'
|
|
2866
|
+
});
|
|
2867
|
+
}
|
|
2862
2868
|
return contextActionMenu;
|
|
2863
2869
|
};
|
|
2864
2870
|
|
|
@@ -6275,7 +6281,9 @@ var LoginStreakPanel = function LoginStreakPanel(_ref) {
|
|
|
6275
6281
|
return React.createElement(MilestoneCard, {
|
|
6276
6282
|
key: milestone.day,
|
|
6277
6283
|
"$reached": milestone.reached
|
|
6278
|
-
}, React.createElement(MilestoneDayLabel, null, "Day ", milestone.day), React.createElement(MilestoneRewardName, null, milestone.
|
|
6284
|
+
}, React.createElement(MilestoneDayLabel, null, "Day ", milestone.day), React.createElement(MilestoneRewardName, null, milestone.rewards.map(function (reward) {
|
|
6285
|
+
return reward.quantity + "x " + reward.itemName;
|
|
6286
|
+
}).join(', ')), React.createElement(MilestoneBadge, {
|
|
6279
6287
|
"$reached": milestone.reached
|
|
6280
6288
|
}, milestone.reached ? '✓' : '○'));
|
|
6281
6289
|
})), React.createElement(MotivationalText, null, getMotivationalText(streak, isConsecutive, milestones))));
|