@rpg-engine/long-bow 0.2.49 → 0.2.51
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 +8 -5
- 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 +8 -5
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Item/Inventory/itemContainerHelper.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/long-bow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.51",
|
|
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.
|
|
86
|
+
"@rpg-engine/shared": "^0.5.82",
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"fs-extra": "^10.1.0",
|
|
89
89
|
"lodash": "^4.17.21",
|
|
@@ -142,10 +142,14 @@ export const generateContextMenu = (
|
|
|
142
142
|
);
|
|
143
143
|
break;
|
|
144
144
|
}
|
|
145
|
-
}
|
|
146
145
|
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
const contextActionMenuDontHaveUseWith = !contextActionMenu.find(action =>
|
|
147
|
+
action.text.toLowerCase().includes('use with')
|
|
148
|
+
);
|
|
149
|
+
|
|
150
|
+
if (item.hasUseWith && contextActionMenuDontHaveUseWith) {
|
|
151
|
+
contextActionMenu.push({ id: 'use-with', text: 'Use with...' });
|
|
152
|
+
}
|
|
149
153
|
}
|
|
150
154
|
|
|
151
155
|
return contextActionMenu;
|