@copilotkit/react-ui 1.9.2-next.10 → 1.9.2-next.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +0 -70
  2. package/dist/{chunk-HC4XNT4D.mjs → chunk-6HXS43LW.mjs} +2 -2
  3. package/dist/{chunk-CV7HMDQX.mjs → chunk-6JX4WIAX.mjs} +2 -2
  4. package/dist/{chunk-COWRPULP.mjs → chunk-725PPN77.mjs} +9 -11
  5. package/dist/chunk-725PPN77.mjs.map +1 -0
  6. package/dist/{chunk-2CVOR5KS.mjs → chunk-EMIYIMQ6.mjs} +14 -24
  7. package/dist/chunk-EMIYIMQ6.mjs.map +1 -0
  8. package/dist/{chunk-HTWRXRTZ.mjs → chunk-GVKA7RQQ.mjs} +2 -2
  9. package/dist/{chunk-6CM2HBBL.mjs → chunk-RT4HE74K.mjs} +10 -12
  10. package/dist/chunk-RT4HE74K.mjs.map +1 -0
  11. package/dist/{chunk-OHLSW5IM.mjs → chunk-SGFUVPDB.mjs} +7 -7
  12. package/dist/components/chat/Chat.d.ts +1 -2
  13. package/dist/components/chat/Chat.js +11 -23
  14. package/dist/components/chat/Chat.js.map +1 -1
  15. package/dist/components/chat/Chat.mjs +6 -6
  16. package/dist/components/chat/Header.mjs +3 -3
  17. package/dist/components/chat/Input.d.ts +1 -1
  18. package/dist/components/chat/Input.js +9 -19
  19. package/dist/components/chat/Input.js.map +1 -1
  20. package/dist/components/chat/Input.mjs +2 -2
  21. package/dist/components/chat/Modal.js +13 -27
  22. package/dist/components/chat/Modal.js.map +1 -1
  23. package/dist/components/chat/Modal.mjs +15 -15
  24. package/dist/components/chat/Popup.js +13 -27
  25. package/dist/components/chat/Popup.js.map +1 -1
  26. package/dist/components/chat/Popup.mjs +16 -16
  27. package/dist/components/chat/Sidebar.js +13 -27
  28. package/dist/components/chat/Sidebar.js.map +1 -1
  29. package/dist/components/chat/Sidebar.mjs +16 -16
  30. package/dist/components/chat/index.js +13 -27
  31. package/dist/components/chat/index.js.map +1 -1
  32. package/dist/components/chat/index.mjs +19 -19
  33. package/dist/components/chat/props.d.ts +0 -1
  34. package/dist/components/chat/props.js.map +1 -1
  35. package/dist/components/dev-console/console.mjs +2 -2
  36. package/dist/components/dev-console/index.mjs +2 -2
  37. package/dist/components/index.js +13 -27
  38. package/dist/components/index.js.map +1 -1
  39. package/dist/components/index.mjs +23 -23
  40. package/dist/index.js +13 -27
  41. package/dist/index.js.map +1 -1
  42. package/dist/index.mjs +24 -24
  43. package/dist/lib/utils.test.d.ts +2 -0
  44. package/dist/lib/utils.test.js +9 -0
  45. package/dist/lib/utils.test.js.map +1 -0
  46. package/dist/lib/utils.test.mjs +7 -0
  47. package/dist/lib/utils.test.mjs.map +1 -0
  48. package/package.json +5 -5
  49. package/src/components/chat/Chat.tsx +0 -4
  50. package/src/components/chat/Input.tsx +11 -21
  51. package/src/components/chat/Modal.tsx +3 -6
  52. package/src/components/chat/props.ts +0 -1
  53. package/tsup.config.ts +6 -1
  54. package/dist/chunk-2CVOR5KS.mjs.map +0 -1
  55. package/dist/chunk-6CM2HBBL.mjs.map +0 -1
  56. package/dist/chunk-COWRPULP.mjs.map +0 -1
  57. /package/dist/{chunk-HC4XNT4D.mjs.map → chunk-6HXS43LW.mjs.map} +0 -0
  58. /package/dist/{chunk-CV7HMDQX.mjs.map → chunk-6JX4WIAX.mjs.map} +0 -0
  59. /package/dist/{chunk-HTWRXRTZ.mjs.map → chunk-GVKA7RQQ.mjs.map} +0 -0
  60. /package/dist/{chunk-OHLSW5IM.mjs.map → chunk-SGFUVPDB.mjs.map} +0 -0
@@ -2,16 +2,24 @@ import "../../chunk-SC6JRFAJ.mjs";
2
2
  import "../../chunk-WB3YULQ4.mjs";
3
3
  import {
4
4
  CopilotPopup
5
- } from "../../chunk-HC4XNT4D.mjs";
5
+ } from "../../chunk-6HXS43LW.mjs";
6
6
  import {
7
7
  CopilotSidebar
8
- } from "../../chunk-CV7HMDQX.mjs";
9
- import "../../chunk-COWRPULP.mjs";
8
+ } from "../../chunk-6JX4WIAX.mjs";
9
+ import "../../chunk-725PPN77.mjs";
10
10
  import "../../chunk-C3GSYRC3.mjs";
11
+ import "../../chunk-GVKA7RQQ.mjs";
12
+ import "../../chunk-V7W6IM2V.mjs";
13
+ import "../../chunk-SGFUVPDB.mjs";
14
+ import "../../chunk-Q5V6S67N.mjs";
15
+ import "../../chunk-QN7T3GWI.mjs";
16
+ import "../../chunk-KXE2JCUH.mjs";
17
+ import "../../chunk-NRA3CFEE.mjs";
18
+ import "../../chunk-BH6PCAAL.mjs";
11
19
  import "../../chunk-UFN2VWSR.mjs";
12
20
  import {
13
21
  CopilotChat
14
- } from "../../chunk-6CM2HBBL.mjs";
22
+ } from "../../chunk-RT4HE74K.mjs";
15
23
  import "../../chunk-UKCPOBQM.mjs";
16
24
  import "../../chunk-2II3Q27P.mjs";
17
25
  import {
@@ -28,30 +36,22 @@ import {
28
36
  import {
29
37
  Suggestions
30
38
  } from "../../chunk-QGSPTXOV.mjs";
31
- import "../../chunk-2CVOR5KS.mjs";
39
+ import {
40
+ Suggestion
41
+ } from "../../chunk-IMBPSLL4.mjs";
42
+ import "../../chunk-PLHTVHUW.mjs";
43
+ import "../../chunk-EMIYIMQ6.mjs";
44
+ import "../../chunk-CGEAG65D.mjs";
32
45
  import "../../chunk-YQFVRDNC.mjs";
33
46
  import {
34
47
  Markdown
35
48
  } from "../../chunk-YTXEWDNC.mjs";
36
- import "../../chunk-B3D7U7TJ.mjs";
37
- import "../../chunk-CGEAG65D.mjs";
38
- import {
39
- Suggestion
40
- } from "../../chunk-IMBPSLL4.mjs";
41
49
  import "../../chunk-KENCH7RN.mjs";
42
- import "../../chunk-HTWRXRTZ.mjs";
43
- import "../../chunk-V7W6IM2V.mjs";
44
- import "../../chunk-OHLSW5IM.mjs";
45
- import "../../chunk-QN7T3GWI.mjs";
46
- import "../../chunk-KXE2JCUH.mjs";
47
- import "../../chunk-NRA3CFEE.mjs";
48
- import "../../chunk-BH6PCAAL.mjs";
49
- import "../../chunk-Q5V6S67N.mjs";
50
+ import "../../chunk-B3D7U7TJ.mjs";
50
51
  import {
51
52
  useChatContext
52
53
  } from "../../chunk-IEMQ2SQW.mjs";
53
54
  import "../../chunk-XWG3L6QC.mjs";
54
- import "../../chunk-PLHTVHUW.mjs";
55
55
  import "../../chunk-54JAUBUJ.mjs";
56
56
  import "../../chunk-JGMFJZMG.mjs";
57
57
  import "../../chunk-S5MBUNGN.mjs";
@@ -150,7 +150,6 @@ interface InputProps {
150
150
  isVisible?: boolean;
151
151
  onStop?: () => void;
152
152
  onUpload?: () => void;
153
- hideStopButton?: boolean;
154
153
  }
155
154
  interface RenderSuggestionsListProps {
156
155
  suggestions: CopilotChatSuggestion[];
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/chat/props.ts"],"sourcesContent":["import { Message, TextMessage } from \"@copilotkit/runtime-client-gql\";\nimport { CopilotChatSuggestion } from \"../../types/suggestions\";\nimport { ReactNode } from \"react\";\n\nexport interface ButtonProps {}\n\nexport interface WindowProps {\n clickOutsideToClose: boolean;\n hitEscapeToClose: boolean;\n shortcut: string;\n children?: React.ReactNode;\n}\n\nexport interface HeaderProps {}\n\nexport interface SuggestionsProps {\n title: string;\n message: string;\n partial?: boolean;\n className?: string;\n onClick: (message: string) => void;\n}\n\nexport type ComponentsMap<T extends Record<string, object> = Record<string, object>> = {\n [K in keyof T]: React.FC<{ children?: ReactNode } & T[K]>;\n};\n\nexport interface MessagesProps {\n messages: Message[];\n inProgress: boolean;\n children?: React.ReactNode;\n AssistantMessage: React.ComponentType<AssistantMessageProps>;\n UserMessage: React.ComponentType<UserMessageProps>;\n RenderTextMessage: React.ComponentType<RenderMessageProps>;\n RenderActionExecutionMessage: React.ComponentType<RenderMessageProps>;\n RenderAgentStateMessage: React.ComponentType<RenderMessageProps>;\n RenderResultMessage: React.ComponentType<RenderMessageProps>;\n RenderImageMessage: React.ComponentType<RenderMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface Renderer {\n content: string;\n}\n\nexport interface UserMessageProps {\n message?: string;\n rawData: any;\n subComponent?: React.JSX.Element;\n}\n\nexport interface AssistantMessageProps {\n /**\n * The message content from the assistant\n */\n\n message?: string;\n\n /**\n * Indicates if this is the last message\n */\n isCurrentMessage?: boolean;\n\n /**\n * The raw data from the assistant's response\n */\n rawData: any;\n\n /**\n * A component that was decided to render by the LLM.\n * When working with useCopilotActions and useCoAgentStateRender, this will be\n * the render component that was specified.\n */\n subComponent?: React.JSX.Element;\n\n /**\n * Whether a response is loading, this is when the LLM is thinking of a response but hasn't finished yet.\n */\n isLoading: boolean;\n\n /**\n * Whether a response is generating, this is when the LLM is actively generating and streaming content.\n */\n isGenerating: boolean;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: () => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface RenderMessageProps {\n message: Message;\n inProgress: boolean;\n index: number;\n isCurrentMessage: boolean;\n actionResult?: string;\n AssistantMessage?: React.ComponentType<AssistantMessageProps>;\n UserMessage?: React.ComponentType<UserMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface InputProps {\n inProgress: boolean;\n onSend: (text: string) => Promise<Message>;\n isVisible?: boolean;\n onStop?: () => void;\n onUpload?: () => void;\n hideStopButton?: boolean;\n}\n\nexport interface RenderSuggestionsListProps {\n suggestions: CopilotChatSuggestion[];\n onSuggestionClick: (message: string) => void;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../../src/components/chat/props.ts"],"sourcesContent":["import { Message, TextMessage } from \"@copilotkit/runtime-client-gql\";\nimport { CopilotChatSuggestion } from \"../../types/suggestions\";\nimport { ReactNode } from \"react\";\n\nexport interface ButtonProps {}\n\nexport interface WindowProps {\n clickOutsideToClose: boolean;\n hitEscapeToClose: boolean;\n shortcut: string;\n children?: React.ReactNode;\n}\n\nexport interface HeaderProps {}\n\nexport interface SuggestionsProps {\n title: string;\n message: string;\n partial?: boolean;\n className?: string;\n onClick: (message: string) => void;\n}\n\nexport type ComponentsMap<T extends Record<string, object> = Record<string, object>> = {\n [K in keyof T]: React.FC<{ children?: ReactNode } & T[K]>;\n};\n\nexport interface MessagesProps {\n messages: Message[];\n inProgress: boolean;\n children?: React.ReactNode;\n AssistantMessage: React.ComponentType<AssistantMessageProps>;\n UserMessage: React.ComponentType<UserMessageProps>;\n RenderTextMessage: React.ComponentType<RenderMessageProps>;\n RenderActionExecutionMessage: React.ComponentType<RenderMessageProps>;\n RenderAgentStateMessage: React.ComponentType<RenderMessageProps>;\n RenderResultMessage: React.ComponentType<RenderMessageProps>;\n RenderImageMessage: React.ComponentType<RenderMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface Renderer {\n content: string;\n}\n\nexport interface UserMessageProps {\n message?: string;\n rawData: any;\n subComponent?: React.JSX.Element;\n}\n\nexport interface AssistantMessageProps {\n /**\n * The message content from the assistant\n */\n\n message?: string;\n\n /**\n * Indicates if this is the last message\n */\n isCurrentMessage?: boolean;\n\n /**\n * The raw data from the assistant's response\n */\n rawData: any;\n\n /**\n * A component that was decided to render by the LLM.\n * When working with useCopilotActions and useCoAgentStateRender, this will be\n * the render component that was specified.\n */\n subComponent?: React.JSX.Element;\n\n /**\n * Whether a response is loading, this is when the LLM is thinking of a response but hasn't finished yet.\n */\n isLoading: boolean;\n\n /**\n * Whether a response is generating, this is when the LLM is actively generating and streaming content.\n */\n isGenerating: boolean;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: () => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface RenderMessageProps {\n message: Message;\n inProgress: boolean;\n index: number;\n isCurrentMessage: boolean;\n actionResult?: string;\n AssistantMessage?: React.ComponentType<AssistantMessageProps>;\n UserMessage?: React.ComponentType<UserMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface InputProps {\n inProgress: boolean;\n onSend: (text: string) => Promise<Message>;\n isVisible?: boolean;\n onStop?: () => void;\n onUpload?: () => void;\n}\n\nexport interface RenderSuggestionsListProps {\n suggestions: CopilotChatSuggestion[];\n onSuggestionClick: (message: string) => void;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  CopilotDevConsole,
4
4
  DebugMenuButton
5
- } from "../../chunk-OHLSW5IM.mjs";
5
+ } from "../../chunk-SGFUVPDB.mjs";
6
+ import "../../chunk-Q5V6S67N.mjs";
6
7
  import "../../chunk-QN7T3GWI.mjs";
7
8
  import "../../chunk-KXE2JCUH.mjs";
8
9
  import "../../chunk-NRA3CFEE.mjs";
9
10
  import "../../chunk-BH6PCAAL.mjs";
10
- import "../../chunk-Q5V6S67N.mjs";
11
11
  import "../../chunk-XWG3L6QC.mjs";
12
12
  import "../../chunk-MRXNTQOX.mjs";
13
13
  export {
@@ -1,14 +1,14 @@
1
1
  import "../../chunk-V7W6IM2V.mjs";
2
2
  import {
3
3
  CopilotDevConsole
4
- } from "../../chunk-OHLSW5IM.mjs";
4
+ } from "../../chunk-SGFUVPDB.mjs";
5
+ import "../../chunk-Q5V6S67N.mjs";
5
6
  import {
6
7
  shouldShowDevConsole
7
8
  } from "../../chunk-QN7T3GWI.mjs";
8
9
  import "../../chunk-KXE2JCUH.mjs";
9
10
  import "../../chunk-NRA3CFEE.mjs";
10
11
  import "../../chunk-BH6PCAAL.mjs";
11
- import "../../chunk-Q5V6S67N.mjs";
12
12
  import "../../chunk-XWG3L6QC.mjs";
13
13
  import "../../chunk-MRXNTQOX.mjs";
14
14
  export {
@@ -1427,15 +1427,8 @@ function PoweredByTag({ showPoweredBy = true }) {
1427
1427
  // src/components/chat/Input.tsx
1428
1428
  var import_jsx_runtime13 = require("react/jsx-runtime");
1429
1429
  var MAX_NEWLINES = 6;
1430
- var Input = ({
1431
- inProgress,
1432
- onSend,
1433
- isVisible = false,
1434
- onStop,
1435
- onUpload,
1436
- hideStopButton = false
1437
- }) => {
1438
- var _a, _b;
1430
+ var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
1431
+ var _a;
1439
1432
  const context = useChatContext();
1440
1433
  const copilotContext = (0, import_react_core6.useCopilotContext)();
1441
1434
  const showPoweredBy = !((_a = copilotContext.copilotApiConfig) == null ? void 0 : _a.publicApiKey);
@@ -1464,18 +1457,15 @@ var Input = ({
1464
1457
  inProgress
1465
1458
  });
1466
1459
  const isInProgress = inProgress || pushToTalkState === "transcribing";
1467
- const buttonIcon = isInProgress && !hideStopButton ? context.icons.stopIcon : context.icons.sendIcon;
1460
+ const buttonIcon = isInProgress ? context.icons.stopIcon : context.icons.sendIcon;
1468
1461
  const showPushToTalk = pushToTalkConfigured && (pushToTalkState === "idle" || pushToTalkState === "recording") && !inProgress;
1469
- const canSend = (0, import_react9.useMemo)(() => {
1462
+ const canSend = () => {
1470
1463
  var _a2;
1471
1464
  const interruptEvent = (_a2 = copilotContext.langGraphInterruptAction) == null ? void 0 : _a2.event;
1472
1465
  const interruptInProgress = (interruptEvent == null ? void 0 : interruptEvent.name) === "LangGraphInterruptEvent" && !(interruptEvent == null ? void 0 : interruptEvent.response);
1473
- return !isInProgress && text.trim().length > 0 && pushToTalkState === "idle" && !interruptInProgress;
1474
- }, [(_b = copilotContext.langGraphInterruptAction) == null ? void 0 : _b.event, isInProgress, text, pushToTalkState]);
1475
- const canStop = (0, import_react9.useMemo)(() => {
1476
- return isInProgress && !hideStopButton;
1477
- }, [isInProgress, hideStopButton]);
1478
- const sendDisabled = !canSend && !canStop;
1466
+ return (isInProgress || !isInProgress && text.trim().length > 0) && pushToTalkState === "idle" && !interruptInProgress;
1467
+ };
1468
+ const sendDisabled = !canSend();
1479
1469
  return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: `copilotKitInputContainer ${showPoweredBy ? "poweredByContainer" : ""}`, children: [
1480
1470
  /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "copilotKitInput", onClick: handleDivClick, children: [
1481
1471
  /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
@@ -1490,7 +1480,7 @@ var Input = ({
1490
1480
  onKeyDown: (event) => {
1491
1481
  if (event.key === "Enter" && !event.shiftKey) {
1492
1482
  event.preventDefault();
1493
- if (canSend) {
1483
+ if (canSend()) {
1494
1484
  send();
1495
1485
  }
1496
1486
  }
@@ -1512,7 +1502,7 @@ var Input = ({
1512
1502
  "button",
1513
1503
  {
1514
1504
  disabled: sendDisabled,
1515
- onClick: isInProgress && !hideStopButton ? onStop : send,
1505
+ onClick: isInProgress ? onStop : send,
1516
1506
  "data-copilotkit-in-progress": inProgress,
1517
1507
  "data-test-id": inProgress ? "copilot-chat-request-in-progress" : "copilot-chat-ready",
1518
1508
  className: "copilotKitInputControlButton",
@@ -2718,8 +2708,7 @@ function CopilotChat({
2718
2708
  AssistantMessage: AssistantMessage2 = AssistantMessage,
2719
2709
  UserMessage: UserMessage2 = UserMessage,
2720
2710
  imageUploadsEnabled,
2721
- inputFileAccept = "image/*",
2722
- hideStopButton
2711
+ inputFileAccept = "image/*"
2723
2712
  }) {
2724
2713
  const { additionalInstructions, setChatInstructions } = (0, import_react_core10.useCopilotContext)();
2725
2714
  const [selectedImages, setSelectedImages] = (0, import_react13.useState)([]);
@@ -2902,8 +2891,7 @@ function CopilotChat({
2902
2891
  onUpload: imageUploadsEnabled ? () => {
2903
2892
  var _a;
2904
2893
  return (_a = fileInputRef.current) == null ? void 0 : _a.click();
2905
- } : void 0,
2906
- hideStopButton
2894
+ } : void 0
2907
2895
  }
2908
2896
  )
2909
2897
  ] });
@@ -3168,10 +3156,8 @@ var CopilotModal = (_a) => {
3168
3156
  onSetOpen == null ? void 0 : onSetOpen(open);
3169
3157
  setOpenState(open);
3170
3158
  };
3171
- const memoizedHeader = (0, import_react14.useMemo)(() => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Header2, {}), [Header2]);
3172
- const memoizedChildren = (0, import_react14.useMemo)(() => children, [children]);
3173
3159
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(ChatContextProvider, { icons, labels, open: openState, setOpen, children: [
3174
- memoizedChildren,
3160
+ children,
3175
3161
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className, children: [
3176
3162
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Button2, {}),
3177
3163
  /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
@@ -3181,7 +3167,7 @@ var CopilotModal = (_a) => {
3181
3167
  shortcut,
3182
3168
  hitEscapeToClose,
3183
3169
  children: [
3184
- memoizedHeader,
3170
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Header2, {}),
3185
3171
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3186
3172
  CopilotChat,
3187
3173
  __spreadProps(__spreadValues({}, props), {