@bitbaum/chatkit 0.21.1 → 0.21.2

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
@@ -51,6 +51,13 @@ import "@bitbaum/chatkit/styles.css";
51
51
  />
52
52
  ```
53
53
 
54
+ For an embedded composer/thread that does not render `ChatApp`, use
55
+ `@bitbaum/chatkit/styles/chat.css` in place of `styles.css`. It contains the
56
+ same shared composer, thread, reply, attachment and message styles while
57
+ omitting the full-screen app's conversation rail and drawer. The narrower
58
+ stylesheet is generated from `styles.css` during the package build, so shared
59
+ chat styles have one source and do not drift.
60
+
54
61
  ### The whole screen — `ChatScreen`
55
62
 
56
63
  A chat page is the conversation, edge to edge and top to bottom, as in the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitbaum/chatkit",
3
- "version": "0.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "One chat for every product: a composer with a microphone that always works, a thread that does not fight the reader, messages with copy and retry, and LLM markdown — the fleet's chat standard as a package.",
5
5
  "license": "MIT",
6
6
  "author": "Cato",
@@ -38,7 +38,8 @@
38
38
  "files": [
39
39
  "dist",
40
40
  "bin",
41
- "styles.css"
41
+ "styles.css",
42
+ "styles/chat.css"
42
43
  ],
43
44
  "bin": {
44
45
  "chatkit-check-file-inputs": "./bin/chatkit-check-file-inputs.mjs",
@@ -65,10 +66,11 @@
65
66
  "types": "./dist/pdf.d.ts",
66
67
  "default": "./dist/pdf.js"
67
68
  },
68
- "./styles.css": "./styles.css"
69
+ "./styles.css": "./styles.css",
70
+ "./styles/chat.css": "./styles/chat.css"
69
71
  },
70
72
  "scripts": {
71
- "build": "rm -rf dist && tsc -p tsconfig.json",
73
+ "build": "node scripts/build-chat-css.mjs && rm -rf dist && tsc -p tsconfig.json",
72
74
  "lint": "eslint .",
73
75
  "typecheck": "tsc -p tsconfig.json --noEmit",
74
76
  "test": "node --test test/*.test.js",
@@ -88,7 +90,7 @@
88
90
  "esbuild": "^0.28.2",
89
91
  "eslint": "^10.9.1",
90
92
  "globals": "^17.11.0",
91
- "playwright": "1.63.0",
93
+ "playwright": "1.64.1",
92
94
  "prettier": "^3.9.6",
93
95
  "react": "^19.2.8",
94
96
  "react-dom": "^19.2.8",