@tellescope/chat 1.72.0 → 1.72.2

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.72.0",
3
+ "version": "1.72.2",
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.72.0",
38
- "@tellescope/react-components": "^1.72.0",
39
- "@tellescope/sdk": "^1.72.0",
40
- "@tellescope/types-client": "^1.72.0",
41
- "@tellescope/types-models": "^1.72.0",
37
+ "@tellescope/constants": "^1.72.2",
38
+ "@tellescope/react-components": "^1.72.2",
39
+ "@tellescope/sdk": "^1.72.2",
40
+ "@tellescope/types-client": "^1.72.2",
41
+ "@tellescope/types-models": "^1.72.2",
42
42
  "@tellescope/types-utilities": "^1.69.3",
43
- "@tellescope/utilities": "^1.72.0",
43
+ "@tellescope/utilities": "^1.72.2",
44
44
  "@typescript-eslint/eslint-plugin": "^4.33.0",
45
45
  "@typescript-eslint/parser": "^4.33.0",
46
46
  "eslint": "^7.32.0",
@@ -51,7 +51,7 @@
51
51
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
52
52
  "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
53
53
  },
54
- "gitHead": "159c131ea35dd8416273546735bcbdb2677030fb",
54
+ "gitHead": "da7db654bf7f352b30a6a956786dd09a8ae12902",
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  }
@@ -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 } : HTMLMessageProps) => {
21
+ export const HTMLMessage = ({ html: htmlUnprocessed, color="white" } : HTMLMessageProps) => {
22
22
  const html = (
23
23
  htmlUnprocessed.endsWith('<br/>')
24
24
  ? htmlUnprocessed.substring(0, htmlUnprocessed.length - 5)
@@ -39,11 +39,11 @@ export const HTMLMessage = ({ html: htmlUnprocessed } : HTMLMessageProps) => {
39
39
  }}
40
40
  tagsStyles={{
41
41
  'body': {
42
- color: 'white',
42
+ color,
43
43
  },
44
44
  'a': {
45
- color: 'white',
46
- textDecorationColor: 'white', // underline color in the link
45
+ color,
46
+ textDecorationColor: color, // underline color in the link
47
47
  }
48
48
  }}
49
49
  />
@@ -13,6 +13,7 @@ import { ChatAttachment } from "@tellescope/types-models";
13
13
 
14
14
  export interface HTMLMessageProps {
15
15
  html: string,
16
+ color?: string,
16
17
  }
17
18
  export const HTMLMessage = ({ html } : HTMLMessageProps) => (
18
19
  <div style={{ padding: 2 }}