@colletdev/docs 0.2.3 → 0.2.5

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.
package/README.md CHANGED
@@ -1,32 +1,32 @@
1
- # @collet/docs
1
+ # @colletdev/docs
2
2
 
3
3
  API reference and framework integration guides for the Collet component library -- 48 accessible web components built in Rust/WASM.
4
4
 
5
5
  ## Install
6
6
 
7
7
  ```bash
8
- npm install @collet/docs
8
+ npm install @colletdev/docs
9
9
  ```
10
10
 
11
11
  ## Contents
12
12
 
13
13
  | File | Export | Description |
14
14
  |------|--------|-------------|
15
- | `index.md` | `@collet/docs` | Library overview and architecture |
16
- | `components.md` | `@collet/docs/components` | All 48 components: props, events, slots, ARIA |
17
- | `core.md` | `@collet/docs/core` | `init()` options, theming, CSS architecture, SSR |
18
- | `react.md` | `@collet/docs/react` | React 18+ wrappers, hooks, ref types, events |
19
- | `vue.md` | `@collet/docs/vue` | Vue 3.3+ wrappers, Volar setup, emits |
20
- | `svelte.md` | `@collet/docs/svelte` | Svelte 5 runes wrappers, callback props |
21
- | `angular.md` | `@collet/docs/angular` | Angular 16+ standalone components, forms |
15
+ | `index.md` | `@colletdev/docs` | Library overview and architecture |
16
+ | `components.md` | `@colletdev/docs/components` | All 48 components: props, events, slots, ARIA |
17
+ | `core.md` | `@colletdev/docs/core` | `init()` options, theming, CSS architecture, SSR |
18
+ | `react.md` | `@colletdev/docs/react` | React 18+ wrappers, hooks, ref types, events |
19
+ | `vue.md` | `@colletdev/docs/vue` | Vue 3.3+ wrappers, Volar setup, emits |
20
+ | `svelte.md` | `@colletdev/docs/svelte` | Svelte 5 runes wrappers, callback props |
21
+ | `angular.md` | `@colletdev/docs/angular` | Angular 16+ standalone components, forms |
22
22
 
23
23
  ## Usage
24
24
 
25
25
  Import the markdown content directly:
26
26
 
27
27
  ```js
28
- import components from '@collet/docs/components';
29
- import react from '@collet/docs/react';
28
+ import components from '@colletdev/docs/components';
29
+ import react from '@colletdev/docs/react';
30
30
  ```
31
31
 
32
32
  This package ships `.md` files and a CLI. Use it to build documentation sites, power in-app help, or set up AI agent context.
@@ -36,11 +36,11 @@ This package ships `.md` files and a CLI. Use it to build documentation sites, p
36
36
  Set up Collet knowledge for your AI coding assistant:
37
37
 
38
38
  ```bash
39
- npx @collet/docs init # auto-detect (Claude Code by default)
40
- npx @collet/docs init --claude # Claude Code (.claude/skills/collet/)
41
- npx @collet/docs init --codex # OpenAI Codex (AGENTS.md)
42
- npx @collet/docs init --cursor # Cursor AI (.cursor/rules/collet.md)
43
- npx @collet/docs init --all # All formats
39
+ npx @colletdev/docs init # auto-detect (Claude Code by default)
40
+ npx @colletdev/docs init --claude # Claude Code (.claude/skills/collet/)
41
+ npx @colletdev/docs init --codex # OpenAI Codex (AGENTS.md)
42
+ npx @colletdev/docs init --cursor # Cursor AI (.cursor/rules/collet.md)
43
+ npx @colletdev/docs init --all # All formats
44
44
  ```
45
45
 
46
46
  The CLI auto-detects your framework from `package.json` and generates context-aware agent configuration with the full 48-component API reference.
@@ -49,11 +49,11 @@ The CLI auto-detects your framework from `package.json` and generates context-aw
49
49
 
50
50
  | Package | Description |
51
51
  |---------|-------------|
52
- | `@collet/core` | Custom Elements + WASM runtime |
53
- | `@collet/react` | React 18+ wrappers |
54
- | `@collet/vue` | Vue 3.3+ wrappers |
55
- | `@collet/svelte` | Svelte 5 wrappers |
56
- | `@collet/angular` | Angular 16+ wrappers |
52
+ | `@colletdev/core` | Custom Elements + WASM runtime |
53
+ | `@colletdev/react` | React 18+ wrappers |
54
+ | `@colletdev/vue` | Vue 3.3+ wrappers |
55
+ | `@colletdev/svelte` | Svelte 5 wrappers |
56
+ | `@colletdev/angular` | Angular 16+ wrappers |
57
57
 
58
58
  ## License
59
59
 
package/components.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ## Overview
7
7
 
8
- Collet ships 49 components as Custom Elements (`<cx-*>`) with
8
+ Collet ships 50 components as Custom Elements (`<cx-*>`) with
9
9
  framework wrappers for React, Vue, Svelte, and Angular.
10
10
 
11
11
  **npm packages:**
@@ -1134,6 +1134,34 @@ Individual message segment with streaming markdown support.
1134
1134
 
1135
1135
  ---
1136
1136
 
1137
+ ### MessageTimeline
1138
+
1139
+ MessageTimeline component.
1140
+
1141
+ **Tag:** `<cx-message-timeline>` | **Form:** no
1142
+
1143
+ #### Import
1144
+
1145
+ | Framework | Import |
1146
+ |-----------|--------|
1147
+ | React | `import { MessageTimeline } from '@colletdev/react'` |
1148
+ | Vue | `import { MessageTimeline } from '@colletdev/vue'` |
1149
+ | Svelte | `import MessageTimeline from '@colletdev/svelte/message-timeline.svelte'` |
1150
+ | Angular | `import { CxMessageTimeline } from '@colletdev/angular'` |
1151
+
1152
+ #### Props
1153
+
1154
+ | Prop | Type | Default | Description |
1155
+ |------|------|---------|-------------|
1156
+ | id | `string` | — | |
1157
+ | role | `string` | — | |
1158
+ | alignment | `string` | — | |
1159
+ | size | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | — | |
1160
+ | senderName | `string` | — | |
1161
+ | events | `string` | — | |
1162
+
1163
+ ---
1164
+
1137
1165
  ### Pagination
1138
1166
 
1139
1167
  Page navigation controls with page size selector.
@@ -1915,12 +1943,14 @@ Data table with sorting, selection, pagination, and expandable rows.
1915
1943
  | selectable | `string` | — | |
1916
1944
  | selected | `string[] \| string` | — | |
1917
1945
  | sorts | `SortState[] \| string` | — | |
1946
+ | filters | `FilterState[] \| string` | — | |
1918
1947
  | pagination | `PaginationConfig \| string` | — | |
1919
1948
  | hoverable | `boolean` | `false` | |
1920
1949
  | stickyHeader | `boolean` | `false` | |
1921
1950
  | footer | `FooterRow[] \| string` | — | |
1922
1951
  | emptyState | `EmptyStateConfig \| string` | — | |
1923
1952
  | columnOrder | `string[] \| string` | — | |
1953
+ | virtualScroll | `VirtualScrollConfig \| string` | — | |
1924
1954
  | disabled | `boolean` | `false` | |
1925
1955
  | loading | `number` | `0` | |
1926
1956
  | error | `string` | — | |
@@ -1941,6 +1971,7 @@ Data table with sorting, selection, pagination, and expandable rows.
1941
1971
  Import from `@colletdev/core/types`:
1942
1972
 
1943
1973
  - `EmptyStateConfig`
1974
+ - `FilterState`
1944
1975
  - `FooterRow`
1945
1976
  - `KeyboardDetail`
1946
1977
  - `PageDetail`
@@ -1951,6 +1982,7 @@ Import from `@colletdev/core/types`:
1951
1982
  - `TableExpandDetail`
1952
1983
  - `TableRow`
1953
1984
  - `TableSelectDetail`
1985
+ - `VirtualScrollConfig`
1954
1986
 
1955
1987
  ---
1956
1988
 
package/index.md CHANGED
@@ -7,21 +7,21 @@ Custom Elements with first-class framework wrappers.
7
7
 
8
8
  | Package | Description | Peer Dependencies |
9
9
  |---------|-------------|-------------------|
10
- | `@collet/core` | Custom Elements + WASM runtime + CSS tokens | — |
11
- | `@collet/react` | React 18+ wrappers with typed refs and hooks | `react >= 18`, `@collet/core` |
12
- | `@collet/vue` | Vue 3.3+ wrappers with Volar support | `vue >= 3.3`, `@collet/core` |
13
- | `@collet/svelte` | Svelte 5 wrappers with runes and snippets | `svelte >= 5`, `@collet/core` |
14
- | `@collet/angular` | Angular 16+ standalone wrappers with CVA | `@angular/core >= 16`, `@collet/core` |
10
+ | `@colletdev/core` | Custom Elements + WASM runtime + CSS tokens | — |
11
+ | `@colletdev/react` | React 18+ wrappers with typed refs and hooks | `react >= 18`, `@colletdev/core` |
12
+ | `@colletdev/vue` | Vue 3.3+ wrappers with Volar support | `vue >= 3.3`, `@colletdev/core` |
13
+ | `@colletdev/svelte` | Svelte 5 wrappers with runes and snippets | `svelte >= 5`, `@colletdev/core` |
14
+ | `@colletdev/angular` | Angular 16+ standalone wrappers with CVA | `@angular/core >= 16`, `@colletdev/core` |
15
15
 
16
16
  ## Quick Start
17
17
 
18
18
  ```bash
19
- npm install @collet/core @collet/react # or vue/svelte/angular
19
+ npm install @colletdev/core @colletdev/react # or vue/svelte/angular
20
20
  ```
21
21
 
22
22
  ```tsx
23
- import { init } from '@collet/core';
24
- import { Button } from '@collet/react';
23
+ import { init } from '@colletdev/core';
24
+ import { Button } from '@colletdev/react';
25
25
 
26
26
  await init();
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colletdev/docs",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Collet component library documentation — API reference, framework guides, and AI agent setup",
5
5
  "type": "module",
6
6
  "bin": {