@copilotkit/react-textarea 0.30.0-tools.1 → 0.30.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 CHANGED
@@ -1,16 +1,32 @@
1
1
  # ui
2
2
 
3
- ## 0.30.0-tools.1
3
+ ## 0.30.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - function return
7
+ - CopilotTask, function return values, LangChain support, LangServe support
8
+ - 401e474: Test the tools API
9
+ - 2f3296e: Test automation
8
10
 
9
11
  ### Patch Changes
10
12
 
11
13
  - Updated dependencies
12
- - @copilotkit/react-core@0.20.0-tools.1
13
- - @copilotkit/shared@0.4.0-tools.1
14
+ - Updated dependencies [401e474]
15
+ - Updated dependencies [2f3296e]
16
+ - @copilotkit/react-core@0.20.0
17
+ - @copilotkit/shared@0.4.0
18
+
19
+ ## 0.30.0-beta-automation.1
20
+
21
+ ### Minor Changes
22
+
23
+ - Test automation
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+ - @copilotkit/react-core@0.20.0-beta-automation.1
29
+ - @copilotkit/shared@0.4.0-beta-automation.1
14
30
 
15
31
  ## 0.30.0-tools.0
16
32
 
@@ -1,15 +1,15 @@
1
- import {
2
- useMakeStandardInsertionOrEditingFunction
3
- } from "./chunk-QCPS6IYI.mjs";
4
1
  import {
5
2
  useMakeStandardAutosuggestionFunction
6
3
  } from "./chunk-RT4UTBH3.mjs";
4
+ import {
5
+ useMakeStandardInsertionOrEditingFunction
6
+ } from "./chunk-QCPS6IYI.mjs";
7
7
  import {
8
8
  defaultAutosuggestionsConfig
9
9
  } from "./chunk-DKE57EAC.mjs";
10
10
  import {
11
11
  BaseCopilotTextarea
12
- } from "./chunk-JIPPS45C.mjs";
12
+ } from "./chunk-ALIPIID3.mjs";
13
13
  import {
14
14
  __objRest,
15
15
  __spreadProps,
@@ -57,4 +57,4 @@ var CopilotTextarea = React.forwardRef(
57
57
  export {
58
58
  CopilotTextarea
59
59
  };
60
- //# sourceMappingURL=chunk-PZIRLPXR.mjs.map
60
+ //# sourceMappingURL=chunk-3KYIYSZW.mjs.map
@@ -1,6 +1,3 @@
1
- import {
2
- useAutosuggestions
3
- } from "./chunk-72P3KOHZ.mjs";
4
1
  import {
5
2
  useCopilotTextareaEditor
6
3
  } from "./chunk-DRV2FOHZ.mjs";
@@ -16,6 +13,9 @@ import {
16
13
  import {
17
14
  replaceEditorText
18
15
  } from "./chunk-5UNJXFUO.mjs";
16
+ import {
17
+ useAutosuggestions
18
+ } from "./chunk-QKS2IOUH.mjs";
19
19
  import {
20
20
  TrackerTextEditedSinceLastCursorMovement
21
21
  } from "./chunk-LQ2OWQU7.mjs";
@@ -251,4 +251,4 @@ function makeSemiFakeReactTextAreaEvent(currentText) {
251
251
  export {
252
252
  BaseCopilotTextarea
253
253
  };
254
- //# sourceMappingURL=chunk-JIPPS45C.mjs.map
254
+ //# sourceMappingURL=chunk-ALIPIID3.mjs.map
@@ -33,4 +33,4 @@ var Debouncer = class {
33
33
  export {
34
34
  Debouncer
35
35
  };
36
- //# sourceMappingURL=chunk-M2DR4KVB.mjs.map
36
+ //# sourceMappingURL=chunk-DFTV4TST.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/lib/debouncer.ts"],"sourcesContent":["export type AsyncFunction<T extends any[]> = (...args: [...T, AbortSignal]) => Promise<void>;\n\nexport class Debouncer<T extends any[]> {\n private timeoutId?: ReturnType<typeof setTimeout>;\n private activeAbortController?: AbortController;\n\n constructor(private wait: number) {}\n\n debounce = async (func: AsyncFunction<T>, ...args: T) => {\n // Abort the previous promise immediately\n this.cancel();\n\n this.timeoutId = setTimeout(async () => {\n try {\n this.activeAbortController = new AbortController();\n\n // Pass the signal to the async function, assuming it supports it\n await func(...args, this.activeAbortController.signal);\n\n this.activeAbortController = undefined;\n } catch (error) {}\n }, this.wait);\n };\n\n cancel = () => {\n if (this.activeAbortController) {\n this.activeAbortController.abort();\n this.activeAbortController = undefined;\n }\n\n if (this.timeoutId !== undefined) {\n clearTimeout(this.timeoutId);\n this.timeoutId = undefined;\n }\n };\n}\n"],"mappings":";;;;;AAEO,IAAM,YAAN,MAAiC;AAAA,EAItC,YAAoB,MAAc;AAAd;AAEpB,oBAAW,CAAO,SAA2B,SAAY;AAEvD,WAAK,OAAO;AAEZ,WAAK,YAAY,WAAW,MAAY;AACtC,YAAI;AACF,eAAK,wBAAwB,IAAI,gBAAgB;AAGjD,gBAAM,KAAK,GAAG,MAAM,KAAK,sBAAsB,MAAM;AAErD,eAAK,wBAAwB;AAAA,QAC/B,SAAS,OAAP;AAAA,QAAe;AAAA,MACnB,IAAG,KAAK,IAAI;AAAA,IACd;AAEA,kBAAS,MAAM;AACb,UAAI,KAAK,uBAAuB;AAC9B,aAAK,sBAAsB,MAAM;AACjC,aAAK,wBAAwB;AAAA,MAC/B;AAEA,UAAI,KAAK,cAAc,QAAW;AAChC,qBAAa,KAAK,SAAS;AAC3B,aAAK,YAAY;AAAA,MACnB;AAAA,IACF;AAAA,EA5BmC;AA6BrC;","names":[]}
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-7SUZ6CXM.mjs";
7
7
  import {
8
8
  Debouncer
9
- } from "./chunk-M2DR4KVB.mjs";
9
+ } from "./chunk-DFTV4TST.mjs";
10
10
  import {
11
11
  __async
12
12
  } from "./chunk-MRXNTQOX.mjs";
@@ -98,4 +98,4 @@ function useAutosuggestions(debounceTime, shouldAcceptAutosuggestionOnKeyPress,
98
98
  export {
99
99
  useAutosuggestions
100
100
  };
101
- //# sourceMappingURL=chunk-72P3KOHZ.mjs.map
101
+ //# sourceMappingURL=chunk-QKS2IOUH.mjs.map