@rpg-engine/long-bow 0.2.51 → 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.
@@ -28037,7 +28037,9 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
28037
28037
  _onClick = _ref.onClick,
28038
28038
  _onSelected = _ref.onSelected,
28039
28039
  atlasJSON = _ref.atlasJSON,
28040
- atlasIMG = _ref.atlasIMG;
28040
+ atlasIMG = _ref.atlasIMG,
28041
+ _ref$isContextMenuDis = _ref.isContextMenuDisabled,
28042
+ isContextMenuDisabled = _ref$isContextMenuDis === void 0 ? false : _ref$isContextMenuDis;
28041
28043
  var _useState = useState(false),
28042
28044
  isTooltipVisible = _useState[0],
28043
28045
  setTooltipVisible = _useState[1];
@@ -28152,7 +28154,7 @@ var ItemSlot = /*#__PURE__*/observer(function (_ref) {
28152
28154
  _onClick(item.type, containerType, item);
28153
28155
  }
28154
28156
  }
28155
- }, isContextMenuVisible && contextActions && React.createElement(RelativeListMenu, {
28157
+ }, !isContextMenuDisabled && isContextMenuVisible && contextActions && React.createElement(RelativeListMenu, {
28156
28158
  options: contextActions,
28157
28159
  onSelected: function onSelected(optionId) {
28158
28160
  setIsContextMenuVisible(false);
@@ -28802,12 +28804,15 @@ var ItemContainer = function ItemContainer(_ref) {
28802
28804
  onItemClick = _ref.onItemClick,
28803
28805
  type = _ref.type,
28804
28806
  atlasJSON = _ref.atlasJSON,
28805
- atlasIMG = _ref.atlasIMG;
28807
+ atlasIMG = _ref.atlasIMG,
28808
+ _ref$disableContextMe = _ref.disableContextMenu,
28809
+ disableContextMenu = _ref$disableContextMe === void 0 ? false : _ref$disableContextMe;
28806
28810
  var onRenderSlots = function onRenderSlots() {
28807
28811
  var slots = [];
28808
28812
  for (var i = 0; i < itemContainer.slotQty; i++) {
28809
28813
  var _itemContainer$slots;
28810
28814
  slots.push(React.createElement(ItemSlot, {
28815
+ isContextMenuDisabled: disableContextMenu,
28811
28816
  key: i,
28812
28817
  slotIndex: i,
28813
28818
  item: ((_itemContainer$slots = itemContainer.slots) == null ? void 0 : _itemContainer$slots[i]) || null,