@copilotkit/react-textarea 1.50.0-beta.1 → 1.50.0-beta.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-5NZNJCP2.mjs → chunk-2A6Y4S2B.mjs} +25 -25
  3. package/dist/{chunk-ISKK3RIW.mjs → chunk-4ECCCOFV.mjs} +4 -4
  4. package/dist/{chunk-7VADGLV2.mjs → chunk-KCIN3PNZ.mjs} +5 -5
  5. package/dist/chunk-KEFTLEWR.mjs +60 -0
  6. package/dist/chunk-KEFTLEWR.mjs.map +1 -0
  7. package/dist/{chunk-66KFI242.mjs → chunk-MGB3JHMS.mjs} +2 -2
  8. package/dist/chunk-MMVDU6DF.mjs +1 -0
  9. package/dist/{chunk-4VCJHANC.mjs → chunk-UC2ZAAK4.mjs} +9 -9
  10. package/dist/components/base-copilot-textarea/base-copilot-textarea.mjs +23 -23
  11. package/dist/components/copilot-textarea/copilot-textarea.mjs +31 -78
  12. package/dist/components/copilot-textarea/copilot-textarea.mjs.map +1 -1
  13. package/dist/components/hovering-toolbar/hovering-toolbar.mjs +9 -9
  14. package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box-core.mjs +6 -6
  15. package/dist/components/hovering-toolbar/text-insertion-prompt-box/hovering-insertion-prompt-box.mjs +7 -7
  16. package/dist/components/hovering-toolbar/text-insertion-prompt-box/index.mjs +7 -7
  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 +37 -25
  21. package/dist/components/ui/command.d.ts +1 -1
  22. package/dist/index.d.ts +1 -0
  23. package/dist/index.js +327 -59
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +37 -30
  26. package/dist/types/autosuggestions-config/autosuggestions-config.mjs +2 -2
  27. package/dist/types/autosuggestions-config/index.mjs +2 -2
  28. package/dist/types/index.mjs +3 -3
  29. package/package.json +6 -6
  30. package/src/components/index.ts +3 -0
  31. package/dist/chunk-JD7BAH7U.mjs +0 -1
  32. /package/dist/{chunk-5NZNJCP2.mjs.map → chunk-2A6Y4S2B.mjs.map} +0 -0
  33. /package/dist/{chunk-ISKK3RIW.mjs.map → chunk-4ECCCOFV.mjs.map} +0 -0
  34. /package/dist/{chunk-7VADGLV2.mjs.map → chunk-KCIN3PNZ.mjs.map} +0 -0
  35. /package/dist/{chunk-66KFI242.mjs.map → chunk-MGB3JHMS.mjs.map} +0 -0
  36. /package/dist/{chunk-JD7BAH7U.mjs.map → chunk-MMVDU6DF.mjs.map} +0 -0
  37. /package/dist/{chunk-4VCJHANC.mjs.map → chunk-UC2ZAAK4.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,28 +1,18 @@
1
- import {
2
- clearAutocompletionsFromEditor
3
- } from "./chunk-GQN2HYFJ.mjs";
4
- import {
5
- HoveringToolbar
6
- } from "./chunk-7VADGLV2.mjs";
7
1
  import {
8
2
  addAutocompletionsToEditor
9
3
  } from "./chunk-2C7O2EVM.mjs";
10
4
  import {
11
- makeRenderElementFunction
12
- } from "./chunk-F2ULK22F.mjs";
13
- import {
14
- makeRenderPlaceholderFunction
15
- } from "./chunk-3QJOFG3V.mjs";
5
+ clearAutocompletionsFromEditor
6
+ } from "./chunk-GQN2HYFJ.mjs";
16
7
  import {
17
- TrackerTextEditedSinceLastCursorMovement
18
- } from "./chunk-JLOABKLH.mjs";
8
+ useCopilotTextareaEditor
9
+ } from "./chunk-DRV2FOHZ.mjs";
19
10
  import {
20
- useAddBrandingCss
21
- } from "./chunk-7LSRNPNI.mjs";
11
+ usePopulateCopilotTextareaRef
12
+ } from "./chunk-QJNFNPWH.mjs";
22
13
  import {
23
- HoveringEditorProvider,
24
- useHoveringEditorContext
25
- } from "./chunk-LYB4B6MK.mjs";
14
+ replaceEditorText
15
+ } from "./chunk-5UNJXFUO.mjs";
26
16
  import {
27
17
  defaultBaseAutosuggestionsConfig
28
18
  } from "./chunk-F6RLSVG3.mjs";
@@ -30,18 +20,28 @@ import {
30
20
  useAutosuggestions
31
21
  } from "./chunk-23Q6A46J.mjs";
32
22
  import {
33
- useCopilotTextareaEditor
34
- } from "./chunk-DRV2FOHZ.mjs";
23
+ useAddBrandingCss
24
+ } from "./chunk-7LSRNPNI.mjs";
35
25
  import {
36
- usePopulateCopilotTextareaRef
37
- } from "./chunk-QJNFNPWH.mjs";
26
+ HoveringToolbar
27
+ } from "./chunk-KCIN3PNZ.mjs";
38
28
  import {
39
- replaceEditorText
40
- } from "./chunk-5UNJXFUO.mjs";
29
+ HoveringEditorProvider,
30
+ useHoveringEditorContext
31
+ } from "./chunk-LYB4B6MK.mjs";
41
32
  import {
42
33
  getFullEditorTextWithNewlines,
43
34
  getTextAroundCollapsedCursor
44
35
  } from "./chunk-ECR45NSD.mjs";
36
+ import {
37
+ makeRenderElementFunction
38
+ } from "./chunk-F2ULK22F.mjs";
39
+ import {
40
+ makeRenderPlaceholderFunction
41
+ } from "./chunk-3QJOFG3V.mjs";
42
+ import {
43
+ TrackerTextEditedSinceLastCursorMovement
44
+ } from "./chunk-JLOABKLH.mjs";
45
45
  import {
46
46
  __objRest,
47
47
  __spreadProps,
@@ -266,4 +266,4 @@ function makeSemiFakeReactTextAreaEvent(currentText) {
266
266
  export {
267
267
  BaseCopilotTextarea
268
268
  };
269
- //# sourceMappingURL=chunk-5NZNJCP2.mjs.map
269
+ //# sourceMappingURL=chunk-2A6Y4S2B.mjs.map
@@ -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,13 +1,13 @@
1
1
  import {
2
2
  HoveringInsertionPromptBox
3
- } from "./chunk-66KFI242.mjs";
3
+ } from "./chunk-MGB3JHMS.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-KCIN3PNZ.mjs.map
@@ -0,0 +1,60 @@
1
+ import {
2
+ useMakeStandardAutosuggestionFunction
3
+ } from "./chunk-ZQSEYPNN.mjs";
4
+ import {
5
+ useMakeStandardInsertionOrEditingFunction
6
+ } from "./chunk-DL3JWL2E.mjs";
7
+ import {
8
+ defaultAutosuggestionsConfig
9
+ } from "./chunk-4ECCCOFV.mjs";
10
+ import {
11
+ BaseCopilotTextarea
12
+ } from "./chunk-2A6Y4S2B.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-KEFTLEWR.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":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HoveringInsertionPromptBoxCore
3
- } from "./chunk-4VCJHANC.mjs";
3
+ } from "./chunk-UC2ZAAK4.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-MGB3JHMS.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-MMVDU6DF.mjs.map
@@ -1,9 +1,9 @@
1
+ import {
2
+ use_autosize_textarea_default
3
+ } from "./chunk-NAFNY4FL.mjs";
1
4
  import {
2
5
  IncludedFilesPreview
3
6
  } from "./chunk-KMVGEY7Q.mjs";
4
- import {
5
- SourceSearchBox
6
- } from "./chunk-WGWQRALG.mjs";
7
7
  import {
8
8
  Button
9
9
  } from "./chunk-4PDYALMP.mjs";
@@ -11,14 +11,14 @@ import {
11
11
  Label
12
12
  } from "./chunk-D47EKHIF.mjs";
13
13
  import {
14
- use_autosize_textarea_default
15
- } from "./chunk-NAFNY4FL.mjs";
14
+ streamPromiseFlatten
15
+ } from "./chunk-2QDCE7PD.mjs";
16
+ import {
17
+ SourceSearchBox
18
+ } from "./chunk-WGWQRALG.mjs";
16
19
  import {
17
20
  useHoveringEditorContext
18
21
  } from "./chunk-LYB4B6MK.mjs";
19
- import {
20
- streamPromiseFlatten
21
- } from "./chunk-2QDCE7PD.mjs";
22
22
  import {
23
23
  __async
24
24
  } from "./chunk-MRXNTQOX.mjs";
@@ -223,4 +223,4 @@ var HoveringInsertionPromptBoxCore = ({
223
223
  export {
224
224
  HoveringInsertionPromptBoxCore
225
225
  };
226
- //# sourceMappingURL=chunk-4VCJHANC.mjs.map
226
+ //# sourceMappingURL=chunk-UC2ZAAK4.mjs.map
@@ -1,38 +1,38 @@
1
1
  import {
2
2
  BaseCopilotTextarea
3
- } from "../../chunk-5NZNJCP2.mjs";
3
+ } from "../../chunk-2A6Y4S2B.mjs";
4
+ import "../../chunk-2C7O2EVM.mjs";
4
5
  import "../../chunk-GQN2HYFJ.mjs";
5
- import "../../chunk-7VADGLV2.mjs";
6
+ import "../../chunk-DRV2FOHZ.mjs";
7
+ import "../../chunk-4NHVQZ67.mjs";
8
+ import "../../chunk-QJNFNPWH.mjs";
9
+ import "../../chunk-5UNJXFUO.mjs";
10
+ import "../../chunk-WJHSY5T6.mjs";
11
+ import "../../chunk-F6RLSVG3.mjs";
12
+ import "../../chunk-23Q6A46J.mjs";
13
+ import "../../chunk-AJ5OMEXM.mjs";
14
+ import "../../chunk-7LSRNPNI.mjs";
15
+ import "../../chunk-KCIN3PNZ.mjs";
6
16
  import "../../chunk-L7VVZH4Q.mjs";
7
- import "../../chunk-66KFI242.mjs";
8
- import "../../chunk-4VCJHANC.mjs";
17
+ import "../../chunk-MGB3JHMS.mjs";
18
+ import "../../chunk-UC2ZAAK4.mjs";
19
+ import "../../chunk-NAFNY4FL.mjs";
9
20
  import "../../chunk-KMVGEY7Q.mjs";
10
- import "../../chunk-2IWVZ4PP.mjs";
11
- import "../../chunk-WGWQRALG.mjs";
12
21
  import "../../chunk-4PDYALMP.mjs";
22
+ import "../../chunk-D47EKHIF.mjs";
23
+ import "../../chunk-2QDCE7PD.mjs";
24
+ import "../../chunk-WGWQRALG.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-YLFAIYRY.mjs";
28
+ import "../../chunk-LYB4B6MK.mjs";
29
+ import "../../chunk-2IWVZ4PP.mjs";
30
+ import "../../chunk-DFTV4TST.mjs";
31
+ import "../../chunk-ECR45NSD.mjs";
18
32
  import "../../chunk-F2ULK22F.mjs";
19
33
  import "../../chunk-3QJOFG3V.mjs";
20
34
  import "../../chunk-JLOABKLH.mjs";
21
- 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
- import "../../chunk-DFTV4TST.mjs";
34
35
  import "../../chunk-T6MTDQZ7.mjs";
35
- import "../../chunk-ECR45NSD.mjs";
36
36
  import "../../chunk-MRXNTQOX.mjs";
37
37
  export {
38
38
  BaseCopilotTextarea
@@ -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-KEFTLEWR.mjs";
4
+ import "../../chunk-ZQSEYPNN.mjs";
5
+ import "../../chunk-DL3JWL2E.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-KNQIEOFP.mjs";
12
+ import "../../chunk-2A6Y4S2B.mjs";
13
+ import "../../chunk-2C7O2EVM.mjs";
17
14
  import "../../chunk-GQN2HYFJ.mjs";
18
- import "../../chunk-7VADGLV2.mjs";
15
+ import "../../chunk-DRV2FOHZ.mjs";
16
+ import "../../chunk-4NHVQZ67.mjs";
17
+ import "../../chunk-QJNFNPWH.mjs";
18
+ import "../../chunk-5UNJXFUO.mjs";
19
+ import "../../chunk-WJHSY5T6.mjs";
20
+ import "../../chunk-F6RLSVG3.mjs";
21
+ import "../../chunk-23Q6A46J.mjs";
22
+ import "../../chunk-AJ5OMEXM.mjs";
23
+ import "../../chunk-7LSRNPNI.mjs";
24
+ import "../../chunk-KCIN3PNZ.mjs";
19
25
  import "../../chunk-L7VVZH4Q.mjs";
20
- import "../../chunk-66KFI242.mjs";
21
- import "../../chunk-4VCJHANC.mjs";
26
+ import "../../chunk-MGB3JHMS.mjs";
27
+ import "../../chunk-UC2ZAAK4.mjs";
28
+ import "../../chunk-NAFNY4FL.mjs";
22
29
  import "../../chunk-KMVGEY7Q.mjs";
23
- import "../../chunk-2IWVZ4PP.mjs";
24
- import "../../chunk-WGWQRALG.mjs";
25
30
  import "../../chunk-4PDYALMP.mjs";
31
+ import "../../chunk-D47EKHIF.mjs";
32
+ import "../../chunk-2QDCE7PD.mjs";
33
+ import "../../chunk-WGWQRALG.mjs";
26
34
  import "../../chunk-VSVQZUPW.mjs";
27
35
  import "../../chunk-I72DKFHD.mjs";
28
- import "../../chunk-D47EKHIF.mjs";
29
- import "../../chunk-2C7O2EVM.mjs";
30
- import "../../chunk-NAFNY4FL.mjs";
36
+ import "../../chunk-YLFAIYRY.mjs";
37
+ import "../../chunk-LYB4B6MK.mjs";
38
+ import "../../chunk-2IWVZ4PP.mjs";
39
+ import "../../chunk-DFTV4TST.mjs";
40
+ import "../../chunk-ECR45NSD.mjs";
31
41
  import "../../chunk-F2ULK22F.mjs";
32
42
  import "../../chunk-3QJOFG3V.mjs";
33
43
  import "../../chunk-JLOABKLH.mjs";
34
- 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
- import "../../chunk-DFTV4TST.mjs";
47
44
  import "../../chunk-T6MTDQZ7.mjs";
48
- import "../../chunk-ECR45NSD.mjs";
49
- 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,20 +1,20 @@
1
1
  import {
2
2
  HoveringToolbar
3
- } from "../../chunk-7VADGLV2.mjs";
3
+ } from "../../chunk-KCIN3PNZ.mjs";
4
4
  import "../../chunk-L7VVZH4Q.mjs";
5
- import "../../chunk-66KFI242.mjs";
6
- import "../../chunk-4VCJHANC.mjs";
5
+ import "../../chunk-MGB3JHMS.mjs";
6
+ import "../../chunk-UC2ZAAK4.mjs";
7
+ import "../../chunk-NAFNY4FL.mjs";
7
8
  import "../../chunk-KMVGEY7Q.mjs";
8
- import "../../chunk-2IWVZ4PP.mjs";
9
- import "../../chunk-WGWQRALG.mjs";
10
9
  import "../../chunk-4PDYALMP.mjs";
11
- import "../../chunk-VSVQZUPW.mjs";
12
- import "../../chunk-I72DKFHD.mjs";
13
10
  import "../../chunk-D47EKHIF.mjs";
14
- import "../../chunk-NAFNY4FL.mjs";
15
- import "../../chunk-LYB4B6MK.mjs";
16
11
  import "../../chunk-2QDCE7PD.mjs";
12
+ import "../../chunk-WGWQRALG.mjs";
13
+ import "../../chunk-VSVQZUPW.mjs";
14
+ import "../../chunk-I72DKFHD.mjs";
17
15
  import "../../chunk-YLFAIYRY.mjs";
16
+ import "../../chunk-LYB4B6MK.mjs";
17
+ import "../../chunk-2IWVZ4PP.mjs";
18
18
  import "../../chunk-ECR45NSD.mjs";
19
19
  import "../../chunk-MRXNTQOX.mjs";
20
20
  export {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  HoveringInsertionPromptBoxCore
3
- } from "../../../chunk-4VCJHANC.mjs";
3
+ } from "../../../chunk-UC2ZAAK4.mjs";
4
+ import "../../../chunk-NAFNY4FL.mjs";
4
5
  import "../../../chunk-KMVGEY7Q.mjs";
5
- import "../../../chunk-WGWQRALG.mjs";
6
6
  import "../../../chunk-4PDYALMP.mjs";
7
- import "../../../chunk-VSVQZUPW.mjs";
8
- import "../../../chunk-I72DKFHD.mjs";
9
7
  import "../../../chunk-D47EKHIF.mjs";
10
- import "../../../chunk-NAFNY4FL.mjs";
11
- import "../../../chunk-LYB4B6MK.mjs";
12
8
  import "../../../chunk-2QDCE7PD.mjs";
9
+ import "../../../chunk-WGWQRALG.mjs";
10
+ import "../../../chunk-VSVQZUPW.mjs";
11
+ import "../../../chunk-I72DKFHD.mjs";
13
12
  import "../../../chunk-YLFAIYRY.mjs";
13
+ import "../../../chunk-LYB4B6MK.mjs";
14
14
  import "../../../chunk-MRXNTQOX.mjs";
15
15
  export {
16
16
  HoveringInsertionPromptBoxCore
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  HoveringInsertionPromptBox
3
- } from "../../../chunk-66KFI242.mjs";
4
- import "../../../chunk-4VCJHANC.mjs";
3
+ } from "../../../chunk-MGB3JHMS.mjs";
4
+ import "../../../chunk-UC2ZAAK4.mjs";
5
+ import "../../../chunk-NAFNY4FL.mjs";
5
6
  import "../../../chunk-KMVGEY7Q.mjs";
6
- import "../../../chunk-WGWQRALG.mjs";
7
7
  import "../../../chunk-4PDYALMP.mjs";
8
- import "../../../chunk-VSVQZUPW.mjs";
9
- import "../../../chunk-I72DKFHD.mjs";
10
8
  import "../../../chunk-D47EKHIF.mjs";
11
- import "../../../chunk-NAFNY4FL.mjs";
12
- import "../../../chunk-LYB4B6MK.mjs";
13
9
  import "../../../chunk-2QDCE7PD.mjs";
10
+ import "../../../chunk-WGWQRALG.mjs";
11
+ import "../../../chunk-VSVQZUPW.mjs";
12
+ import "../../../chunk-I72DKFHD.mjs";
14
13
  import "../../../chunk-YLFAIYRY.mjs";
14
+ import "../../../chunk-LYB4B6MK.mjs";
15
15
  import "../../../chunk-MRXNTQOX.mjs";
16
16
  export {
17
17
  HoveringInsertionPromptBox
@@ -1,18 +1,18 @@
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-MGB3JHMS.mjs";
5
+ import "../../../chunk-UC2ZAAK4.mjs";
6
+ import "../../../chunk-NAFNY4FL.mjs";
6
7
  import "../../../chunk-KMVGEY7Q.mjs";
7
- import "../../../chunk-WGWQRALG.mjs";
8
8
  import "../../../chunk-4PDYALMP.mjs";
9
- import "../../../chunk-VSVQZUPW.mjs";
10
- import "../../../chunk-I72DKFHD.mjs";
11
9
  import "../../../chunk-D47EKHIF.mjs";
12
- import "../../../chunk-NAFNY4FL.mjs";
13
- import "../../../chunk-LYB4B6MK.mjs";
14
10
  import "../../../chunk-2QDCE7PD.mjs";
11
+ import "../../../chunk-WGWQRALG.mjs";
12
+ import "../../../chunk-VSVQZUPW.mjs";
13
+ import "../../../chunk-I72DKFHD.mjs";
15
14
  import "../../../chunk-YLFAIYRY.mjs";
15
+ import "../../../chunk-LYB4B6MK.mjs";
16
16
  import "../../../chunk-MRXNTQOX.mjs";
17
17
  export {
18
18
  HoveringInsertionPromptBox
@@ -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';