@rpg-engine/long-bow 0.2.64 → 0.2.65

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.64",
3
+ "version": "0.2.65",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -18,6 +18,8 @@ export interface IChatProps {
18
18
  chatMessages: IChatMessage[];
19
19
  onSendChatMessage: (message: string) => void;
20
20
  onCloseButton: () => void;
21
+ onFocus?: () => void;
22
+ onBlur?: () => void;
21
23
  opacity?: number;
22
24
  width?: string;
23
25
  height?: string;
@@ -30,6 +32,8 @@ export const Chat: React.FC<IChatProps> = ({
30
32
  width = '100%',
31
33
  height = '250px',
32
34
  onCloseButton,
35
+ onFocus,
36
+ onBlur,
33
37
  }) => {
34
38
  const [message, setMessage] = useState('');
35
39
 
@@ -113,6 +117,8 @@ export const Chat: React.FC<IChatProps> = ({
113
117
  className="chat-input dark-background"
114
118
  type="text"
115
119
  autoComplete="off"
120
+ onFocus={onFocus}
121
+ onBlur={onBlur}
116
122
  />
117
123
  </Column>
118
124
  <Column justifyContent="flex-end">