@rpg-engine/long-bow 0.2.50 → 0.2.52
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/components/Item/Inventory/ItemContainer.d.ts +1 -0
- package/dist/components/Item/Inventory/ItemSlot.d.ts +1 -0
- package/dist/long-bow.cjs.development.js +24 -10
- 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 +24 -10
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Inventory/ItemContainer.tsx +3 -0
- package/src/components/Item/Inventory/ItemSlot.tsx +3 -1
- package/src/components/Item/Inventory/itemContainerHelper.ts +8 -0
- package/src/components/TimeWidget/DayNightPeriod/DayNightPeriod.tsx +5 -1
- package/src/components/TimeWidget/TimeWidget.tsx +15 -16
package/dist/long-bow.esm.js
CHANGED
|
@@ -28002,6 +28002,15 @@ var generateContextMenu = function generateContextMenu(item, itemContainerType)
|
|
|
28002
28002
|
contextActionMenu = generateContextMenuListOptions(ActionsForMapContainer.Other);
|
|
28003
28003
|
break;
|
|
28004
28004
|
}
|
|
28005
|
+
var contextActionMenuDontHaveUseWith = !contextActionMenu.find(function (action) {
|
|
28006
|
+
return action.text.toLowerCase().includes('use with');
|
|
28007
|
+
});
|
|
28008
|
+
if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
|
|
28009
|
+
contextActionMenu.push({
|
|
28010
|
+
id: 'use-with',
|
|
28011
|
+
text: 'Use with...'
|
|
28012
|
+
});
|
|
28013
|
+
}
|
|
28005
28014
|
}
|
|
28006
28015
|
return contextActionMenu;
|
|
28007
28016
|
};
|
|
@@ -28028,7 +28037,9 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
28028
28037
|
_onClick = _ref.onClick,
|
|
28029
28038
|
_onSelected = _ref.onSelected,
|
|
28030
28039
|
atlasJSON = _ref.atlasJSON,
|
|
28031
|
-
atlasIMG = _ref.atlasIMG
|
|
28040
|
+
atlasIMG = _ref.atlasIMG,
|
|
28041
|
+
_ref$isContextMenuDis = _ref.isContextMenuDisabled,
|
|
28042
|
+
isContextMenuDisabled = _ref$isContextMenuDis === void 0 ? false : _ref$isContextMenuDis;
|
|
28032
28043
|
var _useState = useState(false),
|
|
28033
28044
|
isTooltipVisible = _useState[0],
|
|
28034
28045
|
setTooltipVisible = _useState[1];
|
|
@@ -28143,7 +28154,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
|
|
|
28143
28154
|
_onClick(item.type, containerType, item);
|
|
28144
28155
|
}
|
|
28145
28156
|
}
|
|
28146
|
-
}, isContextMenuVisible && contextActions && React.createElement(RelativeListMenu, {
|
|
28157
|
+
}, !isContextMenuDisabled && isContextMenuVisible && contextActions && React.createElement(RelativeListMenu, {
|
|
28147
28158
|
options: contextActions,
|
|
28148
28159
|
onSelected: function onSelected(optionId) {
|
|
28149
28160
|
setIsContextMenuVisible(false);
|
|
@@ -28793,12 +28804,15 @@ var ItemContainer = function ItemContainer(_ref) {
|
|
|
28793
28804
|
onItemClick = _ref.onItemClick,
|
|
28794
28805
|
type = _ref.type,
|
|
28795
28806
|
atlasJSON = _ref.atlasJSON,
|
|
28796
|
-
atlasIMG = _ref.atlasIMG
|
|
28807
|
+
atlasIMG = _ref.atlasIMG,
|
|
28808
|
+
_ref$disableContextMe = _ref.disableContextMenu,
|
|
28809
|
+
disableContextMenu = _ref$disableContextMe === void 0 ? false : _ref$disableContextMe;
|
|
28797
28810
|
var onRenderSlots = function onRenderSlots() {
|
|
28798
28811
|
var slots = [];
|
|
28799
28812
|
for (var i = 0; i < itemContainer.slotQty; i++) {
|
|
28800
28813
|
var _itemContainer$slots;
|
|
28801
28814
|
slots.push(React.createElement(ItemSlot, {
|
|
28815
|
+
isContextMenuDisabled: disableContextMenu,
|
|
28802
28816
|
key: i,
|
|
28803
28817
|
slotIndex: i,
|
|
28804
28818
|
item: ((_itemContainer$slots = itemContainer.slots) == null ? void 0 : _itemContainer$slots[i]) || null,
|
|
@@ -29373,10 +29387,10 @@ var DayNightPeriod = function DayNightPeriod(_ref) {
|
|
|
29373
29387
|
src: periodOfDaySrcFiles[periodOfDay]
|
|
29374
29388
|
}));
|
|
29375
29389
|
};
|
|
29376
|
-
var GifContainer = /*#__PURE__*/styled.
|
|
29390
|
+
var GifContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29377
29391
|
displayName: "DayNightPeriod__GifContainer",
|
|
29378
29392
|
componentId: "sc-10t97fw-0"
|
|
29379
|
-
})(["width:100%;"]);
|
|
29393
|
+
})(["width:100%;img{width:67%;}"]);
|
|
29380
29394
|
|
|
29381
29395
|
var img$c = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAABHCAYAAAA0qHhdAAAAAXNSR0IArs4c6QAABGRJREFUeJztnb9PGzEUx7+JMjC0Uge6tVsVdTghQP0D2qgjzGz8D8woE2LO/5CNOcwlU9WJRCgDYmWJRAYkFgak6wDv5HPsO9/P8J79WUhicr7nzz3bOV8uHbRPXOXN2x++1LUfYnh4uu8AQK+FulLy7hbHxn96vrh22tjW0b7xPVtH+87bkMbnj1/jh6f7TqfBOmKgurwy6MJ10VRuKqNylwMl7wBy3U5WuetBOhg9om6ZSRaqEtvImJ2zRfL4/GA3eXy494LJzNwBmcpc//9w7wUAMJn1ktdt5bbnaj228qw6VeqWGbctUEXNxn40Fj+2/jn5lHpel8xUd+oqcedsUajum2HkNHEiqf1oDAD4/e1HkWrYMF8uE6GTWQ+j6aryBCh2lVhUXt77bXJpP2i/+tE41e1y5uo2W1cVmfHd4rhxiXnbdZEqReiv76/jpE1q2YbOFNmUwDxsYreO9lkLvbrtJSLp+Xy5xN9/g8TBYPSIboltv0uRWXU/X1zjbnGM08t527tUC7aM1B0UbXiryE1KNGHKUu4ZqjKarpLMpAlQkcxkIxIw7xP3DLVBnzldZbISSUgXqvtwkclSJCFNqDpu0mdqOkOUJ5O1SEKSUHVWWyQzRYgkJAml7KTMzBszRYkkJAhVu1ny49rNpuAskuAaw9VtL/d0nikwY1ZybQQb+udQ+gzKZbXFtGqiq3Y63yoR6m770Rg3wyi1gK1iel1dQNbLqazsX9M2dKib1bPNi6wkbNl5M4w2tUulGIwe8fB031nrhH0RCbzGpgrVJxSEaYXfdoWCrdxE1lUNtnJ9+6PpKrmgSxUVm45IyTIB8zncnbPF2th58nMbo+kq9zUX8t5XpC4SCQSZVpkovzy4MWiHvRRJSBFaZj0z8E6xyvQlKwE5sYbMFEQXlvHSd97apNL3YtomZKYgjDKljCFFkBBzyExBBJmCCDIFEWQKIsgURJApiCBTEEGmILqA26q4b3Bsk5CZgjDKdL1/gCQkxJzI5NitNAXXtugC6HC5NL9N3tqE1cn3MGYKIiVT7V4kjCGuqLFy7WIBw61jOAdTFikxp66bPT/YXbsnm4RF2yz0Hmgy67EcLwHDmCnlKC0D99hVmcmslntQZaCYuWYlYPgWmOkeOaeXc5bB5XF+sLs2yeMs05iC+rh5uBfF0sbO17EyHSf3HkkfMzunl3P2QZWB88SHsO246JmtpBmsSuYZoMmsJ+5Egn6CQFIvlHUkrk2GKFO5ZiiJ1AVKyEogPwDj7BbgN8M1zVwBOSIBtyDYC/VBJOAeCFuhvogEigXDTqhPIoESd4LmItQ3kUC5oKxCgc1LtUkEZIsEKvx6wnsU6rNIoFpwmUKJpsVmCVT2ARAuEqgeoJNQoH6pLhLf6gU8EAnUE2QMoPDPSxSV6ypP2T499EIkUG+gzlnaND5lo0pjv5/Ztljt2l/vRALNBl2q+y2Kj92pjTYaIDXWVZVruPree4nEJhqi6ppokGfhP6xr60VVr5O+AAAAAElFTkSuQmCC';
|
|
29382
29396
|
|
|
@@ -29393,19 +29407,19 @@ var TimeWidget = function TimeWidget(_ref) {
|
|
|
29393
29407
|
var WidgetContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29394
29408
|
displayName: "TimeWidget__WidgetContainer",
|
|
29395
29409
|
componentId: "sc-1ja236h-0"
|
|
29396
|
-
})(["background-image:url(", ");background-repeat:no-repeat;width:
|
|
29410
|
+
})(["background-image:url(", ");background-size:10rem;background-repeat:no-repeat;width:10rem;position:absolute;"], img$c);
|
|
29397
29411
|
var Time = /*#__PURE__*/styled.div.withConfig({
|
|
29398
29412
|
displayName: "TimeWidget__Time",
|
|
29399
29413
|
componentId: "sc-1ja236h-1"
|
|
29400
|
-
})(["
|
|
29414
|
+
})(["top:0.75rem;right:0.5rem;position:absolute;font-size:", ";color:white;"], uiFonts.size.small);
|
|
29401
29415
|
var CloseButton$3 = /*#__PURE__*/styled.p.withConfig({
|
|
29402
29416
|
displayName: "TimeWidget__CloseButton",
|
|
29403
29417
|
componentId: "sc-1ja236h-2"
|
|
29404
|
-
})(["
|
|
29405
|
-
var DayNightContainer = /*#__PURE__*/styled.
|
|
29418
|
+
})(["position:absolute;top:-0.5rem;margin:0;right:-0.2rem;font-size:", " !important;z-index:1;"], uiFonts.size.small);
|
|
29419
|
+
var DayNightContainer = /*#__PURE__*/styled.div.withConfig({
|
|
29406
29420
|
displayName: "TimeWidget__DayNightContainer",
|
|
29407
29421
|
componentId: "sc-1ja236h-3"
|
|
29408
|
-
})(["top:-
|
|
29422
|
+
})(["margin-top:-0.3rem;margin-left:-0.3rem;"]);
|
|
29409
29423
|
|
|
29410
29424
|
var TradingItemRow = function TradingItemRow(_ref) {
|
|
29411
29425
|
var atlasIMG = _ref.atlasIMG,
|