@copilotkit/react-textarea 1.50.0-beta.1 → 1.50.0-beta.2

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.
Files changed (36) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-ISKK3RIW.mjs → chunk-4ECCCOFV.mjs} +4 -4
  3. package/dist/{chunk-66KFI242.mjs → chunk-7XCHUKHE.mjs} +2 -2
  4. package/dist/chunk-BWOA6IMP.mjs +60 -0
  5. package/dist/chunk-BWOA6IMP.mjs.map +1 -0
  6. package/dist/{chunk-5NZNJCP2.mjs → chunk-D45G4MDN.mjs} +22 -22
  7. package/dist/chunk-MMVDU6DF.mjs +1 -0
  8. package/dist/{chunk-7VADGLV2.mjs → chunk-QRIERW2G.mjs} +5 -5
  9. package/dist/{chunk-4VCJHANC.mjs → chunk-XWSCFH3Y.mjs} +7 -7
  10. package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +18 -18
  11. package/dist/components/copilot-textarea/copilot-textarea.mjs +25 -72
  12. package/dist/components/copilot-textarea/copilot-textarea.mjs.map +1 -1
  13. package/dist/components/hovering-toolbar/hovering-toolbar.mjs +6 -6
  14. package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +4 -4
  15. package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +5 -5
  16. package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +5 -5
  17. package/dist/components/index.d.ts +11 -2
  18. package/dist/components/index.js +490 -8
  19. package/dist/components/index.js.map +1 -1
  20. package/dist/components/index.mjs +32 -20
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.js +327 -59
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +33 -26
  25. package/dist/types/autosuggestions-config/autosuggestions-config.mjs +2 -2
  26. package/dist/types/autosuggestions-config/index.mjs +2 -2
  27. package/dist/types/index.mjs +3 -3
  28. package/package.json +6 -6
  29. package/src/components/index.ts +3 -0
  30. package/dist/chunk-JD7BAH7U.mjs +0 -1
  31. /package/dist/{chunk-ISKK3RIW.mjs.map → chunk-4ECCCOFV.mjs.map} +0 -0
  32. /package/dist/{chunk-66KFI242.mjs.map → chunk-7XCHUKHE.mjs.map} +0 -0
  33. /package/dist/{chunk-5NZNJCP2.mjs.map → chunk-D45G4MDN.mjs.map} +0 -0
  34. /package/dist/{chunk-JD7BAH7U.mjs.map → chunk-MMVDU6DF.mjs.map} +0 -0
  35. /package/dist/{chunk-7VADGLV2.mjs.map → chunk-QRIERW2G.mjs.map} +0 -0
  36. /package/dist/{chunk-4VCJHANC.mjs.map → chunk-XWSCFH3Y.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # ui
2
2
 
3
+ ## 1.10.7-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @copilotkit/react-core@1.10.7-next.0
8
+ - @copilotkit/runtime-client-gql@1.10.7-next.0
9
+ - @copilotkit/shared@1.10.7-next.0
10
+
3
11
  ## 1.10.6
4
12
 
5
13
  ### Patch Changes
@@ -1,12 +1,12 @@
1
- import {
2
- defaultSuggestionsApiConfig
3
- } from "./chunk-QFXR6DOA.mjs";
4
1
  import {
5
2
  defaultEditingApiConfig
6
3
  } from "./chunk-EJGGLWWR.mjs";
7
4
  import {
8
5
  defaultInsertionsApiConfig
9
6
  } from "./chunk-MCNXIA4Q.mjs";
7
+ import {
8
+ defaultSuggestionsApiConfig
9
+ } from "./chunk-QFXR6DOA.mjs";
10
10
  import {
11
11
  defaultBaseAutosuggestionsConfig
12
12
  } from "./chunk-F6RLSVG3.mjs";
@@ -29,4 +29,4 @@ var defaultAutosuggestionsConfig = __spreadProps(__spreadValues({}, defaultBaseA
29
29
  export {
30
30
  defaultAutosuggestionsConfig
31
31
  };
32
- //# sourceMappingURL=chunk-ISKK3RIW.mjs.map
32
+ //# sourceMappingURL=chunk-4ECCCOFV.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HoveringInsertionPromptBoxCore
3
- } from "./chunk-4VCJHANC.mjs";
3
+ } from "./chunk-XWSCFH3Y.mjs";
4
4
 
5
5
  // src/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.tsx
6
6
  import { jsx } from "react/jsx-runtime";
@@ -28,4 +28,4 @@ var HoveringInsertionPromptBox = (props) => {
28
28
  export {
29
29
  HoveringInsertionPromptBox
30
30
  };
31
- //# sourceMappingURL=chunk-66KFI242.mjs.map
31
+ //# sourceMappingURL=chunk-7XCHUKHE.mjs.map
@@ -0,0 +1,60 @@
1
+ import {
2
+ useMakeStandardInsertionOrEditingFunction
3
+ } from "./chunk-DL3JWL2E.mjs";
4
+ import {
5
+ useMakeStandardAutosuggestionFunction
6
+ } from "./chunk-ZQSEYPNN.mjs";
7
+ import {
8
+ defaultAutosuggestionsConfig
9
+ } from "./chunk-4ECCCOFV.mjs";
10
+ import {
11
+ BaseCopilotTextarea
12
+ } from "./chunk-D45G4MDN.mjs";
13
+ import {
14
+ __objRest,
15
+ __spreadProps,
16
+ __spreadValues
17
+ } from "./chunk-MRXNTQOX.mjs";
18
+
19
+ // src/components/copilot-textarea/copilot-textarea.tsx
20
+ import React from "react";
21
+ import merge from "lodash.merge";
22
+ import { Fragment, jsx } from "react/jsx-runtime";
23
+ var CopilotTextarea = React.forwardRef(
24
+ (props, ref) => {
25
+ const _a = props, { autosuggestionsConfig: autosuggestionsConfigUserSpecified } = _a, forwardedProps = __objRest(_a, ["autosuggestionsConfig"]);
26
+ const autosuggestionsConfig = merge(
27
+ defaultAutosuggestionsConfig,
28
+ autosuggestionsConfigUserSpecified
29
+ );
30
+ const autosuggestionsFunction = useMakeStandardAutosuggestionFunction(
31
+ autosuggestionsConfig.textareaPurpose,
32
+ autosuggestionsConfig.contextCategories,
33
+ autosuggestionsConfig.chatApiConfigs.suggestionsApiConfig
34
+ );
35
+ const insertionOrEditingFunction = useMakeStandardInsertionOrEditingFunction(
36
+ autosuggestionsConfig.textareaPurpose,
37
+ autosuggestionsConfig.contextCategories,
38
+ autosuggestionsConfig.chatApiConfigs.insertionApiConfig,
39
+ autosuggestionsConfig.chatApiConfigs.editingApiConfig
40
+ );
41
+ return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
42
+ BaseCopilotTextarea,
43
+ __spreadProps(__spreadValues({
44
+ ref
45
+ }, forwardedProps), {
46
+ baseAutosuggestionsConfig: __spreadProps(__spreadValues({}, autosuggestionsConfig), {
47
+ apiConfig: {
48
+ insertionOrEditingFunction,
49
+ autosuggestionsFunction
50
+ }
51
+ })
52
+ })
53
+ ) });
54
+ }
55
+ );
56
+
57
+ export {
58
+ CopilotTextarea
59
+ };
60
+ //# sourceMappingURL=chunk-BWOA6IMP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/copilot-textarea/copilot-textarea.tsx"],"sourcesContent":["/**\n * <br/>\n * <img src=\"https://cdn.copilotkit.ai/docs/copilotkit/images/CopilotTextarea.gif\" width=\"500\" />\n *\n * `<CopilotTextarea>` is a React component that acts as a drop-in replacement for the standard `<textarea>`,\n * offering enhanced autocomplete features powered by AI. It is context-aware, integrating seamlessly with the\n * [`useCopilotReadable`](/reference/hooks/useCopilotReadable) hook to provide intelligent suggestions based on the application context.\n *\n * In addition, it provides a hovering editor window (available by default via `Cmd + K` on Mac and `Ctrl + K` on Windows) that allows the user to\n * suggest changes to the text, for example providing a summary or rephrasing the text.\n *\n * ## Example\n *\n * ```tsx\n * import { CopilotTextarea } from '@copilotkit/react-textarea';\n * import \"@copilotkit/react-textarea/styles.css\";\n *\n * <CopilotTextarea\n * autosuggestionsConfig={{\n * textareaPurpose:\n * \"the body of an email message\",\n * chatApiConfigs: {},\n * }}\n * />\n * ```\n *\n * ## Usage\n *\n * ### Install Dependencies\n *\n * This component is part of the [@copilotkit/react-textarea](https://npmjs.com/package/@copilotkit/react-textarea) package.\n *\n * ```shell npm2yarn \\\"@copilotkit/react-textarea\"\\\n * npm install @copilotkit/react-core @copilotkit/react-textarea\n * ```\n *\n * ### Usage\n *\n * Use the CopilotTextarea component in your React application similarly to a standard `<textarea />`,\n * with additional configurations for AI-powered features.\n *\n * For example:\n *\n * ```tsx\n * import { useState } from \"react\";\n * import { CopilotTextarea } from \"@copilotkit/react-textarea\";\n * import \"@copilotkit/react-textarea/styles.css\";\n *\n * export function ExampleComponent() {\n * const [text, setText] = useState(\"\");\n *\n * return (\n * <CopilotTextarea\n * className=\"custom-textarea-class\"\n * value={text}\n * onValueChange={(value: string) => setText(value)}\n * placeholder=\"Enter your text here...\"\n * autosuggestionsConfig={{\n * textareaPurpose: \"Provide context or purpose of the textarea.\",\n * chatApiConfigs: {\n * suggestionsApiConfig: {\n * maxTokens: 20,\n * stop: [\".\", \"?\", \"!\"],\n * },\n * },\n * }}\n * />\n * );\n * }\n * ```\n *\n * ### Look & Feel\n *\n * By default, CopilotKit components do not have any styles. You can import CopilotKit's stylesheet at the root of your project:\n * ```tsx title=\"YourRootComponent.tsx\"\n * ...\n * import \"@copilotkit/react-textarea/styles.css\"; // [!code highlight]\n *\n * export function YourRootComponent() {\n * return (\n * <CopilotKit>\n * ...\n * </CopilotKit>\n * );\n * }\n * ```\n * For more information about how to customize the styles, check out the [Customize Look & Feel](/guides/custom-look-and-feel/customize-built-in-ui-components) guide.\n * */\nimport React from \"react\";\nimport { useMakeStandardAutosuggestionFunction } from \"../../hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function\";\nimport { HTMLCopilotTextAreaElement } from \"../../types\";\nimport { BaseCopilotTextareaProps } from \"../../types/base/base-copilot-textarea-props\";\nimport {\n AutosuggestionsConfig,\n defaultAutosuggestionsConfig,\n} from \"../../types/autosuggestions-config\";\nimport { BaseCopilotTextarea } from \"../base-copilot-textarea/base-copilot-textarea\";\nimport { useMakeStandardInsertionOrEditingFunction } from \"../../hooks/make-autosuggestions-function/use-make-standard-insertion-function\";\nimport merge from \"lodash.merge\";\nimport { AutosuggestionsConfigUserSpecified } from \"../../types/autosuggestions-config/autosuggestions-config-user-specified\";\n\n// Like the base copilot textarea props,\n// but with baseAutosuggestionsConfig replaced with autosuggestionsConfig.\nexport interface CopilotTextareaProps\n extends Omit<BaseCopilotTextareaProps, \"baseAutosuggestionsConfig\"> {\n /**\n * Configuration settings for the autosuggestions feature.\n * For full reference, [check the interface on GitHub](https://github.com/CopilotKit/CopilotKit/blob/main/CopilotKit/packages/react-textarea/src/types/base/base-copilot-textarea-props.tsx#L8).\n *\n * <PropertyReference name=\"textareaPurpose\" type=\"string\" required={true} >\n * The purpose of the text area in plain text.\n *\n * Example: *\"The body of the email response\"*\n * </PropertyReference>\n *\n * <PropertyReference name=\"chatApiConfigs\" type=\"ChatApiConfigs\" >\n * The chat API configurations.\n *\n * <strong>NOTE:</strong> You must provide specify at least one of `suggestionsApiConfig` or `insertionApiConfig`.\n *\n * <PropertyReference name=\"suggestionsApiConfig\" type=\"SuggestionsApiConfig\">\n * For full reference, please [click here](https://github.com/CopilotKit/CopilotKit/blob/main/CopilotKit/packages/react-textarea/src/types/autosuggestions-config/suggestions-api-config.tsx#L4).\n * </PropertyReference>\n * <PropertyReference name=\"insertionApiConfig\" type=\"InsertionApiConfig\">\n * For full reference, please [click here](https://github.com/CopilotKit/CopilotKit/blob/main/CopilotKit/packages/react-textarea/src/types/autosuggestions-config/insertions-api-config.tsx#L4).\n * </PropertyReference>\n * </PropertyReference>\n *\n * <PropertyReference name=\"disabled\" type=\"boolean\" >\n * Whether the textarea is disabled.\n * </PropertyReference>\n *\n * <PropertyReference name=\"disableBranding\" type=\"boolean\" >\n * Whether to disable the CopilotKit branding.\n * </PropertyReference>\n *\n * <PropertyReference name=\"placeholderStyle\" type=\"React.CSSProperties\" >\n * Specifies the CSS styles to apply to the placeholder text.\n * </PropertyReference>\n *\n * <PropertyReference name=\"suggestionsStyle\" type=\"React.CSSProperties\" >\n * Specifies the CSS styles to apply to the suggestions list.\n * </PropertyReference>\n *\n * <PropertyReference name=\"hoverMenuClassname\" type=\"string\" >\n * A class name to apply to the editor popover window.\n * </PropertyReference>\n *\n * <PropertyReference name=\"value\" type=\"string\" >\n * The initial value of the textarea. Can be controlled via `onValueChange`.\n * </PropertyReference>\n *\n * <PropertyReference name=\"onValueChange\" type=\"(value: string) => void\" >\n * Callback invoked when the value of the textarea changes.\n * </PropertyReference>\n *\n * <PropertyReference name=\"onChange\" type=\"(event: React.ChangeEvent<HTMLTextAreaElement>) => void\" >\n * Callback invoked when a `change` event is triggered on the textarea element.\n * </PropertyReference>\n *\n * <PropertyReference name=\"shortcut\" type=\"string\" >\n * The shortcut to use to open the editor popover window. Default is `\"Cmd-k\"`.\n * </PropertyReference>\n */\n autosuggestionsConfig: AutosuggestionsConfigUserSpecified;\n}\n\n/**\n * A copilot textarea that uses the standard autosuggestions function.\n */\nexport const CopilotTextarea = React.forwardRef(\n (props: CopilotTextareaProps, ref: React.Ref<HTMLCopilotTextAreaElement>) => {\n // separate the AutosuggestionsConfigUserSpecified from the rest of the props\n const { autosuggestionsConfig: autosuggestionsConfigUserSpecified, ...forwardedProps } = props;\n\n const autosuggestionsConfig: AutosuggestionsConfig = merge(\n defaultAutosuggestionsConfig,\n autosuggestionsConfigUserSpecified,\n );\n\n const autosuggestionsFunction = useMakeStandardAutosuggestionFunction(\n autosuggestionsConfig.textareaPurpose,\n autosuggestionsConfig.contextCategories,\n autosuggestionsConfig.chatApiConfigs.suggestionsApiConfig,\n );\n\n const insertionOrEditingFunction = useMakeStandardInsertionOrEditingFunction(\n autosuggestionsConfig.textareaPurpose,\n autosuggestionsConfig.contextCategories,\n autosuggestionsConfig.chatApiConfigs.insertionApiConfig,\n autosuggestionsConfig.chatApiConfigs.editingApiConfig,\n );\n\n return (\n <>\n <BaseCopilotTextarea\n ref={ref}\n {...forwardedProps}\n baseAutosuggestionsConfig={{\n ...autosuggestionsConfig,\n apiConfig: {\n insertionOrEditingFunction: insertionOrEditingFunction,\n autosuggestionsFunction: autosuggestionsFunction,\n },\n }}\n />\n </>\n );\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAwFA,OAAO,WAAW;AAUlB,OAAO,WAAW;AAgGZ,mBACE,WADF;AAxBC,IAAM,kBAAkB,MAAM;AAAA,EACnC,CAAC,OAA6B,QAA+C;AAE3E,UAAyF,YAAjF,yBAAuB,mCA7KnC,IA6K6F,IAAnB,2BAAmB,IAAnB,CAA9D;AAER,UAAM,wBAA+C;AAAA,MACnD;AAAA,MACA;AAAA,IACF;AAEA,UAAM,0BAA0B;AAAA,MAC9B,sBAAsB;AAAA,MACtB,sBAAsB;AAAA,MACtB,sBAAsB,eAAe;AAAA,IACvC;AAEA,UAAM,6BAA6B;AAAA,MACjC,sBAAsB;AAAA,MACtB,sBAAsB;AAAA,MACtB,sBAAsB,eAAe;AAAA,MACrC,sBAAsB,eAAe;AAAA,IACvC;AAEA,WACE,gCACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,SACI,iBAFL;AAAA,QAGC,2BAA2B,iCACtB,wBADsB;AAAA,UAEzB,WAAW;AAAA,YACT;AAAA,YACA;AAAA,UACF;AAAA,QACF;AAAA;AAAA,IACF,GACF;AAAA,EAEJ;AACF;","names":[]}
@@ -2,11 +2,30 @@ import {
2
2
  clearAutocompletionsFromEditor
3
3
  } from "./chunk-GQN2HYFJ.mjs";
4
4
  import {
5
- HoveringToolbar
6
- } from "./chunk-7VADGLV2.mjs";
5
+ defaultBaseAutosuggestionsConfig
6
+ } from "./chunk-F6RLSVG3.mjs";
7
+ import {
8
+ useAutosuggestions
9
+ } from "./chunk-23Q6A46J.mjs";
10
+ import {
11
+ useCopilotTextareaEditor
12
+ } from "./chunk-DRV2FOHZ.mjs";
13
+ import {
14
+ usePopulateCopilotTextareaRef
15
+ } from "./chunk-QJNFNPWH.mjs";
16
+ import {
17
+ replaceEditorText
18
+ } from "./chunk-5UNJXFUO.mjs";
7
19
  import {
8
20
  addAutocompletionsToEditor
9
21
  } from "./chunk-2C7O2EVM.mjs";
22
+ import {
23
+ HoveringToolbar
24
+ } from "./chunk-QRIERW2G.mjs";
25
+ import {
26
+ HoveringEditorProvider,
27
+ useHoveringEditorContext
28
+ } from "./chunk-LYB4B6MK.mjs";
10
29
  import {
11
30
  makeRenderElementFunction
12
31
  } from "./chunk-F2ULK22F.mjs";
@@ -19,25 +38,6 @@ import {
19
38
  import {
20
39
  useAddBrandingCss
21
40
  } from "./chunk-7LSRNPNI.mjs";
22
- import {
23
- HoveringEditorProvider,
24
- useHoveringEditorContext
25
- } from "./chunk-LYB4B6MK.mjs";
26
- import {
27
- defaultBaseAutosuggestionsConfig
28
- } from "./chunk-F6RLSVG3.mjs";
29
- import {
30
- useAutosuggestions
31
- } from "./chunk-23Q6A46J.mjs";
32
- import {
33
- useCopilotTextareaEditor
34
- } from "./chunk-DRV2FOHZ.mjs";
35
- import {
36
- usePopulateCopilotTextareaRef
37
- } from "./chunk-QJNFNPWH.mjs";
38
- import {
39
- replaceEditorText
40
- } from "./chunk-5UNJXFUO.mjs";
41
41
  import {
42
42
  getFullEditorTextWithNewlines,
43
43
  getTextAroundCollapsedCursor
@@ -266,4 +266,4 @@ function makeSemiFakeReactTextAreaEvent(currentText) {
266
266
  export {
267
267
  BaseCopilotTextarea
268
268
  };
269
- //# sourceMappingURL=chunk-5NZNJCP2.mjs.map
269
+ //# sourceMappingURL=chunk-D45G4MDN.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-MMVDU6DF.mjs.map
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  HoveringInsertionPromptBox
3
- } from "./chunk-66KFI242.mjs";
3
+ } from "./chunk-7XCHUKHE.mjs";
4
+ import {
5
+ useHoveringEditorContext
6
+ } from "./chunk-LYB4B6MK.mjs";
4
7
  import {
5
8
  Menu,
6
9
  Portal
7
10
  } from "./chunk-2IWVZ4PP.mjs";
8
- import {
9
- useHoveringEditorContext
10
- } from "./chunk-LYB4B6MK.mjs";
11
11
  import {
12
12
  getFullEditorTextWithNewlines,
13
13
  getTextAroundSelection
@@ -117,4 +117,4 @@ function editorState(editor, selection) {
117
117
  export {
118
118
  HoveringToolbar
119
119
  };
120
- //# sourceMappingURL=chunk-7VADGLV2.mjs.map
120
+ //# sourceMappingURL=chunk-QRIERW2G.mjs.map
@@ -1,12 +1,6 @@
1
1
  import {
2
2
  IncludedFilesPreview
3
3
  } from "./chunk-KMVGEY7Q.mjs";
4
- import {
5
- SourceSearchBox
6
- } from "./chunk-WGWQRALG.mjs";
7
- import {
8
- Button
9
- } from "./chunk-4PDYALMP.mjs";
10
4
  import {
11
5
  Label
12
6
  } from "./chunk-D47EKHIF.mjs";
@@ -16,6 +10,12 @@ import {
16
10
  import {
17
11
  useHoveringEditorContext
18
12
  } from "./chunk-LYB4B6MK.mjs";
13
+ import {
14
+ SourceSearchBox
15
+ } from "./chunk-WGWQRALG.mjs";
16
+ import {
17
+ Button
18
+ } from "./chunk-4PDYALMP.mjs";
19
19
  import {
20
20
  streamPromiseFlatten
21
21
  } from "./chunk-2QDCE7PD.mjs";
@@ -223,4 +223,4 @@ var HoveringInsertionPromptBoxCore = ({
223
223
  export {
224
224
  HoveringInsertionPromptBoxCore
225
225
  };
226
- //# sourceMappingURL=chunk-4VCJHANC.mjs.map
226
+ //# sourceMappingURL=chunk-XWSCFH3Y.mjs.map
@@ -1,35 +1,35 @@
1
1
  import {
2
2
  BaseCopilotTextarea
3
- } from "../../chunk-5NZNJCP2.mjs";
3
+ } from "../../chunk-D45G4MDN.mjs";
4
4
  import "../../chunk-GQN2HYFJ.mjs";
5
- import "../../chunk-7VADGLV2.mjs";
5
+ import "../../chunk-WJHSY5T6.mjs";
6
+ import "../../chunk-F6RLSVG3.mjs";
7
+ import "../../chunk-23Q6A46J.mjs";
8
+ import "../../chunk-AJ5OMEXM.mjs";
9
+ import "../../chunk-DRV2FOHZ.mjs";
10
+ import "../../chunk-4NHVQZ67.mjs";
11
+ import "../../chunk-QJNFNPWH.mjs";
12
+ import "../../chunk-5UNJXFUO.mjs";
13
+ import "../../chunk-2C7O2EVM.mjs";
14
+ import "../../chunk-QRIERW2G.mjs";
6
15
  import "../../chunk-L7VVZH4Q.mjs";
7
- import "../../chunk-66KFI242.mjs";
8
- import "../../chunk-4VCJHANC.mjs";
16
+ import "../../chunk-7XCHUKHE.mjs";
17
+ import "../../chunk-XWSCFH3Y.mjs";
9
18
  import "../../chunk-KMVGEY7Q.mjs";
19
+ import "../../chunk-D47EKHIF.mjs";
20
+ import "../../chunk-NAFNY4FL.mjs";
21
+ import "../../chunk-LYB4B6MK.mjs";
10
22
  import "../../chunk-2IWVZ4PP.mjs";
11
23
  import "../../chunk-WGWQRALG.mjs";
12
24
  import "../../chunk-4PDYALMP.mjs";
13
25
  import "../../chunk-VSVQZUPW.mjs";
14
26
  import "../../chunk-I72DKFHD.mjs";
15
- import "../../chunk-D47EKHIF.mjs";
16
- import "../../chunk-2C7O2EVM.mjs";
17
- import "../../chunk-NAFNY4FL.mjs";
27
+ import "../../chunk-2QDCE7PD.mjs";
28
+ import "../../chunk-YLFAIYRY.mjs";
18
29
  import "../../chunk-F2ULK22F.mjs";
19
30
  import "../../chunk-3QJOFG3V.mjs";
20
31
  import "../../chunk-JLOABKLH.mjs";
21
32
  import "../../chunk-7LSRNPNI.mjs";
22
- import "../../chunk-LYB4B6MK.mjs";
23
- import "../../chunk-2QDCE7PD.mjs";
24
- import "../../chunk-WJHSY5T6.mjs";
25
- import "../../chunk-F6RLSVG3.mjs";
26
- import "../../chunk-23Q6A46J.mjs";
27
- import "../../chunk-AJ5OMEXM.mjs";
28
- import "../../chunk-YLFAIYRY.mjs";
29
- import "../../chunk-DRV2FOHZ.mjs";
30
- import "../../chunk-4NHVQZ67.mjs";
31
- import "../../chunk-QJNFNPWH.mjs";
32
- import "../../chunk-5UNJXFUO.mjs";
33
33
  import "../../chunk-DFTV4TST.mjs";
34
34
  import "../../chunk-T6MTDQZ7.mjs";
35
35
  import "../../chunk-ECR45NSD.mjs";
@@ -1,95 +1,48 @@
1
1
  import {
2
- useMakeStandardInsertionOrEditingFunction
3
- } from "../../chunk-DL3JWL2E.mjs";
4
- import {
5
- useMakeStandardAutosuggestionFunction
6
- } from "../../chunk-ZQSEYPNN.mjs";
2
+ CopilotTextarea
3
+ } from "../../chunk-BWOA6IMP.mjs";
4
+ import "../../chunk-DL3JWL2E.mjs";
5
+ import "../../chunk-ZQSEYPNN.mjs";
7
6
  import "../../chunk-RUV6NBIF.mjs";
8
- import {
9
- defaultAutosuggestionsConfig
10
- } from "../../chunk-ISKK3RIW.mjs";
11
- import "../../chunk-QFXR6DOA.mjs";
7
+ import "../../chunk-4ECCCOFV.mjs";
12
8
  import "../../chunk-EJGGLWWR.mjs";
13
9
  import "../../chunk-MCNXIA4Q.mjs";
14
- import {
15
- BaseCopilotTextarea
16
- } from "../../chunk-5NZNJCP2.mjs";
10
+ import "../../chunk-QFXR6DOA.mjs";
11
+ import "../../chunk-D45G4MDN.mjs";
17
12
  import "../../chunk-GQN2HYFJ.mjs";
18
- import "../../chunk-7VADGLV2.mjs";
13
+ import "../../chunk-WJHSY5T6.mjs";
14
+ import "../../chunk-F6RLSVG3.mjs";
15
+ import "../../chunk-23Q6A46J.mjs";
16
+ import "../../chunk-AJ5OMEXM.mjs";
17
+ import "../../chunk-DRV2FOHZ.mjs";
18
+ import "../../chunk-4NHVQZ67.mjs";
19
+ import "../../chunk-QJNFNPWH.mjs";
20
+ import "../../chunk-5UNJXFUO.mjs";
21
+ import "../../chunk-2C7O2EVM.mjs";
22
+ import "../../chunk-QRIERW2G.mjs";
19
23
  import "../../chunk-L7VVZH4Q.mjs";
20
- import "../../chunk-66KFI242.mjs";
21
- import "../../chunk-4VCJHANC.mjs";
24
+ import "../../chunk-7XCHUKHE.mjs";
25
+ import "../../chunk-XWSCFH3Y.mjs";
22
26
  import "../../chunk-KMVGEY7Q.mjs";
27
+ import "../../chunk-D47EKHIF.mjs";
28
+ import "../../chunk-NAFNY4FL.mjs";
29
+ import "../../chunk-LYB4B6MK.mjs";
23
30
  import "../../chunk-2IWVZ4PP.mjs";
24
31
  import "../../chunk-WGWQRALG.mjs";
25
32
  import "../../chunk-4PDYALMP.mjs";
26
33
  import "../../chunk-VSVQZUPW.mjs";
27
34
  import "../../chunk-I72DKFHD.mjs";
28
- import "../../chunk-D47EKHIF.mjs";
29
- import "../../chunk-2C7O2EVM.mjs";
30
- import "../../chunk-NAFNY4FL.mjs";
35
+ import "../../chunk-2QDCE7PD.mjs";
36
+ import "../../chunk-YLFAIYRY.mjs";
31
37
  import "../../chunk-F2ULK22F.mjs";
32
38
  import "../../chunk-3QJOFG3V.mjs";
33
39
  import "../../chunk-JLOABKLH.mjs";
34
40
  import "../../chunk-7LSRNPNI.mjs";
35
- import "../../chunk-LYB4B6MK.mjs";
36
- import "../../chunk-2QDCE7PD.mjs";
37
- import "../../chunk-WJHSY5T6.mjs";
38
- import "../../chunk-F6RLSVG3.mjs";
39
- import "../../chunk-23Q6A46J.mjs";
40
- import "../../chunk-AJ5OMEXM.mjs";
41
- import "../../chunk-YLFAIYRY.mjs";
42
- import "../../chunk-DRV2FOHZ.mjs";
43
- import "../../chunk-4NHVQZ67.mjs";
44
- import "../../chunk-QJNFNPWH.mjs";
45
- import "../../chunk-5UNJXFUO.mjs";
46
41
  import "../../chunk-DFTV4TST.mjs";
47
42
  import "../../chunk-T6MTDQZ7.mjs";
48
43
  import "../../chunk-ECR45NSD.mjs";
49
44
  import "../../chunk-KNQIEOFP.mjs";
50
- import {
51
- __objRest,
52
- __spreadProps,
53
- __spreadValues
54
- } from "../../chunk-MRXNTQOX.mjs";
55
-
56
- // src/components/copilot-textarea/copilot-textarea.tsx
57
- import React from "react";
58
- import merge from "lodash.merge";
59
- import { Fragment, jsx } from "react/jsx-runtime";
60
- var CopilotTextarea = React.forwardRef(
61
- (props, ref) => {
62
- const _a = props, { autosuggestionsConfig: autosuggestionsConfigUserSpecified } = _a, forwardedProps = __objRest(_a, ["autosuggestionsConfig"]);
63
- const autosuggestionsConfig = merge(
64
- defaultAutosuggestionsConfig,
65
- autosuggestionsConfigUserSpecified
66
- );
67
- const autosuggestionsFunction = useMakeStandardAutosuggestionFunction(
68
- autosuggestionsConfig.textareaPurpose,
69
- autosuggestionsConfig.contextCategories,
70
- autosuggestionsConfig.chatApiConfigs.suggestionsApiConfig
71
- );
72
- const insertionOrEditingFunction = useMakeStandardInsertionOrEditingFunction(
73
- autosuggestionsConfig.textareaPurpose,
74
- autosuggestionsConfig.contextCategories,
75
- autosuggestionsConfig.chatApiConfigs.insertionApiConfig,
76
- autosuggestionsConfig.chatApiConfigs.editingApiConfig
77
- );
78
- return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
79
- BaseCopilotTextarea,
80
- __spreadProps(__spreadValues({
81
- ref
82
- }, forwardedProps), {
83
- baseAutosuggestionsConfig: __spreadProps(__spreadValues({}, autosuggestionsConfig), {
84
- apiConfig: {
85
- insertionOrEditingFunction,
86
- autosuggestionsFunction
87
- }
88
- })
89
- })
90
- ) });
91
- }
92
- );
45
+ import "../../chunk-MRXNTQOX.mjs";
93
46
  export {
94
47
  CopilotTextarea
95
48
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/copilot-textarea/copilot-textarea.tsx"],"sourcesContent":["/**\n * <br/>\n * <img src=\"https://cdn.copilotkit.ai/docs/copilotkit/images/CopilotTextarea.gif\" width=\"500\" />\n *\n * `<CopilotTextarea>` is a React component that acts as a drop-in replacement for the standard `<textarea>`,\n * offering enhanced autocomplete features powered by AI. It is context-aware, integrating seamlessly with the\n * [`useCopilotReadable`](/reference/hooks/useCopilotReadable) hook to provide intelligent suggestions based on the application context.\n *\n * In addition, it provides a hovering editor window (available by default via `Cmd + K` on Mac and `Ctrl + K` on Windows) that allows the user to\n * suggest changes to the text, for example providing a summary or rephrasing the text.\n *\n * ## Example\n *\n * ```tsx\n * import { CopilotTextarea } from '@copilotkit/react-textarea';\n * import \"@copilotkit/react-textarea/styles.css\";\n *\n * <CopilotTextarea\n * autosuggestionsConfig={{\n * textareaPurpose:\n * \"the body of an email message\",\n * chatApiConfigs: {},\n * }}\n * />\n * ```\n *\n * ## Usage\n *\n * ### Install Dependencies\n *\n * This component is part of the [@copilotkit/react-textarea](https://npmjs.com/package/@copilotkit/react-textarea) package.\n *\n * ```shell npm2yarn \\\"@copilotkit/react-textarea\"\\\n * npm install @copilotkit/react-core @copilotkit/react-textarea\n * ```\n *\n * ### Usage\n *\n * Use the CopilotTextarea component in your React application similarly to a standard `<textarea />`,\n * with additional configurations for AI-powered features.\n *\n * For example:\n *\n * ```tsx\n * import { useState } from \"react\";\n * import { CopilotTextarea } from \"@copilotkit/react-textarea\";\n * import \"@copilotkit/react-textarea/styles.css\";\n *\n * export function ExampleComponent() {\n * const [text, setText] = useState(\"\");\n *\n * return (\n * <CopilotTextarea\n * className=\"custom-textarea-class\"\n * value={text}\n * onValueChange={(value: string) => setText(value)}\n * placeholder=\"Enter your text here...\"\n * autosuggestionsConfig={{\n * textareaPurpose: \"Provide context or purpose of the textarea.\",\n * chatApiConfigs: {\n * suggestionsApiConfig: {\n * maxTokens: 20,\n * stop: [\".\", \"?\", \"!\"],\n * },\n * },\n * }}\n * />\n * );\n * }\n * ```\n *\n * ### Look & Feel\n *\n * By default, CopilotKit components do not have any styles. You can import CopilotKit's stylesheet at the root of your project:\n * ```tsx title=\"YourRootComponent.tsx\"\n * ...\n * import \"@copilotkit/react-textarea/styles.css\"; // [!code highlight]\n *\n * export function YourRootComponent() {\n * return (\n * <CopilotKit>\n * ...\n * </CopilotKit>\n * );\n * }\n * ```\n * For more information about how to customize the styles, check out the [Customize Look & Feel](/guides/custom-look-and-feel/customize-built-in-ui-components) guide.\n * */\nimport React from \"react\";\nimport { useMakeStandardAutosuggestionFunction } from \"../../hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function\";\nimport { HTMLCopilotTextAreaElement } from \"../../types\";\nimport { BaseCopilotTextareaProps } from \"../../types/base/base-copilot-textarea-props\";\nimport {\n AutosuggestionsConfig,\n defaultAutosuggestionsConfig,\n} from \"../../types/autosuggestions-config\";\nimport { BaseCopilotTextarea } from \"../base-copilot-textarea/base-copilot-textarea\";\nimport { useMakeStandardInsertionOrEditingFunction } from \"../../hooks/make-autosuggestions-function/use-make-standard-insertion-function\";\nimport merge from \"lodash.merge\";\nimport { AutosuggestionsConfigUserSpecified } from \"../../types/autosuggestions-config/autosuggestions-config-user-specified\";\n\n// Like the base copilot textarea props,\n// but with baseAutosuggestionsConfig replaced with autosuggestionsConfig.\nexport interface CopilotTextareaProps\n extends Omit<BaseCopilotTextareaProps, \"baseAutosuggestionsConfig\"> {\n /**\n * Configuration settings for the autosuggestions feature.\n * For full reference, [check the interface on GitHub](https://github.com/CopilotKit/CopilotKit/blob/main/CopilotKit/packages/react-textarea/src/types/base/base-copilot-textarea-props.tsx#L8).\n *\n * <PropertyReference name=\"textareaPurpose\" type=\"string\" required={true} >\n * The purpose of the text area in plain text.\n *\n * Example: *\"The body of the email response\"*\n * </PropertyReference>\n *\n * <PropertyReference name=\"chatApiConfigs\" type=\"ChatApiConfigs\" >\n * The chat API configurations.\n *\n * <strong>NOTE:</strong> You must provide specify at least one of `suggestionsApiConfig` or `insertionApiConfig`.\n *\n * <PropertyReference name=\"suggestionsApiConfig\" type=\"SuggestionsApiConfig\">\n * For full reference, please [click here](https://github.com/CopilotKit/CopilotKit/blob/main/CopilotKit/packages/react-textarea/src/types/autosuggestions-config/suggestions-api-config.tsx#L4).\n * </PropertyReference>\n * <PropertyReference name=\"insertionApiConfig\" type=\"InsertionApiConfig\">\n * For full reference, please [click here](https://github.com/CopilotKit/CopilotKit/blob/main/CopilotKit/packages/react-textarea/src/types/autosuggestions-config/insertions-api-config.tsx#L4).\n * </PropertyReference>\n * </PropertyReference>\n *\n * <PropertyReference name=\"disabled\" type=\"boolean\" >\n * Whether the textarea is disabled.\n * </PropertyReference>\n *\n * <PropertyReference name=\"disableBranding\" type=\"boolean\" >\n * Whether to disable the CopilotKit branding.\n * </PropertyReference>\n *\n * <PropertyReference name=\"placeholderStyle\" type=\"React.CSSProperties\" >\n * Specifies the CSS styles to apply to the placeholder text.\n * </PropertyReference>\n *\n * <PropertyReference name=\"suggestionsStyle\" type=\"React.CSSProperties\" >\n * Specifies the CSS styles to apply to the suggestions list.\n * </PropertyReference>\n *\n * <PropertyReference name=\"hoverMenuClassname\" type=\"string\" >\n * A class name to apply to the editor popover window.\n * </PropertyReference>\n *\n * <PropertyReference name=\"value\" type=\"string\" >\n * The initial value of the textarea. Can be controlled via `onValueChange`.\n * </PropertyReference>\n *\n * <PropertyReference name=\"onValueChange\" type=\"(value: string) => void\" >\n * Callback invoked when the value of the textarea changes.\n * </PropertyReference>\n *\n * <PropertyReference name=\"onChange\" type=\"(event: React.ChangeEvent<HTMLTextAreaElement>) => void\" >\n * Callback invoked when a `change` event is triggered on the textarea element.\n * </PropertyReference>\n *\n * <PropertyReference name=\"shortcut\" type=\"string\" >\n * The shortcut to use to open the editor popover window. Default is `\"Cmd-k\"`.\n * </PropertyReference>\n */\n autosuggestionsConfig: AutosuggestionsConfigUserSpecified;\n}\n\n/**\n * A copilot textarea that uses the standard autosuggestions function.\n */\nexport const CopilotTextarea = React.forwardRef(\n (props: CopilotTextareaProps, ref: React.Ref<HTMLCopilotTextAreaElement>) => {\n // separate the AutosuggestionsConfigUserSpecified from the rest of the props\n const { autosuggestionsConfig: autosuggestionsConfigUserSpecified, ...forwardedProps } = props;\n\n const autosuggestionsConfig: AutosuggestionsConfig = merge(\n defaultAutosuggestionsConfig,\n autosuggestionsConfigUserSpecified,\n );\n\n const autosuggestionsFunction = useMakeStandardAutosuggestionFunction(\n autosuggestionsConfig.textareaPurpose,\n autosuggestionsConfig.contextCategories,\n autosuggestionsConfig.chatApiConfigs.suggestionsApiConfig,\n );\n\n const insertionOrEditingFunction = useMakeStandardInsertionOrEditingFunction(\n autosuggestionsConfig.textareaPurpose,\n autosuggestionsConfig.contextCategories,\n autosuggestionsConfig.chatApiConfigs.insertionApiConfig,\n autosuggestionsConfig.chatApiConfigs.editingApiConfig,\n );\n\n return (\n <>\n <BaseCopilotTextarea\n ref={ref}\n {...forwardedProps}\n baseAutosuggestionsConfig={{\n ...autosuggestionsConfig,\n apiConfig: {\n insertionOrEditingFunction: insertionOrEditingFunction,\n autosuggestionsFunction: autosuggestionsFunction,\n },\n }}\n />\n </>\n );\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFA,OAAO,WAAW;AAUlB,OAAO,WAAW;AAgGZ,mBACE,WADF;AAxBC,IAAM,kBAAkB,MAAM;AAAA,EACnC,CAAC,OAA6B,QAA+C;AAE3E,UAAyF,YAAjF,yBAAuB,mCA7KnC,IA6K6F,IAAnB,2BAAmB,IAAnB,CAA9D;AAER,UAAM,wBAA+C;AAAA,MACnD;AAAA,MACA;AAAA,IACF;AAEA,UAAM,0BAA0B;AAAA,MAC9B,sBAAsB;AAAA,MACtB,sBAAsB;AAAA,MACtB,sBAAsB,eAAe;AAAA,IACvC;AAEA,UAAM,6BAA6B;AAAA,MACjC,sBAAsB;AAAA,MACtB,sBAAsB;AAAA,MACtB,sBAAsB,eAAe;AAAA,MACrC,sBAAsB,eAAe;AAAA,IACvC;AAEA,WACE,gCACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,SACI,iBAFL;AAAA,QAGC,2BAA2B,iCACtB,wBADsB;AAAA,UAEzB,WAAW;AAAA,YACT;AAAA,YACA;AAAA,UACF;AAAA,QACF;AAAA;AAAA,IACF,GACF;AAAA,EAEJ;AACF;","names":[]}
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  HoveringToolbar
3
- } from "../../chunk-7VADGLV2.mjs";
3
+ } from "../../chunk-QRIERW2G.mjs";
4
4
  import "../../chunk-L7VVZH4Q.mjs";
5
- import "../../chunk-66KFI242.mjs";
6
- import "../../chunk-4VCJHANC.mjs";
5
+ import "../../chunk-7XCHUKHE.mjs";
6
+ import "../../chunk-XWSCFH3Y.mjs";
7
7
  import "../../chunk-KMVGEY7Q.mjs";
8
+ import "../../chunk-D47EKHIF.mjs";
9
+ import "../../chunk-NAFNY4FL.mjs";
10
+ import "../../chunk-LYB4B6MK.mjs";
8
11
  import "../../chunk-2IWVZ4PP.mjs";
9
12
  import "../../chunk-WGWQRALG.mjs";
10
13
  import "../../chunk-4PDYALMP.mjs";
11
14
  import "../../chunk-VSVQZUPW.mjs";
12
15
  import "../../chunk-I72DKFHD.mjs";
13
- import "../../chunk-D47EKHIF.mjs";
14
- import "../../chunk-NAFNY4FL.mjs";
15
- import "../../chunk-LYB4B6MK.mjs";
16
16
  import "../../chunk-2QDCE7PD.mjs";
17
17
  import "../../chunk-YLFAIYRY.mjs";
18
18
  import "../../chunk-ECR45NSD.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  HoveringInsertionPromptBoxCore
3
- } from "../../../chunk-4VCJHANC.mjs";
3
+ } from "../../../chunk-XWSCFH3Y.mjs";
4
4
  import "../../../chunk-KMVGEY7Q.mjs";
5
+ import "../../../chunk-D47EKHIF.mjs";
6
+ import "../../../chunk-NAFNY4FL.mjs";
7
+ import "../../../chunk-LYB4B6MK.mjs";
5
8
  import "../../../chunk-WGWQRALG.mjs";
6
9
  import "../../../chunk-4PDYALMP.mjs";
7
10
  import "../../../chunk-VSVQZUPW.mjs";
8
11
  import "../../../chunk-I72DKFHD.mjs";
9
- import "../../../chunk-D47EKHIF.mjs";
10
- import "../../../chunk-NAFNY4FL.mjs";
11
- import "../../../chunk-LYB4B6MK.mjs";
12
12
  import "../../../chunk-2QDCE7PD.mjs";
13
13
  import "../../../chunk-YLFAIYRY.mjs";
14
14
  import "../../../chunk-MRXNTQOX.mjs";
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  HoveringInsertionPromptBox
3
- } from "../../../chunk-66KFI242.mjs";
4
- import "../../../chunk-4VCJHANC.mjs";
3
+ } from "../../../chunk-7XCHUKHE.mjs";
4
+ import "../../../chunk-XWSCFH3Y.mjs";
5
5
  import "../../../chunk-KMVGEY7Q.mjs";
6
+ import "../../../chunk-D47EKHIF.mjs";
7
+ import "../../../chunk-NAFNY4FL.mjs";
8
+ import "../../../chunk-LYB4B6MK.mjs";
6
9
  import "../../../chunk-WGWQRALG.mjs";
7
10
  import "../../../chunk-4PDYALMP.mjs";
8
11
  import "../../../chunk-VSVQZUPW.mjs";
9
12
  import "../../../chunk-I72DKFHD.mjs";
10
- import "../../../chunk-D47EKHIF.mjs";
11
- import "../../../chunk-NAFNY4FL.mjs";
12
- import "../../../chunk-LYB4B6MK.mjs";
13
13
  import "../../../chunk-2QDCE7PD.mjs";
14
14
  import "../../../chunk-YLFAIYRY.mjs";
15
15
  import "../../../chunk-MRXNTQOX.mjs";
@@ -1,16 +1,16 @@
1
1
  import "../../../chunk-L7VVZH4Q.mjs";
2
2
  import {
3
3
  HoveringInsertionPromptBox
4
- } from "../../../chunk-66KFI242.mjs";
5
- import "../../../chunk-4VCJHANC.mjs";
4
+ } from "../../../chunk-7XCHUKHE.mjs";
5
+ import "../../../chunk-XWSCFH3Y.mjs";
6
6
  import "../../../chunk-KMVGEY7Q.mjs";
7
+ import "../../../chunk-D47EKHIF.mjs";
8
+ import "../../../chunk-NAFNY4FL.mjs";
9
+ import "../../../chunk-LYB4B6MK.mjs";
7
10
  import "../../../chunk-WGWQRALG.mjs";
8
11
  import "../../../chunk-4PDYALMP.mjs";
9
12
  import "../../../chunk-VSVQZUPW.mjs";
10
13
  import "../../../chunk-I72DKFHD.mjs";
11
- import "../../../chunk-D47EKHIF.mjs";
12
- import "../../../chunk-NAFNY4FL.mjs";
13
- import "../../../chunk-LYB4B6MK.mjs";
14
14
  import "../../../chunk-2QDCE7PD.mjs";
15
15
  import "../../../chunk-YLFAIYRY.mjs";
16
16
  import "../../../chunk-MRXNTQOX.mjs";
@@ -1,6 +1,15 @@
1
1
  export { BaseCopilotTextarea } from './base-copilot-textarea/base-copilot-textarea.js';
2
- import 'react';
3
- import '../types/base/index.js';
2
+ export { CopilotTextarea, CopilotTextareaProps } from './copilot-textarea/copilot-textarea.js';
4
3
  import '../types/base/base-autosuggestions-config.js';
5
4
  import '../types/base/autosuggestions-bare-function.js';
5
+ import '../types/base/index.js';
6
+ import '../types/html-copilot-textarea-element.js';
7
+ import '../types/autosuggestions-config/autosuggestions-config.js';
8
+ import '../types/autosuggestions-config/subtypes/make-system-prompt.js';
9
+ import '../types/autosuggestions-config/autosuggestions-config-user-specified.js';
10
+ import 'react';
6
11
  import '@copilotkit/react-core';
12
+ import '../types/autosuggestions-config/suggestions-api-config.js';
13
+ import '@copilotkit/runtime-client-gql';
14
+ import '../types/autosuggestions-config/insertions-api-config.js';
15
+ import '../types/autosuggestions-config/editing-api-config.js';