@copilotkit/react-ui 1.7.2-next.2 → 1.8.0-next.3
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/CHANGELOG.md +12 -0
- package/dist/{chunk-QXTRFMPM.mjs → chunk-2LRE4W6A.mjs} +13 -11
- package/dist/chunk-2LRE4W6A.mjs.map +1 -0
- package/dist/{chunk-QXQDIFOC.mjs → chunk-5GNYGURH.mjs} +48 -37
- package/dist/chunk-5GNYGURH.mjs.map +1 -0
- package/dist/{chunk-CBBFRI3Q.mjs → chunk-5JY5QJ2W.mjs} +9 -5
- package/dist/chunk-5JY5QJ2W.mjs.map +1 -0
- package/dist/{chunk-OFYI4UU4.mjs → chunk-7RIBDD4K.mjs} +19 -3
- package/dist/chunk-7RIBDD4K.mjs.map +1 -0
- package/dist/{chunk-YAGE7RCE.mjs → chunk-CGVOCLHN.mjs} +2 -2
- package/dist/chunk-FBYETUFL.mjs +118 -0
- package/dist/chunk-FBYETUFL.mjs.map +1 -0
- package/dist/chunk-GDJAAFIK.mjs +24 -0
- package/dist/chunk-GDJAAFIK.mjs.map +1 -0
- package/dist/{chunk-6FTRYYR5.mjs → chunk-GJME6MK4.mjs} +72 -62
- package/dist/chunk-GJME6MK4.mjs.map +1 -0
- package/dist/{chunk-AELKLZSG.mjs → chunk-KG6DW6R2.mjs} +10 -10
- package/dist/{chunk-DLG7BZTA.mjs → chunk-LKCAF2HG.mjs} +2 -2
- package/dist/{chunk-R2O33F44.mjs → chunk-LXCH2BIB.mjs} +2 -2
- package/dist/chunk-ORSMX3SE.mjs +244 -0
- package/dist/chunk-ORSMX3SE.mjs.map +1 -0
- package/dist/{chunk-UPTB2MVO.mjs → chunk-PCTCOQK2.mjs} +4 -10
- package/dist/chunk-PCTCOQK2.mjs.map +1 -0
- package/dist/{chunk-ZIF5JJCH.mjs → chunk-QGK5GOSC.mjs} +24 -53
- package/dist/chunk-QGK5GOSC.mjs.map +1 -0
- package/dist/{chunk-WGAZXTUA.mjs → chunk-TOQ7P4DO.mjs} +6 -9
- package/dist/chunk-TOQ7P4DO.mjs.map +1 -0
- package/dist/{chunk-3XAXY2Z3.mjs → chunk-UZTZXMYS.mjs} +2 -2
- package/dist/{chunk-RQNJNK2W.mjs → chunk-VC4NO5QZ.mjs} +2 -2
- package/dist/{chunk-YQ3D5IQV.mjs → chunk-XNQO5AZZ.mjs} +2 -5
- package/dist/chunk-XNQO5AZZ.mjs.map +1 -0
- package/dist/chunk-YC4NBUGE.mjs +97 -0
- package/dist/chunk-YC4NBUGE.mjs.map +1 -0
- package/dist/components/chat/Button.js.map +1 -1
- package/dist/components/chat/Button.mjs +3 -3
- package/dist/components/chat/Chat.d.ts +17 -1
- package/dist/components/chat/Chat.js +378 -905
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +11 -18
- package/dist/components/chat/ChatContext.d.ts +20 -0
- package/dist/components/chat/ChatContext.js +44 -74
- package/dist/components/chat/ChatContext.js.map +1 -1
- package/dist/components/chat/ChatContext.mjs +2 -2
- package/dist/components/chat/CodeBlock.js +58 -82
- package/dist/components/chat/CodeBlock.js.map +1 -1
- package/dist/components/chat/CodeBlock.mjs +2 -2
- package/dist/components/chat/Header.js +516 -4
- package/dist/components/chat/Header.js.map +1 -1
- package/dist/components/chat/Header.mjs +10 -3
- package/dist/components/chat/Icons.d.ts +10 -9
- package/dist/components/chat/Icons.js +125 -164
- package/dist/components/chat/Icons.js.map +1 -1
- package/dist/components/chat/Icons.mjs +9 -5
- package/dist/components/chat/Input.d.ts +1 -1
- package/dist/components/chat/Input.js +11 -9
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +3 -3
- package/dist/components/chat/Markdown.js +58 -56
- package/dist/components/chat/Markdown.js.map +1 -1
- package/dist/components/chat/Markdown.mjs +3 -3
- package/dist/components/chat/Messages.d.ts +1 -1
- package/dist/components/chat/Messages.js +70 -60
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +3 -3
- package/dist/components/chat/Modal.js +1708 -1749
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +21 -21
- package/dist/components/chat/Popup.js +1708 -1749
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +22 -22
- package/dist/components/chat/Response.js.map +1 -1
- package/dist/components/chat/Response.mjs +3 -3
- package/dist/components/chat/Sidebar.js +1710 -1751
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +22 -22
- package/dist/components/chat/Suggestion.js +4 -40
- package/dist/components/chat/Suggestion.js.map +1 -1
- package/dist/components/chat/Suggestion.mjs +2 -2
- package/dist/components/chat/Window.js.map +1 -1
- package/dist/components/chat/Window.mjs +3 -3
- package/dist/components/chat/index.js +1710 -1751
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +24 -24
- package/dist/components/chat/messages/AssistantMessage.js +211 -59
- package/dist/components/chat/messages/AssistantMessage.js.map +1 -1
- package/dist/components/chat/messages/AssistantMessage.mjs +5 -5
- package/dist/components/chat/messages/RenderTextMessage.js +18 -2
- package/dist/components/chat/messages/RenderTextMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderTextMessage.mjs +1 -1
- package/dist/components/chat/props.d.ts +53 -0
- package/dist/components/chat/props.js.map +1 -1
- package/dist/components/dev-console/console.js +51 -233
- package/dist/components/dev-console/console.js.map +1 -1
- package/dist/components/dev-console/console.mjs +3 -3
- package/dist/components/dev-console/index.js +51 -233
- package/dist/components/dev-console/index.js.map +1 -1
- package/dist/components/dev-console/index.mjs +3 -3
- package/dist/components/help-modal/index.js +29 -147
- package/dist/components/help-modal/index.js.map +1 -1
- package/dist/components/help-modal/index.mjs +1 -1
- package/dist/components/help-modal/modal.js +29 -147
- package/dist/components/help-modal/modal.js.map +1 -1
- package/dist/components/help-modal/modal.mjs +1 -1
- package/dist/components/index.js +1683 -1724
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +28 -28
- package/dist/index.css +254 -90
- package/dist/index.css.map +1 -1
- package/dist/index.js +1692 -1733
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -28
- package/dist/types/css.d.ts +7 -1
- package/dist/types/css.js.map +1 -1
- package/package.json +4 -4
- package/src/components/chat/Chat.tsx +59 -22
- package/src/components/chat/ChatContext.tsx +29 -1
- package/src/components/chat/CodeBlock.tsx +2 -4
- package/src/components/chat/Header.tsx +8 -3
- package/src/components/chat/Icons.tsx +108 -108
- package/src/components/chat/Input.tsx +42 -38
- package/src/components/chat/Markdown.tsx +0 -3
- package/src/components/chat/Messages.tsx +68 -56
- package/src/components/chat/Suggestion.tsx +2 -3
- package/src/components/chat/messages/AssistantMessage.tsx +95 -3
- package/src/components/chat/messages/RenderTextMessage.tsx +17 -1
- package/src/components/chat/props.ts +66 -0
- package/src/components/dev-console/console.tsx +16 -54
- package/src/components/help-modal/modal.tsx +38 -101
- package/src/css/button.css +15 -4
- package/src/css/colors.css +27 -6
- package/src/css/console.css +46 -39
- package/src/css/header.css +22 -5
- package/src/css/input.css +24 -17
- package/src/css/markdown.css +2 -1
- package/src/css/messages.css +125 -15
- package/src/css/panel.css +1 -0
- package/src/css/suggestions.css +14 -6
- package/src/types/css.ts +7 -1
- package/dist/chunk-3VNMQWGT.mjs +0 -25
- package/dist/chunk-3VNMQWGT.mjs.map +0 -1
- package/dist/chunk-6FTRYYR5.mjs.map +0 -1
- package/dist/chunk-CBBFRI3Q.mjs.map +0 -1
- package/dist/chunk-FZC7X5PK.mjs +0 -262
- package/dist/chunk-FZC7X5PK.mjs.map +0 -1
- package/dist/chunk-OFYI4UU4.mjs.map +0 -1
- package/dist/chunk-QXQDIFOC.mjs.map +0 -1
- package/dist/chunk-QXTRFMPM.mjs.map +0 -1
- package/dist/chunk-TI7SY2RI.mjs +0 -164
- package/dist/chunk-TI7SY2RI.mjs.map +0 -1
- package/dist/chunk-UPTB2MVO.mjs.map +0 -1
- package/dist/chunk-VEC45H6Q.mjs +0 -18
- package/dist/chunk-VEC45H6Q.mjs.map +0 -1
- package/dist/chunk-WGAZXTUA.mjs.map +0 -1
- package/dist/chunk-YQ3D5IQV.mjs.map +0 -1
- package/dist/chunk-ZIF5JJCH.mjs.map +0 -1
- /package/dist/{chunk-YAGE7RCE.mjs.map → chunk-CGVOCLHN.mjs.map} +0 -0
- /package/dist/{chunk-AELKLZSG.mjs.map → chunk-KG6DW6R2.mjs.map} +0 -0
- /package/dist/{chunk-DLG7BZTA.mjs.map → chunk-LKCAF2HG.mjs.map} +0 -0
- /package/dist/{chunk-R2O33F44.mjs.map → chunk-LXCH2BIB.mjs.map} +0 -0
- /package/dist/{chunk-3XAXY2Z3.mjs.map → chunk-UZTZXMYS.mjs.map} +0 -0
- /package/dist/{chunk-RQNJNK2W.mjs.map → chunk-VC4NO5QZ.mjs.map} +0 -0
|
@@ -4,7 +4,7 @@ import "../chunk-N7LTE54T.mjs";
|
|
|
4
4
|
import "../chunk-SQMEPWVT.mjs";
|
|
5
5
|
import {
|
|
6
6
|
CopilotSidebar
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-LKCAF2HG.mjs";
|
|
8
8
|
import "../chunk-WB3YULQ4.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DefaultResponseRenderer,
|
|
@@ -15,48 +15,48 @@ import {
|
|
|
15
15
|
} from "../chunk-MCO235PS.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CopilotPopup
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-LXCH2BIB.mjs";
|
|
19
|
+
import "../chunk-KG6DW6R2.mjs";
|
|
20
|
+
import "../chunk-CGVOCLHN.mjs";
|
|
21
|
+
import "../chunk-GDJAAFIK.mjs";
|
|
22
|
+
import "../chunk-V7W6IM2V.mjs";
|
|
23
|
+
import {
|
|
24
|
+
CopilotDevConsole
|
|
25
|
+
} from "../chunk-QGK5GOSC.mjs";
|
|
26
|
+
import "../chunk-KXE2JCUH.mjs";
|
|
27
|
+
import "../chunk-YC4NBUGE.mjs";
|
|
28
|
+
import "../chunk-OTPAZXVR.mjs";
|
|
29
|
+
import {
|
|
30
|
+
shouldShowDevConsole
|
|
31
|
+
} from "../chunk-6TCUJ3B7.mjs";
|
|
32
|
+
import "../chunk-BH6PCAAL.mjs";
|
|
33
|
+
import "../chunk-VC4NO5QZ.mjs";
|
|
23
34
|
import {
|
|
24
35
|
CopilotChat
|
|
25
|
-
} from "../chunk-
|
|
36
|
+
} from "../chunk-5GNYGURH.mjs";
|
|
26
37
|
import {
|
|
27
38
|
AssistantMessage
|
|
28
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-FBYETUFL.mjs";
|
|
29
40
|
import "../chunk-XB6QCUPB.mjs";
|
|
30
41
|
import "../chunk-UWWMAJ7R.mjs";
|
|
31
42
|
import "../chunk-WEYDZBT7.mjs";
|
|
32
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-7RIBDD4K.mjs";
|
|
33
44
|
import {
|
|
34
45
|
UserMessage
|
|
35
46
|
} from "../chunk-HEIDCT7I.mjs";
|
|
36
|
-
import "../chunk-
|
|
37
|
-
import
|
|
38
|
-
CopilotDevConsole
|
|
39
|
-
} from "../chunk-ZIF5JJCH.mjs";
|
|
40
|
-
import "../chunk-KXE2JCUH.mjs";
|
|
41
|
-
import "../chunk-TI7SY2RI.mjs";
|
|
42
|
-
import "../chunk-OTPAZXVR.mjs";
|
|
43
|
-
import {
|
|
44
|
-
shouldShowDevConsole
|
|
45
|
-
} from "../chunk-6TCUJ3B7.mjs";
|
|
46
|
-
import "../chunk-BH6PCAAL.mjs";
|
|
47
|
-
import "../chunk-WGAZXTUA.mjs";
|
|
48
|
-
import "../chunk-QXTRFMPM.mjs";
|
|
47
|
+
import "../chunk-TOQ7P4DO.mjs";
|
|
48
|
+
import "../chunk-2LRE4W6A.mjs";
|
|
49
49
|
import "../chunk-YQFVRDNC.mjs";
|
|
50
50
|
import {
|
|
51
51
|
Markdown
|
|
52
|
-
} from "../chunk-
|
|
53
|
-
import "../chunk-
|
|
54
|
-
import "../chunk-
|
|
52
|
+
} from "../chunk-XNQO5AZZ.mjs";
|
|
53
|
+
import "../chunk-GJME6MK4.mjs";
|
|
54
|
+
import "../chunk-UZTZXMYS.mjs";
|
|
55
55
|
import {
|
|
56
56
|
useChatContext
|
|
57
|
-
} from "../chunk-
|
|
58
|
-
import "../chunk-
|
|
59
|
-
import "../chunk-
|
|
57
|
+
} from "../chunk-5JY5QJ2W.mjs";
|
|
58
|
+
import "../chunk-PCTCOQK2.mjs";
|
|
59
|
+
import "../chunk-ORSMX3SE.mjs";
|
|
60
60
|
import "../chunk-54JAUBUJ.mjs";
|
|
61
61
|
import "../chunk-S5MBUNGN.mjs";
|
|
62
62
|
import "../chunk-MRXNTQOX.mjs";
|
package/dist/index.css
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
1
1
|
/* src/css/colors.css */
|
|
2
2
|
html {
|
|
3
|
-
--copilot-kit-primary-color: rgb(
|
|
4
|
-
--copilot-kit-contrast-color: rgb(255 255 255);
|
|
5
|
-
--copilot-kit-secondary-color: rgb(
|
|
6
|
-
--copilot-kit-secondary-contrast-color: rgb(0 0 0);
|
|
3
|
+
--copilot-kit-primary-color: rgb(28, 28, 28);
|
|
4
|
+
--copilot-kit-contrast-color: rgb(255, 255, 255);
|
|
5
|
+
--copilot-kit-secondary-color: rgb(83, 83, 83);
|
|
7
6
|
--copilot-kit-background-color: rgb(255 255 255);
|
|
8
|
-
--copilot-kit-muted-color: rgb(
|
|
9
|
-
--copilot-kit-
|
|
7
|
+
--copilot-kit-muted-color: rgb(200 200 200);
|
|
8
|
+
--copilot-kit-text-light-color: rgb(255 255 255);
|
|
9
|
+
--copilot-kit-text-dark-color: rgb(28, 28, 28);
|
|
10
|
+
--copilot-kit-separator-color: rgb(200 200 200);
|
|
10
11
|
--copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
|
|
12
|
+
--copilot-kit-header-color: rgb(255 255 255);
|
|
11
13
|
--copilot-kit-response-button-color: #333;
|
|
12
14
|
--copilot-kit-response-button-background-color: #fff;
|
|
15
|
+
--copilot-kit-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
16
|
+
--copilot-kit-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
17
|
+
--copilot-kit-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
18
|
+
.variant-blue {
|
|
19
|
+
--copilot-kit-primary-color: rgb(59 130 246);
|
|
20
|
+
--copilot-kit-contrast-color: rgb(255 255 255);
|
|
21
|
+
--copilot-kit-secondary-color: rgb(243 244 246);
|
|
22
|
+
--copilot-kit-background-color: rgb(255 255 255);
|
|
23
|
+
--copilot-kit-muted-color: rgb(200 200 200);
|
|
24
|
+
--copilot-kit-text-color: rgb(106 106 106);
|
|
25
|
+
--copilot-kit-separator-color: rgb(200 200 200);
|
|
26
|
+
--copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
|
|
27
|
+
--copilot-kit-response-button-color: #333;
|
|
28
|
+
--copilot-kit-response-button-background-color: #fff;
|
|
29
|
+
--copilot-kit-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
30
|
+
--copilot-kit-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
31
|
+
--copilot-kit-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
32
|
+
}
|
|
13
33
|
}
|
|
14
34
|
|
|
15
35
|
/* src/css/popup.css */
|
|
@@ -100,20 +120,23 @@ html {
|
|
|
100
120
|
align-items: center;
|
|
101
121
|
justify-content: center;
|
|
102
122
|
border-radius: 50%;
|
|
103
|
-
border: 1px solid
|
|
123
|
+
border: 1px solid var(--copilot-kit-contrast-color);
|
|
104
124
|
outline: none;
|
|
105
125
|
position: relative;
|
|
106
126
|
transform: scale(1);
|
|
107
|
-
transition:
|
|
127
|
+
transition: all 0.2s ease;
|
|
108
128
|
background-color: var(--copilot-kit-primary-color);
|
|
109
129
|
color: var(--copilot-kit-contrast-color);
|
|
110
130
|
cursor: pointer;
|
|
131
|
+
box-shadow: var(--copilot-kit-shadow-sm);
|
|
111
132
|
}
|
|
112
133
|
.copilotKitButton:hover {
|
|
113
|
-
transform: scale(1.
|
|
134
|
+
transform: scale(1.05);
|
|
135
|
+
box-shadow: var(--copilot-kit-shadow-md);
|
|
114
136
|
}
|
|
115
137
|
.copilotKitButton:active {
|
|
116
|
-
transform: scale(0.
|
|
138
|
+
transform: scale(0.95);
|
|
139
|
+
box-shadow: var(--copilot-kit-shadow-sm);
|
|
117
140
|
}
|
|
118
141
|
.copilotKitButtonIcon {
|
|
119
142
|
transition: opacity 100ms, transform 300ms;
|
|
@@ -121,6 +144,13 @@ html {
|
|
|
121
144
|
top: 50%;
|
|
122
145
|
left: 50%;
|
|
123
146
|
transform: translate(-50%, -50%);
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
}
|
|
151
|
+
.copilotKitButtonIcon svg {
|
|
152
|
+
width: 1.5rem;
|
|
153
|
+
height: 1.5rem;
|
|
124
154
|
}
|
|
125
155
|
.copilotKitButton.open .copilotKitButtonIconOpen {
|
|
126
156
|
transform: translate(-50%, -50%) scale(0) rotate(90deg);
|
|
@@ -144,21 +174,26 @@ html {
|
|
|
144
174
|
height: 56px;
|
|
145
175
|
font-weight: 500;
|
|
146
176
|
display: flex;
|
|
147
|
-
justify-content: center;
|
|
148
177
|
align-items: center;
|
|
149
178
|
position: relative;
|
|
150
|
-
background-color: var(--copilot-kit-primary-color);
|
|
151
179
|
color: var(--copilot-kit-contrast-color);
|
|
152
180
|
border-top-left-radius: 0;
|
|
153
181
|
border-top-right-radius: 0;
|
|
154
182
|
border-bottom: 1px solid var(--copilot-kit-separator-color);
|
|
183
|
+
padding-left: 1.5rem;
|
|
184
|
+
background-color: var(--copilot-kit-header-color);
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
z-index: 2;
|
|
155
187
|
}
|
|
156
188
|
.copilotKitSidebar .copilotKitHeader {
|
|
157
189
|
border-radius: 0;
|
|
158
190
|
}
|
|
191
|
+
.copilotKitHeaderControls {
|
|
192
|
+
display: flex;
|
|
193
|
+
}
|
|
159
194
|
@media (min-width: 640px) {
|
|
160
195
|
.copilotKitHeader {
|
|
161
|
-
padding-left:
|
|
196
|
+
padding-left: 1.5rem;
|
|
162
197
|
padding-right: 24px;
|
|
163
198
|
border-top-left-radius: 8px;
|
|
164
199
|
border-top-right-radius: 8px;
|
|
@@ -166,15 +201,25 @@ html {
|
|
|
166
201
|
}
|
|
167
202
|
.copilotKitHeader > button {
|
|
168
203
|
border: 0;
|
|
169
|
-
padding:
|
|
204
|
+
padding: 8px;
|
|
170
205
|
position: absolute;
|
|
171
206
|
top: 50%;
|
|
172
207
|
right: 16px;
|
|
173
208
|
transform: translateY(-50%);
|
|
174
209
|
outline: none;
|
|
175
|
-
color: var(--copilot-kit-
|
|
210
|
+
color: var(--copilot-kit-muted-color);
|
|
176
211
|
background-color: transparent;
|
|
177
212
|
cursor: pointer;
|
|
213
|
+
border-radius: 50%;
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
transition: background-color 0.2s ease;
|
|
218
|
+
width: 35px;
|
|
219
|
+
height: 35px;
|
|
220
|
+
}
|
|
221
|
+
.copilotKitHeader > button:hover {
|
|
222
|
+
color: color-mix(in srgb, var(--copilot-kit-muted-color) 80%, black);
|
|
178
223
|
}
|
|
179
224
|
.copilotKitHeader > button:focus {
|
|
180
225
|
outline: none;
|
|
@@ -182,21 +227,23 @@ html {
|
|
|
182
227
|
|
|
183
228
|
/* src/css/input.css */
|
|
184
229
|
.copilotKitInput {
|
|
185
|
-
border-top: 1px solid var(--copilot-kit-separator-color);
|
|
186
|
-
padding-left: 2rem;
|
|
187
|
-
padding-right: 1rem;
|
|
188
|
-
padding-top: 1rem;
|
|
189
|
-
padding-bottom: 1rem;
|
|
190
230
|
display: flex;
|
|
191
|
-
|
|
231
|
+
flex-direction: column;
|
|
192
232
|
cursor: text;
|
|
193
233
|
position: relative;
|
|
194
|
-
|
|
195
|
-
border-
|
|
196
|
-
|
|
234
|
+
background-color: #fbfbfb;
|
|
235
|
+
border-radius: 20px;
|
|
236
|
+
border: 1px solid var(--copilot-kit-separator-color);
|
|
237
|
+
padding: 12px 14px;
|
|
238
|
+
height: 75px;
|
|
239
|
+
}
|
|
240
|
+
.copilotKitInputContainer {
|
|
241
|
+
width: 95%;
|
|
242
|
+
margin: 0 auto;
|
|
243
|
+
padding: 0 0 15px 0;
|
|
197
244
|
}
|
|
198
245
|
.copilotKitInput > .copilotKitInputControls > button {
|
|
199
|
-
padding: 0
|
|
246
|
+
padding: 0;
|
|
200
247
|
cursor: pointer;
|
|
201
248
|
transition-property: transform;
|
|
202
249
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -218,19 +265,23 @@ html {
|
|
|
218
265
|
text-shadow: none;
|
|
219
266
|
display: inline-block;
|
|
220
267
|
text-align: center;
|
|
221
|
-
|
|
268
|
+
width: 24px;
|
|
269
|
+
height: 24px;
|
|
222
270
|
}
|
|
223
271
|
.copilotKitInput > .copilotKitInputControls > button:not([disabled]) {
|
|
224
272
|
color: var(--copilot-kit-primary-color);
|
|
225
273
|
}
|
|
226
274
|
.copilotKitInput > .copilotKitInputControls > button:not([disabled]):hover {
|
|
227
|
-
|
|
275
|
+
color: color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);
|
|
276
|
+
transform: scale(1.05);
|
|
228
277
|
}
|
|
229
278
|
.copilotKitInput > .copilotKitInputControls > button[disabled] {
|
|
230
279
|
color: var(--copilot-kit-muted-color);
|
|
280
|
+
cursor: default;
|
|
231
281
|
}
|
|
232
282
|
.copilotKitInputControls {
|
|
233
283
|
display: flex;
|
|
284
|
+
gap: 3px;
|
|
234
285
|
}
|
|
235
286
|
.copilotKitInput > textarea {
|
|
236
287
|
flex: 1;
|
|
@@ -243,21 +294,21 @@ html {
|
|
|
243
294
|
-moz-osx-font-smoothing: grayscale;
|
|
244
295
|
cursor: text;
|
|
245
296
|
font-size: 0.875rem;
|
|
246
|
-
line-height: 1.
|
|
297
|
+
line-height: 1.5rem;
|
|
247
298
|
margin: 0;
|
|
248
299
|
padding: 0;
|
|
249
300
|
font-family: inherit;
|
|
250
301
|
font-weight: inherit;
|
|
251
|
-
color: var(--copilot-kit-
|
|
302
|
+
color: var(--copilot-kit-text-color);
|
|
252
303
|
border: 0px;
|
|
253
|
-
background-color:
|
|
304
|
+
background-color: #fbfbfb;
|
|
254
305
|
}
|
|
255
306
|
.copilotKitInput > textarea::placeholder {
|
|
256
|
-
color:
|
|
307
|
+
color: #808080;
|
|
257
308
|
opacity: 1;
|
|
258
309
|
}
|
|
259
310
|
.copilotKitInput > .copilotKitInputControls > button.copilotKitPushToTalkRecording {
|
|
260
|
-
background-color:
|
|
311
|
+
background-color: #ec0000;
|
|
261
312
|
color: white;
|
|
262
313
|
border-radius: 50%;
|
|
263
314
|
animation: copilotKitPulseAnimation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
@@ -267,13 +318,27 @@ html {
|
|
|
267
318
|
.copilotKitMessages {
|
|
268
319
|
overflow-y: scroll;
|
|
269
320
|
flex: 1;
|
|
270
|
-
padding: 1rem 2rem;
|
|
271
321
|
display: flex;
|
|
272
322
|
flex-direction: column;
|
|
273
323
|
background-color: var(--copilot-kit-background-color);
|
|
324
|
+
justify-content: space-between;
|
|
325
|
+
z-index: 1;
|
|
326
|
+
}
|
|
327
|
+
.copilotKitMessagesContainer {
|
|
328
|
+
padding: 1rem 24px;
|
|
329
|
+
display: flex;
|
|
330
|
+
flex-direction: column;
|
|
331
|
+
}
|
|
332
|
+
.copilotKitMessagesFooter {
|
|
333
|
+
display: flex;
|
|
334
|
+
padding: 0;
|
|
335
|
+
margin: 0 auto 8px auto;
|
|
336
|
+
justify-content: flex-start;
|
|
337
|
+
flex-direction: column;
|
|
338
|
+
width: 90%;
|
|
274
339
|
}
|
|
275
340
|
.copilotKitMessages::-webkit-scrollbar {
|
|
276
|
-
width:
|
|
341
|
+
width: 6px;
|
|
277
342
|
}
|
|
278
343
|
.copilotKitMessages::-webkit-scrollbar-thumb {
|
|
279
344
|
background-color: var(--copilot-kit-scrollbar-color);
|
|
@@ -287,27 +352,77 @@ html {
|
|
|
287
352
|
background: transparent;
|
|
288
353
|
}
|
|
289
354
|
.copilotKitMessage {
|
|
290
|
-
border-radius:
|
|
291
|
-
padding:
|
|
292
|
-
font-size:
|
|
293
|
-
line-height: 1.
|
|
355
|
+
border-radius: 15px;
|
|
356
|
+
padding: 8px 12px;
|
|
357
|
+
font-size: 1rem;
|
|
358
|
+
line-height: 1.5;
|
|
294
359
|
overflow-wrap: break-word;
|
|
295
360
|
max-width: 80%;
|
|
296
361
|
margin-bottom: 0.5rem;
|
|
362
|
+
color: var(--copilot-kit-text-color);
|
|
297
363
|
}
|
|
298
364
|
.copilotKitMessage.copilotKitUserMessage {
|
|
299
365
|
background: var(--copilot-kit-primary-color);
|
|
300
366
|
color: var(--copilot-kit-contrast-color);
|
|
301
367
|
margin-left: auto;
|
|
302
368
|
white-space: pre-wrap;
|
|
369
|
+
line-height: 1.75;
|
|
370
|
+
font-size: 1rem;
|
|
303
371
|
}
|
|
304
372
|
.copilotKitMessage.copilotKitAssistantMessage {
|
|
305
|
-
background:
|
|
306
|
-
color: var(--copilot-kit-secondary-contrast-color);
|
|
373
|
+
background: transparent;
|
|
307
374
|
margin-right: auto;
|
|
375
|
+
padding-left: 0;
|
|
376
|
+
position: relative;
|
|
377
|
+
max-width: 100%;
|
|
308
378
|
}
|
|
309
|
-
.copilotKitMessage.
|
|
310
|
-
|
|
379
|
+
.copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls {
|
|
380
|
+
position: absolute;
|
|
381
|
+
left: 0;
|
|
382
|
+
display: flex;
|
|
383
|
+
gap: 1rem;
|
|
384
|
+
opacity: 0;
|
|
385
|
+
transition: opacity 0.2s ease;
|
|
386
|
+
padding: 5px 0 0 0;
|
|
387
|
+
}
|
|
388
|
+
.copilotKitMessageControls.currentMessage {
|
|
389
|
+
opacity: 1 !important;
|
|
390
|
+
}
|
|
391
|
+
.copilotKitMessage.copilotKitAssistantMessage:hover .copilotKitMessageControls {
|
|
392
|
+
opacity: 1;
|
|
393
|
+
}
|
|
394
|
+
@media (max-width: 768px) {
|
|
395
|
+
.copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls {
|
|
396
|
+
opacity: 1;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
.copilotKitMessageControlButton {
|
|
400
|
+
width: 20px;
|
|
401
|
+
height: 20px;
|
|
402
|
+
display: flex;
|
|
403
|
+
align-items: center;
|
|
404
|
+
border-radius: 0.5rem;
|
|
405
|
+
justify-content: center;
|
|
406
|
+
color: var(--copilot-kit-primary-color);
|
|
407
|
+
cursor: pointer;
|
|
408
|
+
transition: all 0.2s ease;
|
|
409
|
+
padding: 0;
|
|
410
|
+
z-index: 10;
|
|
411
|
+
margin: 0;
|
|
412
|
+
}
|
|
413
|
+
.copilotKitMessageControlButton:hover {
|
|
414
|
+
color: color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);
|
|
415
|
+
transform: scale(1.05);
|
|
416
|
+
}
|
|
417
|
+
.copilotKitMessageControlButton:active {
|
|
418
|
+
color: color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);
|
|
419
|
+
transform: scale(1.05);
|
|
420
|
+
}
|
|
421
|
+
.copilotKitMessageControlButton svg {
|
|
422
|
+
width: 1rem;
|
|
423
|
+
height: 1rem;
|
|
424
|
+
display: block;
|
|
425
|
+
pointer-events: none;
|
|
311
426
|
}
|
|
312
427
|
.copilotKitMessage.copilotKitAssistantMessage + .copilotKitMessage.copilotKitUserMessage {
|
|
313
428
|
margin-top: 1.5rem;
|
|
@@ -318,12 +433,43 @@ html {
|
|
|
318
433
|
}
|
|
319
434
|
.copilotKitMessage .inProgressLabel {
|
|
320
435
|
margin-left: 10px;
|
|
436
|
+
opacity: 0.7;
|
|
321
437
|
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
438
|
+
@keyframes copilotKitSpinAnimation {
|
|
439
|
+
0% {
|
|
440
|
+
transform: rotate(0deg);
|
|
441
|
+
}
|
|
442
|
+
100% {
|
|
443
|
+
transform: rotate(360deg);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
.copilotKitSpinner {
|
|
447
|
+
display: inline-block;
|
|
448
|
+
width: 16px;
|
|
449
|
+
height: 16px;
|
|
450
|
+
border: 2px solid var(--copilot-kit-contrast-color);
|
|
451
|
+
border-radius: 50%;
|
|
452
|
+
border-top-color: var(--copilot-kit-primary-color);
|
|
453
|
+
animation: copilotKitSpinAnimation 1s linear infinite;
|
|
454
|
+
margin-left: 8px;
|
|
455
|
+
}
|
|
456
|
+
@keyframes copilotKitActivityDotAnimation {
|
|
457
|
+
0%, 80%, 100% {
|
|
458
|
+
transform: scale(0.5);
|
|
459
|
+
opacity: 0.5;
|
|
460
|
+
}
|
|
461
|
+
40% {
|
|
462
|
+
transform: scale(1);
|
|
463
|
+
opacity: 1;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
.copilotKitActivityDot {
|
|
467
|
+
display: inline-block;
|
|
468
|
+
width: 6px;
|
|
469
|
+
height: 6px;
|
|
470
|
+
border-radius: 50%;
|
|
471
|
+
background-color: var(--copilot-kit-primary-color);
|
|
472
|
+
animation: copilotKitActivityDotAnimation 1.4s infinite ease-in-out both;
|
|
327
473
|
}
|
|
328
474
|
|
|
329
475
|
/* src/css/window.css */
|
|
@@ -481,6 +627,8 @@ html {
|
|
|
481
627
|
.copilotKitMarkdown p {
|
|
482
628
|
padding: 0px;
|
|
483
629
|
margin: 0px;
|
|
630
|
+
line-height: 1.75;
|
|
631
|
+
font-size: 1rem;
|
|
484
632
|
}
|
|
485
633
|
.copilotKitMarkdown p:not(:last-child),
|
|
486
634
|
.copilotKitMarkdown pre:not(:last-child),
|
|
@@ -552,7 +700,6 @@ html {
|
|
|
552
700
|
line-height: 1.25rem;
|
|
553
701
|
font-weight: 500;
|
|
554
702
|
height: 2.5rem;
|
|
555
|
-
width: 2.5rem;
|
|
556
703
|
padding: 3px;
|
|
557
704
|
margin: 2px;
|
|
558
705
|
}
|
|
@@ -564,7 +711,7 @@ html {
|
|
|
564
711
|
.copilotKitMessages footer .suggestions {
|
|
565
712
|
display: flex;
|
|
566
713
|
flex-wrap: wrap;
|
|
567
|
-
gap:
|
|
714
|
+
gap: 6px;
|
|
568
715
|
}
|
|
569
716
|
.copilotKitMessages footer h6 {
|
|
570
717
|
font-weight: 500;
|
|
@@ -572,17 +719,24 @@ html {
|
|
|
572
719
|
margin-bottom: 8px;
|
|
573
720
|
}
|
|
574
721
|
.copilotKitMessages footer .suggestions .suggestion {
|
|
575
|
-
padding:
|
|
722
|
+
padding: 6px 10px;
|
|
576
723
|
font-size: 0.7rem;
|
|
577
|
-
border-radius:
|
|
578
|
-
|
|
579
|
-
color: var(--copilot-kit-
|
|
724
|
+
border-radius: 15px;
|
|
725
|
+
border: 1px solid var(--copilot-kit-muted-color);
|
|
726
|
+
color: var(--copilot-kit-text-color);
|
|
727
|
+
box-shadow: 0 5px 5px 0px rgba(0, 0, 0, .01), 0 2px 3px 0px rgba(0, 0, 0, .02);
|
|
728
|
+
}
|
|
729
|
+
.copilotKitMessages footer .suggestions .suggestion.loading {
|
|
730
|
+
padding: 0;
|
|
731
|
+
font-size: 0.7rem;
|
|
732
|
+
border: none;
|
|
733
|
+
color: var(--copilot-kit-text-color);
|
|
580
734
|
}
|
|
581
735
|
.copilotKitMessages footer .suggestions button {
|
|
582
736
|
transition: transform 0.3s ease;
|
|
583
737
|
}
|
|
584
738
|
.copilotKitMessages footer .suggestions button:not(:disabled):hover {
|
|
585
|
-
transform: scale(1.
|
|
739
|
+
transform: scale(1.03);
|
|
586
740
|
}
|
|
587
741
|
.copilotKitMessages footer .suggestions button:disabled {
|
|
588
742
|
cursor: wait;
|
|
@@ -599,6 +753,7 @@ html {
|
|
|
599
753
|
-moz-tab-size: 4;
|
|
600
754
|
-o-tab-size: 4;
|
|
601
755
|
tab-size: 4;
|
|
756
|
+
background: white;
|
|
602
757
|
font-family:
|
|
603
758
|
ui-sans-serif,
|
|
604
759
|
system-ui,
|
|
@@ -630,33 +785,28 @@ html {
|
|
|
630
785
|
|
|
631
786
|
/* src/css/console.css */
|
|
632
787
|
.copilotKitDevConsole {
|
|
633
|
-
background-color: #f3f4f6;
|
|
634
|
-
padding-left: 10px;
|
|
635
|
-
padding-right: 10px;
|
|
636
788
|
display: flex;
|
|
637
789
|
align-items: center;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
padding-bottom: 10px;
|
|
790
|
+
gap: 5px;
|
|
791
|
+
margin: 0 15px;
|
|
641
792
|
}
|
|
642
793
|
.copilotKitDevConsole.copilotKitDevConsoleWarnOutdated {
|
|
643
794
|
background-color: #f9caca;
|
|
644
795
|
}
|
|
645
796
|
.copilotKitDevConsole .copilotKitVersionInfo {
|
|
646
|
-
flex: 1;
|
|
647
|
-
margin-left: 18px;
|
|
648
797
|
display: flex;
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
798
|
+
position: absolute;
|
|
799
|
+
bottom: -25px;
|
|
800
|
+
padding: 3px 5px;
|
|
801
|
+
left: 0;
|
|
802
|
+
width: 100%;
|
|
803
|
+
justify-content: center;
|
|
804
|
+
gap: 10px;
|
|
805
|
+
font-size: 0.8rem;
|
|
806
|
+
align-items: center;
|
|
807
|
+
background: #ebb305;
|
|
658
808
|
}
|
|
659
|
-
.copilotKitDevConsole .copilotKitVersionInfo
|
|
809
|
+
.copilotKitDevConsole .copilotKitVersionInfo button {
|
|
660
810
|
font-size: 11px;
|
|
661
811
|
font-weight: normal;
|
|
662
812
|
font-family: monospace;
|
|
@@ -672,50 +822,49 @@ html {
|
|
|
672
822
|
width: 260px;
|
|
673
823
|
text-overflow: ellipsis;
|
|
674
824
|
}
|
|
675
|
-
.copilotKitDevConsole .copilotKitVersionInfo
|
|
825
|
+
.copilotKitDevConsole .copilotKitVersionInfo aside {
|
|
676
826
|
display: inline;
|
|
677
827
|
font-weight: normal;
|
|
678
828
|
color: #7f7a7a;
|
|
679
829
|
margin-left: 5px;
|
|
680
830
|
}
|
|
681
|
-
.copilotKitDevConsole .copilotKitVersionInfo
|
|
682
|
-
font-size: 11px;
|
|
683
|
-
}
|
|
684
|
-
.copilotKitDevConsole .copilotKitVersionInfo section svg {
|
|
831
|
+
.copilotKitDevConsole .copilotKitVersionInfo svg {
|
|
685
832
|
margin-left: 3px;
|
|
686
833
|
margin-top: -3px;
|
|
687
834
|
}
|
|
688
|
-
.copilotKitDevConsole .
|
|
835
|
+
.copilotKitDevConsole .copilotKitDebugMenuTriggerButton {
|
|
689
836
|
font-size: 11px;
|
|
690
837
|
font-weight: bold;
|
|
691
838
|
display: flex;
|
|
692
|
-
|
|
839
|
+
padding: 0 10px;
|
|
693
840
|
height: 30px;
|
|
694
|
-
background-color:
|
|
695
|
-
border: 1px solid
|
|
696
|
-
border-radius:
|
|
841
|
+
background-color: transparent;
|
|
842
|
+
border: 1px solid var(--copilot-kit-muted-color);
|
|
843
|
+
border-radius: 20px;
|
|
697
844
|
align-items: center;
|
|
698
845
|
justify-content: center;
|
|
699
846
|
outline: none;
|
|
700
847
|
}
|
|
701
|
-
.
|
|
848
|
+
.copilotKitDebugMenuTriggerButton.compact {
|
|
702
849
|
width: 35px;
|
|
703
850
|
color: black;
|
|
704
851
|
justify-content: center;
|
|
705
852
|
outline: none;
|
|
706
853
|
font-size: 8px;
|
|
707
854
|
}
|
|
708
|
-
.copilotKitDevConsole .
|
|
709
|
-
background-color:
|
|
855
|
+
.copilotKitDevConsole .copilotKitDebugMenuTriggerButton:hover {
|
|
856
|
+
background-color: color-mix(in srgb, var(--copilot-kit-dev-console-bg) 95%, black);
|
|
710
857
|
}
|
|
711
|
-
.copilotKitDevConsole .
|
|
858
|
+
.copilotKitDevConsole .copilotKitDebugMenuTriggerButton > svg {
|
|
712
859
|
margin-left: 10px;
|
|
713
860
|
}
|
|
714
861
|
.copilotKitDebugMenu {
|
|
715
|
-
|
|
862
|
+
--copilot-kit-dev-console-bg: #f8f8fa;
|
|
863
|
+
--copilot-kit-dev-console-border: color-mix(in srgb, var(--copilot-kit-dev-console-bg) 80%, black);
|
|
716
864
|
margin-top: 2px;
|
|
717
865
|
border-radius: 6px;
|
|
718
|
-
|
|
866
|
+
background-color: var(--copilot-kit-dev-console-bg);
|
|
867
|
+
border: 1px solid var(--copilot-kit-dev-console-border);
|
|
719
868
|
padding: 0.25rem;
|
|
720
869
|
outline: none;
|
|
721
870
|
font-size: 13px;
|
|
@@ -733,7 +882,7 @@ html {
|
|
|
733
882
|
cursor: pointer;
|
|
734
883
|
}
|
|
735
884
|
.copilotKitDebugMenuItem:hover {
|
|
736
|
-
background-color:
|
|
885
|
+
background-color: color-mix(in srgb, var(--copilot-kit-dev-console-bg) 92%, black);
|
|
737
886
|
border-radius: 4px;
|
|
738
887
|
}
|
|
739
888
|
.copilotKitDebugMenu[data-closed] {
|
|
@@ -743,9 +892,24 @@ html {
|
|
|
743
892
|
.copilotKitDebugMenu hr {
|
|
744
893
|
height: 1px;
|
|
745
894
|
border: none;
|
|
746
|
-
background-color:
|
|
895
|
+
background-color: var(--copilot-kit-dev-console-border);
|
|
747
896
|
margin: 0.25rem;
|
|
748
897
|
}
|
|
898
|
+
.copilotKitHelpItemButton {
|
|
899
|
+
display: block;
|
|
900
|
+
text-align: center;
|
|
901
|
+
width: 100%;
|
|
902
|
+
padding: 4px 6px;
|
|
903
|
+
border-radius: 15px;
|
|
904
|
+
font-size: 0.8rem;
|
|
905
|
+
border: 1px solid var(--copilot-kit-muted-color);
|
|
906
|
+
color: var(--copilot-kit-text-color);
|
|
907
|
+
box-shadow: 0 5px 5px 0px rgba(0, 0, 0, .01), 0 2px 3px 0px rgba(0, 0, 0, .02);
|
|
908
|
+
background-color: var(--copilot-kit-dev-console-bg);
|
|
909
|
+
}
|
|
910
|
+
.copilotKitHelpItemButton:hover {
|
|
911
|
+
background-color: #f9f9f9;
|
|
912
|
+
}
|
|
749
913
|
|
|
750
914
|
/* src/css/crew.css */
|
|
751
915
|
.copilotkit-response {
|