@kitnai/chat 0.5.0 → 0.6.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.
- package/README.md +50 -0
- package/dist/kitn-chat.es.js +1 -1
- package/dist/theme.tokens.css +25 -1
- package/package.json +1 -1
- package/src/elements/compiled.css +1 -1
- package/src/elements/styles.css +21 -0
- package/src/ui/scroll-area.tsx +1 -1
- package/theme.css +25 -1
package/README.md
CHANGED
|
@@ -333,6 +333,56 @@ docs/
|
|
|
333
333
|
|
|
334
334
|
The web-component layer wraps a few coarse facades over the SolidJS components; the SolidJS API stays the source of truth and is unchanged by it.
|
|
335
335
|
|
|
336
|
+
## Examples
|
|
337
|
+
|
|
338
|
+
A set of runnable examples and a hosted component playground are included in the repo. See [`examples/README.md`](examples/README.md) for full details.
|
|
339
|
+
|
|
340
|
+
### Composable showcase
|
|
341
|
+
|
|
342
|
+
The composable showcase demonstrates every individual element in one page. Build the package first, then serve from the repo root:
|
|
343
|
+
|
|
344
|
+
```bash
|
|
345
|
+
npm run build # produces dist/kitn-chat.es.js
|
|
346
|
+
npm run examples # static server at http://localhost:8000
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
Then open: **http://localhost:8000/examples/composable/index.html**
|
|
350
|
+
|
|
351
|
+
### Storybook
|
|
352
|
+
|
|
353
|
+
Storybook is the primary component playground for development:
|
|
354
|
+
|
|
355
|
+
```bash
|
|
356
|
+
npm run dev # dev server at http://localhost:6006
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
The published docs are deployed to GitHub Pages:
|
|
360
|
+
**https://kitn-ai.github.io/chat/**
|
|
361
|
+
|
|
362
|
+
### Framework example apps
|
|
363
|
+
|
|
364
|
+
The `examples/react`, `examples/solid`, `examples/angular`, and `examples/vue` directories are full Vite apps — install their dependencies and run the local dev server:
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
cd examples/react && npm install && npm run dev
|
|
368
|
+
# or
|
|
369
|
+
cd examples/solid && npm install && npm run dev
|
|
370
|
+
# or
|
|
371
|
+
cd examples/angular && npm install && npm run dev
|
|
372
|
+
# or
|
|
373
|
+
cd examples/vue && npm install && npm run dev
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
- `examples/react` — uses the generated React wrappers from `@kitnai/chat/react`
|
|
377
|
+
- `examples/solid` — uses the raw SolidJS component API
|
|
378
|
+
- `examples/angular` — uses the web components natively via Angular's `[prop]` / `(event)` bindings with `CUSTOM_ELEMENTS_SCHEMA` (no wrappers needed)
|
|
379
|
+
- `examples/vue` — uses the web components natively via Vue's `:prop.prop` modifier and `@event` bindings; `isCustomElement` in `vite.config.ts` prevents Vue treating `kitn-*` tags as Vue components
|
|
380
|
+
|
|
381
|
+
### Docs and reference
|
|
382
|
+
|
|
383
|
+
- **[docs/web-components.md](docs/web-components.md)** — full element API: every property, event, and the `ChatMessage` schema.
|
|
384
|
+
- **[llms.txt](llms.txt)** / **[llms-full.txt](llms-full.txt)** — dense machine-readable references for AI coding agents.
|
|
385
|
+
|
|
336
386
|
## Bundle size
|
|
337
387
|
|
|
338
388
|
| Scenario | Loaded |
|