@ensembleapp/client-sdk 0.0.5 → 0.0.6

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.
@@ -7,7 +7,7 @@
7
7
  --chat-border: #e5e7eb;
8
8
  --chat-header-text: #ffffff;
9
9
  --chat-user-text: #ffffff;
10
- --chat-assistant-bg: #f3f4f6;
10
+ --chat-assistant-bg: transparent;
11
11
  --chat-assistant-text: #111827;
12
12
  --chat-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
13
13
  --chat-radius: 0.75rem;
@@ -64,7 +64,7 @@
64
64
  .chat-widget__message {
65
65
  display: flex;
66
66
  flex-direction: column;
67
- gap: 0.5rem;
67
+ gap: 0;
68
68
  }
69
69
 
70
70
  .chat-widget__message-row {
@@ -81,7 +81,7 @@
81
81
 
82
82
  .chat-widget__bubble {
83
83
  max-width: 90%;
84
- padding: 0.5rem 0.75rem;
84
+ padding: 0.5rem 0.25rem;
85
85
  border-radius: calc(var(--chat-radius) * 0.65);
86
86
  font-size: var(--chat-font-size);
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensembleapp/client-sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "React client SDK for chat functionality",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,19 +37,26 @@
37
37
  "react-dom": ">=18.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@ai-sdk/react": "^2.0.104",
41
- "ai": "^5.0.104",
40
+ "@repo/agent-sdk": "*",
41
+ "@ai-sdk/react": "^3.0.41",
42
+ "camelcase-css": "^2.0.1",
42
43
  "clsx": "^2.1.1",
44
+ "didyoumean": "^1.2.2",
43
45
  "dlv": "^1.1.3",
46
+ "fast-glob": "^3.3.3",
44
47
  "lucide-react": "^0.553.0",
45
- "react-markdown": "^10.1.0",
48
+ "micromatch": "^4.0.8",
49
+ "object-hash": "^3.0.0",
50
+ "picocolors": "^1.1.1",
46
51
  "postcss-import": "^15.1.0",
47
52
  "postcss-nested": "^6.2.0",
53
+ "react-markdown": "^10.1.0",
48
54
  "tailwind-merge": "^2.5.4"
49
55
  },
50
56
  "devDependencies": {
51
- "@types/react": "^18.3.12",
52
- "@types/react-dom": "^18.3.1",
57
+ "@types/minimatch": "^6.0.0",
58
+ "@types/react": "^19.1.0",
59
+ "@types/react-dom": "^19.1.1",
53
60
  "autoprefixer": "^10.4.22",
54
61
  "eslint": "^9.15.0",
55
62
  "postcss": "^8.5.0",
@@ -1,19 +0,0 @@
1
- import { JSONSchema7 } from 'json-schema';
2
- import { ReactNode } from 'react';
3
- import z, { AnyZodObject } from 'zod';
4
-
5
- type WidgetDefinition = {
6
- widgetType: string;
7
- schema: JSONSchema7;
8
- };
9
- type UIWidget = {
10
- widgetType: string;
11
- } & Record<string, unknown>;
12
- interface UIWidgetDefinition<TSchema extends AnyZodObject = AnyZodObject> {
13
- widgetType: string;
14
- schema: TSchema;
15
- render(widget: z.infer<TSchema>): ReactNode;
16
- }
17
- declare const createWidget: <TSchema extends AnyZodObject>({ widgetType, schema, render, }: UIWidgetDefinition<TSchema>) => UIWidgetDefinition<TSchema>;
18
-
19
- export { type UIWidget as U, type WidgetDefinition as W, type UIWidgetDefinition as a, createWidget as c };
package/dist/schemas.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export { U as UIWidget, W as WidgetDefinition } from './schemas-n2u83F_H.js';
2
- import 'json-schema';
3
- import 'react';
4
- import 'zod';
package/dist/schemas.js DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=schemas.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,22 +0,0 @@
1
- import type { EmbeddableChatWidgetConfig } from './widget';
2
-
3
- export interface ChatWidgetGlobal {
4
- init: (config: EmbeddableChatWidgetConfig) => Promise<void>;
5
- destroy: () => void;
6
- hide: () => void;
7
- show: () => void;
8
- updateConfig: (config: Partial<EmbeddableChatWidgetConfig>) => void;
9
- updateToken: (token: string) => void;
10
- }
11
-
12
- declare global {
13
- interface Window {
14
- ChatWidget?: ChatWidgetGlobal;
15
- chatWidgetConfig?: EmbeddableChatWidgetConfig;
16
- }
17
- }
18
-
19
- export type { EmbeddableChatWidgetConfig };
20
- export type { ChatWidgetGlobal };
21
-
22
- export {};