From 47c120879cfc3220801814a61533f768eac8dbc3 Mon Sep 17 00:00:00 2001 From: amitbardos Date: Wed, 21 Oct 2026 11:40:23 +0300 Subject: [PATCH 1/2] Tiny Sunny: the hook is useChat @base44/platform drops the Base44 prefix from its React entry (base44/javascript-sdk#345), so Chat.tsx uses useChat, UseChatResult and ChatBackend. The new names ship in 0.5.0; the dependency moves to ^0.5.0 once it is published. Co-Authored-By: Claude Opus 5.5 --- examples/white-label-minimal/components/Chat.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/white-label-minimal/components/Chat.tsx b/examples/white-label-minimal/components/Chat.tsx index 51aaf26..ca8aa46 100644 --- a/examples/white-label-minimal/components/Chat.tsx +++ b/examples/white-label-minimal/components/Chat.tsx @@ -1,6 +1,6 @@ "use client"; import { useEffect, useState } from "react"; -import { useBase44Chat, type Base44Chat, type Base44ChatBackend, type ChatItem, type ChatStep } from "@base44/platform/react"; +import { useChat, type UseChatResult, type ChatBackend, type ChatItem, type ChatStep } from "@base44/platform/react"; import { Button } from "@/components/ui/button"; import { Textarea } from "@/components/ui/textarea"; import Markdown from "react-markdown"; @@ -9,14 +9,14 @@ import { createApp, openLiveSession, sendMessage, submitToolCallInput, type App import ToolQuestion from "./ToolQuestion"; // The four Base44 calls, run on the server. The hook calls them, so the browser never holds a key. -const backend: Base44ChatBackend = { createApp, openLiveSession, sendMessage, submitToolCallInput }; +const backend: ChatBackend = { createApp, openLiveSession, sendMessage, submitToolCallInput }; export default function Chat({ app, onAppCreated, onBuildingChange }: { app: App | null; onAppCreated: (app: App) => void; onBuildingChange: (building: boolean) => void; }) { - const chat = useBase44Chat({ appId: app?.id ?? null, backend, onAppCreated }); + const chat = useChat({ appId: app?.id ?? null, backend, onAppCreated }); const [prompt, setPrompt] = useState(""); const building = chat.status === "building"; // Send only when the AI can take a prompt now. After a failed build, a prompt can ask for the fix. @@ -99,7 +99,7 @@ function stepIcon(step: ChatStep) { } // Tiny's wording for what the hook reports. -function StatusLine({ chat, hasApp }: { chat: Base44Chat; hasApp: boolean }) { +function StatusLine({ chat, hasApp }: { chat: UseChatResult; hasApp: boolean }) { let text = ""; if (chat.error) text = chat.error.message; else if (chat.status === "submitted") text = hasApp ? "Sending…" : "Creating app…"; From 8717657f119a24cc2130a204f5cac73c6dd3458b Mon Sep 17 00:00:00 2001 From: amitbardos Date: Wed, 21 Oct 2026 13:05:28 +0300 Subject: [PATCH 2/2] Tiny Sunny: @base44/platform ^0.5.0 0.5.0 is published with the new React names, so the dependency and the lockfile move to it. Co-Authored-By: Claude Opus 5.5 --- examples/white-label-minimal/package.json | 2 +- package-lock.json | 10 +++++----- package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/white-label-minimal/package.json b/examples/white-label-minimal/package.json index c0084e2..372ad2a 100644 --- a/examples/white-label-minimal/package.json +++ b/examples/white-label-minimal/package.json @@ -9,7 +9,7 @@ "typecheck": "next typegen && tsc --noEmit" }, "dependencies": { - "@base44/platform": "^0.4.0", + "@base44/platform": "^0.5.0", "class-variance-authority": "^0.7.1", "cn": "^0.4.0", "lucide-react": "^0.475.0", diff --git a/package-lock.json b/package-lock.json index 9ae7645..f90754b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "examples/white-label-minimal" ], "dependencies": { - "@base44/platform": "^0.4.0", + "@base44/platform": "^0.5.0", "@hello-pangea/dnd": "^18.0.1", "@prisma/client": "^6.19.3", "@radix-ui/react-checkbox": "^1.1.4", @@ -55,7 +55,7 @@ "name": "@base44/white-label-minimal", "version": "0.1.0", "dependencies": { - "@base44/platform": "^0.4.0", + "@base44/platform": "^0.5.0", "class-variance-authority": "^0.7.1", "cn": "^0.4.0", "lucide-react": "^0.475.0", @@ -537,9 +537,9 @@ } }, "node_modules/@base44/platform": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@base44/platform/-/platform-0.4.0.tgz", - "integrity": "sha512-vzlql7aM7nWFbS18uF1aXQcgyRhRDgZ3B2Varr9ogqAtwaX+j1wIMdwK2JGJj/yXPdGR8HKurGq6AOfA8BZGrA==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@base44/platform/-/platform-0.5.0.tgz", + "integrity": "sha512-Mn6t1YjQFpHPtXLbl1h+c6aJQVg6n1CQQkWpQ0Ygzx7dQ+XNKZYzMjjhy0CYIDmfugRiV0xJ9foF/vVRgmBZGQ==", "license": "MIT", "dependencies": { "socket.io-client": "^4.8.3" diff --git a/package.json b/package.json index 6e3cdf3..25ceb4c 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "minimal:typecheck": "npm run typecheck --workspace @base44/white-label-minimal" }, "dependencies": { - "@base44/platform": "^0.4.0", + "@base44/platform": "^0.5.0", "@hello-pangea/dnd": "^18.0.1", "@prisma/client": "^6.19.3", "@radix-ui/react-checkbox": "^1.1.4",