@copilotkit/react-textarea 1.0.9 → 1.1.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 +13 -0
- package/dist/{chunk-TTOZXUEA.mjs → chunk-BHSXGMP7.mjs} +3 -2
- package/dist/{chunk-TTOZXUEA.mjs.map → chunk-BHSXGMP7.mjs.map} +1 -1
- package/dist/{chunk-WDV7S66U.mjs → chunk-MUAPKB7X.mjs} +5 -3
- package/dist/chunk-MUAPKB7X.mjs.map +1 -0
- package/dist/{chunk-J3POLDXC.mjs → chunk-ZGE5QSUF.mjs} +3 -3
- package/dist/components/copilot-textarea/copilot-textarea.js +6 -3
- 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 +6 -3
- 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 +2 -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 +4 -2
- 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 +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +10 -8
- package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +1 -0
- package/src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx +2 -0
- package/tsconfig.json +1 -1
- package/dist/chunk-WDV7S66U.mjs.map +0 -1
- /package/dist/{chunk-J3POLDXC.mjs.map → chunk-ZGE5QSUF.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-ZGE5QSUF.mjs";
|
|
4
|
+
import "../../chunk-MUAPKB7X.mjs";
|
|
5
|
+
import "../../chunk-BHSXGMP7.mjs";
|
|
6
6
|
import "../../chunk-RUV6NBIF.mjs";
|
|
7
7
|
import "../../chunk-2JDQ4WX4.mjs";
|
|
8
8
|
import "../../chunk-EJGGLWWR.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -1846,7 +1846,8 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
|
|
|
1846
1846
|
const runtimeClient = new import_runtime_client_gql.CopilotRuntimeClient({
|
|
1847
1847
|
url: copilotApiConfig.chatApiEndpoint,
|
|
1848
1848
|
publicApiKey: copilotApiConfig.publicApiKey,
|
|
1849
|
-
headers: copilotApiConfig.headers
|
|
1849
|
+
headers: copilotApiConfig.headers,
|
|
1850
|
+
credentials: copilotApiConfig.credentials
|
|
1850
1851
|
});
|
|
1851
1852
|
const response = yield runtimeClient.generateCopilotResponse({
|
|
1852
1853
|
data: {
|
|
@@ -2106,7 +2107,8 @@ function useMakeStandardInsertionOrEditingFunction(textareaPurpose, contextCateg
|
|
|
2106
2107
|
const runtimeClient = new import_runtime_client_gql5.CopilotRuntimeClient({
|
|
2107
2108
|
url: copilotApiConfig.chatApiEndpoint,
|
|
2108
2109
|
publicApiKey: copilotApiConfig.publicApiKey,
|
|
2109
|
-
headers
|
|
2110
|
+
headers,
|
|
2111
|
+
credentials: copilotApiConfig.credentials
|
|
2110
2112
|
});
|
|
2111
2113
|
function runtimeClientResponseToStringStream(responsePromise) {
|
|
2112
2114
|
return __async(this, null, function* () {
|
|
@@ -2217,7 +2219,8 @@ function useMakeStandardInsertionOrEditingFunction(textareaPurpose, contextCateg
|
|
|
2217
2219
|
const runtimeClient2 = new import_runtime_client_gql5.CopilotRuntimeClient({
|
|
2218
2220
|
url: copilotApiConfig.chatApiEndpoint,
|
|
2219
2221
|
publicApiKey: copilotApiConfig.publicApiKey,
|
|
2220
|
-
headers
|
|
2222
|
+
headers,
|
|
2223
|
+
credentials: copilotApiConfig.credentials
|
|
2221
2224
|
});
|
|
2222
2225
|
return runtimeClientResponseToStringStream(
|
|
2223
2226
|
runtimeClient2.generateCopilotResponse({
|