@copilotkit/react-ui 1.51.0-next.1 → 1.51.0-next.3
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 +17 -0
- package/dist/{chunk-NGJ32FAP.mjs → chunk-6TWQUA2Q.mjs} +4 -3
- package/dist/chunk-6TWQUA2Q.mjs.map +1 -0
- package/dist/{chunk-7PR2KJDO.mjs → chunk-BVKKSSB2.mjs} +2 -2
- package/dist/{chunk-LQEFRHRT.mjs → chunk-DI7DDMRS.mjs} +2 -2
- package/dist/{chunk-QPQRLXN3.mjs → chunk-NSJWSIPR.mjs} +2 -2
- package/dist/{chunk-QB3GUN2N.mjs → chunk-VHKHX7GV.mjs} +2 -2
- package/dist/{chunk-ELUJRANC.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 +3 -3
- package/dist/components/chat/Modal.js +3 -2
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +4 -4
- package/dist/components/chat/Popup.js +3 -2
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +5 -5
- package/dist/components/chat/Sidebar.js +3 -2
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +5 -5
- 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 +6 -6
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -6
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/package.json +7 -7
- package/src/components/chat/Suggestion.tsx +3 -2
- package/dist/chunk-NGJ32FAP.mjs.map +0 -1
- /package/dist/{chunk-7PR2KJDO.mjs.map → chunk-BVKKSSB2.mjs.map} +0 -0
- /package/dist/{chunk-LQEFRHRT.mjs.map → chunk-DI7DDMRS.mjs.map} +0 -0
- /package/dist/{chunk-QPQRLXN3.mjs.map → chunk-NSJWSIPR.mjs.map} +0 -0
- /package/dist/{chunk-QB3GUN2N.mjs.map → chunk-VHKHX7GV.mjs.map} +0 -0
- /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-
|
|
8
|
+
} from "./chunk-VVCCMYGT.mjs";
|
|
9
9
|
import {
|
|
10
10
|
CopilotSidebar
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
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-
|
|
29
|
+
} from "./chunk-NSJWSIPR.mjs";
|
|
30
30
|
import {
|
|
31
31
|
Suggestions
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VHKHX7GV.mjs";
|
|
33
33
|
import {
|
|
34
34
|
Suggestion
|
|
35
|
-
} from "./chunk-
|
|
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": "1.51.0-next.
|
|
12
|
+
"version": "1.51.0-next.3",
|
|
13
13
|
"sideEffects": [
|
|
14
14
|
"**/*.css"
|
|
15
15
|
],
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^18 || ^19 || ^19.0.0-rc",
|
|
31
|
-
"@copilotkit/react-core": "1.51.0-next.
|
|
32
|
-
"@copilotkit/runtime-client-gql": "1.51.0-next.
|
|
33
|
-
"@copilotkit/shared": "1.51.0-next.
|
|
31
|
+
"@copilotkit/react-core": "1.51.0-next.3",
|
|
32
|
+
"@copilotkit/runtime-client-gql": "1.51.0-next.3",
|
|
33
|
+
"@copilotkit/shared": "1.51.0-next.3"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/jest": "^29.5.4",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"ts-jest": "^29.1.1",
|
|
45
45
|
"tsup": "^6.7.0",
|
|
46
46
|
"typescript": "^5.2.3",
|
|
47
|
-
"@copilotkit/react-core": "1.51.0-next.
|
|
48
|
-
"@copilotkit/runtime-client-gql": "1.51.0-next.
|
|
49
|
-
"@copilotkit/shared": "1.51.0-next.
|
|
47
|
+
"@copilotkit/react-core": "1.51.0-next.3",
|
|
48
|
+
"@copilotkit/runtime-client-gql": "1.51.0-next.3",
|
|
49
|
+
"@copilotkit/shared": "1.51.0-next.3",
|
|
50
50
|
"eslint-config-custom": "1.4.6",
|
|
51
51
|
"tailwind-config": "1.4.6",
|
|
52
52
|
"tsconfig": "1.4.6"
|
|
@@ -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
|