yt-chat-components 1.2.0 → 1.2.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.
Files changed (41) hide show
  1. package/.idea/sonarlint/issuestore/index.pb +0 -7
  2. package/package.json +78 -80
  3. package/public/index.html +108 -108
  4. package/src/YtChatView/chatWidget/chatWindow/callInterface/index.module.css +50 -50
  5. package/src/YtChatView/chatWidget/chatWindow/callInterface/index.tsx +549 -542
  6. package/src/YtChatView/chatWidget/chatWindow/callInterface/style.ts +44 -44
  7. package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +501 -501
  8. package/src/YtChatView/chatWidget/chatWindow/chatPlaceholder/index.tsx +23 -23
  9. package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -249
  10. package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
  11. package/src/YtChatView/chatWidget/chatWindow/index.tsx +1186 -1185
  12. package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -50
  13. package/src/YtChatView/chatWidget/index.tsx +2596 -2596
  14. package/src/YtChatView/logoBtn/index.css +3 -3
  15. package/src/YtChatView/logoBtn/index.jsx +103 -103
  16. package/src/YtChatView/logoSplitBtn/index.css +3 -3
  17. package/src/YtChatView/logoSplitBtn/index.jsx +105 -105
  18. package/src/YtChatView/mobileChat/index.jsx +945 -945
  19. package/src/YtChatView/mobileChat/index.module.css +253 -253
  20. package/src/YtChatView/previewDialog/index.jsx +601 -601
  21. package/src/YtChatView/previewDialog/index.module.css +253 -253
  22. package/src/chatWidget/chatWindow/index.tsx +426 -426
  23. package/src/chatWidget/index.tsx +2195 -2195
  24. package/src/index.tsx +127 -11
  25. package/webpack.config.js +50 -50
  26. package/.idea/sonarlint/issuestore/7/0/7030d0b2f71b999ff89a343de08c414af32fc93a +0 -0
  27. package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
  28. package/.idea/sonarlint/issuestore/9/c/9cfff9a6d27bd6c255aa751213163c7901fb8ce7 +0 -0
  29. package/build/asset-manifest.json +0 -19
  30. package/build/index.html +0 -1
  31. package/build/static/css/main.8ee59d98.css +0 -2
  32. package/build/static/css/main.8ee59d98.css.map +0 -1
  33. package/build/static/js/main.ae39ed55.js +0 -3
  34. package/build/static/js/main.ae39ed55.js.LICENSE.txt +0 -181
  35. package/build/static/js/main.ae39ed55.js.map +0 -1
  36. package/build/static/media/aiavatar.74bafa995cce4c01b804.png +0 -0
  37. package/build/static/media/history-list-empty.1eb65b1550aef4e8c8a4.png +0 -0
  38. package/build/static/media/icon_history_headerbg.50747e81d01257f55346.png +0 -0
  39. package/build/static/media/moreAi.285e66289f838072060c.png +0 -0
  40. package/build/static/media/moreBg.9fc998472925cecd89f2.png +0 -0
  41. package/build/static/media/phone.19bc6f0d2e9eae4863ae.png +0 -0
@@ -1,197 +1,197 @@
1
- .w_send_file_box {
2
- height: 23px;
3
- display: flex;
4
- background: transparent;
5
- align-items: center;
6
- justify-content: center;
7
- border-radius: 24px;
8
- font-size: 12px;
9
- color: #666666;
10
- cursor: pointer;
11
- }
12
-
13
- .w_file_preview {
14
- width: 100%;
15
- height: fit-content;
16
- background-color: transparent;
17
- z-index: 500;
18
- display: flex;
19
- justify-content: flex-start;
20
- align-items: center;
21
- padding: 0 5px;
22
- overflow-x: hidden;
23
- }
24
-
25
- .w_file_preview .w_directionBg {
26
- position: absolute;
27
- cursor: pointer;
28
- width: 18px;
29
- height: 18px;
30
- background: #FFFFFF;
31
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
32
- border-radius: 5px;
33
- border: 1px solid #F0F0F0;
34
- z-index: 999999;
35
- display: flex;
36
- justify-content: center;
37
- align-items: center;
38
- }
39
-
40
- .w_file_preview .w_directionBg img {
41
- width: 12px;
42
- }
43
-
44
- .w_file_preview .w_toLeftBox {
45
- position: absolute;
46
- left: 0;
47
- top: 6px;
48
- height: 60px;
49
- width: 80px;
50
- background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 25%, rgba(255,255,255,0) 100%);
51
- z-index: 99999;
52
- }
53
-
54
- .w_file_preview .w_toLeftBox .w_toLeft {
55
- position: absolute;
56
- cursor: pointer;
57
- width: 18px;
58
- height: 18px;
59
- background: #FFFFFF;
60
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
61
- border-radius: 5px;
62
- border: 1px solid #F0F0F0;
63
- z-index: 999999;
64
- display: flex;
65
- justify-content: center;
66
- align-items: center;
67
- top: 25px;
68
- left: 5px;
69
- }
70
-
71
- .w_file_preview .w_toRightBox {
72
- position: absolute;
73
- right: 0;
74
- top: 6px;
75
- height: 60px;
76
- width: 80px;
77
- background: linear-gradient(-90deg, #FFFFFF 0%, #FFFFFF 25%, rgba(255, 255, 255, 0) 100%);
78
- z-index: 99999;
79
- }
80
-
81
- .w_file_preview .w_toRightBox .w_toRight {
82
- position: absolute;
83
- cursor: pointer;
84
- width: 18px;
85
- height: 18px;
86
- background: #FFFFFF;
87
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
88
- border-radius: 5px;
89
- border: 1px solid #F0F0F0;
90
- z-index: 999999;
91
- display: flex;
92
- justify-content: center;
93
- align-items: center;
94
- top: 25px;
95
- right: 5px;
96
- }
97
-
98
- .w_file_preview .w_fileBox {
99
- position: relative;
100
- min-width: fit-content;
101
- background-color: #f0f0f0;
102
- border-radius: 10px;
103
- margin: 10px 5px;
104
- padding: 5px;
105
- display: flex;
106
- }
107
-
108
- .w_file_preview .w_fileBox:hover .w_fileRemove {
109
- display: block;
110
- }
111
-
112
- .w_file_preview .w_fileBox .w_fileInfoBox {
113
- width: fit-content;
114
- margin-left: 10px;
115
- }
116
-
117
- .w_file_preview .w_fileBox .w_fileInfoBox .w_fileInfoFileName {
118
- overflow: hidden;
119
- text-overflow: ellipsis;
120
- white-space: nowrap;
121
- width: 110px;
122
- color: #242424;
123
- user-select: none;
124
- }
125
-
126
- .w_file_preview .w_fileBox .w_fileInfoBox .w_fileInfoMeta {
127
- width: fit-content;
128
- user-select: none;
129
- color: #a8a8a8;
130
- white-space: nowrap;
131
- }
132
-
133
- .w_file_preview .w_fileBox .w_fileRemove {
134
- display: none;
135
- position: absolute;
136
- cursor: pointer;
137
- top: -2px;
138
- right: 0;
139
- z-index: 99999;
140
- }
141
-
142
- .w_file_preview .w_fileBox .w_fileRemove img {
143
- width: 20px;
144
- }
145
-
146
- .w_file_preview .w_fileBox .w_upImg {
147
- border-radius: 3px;
148
- z-index: 510;
149
- }
150
-
151
- .w_inputBox {
152
- width: 100%;
153
- display: flex;
154
- align-items: center;
155
- textarea {
156
- resize: none;
157
- min-height: 48px;
158
- max-height: 96px;
159
- border: 0;
160
- box-shadow: none !important;
161
- color: #333;
162
- outline: 0;
163
- padding: 5px 10px 0 10px;
164
- width: 100%;
165
-
166
- box-sizing: border-box;
167
- overflow-y: auto; /* 允许垂直滚动 */
168
- scrollbar-width: none; /* Firefox */
169
- -ms-overflow-style: none; /* IE and Edge */
170
- }
171
- textarea::-webkit-scrollbar {
172
- display: none; /* Chrome, Safari, and Opera */
173
- }
174
- }
175
-
176
- /**
177
- * 输入框上方的标签问题列表
178
- */
179
-
180
- .w_send_voice_box {
181
- height: 23px;
182
- display: flex;
183
- background: transparent;
184
- align-items: center;
185
- justify-content: center;
186
- border-radius: 24px;
187
- font-size: 12px;
188
- color: #666666;
189
- cursor: pointer;
190
- margin-right: 10px;
191
- }
192
-
193
- .w_send_voice_box .w_recordIng {
194
- padding: 4px;
195
- background: #1552FF;
196
- border-radius: 8px;
1
+ .w_send_file_box {
2
+ height: 23px;
3
+ display: flex;
4
+ background: transparent;
5
+ align-items: center;
6
+ justify-content: center;
7
+ border-radius: 24px;
8
+ font-size: 12px;
9
+ color: #666666;
10
+ cursor: pointer;
11
+ }
12
+
13
+ .w_file_preview {
14
+ width: 100%;
15
+ height: fit-content;
16
+ background-color: transparent;
17
+ z-index: 500;
18
+ display: flex;
19
+ justify-content: flex-start;
20
+ align-items: center;
21
+ padding: 0 5px;
22
+ overflow-x: hidden;
23
+ }
24
+
25
+ .w_file_preview .w_directionBg {
26
+ position: absolute;
27
+ cursor: pointer;
28
+ width: 18px;
29
+ height: 18px;
30
+ background: #FFFFFF;
31
+ box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
32
+ border-radius: 5px;
33
+ border: 1px solid #F0F0F0;
34
+ z-index: 999999;
35
+ display: flex;
36
+ justify-content: center;
37
+ align-items: center;
38
+ }
39
+
40
+ .w_file_preview .w_directionBg img {
41
+ width: 12px;
42
+ }
43
+
44
+ .w_file_preview .w_toLeftBox {
45
+ position: absolute;
46
+ left: 0;
47
+ top: 6px;
48
+ height: 60px;
49
+ width: 80px;
50
+ background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 25%, rgba(255,255,255,0) 100%);
51
+ z-index: 99999;
52
+ }
53
+
54
+ .w_file_preview .w_toLeftBox .w_toLeft {
55
+ position: absolute;
56
+ cursor: pointer;
57
+ width: 18px;
58
+ height: 18px;
59
+ background: #FFFFFF;
60
+ box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
61
+ border-radius: 5px;
62
+ border: 1px solid #F0F0F0;
63
+ z-index: 999999;
64
+ display: flex;
65
+ justify-content: center;
66
+ align-items: center;
67
+ top: 25px;
68
+ left: 5px;
69
+ }
70
+
71
+ .w_file_preview .w_toRightBox {
72
+ position: absolute;
73
+ right: 0;
74
+ top: 6px;
75
+ height: 60px;
76
+ width: 80px;
77
+ background: linear-gradient(-90deg, #FFFFFF 0%, #FFFFFF 25%, rgba(255, 255, 255, 0) 100%);
78
+ z-index: 99999;
79
+ }
80
+
81
+ .w_file_preview .w_toRightBox .w_toRight {
82
+ position: absolute;
83
+ cursor: pointer;
84
+ width: 18px;
85
+ height: 18px;
86
+ background: #FFFFFF;
87
+ box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
88
+ border-radius: 5px;
89
+ border: 1px solid #F0F0F0;
90
+ z-index: 999999;
91
+ display: flex;
92
+ justify-content: center;
93
+ align-items: center;
94
+ top: 25px;
95
+ right: 5px;
96
+ }
97
+
98
+ .w_file_preview .w_fileBox {
99
+ position: relative;
100
+ min-width: fit-content;
101
+ background-color: #f0f0f0;
102
+ border-radius: 10px;
103
+ margin: 10px 5px;
104
+ padding: 5px;
105
+ display: flex;
106
+ }
107
+
108
+ .w_file_preview .w_fileBox:hover .w_fileRemove {
109
+ display: block;
110
+ }
111
+
112
+ .w_file_preview .w_fileBox .w_fileInfoBox {
113
+ width: fit-content;
114
+ margin-left: 10px;
115
+ }
116
+
117
+ .w_file_preview .w_fileBox .w_fileInfoBox .w_fileInfoFileName {
118
+ overflow: hidden;
119
+ text-overflow: ellipsis;
120
+ white-space: nowrap;
121
+ width: 110px;
122
+ color: #242424;
123
+ user-select: none;
124
+ }
125
+
126
+ .w_file_preview .w_fileBox .w_fileInfoBox .w_fileInfoMeta {
127
+ width: fit-content;
128
+ user-select: none;
129
+ color: #a8a8a8;
130
+ white-space: nowrap;
131
+ }
132
+
133
+ .w_file_preview .w_fileBox .w_fileRemove {
134
+ display: none;
135
+ position: absolute;
136
+ cursor: pointer;
137
+ top: -2px;
138
+ right: 0;
139
+ z-index: 99999;
140
+ }
141
+
142
+ .w_file_preview .w_fileBox .w_fileRemove img {
143
+ width: 20px;
144
+ }
145
+
146
+ .w_file_preview .w_fileBox .w_upImg {
147
+ border-radius: 3px;
148
+ z-index: 510;
149
+ }
150
+
151
+ .w_inputBox {
152
+ width: 100%;
153
+ display: flex;
154
+ align-items: center;
155
+ textarea {
156
+ resize: none;
157
+ min-height: 48px;
158
+ max-height: 96px;
159
+ border: 0;
160
+ box-shadow: none !important;
161
+ color: #333;
162
+ outline: 0;
163
+ padding: 5px 10px 0 10px;
164
+ width: 100%;
165
+
166
+ box-sizing: border-box;
167
+ overflow-y: auto; /* 允许垂直滚动 */
168
+ scrollbar-width: none; /* Firefox */
169
+ -ms-overflow-style: none; /* IE and Edge */
170
+ }
171
+ textarea::-webkit-scrollbar {
172
+ display: none; /* Chrome, Safari, and Opera */
173
+ }
174
+ }
175
+
176
+ /**
177
+ * 输入框上方的标签问题列表
178
+ */
179
+
180
+ .w_send_voice_box {
181
+ height: 23px;
182
+ display: flex;
183
+ background: transparent;
184
+ align-items: center;
185
+ justify-content: center;
186
+ border-radius: 24px;
187
+ font-size: 12px;
188
+ color: #666666;
189
+ cursor: pointer;
190
+ margin-right: 10px;
191
+ }
192
+
193
+ .w_send_voice_box .w_recordIng {
194
+ padding: 4px;
195
+ background: #1552FF;
196
+ border-radius: 8px;
197
197
  }