@eloquentai/chat-sdk 0.33.9-dev → 0.33.11-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/README.md +1 -1
- package/dist/components/chat/chat.hook.d.ts +17 -1
- package/dist/components/chat/index.d.ts +8 -3
- package/dist/components/chat/validations.d.ts +61 -61
- package/dist/components/chat-interface/index.d.ts +14 -5
- package/dist/components/chat-interface/shared.d.ts +9 -0
- package/dist/components/chat-interface/skeleton.d.ts +3 -1
- package/dist/components/chat-interface/suggested-messages.d.ts +6 -5
- package/dist/embed-loader.d.ts +35 -0
- package/dist/embed-loader.entry.d.ts +1 -0
- package/dist/hooks/use-debounce.d.ts +6 -0
- package/dist/hooks/use-latest-ref.d.ts +9 -0
- package/dist/hooks/use-typed-text.d.ts +1 -1
- package/dist/index-hFbiYJI3.js +4165 -0
- package/dist/index-hFbiYJI3.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.mjs +1493 -6609
- package/dist/index.mjs.map +1 -1
- package/dist/lib/appsync-events-client.d.ts +71 -0
- package/dist/lib/config.d.ts +0 -15
- package/dist/{index-IRBMUmPg.js → skeleton-BWoqEWdI.js} +2403 -2635
- package/dist/skeleton-BWoqEWdI.js.map +1 -0
- package/dist/ui.mjs +7 -7
- package/package.json +6 -11
- package/dist/components/logo-animated.d.ts +0 -6
- package/dist/config-CFAxzluW.js +0 -36
- package/dist/config-CFAxzluW.js.map +0 -1
- package/dist/hooks/useTypewriter.d.ts +0 -1
- package/dist/index-IRBMUmPg.js.map +0 -1
- package/dist/index-oyJIfzwW.js +0 -18793
- package/dist/index-oyJIfzwW.js.map +0 -1
- package/dist/logo-animated-CI8oFAlZ.js +0 -7413
- package/dist/logo-animated-CI8oFAlZ.js.map +0 -1
package/dist/ui.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { B as
|
|
1
|
+
import { B as n, C as t, a as r, L as o, M as f, b, R as i, S as l, T as g, u } from "./skeleton-BWoqEWdI.js";
|
|
2
2
|
try {
|
|
3
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] = "
|
|
4
|
+
a && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[a] = "f9ed1380-1437-4e00-acb2-cdd914034062", e._sentryDebugIdIdentifier = "sentry-dbid-f9ed1380-1437-4e00-acb2-cdd914034062");
|
|
5
5
|
} catch {
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
n as Banner,
|
|
9
9
|
t as ChatInterface,
|
|
10
10
|
r as ChatInterfaceProvider,
|
|
11
11
|
o as Logo,
|
|
12
12
|
f as MarkdownViewer,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
b as MessageBubble,
|
|
14
|
+
i as RatingMessageBubble,
|
|
15
15
|
l as SkeletonChatInterface,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
g as ThemeProvider,
|
|
17
|
+
u as useTheme
|
|
18
18
|
};
|
|
19
19
|
//# sourceMappingURL=ui.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eloquentai/chat-sdk",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.11-dev",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chat",
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
"build": "tsc -b && vite build",
|
|
34
34
|
"build:dev": "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev",
|
|
35
35
|
"build:prod": "VITE_ENVIRONMENT=prod tsc -b && vite build --mode prod",
|
|
36
|
-
"build:
|
|
37
|
-
"build:vanilla
|
|
38
|
-
"build:vanilla:
|
|
36
|
+
"build:embed-loader": "vite build --config vite.embed-loader.config.ts",
|
|
37
|
+
"build:vanilla": "tsc -b && vite build --config vite.vanilla.config.ts && npm run build:embed-loader && node scripts/verify-embed-bundle.mjs",
|
|
38
|
+
"build:vanilla:dev": "VITE_ENVIRONMENT=dev tsc -b && vite build --config vite.vanilla.config.ts --mode dev && npm run build:embed-loader && node scripts/verify-embed-bundle.mjs",
|
|
39
|
+
"build:vanilla:prod": "VITE_ENVIRONMENT=prod tsc -b && vite build --config vite.vanilla.config.ts --mode prod && npm run build:embed-loader && node scripts/verify-embed-bundle.mjs",
|
|
39
40
|
"build:analyze": "ANALYZE=true npm run build:vanilla:prod",
|
|
40
41
|
"bundle:report": "node scripts/bundle-report.mjs",
|
|
41
42
|
"bundle:baseline": "node scripts/bundle-report.mjs --json > bundle-baseline.json",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
58
|
"@eslint/js": "^9.17.0",
|
|
59
|
+
"@sentry/vite-plugin": "^3.6.1",
|
|
58
60
|
"@storybook/addon-a11y": "^10.4.6",
|
|
59
61
|
"@storybook/addon-docs": "^10.4.6",
|
|
60
62
|
"@storybook/react-vite": "^10.4.6",
|
|
@@ -68,7 +70,6 @@
|
|
|
68
70
|
"@types/react-dom": "^18",
|
|
69
71
|
"@vitejs/plugin-react": "^4.3.4",
|
|
70
72
|
"ajv": "^8.20.0",
|
|
71
|
-
"aws-amplify": "^6.16.4",
|
|
72
73
|
"eslint": "^9.39.4",
|
|
73
74
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
74
75
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
@@ -81,10 +82,8 @@
|
|
|
81
82
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
82
83
|
"rollup-preserve-directives": "^1.1.3",
|
|
83
84
|
"storybook": "^10.4.6",
|
|
84
|
-
"tailwind-scrollbar": "^4.0.2",
|
|
85
85
|
"tailwindcss": "^4.3.3",
|
|
86
86
|
"terser": "^5.46.0",
|
|
87
|
-
"tw-animate-css": "^1.4.0",
|
|
88
87
|
"typescript": "~5.7.2",
|
|
89
88
|
"typescript-eslint": "^8.18.2",
|
|
90
89
|
"vite": "^6.4.3",
|
|
@@ -92,7 +91,6 @@
|
|
|
92
91
|
"vitest": "^4.1.9"
|
|
93
92
|
},
|
|
94
93
|
"peerDependencies": {
|
|
95
|
-
"aws-amplify": ">=6.8.0",
|
|
96
94
|
"react": ">=18",
|
|
97
95
|
"react-dom": ">=18"
|
|
98
96
|
},
|
|
@@ -100,10 +98,7 @@
|
|
|
100
98
|
"@radix-ui/react-avatar": "^1.1.11",
|
|
101
99
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
102
100
|
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
103
|
-
"@rive-app/react-canvas": "^4.27.1",
|
|
104
101
|
"@sentry/react": "^9.19.0",
|
|
105
|
-
"@sentry/vite-plugin": "^3.4.0",
|
|
106
|
-
"@uidotdev/usehooks": "^2.4.1",
|
|
107
102
|
"clsx": "^2.1.1",
|
|
108
103
|
"dompurify": "^3.4.13",
|
|
109
104
|
"lucide-react": "^0.577.0",
|
package/dist/config-CFAxzluW.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import "./index-IRBMUmPg.js";
|
|
2
|
-
try {
|
|
3
|
-
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
4
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4fa3fbd0-d5e7-4d27-8da8-353f72257f91", e._sentryDebugIdIdentifier = "sentry-dbid-4fa3fbd0-d5e7-4d27-8da8-353f72257f91");
|
|
5
|
-
} catch {
|
|
6
|
-
}
|
|
7
|
-
const o = { BASE_URL: "/", DEV: !1, MODE: "dev", PROD: !0, SSR: !1, VITE_API_URL: "https://chat.eloquentai.dev", VITE_CDN_URL: "https://cdn.eloquentai.dev", VITE_ENVIRONMENT: "dev", VITE_REGION_API_URL: "https://region.eloquentai.dev" }, d = "/assets/logo-waiting-simple.riv";
|
|
8
|
-
function n(e) {
|
|
9
|
-
return typeof window > "u" || typeof import.meta > "u" ? "" : o[e] || "";
|
|
10
|
-
}
|
|
11
|
-
const _ = n("VITE_CDN_URL"), f = n("VITE_API_URL"), s = n("VITE_REGION_API_URL"), r = _ + d;
|
|
12
|
-
function l() {
|
|
13
|
-
return f || "";
|
|
14
|
-
}
|
|
15
|
-
function u() {
|
|
16
|
-
return s || "";
|
|
17
|
-
}
|
|
18
|
-
function I(e, t, i) {
|
|
19
|
-
return {
|
|
20
|
-
API: {
|
|
21
|
-
Events: {
|
|
22
|
-
endpoint: e || "",
|
|
23
|
-
region: i || "",
|
|
24
|
-
defaultAuthMode: "apiKey",
|
|
25
|
-
apiKey: t || ""
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
r as L,
|
|
32
|
-
I as a,
|
|
33
|
-
l as b,
|
|
34
|
-
u as g
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=config-CFAxzluW.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-CFAxzluW.js","sources":["../src/lib/config.ts"],"sourcesContent":["const logoAnimatedUrl = \"/assets/logo-waiting-simple.riv\";\n\n// Helper to safely access import.meta.env in SSR environments\nfunction getEnvVariable(key: string): string {\n // Check if we're in a browser or if import.meta is available\n if (typeof window === \"undefined\" || typeof import.meta === \"undefined\") {\n return \"\";\n }\n return (import.meta.env[key] as string) || \"\";\n}\n\n// Define environment-specific constants that will be replaced during build\nconst ENV_CDN_URL = getEnvVariable(\"VITE_CDN_URL\");\nconst ENV_API_URL = getEnvVariable(\"VITE_API_URL\");\nconst ENV_REGION_API_URL = getEnvVariable(\"VITE_REGION_API_URL\");\n\nexport const LOGO_ANIMATED_URL = ENV_CDN_URL + logoAnimatedUrl;\n\n/**\n * Returns the API URL based on the provided custom URL or the default API URL.\n * @returns The API URL.\n */\nexport function getApiUrl(): string {\n return ENV_API_URL || \"\";\n}\n\n/**\n * Returns the Region API URL based on the environment.\n * @returns The Region API URL.\n */\nexport function getRegionApiUrl(): string {\n return ENV_REGION_API_URL || \"\";\n}\n\n/**\n * Returns the Amplify configuration for the API.\n * @returns The Amplify configuration.\n */\nexport function amplifyConfig(\n appSyncUrl?: string | null,\n appSyncApiKey?: string | null,\n appSyncRegion?: string | null,\n) {\n return {\n API: {\n Events: {\n endpoint: appSyncUrl || \"\",\n region: appSyncRegion || \"\",\n defaultAuthMode: \"apiKey\",\n apiKey: appSyncApiKey || \"\",\n },\n },\n } as const;\n}\n"],"names":["logoAnimatedUrl","getEnvVariable","key","__vite_import_meta_env__","ENV_CDN_URL","ENV_API_URL","ENV_REGION_API_URL","LOGO_ANIMATED_URL","getApiUrl","getRegionApiUrl","amplifyConfig","appSyncUrl","appSyncApiKey","appSyncRegion"],"mappings":";;;;;;8OAAMA,IAAkB;AAGxB,SAASC,EAAeC,GAAqB;AAE3C,SAAI,OAAO,SAAW,OAAe,OAAO,cAAgB,MACnD,KAEDC,EAAgBD,CAAG,KAAgB;AAC7C;AAGA,MAAME,IAAcH,EAAe,cAAc,GAC3CI,IAAcJ,EAAe,cAAc,GAC3CK,IAAqBL,EAAe,qBAAqB,GAElDM,IAAoBH,IAAcJ;AAMxC,SAASQ,IAAoB;AAClC,SAAOH,KAAe;AACxB;AAMO,SAASI,IAA0B;AACxC,SAAOH,KAAsB;AAC/B;AAMO,SAASI,EACdC,GACAC,GACAC,GACA;AACA,SAAO;AAAA,IACL,KAAK;AAAA,MACH,QAAQ;AAAA,QACN,UAAUF,KAAc;AAAA,QACxB,QAAQE,KAAiB;AAAA,QACzB,iBAAiB;AAAA,QACjB,QAAQD,KAAiB;AAAA,MAAA;AAAA,IAC3B;AAAA,EACF;AAEJ;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useTypewriter(text: string, enabled?: boolean): string;
|