@copilotkit/react-ui 1.4.8-no-pino-redact.1 → 1.4.8

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 (49) hide show
  1. package/CHANGELOG.md +22 -4
  2. package/dist/{chunk-T35X2SFE.mjs → chunk-46UJJGXP.mjs} +2 -2
  3. package/dist/{chunk-E5SSVET3.mjs → chunk-752NGHCE.mjs} +2 -2
  4. package/dist/{chunk-FUDBUYBG.mjs → chunk-CVHT5XCA.mjs} +2 -2
  5. package/dist/{chunk-TTYR7XPN.mjs → chunk-DVMTTXGZ.mjs} +2 -2
  6. package/dist/{chunk-ZQFKJLQ6.mjs → chunk-PNKBFDUI.mjs} +2 -2
  7. package/dist/{chunk-ICGZEGHQ.mjs → chunk-TI7SY2RI.mjs} +13 -4
  8. package/dist/chunk-TI7SY2RI.mjs.map +1 -0
  9. package/dist/components/chat/Chat.js +12 -26
  10. package/dist/components/chat/Chat.js.map +1 -1
  11. package/dist/components/chat/Chat.mjs +3 -3
  12. package/dist/components/chat/Modal.js +12 -26
  13. package/dist/components/chat/Modal.js.map +1 -1
  14. package/dist/components/chat/Modal.mjs +4 -4
  15. package/dist/components/chat/Popup.js +12 -26
  16. package/dist/components/chat/Popup.js.map +1 -1
  17. package/dist/components/chat/Popup.mjs +5 -5
  18. package/dist/components/chat/Sidebar.js +12 -26
  19. package/dist/components/chat/Sidebar.js.map +1 -1
  20. package/dist/components/chat/Sidebar.mjs +5 -5
  21. package/dist/components/chat/index.js +12 -26
  22. package/dist/components/chat/index.js.map +1 -1
  23. package/dist/components/chat/index.mjs +6 -6
  24. package/dist/components/dev-console/console.js +12 -26
  25. package/dist/components/dev-console/console.js.map +1 -1
  26. package/dist/components/dev-console/console.mjs +2 -2
  27. package/dist/components/dev-console/index.js +12 -26
  28. package/dist/components/dev-console/index.js.map +1 -1
  29. package/dist/components/dev-console/index.mjs +2 -2
  30. package/dist/components/help-modal/index.js +12 -26
  31. package/dist/components/help-modal/index.js.map +1 -1
  32. package/dist/components/help-modal/index.mjs +1 -1
  33. package/dist/components/help-modal/modal.js +12 -26
  34. package/dist/components/help-modal/modal.js.map +1 -1
  35. package/dist/components/help-modal/modal.mjs +1 -1
  36. package/dist/components/index.js +12 -26
  37. package/dist/components/index.js.map +1 -1
  38. package/dist/components/index.mjs +6 -6
  39. package/dist/index.js +12 -26
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.mjs +6 -6
  42. package/package.json +4 -4
  43. package/src/components/help-modal/modal.tsx +12 -2
  44. package/dist/chunk-ICGZEGHQ.mjs.map +0 -1
  45. /package/dist/{chunk-T35X2SFE.mjs.map → chunk-46UJJGXP.mjs.map} +0 -0
  46. /package/dist/{chunk-E5SSVET3.mjs.map → chunk-752NGHCE.mjs.map} +0 -0
  47. /package/dist/{chunk-FUDBUYBG.mjs.map → chunk-CVHT5XCA.mjs.map} +0 -0
  48. /package/dist/{chunk-TTYR7XPN.mjs.map → chunk-DVMTTXGZ.mjs.map} +0 -0
  49. /package/dist/{chunk-ZQFKJLQ6.mjs.map → chunk-PNKBFDUI.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # ui
2
2
 
3
- ## 1.4.8-no-pino-redact.1
3
+ ## 1.4.8
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - @copilotkit/runtime-client-gql@1.4.8-no-pino-redact.1
8
- - @copilotkit/react-core@1.4.8-no-pino-redact.1
9
- - @copilotkit/shared@1.4.8-no-pino-redact.1
7
+ - ea0c5d5: - fix: prevent sending empty messages via Enter key
8
+
9
+ When the input field was empty, pressing Enter would still trigger the
10
+ send() function despite the send button being correctly disabled. Added
11
+ the sendDisabled check to the onKeyDown handler to ensure consistent
12
+ validation between button and keyboard triggers.
13
+
14
+ - Added validation check to Enter key handler
15
+ - Ensures empty messages can't be sent via keyboard shortcut
16
+ - Makes behavior consistent with disabled send button state
17
+
18
+ Resolves #1129
19
+
20
+ - - Better error handling
21
+ - Introduce new "EmptyLLMAdapter" for when using CoAgents
22
+ - Improve dev console help options
23
+ - Allow CopilotKit remote endpoint without agents
24
+ - Updated dependencies
25
+ - @copilotkit/react-core@1.4.8
26
+ - @copilotkit/runtime-client-gql@1.4.8
27
+ - @copilotkit/shared@1.4.8
10
28
 
11
29
  ## 1.4.8-next.0
12
30
 
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-RJCZRKTV.mjs";
17
17
  import {
18
18
  CopilotDevConsole
19
- } from "./chunk-TTYR7XPN.mjs";
19
+ } from "./chunk-DVMTTXGZ.mjs";
20
20
  import {
21
21
  Input
22
22
  } from "./chunk-EMQEEXUB.mjs";
@@ -198,4 +198,4 @@ export {
198
198
  WrappedCopilotChat,
199
199
  useCopilotChatLogic
200
200
  };
201
- //# sourceMappingURL=chunk-T35X2SFE.mjs.map
201
+ //# sourceMappingURL=chunk-46UJJGXP.mjs.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-RQNJNK2W.mjs";
10
10
  import {
11
11
  CopilotChat
12
- } from "./chunk-T35X2SFE.mjs";
12
+ } from "./chunk-46UJJGXP.mjs";
13
13
  import {
14
14
  Input
15
15
  } from "./chunk-EMQEEXUB.mjs";
@@ -88,4 +88,4 @@ var CopilotModal = ({
88
88
  export {
89
89
  CopilotModal
90
90
  };
91
- //# sourceMappingURL=chunk-E5SSVET3.mjs.map
91
+ //# sourceMappingURL=chunk-752NGHCE.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CopilotModal
3
- } from "./chunk-E5SSVET3.mjs";
3
+ } from "./chunk-752NGHCE.mjs";
4
4
  import {
5
5
  __spreadProps,
6
6
  __spreadValues
@@ -18,4 +18,4 @@ function CopilotPopup(props) {
18
18
  export {
19
19
  CopilotPopup
20
20
  };
21
- //# sourceMappingURL=chunk-FUDBUYBG.mjs.map
21
+ //# sourceMappingURL=chunk-CVHT5XCA.mjs.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-4FIGRRFS.mjs";
8
8
  import {
9
9
  CopilotKitHelpModal
10
- } from "./chunk-ICGZEGHQ.mjs";
10
+ } from "./chunk-TI7SY2RI.mjs";
11
11
  import {
12
12
  CheckIcon,
13
13
  ChevronDownIcon,
@@ -229,4 +229,4 @@ export {
229
229
  CopilotDevConsole,
230
230
  DebugMenuButton
231
231
  };
232
- //# sourceMappingURL=chunk-TTYR7XPN.mjs.map
232
+ //# sourceMappingURL=chunk-DVMTTXGZ.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CopilotModal
3
- } from "./chunk-E5SSVET3.mjs";
3
+ } from "./chunk-752NGHCE.mjs";
4
4
  import {
5
5
  __spreadProps,
6
6
  __spreadValues
@@ -27,4 +27,4 @@ function CopilotSidebar(props) {
27
27
  export {
28
28
  CopilotSidebar
29
29
  };
30
- //# sourceMappingURL=chunk-ZQFKJLQ6.mjs.map
30
+ //# sourceMappingURL=chunk-PNKBFDUI.mjs.map
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  CloseIcon,
3
- LifeBuoyIcon,
4
3
  LoadingSpinnerIcon
5
4
  } from "./chunk-BH6PCAAL.mjs";
6
5
  import {
@@ -49,9 +48,10 @@ function CopilotKitHelpModal() {
49
48
  "button",
50
49
  {
51
50
  onClick: () => setShowHelpModal(true),
52
- className: "p-2 bg-transparent rounded-full shadow-lg hover:shadow-xl transition-shadow duration-300 focus:outline-none focus:ring-2 focus:ring-blue-500",
51
+ style: { width: "50px", height: "30px", marginRight: "0.25rem" },
52
+ className: "text-sm p-0 bg-transparent rounded border border-blue-500",
53
53
  "aria-label": "Open Help",
54
- children: /* @__PURE__ */ jsx(LifeBuoyIcon, {})
54
+ children: "Help"
55
55
  }
56
56
  );
57
57
  const submitButtonDisabled = useMemo(
@@ -78,6 +78,15 @@ function CopilotKitHelpModal() {
78
78
  ),
79
79
  /* @__PURE__ */ jsx("div", { className: "w-full flex mb-6 justify-center", children: /* @__PURE__ */ jsx("h2", { className: "text-2xl font-bold", children: "Help Options" }) }),
80
80
  /* @__PURE__ */ jsxs("div", { className: "space-y-4 mb-4", children: [
81
+ /* @__PURE__ */ jsx("div", { className: "block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm", children: /* @__PURE__ */ jsx(
82
+ "a",
83
+ {
84
+ href: "https://docs.copilotkit.ai/coagents/troubleshooting/common-issues",
85
+ target: "_blank",
86
+ rel: "noopener noreferrer",
87
+ children: "Visit the Troubleshooting and FAQ section in the docs"
88
+ }
89
+ ) }),
81
90
  /* @__PURE__ */ jsx("div", { className: "block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm", children: /* @__PURE__ */ jsx(
82
91
  "a",
83
92
  {
@@ -152,4 +161,4 @@ function CopilotKitHelpModal() {
152
161
  export {
153
162
  CopilotKitHelpModal
154
163
  };
155
- //# sourceMappingURL=chunk-ICGZEGHQ.mjs.map
164
+ //# sourceMappingURL=chunk-TI7SY2RI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/help-modal/modal.tsx"],"sourcesContent":["import React, { useMemo, useState } from \"react\";\nimport { CloseIcon, LifeBuoyIcon, LoadingSpinnerIcon } from \"./icons\";\n\nexport function CopilotKitHelpModal() {\n const [showHelpModal, setShowHelpModal] = useState(false);\n const [issueDescription, setIssueDescription] = useState(\"\");\n const [email, setEmail] = useState(\"\");\n const [emailError, setEmailError] = useState(\"\");\n const [submitting, setSubmitting] = useState(false);\n\n const validateEmail = (email: string) => {\n const re = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$/;\n return re.test(email);\n };\n\n const handleSubmit = async (e: React.FormEvent) => {\n e.preventDefault();\n\n if (email?.length > 0 && !validateEmail(email)) {\n setEmailError(\"Please enter a valid email address\");\n return;\n }\n setSubmitting(true);\n\n await fetch(\"https://api.segment.io/v1/track\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n event: \"oss.dev-console.help\",\n anonymousId: window.crypto.randomUUID(),\n properties: { email, text: issueDescription },\n writeKey: \"q0gQqvGYyw9pNyhIocNzefSYKGO1aiwW\",\n }),\n });\n\n // Reset\n setEmailError(\"\");\n setEmail(\"\");\n setIssueDescription(\"\");\n setSubmitting(false);\n setShowHelpModal(false);\n };\n\n const HelpButton = () => (\n <button\n onClick={() => setShowHelpModal(true)}\n style={{ width: \"50px\", height: \"30px\", marginRight: \"0.25rem\" }}\n className=\"text-sm p-0 bg-transparent rounded border border-blue-500\"\n aria-label=\"Open Help\"\n >\n Help\n </button>\n );\n\n const submitButtonDisabled = useMemo(\n () => submitting || !!emailError || issueDescription == null || issueDescription?.length == 0,\n [submitting, emailError, issueDescription],\n );\n\n return (\n <>\n <HelpButton />\n {showHelpModal && (\n <div\n className=\"fixed inset-0 flex items-center justify-center p-4\"\n style={{ backgroundColor: \"rgba(11, 15, 26, 0.5)\", zIndex: 99 }}\n >\n <div className=\"bg-white rounded-lg shadow-xl max-w-md w-full p-4 flex-col relative\">\n <button\n className=\"absolute text-gray-400 hover:text-gray-600 focus:outline-none\"\n style={{ top: \"10px\", right: \"10px\" }}\n onClick={() => setShowHelpModal(false)}\n aria-label=\"Close\"\n >\n <CloseIcon />\n </button>\n <div className=\"w-full flex mb-6 justify-center\">\n <h2 className=\"text-2xl font-bold\">Help Options</h2>\n </div>\n <div className=\"space-y-4 mb-4\">\n <div className=\"block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm\">\n <a\n href=\"https://docs.copilotkit.ai/coagents/troubleshooting/common-issues\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Visit the Troubleshooting and FAQ section in the docs\n </a>\n </div>\n <div className=\"block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm\">\n <a\n href=\"https://go.copilotkit.ai/dev-console-support-discord\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Go to Discord Support Channel (Community Support)\n </a>\n </div>\n <div className=\"block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm\">\n <a\n href=\"https://go.copilotkit.ai/dev-console-support-slack\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n Apply for Priority Direct Slack Support\n </a>\n </div>\n </div>\n <form onSubmit={handleSubmit} className=\"flex flex-col space-y-2\">\n <div>\n <label htmlFor=\"feedback\" className=\"block text-sm font-medium text-gray-700 mb-1\">\n Let us know what your issue is:\n </label>\n <textarea\n id=\"feedback\"\n rows={4}\n className=\"w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:border-blue-500\"\n placeholder=\"A Loom link / screen recording is always great!\"\n onChange={(e) => setIssueDescription(e.target.value)}\n value={issueDescription}\n required\n ></textarea>\n </div>\n <div>\n <label htmlFor=\"email\" className=\"block text-sm font-medium text-gray-700 mb-1\">\n Email (optional):\n </label>\n <input\n type=\"email\"\n id=\"email\"\n className={`w-full px-3 py-2 text-gray-700 border rounded-lg focus:outline-none focus:border-blue-500 ${emailError ? \"border-red-500\" : \"\"}`}\n placeholder=\"Enter your email for follow-up\"\n onChange={(e) => {\n setEmail(e.target.value);\n setEmailError(\"\");\n }}\n value={email}\n />\n {emailError && <p className=\"text-red-500 text-sm mt-1\">{emailError}</p>}\n </div>\n <div className=\"bg-gray-50 px-4 py-4 sm:px-6 sm:flex sm:flex-row-reverse rounded-b-lg\">\n <button\n type=\"submit\"\n onClick={handleSubmit}\n disabled={submitButtonDisabled}\n style={\n submitButtonDisabled\n ? { backgroundColor: \"rgb(216, 216, 216)\", color: \"rgb(129, 129, 129)\" }\n : undefined\n }\n className=\"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-500 text-base font-medium text-white hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm disabled:shadow-none\"\n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WAAU,gDAA+C,6CAEnF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,IAAG;AAAA,kBACH,MAAM;AAAA,kBACN,WAAU;AAAA,kBACV,aAAY;AAAA,kBACZ,UAAU,CAAC,MAAM,oBAAoB,EAAE,OAAO,KAAK;AAAA,kBACnD,OAAO;AAAA,kBACP,UAAQ;AAAA;AAAA,cACT;AAAA,eACH;AAAA,YACA,qBAAC,SACC;AAAA,kCAAC,WAAM,SAAQ,SAAQ,WAAU,gDAA+C,+BAEhF;AAAA,cACA;AAAA,gBAAC;AAAA;AAAA,kBACC,MAAK;AAAA,kBACL,IAAG;AAAA,kBACH,WAAW,6FAA6F,aAAa,mBAAmB;AAAA,kBACxI,aAAY;AAAA,kBACZ,UAAU,CAAC,MAAM;AACf,6BAAS,EAAE,OAAO,KAAK;AACvB,kCAAc,EAAE;AAAA,kBAClB;AAAA,kBACA,OAAO;AAAA;AAAA,cACT;AAAA,cACC,cAAc,oBAAC,OAAE,WAAU,6BAA6B,sBAAW;AAAA,eACtE;AAAA,YACA,oBAAC,SAAI,WAAU,yEACb;AAAA,cAAC;AAAA;AAAA,gBACC,MAAK;AAAA,gBACL,SAAS;AAAA,gBACT,UAAU;AAAA,gBACV,OACE,uBACI,EAAE,iBAAiB,sBAAsB,OAAO,qBAAqB,IACrE;AAAA,gBAEN,WAAU;AAAA,gBAET,uBAAa,oBAAC,sBAAmB,OAAM,SAAQ,IAAK;AAAA;AAAA,YACvD,GACF;AAAA,aACF;AAAA,WACF;AAAA;AAAA,IACF;AAAA,KAEJ;AAEJ;","names":["email"]}
@@ -1764,30 +1764,6 @@ var import_react8 = require("react");
1764
1764
 
1765
1765
  // src/components/help-modal/icons.tsx
1766
1766
  var import_jsx_runtime15 = require("react/jsx-runtime");
1767
- var LifeBuoyIcon = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1768
- "svg",
1769
- {
1770
- xmlns: "http://www.w3.org/2000/svg",
1771
- width: "24",
1772
- height: "24",
1773
- viewBox: "0 0 24 24",
1774
- fill: "none",
1775
- stroke: "currentColor",
1776
- strokeWidth: "2",
1777
- strokeLinecap: "round",
1778
- strokeLinejoin: "round",
1779
- className: "icon icon-tabler icons-tabler-outline icon-tabler-lifebuoy",
1780
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("g", { transform: "translate(0, -1)", children: [
1781
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
1782
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" }),
1783
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" }),
1784
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M15 15l3.35 3.35" }),
1785
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M9 15l-3.35 3.35" }),
1786
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M5.65 5.65l3.35 3.35" }),
1787
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("path", { d: "M18.35 5.65l-3.35 3.35" })
1788
- ] })
1789
- }
1790
- );
1791
1767
  var CloseIcon2 = () => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1792
1768
  "svg",
1793
1769
  {
@@ -1878,9 +1854,10 @@ function CopilotKitHelpModal() {
1878
1854
  "button",
1879
1855
  {
1880
1856
  onClick: () => setShowHelpModal(true),
1881
- className: "p-2 bg-transparent rounded-full shadow-lg hover:shadow-xl transition-shadow duration-300 focus:outline-none focus:ring-2 focus:ring-blue-500",
1857
+ style: { width: "50px", height: "30px", marginRight: "0.25rem" },
1858
+ className: "text-sm p-0 bg-transparent rounded border border-blue-500",
1882
1859
  "aria-label": "Open Help",
1883
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(LifeBuoyIcon, {})
1860
+ children: "Help"
1884
1861
  }
1885
1862
  );
1886
1863
  const submitButtonDisabled = (0, import_react8.useMemo)(
@@ -1907,6 +1884,15 @@ function CopilotKitHelpModal() {
1907
1884
  ),
1908
1885
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-full flex mb-6 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h2", { className: "text-2xl font-bold", children: "Help Options" }) }),
1909
1886
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "space-y-4 mb-4", children: [
1887
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1888
+ "a",
1889
+ {
1890
+ href: "https://docs.copilotkit.ai/coagents/troubleshooting/common-issues",
1891
+ target: "_blank",
1892
+ rel: "noopener noreferrer",
1893
+ children: "Visit the Troubleshooting and FAQ section in the docs"
1894
+ }
1895
+ ) }),
1910
1896
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "block w-full text-center py-2 px-4 bg-blue-500 text-white rounded hover:bg-blue-600 transition duration-150 text-sm", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1911
1897
  "a",
1912
1898
  {