Skip to content

Commit 92a982c

Browse files
committed
fix(playground): fix css source
1 parent 3393579 commit 92a982c

File tree

7 files changed

+1143
-676
lines changed

7 files changed

+1143
-676
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,33 +55,33 @@
5555
"class-variance-authority": "^0.7.1",
5656
"clsx": "^2.1.1",
5757
"nanoevents": "^9.1.0",
58-
"openai": "^5.9.0",
58+
"openai": "^5.11.0",
5959
"react-markdown": "^10.1.0",
6060
"react-syntax-highlighter": "^15.6.1",
6161
"remark-gfm": "^4.0.1",
6262
"remark-math": "^6.0.0",
6363
"tailwind-merge": "^3.3.1"
6464
},
6565
"devDependencies": {
66-
"@biomejs/biome": "^2.1.1",
67-
"@testing-library/jest-dom": "^6.6.3",
66+
"@biomejs/biome": "^2.1.3",
67+
"@testing-library/jest-dom": "^6.6.4",
6868
"@testing-library/react": "^16.3.0",
69-
"@types/node": "^22.16.3",
70-
"@types/react": "^19.1.8",
71-
"@types/react-dom": "^19.1.6",
69+
"@types/node": "^24.2.0",
70+
"@types/react": "^19.1.9",
71+
"@types/react-dom": "^19.1.7",
7272
"@types/react-syntax-highlighter": "^15.5.13",
73-
"@vitejs/plugin-react-swc": "^3.10.2",
73+
"@vitejs/plugin-react-swc": "^3.11.0",
7474
"archons": "^0.2.13",
75-
"chalk": "^5.4.1",
75+
"chalk": "^5.5.0",
7676
"happy-dom": "^18.0.1",
77-
"lucide-react": "^0.518.0",
78-
"react": "^19.1.0",
79-
"react-dom": "^19.1.0",
77+
"lucide-react": "^0.536.0",
78+
"react": "^19.1.1",
79+
"react-dom": "^19.1.1",
8080
"tailwindcss": "^4.1.11",
81-
"tsdown": "^0.12.9",
81+
"tsdown": "^0.13.3",
8282
"tsx": "^4.20.3",
83-
"typescript": "^5.8.3",
84-
"vite": "npm:rolldown-vite@^6.3.21",
83+
"typescript": "^5.9.2",
84+
"vite": "npm:rolldown-vite@^7.0.12",
8585
"vite-plugin-dts": "^4.5.4",
8686
"vite-plugin-lib-inject-css": "^2.2.2",
8787
"vitest": "^3.2.4"

playground/src/Activate.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { useState } from "react";
2-
import { Button } from "../../dist/button";
3-
import { createOpenAIBackend } from "../../dist/utils/backend";
4-
import { agent } from "../../dist/utils/core";
2+
import { Button } from "@matechat/react/button";
3+
import { createOpenAIBackend } from "@matechat/react/utils/backend";
4+
import { agent } from "@matechat/react/utils/core";
55

6-
export function Activate({ onActivate }) {
6+
export function Activate({ onActivate }: { onActivate: () => void }) {
77
const [token, setToken] = useState("");
88

99
const activateChat = () => {

playground/src/Chat.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { MessageSquarePlus } from "lucide-react";
2-
import { useMemo, useState } from "react";
31
import { BubbleList } from "@matechat/react/bubble";
42
import { Button } from "@matechat/react/button";
53
import { FileUpload } from "@matechat/react/file-upload";
@@ -13,6 +11,8 @@ import { InputCount, Sender } from "@matechat/react/sender";
1311
import type { MessageParam } from "@matechat/react/utils";
1412
import { useChat } from "@matechat/react/utils/chat";
1513
import { useMateChat } from "@matechat/react/utils/core";
14+
import { MessageSquarePlus } from "lucide-react";
15+
import { useMemo, useState } from "react";
1616

1717
const initialMessages: MessageParam[] = [
1818
{
@@ -28,7 +28,7 @@ const initialMessages: MessageParam[] = [
2828
2929
## Prerequisites
3030
31-
MateChat React is a React frontend components and helpers library, we recommend that you use React 18 or above.
31+
> MateChat React is a React frontend components and helpers library, we recommend that you use React 18 or above.
3232
3333
If you are looking for the Vue MateChat version, please visit [MateChat Vue](https://matechat.gitcode.com/).
3434
@@ -59,7 +59,7 @@ export function Chat() {
5959
initialMessages,
6060
{
6161
throwOnEmptyBackend: true,
62-
}
62+
},
6363
);
6464

6565
const footer = useMemo(() => {

playground/src/style.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
@import "tailwindcss";
2+
@source "../../src/";

playground/vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import path from "node:path";
12
import tailwindcss from "@tailwindcss/vite";
23
import react from "@vitejs/plugin-react-swc";
3-
import path from "node:path";
44
import { createLogger, defineConfig } from "vite";
55

66
// Suppress warnings from Rolldown Vite
@@ -13,7 +13,7 @@ export default defineConfig({
1313
customLogger: logger,
1414
resolve: {
1515
alias: {
16-
'@matechat/react': path.resolve(__dirname, "../src"),
17-
}
18-
}
16+
"@matechat/react": path.resolve(__dirname, "../src"),
17+
},
18+
},
1919
});

0 commit comments

Comments
 (0)