@copilotkit/react-textarea 1.0.0-beta.0 → 1.0.0-beta.2
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/.turbo/turbo-build.log +240 -240
- package/CHANGELOG.md +20 -0
- package/dist/{chunk-3SVQJA5A.mjs → chunk-PAP4ZNRG.mjs} +21 -14
- package/dist/chunk-PAP4ZNRG.mjs.map +1 -0
- package/dist/{chunk-5KLAWLCD.mjs → chunk-TTOZXUEA.mjs} +12 -8
- package/dist/chunk-TTOZXUEA.mjs.map +1 -0
- package/dist/{chunk-IF7CDWEH.mjs → chunk-WPV52EMI.mjs} +3 -3
- package/dist/components/copilot-textarea/copilot-textarea.js +27 -18
- 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 +27 -18
- 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 +9 -6
- 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 +18 -12
- 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 +27 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +4 -4
- package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +9 -6
- package/src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx +17 -10
- package/dist/chunk-3SVQJA5A.mjs.map +0 -1
- package/dist/chunk-5KLAWLCD.mjs.map +0 -1
- /package/dist/{chunk-IF7CDWEH.mjs.map → chunk-WPV52EMI.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-WPV52EMI.mjs";
|
|
4
|
+
import "../../chunk-PAP4ZNRG.mjs";
|
|
5
|
+
import "../../chunk-TTOZXUEA.mjs";
|
|
6
6
|
import "../../chunk-RUV6NBIF.mjs";
|
|
7
7
|
import "../../chunk-H3PGQHLG.mjs";
|
|
8
8
|
import "../../chunk-CVO5T3PA.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -1853,16 +1853,19 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
|
|
|
1853
1853
|
publicApiKey: copilotApiConfig.publicApiKey,
|
|
1854
1854
|
headers: copilotApiConfig.headers
|
|
1855
1855
|
});
|
|
1856
|
-
const response = yield runtimeClient.generateCopilotResponse(
|
|
1857
|
-
{
|
|
1856
|
+
const response = yield runtimeClient.generateCopilotResponse({
|
|
1857
|
+
data: {
|
|
1858
1858
|
frontend: {
|
|
1859
1859
|
actions: []
|
|
1860
1860
|
},
|
|
1861
|
-
messages: (0, import_runtime_client_gql.convertMessagesToGqlInput)(messages)
|
|
1861
|
+
messages: (0, import_runtime_client_gql.convertMessagesToGqlInput)(messages),
|
|
1862
|
+
metadata: {
|
|
1863
|
+
requestType: import_runtime_client_gql.CopilotRequestType.TextareaCompletion
|
|
1864
|
+
}
|
|
1862
1865
|
},
|
|
1863
|
-
copilotApiConfig.properties,
|
|
1864
|
-
abortSignal
|
|
1865
|
-
).toPromise();
|
|
1866
|
+
properties: copilotApiConfig.properties,
|
|
1867
|
+
signal: abortSignal
|
|
1868
|
+
}).toPromise();
|
|
1866
1869
|
let result = "";
|
|
1867
1870
|
for (const message of (0, import_runtime_client_gql.convertGqlOutputToMessages)(
|
|
1868
1871
|
(_c = (_b = (_a = response.data) == null ? void 0 : _a.generateCopilotResponse) == null ? void 0 : _b.messages) != null ? _c : []
|
|
@@ -2168,16 +2171,19 @@ function useMakeStandardInsertionOrEditingFunction(textareaPurpose, contextCateg
|
|
|
2168
2171
|
})
|
|
2169
2172
|
];
|
|
2170
2173
|
return runtimeClientResponseToStringStream(
|
|
2171
|
-
runtimeClient.generateCopilotResponse(
|
|
2172
|
-
{
|
|
2174
|
+
runtimeClient.generateCopilotResponse({
|
|
2175
|
+
data: {
|
|
2173
2176
|
frontend: {
|
|
2174
2177
|
actions: []
|
|
2175
2178
|
},
|
|
2176
|
-
messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)(messages)
|
|
2179
|
+
messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)(messages),
|
|
2180
|
+
metadata: {
|
|
2181
|
+
requestType: import_runtime_client_gql5.CopilotRequestType.TextareaCompletion
|
|
2182
|
+
}
|
|
2177
2183
|
},
|
|
2178
|
-
copilotApiConfig.properties,
|
|
2179
|
-
abortSignal
|
|
2180
|
-
)
|
|
2184
|
+
properties: copilotApiConfig.properties,
|
|
2185
|
+
signal: abortSignal
|
|
2186
|
+
})
|
|
2181
2187
|
);
|
|
2182
2188
|
}));
|
|
2183
2189
|
return res;
|
|
@@ -2219,16 +2225,19 @@ function useMakeStandardInsertionOrEditingFunction(textareaPurpose, contextCateg
|
|
|
2219
2225
|
headers
|
|
2220
2226
|
});
|
|
2221
2227
|
return runtimeClientResponseToStringStream(
|
|
2222
|
-
runtimeClient2.generateCopilotResponse(
|
|
2223
|
-
{
|
|
2228
|
+
runtimeClient2.generateCopilotResponse({
|
|
2229
|
+
data: {
|
|
2224
2230
|
frontend: {
|
|
2225
2231
|
actions: []
|
|
2226
2232
|
},
|
|
2227
|
-
messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)(messages)
|
|
2233
|
+
messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)(messages),
|
|
2234
|
+
metadata: {
|
|
2235
|
+
requestType: import_runtime_client_gql5.CopilotRequestType.TextareaCompletion
|
|
2236
|
+
}
|
|
2228
2237
|
},
|
|
2229
|
-
copilotApiConfig.properties,
|
|
2230
|
-
abortSignal
|
|
2231
|
-
)
|
|
2238
|
+
properties: copilotApiConfig.properties,
|
|
2239
|
+
signal: abortSignal
|
|
2240
|
+
})
|
|
2232
2241
|
);
|
|
2233
2242
|
}));
|
|
2234
2243
|
return res;
|