@copilotkit/react-ui 0.0.0-fix-restore-handle-method-node-http-20251222114321 → 0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142

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 (44) hide show
  1. package/CHANGELOG.md +65 -113
  2. package/LICENSE +21 -0
  3. package/dist/{chunk-NGJ32FAP.mjs → chunk-6TWQUA2Q.mjs} +4 -3
  4. package/dist/chunk-6TWQUA2Q.mjs.map +1 -0
  5. package/dist/{chunk-7PR2KJDO.mjs → chunk-BVKKSSB2.mjs} +2 -2
  6. package/dist/{chunk-LQEFRHRT.mjs → chunk-DI7DDMRS.mjs} +2 -2
  7. package/dist/{chunk-QPQRLXN3.mjs → chunk-NSJWSIPR.mjs} +2 -2
  8. package/dist/{chunk-QB3GUN2N.mjs → chunk-VHKHX7GV.mjs} +2 -2
  9. package/dist/{chunk-ELUJRANC.mjs → chunk-VVCCMYGT.mjs} +2 -2
  10. package/dist/components/chat/Chat.js +3 -2
  11. package/dist/components/chat/Chat.js.map +1 -1
  12. package/dist/components/chat/Chat.mjs +3 -3
  13. package/dist/components/chat/Modal.js +3 -2
  14. package/dist/components/chat/Modal.js.map +1 -1
  15. package/dist/components/chat/Modal.mjs +4 -4
  16. package/dist/components/chat/Popup.js +3 -2
  17. package/dist/components/chat/Popup.js.map +1 -1
  18. package/dist/components/chat/Popup.mjs +5 -5
  19. package/dist/components/chat/Sidebar.js +3 -2
  20. package/dist/components/chat/Sidebar.js.map +1 -1
  21. package/dist/components/chat/Sidebar.mjs +5 -5
  22. package/dist/components/chat/Suggestion.js +3 -2
  23. package/dist/components/chat/Suggestion.js.map +1 -1
  24. package/dist/components/chat/Suggestion.mjs +1 -1
  25. package/dist/components/chat/Suggestions.js +3 -2
  26. package/dist/components/chat/Suggestions.js.map +1 -1
  27. package/dist/components/chat/Suggestions.mjs +2 -2
  28. package/dist/components/chat/index.js +3 -2
  29. package/dist/components/chat/index.js.map +1 -1
  30. package/dist/components/chat/index.mjs +6 -6
  31. package/dist/components/index.js +3 -2
  32. package/dist/components/index.js.map +1 -1
  33. package/dist/components/index.mjs +6 -6
  34. package/dist/index.js +3 -2
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +6 -6
  37. package/package.json +9 -6
  38. package/src/components/chat/Suggestion.tsx +3 -2
  39. package/dist/chunk-NGJ32FAP.mjs.map +0 -1
  40. /package/dist/{chunk-7PR2KJDO.mjs.map → chunk-BVKKSSB2.mjs.map} +0 -0
  41. /package/dist/{chunk-LQEFRHRT.mjs.map → chunk-DI7DDMRS.mjs.map} +0 -0
  42. /package/dist/{chunk-QPQRLXN3.mjs.map → chunk-NSJWSIPR.mjs.map} +0 -0
  43. /package/dist/{chunk-QB3GUN2N.mjs.map → chunk-VHKHX7GV.mjs.map} +0 -0
  44. /package/dist/{chunk-ELUJRANC.mjs.map → chunk-VVCCMYGT.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -5,11 +5,11 @@ import "./chunk-SC6JRFAJ.mjs";
5
5
  import "./chunk-WB3YULQ4.mjs";
6
6
  import {
7
7
  CopilotPopup
8
- } from "./chunk-ELUJRANC.mjs";
8
+ } from "./chunk-VVCCMYGT.mjs";
9
9
  import {
10
10
  CopilotSidebar
11
- } from "./chunk-LQEFRHRT.mjs";
12
- import "./chunk-7PR2KJDO.mjs";
11
+ } from "./chunk-DI7DDMRS.mjs";
12
+ import "./chunk-BVKKSSB2.mjs";
13
13
  import "./chunk-C3GSYRC3.mjs";
14
14
  import "./chunk-GDSZGYCE.mjs";
15
15
  import "./chunk-V7W6IM2V.mjs";
@@ -26,13 +26,13 @@ import "./chunk-BH6PCAAL.mjs";
26
26
  import "./chunk-UFN2VWSR.mjs";
27
27
  import {
28
28
  CopilotChat
29
- } from "./chunk-QPQRLXN3.mjs";
29
+ } from "./chunk-NSJWSIPR.mjs";
30
30
  import {
31
31
  Suggestions
32
- } from "./chunk-QB3GUN2N.mjs";
32
+ } from "./chunk-VHKHX7GV.mjs";
33
33
  import {
34
34
  Suggestion
35
- } from "./chunk-NGJ32FAP.mjs";
35
+ } from "./chunk-6TWQUA2Q.mjs";
36
36
  import "./chunk-PLHTVHUW.mjs";
37
37
  import "./chunk-3W6J75HS.mjs";
38
38
  import "./chunk-ELGRNEAO.mjs";
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "0.0.0-fix-restore-handle-method-node-http-20251222114321",
12
+ "version": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142",
13
13
  "sideEffects": [
14
14
  "**/*.css"
15
15
  ],
@@ -27,7 +27,10 @@
27
27
  "types": "./dist/index.d.ts",
28
28
  "license": "MIT",
29
29
  "peerDependencies": {
30
- "react": "^18 || ^19 || ^19.0.0-rc"
30
+ "react": "^18 || ^19 || ^19.0.0-rc",
31
+ "@copilotkit/react-core": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142",
32
+ "@copilotkit/runtime-client-gql": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142",
33
+ "@copilotkit/shared": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142"
31
34
  },
32
35
  "devDependencies": {
33
36
  "@types/jest": "^29.5.4",
@@ -41,6 +44,9 @@
41
44
  "ts-jest": "^29.1.1",
42
45
  "tsup": "^6.7.0",
43
46
  "typescript": "^5.2.3",
47
+ "@copilotkit/react-core": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142",
48
+ "@copilotkit/runtime-client-gql": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142",
49
+ "@copilotkit/shared": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115003142",
44
50
  "eslint-config-custom": "1.4.6",
45
51
  "tailwind-config": "1.4.6",
46
52
  "tsconfig": "1.4.6"
@@ -51,10 +57,7 @@
51
57
  "react-syntax-highlighter": "^15.6.1",
52
58
  "rehype-raw": "^7.0.0",
53
59
  "remark-gfm": "^4.0.1",
54
- "remark-math": "^6.0.0",
55
- "@copilotkit/react-core": "0.0.0-fix-restore-handle-method-node-http-20251222114321",
56
- "@copilotkit/runtime-client-gql": "0.0.0-fix-restore-handle-method-node-http-20251222114321",
57
- "@copilotkit/shared": "0.0.0-fix-restore-handle-method-node-http-20251222114321"
60
+ "remark-math": "^6.0.0"
58
61
  },
59
62
  "keywords": [
60
63
  "copilotkit",
@@ -10,8 +10,8 @@ interface SuggestionsProps {
10
10
  }
11
11
 
12
12
  export function Suggestion({ title, onClick, partial, className }: SuggestionsProps) {
13
- if (!title) return null;
14
13
  const { isLoading } = useCopilotChatInternal();
14
+ if (!title) return null;
15
15
 
16
16
  return (
17
17
  <button
@@ -20,8 +20,9 @@ export function Suggestion({ title, onClick, partial, className }: SuggestionsPr
20
20
  e.preventDefault();
21
21
  onClick();
22
22
  }}
23
- className={className || (partial ? "suggestion loading" : "suggestion")}
23
+ className={`suggestion ${className ?? ""} ${partial ? "loading" : ""}`}
24
24
  data-test-id="suggestion"
25
+ type="button"
25
26
  >
26
27
  {partial ? SmallSpinnerIcon : <span>{title}</span>}
27
28
  </button>
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/chat/Suggestion.tsx"],"sourcesContent":["import { useCopilotChatInternal } from \"@copilotkit/react-core\";\nimport { SmallSpinnerIcon } from \"./Icons\";\n\ninterface SuggestionsProps {\n title: string;\n message: string;\n partial?: boolean;\n className?: string;\n onClick: () => void;\n}\n\nexport function Suggestion({ title, onClick, partial, className }: SuggestionsProps) {\n if (!title) return null;\n const { isLoading } = useCopilotChatInternal();\n\n return (\n <button\n disabled={partial || isLoading}\n onClick={(e) => {\n e.preventDefault();\n onClick();\n }}\n className={className || (partial ? \"suggestion loading\" : \"suggestion\")}\n data-test-id=\"suggestion\"\n >\n {partial ? SmallSpinnerIcon : <span>{title}</span>}\n </button>\n );\n}\n"],"mappings":";;;;;AAAA,SAAS,8BAA8B;AAyBH;AAd7B,SAAS,WAAW,EAAE,OAAO,SAAS,SAAS,UAAU,GAAqB;AACnF,MAAI,CAAC;AAAO,WAAO;AACnB,QAAM,EAAE,UAAU,IAAI,uBAAuB;AAE7C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,UAAU,WAAW;AAAA,MACrB,SAAS,CAAC,MAAM;AACd,UAAE,eAAe;AACjB,gBAAQ;AAAA,MACV;AAAA,MACA,WAAW,cAAc,UAAU,uBAAuB;AAAA,MAC1D,gBAAa;AAAA,MAEZ,oBAAU,mBAAmB,oBAAC,UAAM,iBAAM;AAAA;AAAA,EAC7C;AAEJ;","names":[]}