@copilotkit/react-ui 1.10.5-next.7 → 1.10.5-next.8
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 +9 -0
- package/dist/{chunk-YO63WHVQ.mjs → chunk-2LIO4Z3E.mjs} +2 -2
- package/dist/{chunk-X477GDGZ.mjs → chunk-3QYTKBWC.mjs} +2 -2
- package/dist/{chunk-LJAYSRCB.mjs → chunk-5XLGXUQI.mjs} +2 -2
- package/dist/{chunk-AUCJZBT5.mjs → chunk-DSNTTAJX.mjs} +4 -4
- package/dist/{chunk-B5IFB5YJ.mjs → chunk-IK2BPURM.mjs} +14 -3
- package/dist/chunk-IK2BPURM.mjs.map +1 -0
- package/dist/{chunk-SNFHUE5S.mjs → chunk-JZ3RFQQ6.mjs} +2 -2
- package/dist/{chunk-WOYNUDPM.mjs → chunk-K2FLPUR5.mjs} +4 -4
- package/dist/{chunk-73V4ZLAN.mjs → chunk-QPONDGDJ.mjs} +2 -2
- package/dist/{chunk-53C3S7R3.mjs → chunk-SDQTGCT2.mjs} +2 -2
- package/dist/{chunk-EELILZTD.mjs → chunk-W7ONZTSW.mjs} +2 -2
- package/dist/components/chat/Chat.d.ts +10 -10
- package/dist/components/chat/Chat.js +12 -1
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +7 -7
- package/dist/components/chat/CodeBlock.js +12 -1
- package/dist/components/chat/CodeBlock.js.map +1 -1
- package/dist/components/chat/CodeBlock.mjs +1 -1
- package/dist/components/chat/Markdown.js +12 -1
- package/dist/components/chat/Markdown.js.map +1 -1
- package/dist/components/chat/Markdown.mjs +2 -2
- package/dist/components/chat/Messages.js +12 -1
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +6 -6
- package/dist/components/chat/Modal.d.ts +1 -1
- package/dist/components/chat/Modal.js +12 -1
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +8 -8
- package/dist/components/chat/Popup.d.ts +1 -1
- package/dist/components/chat/Popup.js +12 -1
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +9 -9
- package/dist/components/chat/Sidebar.d.ts +1 -1
- package/dist/components/chat/Sidebar.js +12 -1
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +9 -9
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.js +12 -1
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +10 -10
- package/dist/components/chat/messages/AssistantMessage.js +12 -1
- package/dist/components/chat/messages/AssistantMessage.js.map +1 -1
- package/dist/components/chat/messages/AssistantMessage.mjs +3 -3
- package/dist/components/chat/messages/ErrorMessage.js +12 -1
- package/dist/components/chat/messages/ErrorMessage.js.map +1 -1
- package/dist/components/chat/messages/ErrorMessage.mjs +2 -2
- package/dist/components/chat/messages/LegacyRenderMessage.js +12 -1
- package/dist/components/chat/messages/LegacyRenderMessage.js.map +1 -1
- package/dist/components/chat/messages/LegacyRenderMessage.mjs +5 -5
- package/dist/components/chat/messages/RenderMessage.js +12 -1
- package/dist/components/chat/messages/RenderMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderMessage.mjs +4 -4
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +12 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -10
- package/dist/index.d.ts +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/package.json +4 -4
- package/src/components/chat/CodeBlock.tsx +14 -2
- package/dist/chunk-B5IFB5YJ.mjs.map +0 -1
- /package/dist/{chunk-YO63WHVQ.mjs.map → chunk-2LIO4Z3E.mjs.map} +0 -0
- /package/dist/{chunk-X477GDGZ.mjs.map → chunk-3QYTKBWC.mjs.map} +0 -0
- /package/dist/{chunk-LJAYSRCB.mjs.map → chunk-5XLGXUQI.mjs.map} +0 -0
- /package/dist/{chunk-AUCJZBT5.mjs.map → chunk-DSNTTAJX.mjs.map} +0 -0
- /package/dist/{chunk-SNFHUE5S.mjs.map → chunk-JZ3RFQQ6.mjs.map} +0 -0
- /package/dist/{chunk-WOYNUDPM.mjs.map → chunk-K2FLPUR5.mjs.map} +0 -0
- /package/dist/{chunk-73V4ZLAN.mjs.map → chunk-QPONDGDJ.mjs.map} +0 -0
- /package/dist/{chunk-53C3S7R3.mjs.map → chunk-SDQTGCT2.mjs.map} +0 -0
- /package/dist/{chunk-EELILZTD.mjs.map → chunk-W7ONZTSW.mjs.map} +0 -0
|
@@ -2,12 +2,12 @@ import "../chunk-MMVDU6DF.mjs";
|
|
|
2
2
|
import "../chunk-SC6JRFAJ.mjs";
|
|
3
3
|
import {
|
|
4
4
|
CopilotSidebar
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-SDQTGCT2.mjs";
|
|
6
6
|
import "../chunk-WB3YULQ4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
CopilotPopup
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-QPONDGDJ.mjs";
|
|
10
|
+
import "../chunk-DSNTTAJX.mjs";
|
|
11
11
|
import "../chunk-C3GSYRC3.mjs";
|
|
12
12
|
import "../chunk-GDSZGYCE.mjs";
|
|
13
13
|
import "../chunk-V7W6IM2V.mjs";
|
|
@@ -24,7 +24,7 @@ import "../chunk-BH6PCAAL.mjs";
|
|
|
24
24
|
import "../chunk-UFN2VWSR.mjs";
|
|
25
25
|
import {
|
|
26
26
|
CopilotChat
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-K2FLPUR5.mjs";
|
|
28
28
|
import {
|
|
29
29
|
Suggestions
|
|
30
30
|
} from "../chunk-226ZMOE3.mjs";
|
|
@@ -35,12 +35,12 @@ import "../chunk-PLHTVHUW.mjs";
|
|
|
35
35
|
import "../chunk-DTRPPNSA.mjs";
|
|
36
36
|
import "../chunk-CGEAG65D.mjs";
|
|
37
37
|
import "../chunk-QIOJXTIQ.mjs";
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-
|
|
40
|
-
import "../chunk-
|
|
38
|
+
import "../chunk-W7ONZTSW.mjs";
|
|
39
|
+
import "../chunk-2LIO4Z3E.mjs";
|
|
40
|
+
import "../chunk-5XLGXUQI.mjs";
|
|
41
41
|
import {
|
|
42
42
|
AssistantMessage
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-3QYTKBWC.mjs";
|
|
44
44
|
import {
|
|
45
45
|
ImageRenderer
|
|
46
46
|
} from "../chunk-DBKRAOH7.mjs";
|
|
@@ -49,11 +49,11 @@ import {
|
|
|
49
49
|
} from "../chunk-VVL6JFCJ.mjs";
|
|
50
50
|
import {
|
|
51
51
|
Markdown
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-JZ3RFQQ6.mjs";
|
|
53
53
|
import {
|
|
54
54
|
useChatContext
|
|
55
55
|
} from "../chunk-IEMQ2SQW.mjs";
|
|
56
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-IK2BPURM.mjs";
|
|
57
57
|
import "../chunk-XWG3L6QC.mjs";
|
|
58
58
|
import "../chunk-54JAUBUJ.mjs";
|
|
59
59
|
import "../chunk-JGMFJZMG.mjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import 'react/jsx-runtime';
|
|
|
20
20
|
import './components/chat/Modal.js';
|
|
21
21
|
import '@copilotkit/react-core/dist/types/coagent-state';
|
|
22
22
|
import '@copilotkit/react-core/dist/hooks/use-tree';
|
|
23
|
-
import '@copilotkit/react-core/dist/copilot-context-
|
|
23
|
+
import '@copilotkit/react-core/dist/copilot-context-cf9de848';
|
|
24
24
|
import '@copilotkit/react-core/dist/types/coagent-action';
|
|
25
25
|
import '@copilotkit/runtime-client-gql';
|
|
26
26
|
import 'react-markdown';
|
package/dist/index.js
CHANGED
|
@@ -1121,6 +1121,17 @@ var generateRandomString = (length, lowercase = false) => {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
var CodeBlock = (0, import_react6.memo)(({ language, value }) => {
|
|
1123
1123
|
const { isCopied, copyToClipboard } = useCopyToClipboard({ timeout: 2e3 });
|
|
1124
|
+
const [SyntaxHighlighter, setSyntaxHighlighter] = (0, import_react6.useState)(
|
|
1125
|
+
() => import_react_syntax_highlighter.Light
|
|
1126
|
+
);
|
|
1127
|
+
(0, import_react6.useEffect)(() => {
|
|
1128
|
+
try {
|
|
1129
|
+
new RegExp("(?<=#)\\w+");
|
|
1130
|
+
setSyntaxHighlighter(() => import_react_syntax_highlighter.Prism);
|
|
1131
|
+
} catch (e) {
|
|
1132
|
+
setSyntaxHighlighter(() => import_react_syntax_highlighter.Light);
|
|
1133
|
+
}
|
|
1134
|
+
}, []);
|
|
1124
1135
|
const downloadAsFile = () => {
|
|
1125
1136
|
if (typeof window === "undefined") {
|
|
1126
1137
|
return;
|
|
@@ -1156,7 +1167,7 @@ var CodeBlock = (0, import_react6.memo)(({ language, value }) => {
|
|
|
1156
1167
|
] })
|
|
1157
1168
|
] }),
|
|
1158
1169
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1159
|
-
|
|
1170
|
+
SyntaxHighlighter,
|
|
1160
1171
|
{
|
|
1161
1172
|
language,
|
|
1162
1173
|
style: highlightStyle,
|