@eloquentai/chat-sdk 0.33.7-dev → 0.33.9-dev

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/dist/ui.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ export { ChatInterface, type ChatInterfaceProps, } from './components/chat-interface';
2
+ export { ChatInterfaceProvider } from './components/chat-interface/context';
3
+ export { SkeletonChatInterface } from './components/chat-interface/skeleton';
4
+ export { MessageBubble } from './components/chat-message-bubble';
5
+ export { RatingMessageBubble } from './components/chat-rating-bubble';
6
+ export { Banner } from './components/banner';
7
+ export { Logo } from './components/logo';
8
+ export { MarkdownViewer } from './components/ui/markdown-viewer';
9
+ export { ThemeProvider, useTheme, type ThemeContextType, } from './contexts/theme.context';
10
+ export type { Message, MessageData } from './type';
package/dist/ui.mjs ADDED
@@ -0,0 +1,19 @@
1
+ import { B as d, C as t, a as r, L as o, M as f, b as i, R as b, S as l, T as c, u as g } from "./index-IRBMUmPg.js";
2
+ try {
3
+ let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, a = new e.Error().stack;
4
+ a && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[a] = "48430cce-7a96-42c3-9f96-d86d25020e12", e._sentryDebugIdIdentifier = "sentry-dbid-48430cce-7a96-42c3-9f96-d86d25020e12");
5
+ } catch {
6
+ }
7
+ export {
8
+ d as Banner,
9
+ t as ChatInterface,
10
+ r as ChatInterfaceProvider,
11
+ o as Logo,
12
+ f as MarkdownViewer,
13
+ i as MessageBubble,
14
+ b as RatingMessageBubble,
15
+ l as SkeletonChatInterface,
16
+ c as ThemeProvider,
17
+ g as useTheme
18
+ };
19
+ //# sourceMappingURL=ui.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eloquentai/chat-sdk",
3
- "version": "0.33.7-dev",
3
+ "version": "0.33.9-dev",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "chat",
@@ -16,8 +16,12 @@
16
16
  "types": "dist/index.d.ts",
17
17
  "exports": {
18
18
  ".": {
19
- "import": "./dist/index.mjs",
20
- "types": "./dist/index.d.ts"
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs"
21
+ },
22
+ "./ui": {
23
+ "types": "./dist/ui.d.ts",
24
+ "import": "./dist/ui.mjs"
21
25
  },
22
26
  "./index.css": "./dist/index.css"
23
27
  },
@@ -29,9 +33,9 @@
29
33
  "build": "tsc -b && vite build",
30
34
  "build:dev": "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev",
31
35
  "build:prod": "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod",
32
- "build:vanilla": "tsc -b && vite build --config vite.vanilla.config.ts",
33
- "build:vanilla:dev": "VITE_ENVIRONMENT=dev tsc -b && vite build --config vite.vanilla.config.ts --mode dev",
34
- "build:vanilla:prod": "VITE_ENVIRONMENT=prod tsc -b && vite build --config vite.vanilla.config.ts --mode prod",
36
+ "build:vanilla": "tsc -b && vite build --config vite.vanilla.config.ts && node scripts/verify-embed-bundle.mjs",
37
+ "build:vanilla:dev": "VITE_ENVIRONMENT=dev tsc -b && vite build --config vite.vanilla.config.ts --mode dev && node scripts/verify-embed-bundle.mjs",
38
+ "build:vanilla:prod": "VITE_ENVIRONMENT=prod tsc -b && vite build --config vite.vanilla.config.ts --mode prod && node scripts/verify-embed-bundle.mjs",
35
39
  "build:analyze": "ANALYZE=true npm run build:vanilla:prod",
36
40
  "bundle:report": "node scripts/bundle-report.mjs",
37
41
  "bundle:baseline": "node scripts/bundle-report.mjs --json > bundle-baseline.json",
@@ -46,7 +50,8 @@
46
50
  "test:run": "vitest run",
47
51
  "preview:dev": "npx http-server ./dev",
48
52
  "storybook": "storybook dev -p 6007",
49
- "build-storybook": "storybook build"
53
+ "build-storybook": "storybook build",
54
+ "verify:embed": "node scripts/verify-embed-bundle.mjs"
50
55
  },
51
56
  "devDependencies": {
52
57
  "@eslint/js": "^9.17.0",
@@ -74,6 +79,7 @@
74
79
  "postcss": "^8.5.26",
75
80
  "prettier": "^3.4.2",
76
81
  "rollup-plugin-visualizer": "^7.0.1",
82
+ "rollup-preserve-directives": "^1.1.3",
77
83
  "storybook": "^10.4.6",
78
84
  "tailwind-scrollbar": "^4.0.2",
79
85
  "tailwindcss": "^4.3.3",
@@ -119,5 +125,12 @@
119
125
  "esbuild@0.28.2": true,
120
126
  "fsevents@2.3.3": true,
121
127
  "@sentry/cli@2.58.6": true
122
- }
128
+ },
129
+ "sideEffects": [
130
+ "**/*.css",
131
+ "./src/index.ts",
132
+ "./src/instrumentation.ts",
133
+ "./src/components/index.ts",
134
+ "./dist/index.mjs"
135
+ ]
123
136
  }