@copilotkit/react-ui 1.59.0 → 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/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", { children: icons.activityIcon });
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", { children: icons.activityIcon });
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,