@rpg-engine/long-bow 0.2.94 → 0.2.96
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 +5 -9
- 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 +5 -9
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Character/CharacterSelection.tsx +6 -11
- package/src/components/DraggableContainer.tsx +1 -1
- package/src/components/SkillsContainer.tsx +1 -2
- package/src/hooks/useOutsideAlerter.ts +2 -2
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.96",
|
|
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.6.
|
|
86
|
+
"@rpg-engine/shared": "^0.6.49",
|
|
87
87
|
"dayjs": "^1.11.2",
|
|
88
88
|
"fs-extra": "^10.1.0",
|
|
89
89
|
"is-mobile": "^3.1.1",
|
|
@@ -24,15 +24,12 @@ export const CharacterSelection: React.FC<ICharacterSelectionProps> = ({
|
|
|
24
24
|
availableCharacters,
|
|
25
25
|
onChange,
|
|
26
26
|
}) => {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
name: item.name,
|
|
34
|
-
};
|
|
35
|
-
});
|
|
27
|
+
const propertySelectValues = availableCharacters.map(item => {
|
|
28
|
+
return {
|
|
29
|
+
id: item.textureKey,
|
|
30
|
+
name: item.name,
|
|
31
|
+
};
|
|
32
|
+
});
|
|
36
33
|
|
|
37
34
|
const [selectedValue, setSelectedValue] = useState<IPropertiesProps>();
|
|
38
35
|
const [selectedSpriteKey, setSelectedSpriteKey] = useState('');
|
|
@@ -41,8 +38,6 @@ export const CharacterSelection: React.FC<ICharacterSelectionProps> = ({
|
|
|
41
38
|
const textureKey = selectedValue ? selectedValue.id : '';
|
|
42
39
|
const spriteKey = textureKey ? textureKey + '/down/standing/0.png' : '';
|
|
43
40
|
|
|
44
|
-
console.log(selectedValue);
|
|
45
|
-
|
|
46
41
|
if (spriteKey === selectedSpriteKey) {
|
|
47
42
|
return;
|
|
48
43
|
}
|
|
@@ -67,7 +67,6 @@ export const SkillsContainer: React.FC<ISkillContainerProps> = ({
|
|
|
67
67
|
for (const [key, value] of Object.entries(skillCategory.values)) {
|
|
68
68
|
//@ts-ignore
|
|
69
69
|
const skillDetails = (skill[key] as unknown) as ISkillDetails;
|
|
70
|
-
|
|
71
70
|
|
|
72
71
|
output.push(
|
|
73
72
|
<SkillProgressBar
|
|
@@ -164,5 +163,5 @@ const CloseButton = styled.div`
|
|
|
164
163
|
right: 2px;
|
|
165
164
|
color: white;
|
|
166
165
|
z-index: 22;
|
|
167
|
-
font-size:
|
|
166
|
+
font-size: 1.1rem;
|
|
168
167
|
`;
|
|
@@ -16,10 +16,10 @@ export function useOutsideClick(ref: any, id: string) {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
// Bind the event listener
|
|
19
|
-
document.addEventListener('
|
|
19
|
+
document.addEventListener('pointerdown', handleClickOutside);
|
|
20
20
|
return () => {
|
|
21
21
|
// Unbind the event listener on clean up
|
|
22
|
-
document.removeEventListener('
|
|
22
|
+
document.removeEventListener('pointerdown', handleClickOutside);
|
|
23
23
|
};
|
|
24
24
|
}, [ref]);
|
|
25
25
|
}
|