@copilotkit/react-textarea 0.30.0-tools.0 → 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/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import "./chunk-WADHCMPK.mjs";
3
3
  import "./chunk-MMVDU6DF.mjs";
4
4
  import {
5
5
  CopilotTextarea
6
- } from "./chunk-PXALH4EC.mjs";
6
+ } from "./chunk-3KYIYSZW.mjs";
7
7
  import "./chunk-RT4UTBH3.mjs";
8
8
  import "./chunk-QCPS6IYI.mjs";
9
9
  import "./chunk-RUV6NBIF.mjs";
@@ -15,14 +15,14 @@ import "./chunk-RKQ6RTZM.mjs";
15
15
  import "./chunk-KDVMG3XF.mjs";
16
16
  import {
17
17
  BaseCopilotTextarea
18
- } from "./chunk-WGFQTPTF.mjs";
18
+ } from "./chunk-ALIPIID3.mjs";
19
19
  import "./chunk-DRV2FOHZ.mjs";
20
20
  import "./chunk-4NHVQZ67.mjs";
21
21
  import "./chunk-VPEH6V7T.mjs";
22
22
  import "./chunk-2C7O2EVM.mjs";
23
23
  import "./chunk-GQN2HYFJ.mjs";
24
24
  import "./chunk-5UNJXFUO.mjs";
25
- import "./chunk-72P3KOHZ.mjs";
25
+ import "./chunk-QKS2IOUH.mjs";
26
26
  import "./chunk-JJLQVT7S.mjs";
27
27
  import "./chunk-LQ2OWQU7.mjs";
28
28
  import "./chunk-7LSRNPNI.mjs";
@@ -49,7 +49,7 @@ import "./chunk-224UKA7C.mjs";
49
49
  import "./chunk-XW3ICO4S.mjs";
50
50
  import "./chunk-IU3WTXLQ.mjs";
51
51
  import "./chunk-H4VKQGVU.mjs";
52
- import "./chunk-M2DR4KVB.mjs";
52
+ import "./chunk-DFTV4TST.mjs";
53
53
  import "./chunk-T6MTDQZ7.mjs";
54
54
  import "./chunk-ECR45NSD.mjs";
55
55
  import "./chunk-KNQIEOFP.mjs";
@@ -1 +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?: number;\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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":[]}
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;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":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Debouncer
3
- } from "../chunk-M2DR4KVB.mjs";
3
+ } from "../chunk-DFTV4TST.mjs";
4
4
  import "../chunk-MRXNTQOX.mjs";
5
5
  export {
6
6
  Debouncer
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.30.0-tools.0",
7
+ "version": "0.30.0",
8
8
  "sideEffects": [
9
9
  "**/*.css"
10
10
  ],
@@ -33,9 +33,9 @@
33
33
  "ts-jest": "^29.1.1",
34
34
  "tsup": "^6.7.0",
35
35
  "typescript": "^5.1.3",
36
- "eslint-config-custom": "0.5.0-tools.0",
37
- "tailwind-config": "0.4.0-tools.0",
38
- "tsconfig": "0.9.0-tools.0"
36
+ "eslint-config-custom": "0.5.0",
37
+ "tailwind-config": "0.4.0",
38
+ "tsconfig": "0.9.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "@emotion/css": "^11.11.2",
@@ -58,8 +58,8 @@
58
58
  "slate-history": "^0.93.0",
59
59
  "slate-react": "^0.98.1",
60
60
  "tailwind-merge": "^1.13.2",
61
- "@copilotkit/react-core": "0.20.0-tools.0",
62
- "@copilotkit/shared": "0.4.0-tools.0"
61
+ "@copilotkit/react-core": "0.20.0",
62
+ "@copilotkit/shared": "0.4.0"
63
63
  },
64
64
  "scripts": {
65
65
  "build": "tsup --clean",
@@ -1,7 +1,7 @@
1
1
  export type AsyncFunction<T extends any[]> = (...args: [...T, AbortSignal]) => Promise<void>;
2
2
 
3
3
  export class Debouncer<T extends any[]> {
4
- private timeoutId?: number;
4
+ private timeoutId?: ReturnType<typeof setTimeout>;
5
5
  private activeAbortController?: AbortController;
6
6
 
7
7
  constructor(private wait: number) {}
@@ -1 +0,0 @@
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?: number;\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":[]}