@elevenlabs/convai-widget-core 0.13.0 → 0.14.0
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/types/config.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export declare const DefaultTextContents: {
|
|
|
119
119
|
file_type_unsupported: string;
|
|
120
120
|
file_too_large: string;
|
|
121
121
|
file_limit_reached: string;
|
|
122
|
+
typing_indicator: string;
|
|
122
123
|
};
|
|
123
124
|
export declare const TextKeys: (keyof typeof DefaultTextContents)[];
|
|
124
125
|
export type TextContents = typeof DefaultTextContents;
|
|
@@ -29,6 +29,9 @@ export type DisplayTranscriptEntry = {
|
|
|
29
29
|
type: "mode_toggle";
|
|
30
30
|
mode: ConversationMode;
|
|
31
31
|
conversationIndex: number;
|
|
32
|
+
} | {
|
|
33
|
+
type: "typing_indicator";
|
|
34
|
+
conversationIndex: number;
|
|
32
35
|
};
|
|
33
36
|
export interface DisplayTranscriptConfig {
|
|
34
37
|
showAgentStatus: boolean;
|
|
@@ -37,5 +40,7 @@ export interface DisplayTranscriptConfig {
|
|
|
37
40
|
firstMessage?: string;
|
|
38
41
|
/** The conversationIndex to use for the prepended first message. */
|
|
39
42
|
firstMessageConversationIndex?: number;
|
|
43
|
+
/** If true, append a typing indicator entry at the end. */
|
|
44
|
+
showTypingIndicator?: boolean;
|
|
40
45
|
}
|
|
41
46
|
export declare function buildDisplayTranscript(entries: TranscriptEntry[], config: DisplayTranscriptConfig): DisplayTranscriptEntry[];
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "0.
|
|
1
|
+
export declare const PACKAGE_VERSION = "0.14.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevenlabs/convai-widget-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "The common library for the Conversational AI Widget.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"remark-parse": "^11.0.0",
|
|
61
61
|
"remark-rehype": "^11.1.2",
|
|
62
62
|
"tailwind-merge": "^3.4.0",
|
|
63
|
-
"@elevenlabs/client": "1.
|
|
63
|
+
"@elevenlabs/client": "1.10.0"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
@@ -71,13 +71,13 @@
|
|
|
71
71
|
"directory": "packages/convai-widget-core"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
|
-
"generate-version": "
|
|
74
|
+
"generate-version": "node ../../scripts/generate-version.mjs",
|
|
75
75
|
"build": "vite build && tsc --declaration --emitDeclarationOnly",
|
|
76
76
|
"build:analyze": "ANALYZE=true vite build",
|
|
77
77
|
"dev": "vite",
|
|
78
78
|
"check-types": "tsc --noEmit --skipLibCheck",
|
|
79
79
|
"lint:es": "pnpm exec eslint .",
|
|
80
|
-
"lint:prettier": "prettier
|
|
80
|
+
"lint:prettier": "prettier \"src/**/*.ts\" --check",
|
|
81
81
|
"test": "vitest"
|
|
82
82
|
}
|
|
83
83
|
}
|