@copilotkit/react-ui 1.59.1 → 1.59.2
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/.size-limit.json +7 -0
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +8 -2
- package/dist/index.umd.js.map +1 -1
- package/oxlint-rules/copilotkit-plugin.mjs +2 -0
- package/oxlint-rules/no-public-env-shell-read.mjs +221 -0
- package/package.json +6 -4
- package/src/components/chat/Messages.tsx +7 -7
- package/src/components/chat/messages/AssistantMessage.tsx +4 -2
- package/src/components/chat/messages/ErrorMessage.tsx +5 -2
- package/src/components/chat/messages/testids.test.ts +31 -0
package/dist/index.mjs
CHANGED
|
@@ -1413,7 +1413,10 @@ const AssistantMessage = (props) => {
|
|
|
1413
1413
|
const handleThumbsDown = () => {
|
|
1414
1414
|
if (onThumbsDown && message) onThumbsDown(message);
|
|
1415
1415
|
};
|
|
1416
|
-
const LoadingIcon = () => /* @__PURE__ */ jsx("span", {
|
|
1416
|
+
const LoadingIcon = () => /* @__PURE__ */ jsx("span", {
|
|
1417
|
+
"data-testid": "copilot-loading-cursor",
|
|
1418
|
+
children: icons.activityIcon
|
|
1419
|
+
});
|
|
1417
1420
|
const content = message?.content || "";
|
|
1418
1421
|
const subComponent = message?.generativeUI?.() ?? props.subComponent;
|
|
1419
1422
|
const subComponentPosition = message?.generativeUIPosition ?? "after";
|
|
@@ -1653,7 +1656,10 @@ const Messages = ({ inProgress, children, RenderMessage, AssistantMessage, UserM
|
|
|
1653
1656
|
...props,
|
|
1654
1657
|
legacyProps
|
|
1655
1658
|
}) : RenderMessage;
|
|
1656
|
-
const LoadingIcon = () => /* @__PURE__ */ jsx("span", {
|
|
1659
|
+
const LoadingIcon = () => /* @__PURE__ */ jsx("span", {
|
|
1660
|
+
"data-testid": "copilot-loading-cursor",
|
|
1661
|
+
children: icons.activityIcon
|
|
1662
|
+
});
|
|
1657
1663
|
return /* @__PURE__ */ jsxs("div", {
|
|
1658
1664
|
className: "copilotKitMessages",
|
|
1659
1665
|
ref: messagesContainerRef,
|