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