@copilotkit/react-textarea 1.2.0 → 1.2.2-feat-runtime-remote-actions.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/components/copilot-textarea/copilot-textarea.d.mts +3 -3
  3. package/dist/components/copilot-textarea/copilot-textarea.d.ts +3 -3
  4. package/dist/components/copilot-textarea/copilot-textarea.js +3 -4
  5. package/dist/components/copilot-textarea/copilot-textarea.js.map +1 -1
  6. package/dist/components/copilot-textarea/copilot-textarea.mjs +5 -4
  7. package/dist/components/copilot-textarea/copilot-textarea.mjs.map +1 -1
  8. package/dist/components/index.js +3 -4
  9. package/dist/components/index.js.map +1 -1
  10. package/dist/components/index.mjs +5 -4
  11. package/dist/components/index.mjs.map +1 -1
  12. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js +1 -2
  13. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.js.map +1 -1
  14. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs +2 -2
  15. package/dist/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.mjs.map +1 -1
  16. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js +2 -2
  17. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.js.map +1 -1
  18. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs +3 -2
  19. package/dist/hooks/make-autosuggestions-function/use-make-standard-insertion-function.mjs.map +1 -1
  20. package/dist/index.js +3 -4
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +5 -4
  23. package/dist/index.mjs.map +1 -1
  24. package/package.json +7 -7
  25. package/src/components/copilot-textarea/copilot-textarea.tsx +3 -3
  26. package/src/hooks/make-autosuggestions-function/use-make-standard-autosuggestions-function.tsx +2 -2
  27. package/src/hooks/make-autosuggestions-function/use-make-standard-insertion-function.tsx +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,52 @@
1
1
  # ui
2
2
 
3
+ ## 1.2.2-feat-runtime-remote-actions.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Prerelease
8
+ - 0d54450: Include agent state
9
+ - 8d32e22: Show agent state in the chat window
10
+ - 5b63f55: stream intermediate state
11
+ - b6fd3d8: Better message grouping
12
+ - 89420c6: Rename hooks and bugfixes
13
+ - b6e8824: useCoAgent/useCoAgentAction
14
+ - 91c35b9: useAgentState
15
+ - 00be203: Remote actions preview
16
+ - fb15f72: Reduce request size by skipping intermediate state
17
+ - Updated dependencies
18
+ - Updated dependencies [0d54450]
19
+ - Updated dependencies [8d32e22]
20
+ - Updated dependencies [5b63f55]
21
+ - Updated dependencies [b6fd3d8]
22
+ - Updated dependencies [89420c6]
23
+ - Updated dependencies [b6e8824]
24
+ - Updated dependencies [91c35b9]
25
+ - Updated dependencies [00be203]
26
+ - Updated dependencies [fb15f72]
27
+ - @copilotkit/runtime-client-gql@1.2.2-feat-runtime-remote-actions.0
28
+ - @copilotkit/react-core@1.2.2-feat-runtime-remote-actions.0
29
+ - @copilotkit/shared@1.2.2-feat-runtime-remote-actions.0
30
+
31
+ ## 1.2.1
32
+
33
+ ### Patch Changes
34
+
35
+ - inject minified css in bundle
36
+
37
+ - removes the need to import `styles.css` manually
38
+ - empty `styles.css` included in the build for backwards compatibility
39
+ - uses tsup's `injectStyles` with `postcss` to bundle and minify the CSS, then inject it as a style tag
40
+ - currently uses my fork of `tsup` where I added support for async function in `injectStyles` (must-have for postcss), a PR from my fork to the main library will follow shortly
41
+ - remove material-ui, and use `react-icons` for icons (same icons as before)
42
+ - remove unused `IncludedFilesPreview` component
43
+ - updated docs
44
+
45
+ - Updated dependencies
46
+ - @copilotkit/react-core@1.2.1
47
+ - @copilotkit/runtime-client-gql@1.2.1
48
+ - @copilotkit/shared@1.2.1
49
+
3
50
  ## 1.2.0
4
51
 
5
52
  ### Minor Changes
@@ -40,10 +40,10 @@ import '../../types/autosuggestions-config/editing-api-config.mjs';
40
40
  *
41
41
  * ### Install Dependencies
42
42
  *
43
- * This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.
43
+ * This component is part of the [@copilotkit/react-textarea](https://npmjs.com/package/@copilotkit/react-textarea) package.
44
44
  *
45
- * ```shell npm2yarn \"@copilotkit/react-ui"\
46
- * npm install @copilotkit/react-core @copilotkit/react-ui
45
+ * ```shell npm2yarn \"@copilotkit/react-textarea"\
46
+ * npm install @copilotkit/react-core @copilotkit/react-textarea
47
47
  * ```
48
48
  *
49
49
  * ### Usage
@@ -40,10 +40,10 @@ import '../../types/autosuggestions-config/editing-api-config.js';
40
40
  *
41
41
  * ### Install Dependencies
42
42
  *
43
- * This component is part of the [@copilotkit/react-ui](https://npmjs.com/package/@copilotkit/react-ui) package.
43
+ * This component is part of the [@copilotkit/react-textarea](https://npmjs.com/package/@copilotkit/react-textarea) package.
44
44
  *
45
- * ```shell npm2yarn \"@copilotkit/react-ui"\
46
- * npm install @copilotkit/react-core @copilotkit/react-ui
45
+ * ```shell npm2yarn \"@copilotkit/react-textarea"\
46
+ * npm install @copilotkit/react-core @copilotkit/react-textarea
47
47
  * ```
48
48
  *
49
49
  * ### Usage
@@ -149,7 +149,7 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
149
149
  actions: [],
150
150
  url: window.location.href
151
151
  },
152
- messages: (0, import_runtime_client_gql.convertMessagesToGqlInput)(messages),
152
+ messages: (0, import_runtime_client_gql.convertMessagesToGqlInput)((0, import_runtime_client_gql.filterAgentStateMessages)(messages)),
153
153
  metadata: {
154
154
  requestType: import_runtime_client_gql.CopilotRequestType.TextareaCompletion
155
155
  },
@@ -170,7 +170,6 @@ function useMakeStandardAutosuggestionFunction(textareaPurpose, contextCategorie
170
170
  }
171
171
  if (message instanceof import_runtime_client_gql.TextMessage) {
172
172
  result += message.content;
173
- console.log(message.content);
174
173
  }
175
174
  }
176
175
  return result;
@@ -2108,7 +2107,7 @@ function useMakeStandardInsertionOrEditingFunction(textareaPurpose, contextCateg
2108
2107
  actions: [],
2109
2108
  url: window.location.href
2110
2109
  },
2111
- messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)(messages),
2110
+ messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)((0, import_runtime_client_gql5.filterAgentStateMessages)(messages)),
2112
2111
  metadata: {
2113
2112
  requestType: import_runtime_client_gql5.CopilotRequestType.TextareaCompletion
2114
2113
  }
@@ -2164,7 +2163,7 @@ function useMakeStandardInsertionOrEditingFunction(textareaPurpose, contextCateg
2164
2163
  actions: [],
2165
2164
  url: window.location.href
2166
2165
  },
2167
- messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)(messages),
2166
+ messages: (0, import_runtime_client_gql5.convertMessagesToGqlInput)((0, import_runtime_client_gql5.filterAgentStateMessages)(messages)),
2168
2167
  metadata: {
2169
2168
  requestType: import_runtime_client_gql5.CopilotRequestType.TextareaCompletion
2170
2169
  }