@copilotkit/react-textarea 0.29.0 → 0.30.0-alpha.3

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,5 +1,53 @@
1
1
  # ui
2
2
 
3
+ ## 0.30.0-alpha.3
4
+
5
+ ### Minor Changes
6
+
7
+ - react-textarea build fix
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @copilotkit/react-core@0.20.0-alpha.3
13
+ - @copilotkit/shared@0.4.0-alpha.3
14
+
15
+ ## 0.30.0-alpha.2
16
+
17
+ ### Minor Changes
18
+
19
+ - function return values support
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies
24
+ - @copilotkit/react-core@0.20.0-alpha.2
25
+ - @copilotkit/shared@0.4.0-alpha.2
26
+
27
+ ## 0.30.0-tools.1
28
+
29
+ ### Minor Changes
30
+
31
+ - function return
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies
36
+ - @copilotkit/react-core@0.20.0-tools.1
37
+ - @copilotkit/shared@0.4.0-tools.1
38
+
39
+ ## 0.30.0-tools.0
40
+
41
+ ### Minor Changes
42
+
43
+ - Test the tools API
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies
48
+ - @copilotkit/react-core@0.20.0-tools.0
49
+ - @copilotkit/shared@0.4.0-tools.0
50
+
3
51
  ## 0.29.0
4
52
 
5
53
  ### Minor Changes
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-DKE57EAC.mjs";
10
10
  import {
11
11
  BaseCopilotTextarea
12
- } from "./chunk-WGFQTPTF.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-PXALH4EC.mjs.map
60
+ //# sourceMappingURL=chunk-3KYIYSZW.mjs.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-5UNJXFUO.mjs";
16
16
  import {
17
17
  useAutosuggestions
18
- } from "./chunk-72P3KOHZ.mjs";
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-WGFQTPTF.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