@rpg-engine/long-bow 0.2.53 → 0.2.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpg-engine/long-bow",
3
- "version": "0.2.53",
3
+ "version": "0.2.55",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -83,7 +83,7 @@
83
83
  },
84
84
  "dependencies": {
85
85
  "@rollup/plugin-image": "^2.1.1",
86
- "@rpg-engine/shared": "^0.5.82",
86
+ "@rpg-engine/shared": "^0.5.88",
87
87
  "dayjs": "^1.11.2",
88
88
  "fs-extra": "^10.1.0",
89
89
  "lodash": "^4.17.21",
@@ -203,8 +203,11 @@ export const ItemSlot: React.FC<IProps> = observer(
203
203
  onClick={() => {
204
204
  setTooltipVisible(false);
205
205
 
206
- if (item && !isContextMenuDisabled) {
207
- setIsContextMenuVisible(!isContextMenuVisible);
206
+ if (item) {
207
+ if (!isContextMenuDisabled) {
208
+ setIsContextMenuVisible(!isContextMenuVisible);
209
+ }
210
+
208
211
  onClick(item.type, containerType, item);
209
212
  }
210
213
  }}
@@ -49,9 +49,9 @@ export const generateContextMenu = (
49
49
  ActionsForInventory.Consumable
50
50
  );
51
51
  break;
52
- case ItemType.CraftMaterial:
52
+ case ItemType.CraftingResource:
53
53
  contextActionMenu = generateContextMenuListOptions(
54
- ActionsForInventory.CraftMaterial
54
+ ActionsForInventory.CraftingResource
55
55
  );
56
56
  break;
57
57
  case ItemType.Tool:
@@ -96,9 +96,9 @@ export const generateContextMenu = (
96
96
  ActionsForLoot.Consumable
97
97
  );
98
98
  break;
99
- case ItemType.CraftMaterial:
99
+ case ItemType.CraftingResource:
100
100
  contextActionMenu = generateContextMenuListOptions(
101
- ActionsForLoot.CraftMaterial
101
+ ActionsForLoot.CraftingResource
102
102
  );
103
103
  break;
104
104
  case ItemType.Tool:
@@ -126,9 +126,9 @@ export const generateContextMenu = (
126
126
  ActionsForMapContainer.Consumable
127
127
  );
128
128
  break;
129
- case ItemType.CraftMaterial:
129
+ case ItemType.CraftingResource:
130
130
  contextActionMenu = generateContextMenuListOptions(
131
- ActionsForMapContainer.CraftMaterial
131
+ ActionsForMapContainer.CraftingResource
132
132
  );
133
133
  break;
134
134
  case ItemType.Tool: