@copilotkit/react-textarea 0.30.0-alpha.2 → 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 +281 -281
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-PZIRLPXR.mjs → chunk-3KYIYSZW.mjs} +5 -5
- package/dist/{chunk-JIPPS45C.mjs → chunk-ALIPIID3.mjs} +4 -4
- 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 +4 -4
- package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
- package/dist/components/copilot-textarea/copilot-textarea.mjs +6 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -6
- 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 +7 -7
- 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-PZIRLPXR.mjs.map → chunk-3KYIYSZW.mjs.map} +0 -0
- /package/dist/{chunk-JIPPS45C.mjs.map → chunk-ALIPIID3.mjs.map} +0 -0
- /package/dist/{chunk-72P3KOHZ.mjs.map → chunk-QKS2IOUH.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
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
|
+
|
|
3
15
|
## 0.30.0-alpha.2
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
254
|
+
//# sourceMappingURL=chunk-ALIPIID3.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-
|
|
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-
|
|
101
|
+
//# sourceMappingURL=chunk-QKS2IOUH.mjs.map
|