@tellescope/chat 1.190.0 → 1.192.0
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/lib/cjs/components.d.ts +2 -1
- package/lib/cjs/components.d.ts.map +1 -1
- package/lib/cjs/components.js +2 -2
- package/lib/cjs/components.js.map +1 -1
- package/lib/esm/components.d.ts +2 -1
- package/lib/esm/components.d.ts.map +1 -1
- package/lib/esm/components.js +2 -2
- package/lib/esm/components.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/components.tsx +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.192.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"@fontsource/roboto": "^4.5.1",
|
|
35
35
|
"@mui/icons-material": "^5.0.1",
|
|
36
36
|
"@mui/material": "^5.0.2",
|
|
37
|
-
"@tellescope/constants": "^1.
|
|
38
|
-
"@tellescope/react-components": "^1.
|
|
39
|
-
"@tellescope/sdk": "^1.
|
|
40
|
-
"@tellescope/types-client": "^1.
|
|
41
|
-
"@tellescope/types-models": "^1.
|
|
42
|
-
"@tellescope/types-utilities": "^1.
|
|
43
|
-
"@tellescope/utilities": "^1.
|
|
37
|
+
"@tellescope/constants": "^1.192.0",
|
|
38
|
+
"@tellescope/react-components": "^1.192.0",
|
|
39
|
+
"@tellescope/sdk": "^1.192.0",
|
|
40
|
+
"@tellescope/types-client": "^1.192.0",
|
|
41
|
+
"@tellescope/types-models": "^1.192.0",
|
|
42
|
+
"@tellescope/types-utilities": "^1.192.0",
|
|
43
|
+
"@tellescope/utilities": "^1.192.0",
|
|
44
44
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
45
45
|
"@typescript-eslint/parser": "^4.33.0",
|
|
46
46
|
"eslint": "^7.32.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
53
53
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "2b5f692acec9d31bd3e7ec8b41a08f2a39278239",
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
}
|
package/src/components.tsx
CHANGED
|
@@ -39,6 +39,7 @@ interface SendMessage_T {
|
|
|
39
39
|
maxRows?: number,
|
|
40
40
|
size?: 'small',
|
|
41
41
|
getAttachments?: () => Promise<ChatAttachment[]>
|
|
42
|
+
inputRef?: React.Ref<HTMLInputElement>
|
|
42
43
|
}
|
|
43
44
|
export const SendMessage = ({
|
|
44
45
|
roomId,
|
|
@@ -50,7 +51,8 @@ export const SendMessage = ({
|
|
|
50
51
|
multiline,
|
|
51
52
|
maxRows,
|
|
52
53
|
size,
|
|
53
|
-
getAttachments
|
|
54
|
+
getAttachments,
|
|
55
|
+
inputRef,
|
|
54
56
|
}: SendMessage_T) => {
|
|
55
57
|
const [message, setMessage] = useState('')
|
|
56
58
|
const [sending, setSending] = useState(false)
|
|
@@ -89,7 +91,7 @@ export const SendMessage = ({
|
|
|
89
91
|
<Flex row flex={1} alignContent="center" style={style}>
|
|
90
92
|
<Flex column flex={1}>
|
|
91
93
|
<TextField variant="outlined" value={message} disabled={sending}
|
|
92
|
-
size={size}
|
|
94
|
+
size={size} ref={inputRef}
|
|
93
95
|
onChange={e => setMessage(e.target.value)}
|
|
94
96
|
aria-label="Enter a message"
|
|
95
97
|
multiline={multiline} maxRows={maxRows}
|