@copilotkit/react-ui 1.59.1 → 1.59.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/.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/.size-limit.json
ADDED
package/dist/index.cjs
CHANGED
|
@@ -1445,7 +1445,10 @@ const AssistantMessage = (props) => {
|
|
|
1445
1445
|
const handleThumbsDown = () => {
|
|
1446
1446
|
if (onThumbsDown && message) onThumbsDown(message);
|
|
1447
1447
|
};
|
|
1448
|
-
const LoadingIcon = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1448
|
+
const LoadingIcon = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1449
|
+
"data-testid": "copilot-loading-cursor",
|
|
1450
|
+
children: icons.activityIcon
|
|
1451
|
+
});
|
|
1449
1452
|
const content = message?.content || "";
|
|
1450
1453
|
const subComponent = message?.generativeUI?.() ?? props.subComponent;
|
|
1451
1454
|
const subComponentPosition = message?.generativeUIPosition ?? "after";
|
|
@@ -1685,7 +1688,10 @@ const Messages = ({ inProgress, children, RenderMessage, AssistantMessage, UserM
|
|
|
1685
1688
|
...props,
|
|
1686
1689
|
legacyProps
|
|
1687
1690
|
}) : RenderMessage;
|
|
1688
|
-
const LoadingIcon = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1691
|
+
const LoadingIcon = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
1692
|
+
"data-testid": "copilot-loading-cursor",
|
|
1693
|
+
children: icons.activityIcon
|
|
1694
|
+
});
|
|
1689
1695
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1690
1696
|
className: "copilotKitMessages",
|
|
1691
1697
|
ref: messagesContainerRef,
|