Skip to content

Commit 577946c

Browse files
committed
feat!(bubble): optimize background option
1 parent 1b53ab4 commit 577946c

File tree

6 files changed

+328
-311
lines changed

6 files changed

+328
-311
lines changed

.changes/background-option.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@matechat/react": patch
3+
---
4+
5+
Optimize `background` option of `BubbleList` component.
6+
7+
BREAKING CHANGES:
8+
9+
- Use `left-solid`, `right-solid`, `transparent` and `solid` as the value of `background` option.
10+
- Default to use `right-solid` as the value of `background` option in `Bubble` component.
11+
- Remove `left-only` and `right-only` value in `Bubble` component.

.changes/chore-deps.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@matechat/react": patch
3+
---
4+
5+
Bump dependencies.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"class-variance-authority": "^0.7.1",
5555
"clsx": "^2.1.1",
5656
"nanoevents": "^9.1.0",
57-
"openai": "^5.3.0",
57+
"openai": "^5.5.1",
5858
"react-markdown": "^10.1.0",
5959
"react-syntax-highlighter": "^15.6.1",
6060
"remark-gfm": "^4.0.1",
@@ -66,24 +66,24 @@
6666
"@biomejs/biome": "^1.9.4",
6767
"@testing-library/jest-dom": "^6.6.3",
6868
"@testing-library/react": "^16.3.0",
69-
"@types/node": "^22.15.31",
69+
"@types/node": "^22.15.32",
7070
"@types/react": "^19.1.8",
7171
"@types/react-dom": "^19.1.6",
7272
"@types/react-syntax-highlighter": "^15.5.13",
7373
"@vitejs/plugin-react-swc": "^3.10.2",
74-
"archons": "^0.2.11",
75-
"bumpp": "^10.1.1",
74+
"archons": "^0.2.12",
75+
"bumpp": "^10.2.0",
7676
"chalk": "^5.4.1",
7777
"happy-dom": "^17.6.3",
7878
"lucide-react": "^0.511.0",
7979
"react": "^19.1.0",
8080
"react-dom": "^19.1.0",
81-
"tsdown": "^0.12.7",
81+
"tsdown": "^0.12.8",
8282
"tsx": "^4.20.3",
8383
"typescript": "^5.8.3",
84-
"vite": "npm:rolldown-vite@^6.3.19",
84+
"vite": "npm:rolldown-vite@^6.3.21",
8585
"vite-plugin-dts": "^4.5.4",
8686
"vite-plugin-lib-inject-css": "^2.2.2",
87-
"vitest": "^3.2.3"
87+
"vitest": "^3.2.4"
8888
}
8989
}

playground/src/Chat.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export function Chat() {
5656
<BubbleList
5757
className="px-4 w-full max-w-full"
5858
messages={messages}
59+
background="right-solid"
5960
footer={
6061
<Button
6162
onClick={onClear}

0 commit comments

Comments
 (0)