@colletdev/docs 0.2.20 → 0.2.21

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/components.md +10 -2
  2. package/package.json +1 -1
package/components.md CHANGED
@@ -501,7 +501,7 @@ Import from `@colletdev/core/types`:
501
501
 
502
502
  Chat component.
503
503
 
504
- **Tag:** `<cx-chat>` | **Form:** no | **Slots:** header, footer | **Ref methods:** addMessage, scrollToBottom, clear, focus, addFiles, clearAttachments
504
+ **Tag:** `<cx-chat>` | **Form:** no | **Slots:** header, footer | **Ref methods:** addMessage, addUserMessage, addAssistantMessage, addGroupMessage, addActivity, scrollToBottom, clear, focus, addFiles, clearAttachments
505
505
 
506
506
  #### Import
507
507
 
@@ -553,7 +553,11 @@ Chat component.
553
553
 
554
554
  | Method | Description |
555
555
  |--------|-------------|
556
- | `addMessage(html: string): void` | Adds a pre-rendered message turn to the chat. |
556
+ | `addMessage(html: string): void` | Adds a pre-rendered HTML turn to the chat (low-level). Prefer addUserMessage/addAssistantMessage. |
557
+ | `addUserMessage(content: string, opts?: BubbleOptions): void` | Adds a user message. Renders via WASM automatically. |
558
+ | `addAssistantMessage(content: string, opts?: BubbleOptions): void` | Adds an assistant message. Renders via WASM automatically. |
559
+ | `addGroupMessage(role: "user" | "assistant", parts: GroupPart[], opts?: GroupOptions): void` | Adds a multi-part grouped message (text + code, etc.). |
560
+ | `addActivity(opts?: ActivityOptions): void` | Adds a tool activity group (search, read, write, etc.). |
557
561
  | `scrollToBottom()` | Scrolls the message area to the bottom. |
558
562
  | `clear()` | Clears all messages from the chat. |
559
563
  | `focus()` | Focuses the chat input textarea. |
@@ -564,11 +568,15 @@ Chat component.
564
568
 
565
569
  Import from `@colletdev/core/types`:
566
570
 
571
+ - `ActivityOptions`
572
+ - `BubbleOptions`
567
573
  - `ChatSubmitDetail`
568
574
  - `ChatTurn`
569
575
  - `FileAddDetail`
570
576
  - `FileRejectDetail`
571
577
  - `FileRemoveDetail`
578
+ - `GroupOptions`
579
+ - `GroupPart`
572
580
 
573
581
  ---
574
582
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colletdev/docs",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "Collet component library documentation — API reference, framework guides, and AI agent setup",
5
5
  "type": "module",
6
6
  "bin": {