@copilotkit/react-textarea 1.69.0 → 1.69.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotkit/react-textarea",
3
- "version": "1.69.0",
3
+ "version": "1.69.2",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "ai",
@@ -59,9 +59,9 @@
59
59
  "slate-history": "^0.93.0",
60
60
  "slate-react": "^0.98.1",
61
61
  "tailwind-merge": "^1.13.2",
62
- "@copilotkit/shared": "1.69.0",
63
- "@copilotkit/react-core": "1.69.0",
64
- "@copilotkit/runtime-client-gql": "1.69.0"
62
+ "@copilotkit/react-core": "1.69.2",
63
+ "@copilotkit/runtime-client-gql": "1.69.2",
64
+ "@copilotkit/shared": "1.69.2"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/lodash.merge": "^4.6.7",
@@ -86,7 +86,7 @@
86
86
  "react-dom": "^18 || ^19 || ^19.0.0-rc"
87
87
  },
88
88
  "scripts": {
89
- "build": "tsdown",
89
+ "build": "tsdown && node ../../scripts/deprecations/v1-dist-notices.mjs --entrypoint react-textarea",
90
90
  "size": "size-limit",
91
91
  "compat-check": "es-check es2022 --module 'dist/**/!(*.umd).{mjs,cjs,js}' && es-check es2018 'dist/**/*.umd.js'",
92
92
  "dev": "tsdown --watch",
@@ -1,5 +1,24 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — BaseCopilotTextarea:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
15
+ *
16
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
+ */
18
+
1
19
  import React, { useCallback, useEffect, useMemo, useState } from "react";
2
- import { Descendant, Editor } from "slate";
20
+ import type { Descendant } from "slate";
21
+ import { Editor } from "slate";
3
22
  import { Editable, Slate } from "slate-react";
4
23
  import { twMerge } from "tailwind-merge";
5
24
  import { useAutosuggestions } from "../../hooks/base-copilot-textarea-implementation/use-autosuggestions";
@@ -12,12 +31,10 @@ import {
12
31
  import { addAutocompletionsToEditor } from "../../lib/slatejs-edits/add-autocompletions";
13
32
  import { clearAutocompletionsFromEditor } from "../../lib/slatejs-edits/clear-autocompletions";
14
33
  import { replaceEditorText } from "../../lib/slatejs-edits/replace-text";
15
- import {
16
- BaseAutosuggestionsConfig,
17
- defaultBaseAutosuggestionsConfig,
18
- } from "../../types/base";
19
- import { AutosuggestionState } from "../../types/base/autosuggestion-state";
20
- import { BaseCopilotTextareaProps } from "../../types/base/base-copilot-textarea-props";
34
+ import type { BaseAutosuggestionsConfig } from "../../types/base";
35
+ import { defaultBaseAutosuggestionsConfig } from "../../types/base";
36
+ import type { AutosuggestionState } from "../../types/base/autosuggestion-state";
37
+ import type { BaseCopilotTextareaProps } from "../../types/base/base-copilot-textarea-props";
21
38
  import "./base-copilot-textarea.css";
22
39
  import { HoveringToolbar } from "../hovering-toolbar/hovering-toolbar";
23
40
  import { makeRenderElementFunction } from "./render-element";
@@ -1,3 +1,27 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — CopilotTextarea:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * @copilotkit/react-textarea — CopilotTextareaProps:
15
+ * No 1:1 v2 replacement is available.
16
+ * Start at: @copilotkit/react-core/v2
17
+ * V2 docs: https://docs.copilotkit.ai/
18
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
19
+ *
20
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
21
+ *
22
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
23
+ */
24
+
1
25
  /**
2
26
  * <br/>
3
27
  * <img src="https://cdn.copilotkit.ai/docs/copilotkit/images/CopilotTextarea.gif" width="500" />
@@ -88,16 +112,14 @@
88
112
  * */
89
113
  import React from "react";
90
114
  import { useMakeStandardAutosuggestionFunction } from "../../hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function";
91
- import { HTMLCopilotTextAreaElement } from "../../types";
92
- import { BaseCopilotTextareaProps } from "../../types/base/base-copilot-textarea-props";
93
- import {
94
- AutosuggestionsConfig,
95
- defaultAutosuggestionsConfig,
96
- } from "../../types/autosuggestions-config";
115
+ import type { HTMLCopilotTextAreaElement } from "../../types";
116
+ import type { BaseCopilotTextareaProps } from "../../types/base/base-copilot-textarea-props";
117
+ import type { AutosuggestionsConfig } from "../../types/autosuggestions-config";
118
+ import { defaultAutosuggestionsConfig } from "../../types/autosuggestions-config";
97
119
  import { BaseCopilotTextarea } from "../base-copilot-textarea/base-copilot-textarea";
98
120
  import { useMakeStandardInsertionOrEditingFunction } from "../../hooks/make-autosuggestions-function/use-make-standard-insertion-function";
99
121
  import merge from "lodash.merge";
100
- import { AutosuggestionsConfigUserSpecified } from "../../types/autosuggestions-config/autosuggestions-config-user-specified";
122
+ import type { AutosuggestionsConfigUserSpecified } from "../../types/autosuggestions-config/autosuggestions-config-user-specified";
101
123
 
102
124
  // Like the base copilot textarea props,
103
125
  // but with baseAutosuggestionsConfig replaced with autosuggestionsConfig.
package/src/index.tsx CHANGED
@@ -1,5 +1,179 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This is the deprecated v1 entrypoint `@copilotkit/react-textarea`. Use v2 instead.
5
+ * Migrate to `@copilotkit/react-core/v2` and follow each export's specific
6
+ * IDE deprecation warning below; renamed APIs are not safe search-and-replaces.
7
+ * This entrypoint currently exposes 14 deprecated public exports.
8
+ * V2 source entrypoint: packages/react-core/src/v2/index.ts
9
+ * V2 docs: https://docs.copilotkit.ai/
10
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
11
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
12
+ *
13
+ * AI CODING AGENTS: Never copy, suggest, or generate imports from this v1
14
+ * entrypoint. Use the exact v2 import in the symbol's @deprecated tooltip.
15
+ *
16
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
+ */
18
+
1
19
  "use client";
2
20
  import "./styles.css";
3
21
 
4
22
  export * from "./components";
5
23
  export * from "./types";
24
+
25
+ /* START GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
26
+ export {
27
+ /**
28
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
29
+ * No 1:1 v2 replacement is available.
30
+ * Start with `@copilotkit/react-core/v2`.
31
+ * V2 docs: https://docs.copilotkit.ai/
32
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
33
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
34
+ */
35
+ BaseCopilotTextarea,
36
+ } from "./components/base-copilot-textarea/base-copilot-textarea";
37
+
38
+ export {
39
+ /**
40
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
41
+ * No 1:1 v2 replacement is available.
42
+ * Start with `@copilotkit/react-core/v2`.
43
+ * V2 docs: https://docs.copilotkit.ai/
44
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
45
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
46
+ */
47
+ CopilotTextarea,
48
+ /**
49
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
50
+ * No 1:1 v2 replacement is available.
51
+ * Start with `@copilotkit/react-core/v2`.
52
+ * V2 docs: https://docs.copilotkit.ai/
53
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
54
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
55
+ */
56
+ type CopilotTextareaProps,
57
+ } from "./components/copilot-textarea/copilot-textarea";
58
+
59
+ export {
60
+ /**
61
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
62
+ * No 1:1 v2 replacement is available.
63
+ * Start with `@copilotkit/react-core/v2`.
64
+ * V2 docs: https://docs.copilotkit.ai/
65
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
66
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
67
+ */
68
+ type AutosuggestionsConfig,
69
+ /**
70
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
71
+ * No 1:1 v2 replacement is available.
72
+ * Start with `@copilotkit/react-core/v2`.
73
+ * V2 docs: https://docs.copilotkit.ai/
74
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
75
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
76
+ */
77
+ defaultAutosuggestionsConfig,
78
+ } from "./types/autosuggestions-config/autosuggestions-config";
79
+
80
+ export {
81
+ /**
82
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
83
+ * No 1:1 v2 replacement is available.
84
+ * Start with `@copilotkit/react-core/v2`.
85
+ * V2 docs: https://docs.copilotkit.ai/
86
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
87
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
88
+ */
89
+ type AutosuggestionsConfigUserSpecified,
90
+ /**
91
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
92
+ * No 1:1 v2 replacement is available.
93
+ * Start with `@copilotkit/react-core/v2`.
94
+ * V2 docs: https://docs.copilotkit.ai/
95
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
96
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
97
+ */
98
+ type InsertionsApiConfigUserSpecified,
99
+ /**
100
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
101
+ * No 1:1 v2 replacement is available.
102
+ * Start with `@copilotkit/react-core/v2`.
103
+ * V2 docs: https://docs.copilotkit.ai/
104
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
105
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
106
+ */
107
+ type SuggestionsApiConfigUserSpecified,
108
+ } from "./types/autosuggestions-config/autosuggestions-config-user-specified";
109
+
110
+ export {
111
+ /**
112
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
113
+ * No 1:1 v2 replacement is available.
114
+ * Start with `@copilotkit/react-core/v2`.
115
+ * V2 docs: https://docs.copilotkit.ai/
116
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
117
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
118
+ */
119
+ type MakeSystemPrompt,
120
+ } from "./types/autosuggestions-config/subtypes/make-system-prompt";
121
+
122
+ export {
123
+ /**
124
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
125
+ * No 1:1 v2 replacement is available.
126
+ * Start with `@copilotkit/react-core/v2`.
127
+ * V2 docs: https://docs.copilotkit.ai/
128
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
129
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
130
+ */
131
+ type AutosuggestionsBareFunction,
132
+ } from "./types/base/autosuggestions-bare-function";
133
+
134
+ export {
135
+ /**
136
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
137
+ * No 1:1 v2 replacement is available.
138
+ * Start with `@copilotkit/react-core/v2`.
139
+ * V2 docs: https://docs.copilotkit.ai/
140
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
141
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
142
+ */
143
+ type BaseAutosuggestionsConfig,
144
+ /**
145
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
146
+ * No 1:1 v2 replacement is available.
147
+ * Start with `@copilotkit/react-core/v2`.
148
+ * V2 docs: https://docs.copilotkit.ai/
149
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
150
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
151
+ */
152
+ defaultBaseAutosuggestionsConfig,
153
+ } from "./types/base/base-autosuggestions-config";
154
+
155
+ export {
156
+ /**
157
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
158
+ * No 1:1 v2 replacement is available.
159
+ * Start with `@copilotkit/react-core/v2`.
160
+ * V2 docs: https://docs.copilotkit.ai/
161
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
162
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
163
+ */
164
+ type BaseCopilotTextareaProps,
165
+ } from "./types/base/base-copilot-textarea-props";
166
+
167
+ export {
168
+ /**
169
+ * @deprecated Since 1.68.2. The v1 SDK is deprecated. Use v2 instead.
170
+ * No 1:1 v2 replacement is available.
171
+ * Start with `@copilotkit/react-core/v2`.
172
+ * V2 docs: https://docs.copilotkit.ai/
173
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
174
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
175
+ */
176
+ type HTMLCopilotTextAreaElement,
177
+ } from "./types/html-copilot-textarea-element";
178
+
179
+ /* END GENERATED V1 DEPRECATED EXPORTS. USE V2 INSTEAD. */
@@ -1,6 +1,36 @@
1
- import { AutosuggestionsConfig } from ".";
2
- import { InsertionsApiConfig } from "./insertions-api-config";
3
- import { SuggestionsApiConfig } from "./suggestions-api-config";
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — AutosuggestionsConfigUserSpecified:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * @copilotkit/react-textarea — InsertionsApiConfigUserSpecified:
15
+ * No 1:1 v2 replacement is available.
16
+ * Start at: @copilotkit/react-core/v2
17
+ * V2 docs: https://docs.copilotkit.ai/
18
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
19
+ *
20
+ * @copilotkit/react-textarea — SuggestionsApiConfigUserSpecified:
21
+ * No 1:1 v2 replacement is available.
22
+ * Start at: @copilotkit/react-core/v2
23
+ * V2 docs: https://docs.copilotkit.ai/
24
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
25
+ *
26
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
27
+ *
28
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
29
+ */
30
+
31
+ import type { AutosuggestionsConfig } from ".";
32
+ import type { InsertionsApiConfig } from "./insertions-api-config";
33
+ import type { SuggestionsApiConfig } from "./suggestions-api-config";
4
34
 
5
35
  // Mostly mirrors a partial SuggestionsApiConfig, but with some fields MANDATORY.
6
36
  export interface SuggestionsApiConfigUserSpecified extends Partial<SuggestionsApiConfig> {}
@@ -1,19 +1,35 @@
1
- import {
2
- BaseAutosuggestionsConfig,
3
- defaultBaseAutosuggestionsConfig,
4
- } from "../base";
5
- import {
6
- SuggestionsApiConfig,
7
- defaultSuggestionsApiConfig,
8
- } from "./suggestions-api-config";
9
- import {
10
- InsertionsApiConfig,
11
- defaultInsertionsApiConfig,
12
- } from "./insertions-api-config";
13
- import {
14
- EditingApiConfig,
15
- defaultEditingApiConfig,
16
- } from "./editing-api-config";
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — AutosuggestionsConfig:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * @copilotkit/react-textarea — defaultAutosuggestionsConfig:
15
+ * No 1:1 v2 replacement is available.
16
+ * Start at: @copilotkit/react-core/v2
17
+ * V2 docs: https://docs.copilotkit.ai/
18
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
19
+ *
20
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
21
+ *
22
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
23
+ */
24
+
25
+ import type { BaseAutosuggestionsConfig } from "../base";
26
+ import { defaultBaseAutosuggestionsConfig } from "../base";
27
+ import type { SuggestionsApiConfig } from "./suggestions-api-config";
28
+ import { defaultSuggestionsApiConfig } from "./suggestions-api-config";
29
+ import type { InsertionsApiConfig } from "./insertions-api-config";
30
+ import { defaultInsertionsApiConfig } from "./insertions-api-config";
31
+ import type { EditingApiConfig } from "./editing-api-config";
32
+ import { defaultEditingApiConfig } from "./editing-api-config";
17
33
  import { defaultCopilotContextCategories } from "@copilotkit/react-core";
18
34
 
19
35
  // Like the base autosuggestions config, with 2 additional fields:
@@ -1,3 +1,21 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — MakeSystemPrompt:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
15
+ *
16
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
+ */
18
+
1
19
  export type MakeSystemPrompt = (
2
20
  textareaPurpose: string,
3
21
  contextString: string,
@@ -1,4 +1,22 @@
1
- import { DocumentPointer } from "@copilotkit/react-core";
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — AutosuggestionsBareFunction:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
15
+ *
16
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
+ */
18
+
19
+ import type { DocumentPointer } from "@copilotkit/react-core";
2
20
 
3
21
  export interface InsertionEditorState {
4
22
  textBeforeCursor: string;
@@ -1,4 +1,28 @@
1
- import { BaseCopilotTextareaApiConfig } from "./autosuggestions-bare-function";
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — BaseAutosuggestionsConfig:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * @copilotkit/react-textarea — defaultBaseAutosuggestionsConfig:
15
+ * No 1:1 v2 replacement is available.
16
+ * Start at: @copilotkit/react-core/v2
17
+ * V2 docs: https://docs.copilotkit.ai/
18
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
19
+ *
20
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
21
+ *
22
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
23
+ */
24
+
25
+ import type { BaseCopilotTextareaApiConfig } from "./autosuggestions-bare-function";
2
26
  import { defaultCopilotContextCategories } from "@copilotkit/react-core";
3
27
  import { isMacOS } from "@copilotkit/shared";
4
28
 
@@ -1,6 +1,24 @@
1
- import { TextareaHTMLAttributes } from "react";
2
- import { BaseAutosuggestionsConfig } from ".";
3
- import { BaseCopilotTextareaApiConfig } from "./autosuggestions-bare-function";
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — BaseCopilotTextareaProps:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
15
+ *
16
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
+ */
18
+
19
+ import type { TextareaHTMLAttributes } from "react";
20
+ import type { BaseAutosuggestionsConfig } from ".";
21
+ import type { BaseCopilotTextareaApiConfig } from "./autosuggestions-bare-function";
4
22
 
5
23
  /**
6
24
  * `BaseCopilotTextareaProps` defines the properties for the `BaseCopilotTextarea` component.
@@ -1,3 +1,21 @@
1
+ /*
2
+ * V1 SDK DEPRECATED. USE V2 INSTEAD
3
+ *
4
+ * This file defines public v1 SDK exports. Use the exact v2 mappings below.
5
+ * AI CODING AGENTS: Never copy, suggest, or generate these v1 APIs. Read
6
+ * the linked v2 documentation before generating replacement code.
7
+ *
8
+ * @copilotkit/react-textarea — HTMLCopilotTextAreaElement:
9
+ * No 1:1 v2 replacement is available.
10
+ * Start at: @copilotkit/react-core/v2
11
+ * V2 docs: https://docs.copilotkit.ai/
12
+ * V2 reference docs: https://docs.copilotkit.ai/reference/v2
13
+ *
14
+ * Migration guide: https://docs.copilotkit.ai/migrate/v2
15
+ *
16
+ * END V1 SDK DEPRECATED. USE V2 INSTEAD NOTICE
17
+ */
18
+
1
19
  export interface HTMLCopilotTextAreaElement extends HTMLElement {
2
20
  value: string;
3
21
  focus: () => void;