@copilotkit/react-ui 1.50.0-beta.8 → 1.50.0
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 +204 -0
- package/dist/{chunk-U2EHC4KT.mjs → chunk-2OU4DPXR.mjs} +2 -2
- package/dist/{chunk-GASWCRI7.mjs → chunk-7OURDQZJ.mjs} +2 -2
- package/dist/{chunk-YJ45UASA.mjs → chunk-HIW7RXCD.mjs} +2 -2
- package/dist/{chunk-VBYQQ5JS.mjs → chunk-NCIAFFQ2.mjs} +3 -1
- package/dist/{chunk-VBYQQ5JS.mjs.map → chunk-NCIAFFQ2.mjs.map} +1 -1
- package/dist/{chunk-SF5OH7KP.mjs → chunk-OMWF7DF2.mjs} +3 -3
- package/dist/{chunk-6PL5IKAT.mjs → chunk-RCFFZY5O.mjs} +2 -2
- package/dist/{chunk-OYRZ4VLU.mjs → chunk-Y4FKRAKJ.mjs} +3 -3
- package/dist/{chunk-OYRZ4VLU.mjs.map → chunk-Y4FKRAKJ.mjs.map} +1 -1
- package/dist/{chunk-IOZL5AMG.mjs → chunk-ZFJ7CTWS.mjs} +3 -3
- package/dist/components/chat/Chat.js +2 -0
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +4 -4
- package/dist/components/chat/Messages.js +2 -0
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +3 -3
- package/dist/components/chat/Modal.js +2 -0
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +5 -5
- package/dist/components/chat/Popup.js +2 -0
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +6 -6
- package/dist/components/chat/Sidebar.js +2 -0
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +6 -6
- package/dist/components/chat/index.js +2 -0
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +7 -7
- package/dist/components/chat/messages/LegacyRenderMessage.js +2 -0
- package/dist/components/chat/messages/LegacyRenderMessage.js.map +1 -1
- package/dist/components/chat/messages/LegacyRenderMessage.mjs +2 -2
- package/dist/components/chat/messages/RenderMessage.d.ts +1 -1
- package/dist/components/chat/messages/RenderMessage.js +2 -0
- package/dist/components/chat/messages/RenderMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderMessage.mjs +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +7 -7
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.js +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.js.map +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.mjs +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/package.json +5 -5
- package/src/components/chat/messages/RenderMessage.tsx +2 -0
- package/src/hooks/use-copilot-chat-suggestions.tsx +2 -2
- /package/dist/{chunk-U2EHC4KT.mjs.map → chunk-2OU4DPXR.mjs.map} +0 -0
- /package/dist/{chunk-GASWCRI7.mjs.map → chunk-7OURDQZJ.mjs.map} +0 -0
- /package/dist/{chunk-YJ45UASA.mjs.map → chunk-HIW7RXCD.mjs.map} +0 -0
- /package/dist/{chunk-SF5OH7KP.mjs.map → chunk-OMWF7DF2.mjs.map} +0 -0
- /package/dist/{chunk-6PL5IKAT.mjs.map → chunk-RCFFZY5O.mjs.map} +0 -0
- /package/dist/{chunk-IOZL5AMG.mjs.map → chunk-ZFJ7CTWS.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,209 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 1.50.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 0fc76d7: add new runner with telemetry baked in
|
|
8
|
+
- c942f9c: Minor fixes and stability improvements
|
|
9
|
+
- eed6021: Updating to the latest version of vnext
|
|
10
|
+
- 3b7367e: Improving general stability around LangChain
|
|
11
|
+
- 7ff9ca7: Minor fixes and improvements
|
|
12
|
+
- 974875e: Lint and format code to resolve Prettier errors
|
|
13
|
+
- 3bd484f: Minor fixes and stability improvements
|
|
14
|
+
- 5a534bf: fix telemetry in v1.50 runtime
|
|
15
|
+
- 769a06c: Refactor suggestions to not always run
|
|
16
|
+
- 788292b: Improving langchain dependency resolution
|
|
17
|
+
- eab69a2: Enabling the new inspector
|
|
18
|
+
- 0a7bfe0: Updating dependency versions across all packages
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 2c93ff1: - fix: re-enable repeatable interrupt renders
|
|
23
|
+
- b0e3652: - chore: Update to latest of vnext
|
|
24
|
+
- c38da1c: - feat: add suggestions support to 1.5
|
|
25
|
+
- fcc52cb: - fix: use `--copilot-kit-primary-color` as default `Messages` font color
|
|
26
|
+
- 5840bab: - fix: adjust dependencies
|
|
27
|
+
- 7808fac: - feat: add spinner indicator to show chat readiness for conversation
|
|
28
|
+
- Updated dependencies [0fc76d7]
|
|
29
|
+
- Updated dependencies [c942f9c]
|
|
30
|
+
- Updated dependencies [bad5f06]
|
|
31
|
+
- Updated dependencies [8ce60af]
|
|
32
|
+
- Updated dependencies [33f47e3]
|
|
33
|
+
- Updated dependencies [04057d5]
|
|
34
|
+
- Updated dependencies [6ce0edc]
|
|
35
|
+
- Updated dependencies [2c93ff1]
|
|
36
|
+
- Updated dependencies [b0e3652]
|
|
37
|
+
- Updated dependencies [7643e71]
|
|
38
|
+
- Updated dependencies [d55a8bd]
|
|
39
|
+
- Updated dependencies [eed6021]
|
|
40
|
+
- Updated dependencies [3b7367e]
|
|
41
|
+
- Updated dependencies [c38da1c]
|
|
42
|
+
- Updated dependencies [7ff9ca7]
|
|
43
|
+
- Updated dependencies [3c60073]
|
|
44
|
+
- Updated dependencies [962546c]
|
|
45
|
+
- Updated dependencies [974875e]
|
|
46
|
+
- Updated dependencies [4942f62]
|
|
47
|
+
- Updated dependencies [3bd484f]
|
|
48
|
+
- Updated dependencies [5a534bf]
|
|
49
|
+
- Updated dependencies [ca8eb39]
|
|
50
|
+
- Updated dependencies [907ae5d]
|
|
51
|
+
- Updated dependencies [769a06c]
|
|
52
|
+
- Updated dependencies [788292b]
|
|
53
|
+
- Updated dependencies [c3d55e5]
|
|
54
|
+
- Updated dependencies [eab69a2]
|
|
55
|
+
- Updated dependencies [5840bab]
|
|
56
|
+
- Updated dependencies [7808fac]
|
|
57
|
+
- Updated dependencies [0a7bfe0]
|
|
58
|
+
- Updated dependencies [c70210e]
|
|
59
|
+
- Updated dependencies [d2c57a1]
|
|
60
|
+
- @copilotkit/runtime-client-gql@1.50.0
|
|
61
|
+
- @copilotkit/react-core@1.50.0
|
|
62
|
+
- @copilotkit/shared@1.50.0
|
|
63
|
+
|
|
64
|
+
## 1.50.0-beta.19
|
|
65
|
+
|
|
66
|
+
### Minor Changes
|
|
67
|
+
|
|
68
|
+
- Improving langchain dependency resolution
|
|
69
|
+
|
|
70
|
+
### Patch Changes
|
|
71
|
+
|
|
72
|
+
- Updated dependencies
|
|
73
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.19
|
|
74
|
+
- @copilotkit/react-core@1.50.0-beta.19
|
|
75
|
+
- @copilotkit/shared@1.50.0-beta.19
|
|
76
|
+
|
|
77
|
+
## 1.50.0-beta.18
|
|
78
|
+
|
|
79
|
+
### Minor Changes
|
|
80
|
+
|
|
81
|
+
- Improving general stability around LangChain
|
|
82
|
+
|
|
83
|
+
### Patch Changes
|
|
84
|
+
|
|
85
|
+
- Updated dependencies
|
|
86
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.18
|
|
87
|
+
- @copilotkit/react-core@1.50.0-beta.18
|
|
88
|
+
- @copilotkit/shared@1.50.0-beta.18
|
|
89
|
+
|
|
90
|
+
## 1.50.0-beta.17
|
|
91
|
+
|
|
92
|
+
### Minor Changes
|
|
93
|
+
|
|
94
|
+
- Minor fixes and improvements
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- Updated dependencies
|
|
99
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.17
|
|
100
|
+
- @copilotkit/react-core@1.50.0-beta.17
|
|
101
|
+
- @copilotkit/shared@1.50.0-beta.17
|
|
102
|
+
|
|
103
|
+
## 1.50.0-beta.16
|
|
104
|
+
|
|
105
|
+
### Minor Changes
|
|
106
|
+
|
|
107
|
+
- Minor fixes and stability improvements
|
|
108
|
+
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- Updated dependencies
|
|
112
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.16
|
|
113
|
+
- @copilotkit/react-core@1.50.0-beta.16
|
|
114
|
+
- @copilotkit/shared@1.50.0-beta.16
|
|
115
|
+
|
|
116
|
+
## 1.50.0-beta.15
|
|
117
|
+
|
|
118
|
+
### Minor Changes
|
|
119
|
+
|
|
120
|
+
- Lint and format code to resolve Prettier errors
|
|
121
|
+
|
|
122
|
+
### Patch Changes
|
|
123
|
+
|
|
124
|
+
- Updated dependencies
|
|
125
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.15
|
|
126
|
+
- @copilotkit/react-core@1.50.0-beta.15
|
|
127
|
+
- @copilotkit/shared@1.50.0-beta.15
|
|
128
|
+
|
|
129
|
+
## 1.50.0-beta.14
|
|
130
|
+
|
|
131
|
+
### Minor Changes
|
|
132
|
+
|
|
133
|
+
- Minor fixes and stability improvements
|
|
134
|
+
|
|
135
|
+
### Patch Changes
|
|
136
|
+
|
|
137
|
+
- Updated dependencies
|
|
138
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.14
|
|
139
|
+
- @copilotkit/react-core@1.50.0-beta.14
|
|
140
|
+
- @copilotkit/shared@1.50.0-beta.14
|
|
141
|
+
|
|
142
|
+
## 1.50.0-beta.13
|
|
143
|
+
|
|
144
|
+
### Minor Changes
|
|
145
|
+
|
|
146
|
+
- Updating to the latest version of vnext
|
|
147
|
+
|
|
148
|
+
### Patch Changes
|
|
149
|
+
|
|
150
|
+
- Updated dependencies
|
|
151
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.13
|
|
152
|
+
- @copilotkit/react-core@1.50.0-beta.13
|
|
153
|
+
- @copilotkit/shared@1.50.0-beta.13
|
|
154
|
+
|
|
155
|
+
## 1.50.0-beta.12
|
|
156
|
+
|
|
157
|
+
### Minor Changes
|
|
158
|
+
|
|
159
|
+
- eab69a2: Enabling the new inspector
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- Updated dependencies [eab69a2]
|
|
164
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.12
|
|
165
|
+
- @copilotkit/react-core@1.50.0-beta.12
|
|
166
|
+
- @copilotkit/shared@1.50.0-beta.12
|
|
167
|
+
|
|
168
|
+
## 1.50.0-beta.11
|
|
169
|
+
|
|
170
|
+
### Minor Changes
|
|
171
|
+
|
|
172
|
+
- fix telemetry in v1.50 runtime
|
|
173
|
+
|
|
174
|
+
### Patch Changes
|
|
175
|
+
|
|
176
|
+
- Updated dependencies
|
|
177
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.11
|
|
178
|
+
- @copilotkit/react-core@1.50.0-beta.11
|
|
179
|
+
- @copilotkit/shared@1.50.0-beta.11
|
|
180
|
+
|
|
181
|
+
## 1.50.0-beta.10
|
|
182
|
+
|
|
183
|
+
### Minor Changes
|
|
184
|
+
|
|
185
|
+
- add new runner with telemetry baked in
|
|
186
|
+
|
|
187
|
+
### Patch Changes
|
|
188
|
+
|
|
189
|
+
- Updated dependencies
|
|
190
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.10
|
|
191
|
+
- @copilotkit/react-core@1.50.0-beta.10
|
|
192
|
+
- @copilotkit/shared@1.50.0-beta.10
|
|
193
|
+
|
|
194
|
+
## 1.50.0-beta.9
|
|
195
|
+
|
|
196
|
+
### Minor Changes
|
|
197
|
+
|
|
198
|
+
- Refactor suggestions to not always run
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- Updated dependencies
|
|
203
|
+
- @copilotkit/runtime-client-gql@1.50.0-beta.9
|
|
204
|
+
- @copilotkit/react-core@1.50.0-beta.9
|
|
205
|
+
- @copilotkit/shared@1.50.0-beta.9
|
|
206
|
+
|
|
3
207
|
## 1.50.0-beta.8
|
|
4
208
|
|
|
5
209
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZFJ7CTWS.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-
|
|
21
|
+
//# sourceMappingURL=chunk-2OU4DPXR.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RenderMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NCIAFFQ2.mjs";
|
|
4
4
|
|
|
5
5
|
// src/components/chat/messages/LegacyRenderMessage.tsx
|
|
6
6
|
import { aguiToGQL } from "@copilotkit/runtime-client-gql";
|
|
@@ -130,4 +130,4 @@ var LegacyRenderMessage = ({
|
|
|
130
130
|
export {
|
|
131
131
|
LegacyRenderMessage
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-7OURDQZJ.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LegacyRenderMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7OURDQZJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useChatContext
|
|
6
6
|
} from "./chunk-IEMQ2SQW.mjs";
|
|
@@ -181,4 +181,4 @@ export {
|
|
|
181
181
|
Messages,
|
|
182
182
|
useScrollToBottom
|
|
183
183
|
};
|
|
184
|
-
//# sourceMappingURL=chunk-
|
|
184
|
+
//# sourceMappingURL=chunk-HIW7RXCD.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/chat/messages/RenderMessage.tsx"],"sourcesContent":["import { RenderMessageProps } from \"../props\";\nimport { UserMessage as DefaultUserMessage } from \"./UserMessage\";\nimport { AssistantMessage as DefaultAssistantMessage } from \"./AssistantMessage\";\nimport { ImageRenderer as DefaultImageRenderer } from \"./ImageRenderer\";\n\nexport function RenderMessage({\n UserMessage = DefaultUserMessage,\n AssistantMessage = DefaultAssistantMessage,\n ImageRenderer = DefaultImageRenderer,\n ...props\n}: RenderMessageProps) {\n const {\n message,\n messages,\n inProgress,\n index,\n isCurrentMessage,\n onRegenerate,\n onCopy,\n onThumbsUp,\n onThumbsDown,\n messageFeedback,\n markdownTagRenderers,\n } = props;\n\n switch (message.role) {\n case \"user\":\n return (\n <UserMessage\n key={index}\n rawData={message}\n data-message-role=\"user\"\n message={message}\n ImageRenderer={ImageRenderer}\n />\n );\n case \"assistant\":\n return (\n <AssistantMessage\n key={index}\n data-message-role=\"assistant\"\n subComponent={message.generativeUI?.()}\n rawData={message}\n message={message}\n messages={messages}\n isLoading={inProgress && isCurrentMessage && !message.content}\n isGenerating={inProgress && isCurrentMessage && !!message.content}\n isCurrentMessage={isCurrentMessage}\n onRegenerate={() => onRegenerate?.(message.id)}\n onCopy={onCopy}\n onThumbsUp={onThumbsUp}\n onThumbsDown={onThumbsDown}\n feedback={messageFeedback?.[message.id] || null}\n markdownTagRenderers={markdownTagRenderers}\n ImageRenderer={ImageRenderer}\n />\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AA4BQ;AAvBD,SAAS,cAAc,IAKP;AALO,eAC5B;AAAA,iBAAAA,eAAc;AAAA,IACd,kBAAAC,oBAAmB;AAAA,IACnB,eAAAC,iBAAgB;AAAA,EARlB,IAK8B,IAIzB,kBAJyB,IAIzB;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AARF,MAAAC;AAWE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,UAAQ,QAAQ,MAAM;AAAA,IACpB,KAAK;AACH,aACE;AAAA,QAACH;AAAA,QAAA;AAAA,UAEC,SAAS;AAAA,UACT,qBAAkB;AAAA,UAClB;AAAA,UACA,eAAeE;AAAA;AAAA,QAJV;AAAA,MAKP;AAAA,IAEJ,KAAK;AACH,aACE;AAAA,QAACD;AAAA,QAAA;AAAA,UAEC,qBAAkB;AAAA,UAClB,eAAcE,MAAA,QAAQ,iBAAR,gBAAAA,IAAA;AAAA,UACd,SAAS;AAAA,UACT;AAAA,UACA;AAAA,UACA,WAAW,cAAc,oBAAoB,CAAC,QAAQ;AAAA,UACtD,cAAc,cAAc,oBAAoB,CAAC,CAAC,QAAQ;AAAA,UAC1D;AAAA,UACA,cAAc,MAAM,6CAAe,QAAQ;AAAA,UAC3C;AAAA,UACA;AAAA,UACA;AAAA,UACA,WAAU,mDAAkB,QAAQ,QAAO;AAAA,UAC3C;AAAA,UACA,eAAeD;AAAA;AAAA,QAfV;AAAA,MAgBP;AAAA,
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/messages/RenderMessage.tsx"],"sourcesContent":["import { RenderMessageProps } from \"../props\";\nimport { UserMessage as DefaultUserMessage } from \"./UserMessage\";\nimport { AssistantMessage as DefaultAssistantMessage } from \"./AssistantMessage\";\nimport { ImageRenderer as DefaultImageRenderer } from \"./ImageRenderer\";\n\nexport function RenderMessage({\n UserMessage = DefaultUserMessage,\n AssistantMessage = DefaultAssistantMessage,\n ImageRenderer = DefaultImageRenderer,\n ...props\n}: RenderMessageProps) {\n const {\n message,\n messages,\n inProgress,\n index,\n isCurrentMessage,\n onRegenerate,\n onCopy,\n onThumbsUp,\n onThumbsDown,\n messageFeedback,\n markdownTagRenderers,\n } = props;\n\n switch (message.role) {\n case \"user\":\n return (\n <UserMessage\n key={index}\n rawData={message}\n data-message-role=\"user\"\n message={message}\n ImageRenderer={ImageRenderer}\n />\n );\n case \"assistant\":\n return (\n <AssistantMessage\n key={index}\n data-message-role=\"assistant\"\n subComponent={message.generativeUI?.()}\n rawData={message}\n message={message}\n messages={messages}\n isLoading={inProgress && isCurrentMessage && !message.content}\n isGenerating={inProgress && isCurrentMessage && !!message.content}\n isCurrentMessage={isCurrentMessage}\n onRegenerate={() => onRegenerate?.(message.id)}\n onCopy={onCopy}\n onThumbsUp={onThumbsUp}\n onThumbsDown={onThumbsDown}\n feedback={messageFeedback?.[message.id] || null}\n markdownTagRenderers={markdownTagRenderers}\n ImageRenderer={ImageRenderer}\n />\n );\n default:\n return null;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AA4BQ;AAvBD,SAAS,cAAc,IAKP;AALO,eAC5B;AAAA,iBAAAA,eAAc;AAAA,IACd,kBAAAC,oBAAmB;AAAA,IACnB,eAAAC,iBAAgB;AAAA,EARlB,IAK8B,IAIzB,kBAJyB,IAIzB;AAAA,IAHH;AAAA,IACA;AAAA,IACA;AAAA;AARF,MAAAC;AAWE,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,UAAQ,QAAQ,MAAM;AAAA,IACpB,KAAK;AACH,aACE;AAAA,QAACH;AAAA,QAAA;AAAA,UAEC,SAAS;AAAA,UACT,qBAAkB;AAAA,UAClB;AAAA,UACA,eAAeE;AAAA;AAAA,QAJV;AAAA,MAKP;AAAA,IAEJ,KAAK;AACH,aACE;AAAA,QAACD;AAAA,QAAA;AAAA,UAEC,qBAAkB;AAAA,UAClB,eAAcE,MAAA,QAAQ,iBAAR,gBAAAA,IAAA;AAAA,UACd,SAAS;AAAA,UACT;AAAA,UACA;AAAA,UACA,WAAW,cAAc,oBAAoB,CAAC,QAAQ;AAAA,UACtD,cAAc,cAAc,oBAAoB,CAAC,CAAC,QAAQ;AAAA,UAC1D;AAAA,UACA,cAAc,MAAM,6CAAe,QAAQ;AAAA,UAC3C;AAAA,UACA;AAAA,UACA;AAAA,UACA,WAAU,mDAAkB,QAAQ,QAAO;AAAA,UAC3C;AAAA,UACA,eAAeD;AAAA;AAAA,QAfV;AAAA,MAgBP;AAAA,IAEJ;AACE,aAAO;AAAA,EACX;AACF;","names":["UserMessage","AssistantMessage","ImageRenderer","_a"]}
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-3W6J75HS.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Messages
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HIW7RXCD.mjs";
|
|
13
13
|
import {
|
|
14
14
|
RenderMessage
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-NCIAFFQ2.mjs";
|
|
16
16
|
import {
|
|
17
17
|
AssistantMessage
|
|
18
18
|
} from "./chunk-IHFR6PYG.mjs";
|
|
@@ -428,4 +428,4 @@ export {
|
|
|
428
428
|
CopilotChat,
|
|
429
429
|
WrappedCopilotChat
|
|
430
430
|
};
|
|
431
|
-
//# sourceMappingURL=chunk-
|
|
431
|
+
//# sourceMappingURL=chunk-OMWF7DF2.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZFJ7CTWS.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-
|
|
30
|
+
//# sourceMappingURL=chunk-RCFFZY5O.mjs.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// src/hooks/use-copilot-chat-suggestions.tsx
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
useCopilotChatSuggestions as useCoreCopilotChatSuggestions
|
|
4
4
|
} from "@copilotkit/react-core";
|
|
5
5
|
function useCopilotChatSuggestions(config, dependencies = []) {
|
|
6
|
-
|
|
6
|
+
useCoreCopilotChatSuggestions(config, dependencies);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
useCopilotChatSuggestions
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=chunk-
|
|
12
|
+
//# sourceMappingURL=chunk-Y4FKRAKJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/hooks/use-copilot-chat-suggestions.tsx"],"sourcesContent":["/**\n * <Callout type=\"warning\">\n * useCopilotChatSuggestions is experimental. The interface is not final and\n * can change without notice.\n * </Callout>\n *\n * `useCopilotReadable` is a React hook that provides app-state and other information\n * to the Copilot. Optionally, the hook can also handle hierarchical state within your\n * application, passing these parent-child relationships to the Copilot.\n *\n * <br/>\n * <img src=\"https://cdn.copilotkit.ai/docs/copilotkit/images/use-copilot-chat-suggestions/use-copilot-chat-suggestions.gif\" width=\"500\" />\n *\n * ## Usage\n *\n * ### Install Dependencies\n *\n * This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.\n *\n * ```shell npm2yarn \\\"@copilotkit/react-ui\"\\\n * npm install @copilotkit/react-core @copilotkit/react-ui\n * ```\n *\n * ### Simple Usage\n *\n * ```tsx\n * import { useCopilotChatSuggestions } from \"@copilotkit/react-ui\";\n *\n * export function MyComponent() {\n * const [employees, setEmployees] = useState([]);\n *\n * useCopilotChatSuggestions({\n * instructions: `The following employees are on duty: ${JSON.stringify(employees)}`,\n * });\n * }\n * ```\n *\n * ### Dependency Management\n *\n * ```tsx\n * import { useCopilotChatSuggestions } from \"@copilotkit/react-ui\";\n *\n * export function MyComponent() {\n * useCopilotChatSuggestions(\n * {\n * instructions: \"Suggest the most relevant next actions.\",\n * },\n * [appState],\n * );\n * }\n * ```\n *\n * In the example above, the suggestions are generated based on the given instructions.\n * The hook monitors `appState`, and updates suggestions accordingly whenever it changes.\n *\n * ### Behavior and Lifecycle\n *\n * The hook registers the configuration with the chat context upon component mount and\n * removes it on unmount, ensuring a clean and efficient lifecycle management.\n */\nimport {\n
|
|
1
|
+
{"version":3,"sources":["../src/hooks/use-copilot-chat-suggestions.tsx"],"sourcesContent":["/**\n * <Callout type=\"warning\">\n * useCopilotChatSuggestions is experimental. The interface is not final and\n * can change without notice.\n * </Callout>\n *\n * `useCopilotReadable` is a React hook that provides app-state and other information\n * to the Copilot. Optionally, the hook can also handle hierarchical state within your\n * application, passing these parent-child relationships to the Copilot.\n *\n * <br/>\n * <img src=\"https://cdn.copilotkit.ai/docs/copilotkit/images/use-copilot-chat-suggestions/use-copilot-chat-suggestions.gif\" width=\"500\" />\n *\n * ## Usage\n *\n * ### Install Dependencies\n *\n * This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.\n *\n * ```shell npm2yarn \\\"@copilotkit/react-ui\"\\\n * npm install @copilotkit/react-core @copilotkit/react-ui\n * ```\n *\n * ### Simple Usage\n *\n * ```tsx\n * import { useCopilotChatSuggestions } from \"@copilotkit/react-ui\";\n *\n * export function MyComponent() {\n * const [employees, setEmployees] = useState([]);\n *\n * useCopilotChatSuggestions({\n * instructions: `The following employees are on duty: ${JSON.stringify(employees)}`,\n * });\n * }\n * ```\n *\n * ### Dependency Management\n *\n * ```tsx\n * import { useCopilotChatSuggestions } from \"@copilotkit/react-ui\";\n *\n * export function MyComponent() {\n * useCopilotChatSuggestions(\n * {\n * instructions: \"Suggest the most relevant next actions.\",\n * },\n * [appState],\n * );\n * }\n * ```\n *\n * In the example above, the suggestions are generated based on the given instructions.\n * The hook monitors `appState`, and updates suggestions accordingly whenever it changes.\n *\n * ### Behavior and Lifecycle\n *\n * The hook registers the configuration with the chat context upon component mount and\n * removes it on unmount, ensuring a clean and efficient lifecycle management.\n */\nimport {\n useCopilotChatSuggestions as useCoreCopilotChatSuggestions,\n type UseCopilotChatSuggestionsConfiguration,\n} from \"@copilotkit/react-core\";\n\nexport function useCopilotChatSuggestions(\n config: UseCopilotChatSuggestionsConfiguration,\n dependencies: any[] = [],\n) {\n useCoreCopilotChatSuggestions(config, dependencies);\n}\n"],"mappings":";AA4DA;AAAA,EACE,6BAA6B;AAAA,OAExB;AAEA,SAAS,0BACd,QACA,eAAsB,CAAC,GACvB;AACA,gCAA8B,QAAQ,YAAY;AACpD;","names":[]}
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
} from "./chunk-UFN2VWSR.mjs";
|
|
10
10
|
import {
|
|
11
11
|
CopilotChat
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OMWF7DF2.mjs";
|
|
13
13
|
import {
|
|
14
14
|
Input
|
|
15
15
|
} from "./chunk-3W6J75HS.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Messages
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HIW7RXCD.mjs";
|
|
19
19
|
import {
|
|
20
20
|
AssistantMessage
|
|
21
21
|
} from "./chunk-IHFR6PYG.mjs";
|
|
@@ -219,4 +219,4 @@ var CopilotModal = (_a) => {
|
|
|
219
219
|
export {
|
|
220
220
|
CopilotModal
|
|
221
221
|
};
|
|
222
|
-
//# sourceMappingURL=chunk-
|
|
222
|
+
//# sourceMappingURL=chunk-ZFJ7CTWS.mjs.map
|