yt-chat-components 0.1.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/.idea/langflow-embedded-chat.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/sonarlint/issuestore/0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5 +0 -0
- package/.idea/sonarlint/issuestore/3/9/39129446b425a1d640160c068e4194e96639eedf +0 -0
- package/.idea/sonarlint/issuestore/4/a/4a2f33951ce07c1ff7184f91877aa13db05d3785 +0 -0
- package/.idea/sonarlint/issuestore/4/a/4a7b99bdbee5792679d347b6474463bf5e14b66d +0 -0
- package/.idea/sonarlint/issuestore/4/b/4b6989b8ccae808ebc45d02230d336ea53800365 +0 -0
- package/.idea/sonarlint/issuestore/6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf +0 -0
- package/.idea/sonarlint/issuestore/8/d/8d6123af13a140f93e06299fff7ea23c547e9ec8 +0 -0
- package/.idea/sonarlint/issuestore/8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d +0 -0
- package/.idea/sonarlint/issuestore/d/9/d938938695d447dadda115e28781c6541f53fc4f +0 -0
- package/.idea/sonarlint/issuestore/index.pb +19 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +274 -0
- package/build/asset-manifest.json +16 -0
- package/build/index.html +1 -0
- package/build/static/css/main.6f7c593d.css +2 -0
- package/build/static/css/main.6f7c593d.css.map +1 -0
- package/build/static/js/bundle.min.js +2 -0
- package/build/static/js/bundle.min.js.LICENSE.txt +124 -0
- package/build/static/js/main.cb252095.js +3 -0
- package/build/static/js/main.cb252095.js.LICENSE.txt +134 -0
- package/build/static/js/main.cb252095.js.map +1 -0
- package/build/static/media/aiavatar.74bafa995cce4c01b804.png +0 -0
- package/build/static/media/history-list-empty.1eb65b1550aef4e8c8a4.png +0 -0
- package/build/static/media/moreBg.9fc998472925cecd89f2.png +0 -0
- package/package.json +75 -0
- package/public/index.html +47 -0
- package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.module.css +86 -0
- package/src/YtChatView/chatWidget/chatWindow/chatMessage/index.tsx +211 -0
- package/src/YtChatView/chatWidget/chatWindow/chatPlaceholder/index.module.css +9 -0
- package/src/YtChatView/chatWidget/chatWindow/chatPlaceholder/index.tsx +23 -0
- package/src/YtChatView/chatWidget/chatWindow/controllers/index.ts +236 -0
- package/src/YtChatView/chatWidget/chatWindow/index.module.css +197 -0
- package/src/YtChatView/chatWidget/chatWindow/index.tsx +791 -0
- package/src/YtChatView/chatWidget/chatWindow/types/chatWidget/index.ts +37 -0
- package/src/YtChatView/chatWidget/chatWindow/utils.ts +75 -0
- package/src/YtChatView/chatWidget/index.tsx +2289 -0
- package/src/YtChatView/logoBtn/index.css +4 -0
- package/src/YtChatView/logoBtn/index.jsx +65 -0
- package/src/YtChatView/logoSplitBtn/index.css +4 -0
- package/src/YtChatView/logoSplitBtn/index.jsx +67 -0
- package/src/YtChatView/previewDialog/index.jsx +431 -0
- package/src/YtChatView/previewDialog/index.module.css +144 -0
- package/src/assets/aicenter/add.png +0 -0
- package/src/assets/aicenter/aiavatar.png +0 -0
- package/src/assets/aicenter/aicenterbg.png +0 -0
- package/src/assets/aicenter/aicenterbgdark.png +0 -0
- package/src/assets/aicenter/close.png +0 -0
- package/src/assets/aicenter/closex.png +0 -0
- package/src/assets/aicenter/copy.png +0 -0
- package/src/assets/aicenter/file.png +0 -0
- package/src/assets/aicenter/fileupload.png +0 -0
- package/src/assets/aicenter/history-list-empty.png +0 -0
- package/src/assets/aicenter/history.png +0 -0
- package/src/assets/aicenter/luyin.png +0 -0
- package/src/assets/aicenter/moreAi.png +0 -0
- package/src/assets/aicenter/moreBg.png +0 -0
- package/src/assets/aicenter/play-run.gif +0 -0
- package/src/assets/aicenter/play.png +0 -0
- package/src/assets/aicenter/send-img.png +0 -0
- package/src/assets/aicenter/send-question-black.png +0 -0
- package/src/assets/aicenter/send-question.png +0 -0
- package/src/assets/aicenter/sendmessage.png +0 -0
- package/src/assets/aicenter/sound-wave.gif +0 -0
- package/src/assets/aicenter/toLeft.png +0 -0
- package/src/assets/aicenter/toRight.png +0 -0
- package/src/assets/aicenter/type-excel.png +0 -0
- package/src/assets/aicenter/type-markdown.png +0 -0
- package/src/assets/aicenter/type-mobi.png +0 -0
- package/src/assets/aicenter/type-pdf.png +0 -0
- package/src/assets/aicenter/type-rpub.png +0 -0
- package/src/assets/aicenter/type-text.png +0 -0
- package/src/assets/aicenter/type-word.png +0 -0
- package/src/assets/aicenter/upfile.png +0 -0
- package/src/chatPlaceholder/index.tsx +18 -0
- package/src/chatWidget/chatTrigger/index.tsx +15 -0
- package/src/chatWidget/chatWindow/chatMessage/index.tsx +42 -0
- package/src/chatWidget/chatWindow/index.tsx +426 -0
- package/src/chatWidget/index.tsx +2195 -0
- package/src/chatWidget/utils.ts +76 -0
- package/src/controllers/index.ts +205 -0
- package/src/index.tsx +60 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/reportWebVitals.ts +15 -0
- package/src/setupTests.ts +5 -0
- package/src/types/chatWidget/index.ts +13 -0
- package/tsconfig.json +26 -0
- package/webpack.config.js +51 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/langflow-embedded-chat.iml" filepath="$PROJECT_DIR$/.idea/langflow-embedded-chat.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
T
|
|
3
|
+
$src/chatWidget/chatTrigger/index.tsx,8/d/8d6123af13a140f93e06299fff7ea23c547e9ec8
|
|
4
|
+
M
|
|
5
|
+
src/chatPlaceholder/index.tsx,4/b/4b6989b8ccae808ebc45d02230d336ea53800365
|
|
6
|
+
F
|
|
7
|
+
src/reportWebVitals.ts,d/9/d938938695d447dadda115e28781c6541f53fc4f
|
|
8
|
+
A
|
|
9
|
+
src/setupTests.ts,3/9/39129446b425a1d640160c068e4194e96639eedf
|
|
10
|
+
F
|
|
11
|
+
src/react-app-env.d.ts,4/a/4a7b99bdbee5792679d347b6474463bf5e14b66d
|
|
12
|
+
9
|
|
13
|
+
README.md,8/e/8ec9a00bfd09b3190ac6b22251dbb1aa95a0579d
|
|
14
|
+
S
|
|
15
|
+
#src/chatWidget/chatWindow/index.tsx,6/c/6c024c1d0ad64656b9d4b0695ec3c49c0454addf
|
|
16
|
+
H
|
|
17
|
+
src/controllers/index.ts,4/a/4a2f33951ce07c1ff7184f91877aa13db05d3785
|
|
18
|
+
]
|
|
19
|
+
-src/YtChatView/previewDialog/index.module.css,0/f/0f8c0c92cf798431ebb931ff6e997b1af86ecee5
|
package/.idea/vcs.xml
ADDED
package/README.md
ADDED
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
# Langflow Embedded Chat ⛓️
|
|
2
|
+
|
|
3
|
+
Welcome to the Langflow Embedded Chat repository! 🎉
|
|
4
|
+
|
|
5
|
+
The Langflow Embedded Chat is a powerful web component that enables seamless communication with the [Langflow ⛓️](https://github.com/logspace-ai/langflow). This widget provides a chat interface, allowing you to integrate Langflow ⛓️ into your web applications effortlessly.
|
|
6
|
+
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
|
|
9
|
+
## What is Langflow?
|
|
10
|
+
|
|
11
|
+
Langflow is a no-code open-source project that empowers developers to build cutting-edge applications using Language Model technologies. With Langflow, you can leverage the power of LLMs (Large Language Models) to enhance user interactions, generate human-like text, and gain valuable insights from natural language data.
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
🌟 Seamless Integration: Easily integrate the Langflow Widget into your website or web application with just a few lines of JavaScript.
|
|
16
|
+
|
|
17
|
+
🚀 Interactive Chat Interface: Engage your users with a user-friendly chat interface, powered by Langflow's advanced language understanding capabilities.
|
|
18
|
+
|
|
19
|
+
🎛️ Customizable Styling: Customize the appearance of the chat widget to match your application's design and branding.
|
|
20
|
+
|
|
21
|
+
🌐 Multilingual Support: Communicate with users in multiple languages, opening up your application to a global audience.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
### Option 1: CDN Link
|
|
26
|
+
|
|
27
|
+
Use the Langflow Widget directly from the CDN by including the following script tag in your HTML:
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<script src="https://cdn.jsdelivr.net/gh/logspace-ai/langflow-embedded-chat@v1.0.7/dist/build/static/js/bundle.min.js"></script>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Option 2: Local Build
|
|
34
|
+
|
|
35
|
+
1. Clone this repository to your local machine:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
git clone https://github.com/logspace-ai/langflow-embedded-chat.git
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
2. Navigate to the project directory:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
cd langflow-embedded-chat
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
3. Build the project to generate the bundle:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm run build
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
5. After the build process completes, you'll find the bundle in the `dist/build/static/js` folder. You can include this JavaScript file in your HTML:
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<script src="path/to/your/langflow-widget.js"></script>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Usage
|
|
60
|
+
|
|
61
|
+
### on simple HTML
|
|
62
|
+
```html
|
|
63
|
+
<html lang="en">
|
|
64
|
+
<head>
|
|
65
|
+
<script src="https://cdn.jsdelivr.net/gh/logspace-ai/langflow-embedded-chat@v1.0.7/dist/build/static/js/bundle.min.js"></script>
|
|
66
|
+
</head>
|
|
67
|
+
<body>
|
|
68
|
+
<langflow-chat
|
|
69
|
+
host_url="langflow url"
|
|
70
|
+
flow_id="your_flow_id"
|
|
71
|
+
></langflow-chat>
|
|
72
|
+
</body>
|
|
73
|
+
</html>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### on React
|
|
77
|
+
Import the js bundle in the index.html of your react project
|
|
78
|
+
```html
|
|
79
|
+
<script src="https://cdn.jsdelivr.net/gh/logspace-ai/langflow-embedded-chat@v1.0.7/dist/build/static/js/bundle.min.js"></script>
|
|
80
|
+
```
|
|
81
|
+
Encapsulate your custom element in a react component
|
|
82
|
+
```html
|
|
83
|
+
export default function ChatWidget() {
|
|
84
|
+
return (
|
|
85
|
+
<div>
|
|
86
|
+
<langflow-chat
|
|
87
|
+
host_url="langflow url"
|
|
88
|
+
flow_id="your_flow_id"></langflow-chat>
|
|
89
|
+
</div>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Configuration
|
|
95
|
+
|
|
96
|
+
Use the widget API to customize your widget:
|
|
97
|
+
|
|
98
|
+
| Prop | Type | Required |
|
|
99
|
+
|-----------------------|-----------|----------|
|
|
100
|
+
| api_key | string | No |
|
|
101
|
+
| bot_message_style | json | No |
|
|
102
|
+
| chat_position | string | No |
|
|
103
|
+
| chat_trigger_style | json | No |
|
|
104
|
+
| chat_window_style | json | No |
|
|
105
|
+
| output_type | string | No |
|
|
106
|
+
| input_type | string | No |
|
|
107
|
+
| output_component | string | No |
|
|
108
|
+
| error_message_style | json | No |
|
|
109
|
+
| flow_id | string | Yes |
|
|
110
|
+
| height | number | No |
|
|
111
|
+
| host_url | string | Yes |
|
|
112
|
+
| input_container_style | json | No |
|
|
113
|
+
| input_style | json | No |
|
|
114
|
+
| online | boolean | No |
|
|
115
|
+
| start_open | boolean | No |
|
|
116
|
+
| online_message | string | No |
|
|
117
|
+
| placeholder | string | No |
|
|
118
|
+
| placeholder_sending | string | No |
|
|
119
|
+
| send_button_style | json | No |
|
|
120
|
+
| send_icon_style | json | No |
|
|
121
|
+
| tweaks | json | No |
|
|
122
|
+
| user_message_style | json | No |
|
|
123
|
+
| width | number | No |
|
|
124
|
+
| window_title | string | No |
|
|
125
|
+
| session_id | string | No |
|
|
126
|
+
| additional_headers | json | No |
|
|
127
|
+
|
|
128
|
+
- **api_key:**
|
|
129
|
+
- Type: String
|
|
130
|
+
- Required: No
|
|
131
|
+
- Description: X-API-Key header to send to Langflow
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
- **bot_message_style:**
|
|
135
|
+
- Type: JSON
|
|
136
|
+
- Required: No
|
|
137
|
+
- Description: Styling options for formatting bot messages in the chat window.
|
|
138
|
+
|
|
139
|
+
- **input_type:**
|
|
140
|
+
- Type: String
|
|
141
|
+
- Required: No
|
|
142
|
+
- Description: Specifies the input type for chat messages.
|
|
143
|
+
|
|
144
|
+
- **output_type:**
|
|
145
|
+
- Type: String
|
|
146
|
+
- Required: No
|
|
147
|
+
- Description: Specifies the output type for chat messages.
|
|
148
|
+
|
|
149
|
+
- **output_component:**
|
|
150
|
+
- Type: String
|
|
151
|
+
- Required: No
|
|
152
|
+
- Description: Specify the output ID for chat messages; this is necessary when multiple outputs are present.
|
|
153
|
+
|
|
154
|
+
- **chat_position:**
|
|
155
|
+
- Type: String
|
|
156
|
+
- Required: No
|
|
157
|
+
- Description: Determines the position of the chat window (top-left, top-center, top-right, center-left, center-right, bottom-right, bottom-center, bottom-left).
|
|
158
|
+
|
|
159
|
+
- **chat_trigger_style:**
|
|
160
|
+
- Type: JSON
|
|
161
|
+
- Required: No
|
|
162
|
+
- Description: Styling options for the chat trigger.
|
|
163
|
+
|
|
164
|
+
- **chat_window_style:**
|
|
165
|
+
- Type: JSON
|
|
166
|
+
- Required: No
|
|
167
|
+
- Description: Styling options for the overall chat window.
|
|
168
|
+
|
|
169
|
+
- **error_message_style:**
|
|
170
|
+
- Type: JSON
|
|
171
|
+
- Required: No
|
|
172
|
+
- Description: Styling options for error messages in the chat window.
|
|
173
|
+
|
|
174
|
+
- **flow_id:**
|
|
175
|
+
- Type: String
|
|
176
|
+
- Required: Yes
|
|
177
|
+
- Description: Identifier for the flow associated with the component.
|
|
178
|
+
|
|
179
|
+
- **height:**
|
|
180
|
+
- Type: Number
|
|
181
|
+
- Required: No
|
|
182
|
+
- Description: Specifies the height of the chat window in pixels.
|
|
183
|
+
|
|
184
|
+
- **host_url:**
|
|
185
|
+
- Type: String
|
|
186
|
+
- Required: Yes
|
|
187
|
+
- Description: The URL of the host for communication with the chat component.
|
|
188
|
+
|
|
189
|
+
- **input_container_style:**
|
|
190
|
+
- Type: JSON
|
|
191
|
+
- Required: No
|
|
192
|
+
- Description: Styling options for the input container where chat messages are typed.
|
|
193
|
+
|
|
194
|
+
- **input_style:**
|
|
195
|
+
- Type: JSON
|
|
196
|
+
- Required: No
|
|
197
|
+
- Description: Styling options for the chat input field.
|
|
198
|
+
|
|
199
|
+
- **Online:**
|
|
200
|
+
- Type: Boolean
|
|
201
|
+
- Required: No
|
|
202
|
+
- Description: Indicates if the chat component is online or offline.
|
|
203
|
+
|
|
204
|
+
- **start_open:**
|
|
205
|
+
- Type: Boolean
|
|
206
|
+
- Required: No
|
|
207
|
+
- Description: Indicates if the chat window should be open by default.
|
|
208
|
+
|
|
209
|
+
- **online_message:**
|
|
210
|
+
- Type: String
|
|
211
|
+
- Required: No
|
|
212
|
+
- Description: Custom message to display when the chat component is online.
|
|
213
|
+
|
|
214
|
+
- **placeholder:**
|
|
215
|
+
- Type: String
|
|
216
|
+
- Required: No
|
|
217
|
+
- Description: Placeholder text for the chat input field.
|
|
218
|
+
|
|
219
|
+
- **placeholder_sending:**
|
|
220
|
+
- Type: String
|
|
221
|
+
- Required: No
|
|
222
|
+
- Description: Placeholder text to display while a message is being sent.
|
|
223
|
+
|
|
224
|
+
- **send_button_style:**
|
|
225
|
+
- Type: JSON
|
|
226
|
+
- Required: No
|
|
227
|
+
- Description: Styling options for the send button in the chat window.
|
|
228
|
+
|
|
229
|
+
- **send_icon_style:**
|
|
230
|
+
- Type: JSON
|
|
231
|
+
- Required: No
|
|
232
|
+
- Description: Styling options for the send icon in the chat window.
|
|
233
|
+
|
|
234
|
+
- **tweaks:**
|
|
235
|
+
- Type: JSON
|
|
236
|
+
- Required: No
|
|
237
|
+
- Description: Additional custom tweaks for the associated flow.
|
|
238
|
+
|
|
239
|
+
- **user_message_style:**
|
|
240
|
+
- Type: JSON
|
|
241
|
+
- Required: No
|
|
242
|
+
- Description: Styling options for formatting user messages in the chat window.
|
|
243
|
+
|
|
244
|
+
- **width:**
|
|
245
|
+
- Type: Number
|
|
246
|
+
- Required: No
|
|
247
|
+
- Description: Specifies the width of the chat window in pixels.
|
|
248
|
+
|
|
249
|
+
- **window_title:**
|
|
250
|
+
- Type: String
|
|
251
|
+
- Required: No
|
|
252
|
+
- Description: Title for the chat window, displayed in the header or title bar.
|
|
253
|
+
|
|
254
|
+
- **session_id:**
|
|
255
|
+
- Type: String
|
|
256
|
+
- Required: No
|
|
257
|
+
- Description: Custom session id to override the random session id used as default.
|
|
258
|
+
|
|
259
|
+
- **additional_headers:**
|
|
260
|
+
- Type: JSON
|
|
261
|
+
- Required: No
|
|
262
|
+
- Description: Additional headers to be sent to Langflow server
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
## Live example:
|
|
266
|
+
Try out or [live example](https://codesandbox.io/s/langflow-embedded-chat-example-dv9zpx) to see how the Langflow Embedded Chat ⛓️ works.
|
|
267
|
+
|
|
268
|
+
1. first create a Flow and save it using [Langflow ⛓️](https://github.com/logspace-ai/langflow).
|
|
269
|
+
2. Get the hosted URL to use in the live example.
|
|
270
|
+
3. If you are using a public host (like [Hugging Face Spaces](https://huggingface.co/spaces/Logspace/Langflow)) use tweaks to keep your API keys safe.
|
|
271
|
+
|
|
272
|
+
## License
|
|
273
|
+
|
|
274
|
+
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT) - see the [LICENSE](https://github.com/logspace-ai/langflow-embedded-chat/tree/main/LICENSE) file for details.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"files": {
|
|
3
|
+
"main.css": "/static/css/main.6f7c593d.css",
|
|
4
|
+
"main.js": "/static/js/main.cb252095.js",
|
|
5
|
+
"static/media/moreBg.png": "/static/media/moreBg.9fc998472925cecd89f2.png",
|
|
6
|
+
"static/media/history-list-empty.png": "/static/media/history-list-empty.1eb65b1550aef4e8c8a4.png",
|
|
7
|
+
"static/media/aiavatar.png": "/static/media/aiavatar.74bafa995cce4c01b804.png",
|
|
8
|
+
"index.html": "/index.html",
|
|
9
|
+
"main.6f7c593d.css.map": "/static/css/main.6f7c593d.css.map",
|
|
10
|
+
"main.cb252095.js.map": "/static/js/main.cb252095.js.map"
|
|
11
|
+
},
|
|
12
|
+
"entrypoints": [
|
|
13
|
+
"static/css/main.6f7c593d.css",
|
|
14
|
+
"static/js/main.cb252095.js"
|
|
15
|
+
]
|
|
16
|
+
}
|
package/build/index.html
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Document</title><script defer="defer" src="/static/js/main.cb252095.js"></script><link href="/static/css/main.6f7c593d.css" rel="stylesheet"></head><body style="width:100vw;height:100vh;position:relative;margin:unset"><yt-split-modal-chat right="100" bottom="100" width="50" height="50" title="菜鸟驿站" icon-url="https://trans-from-yuntu-resourse.oss-cn-beijing.aliyuncs.com/smartSchool/appCreator/school/ccit/user/xc//image/ebfaf4da-c1d9-46fb-a0b1-f159e95cffc2_AI招生咨询小助手.png" host-url="https://ai-api.yuntu.cn" user-info='{"id": "123", "name": "John Doe", "code":"1606451129" }' flow-id="a8e7ebd8-9bf7-499b-9e4a-c235078a0910" scene-id="e6fb45ea-3415-44e1-a1c8-5e98963bf512"/></body></html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.previewDialog_p_closeImg__i5\+iA{cursor:pointer;width:14px}.previewDialog_p_toolDialog__3xb34{display:flex}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB{align-items:center;background:linear-gradient(180deg,#cfdafc,#f0f3ff);border-bottom-left-radius:8px;border-top-left-radius:8px;display:flex;flex-direction:column;padding:24px}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_toolLogo__-za2Z{align-items:center;display:flex;-webkit-user-select:none;user-select:none}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_toolLogo__-za2Z .previewDialog_p_logoImg__Bq08Z{width:60px}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_toolLogo__-za2Z .previewDialog_p_logoText__L3Iij{-webkit-text-fill-color:#0000;background:linear-gradient(90deg,#1551ff,#8f4bff);-webkit-background-clip:text;font-size:30px;font-weight:700;margin-left:10px;padding-top:16px}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:linear-gradient(180deg,#ffffff80,#fff0);border-image:linear-gradient(180deg,#fff,#fff0) 1 1;border-radius:10px;flex:1 1;margin-bottom:20px;margin-top:20px;position:relative;-webkit-user-select:none;user-select:none;width:100%}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R ::-webkit-scrollbar-thumb{background:#535353!important;border-radius:10px;-webkit-box-shadow:inset 0 0 5px #0003}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyTitle__vCSO9{align-items:center;display:flex;padding:16px 16px 0}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyTitle__vCSO9 .previewDialog_p_historyImg__QCbo8{width:20px}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyTitle__vCSO9 .previewDialog_p_dialogTitle__vqPzy{color:#666;font-size:16px;font-weight:700;margin-left:10px}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyListEmpty__2rf\+k{color:#999;font-size:12px;left:50%;position:absolute;text-align:center;top:50%;transform:translate(-50%,-50%)}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyList__Rpgyz{margin-top:10px;overflow-y:auto;scrollbar-width:none!important}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyList__Rpgyz:hover{scrollbar-color:#ced4e3 #0000;scrollbar-width:thin!important}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyList__Rpgyz .previewDialog_p_historyItem__Kw7cV{padding:7px 16px}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyList__Rpgyz .previewDialog_p_historyItem__Kw7cV .previewDialog_p_activeHistoryName__TloOq{color:#1552ff!important}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyList__Rpgyz .previewDialog_p_historyItem__Kw7cV .previewDialog_p_historyName__U2GGT{color:#333;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolLeft__LM7jB .previewDialog_p_historyDialog__D4O6R .previewDialog_p_historyList__Rpgyz .previewDialog_p_historyItem__Kw7cV .previewDialog_p_historyName__U2GGT:hover{color:#171717}.previewDialog_p_toolDialog__3xb34 .previewDialog_p_toolRight__9aGBc{flex:1 1;width:calc(100% - 300px)}.previewDialog_p_newDialog__QFzaB{align-items:center;background:linear-gradient(244deg,#828efe,#4b4fff);border-radius:20px;cursor:pointer;display:flex;height:40px;justify-content:center;margin-top:20px;width:252px}.previewDialog_p_newDialog__QFzaB img{width:18px}.previewDialog_p_newDialog__QFzaB .previewDialog_p_newDialogText__2Ne7Z{color:#fff;margin-left:6px}.yt-chat-modal .ant-modal-content{padding:0!important}
|
|
2
|
+
/*# sourceMappingURL=main.6f7c593d.css.map*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/css/main.6f7c593d.css","mappings":"AAAA,kCAEE,cAAe,CADf,UAEF,CAEA,mCACE,YACF,CAEA,oEAGE,kBAAmB,CAGnB,kDAA6D,CAG7D,6BAA8B,CAD9B,0BAA2B,CAP3B,YAAa,CACb,qBAAsB,CAKtB,YAGF,CAEA,qGAGE,kBAAmB,CADnB,YAAa,CADb,wBAAiB,CAAjB,gBAGF,CAEA,qIACE,UACF,CAEA,sIAOE,6BAAoC,CAFpC,iDAAuD,CACvD,4BAA6B,CAF7B,cAAe,CAHf,eAAiB,CACjB,gBAAiB,CACjB,gBAKF,CAEA,0GASE,kCAA2B,CAA3B,0BAA2B,CAF3B,kDAA6F,CAC7F,mDAAyF,CAJzF,kBAAmB,CACnB,QAAO,CAFP,kBAAmB,CADnB,eAAgB,CAQhB,iBAAkB,CATlB,wBAAiB,CAAjB,gBAAiB,CAKjB,UAKF,CAEA,oIAGE,4BAA8B,CAF9B,kBAAmB,CACnB,sCAEF,CAEA,+IAGE,kBAAmB,CADnB,YAAa,CADb,mBAGF,CAEA,kLACE,UACF,CAEA,mLAIE,UAAc,CAFd,cAAe,CADf,eAAiB,CAEjB,gBAEF,CAEA,oJAOE,UAAc,CADd,cAAe,CAHf,QAAS,CAFT,iBAAkB,CAIlB,iBAAkB,CAHlB,OAAQ,CAER,8BAIF,CAEA,8IACE,eAAgB,CAEhB,eAAgB,CAChB,8BACF,CAEA,oJAEE,6BAAoC,CADpC,8BAEF,CAEA,kLACE,gBACF,CAEA,4NACE,uBACF,CAEA,sNACE,UAAc,CAId,cAAe,CAHf,eAAgB,CAChB,sBAAuB,CACvB,kBAEF,CAEA,4NACE,aACF,CAEA,qEACE,QAAO,CACP,wBACF,CAEA,kCAQE,kBAAmB,CALnB,kDAA6D,CAE7D,kBAAmB,CACnB,cAAe,CACf,YAAa,CALb,WAAY,CAOZ,sBAAuB,CALvB,eAAgB,CAHhB,WASF,CAEA,sCACE,UACF,CAEA,wEACE,UAAW,CACX,eACF,CC9IA,kCACI,mBACJ","sources":["YtChatView/previewDialog/index.module.css","YtChatView/logoSplitBtn/index.css"],"sourcesContent":[".p_closeImg {\n width: 14px;\n cursor: pointer;\n}\n\n.p_toolDialog {\n display: flex;\n}\n\n.p_toolDialog .p_toolLeft {\n display: flex;\n flex-direction: column;\n align-items: center;\n /*width: 300px;*/\n /*height: 100%;*/\n background: linear-gradient(180deg, #CFDAFC 0%, #F0F3FF 100%);\n padding: 24px;\n border-top-left-radius: 8px;\n border-bottom-left-radius: 8px;\n}\n\n.p_toolDialog .p_toolLeft .p_toolLogo {\n user-select: none;\n display: flex;\n align-items: center;\n}\n\n.p_toolDialog .p_toolLeft .p_toolLogo .p_logoImg {\n width: 60px;\n}\n\n.p_toolDialog .p_toolLeft .p_toolLogo .p_logoText {\n font-weight: bold;\n margin-left: 10px;\n padding-top: 16px;\n font-size: 30px;\n background: linear-gradient(to right, #1551FF, #8F4BFF);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog {\n user-select: none;\n margin-top: 20px;\n margin-bottom: 20px;\n border-radius: 10px;\n flex: 1;\n width: 100%;\n background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);\n border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)) 1 1;\n backdrop-filter: blur(10px);\n position: relative;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog ::-webkit-scrollbar-thumb {\n border-radius: 10px;\n -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);\n background: #535353 !important;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyTitle {\n padding: 16px 16px 0 16px;\n display: flex;\n align-items: center;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyTitle .p_historyImg {\n width: 20px;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyTitle .p_dialogTitle {\n font-weight: bold;\n font-size: 16px;\n margin-left: 10px;\n color: #666666;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyListEmpty {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n text-align: center;\n font-size: 12px;\n color: #999999;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyList {\n margin-top: 10px;\n /*height: 360px;*/\n overflow-y: auto;\n scrollbar-width: none !important; /* firefox */\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyList:hover {\n scrollbar-width: thin !important; /* firefox */\n scrollbar-color: #ced4e3 transparent;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem {\n padding: 7px 16px;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem .p_activeHistoryName {\n color: #1552FF !important;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem .p_historyName {\n color: #333333;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.p_toolDialog .p_toolLeft .p_historyDialog .p_historyList .p_historyItem .p_historyName:hover {\n color: #171717;\n}\n\n.p_toolDialog .p_toolRight {\n flex: 1;\n width: calc(100% - 300px);\n}\n\n.p_newDialog {\n width: 252px;\n height: 40px;\n background: linear-gradient(244deg, #828EFE 0%, #4B4FFF 100%);\n margin-top: 20px;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p_newDialog img {\n width: 18px;\n}\n\n.p_newDialog .p_newDialogText {\n color: #fff;\n margin-left: 6px;\n}","/* Modal 样式 */\n.yt-chat-modal .ant-modal-content {\n padding: 0 !important;\n}"],"names":[],"sourceRoot":""}
|