@base44-preview/platform 0.4.0-pr.345.2183bda → 0.4.0-pr.345.357a9ca
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 +3 -1
- package/dist/react/index.d.ts +1 -13
- package/dist/react/index.js +1 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,11 +5,13 @@ npm install @base44/platform
|
|
|
5
5
|
```
|
|
6
6
|
|
|
7
7
|
The Platform SDK for white-label platforms built on Base44. It is independent of the app SDK
|
|
8
|
-
(`@base44/sdk`) and has
|
|
8
|
+
(`@base44/sdk`) and has three entrypoints:
|
|
9
9
|
|
|
10
10
|
- `@base44/platform`, for the browser: implements the read-only white-label live AI chat
|
|
11
11
|
contract. A partner's browser watches the AI chat of up to eight apps over the platform's
|
|
12
12
|
shared socket. The workspace must have white-label sockets enabled; this SDK does not open sessions.
|
|
13
|
+
- `@base44/platform/react`: `useChat`, a hook that runs the AI chat for one app on top of the
|
|
14
|
+
browser client. See [React](#react).
|
|
13
15
|
- `@base44/platform/server`, for your backend: verify the webhooks Base44 sends when apps are
|
|
14
16
|
created, published, unpublished, trashed or restored. See
|
|
15
17
|
[Receiving webhooks](#receiving-webhooks-server).
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
/** The `@base44/platform/react` entry: the AI chat for one app, as a React hook. React is an optional peer, loaded only here. */
|
|
2
|
-
|
|
3
|
-
import type { UseChatResult, ChatApp, ChatBackend, ChatOptions } from "./chat.types.js";
|
|
4
|
-
export { useChat };
|
|
2
|
+
export { useChat } from "./useChat.js";
|
|
5
3
|
export type { ApprovalDetails, ApprovalQuestion, ChatApp, UseChatResult, ChatOptions, ChatBackend, ChatAnswer, ChatConnection, ChatError, ChatItem, ChatQuestion, ChatStatus, ChatStep, ChoiceEntry, ChoiceQuestion, SecretField, SecretsQuestion, ToolCallAnswer, } from "./chat.types.js";
|
|
6
4
|
export type { SocketSession } from "../client/modules/chat.types.js";
|
|
7
|
-
/** @deprecated Renamed to {@link useChat}. Removed in 0.6.0. @hidden */
|
|
8
|
-
export declare const useBase44Chat: typeof useChat;
|
|
9
|
-
/** @deprecated Renamed to {@link UseChatResult}. Removed in 0.6.0. @hidden */
|
|
10
|
-
export type Base44Chat = UseChatResult;
|
|
11
|
-
/** @deprecated Renamed to {@link ChatOptions}. Removed in 0.6.0. @hidden */
|
|
12
|
-
export type Base44ChatOptions = ChatOptions;
|
|
13
|
-
/** @deprecated Renamed to {@link ChatBackend}. Removed in 0.6.0. @hidden */
|
|
14
|
-
export type Base44ChatBackend = ChatBackend;
|
|
15
|
-
/** @deprecated Renamed to {@link ChatApp}. Removed in 0.6.0. @hidden */
|
|
16
|
-
export type Base44App = ChatApp;
|
package/dist/react/index.js
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
1
|
/** The `@base44/platform/react` entry: the AI chat for one app, as a React hook. React is an optional peer, loaded only here. */
|
|
2
|
-
|
|
3
|
-
export { useChat };
|
|
4
|
-
// The names before 0.5.0, kept for one release so existing code keeps working.
|
|
5
|
-
/** @deprecated Renamed to {@link useChat}. Removed in 0.6.0. @hidden */
|
|
6
|
-
export const useBase44Chat = useChat;
|
|
2
|
+
export { useChat } from "./useChat.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@base44-preview/platform",
|
|
3
|
-
"version": "0.4.0-pr.345.
|
|
3
|
+
"version": "0.4.0-pr.345.357a9ca",
|
|
4
4
|
"description": "Base44 Platform SDK for white-label platforms: a browser client for following the AI chat and a server entrypoint for webhooks",
|
|
5
5
|
"main": "dist/client/index.js",
|
|
6
6
|
"types": "dist/client/index.d.ts",
|