@ensembleapp/client-sdk 0.0.3 → 0.0.5

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 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 @repo/client-sdk
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 '@repo/client-sdk'
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 '@repo/client-sdk'
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-Esi_eGx3.js';
4
- export { W as WidgetDefinition, c as createWidget } from './schemas-Esi_eGx3.js';
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';
package/dist/index.js CHANGED
@@ -9767,12 +9767,12 @@ var createWidget = ({
9767
9767
  import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
9768
9768
  var defaultChatWidgets = [
9769
9769
  createWidget({
9770
- widgetType: "person_card",
9770
+ widgetType: "person-card",
9771
9771
  schema: zod_default.object({
9772
9772
  name: zod_default.string(),
9773
9773
  profileUri: zod_default.string().optional(),
9774
9774
  details: zod_default.record(zod_default.any()).optional()
9775
- }),
9775
+ }).describe("showing a person card with name, photo and additional details"),
9776
9776
  render: (widget) => /* @__PURE__ */ jsx5(
9777
9777
  "div",
9778
9778
  {
@@ -9821,7 +9821,7 @@ var defaultChatWidgets = [
9821
9821
  schema: zod_default.object({
9822
9822
  uri: zod_default.string().url(),
9823
9823
  text: zod_default.string().optional()
9824
- }),
9824
+ }).describe("rendering a clickable link"),
9825
9825
  render: (widget) => /* @__PURE__ */ jsx5(
9826
9826
  "a",
9827
9827
  {