@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/dist/components/Chat/Chat.d.ts +2 -0
- package/dist/long-bow.cjs.development.js +6 -2
- 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 +6 -2
- package/dist/long-bow.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Chat/Chat.tsx +6 -0
package/package.json
CHANGED
|
@@ -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">
|