@copilotkit/react-ui 1.51.3-next.6 → 1.51.3-next.7
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-VVCCMYGT.mjs → chunk-7CMZ7YPQ.mjs} +2 -2
- package/dist/{chunk-7OURDQZJ.mjs → chunk-F2CDEOFX.mjs} +2 -2
- package/dist/{chunk-NCIAFFQ2.mjs → chunk-LBR23XXF.mjs} +2 -2
- package/dist/{chunk-IHFR6PYG.mjs → chunk-LYYDXL2G.mjs} +8 -4
- package/dist/chunk-LYYDXL2G.mjs.map +1 -0
- package/dist/{chunk-BVKKSSB2.mjs → chunk-OHGUQZJT.mjs} +4 -4
- package/dist/{chunk-NSJWSIPR.mjs → chunk-PD36EMOZ.mjs} +4 -4
- package/dist/{chunk-DI7DDMRS.mjs → chunk-RKQM2AE5.mjs} +2 -2
- package/dist/{chunk-HIW7RXCD.mjs → chunk-WNX755OE.mjs} +2 -2
- package/dist/components/chat/Chat.js +7 -3
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +5 -5
- package/dist/components/chat/Messages.js +7 -3
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +4 -4
- package/dist/components/chat/Modal.js +7 -3
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +6 -6
- package/dist/components/chat/Popup.js +7 -3
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +7 -7
- package/dist/components/chat/Sidebar.js +7 -3
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +7 -7
- package/dist/components/chat/index.js +7 -3
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +8 -8
- package/dist/components/chat/messages/AssistantMessage.js +7 -3
- package/dist/components/chat/messages/AssistantMessage.js.map +1 -1
- package/dist/components/chat/messages/AssistantMessage.mjs +1 -1
- package/dist/components/chat/messages/LegacyRenderMessage.js +7 -3
- package/dist/components/chat/messages/LegacyRenderMessage.js.map +1 -1
- package/dist/components/chat/messages/LegacyRenderMessage.mjs +3 -3
- package/dist/components/chat/messages/RenderMessage.js +7 -3
- package/dist/components/chat/messages/RenderMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderMessage.mjs +2 -2
- package/dist/components/index.js +7 -3
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +8 -8
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/package.json +4 -4
- package/src/components/chat/messages/AssistantMessage.tsx +6 -2
- package/dist/chunk-IHFR6PYG.mjs.map +0 -1
- /package/dist/{chunk-VVCCMYGT.mjs.map → chunk-7CMZ7YPQ.mjs.map} +0 -0
- /package/dist/{chunk-7OURDQZJ.mjs.map → chunk-F2CDEOFX.mjs.map} +0 -0
- /package/dist/{chunk-NCIAFFQ2.mjs.map → chunk-LBR23XXF.mjs.map} +0 -0
- /package/dist/{chunk-BVKKSSB2.mjs.map → chunk-OHGUQZJT.mjs.map} +0 -0
- /package/dist/{chunk-NSJWSIPR.mjs.map → chunk-PD36EMOZ.mjs.map} +0 -0
- /package/dist/{chunk-DI7DDMRS.mjs.map → chunk-RKQM2AE5.mjs.map} +0 -0
- /package/dist/{chunk-HIW7RXCD.mjs.map → chunk-WNX755OE.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-OHGUQZJT.mjs";
|
|
4
4
|
import "../../chunk-C3GSYRC3.mjs";
|
|
5
5
|
import "../../chunk-GDSZGYCE.mjs";
|
|
6
6
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -11,17 +11,17 @@ import "../../chunk-KXE2JCUH.mjs";
|
|
|
11
11
|
import "../../chunk-NRA3CFEE.mjs";
|
|
12
12
|
import "../../chunk-BH6PCAAL.mjs";
|
|
13
13
|
import "../../chunk-UFN2VWSR.mjs";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-PD36EMOZ.mjs";
|
|
15
15
|
import "../../chunk-VHKHX7GV.mjs";
|
|
16
16
|
import "../../chunk-6TWQUA2Q.mjs";
|
|
17
17
|
import "../../chunk-PLHTVHUW.mjs";
|
|
18
18
|
import "../../chunk-3W6J75HS.mjs";
|
|
19
19
|
import "../../chunk-ELGRNEAO.mjs";
|
|
20
20
|
import "../../chunk-QIOJXTIQ.mjs";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
23
|
-
import "../../chunk-
|
|
24
|
-
import "../../chunk-
|
|
21
|
+
import "../../chunk-WNX755OE.mjs";
|
|
22
|
+
import "../../chunk-F2CDEOFX.mjs";
|
|
23
|
+
import "../../chunk-LBR23XXF.mjs";
|
|
24
|
+
import "../../chunk-LYYDXL2G.mjs";
|
|
25
25
|
import "../../chunk-DBKRAOH7.mjs";
|
|
26
26
|
import "../../chunk-RYUCX3ZK.mjs";
|
|
27
27
|
import "../../chunk-JZ3RFQQ6.mjs";
|
|
@@ -1586,7 +1586,7 @@ var Markdown = ({ content, components }) => {
|
|
|
1586
1586
|
var import_react8 = require("react");
|
|
1587
1587
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1588
1588
|
var AssistantMessage = (props) => {
|
|
1589
|
-
var _a;
|
|
1589
|
+
var _a, _b, _c;
|
|
1590
1590
|
const { icons, labels } = useChatContext();
|
|
1591
1591
|
const {
|
|
1592
1592
|
message,
|
|
@@ -1629,8 +1629,12 @@ var AssistantMessage = (props) => {
|
|
|
1629
1629
|
};
|
|
1630
1630
|
const LoadingIcon = () => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { children: icons.activityIcon });
|
|
1631
1631
|
const content = (message == null ? void 0 : message.content) || "";
|
|
1632
|
-
const subComponent = (_a = message == null ? void 0 : message.generativeUI) == null ? void 0 : _a.call(message);
|
|
1632
|
+
const subComponent = (_b = (_a = message == null ? void 0 : message.generativeUI) == null ? void 0 : _a.call(message)) != null ? _b : props.subComponent;
|
|
1633
|
+
const subComponentPosition = (_c = message == null ? void 0 : message.generativeUIPosition) != null ? _c : "after";
|
|
1634
|
+
const renderBefore = subComponent && subComponentPosition === "before";
|
|
1635
|
+
const renderAfter = subComponent && subComponentPosition !== "before";
|
|
1633
1636
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_jsx_runtime13.Fragment, { children: [
|
|
1637
|
+
renderBefore ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { marginBottom: "0.5rem" }, children: subComponent }) : null,
|
|
1634
1638
|
content && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "copilotKitMessage copilotKitAssistantMessage", children: [
|
|
1635
1639
|
content && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Markdown, { content, components: markdownTagRenderers }),
|
|
1636
1640
|
content && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
@@ -1682,7 +1686,7 @@ var AssistantMessage = (props) => {
|
|
|
1682
1686
|
}
|
|
1683
1687
|
)
|
|
1684
1688
|
] }),
|
|
1685
|
-
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { marginBottom: "0.5rem" }, children: subComponent }),
|
|
1689
|
+
renderAfter ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { marginBottom: "0.5rem" }, children: subComponent }) : null,
|
|
1686
1690
|
isLoading && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(LoadingIcon, {})
|
|
1687
1691
|
] });
|
|
1688
1692
|
};
|