@tellescope/chat 0.0.87 → 0.0.90
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/chat.d.ts +3 -1
- package/lib/cjs/chat.d.ts.map +1 -1
- package/lib/cjs/chat.js +2 -2
- package/lib/cjs/chat.js.map +1 -1
- package/lib/esm/chat.d.ts +3 -1
- package/lib/esm/chat.d.ts.map +1 -1
- package/lib/esm/chat.js +2 -2
- package/lib/esm/chat.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/chat.tsx +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tellescope/chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"@fontsource/roboto": "^4.5.1",
|
|
34
34
|
"@mui/icons-material": "^5.0.1",
|
|
35
35
|
"@mui/material": "^5.0.2",
|
|
36
|
-
"@tellescope/constants": "^0.0.
|
|
37
|
-
"@tellescope/react-components": "^0.0.
|
|
38
|
-
"@tellescope/sdk": "^0.0.
|
|
39
|
-
"@tellescope/types-client": "^0.0.
|
|
40
|
-
"@tellescope/types-models": "^0.0.
|
|
41
|
-
"@tellescope/types-utilities": "^0.0.
|
|
42
|
-
"@tellescope/utilities": "^0.0.
|
|
36
|
+
"@tellescope/constants": "^0.0.90",
|
|
37
|
+
"@tellescope/react-components": "^0.0.90",
|
|
38
|
+
"@tellescope/sdk": "^0.0.90",
|
|
39
|
+
"@tellescope/types-client": "^0.0.90",
|
|
40
|
+
"@tellescope/types-models": "^0.0.90",
|
|
41
|
+
"@tellescope/types-utilities": "^0.0.90",
|
|
42
|
+
"@tellescope/utilities": "^0.0.90",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
44
44
|
"@typescript-eslint/parser": "^4.33.0",
|
|
45
45
|
"eslint": "^7.32.0",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"nodemon": "^2.0.13"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"react": "^17.0.
|
|
51
|
-
"react-dom": "^17.0.
|
|
50
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
51
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "9aa8e9373e1484523baf8f43a5c3a7e0b6adb929",
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
}
|
package/src/chat.tsx
CHANGED
|
@@ -363,6 +363,8 @@ interface SendMessage_T {
|
|
|
363
363
|
|
|
364
364
|
// web only
|
|
365
365
|
sendOnEnterPress?: boolean,
|
|
366
|
+
multiline?: boolean,
|
|
367
|
+
maxRows?: number,
|
|
366
368
|
}
|
|
367
369
|
export const SendMessage = ({
|
|
368
370
|
roomId,
|
|
@@ -372,6 +374,8 @@ export const SendMessage = ({
|
|
|
372
374
|
placeholderText="Enter a message",
|
|
373
375
|
style={},
|
|
374
376
|
sendOnEnterPress,
|
|
377
|
+
multiline,
|
|
378
|
+
maxRows,
|
|
375
379
|
}: SendMessage_T) => {
|
|
376
380
|
const [message, setMessage] = useState('')
|
|
377
381
|
const [sending, setSending] = useState(false)
|
|
@@ -408,6 +412,7 @@ export const SendMessage = ({
|
|
|
408
412
|
<Flex column flex={1}>
|
|
409
413
|
<TextField variant="outlined" value={message} onChange={setMessage} disabled={sending}
|
|
410
414
|
aria-label="Enter a message"
|
|
415
|
+
multiline={multiline} maxRows={maxRows}
|
|
411
416
|
placeholder={placeholderText}
|
|
412
417
|
onFocus={() => setChatFocused(true)}
|
|
413
418
|
onBlur={() => setChatFocused(false)}
|