yt-chat-components 1.4.4 → 1.4.6

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": "yt-chat-components",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "main": "build/static/js/bundle.min.js",
5
5
  "module": "build/static/js/bundle.min.js",
6
6
  "types": "build/static/js/index.d.ts",
@@ -33,10 +33,13 @@ max-width:100%;
33
33
  }
34
34
  .text-group_3 {
35
35
  margin-left: 12px;
36
- display: flex;
37
- flex-direction: column;
38
- justify-content: space-between;
39
- width: calc(100% - 65px);
36
+ word-break: break-all;
37
+ text-overflow: ellipsis;
38
+ display: -webkit-box;
39
+ -webkit-box-orient: vertical;
40
+ -webkit-line-clamp: 2;
41
+ overflow: hidden;
42
+
40
43
  }
41
44
  .text_2 {
42
45
  overflow-wrap: break-word;
@@ -520,17 +520,26 @@ export default function ChatWindow({
520
520
  setReceivingMessage(true);
521
521
  }
522
522
 
523
- let userInfoClone = userInfo;
523
+ let userInfoClone = {...userInfo};
524
524
  if(isEmpty(userInfoClone.code)) {
525
525
  userInfoClone.code = sessionId;
526
526
  }
527
527
  const code = userInfoClone['code'] ? userInfoClone['code'] : ""
528
+ const name = userInfoClone['name'] ? userInfoClone['name'] : ""
529
+ const dw_code = userInfoClone['dw_code'] ? userInfoClone['dw_code'] : ""
530
+ const dw_name = userInfoClone['dw_name'] ? userInfoClone['dw_name'] : ""
531
+ const p_suffix = userInfoClone['p_suffix'] ? userInfoClone['p_suffix'] : ""
532
+
528
533
  let embedAppExtend: embedAppExtend = {
529
534
  operator_id: code,
530
535
  upload_file_path_list: [],
531
536
  http_extend: {
532
537
  bd:{
533
- code: code,
538
+ code,
539
+ name,
540
+ dw_code,
541
+ dw_name,
542
+ p_suffix,
534
543
  },
535
544
  body: {
536
545
  code: code,