@copilotkit/react-ui 0.0.0-fix-restore-handle-method-node-http-20260105204107 → 0.0.0-fix-runtime-openai-api-key-passthrough-20260115015318
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/CHANGELOG.md +65 -113
- package/LICENSE +21 -0
- package/dist/{chunk-SABFRQEH.mjs → chunk-3W6J75HS.mjs} +4 -4
- package/dist/{chunk-NGJ32FAP.mjs → chunk-6TWQUA2Q.mjs} +4 -3
- package/dist/chunk-6TWQUA2Q.mjs.map +1 -0
- package/dist/{chunk-DNKXXZPD.mjs → chunk-BVKKSSB2.mjs} +6 -6
- package/dist/{chunk-JINSXNV4.mjs → chunk-DI7DDMRS.mjs} +2 -2
- package/dist/{chunk-FKJWIQGB.mjs → chunk-FFJHOZX6.mjs} +9 -9
- package/dist/{chunk-B4EBCYMS.mjs → chunk-GDSZGYCE.mjs} +4 -4
- package/dist/{chunk-RLKEYENV.mjs → chunk-NSJWSIPR.mjs} +3 -3
- package/dist/{chunk-QB3GUN2N.mjs → chunk-VHKHX7GV.mjs} +2 -2
- package/dist/{chunk-KG4USHSZ.mjs → chunk-VVCCMYGT.mjs} +2 -2
- package/dist/components/chat/Chat.js +3 -2
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +5 -5
- package/dist/components/chat/Header.mjs +5 -5
- package/dist/components/chat/Input.mjs +2 -2
- package/dist/components/chat/Modal.js +3 -2
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +14 -14
- package/dist/components/chat/Popup.js +3 -2
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +15 -15
- package/dist/components/chat/Sidebar.js +3 -2
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +15 -15
- package/dist/components/chat/Suggestion.js +3 -2
- package/dist/components/chat/Suggestion.js.map +1 -1
- package/dist/components/chat/Suggestion.mjs +1 -1
- package/dist/components/chat/Suggestions.js +3 -2
- package/dist/components/chat/Suggestions.js.map +1 -1
- package/dist/components/chat/Suggestions.mjs +2 -2
- package/dist/components/chat/index.js +3 -2
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +16 -16
- package/dist/components/dev-console/console.mjs +3 -3
- package/dist/components/dev-console/index.mjs +5 -5
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +20 -20
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -21
- package/package.json +9 -6
- package/src/components/chat/Suggestion.tsx +3 -2
- package/dist/chunk-NGJ32FAP.mjs.map +0 -1
- /package/dist/{chunk-SABFRQEH.mjs.map → chunk-3W6J75HS.mjs.map} +0 -0
- /package/dist/{chunk-DNKXXZPD.mjs.map → chunk-BVKKSSB2.mjs.map} +0 -0
- /package/dist/{chunk-JINSXNV4.mjs.map → chunk-DI7DDMRS.mjs.map} +0 -0
- /package/dist/{chunk-FKJWIQGB.mjs.map → chunk-FFJHOZX6.mjs.map} +0 -0
- /package/dist/{chunk-B4EBCYMS.mjs.map → chunk-GDSZGYCE.mjs.map} +0 -0
- /package/dist/{chunk-RLKEYENV.mjs.map → chunk-NSJWSIPR.mjs.map} +0 -0
- /package/dist/{chunk-QB3GUN2N.mjs.map → chunk-VHKHX7GV.mjs.map} +0 -0
- /package/dist/{chunk-KG4USHSZ.mjs.map → chunk-VVCCMYGT.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,29 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunk-EFZPSZWO.mjs";
|
|
3
|
-
import "./chunk-IU3WTXLQ.mjs";
|
|
4
3
|
import "./chunk-MMVDU6DF.mjs";
|
|
5
4
|
import "./chunk-SC6JRFAJ.mjs";
|
|
6
5
|
import "./chunk-WB3YULQ4.mjs";
|
|
7
6
|
import {
|
|
8
7
|
CopilotPopup
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VVCCMYGT.mjs";
|
|
10
9
|
import {
|
|
11
10
|
CopilotSidebar
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-DI7DDMRS.mjs";
|
|
12
|
+
import "./chunk-BVKKSSB2.mjs";
|
|
14
13
|
import "./chunk-C3GSYRC3.mjs";
|
|
14
|
+
import "./chunk-GDSZGYCE.mjs";
|
|
15
|
+
import "./chunk-V7W6IM2V.mjs";
|
|
16
|
+
import {
|
|
17
|
+
CopilotDevConsole
|
|
18
|
+
} from "./chunk-FFJHOZX6.mjs";
|
|
19
|
+
import "./chunk-Q5V6S67N.mjs";
|
|
20
|
+
import {
|
|
21
|
+
shouldShowDevConsole
|
|
22
|
+
} from "./chunk-JY2CSDKN.mjs";
|
|
23
|
+
import "./chunk-KXE2JCUH.mjs";
|
|
24
|
+
import "./chunk-NRA3CFEE.mjs";
|
|
25
|
+
import "./chunk-BH6PCAAL.mjs";
|
|
15
26
|
import "./chunk-UFN2VWSR.mjs";
|
|
16
27
|
import {
|
|
17
28
|
CopilotChat
|
|
18
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NSJWSIPR.mjs";
|
|
19
30
|
import {
|
|
20
31
|
Suggestions
|
|
21
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VHKHX7GV.mjs";
|
|
22
33
|
import {
|
|
23
34
|
Suggestion
|
|
24
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6TWQUA2Q.mjs";
|
|
25
36
|
import "./chunk-PLHTVHUW.mjs";
|
|
26
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-3W6J75HS.mjs";
|
|
38
|
+
import "./chunk-ELGRNEAO.mjs";
|
|
27
39
|
import "./chunk-QIOJXTIQ.mjs";
|
|
28
40
|
import "./chunk-HIW7RXCD.mjs";
|
|
29
41
|
import "./chunk-7OURDQZJ.mjs";
|
|
@@ -40,24 +52,12 @@ import {
|
|
|
40
52
|
import {
|
|
41
53
|
Markdown
|
|
42
54
|
} from "./chunk-JZ3RFQQ6.mjs";
|
|
43
|
-
import "./chunk-ELGRNEAO.mjs";
|
|
44
55
|
import "./chunk-IK2BPURM.mjs";
|
|
45
|
-
import "./chunk-B4EBCYMS.mjs";
|
|
46
56
|
import {
|
|
47
57
|
useChatContext
|
|
48
58
|
} from "./chunk-IEMQ2SQW.mjs";
|
|
49
|
-
import "./chunk-V7W6IM2V.mjs";
|
|
50
|
-
import {
|
|
51
|
-
CopilotDevConsole
|
|
52
|
-
} from "./chunk-FKJWIQGB.mjs";
|
|
53
|
-
import "./chunk-KXE2JCUH.mjs";
|
|
54
|
-
import "./chunk-NRA3CFEE.mjs";
|
|
55
|
-
import "./chunk-BH6PCAAL.mjs";
|
|
56
|
-
import {
|
|
57
|
-
shouldShowDevConsole
|
|
58
|
-
} from "./chunk-JY2CSDKN.mjs";
|
|
59
59
|
import "./chunk-XWG3L6QC.mjs";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-IU3WTXLQ.mjs";
|
|
61
61
|
import "./chunk-T26KLXLH.mjs";
|
|
62
62
|
import {
|
|
63
63
|
useCopilotChatSuggestions
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.0.0-fix-
|
|
12
|
+
"version": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115015318",
|
|
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-20260115015318",
|
|
32
|
+
"@copilotkit/runtime-client-gql": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115015318",
|
|
33
|
+
"@copilotkit/shared": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115015318"
|
|
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-20260115015318",
|
|
48
|
+
"@copilotkit/runtime-client-gql": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115015318",
|
|
49
|
+
"@copilotkit/shared": "0.0.0-fix-runtime-openai-api-key-passthrough-20260115015318",
|
|
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-20260105204107",
|
|
56
|
-
"@copilotkit/runtime-client-gql": "0.0.0-fix-restore-handle-method-node-http-20260105204107",
|
|
57
|
-
"@copilotkit/shared": "0.0.0-fix-restore-handle-method-node-http-20260105204107"
|
|
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
|
|
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":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|