@rodrigocoliveira/agno-react 2.1.0 → 2.1.1

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 (2) hide show
  1. package/README.md +34 -11
  2. package/package.json +3 -9
package/README.md CHANGED
@@ -265,24 +265,47 @@ The library ships with a complete set of pre-built UI components accessible via
265
265
 
266
266
  ### Peer Dependencies
267
267
 
268
- UI components rely on optional peer dependencies. Install only what you need:
268
+ The library ships UI as peer dependencies so your app controls the versions and avoids duplicate React instances. **Required** vs **optional** depends on which import path you use.
269
+
270
+ **If you only import from `@rodrigocoliveira/agno-react` (hooks-only, no UI):** zero peer deps beyond React itself.
271
+
272
+ **If you import anything from `@rodrigocoliveira/agno-react/ui`:** the following are required.
269
273
 
270
274
  ```bash
271
- # Core UI dependencies
272
- npm install @radix-ui/react-slot class-variance-authority clsx tailwind-merge lucide-react
275
+ # Required by /ui (used by <AgnoChat> / <Conversation> / <Response>)
276
+ npm install use-stick-to-bottom streamdown
277
+
278
+ # Core styling / variant utilities — required by every component in /ui
279
+ npm install class-variance-authority clsx tailwind-merge lucide-react
280
+ ```
273
281
 
274
- # For markdown rendering
275
- npm install shiki streamdown
282
+ **Per-feature optional peer deps** — install only the ones whose components you actually import:
276
283
 
277
- # For auto-scroll behavior
278
- npm install use-stick-to-bottom
284
+ | If you use… | Install |
285
+ | --- | --- |
286
+ | `<AgnoChat.Input>` with attachments / model select / command palette | `@radix-ui/react-slot @radix-ui/react-dropdown-menu cmdk` |
287
+ | `<Tooltip>` | `@radix-ui/react-tooltip` |
288
+ | `<Avatar>` | `@radix-ui/react-avatar` |
289
+ | `<Accordion>` | `@radix-ui/react-accordion` |
290
+ | `<Collapsible>` (used by `<Tool>` and tool debug card) | `@radix-ui/react-collapsible` |
291
+ | `<HoverCard>` | `@radix-ui/react-hover-card` |
292
+ | `<Select>` | `@radix-ui/react-select` |
293
+ | `<Dialog>` / `<AskUserQuestionModal>` patterns | `@radix-ui/react-dialog` |
294
+ | Code-block syntax highlighting in `<Response>` | `shiki` (auto-loaded by `streamdown` if installed) |
295
+ | `<BarChart>` / `<LineChart>` / `<AreaChart>` / `<PieChart>` | `recharts` |
279
296
 
280
- # For additional primitives (as needed)
281
- npm install @radix-ui/react-accordion @radix-ui/react-avatar @radix-ui/react-collapsible \
282
- @radix-ui/react-tooltip @radix-ui/react-dropdown-menu @radix-ui/react-hover-card \
283
- @radix-ui/react-select cmdk
297
+ **Quick install for "I want everything that ships in `/ui`":**
298
+
299
+ ```bash
300
+ npm install use-stick-to-bottom streamdown shiki recharts \
301
+ class-variance-authority clsx tailwind-merge lucide-react cmdk \
302
+ @radix-ui/react-accordion @radix-ui/react-avatar @radix-ui/react-collapsible \
303
+ @radix-ui/react-dialog @radix-ui/react-dropdown-menu @radix-ui/react-hover-card \
304
+ @radix-ui/react-select @radix-ui/react-slot @radix-ui/react-tooltip
284
305
  ```
285
306
 
307
+ > **Note:** `use-stick-to-bottom` and `streamdown` were marked `optional` in 2.1.0 and earlier, which prevented `npm install` from warning when they were missing — consumers using `/ui` would then hit a runtime "Could not resolve …" error. As of **2.1.1** they are required peer deps and `npm install` reports them up front.
308
+
286
309
  ### Import Path
287
310
 
288
311
  All UI components are imported from the `/ui` sub-path:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigocoliveira/agno-react",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "React hooks and pre-built UI components for Agno client",
5
5
  "author": "rodrigocoliveira",
6
6
  "license": "MIT",
@@ -46,8 +46,8 @@
46
46
  "typecheck": "tsc --noEmit"
47
47
  },
48
48
  "dependencies": {
49
- "@rodrigocoliveira/agno-client": "2.1.0",
50
- "@rodrigocoliveira/agno-types": "2.1.0"
49
+ "@rodrigocoliveira/agno-client": "2.1.1",
50
+ "@rodrigocoliveira/agno-types": "2.1.1"
51
51
  },
52
52
  "typesVersions": {
53
53
  "*": {
@@ -124,12 +124,6 @@
124
124
  "shiki": {
125
125
  "optional": true
126
126
  },
127
- "streamdown": {
128
- "optional": true
129
- },
130
- "use-stick-to-bottom": {
131
- "optional": true
132
- },
133
127
  "cmdk": {
134
128
  "optional": true
135
129
  },