@tellescope/chat 1.160.1 → 1.162.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tellescope/chat",
3
- "version": "1.160.1",
3
+ "version": "1.162.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.160.1",
38
- "@tellescope/react-components": "^1.160.1",
39
- "@tellescope/sdk": "^1.160.1",
40
- "@tellescope/types-client": "^1.160.1",
41
- "@tellescope/types-models": "^1.160.1",
42
- "@tellescope/types-utilities": "^1.160.1",
43
- "@tellescope/utilities": "^1.160.1",
37
+ "@tellescope/constants": "^1.162.0",
38
+ "@tellescope/react-components": "^1.162.0",
39
+ "@tellescope/sdk": "^1.162.0",
40
+ "@tellescope/types-client": "^1.162.0",
41
+ "@tellescope/types-models": "^1.162.0",
42
+ "@tellescope/types-utilities": "^1.162.0",
43
+ "@tellescope/utilities": "^1.162.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": "28dfaf3ce3542b7e879639ddc9264611fece8c62",
55
+ "gitHead": "b58746104f8a4bf539bb7de5f0506e08c710adb4",
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  }
@@ -18,7 +18,7 @@ import { HTMLMessageProps } from './components';
18
18
  import { remove_script_tags } from '@tellescope/utilities';
19
19
  import RenderHtml from 'react-native-render-html';
20
20
 
21
- export const HTMLMessage = ({ html: htmlUnprocessed, color="white" } : HTMLMessageProps) => {
21
+ export const HTMLMessage = ({ html: htmlUnprocessed, color="white", selectable=true } : HTMLMessageProps) => {
22
22
  const html = (
23
23
  htmlUnprocessed.endsWith('<br/>')
24
24
  ? htmlUnprocessed.substring(0, htmlUnprocessed.length - 5)
@@ -27,7 +27,7 @@ export const HTMLMessage = ({ html: htmlUnprocessed, color="white" } : HTMLMessa
27
27
 
28
28
  const { width } = useWindowDimensions();
29
29
  return (
30
- <RenderHtml
30
+ <RenderHtml defaultTextProps={{ selectable }}
31
31
  baseStyle={{
32
32
  paddingTop: 4, // causes better fit into both 1-line and multiline chat bubbles
33
33
  }}
@@ -14,6 +14,7 @@ import { ChatAttachment } from "@tellescope/types-models";
14
14
  export interface HTMLMessageProps {
15
15
  html: string,
16
16
  color?: string,
17
+ selectable?: boolean,
17
18
  }
18
19
  export const HTMLMessage = ({ html } : HTMLMessageProps) => (
19
20
  <div style={{ padding: 2 }}