@colletdev/docs 0.2.19 → 0.2.20

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 +28 -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
504
+ **Tag:** `<cx-chat>` | **Form:** no | **Slots:** header, footer | **Ref methods:** addMessage, scrollToBottom, clear, focus, addFiles, clearAttachments
505
505
 
506
506
  #### Import
507
507
 
@@ -535,12 +535,19 @@ Chat component.
535
535
  | inputLabel | `string` | — | |
536
536
  | submitLabel | `string` | — | |
537
537
  | emptyState | `string` | — | |
538
+ | acceptFiles | `boolean` | `false` | |
539
+ | accept | `string` | — | |
540
+ | maxFileSize | `number` | `0` | |
541
+ | multipleFiles | `boolean` | `false` | |
538
542
 
539
543
  #### Events
540
544
 
541
545
  | Event | React | Vue | Detail |
542
546
  |-------|-------|-----|--------|
543
547
  | `cx-submit` | `onSubmit` | `@cx-submit` | `ChatSubmitDetail` |
548
+ | `cx-file-add` | `onFileAdd` | `@cx-file-add` | `FileAddDetail` |
549
+ | `cx-file-remove` | `onFileRemove` | `@cx-file-remove` | `FileRemoveDetail` |
550
+ | `cx-file-reject` | `onFileReject` | `@cx-file-reject` | `FileRejectDetail` |
544
551
 
545
552
  #### Ref Methods
546
553
 
@@ -550,6 +557,8 @@ Chat component.
550
557
  | `scrollToBottom()` | Scrolls the message area to the bottom. |
551
558
  | `clear()` | Clears all messages from the chat. |
552
559
  | `focus()` | Focuses the chat input textarea. |
560
+ | `addFiles(files: FileList): void` | Adds files programmatically to the chat input. |
561
+ | `clearAttachments()` | Removes all file attachments from the chat input. |
553
562
 
554
563
  #### Structured Types
555
564
 
@@ -557,6 +566,9 @@ Import from `@colletdev/core/types`:
557
566
 
558
567
  - `ChatSubmitDetail`
559
568
  - `ChatTurn`
569
+ - `FileAddDetail`
570
+ - `FileRejectDetail`
571
+ - `FileRemoveDetail`
560
572
 
561
573
  ---
562
574
 
@@ -564,7 +576,7 @@ Import from `@colletdev/core/types`:
564
576
 
565
577
  Multi-line text area optimized for chat message composition.
566
578
 
567
- **Tag:** `<cx-chat-input>` | **Form:** yes | **Ref methods:** focus
579
+ **Tag:** `<cx-chat-input>` | **Form:** yes | **Ref methods:** focus, addFiles, getAttachments, clearAttachments
568
580
 
569
581
  #### Import
570
582
 
@@ -592,6 +604,10 @@ Multi-line text area optimized for chat message composition.
592
604
  | label | `string` | — | |
593
605
  | maxLength | `number` | `0` | |
594
606
  | slotted | `boolean` | `false` | |
607
+ | acceptFiles | `boolean` | `false` | |
608
+ | accept | `string` | — | |
609
+ | maxFileSize | `number` | `0` | |
610
+ | multipleFiles | `boolean` | `false` | |
595
611
 
596
612
  #### Events
597
613
 
@@ -603,18 +619,28 @@ Multi-line text area optimized for chat message composition.
603
619
  | `cx-keyup` | `onKeyup` | `@cx-keyup` | `KeyboardDetail` |
604
620
  | `cx-submit` | `onSubmit` | `@cx-submit` | `ChatSubmitDetail` |
605
621
  | `cx-input` | `onInput` | `@cx-input` | `InputDetail` |
622
+ | `cx-file-add` | `onFileAdd` | `@cx-file-add` | `FileAddDetail` |
623
+ | `cx-file-remove` | `onFileRemove` | `@cx-file-remove` | `FileRemoveDetail` |
624
+ | `cx-file-reject` | `onFileReject` | `@cx-file-reject` | `FileRejectDetail` |
606
625
 
607
626
  #### Ref Methods
608
627
 
609
628
  | Method | Description |
610
629
  |--------|-------------|
611
630
  | `focus()` | Focuses the textarea. |
631
+ | `addFiles(files: FileList): void` | Adds files programmatically to the attachment tray. |
632
+ | `getAttachments(): FileInfo[]` | Returns current attachments as FileInfo[]. |
633
+ | `clearAttachments()` | Removes all file attachments. |
612
634
 
613
635
  #### Structured Types
614
636
 
615
637
  Import from `@colletdev/core/types`:
616
638
 
617
639
  - `ChatSubmitDetail`
640
+ - `FileAddDetail`
641
+ - `FileInfo`
642
+ - `FileRejectDetail`
643
+ - `FileRemoveDetail`
618
644
  - `FocusDetail`
619
645
  - `InputDetail`
620
646
  - `KeyboardDetail`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colletdev/docs",
3
- "version": "0.2.19",
3
+ "version": "0.2.20",
4
4
  "description": "Collet component library documentation — API reference, framework guides, and AI agent setup",
5
5
  "type": "module",
6
6
  "bin": {