@ensembleapp/client-sdk 0.0.7 → 0.0.8

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.7",
3
+ "version": "0.0.8",
4
4
  "description": "React client SDK for chat functionality",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,19 +30,14 @@
30
30
  "build:all": "npm run build && npm run build:widget",
31
31
  "dev": "tsup --watch",
32
32
  "typecheck": "tsc --noEmit",
33
- "lint": "eslint lib/**/*.{ts,tsx}",
34
- "prepublishOnly": "npm run typecheck && npm run lint && npm run build:all",
35
- "publish:patch": "npm version patch && npm publish",
36
- "publish:minor": "npm version minor && npm publish",
37
- "publish:major": "npm version major && npm publish"
33
+ "lint": "eslint lib/**/*.{ts,tsx}"
38
34
  },
39
35
  "peerDependencies": {
40
36
  "react": ">=18.0.0",
41
37
  "react-dom": ">=18.0.0"
42
38
  },
43
39
  "dependencies": {
44
- "@ai-sdk/react": "^2.0.104",
45
- "ai": "^5.0.104",
40
+ "@ai-sdk/react": "^3.0.41",
46
41
  "camelcase-css": "^2.0.1",
47
42
  "clsx": "^2.1.1",
48
43
  "didyoumean": "^1.2.2",
@@ -58,6 +53,8 @@
58
53
  "tailwind-merge": "^2.5.4"
59
54
  },
60
55
  "devDependencies": {
56
+ "@repo/agent-sdk": "*",
57
+ "@types/minimatch": "^6.0.0",
61
58
  "@types/react": "^19.1.0",
62
59
  "@types/react-dom": "^19.1.1",
63
60
  "autoprefixer": "^10.4.22",
@@ -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 {};