@ensembleapp/client-sdk 0.0.2 → 0.0.4
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 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{schemas-Esi_eGx3.d.ts → schemas-n2u83F_H.d.ts} +2 -2
- package/dist/schemas.d.ts +1 -1
- package/package.json +1 -1
- package/dist/widget/widget.global.d.ts +0 -22
- package/dist/widget/widget.global.js +0 -177
- package/dist/widget/widget.global.js.map +0 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ A simple React library for chat functionality with built-in AI SDK integration.
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @
|
|
8
|
+
npm install @ensembleapp/client-sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,7 +13,7 @@ npm install @repo/client-sdk
|
|
|
13
13
|
### Option 1: Use the pre-built ChatWidget
|
|
14
14
|
|
|
15
15
|
```tsx
|
|
16
|
-
import { ChatWidget } from '@
|
|
16
|
+
import { ChatWidget } from '@ensembleapp/client-sdk'
|
|
17
17
|
|
|
18
18
|
function App() {
|
|
19
19
|
return (
|
|
@@ -36,7 +36,7 @@ function App() {
|
|
|
36
36
|
### Option 2: Build your own UI with the useChat hook
|
|
37
37
|
|
|
38
38
|
```tsx
|
|
39
|
-
import { useChat } from '@
|
|
39
|
+
import { useChat } from '@ensembleapp/client-sdk'
|
|
40
40
|
|
|
41
41
|
function CustomChat() {
|
|
42
42
|
const { messages, isLoading, sendMessage } = useChat({
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as ai from 'ai';
|
|
2
2
|
import { UIMessage } from 'ai';
|
|
3
|
-
import { U as UIWidget, a as UIWidgetDefinition } from './schemas-
|
|
4
|
-
export { W as WidgetDefinition, c as createWidget } from './schemas-
|
|
3
|
+
import { U as UIWidget, a as UIWidgetDefinition } from './schemas-n2u83F_H.js';
|
|
4
|
+
export { W as WidgetDefinition, c as createWidget } from './schemas-n2u83F_H.js';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { ClassValue } from 'clsx';
|