@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/.turbo/turbo-build.log +428 -428
- package/CHANGELOG.md +48 -0
- package/dist/{chunk-PXALH4EC.mjs → chunk-3KYIYSZW.mjs} +2 -2
- package/dist/{chunk-WGFQTPTF.mjs → chunk-ALIPIID3.mjs} +2 -2
- package/dist/{chunk-M2DR4KVB.mjs → chunk-DFTV4TST.mjs} +1 -1
- package/dist/chunk-DFTV4TST.mjs.map +1 -0
- package/dist/{chunk-72P3KOHZ.mjs → chunk-QKS2IOUH.mjs} +2 -2
- package/dist/components/base-copilot-textarea/base-copilot-textarea.js.map +1 -1
- package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +3 -3
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +4 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.js.map +1 -1
- package/dist/hooks/base-copilot-textarea-implementation/use-autosuggestions.mjs +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/lib/debouncer.js.map +1 -1
- package/dist/lib/debouncer.mjs +1 -1
- package/package.json +6 -6
- package/src/lib/debouncer.ts +1 -1
- package/dist/chunk-M2DR4KVB.mjs.map +0 -1
- /package/dist/{chunk-PXALH4EC.mjs.map → chunk-3KYIYSZW.mjs.map} +0 -0
- /package/dist/{chunk-WGFQTPTF.mjs.map → chunk-ALIPIID3.mjs.map} +0 -0
- /package/dist/{chunk-72P3KOHZ.mjs.map → chunk-QKS2IOUH.mjs.map} +0 -0
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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?:
|
|
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":[]}
|
package/dist/lib/debouncer.mjs
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.30.0-alpha.3",
|
|
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.
|
|
37
|
-
"
|
|
38
|
-
"
|
|
36
|
+
"eslint-config-custom": "0.5.0-alpha.3",
|
|
37
|
+
"tsconfig": "0.9.0-alpha.3",
|
|
38
|
+
"tailwind-config": "0.4.0-alpha.3"
|
|
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.
|
|
62
|
-
"@copilotkit/shared": "0.
|
|
61
|
+
"@copilotkit/react-core": "0.20.0-alpha.3",
|
|
62
|
+
"@copilotkit/shared": "0.4.0-alpha.3"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "tsup --clean",
|
package/src/lib/debouncer.ts
CHANGED
|
@@ -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?:
|
|
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":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|