@copilotkit/react-textarea 1.5.0 → 1.5.1-custom-tag-pre.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 +12 -0
- package/dist/{chunk-PTPNOBEI.mjs → chunk-F6GMWOLE.mjs} +4 -3
- package/dist/chunk-F6GMWOLE.mjs.map +1 -0
- package/dist/{chunk-PZYM7K4Y.mjs → chunk-JPFU7ASD.mjs} +9 -9
- package/dist/{chunk-ZTYA6QOT.mjs → chunk-MGYT7RNL.mjs} +2 -2
- package/dist/{chunk-GUZIMGGZ.mjs → chunk-QFXR6DOA.mjs} +1 -1
- package/dist/chunk-QFXR6DOA.mjs.map +1 -0
- package/dist/{chunk-53RID4IZ.mjs → chunk-UGFNDNH3.mjs} +6 -6
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +5 -5
- package/dist/components/copilot-textarea/copilot-textarea.js +3 -2
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +13 -13
- package/dist/components/hovering-toolbar/hovering-toolbar.mjs +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +13 -13
- package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js +3 -2
- 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/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -19
- package/dist/types/autosuggestions-config/autosuggestions-config.js.map +1 -1
- package/dist/types/autosuggestions-config/autosuggestions-config.mjs +2 -2
- package/dist/types/autosuggestions-config/index.js.map +1 -1
- package/dist/types/autosuggestions-config/index.mjs +2 -2
- package/dist/types/autosuggestions-config/suggestions-api-config.d.ts +1 -0
- package/dist/types/autosuggestions-config/suggestions-api-config.js.map +1 -1
- package/dist/types/autosuggestions-config/suggestions-api-config.mjs +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/index.mjs +3 -3
- package/package.json +4 -4
- package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +2 -2
- package/src/types/autosuggestions-config/suggestions-api-config.tsx +1 -0
- package/dist/chunk-GUZIMGGZ.mjs.map +0 -1
- package/dist/chunk-PTPNOBEI.mjs.map +0 -1
- /package/dist/{chunk-PZYM7K4Y.mjs.map → chunk-JPFU7ASD.mjs.map} +0 -0
- /package/dist/{chunk-ZTYA6QOT.mjs.map → chunk-MGYT7RNL.mjs.map} +0 -0
- /package/dist/{chunk-53RID4IZ.mjs.map → chunk-UGFNDNH3.mjs.map} +0 -0
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotTextarea
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-UGFNDNH3.mjs";
|
|
4
4
|
import "../../chunk-RXV67GJN.mjs";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-EJGGLWWR.mjs";
|
|
9
|
-
import "../../chunk-MCNXIA4Q.mjs";
|
|
10
|
-
import "../../chunk-GUZIMGGZ.mjs";
|
|
11
|
-
import "../../chunk-PZYM7K4Y.mjs";
|
|
12
|
-
import "../../chunk-2C7O2EVM.mjs";
|
|
5
|
+
import "../../chunk-F6GMWOLE.mjs";
|
|
6
|
+
import "../../chunk-KNQIEOFP.mjs";
|
|
7
|
+
import "../../chunk-JPFU7ASD.mjs";
|
|
13
8
|
import "../../chunk-GQN2HYFJ.mjs";
|
|
9
|
+
import "../../chunk-2C7O2EVM.mjs";
|
|
14
10
|
import "../../chunk-23Q6A46J.mjs";
|
|
15
11
|
import "../../chunk-AJ5OMEXM.mjs";
|
|
16
12
|
import "../../chunk-DRV2FOHZ.mjs";
|
|
@@ -32,16 +28,20 @@ import "../../chunk-HDBI2WN5.mjs";
|
|
|
32
28
|
import "../../chunk-WGWQRALG.mjs";
|
|
33
29
|
import "../../chunk-VSVQZUPW.mjs";
|
|
34
30
|
import "../../chunk-I72DKFHD.mjs";
|
|
31
|
+
import "../../chunk-ECR45NSD.mjs";
|
|
35
32
|
import "../../chunk-2QDCE7PD.mjs";
|
|
36
33
|
import "../../chunk-YLFAIYRY.mjs";
|
|
37
|
-
import "../../chunk-WJHSY5T6.mjs";
|
|
38
|
-
import "../../chunk-4CVSOOJY.mjs";
|
|
39
34
|
import "../../chunk-7L6GIHDM.mjs";
|
|
40
35
|
import "../../chunk-XW3ICO4S.mjs";
|
|
36
|
+
import "../../chunk-RUV6NBIF.mjs";
|
|
37
|
+
import "../../chunk-MGYT7RNL.mjs";
|
|
38
|
+
import "../../chunk-EJGGLWWR.mjs";
|
|
39
|
+
import "../../chunk-MCNXIA4Q.mjs";
|
|
40
|
+
import "../../chunk-QFXR6DOA.mjs";
|
|
41
|
+
import "../../chunk-WJHSY5T6.mjs";
|
|
42
|
+
import "../../chunk-4CVSOOJY.mjs";
|
|
41
43
|
import "../../chunk-DFTV4TST.mjs";
|
|
42
44
|
import "../../chunk-T6MTDQZ7.mjs";
|
|
43
|
-
import "../../chunk-ECR45NSD.mjs";
|
|
44
|
-
import "../../chunk-KNQIEOFP.mjs";
|
|
45
45
|
import "../../chunk-MRXNTQOX.mjs";
|
|
46
46
|
export {
|
|
47
47
|
CopilotTextarea
|
|
@@ -13,9 +13,9 @@ import "../../chunk-HDBI2WN5.mjs";
|
|
|
13
13
|
import "../../chunk-WGWQRALG.mjs";
|
|
14
14
|
import "../../chunk-VSVQZUPW.mjs";
|
|
15
15
|
import "../../chunk-I72DKFHD.mjs";
|
|
16
|
+
import "../../chunk-ECR45NSD.mjs";
|
|
16
17
|
import "../../chunk-2QDCE7PD.mjs";
|
|
17
18
|
import "../../chunk-YLFAIYRY.mjs";
|
|
18
|
-
import "../../chunk-ECR45NSD.mjs";
|
|
19
19
|
import "../../chunk-MRXNTQOX.mjs";
|
|
20
20
|
export {
|
|
21
21
|
HoveringToolbar
|
package/dist/components/index.js
CHANGED
|
@@ -1821,7 +1821,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
|
|
|
1821
1821
|
const { getContextString, copilotApiConfig, runtimeClient } = (0, import_react_core3.useCopilotContext)();
|
|
1822
1822
|
const { chatApiEndpoint: url, publicApiKey, credentials, properties } = copilotApiConfig;
|
|
1823
1823
|
const headers = __spreadValues(__spreadValues({}, copilotApiConfig.headers), publicApiKey ? { [import_shared.COPILOT_CLOUD_PUBLIC_API_KEY_HEADER]: publicApiKey } : {});
|
|
1824
|
-
const { maxTokens, stop } = apiConfig;
|
|
1824
|
+
const { maxTokens, stop, temperature = 0 } = apiConfig;
|
|
1825
1825
|
return (0, import_react13.useCallback)(
|
|
1826
1826
|
(editorState2, abortSignal) => __async(this, null, function* () {
|
|
1827
1827
|
const res = yield retry(() => __async(this, null, function* () {
|
|
@@ -1860,7 +1860,8 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
|
|
|
1860
1860
|
},
|
|
1861
1861
|
forwardedParameters: {
|
|
1862
1862
|
maxTokens,
|
|
1863
|
-
stop
|
|
1863
|
+
stop,
|
|
1864
|
+
temperature
|
|
1864
1865
|
}
|
|
1865
1866
|
},
|
|
1866
1867
|
properties,
|