@lace-cloud/chat-webview
v0.6.5
Published
Pure React chat UI for Lace Cloud. Takes a `WebviewBridge` (postMessage-shaped) and renders the chat experience. Re-exports protocol types from `@lace-cloud/chat-core`.
Downloads
613
Readme
@lace-cloud/chat-webview
Pure React chat UI for Lace Cloud. Takes a WebviewBridge
(postMessage-shaped) and renders the chat experience. Re-exports
protocol types from @lace-cloud/chat-core.
VS Code wraps it in a vscode.WebviewView; future JetBrains plugin
will wrap it in a JBCefBrowser.
Install
npm install @lace-cloud/chat-webview @lace-cloud/chat-core react react-domUsage
import { App, type WebviewBridge, type WebviewToHost } from '@lace-cloud/chat-webview';
import '@lace-cloud/chat-webview/styles.css';
import { createRoot } from 'react-dom/client';
const vscode = acquireVsCodeApi(); // or your IDE's equivalent
const bridge: WebviewBridge = {
postMessage: (msg: WebviewToHost) => vscode.postMessage(msg),
};
createRoot(document.getElementById('root')!).render(<App bridge={bridge} />);License
Proprietary — see LICENSE.
