@rpg-engine/long-bow 0.2.72 → 0.2.74

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.72",
3
+ "version": "0.2.74",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,6 +1,7 @@
1
1
  import { GRID_HEIGHT, GRID_WIDTH } from '@rpg-engine/shared';
2
2
  import React from 'react';
3
3
  import styled from 'styled-components';
4
+ import { ErrorBoundary } from '../Item/Inventory/ErrorBoundary';
4
5
 
5
6
  interface IProps {
6
7
  atlasJSON: any;
@@ -35,23 +36,25 @@ export const SpriteFromAtlas: React.FC<IProps> = ({
35
36
  const spriteData = atlasJSON.frames[spriteKey];
36
37
 
37
38
  return (
38
- <Container
39
- width={width}
40
- height={height}
41
- hasHover={grayScale}
42
- onClick={onClick}
43
- style={containerStyle}
44
- >
45
- <ImgSprite
46
- className="sprite-from-atlas-img"
47
- atlasIMG={atlasIMG}
48
- frame={spriteData.frame}
49
- scale={imgScale}
50
- grayScale={grayScale}
51
- opacity={opacity}
52
- style={imgStyle}
53
- />
54
- </Container>
39
+ <ErrorBoundary>
40
+ <Container
41
+ width={width}
42
+ height={height}
43
+ hasHover={grayScale}
44
+ onClick={onClick}
45
+ style={containerStyle}
46
+ >
47
+ <ImgSprite
48
+ className="sprite-from-atlas-img"
49
+ atlasIMG={atlasIMG}
50
+ frame={spriteData.frame}
51
+ scale={imgScale}
52
+ grayScale={grayScale}
53
+ opacity={opacity}
54
+ style={imgStyle}
55
+ />
56
+ </Container>
57
+ </ErrorBoundary>
55
58
  );
56
59
  };
57
60
 
package/src/index.tsx CHANGED
@@ -9,9 +9,9 @@ export * from './components/DropdownSelectorContainer';
9
9
  export * from './components/Equipment/EquipmentSet';
10
10
  export * from './components/HistoryDialog';
11
11
  export * from './components/Input';
12
+ export { ErrorBoundary } from './components/Item/Inventory/ErrorBoundary';
12
13
  export * from './components/Item/Inventory/ItemContainer';
13
14
  export * from './components/Item/Inventory/ItemSlot';
14
- export * from './components/itemSelector/ItemSelector';
15
15
  export * from './components/ListMenu';
16
16
  export * from './components/NPCDialog/NPCDialog';
17
17
  export * from './components/NPCDialog/NPCMultiDialog';
@@ -20,16 +20,17 @@ export * from './components/ProgressBar';
20
20
  export * from './components/PropertySelect/PropertySelect';
21
21
  export * from './components/QuestInfo/QuestInfo';
22
22
  export * from './components/QuestList';
23
- export * from './components/RadioButton';
24
- export * from './components/RangeSlider';
25
23
  export * from './components/RPGUIContainer';
26
24
  export * from './components/RPGUIRoot';
27
- export * from './components/shared/SpriteFromAtlas';
25
+ export * from './components/RadioButton';
26
+ export * from './components/RangeSlider';
28
27
  export * from './components/SkillProgressBar';
29
28
  export * from './components/SkillsContainer';
30
29
  export * from './components/TextArea';
31
30
  export * from './components/TimeWidget/TimeWidget';
32
31
  export * from './components/TradingMenu/TradingMenu';
33
32
  export * from './components/Truncate';
33
+ export * from './components/itemSelector/ItemSelector';
34
+ export * from './components/shared/SpriteFromAtlas';
34
35
  export * from './components/typography/DynamicText';
35
36
  export { useEventListener } from './hooks/useEventListener';