@copilotkit/react-textarea 0.13.0 → 0.14.0

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @copilotkit/react-textarea@0.13.0 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-textarea
2
+ > @copilotkit/react-textarea@0.14.0 build /home/runner/work/CopilotKit/CopilotKit/CopilotKit/packages/react-textarea
3
3
  > tsup --treeshake
4
4
 
5
5
  CLI Building entry: src/index.tsx, src/components/index.ts, src/context/index.ts, src/hooks/index.ts, src/lib/debouncer.ts, src/lib/editor-to-text.ts, src/lib/get-text-around-cursor.ts, src/lib/utils.test.ts, src/lib/utils.ts, src/types/html-copilot-textarea-element.ts, src/types/index.ts, src/components/base-copilot-textarea/base-copilot-textarea.tsx, src/components/base-copilot-textarea/render-element.tsx, src/components/base-copilot-textarea/render-placeholder.tsx, src/components/base-copilot-textarea/use-add-branding-css.tsx, src/components/copilot-textarea/copilot-textarea.tsx, src/hooks/base-copilot-textarea-implementation/use-autosuggestions.ts, src/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.tsx, src/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.ts, src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx, src/lib/slatejs-edits/add-autocompletions.ts, src/lib/slatejs-edits/clear-autocompletions.ts, src/lib/slatejs-edits/replace-text.ts, src/lib/slatejs-edits/with-partial-history.ts, src/types/base/autosuggestion-state.ts, src/types/base/autosuggestions-bare-function.ts, src/types/base/base-autosuggestions-config.tsx, src/types/base/base-copilot-textarea-props.tsx, src/types/base/custom-editor.tsx, src/types/base/editor-autocomplete-state.ts, src/types/base/index.ts, src/types/standard-autosuggestions/autosuggestions-config.tsx, src/types/standard-autosuggestions/chatlike-api-endpoint.tsx, src/types/standard-autosuggestions/index.ts, src/types/standard-autosuggestions/minimal-chat-gpt-message.tsx
@@ -159,13 +159,13 @@ Generated an empty chunk: "chunk-H4VKQGVU".
159
159
  ESM dist/types/standard-autosuggestions/autosuggestions-config.mjs.map 51.00 B
160
160
  ESM dist/hooks/base-copilot-textarea-implementation/use-copilot-textarea-editor.mjs.map 51.00 B
161
161
  ESM dist/hooks/base-copilot-textarea-implementation/use-populate-copilot-textarea-ref.mjs.map 51.00 B
162
- ESM ⚡️ Build success in 4397ms
162
+ ESM ⚡️ Build success in 3617ms
163
163
  Export "AutosuggestionsConfig" of module "src/types/standard-autosuggestions/autosuggestions-config.tsx" was reexported through module "src/types/standard-autosuggestions/index.ts" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
164
164
  Either change the import in "src/components/copilot-textarea/copilot-textarea.tsx" to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.
165
165
  Export "MakeSystemPrompt" of module "src/types/standard-autosuggestions/autosuggestions-config.tsx" was reexported through module "src/types/standard-autosuggestions/index.ts" while both modules are dependencies of each other and will end up in different chunks by current Rollup settings. This scenario is not well supported at the moment as it will produce a circular dependency between chunks and will likely lead to broken execution order.
166
166
  Either change the import in "src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx" to point directly to the exporting module or do not use "preserveModules" to ensure these modules end up in the same chunk.
167
- DTS ⚡️ Build success in 7550ms
168
- DTS dist/index.d.ts 1.07 KB
167
+ DTS ⚡️ Build success in 6723ms
168
+ DTS dist/index.d.ts 1.01 KB
169
169
  DTS dist/components/base-copilot-textarea/base-copilot-textarea.d.ts 669.00 B
170
170
  DTS dist/components/copilot-textarea/copilot-textarea.d.ts 875.00 B
171
171
  DTS dist/types/base/base-autosuggestions-config.d.ts 355.00 B
@@ -184,7 +184,7 @@ Either change the import in "src/hooks/make-autosuggestions-function/use-make-st
184
184
  DTS dist/types/base/editor-autocomplete-state.d.ts 342.00 B
185
185
  DTS dist/lib/utils.test.d.ts 1.00 B
186
186
  DTS dist/lib/utils.d.ts 638.00 B
187
- DTS dist/types/index.d.ts 850.00 B
187
+ DTS dist/types/index.d.ts 786.00 B
188
188
  DTS dist/components/base-copilot-textarea/render-element.d.ts 292.00 B
189
189
  DTS dist/components/base-copilot-textarea/render-placeholder.d.ts 321.00 B
190
190
  DTS dist/components/base-copilot-textarea/use-add-branding-css.d.ts 158.00 B
@@ -199,4 +199,4 @@ Either change the import in "src/hooks/make-autosuggestions-function/use-make-st
199
199
  DTS dist/lib/slatejs-edits/replace-text.d.ts 139.00 B
200
200
  DTS dist/lib/slatejs-edits/with-partial-history.d.ts 542.00 B
201
201
  DTS dist/types/base/index.d.ts 287.00 B
202
- DTS dist/types/standard-autosuggestions/index.d.ts 441.00 B
202
+ DTS dist/types/standard-autosuggestions/index.d.ts 377.00 B
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ui
2
2
 
3
+ ## 0.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cfdc367: export ChatlikeApiEndpoint types in original name
8
+
3
9
  ## 0.13.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -6,5 +6,5 @@ export { BaseCopilotTextareaProps } from './types/base/base-copilot-textarea-pro
6
6
  export { HTMLCopilotTextAreaElement } from './types/html-copilot-textarea-element.js';
7
7
  export { AutosuggestionsConfig, MakeSystemPrompt, defaultAutosuggestionsConfig, defaultFewShotMessages, defaultMakeSystemPrompt } from './types/standard-autosuggestions/autosuggestions-config.js';
8
8
  export { MinimalChatGPTMessage } from './types/standard-autosuggestions/minimal-chat-gpt-message.js';
9
- export { ChatlikeApiEndpoint as GenericChatlikeApiEndpoint, ChatlikeApiEndpointImpl as GenericChatlikeApiEndpointImpl } from './types/standard-autosuggestions/chatlike-api-endpoint.js';
9
+ export { ChatlikeApiEndpoint, ChatlikeApiEndpointImpl } from './types/standard-autosuggestions/chatlike-api-endpoint.js';
10
10
  import 'react';
@@ -4,5 +4,5 @@ export { BaseCopilotTextareaProps } from './base/base-copilot-textarea-props.js'
4
4
  export { HTMLCopilotTextAreaElement } from './html-copilot-textarea-element.js';
5
5
  export { AutosuggestionsConfig, MakeSystemPrompt, defaultAutosuggestionsConfig, defaultFewShotMessages, defaultMakeSystemPrompt } from './standard-autosuggestions/autosuggestions-config.js';
6
6
  export { MinimalChatGPTMessage } from './standard-autosuggestions/minimal-chat-gpt-message.js';
7
- export { ChatlikeApiEndpoint as GenericChatlikeApiEndpoint, ChatlikeApiEndpointImpl as GenericChatlikeApiEndpointImpl } from './standard-autosuggestions/chatlike-api-endpoint.js';
7
+ export { ChatlikeApiEndpoint, ChatlikeApiEndpointImpl } from './standard-autosuggestions/chatlike-api-endpoint.js';
8
8
  import 'react';
@@ -1,4 +1,4 @@
1
1
  export { AutosuggestionsConfig, MakeSystemPrompt, defaultAutosuggestionsConfig, defaultFewShotMessages, defaultMakeSystemPrompt } from './autosuggestions-config.js';
2
2
  export { MinimalChatGPTMessage } from './minimal-chat-gpt-message.js';
3
- export { ChatlikeApiEndpoint as GenericChatlikeApiEndpoint, ChatlikeApiEndpointImpl as GenericChatlikeApiEndpointImpl } from './chatlike-api-endpoint.js';
3
+ export { ChatlikeApiEndpoint, ChatlikeApiEndpointImpl } from './chatlike-api-endpoint.js';
4
4
  import '../base/base-autosuggestions-config.js';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "0.13.0",
7
+ "version": "0.14.0",
8
8
  "sideEffects": [
9
9
  "**/*.css"
10
10
  ],
@@ -11,6 +11,6 @@ export type {
11
11
  export type { MinimalChatGPTMessage } from "./minimal-chat-gpt-message";
12
12
 
13
13
  export type {
14
- ChatlikeApiEndpoint as GenericChatlikeApiEndpoint,
15
- ChatlikeApiEndpointImpl as GenericChatlikeApiEndpointImpl,
14
+ ChatlikeApiEndpoint,
15
+ ChatlikeApiEndpointImpl,
16
16
  } from "./chatlike-api-endpoint";