yt-chat-components 0.9.9 → 1.0.1

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 (49) hide show
  1. package/.idea/modules.xml +1 -1
  2. package/.idea/sonarlint/issuestore/index.pb +3 -35
  3. package/dist/build/static/js/bundle.min.js +1 -0
  4. package/package.json +76 -77
  5. package/public/index.html +108 -81
  6. package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +464 -211
  7. package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +249 -246
  8. package/src/YtChatView/chatWidget/chatWindow/index.module.css +196 -196
  9. package/src/YtChatView/chatWidget/chatWindow/index.tsx +1040 -924
  10. package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +50 -37
  11. package/src/YtChatView/chatWidget/index.tsx +2586 -2502
  12. package/src/YtChatView/logoBtn/index.css +3 -3
  13. package/src/YtChatView/logoBtn/index.jsx +103 -103
  14. package/src/YtChatView/logoSplitBtn/index.css +3 -3
  15. package/src/YtChatView/logoSplitBtn/index.jsx +105 -105
  16. package/src/YtChatView/mobileChat/index.jsx +848 -0
  17. package/src/YtChatView/mobileChat/index.module.css +254 -0
  18. package/src/YtChatView/previewDialog/index.jsx +600 -600
  19. package/src/YtChatView/previewDialog/index.module.css +253 -253
  20. package/src/assets/aicenter/icon_agents.png +0 -0
  21. package/src/assets/aicenter/icon_history.png +0 -0
  22. package/src/assets/aicenter/icon_history_add.png +0 -0
  23. package/src/assets/aicenter/icon_history_headerbg.png +0 -0
  24. package/src/assets/aicenter/icon_history_upload.png +0 -0
  25. package/src/chatWidget/chatWindow/index.tsx +426 -426
  26. package/src/chatWidget/index.tsx +2193 -2193
  27. package/src/index.tsx +11 -10
  28. package/webpack.config.js +50 -50
  29. package/.idea/sonarlint/issuestore/2/e/2e9f70bf32b414323ca1647e2b6f26e1533ee2fc +0 -0
  30. package/.idea/sonarlint/issuestore/3/6/364385cedcce4c06de1901392ffeeac0caef0f3c +0 -0
  31. package/.idea/sonarlint/issuestore/3/9/39129446b425a1d640160c068e4194e96639eedf +0 -0
  32. package/.idea/sonarlint/issuestore/4/a/4a2f33951ce07c1ff7184f91877aa13db05d3785 +0 -0
  33. package/.idea/sonarlint/issuestore/4/a/4a7b99bdbee5792679d347b6474463bf5e14b66d +0 -0
  34. package/.idea/sonarlint/issuestore/4/b/4b015aa5428c4d4c3d672893ec23f5fe3969f9be +0 -0
  35. package/.idea/sonarlint/issuestore/4/b/4b6989b8ccae808ebc45d02230d336ea53800365 +0 -0
  36. package/.idea/sonarlint/issuestore/5/a/5ab44fe33ca96299f51ad4778a73e425b92bf439 +0 -0
  37. package/.idea/sonarlint/issuestore/6/1/61ebb9fd6e8cf9082658121d5d81e297791dacd0 +0 -0
  38. package/.idea/sonarlint/issuestore/6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf +0 -0
  39. package/.idea/sonarlint/issuestore/6/e/6e75fc1c07c3a427a86fc213ca9479caaaff00ea +0 -0
  40. package/.idea/sonarlint/issuestore/8/d/8d6123af13a140f93e06299fff7ea23c547e9ec8 +0 -0
  41. package/.idea/sonarlint/issuestore/c/c/cc2352788140b6778ac06df4b33f50b390d2d8be +0 -0
  42. package/.idea/sonarlint/issuestore/d/5/d5595158cc48f9bf3e51b06f6e6805a8fd2d6262 +0 -0
  43. package/.idea/sonarlint/issuestore/d/7/d747cbed4201192dfa83a1a51345b020a050b647 +0 -0
  44. package/.idea/sonarlint/issuestore/d/9/d938938695d447dadda115e28781c6541f53fc4f +0 -0
  45. package/build/static/js/bundle.min.js +0 -2
  46. package/build/static/js/bundle.min.js.LICENSE.txt +0 -132
  47. /package/.idea/{langflow-embedded-chat.iml → langflow-embedded-chat-clone.iml} +0 -0
  48. /package/.idea/sonarlint/issuestore/{0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5 → 7/0/7030d0b2f71b999ff89a343de08c414af32fc93a} +0 -0
  49. /package/.idea/sonarlint/issuestore/{2/7/27e69cb561aeea20c1afbdd32d260dd60b89a81b → 9/c/9cfff9a6d27bd6c255aa751213163c7901fb8ce7} +0 -0
@@ -0,0 +1,254 @@
1
+ .p_closeImg {
2
+ width: 14px;
3
+ cursor: pointer;
4
+ }
5
+
6
+ .p_toolDialog {
7
+ display: flex;
8
+ height:100%;
9
+ background:url('https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/ai/ai_modal_bg.png');
10
+ background-size: cover;
11
+ border-radius:8px;
12
+ }
13
+
14
+ .p_toolDialog .p_toolLeft {
15
+ display: flex;
16
+ flex-direction: column;
17
+ align-items: center;
18
+ width: 300px;
19
+ padding: 1.7rem 1.6rem 1.7rem 1.6rem;
20
+
21
+ border-top-left-radius: 8px;
22
+ border-bottom-left-radius: 8px;
23
+ }
24
+
25
+ .p_toolDialog .p_toolLeft .p_toolLogo {
26
+ user-select: none;
27
+ display: flex;
28
+ align-items: center;
29
+ }
30
+
31
+ .p_toolDialog .p_toolLeft .p_toolLogo .p_logoImg {
32
+ width: 48px;
33
+ }
34
+
35
+ .p_toolDialog .p_toolLeft .p_toolLogo .p_logoText {
36
+ font-weight: bold;
37
+ margin-left: 10px;
38
+ font-size: 30px;
39
+ background: linear-gradient(to right, #1551FF, #8F4BFF);
40
+ -webkit-background-clip: text;
41
+ -webkit-text-fill-color: transparent;
42
+ }
43
+
44
+ .p_toolDialog .p_toolLeft .p_historyDialog {
45
+ user-select: none;
46
+ margin-top: 20px;
47
+ margin-bottom: 20px;
48
+ border-radius: 10px;
49
+ flex: 1;
50
+ width: 100%;
51
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
52
+ border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) 1 1;
53
+ backdrop-filter: blur(10px);
54
+ position: relative;
55
+ max-height:calc(100% - 5.5rem - 60px);
56
+ }
57
+
58
+ .p_toolDialog .p_toolLeft .p_historyDialog ::-webkit-scrollbar-thumb {
59
+ border-radius: 10px;
60
+ -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
61
+ background: #535353 !important;
62
+ }
63
+
64
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyTitle {
65
+ padding: 1.3rem 16px 0 16px;
66
+ display: flex;
67
+ align-items: center;
68
+ }
69
+
70
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyTitle .p_historyImg {
71
+ width: 25px;
72
+ }
73
+
74
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyTitle .p_dialogTitle {
75
+ margin-left: 10px;
76
+ font-weight: 500;
77
+ font-size: 18px;
78
+ color: #333333;
79
+ line-height: 16px;
80
+ text-align: left;
81
+ font-style: normal;
82
+ }
83
+
84
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyListEmpty {
85
+ position: absolute;
86
+ top: 50%;
87
+ left: 50%;
88
+ transform: translate(-50%, -50%);
89
+ text-align: center;
90
+ font-size: 12px;
91
+ color: #999999;
92
+ max-height: calc(100% - 3rem);
93
+
94
+ }
95
+
96
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyList {
97
+ height: calc(100% - 3rem);
98
+ margin-top: 10px;
99
+ overflow-y: auto;
100
+ scrollbar-width: none !important; /* firefox */
101
+ }
102
+
103
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyList::-webkit-scrollbar{
104
+ display:none;
105
+ }
106
+
107
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyList:hover {
108
+ scrollbar-width: thin !important; /* firefox */
109
+ scrollbar-color: #ced4e3 transparent;
110
+ }
111
+
112
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem {
113
+ padding: 7px 16px;
114
+ }
115
+
116
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem .p_activeHistoryName {
117
+ color: #1552FF !important;
118
+ }
119
+
120
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem .p_historyName {
121
+ color: #333333;
122
+ overflow: hidden;
123
+ text-overflow: ellipsis;
124
+ white-space: nowrap;
125
+ cursor: pointer;
126
+ }
127
+
128
+ .p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem .p_historyName:hover {
129
+ color: #171717;
130
+ }
131
+
132
+ .p_toolDialog .p_toolRight {
133
+ flex: 1;
134
+ }
135
+
136
+ .p_toolRightToRight {
137
+ width:300px;
138
+ display:flex;
139
+ flex-direction:column;
140
+ padding:2rem 1.6rem 1.8rem 1.6rem
141
+ }
142
+ .rightInnerContainer{
143
+ height:calc(100% - 80px);
144
+ flex:1;
145
+ display:flex;
146
+ flex-direction:column;
147
+ justify-content: space-between;
148
+ }
149
+ .p_toolRightToRight .rightSideTitle{
150
+ margin-bottom:1.4rem;
151
+ margin-top:10px;
152
+ margin-top:0;
153
+ font-size:18px;
154
+ font-weight:500;
155
+ display:flex;
156
+ align-items: center;
157
+ }
158
+ .p_toolRightToRight .rightSideTitle img{
159
+ margin-right:4px;
160
+ }
161
+
162
+ .p_toolRightToRight .rightSideTitle .titleSideColumn{
163
+ color:#1551FF;
164
+ }
165
+
166
+ .p_toolRightToRight .rightSkillContainer{
167
+ min-height:40%;
168
+ }
169
+ .p_toolRightToRight .rightSkillContainer .rightSkillList{
170
+ display: flex;
171
+ flex-wrap: wrap;
172
+ grid-template-columns: repeat(3, 1fr);
173
+ gap: 10px;
174
+ }
175
+ .p_toolRightToRight .rightSkillContainer .rightSkillList .rightSkillItem{
176
+ text-align: center;
177
+ cursor:pointer;
178
+ width:30%;
179
+ }
180
+ .p_toolRightToRight .rightSkillContainer .rightSkillList .rightSkillItem img{
181
+ width: 40px;
182
+ height: 40px;
183
+ border-radius:10px;
184
+ }
185
+ .p_toolRightToRight .rightSkillContainer .rightSkillList .rightSkillItem p{
186
+ margin-top:0px;
187
+ margin-bottom:4px;
188
+ overflow: hidden;
189
+ text-overflow: ellipsis;
190
+ white-space: nowrap;
191
+ color: #333333;
192
+ }
193
+ .p_toolRightToRight .rightKnowledgeTitle{
194
+ nargin-top: 2.2rem;
195
+ margin-bottom: 1.4rem;
196
+ font-size:18px;
197
+ font-weight:500;
198
+ display:flex;
199
+ align-items: center;
200
+ }
201
+
202
+ .p_toolRightToRight .rightKnowledgeTitle img{
203
+ margin-right:4px;
204
+ }
205
+
206
+ .p_toolRightToRight .rightKnowledgeContainer{
207
+ position:relative;
208
+ }
209
+ .p_toolRightToRight .rightMoreButton{
210
+ background: url('../../assets/aicenter/moreAi.png');
211
+ background-size: 85% auto;
212
+ background-repeat: no-repeat;
213
+ background-position: bottom;
214
+ position: absolute;
215
+ bottom: 8px;
216
+ left: 0;
217
+ width: 100%;
218
+ height: 100%;
219
+ z-index: 1;
220
+ display: flex;
221
+ justify-content: center;
222
+ align-items: flex-end;
223
+ }
224
+ .p_toolRightToRight .rightMoreButton div{
225
+ width:calc(100% - 50px);
226
+ padding: 16px 16px 10px 20px;
227
+ font-weight: 500;
228
+ color: #ffffff;
229
+ line-height: 17px;
230
+ font-size: 12px;
231
+ cursor:pointer;
232
+ }
233
+
234
+ .p_newDialog {
235
+ width: 252px;
236
+ height: 40px;
237
+ min-height:40px;
238
+ background: linear-gradient( 45deg, #1551FF 0%, #8F4BFF 100%);
239
+ margin-top: 20px;
240
+ border-radius: 20px;
241
+ cursor: pointer;
242
+ display: flex;
243
+ align-items: center;
244
+ justify-content: center;
245
+ }
246
+
247
+ .p_newDialog img {
248
+ width: 18px;
249
+ }
250
+
251
+ .p_newDialog .p_newDialogText {
252
+ color: #fff;
253
+ margin-left: 6px;
254
+ }