@tellescope/chat 1.86.1 → 1.88.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.86.1",
3
+ "version": "1.88.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.86.1",
38
- "@tellescope/react-components": "^1.86.1",
39
- "@tellescope/sdk": "^1.86.1",
40
- "@tellescope/types-client": "^1.86.1",
41
- "@tellescope/types-models": "^1.86.1",
37
+ "@tellescope/constants": "^1.88.0",
38
+ "@tellescope/react-components": "^1.88.0",
39
+ "@tellescope/sdk": "^1.88.0",
40
+ "@tellescope/types-client": "^1.88.0",
41
+ "@tellescope/types-models": "^1.88.0",
42
42
  "@tellescope/types-utilities": "^1.69.3",
43
- "@tellescope/utilities": "^1.86.1",
43
+ "@tellescope/utilities": "^1.88.0",
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": "ad712f4dd892a4fd3f9387fa003c4437b95936ef",
54
+ "gitHead": "8947905ad5d2066eb79e03aac4dd2d56bc0a58d7",
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  }
package/src/chat.tsx CHANGED
@@ -173,6 +173,9 @@ export const Message = ({
173
173
  if (sentTextColor) {
174
174
  textBGStyle.color = sentTextColor;
175
175
  }
176
+ } else if (message.mentions?.includes(chatUserId)) {
177
+ textBGStyle.backgroundColor = '#f6b139';
178
+ textBGStyle.color = 'white';
176
179
  } else {
177
180
  if (receivedBgColor) {
178
181
  textBGStyle.backgroundColor = receivedBgColor;