@copilotkit/react-textarea 1.3.6 → 1.3.7
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 +10 -0
- package/dist/{chunk-PKEWYNJ2.mjs → chunk-2WEVAO3P.mjs} +3 -3
- package/dist/{chunk-2XDYLKPH.mjs → chunk-VPGMB7K3.mjs} +2 -2
- package/dist/chunk-VPGMB7K3.mjs.map +1 -0
- package/dist/{chunk-D2SUDM2O.mjs → chunk-XBU5TSXH.mjs} +2 -2
- package/dist/{chunk-D2SUDM2O.mjs.map → chunk-XBU5TSXH.mjs.map} +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.js +2 -2
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +3 -3
- package/dist/components/index.js +2 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +3 -3
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js.map +1 -1
- package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/package.json +8 -8
- package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +1 -1
- package/src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx +1 -1
- package/dist/chunk-2XDYLKPH.mjs.map +0 -1
- /package/dist/{chunk-PKEWYNJ2.mjs.map → chunk-2WEVAO3P.mjs.map} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotTextarea
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-2WEVAO3P.mjs";
|
|
4
|
+
import "../../chunk-VPGMB7K3.mjs";
|
|
5
|
+
import "../../chunk-XBU5TSXH.mjs";
|
|
6
6
|
import "../../chunk-RUV6NBIF.mjs";
|
|
7
7
|
import "../../chunk-HL7EF7KA.mjs";
|
|
8
8
|
import "../../chunk-EJGGLWWR.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -1872,7 +1872,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
|
|
|
1872
1872
|
if (abortSignal.aborted) {
|
|
1873
1873
|
break;
|
|
1874
1874
|
}
|
|
1875
|
-
if (message
|
|
1875
|
+
if (message.isTextMessage()) {
|
|
1876
1876
|
result += message.content;
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
@@ -2127,7 +2127,7 @@ function useMakeStandardInsertionOrEditingFunction(textareaPurpose, contextCateg
|
|
|
2127
2127
|
const messages = (0, import_runtime_client_gql5.convertGqlOutputToMessages)(value.generateCopilotResponse.messages);
|
|
2128
2128
|
let newContent = "";
|
|
2129
2129
|
for (const message of messages) {
|
|
2130
|
-
if (message
|
|
2130
|
+
if (message.isTextMessage()) {
|
|
2131
2131
|
newContent += message.content;
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|