@elevenlabs/convai-widget-core 0.6.1 → 0.8.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/components/DismissButton.d.ts +6 -0
- package/dist/components/ExpandButton.d.ts +6 -0
- package/dist/index.js +4338 -4264
- package/dist/mocks/browser.d.ts +8 -0
- package/dist/types/attributes.d.ts +1 -1
- package/dist/types/config.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/widget/CompactExpandableTrigger.d.ts +5 -1
- package/dist/widget/CompactTrigger.d.ts +5 -1
- package/dist/widget/DismissButton.test.d.ts +1 -0
- package/dist/widget/ExpandableTriggerActions.d.ts +5 -1
- package/dist/widget/FullExpandableTrigger.d.ts +5 -1
- package/dist/widget/FullTrigger.d.ts +5 -1
- package/dist/widget/Trigger.d.ts +2 -1
- package/dist/widget/TriggerActions.d.ts +5 -1
- package/package.json +4 -3
package/dist/mocks/browser.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare const AGENTS: {
|
|
|
23
23
|
readonly text_input_enabled: boolean;
|
|
24
24
|
readonly default_expanded: boolean;
|
|
25
25
|
readonly always_expanded: boolean;
|
|
26
|
+
readonly dismissible: boolean;
|
|
26
27
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
27
28
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
28
29
|
readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
|
|
@@ -62,6 +63,7 @@ export declare const AGENTS: {
|
|
|
62
63
|
readonly text_input_enabled: boolean;
|
|
63
64
|
readonly default_expanded: boolean;
|
|
64
65
|
readonly always_expanded: boolean;
|
|
66
|
+
readonly dismissible: boolean;
|
|
65
67
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
66
68
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
67
69
|
readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
|
|
@@ -103,6 +105,7 @@ export declare const AGENTS: {
|
|
|
103
105
|
readonly mic_muting_enabled: boolean;
|
|
104
106
|
readonly default_expanded: boolean;
|
|
105
107
|
readonly always_expanded: boolean;
|
|
108
|
+
readonly dismissible: boolean;
|
|
106
109
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
107
110
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
108
111
|
readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
|
|
@@ -158,6 +161,7 @@ export declare const AGENTS: {
|
|
|
158
161
|
readonly text_input_enabled: boolean;
|
|
159
162
|
readonly default_expanded: boolean;
|
|
160
163
|
readonly always_expanded: boolean;
|
|
164
|
+
readonly dismissible: boolean;
|
|
161
165
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
162
166
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
163
167
|
readonly disable_banner: boolean;
|
|
@@ -194,6 +198,7 @@ export declare const AGENTS: {
|
|
|
194
198
|
readonly transcript_enabled: boolean;
|
|
195
199
|
readonly text_input_enabled: boolean;
|
|
196
200
|
readonly always_expanded: boolean;
|
|
201
|
+
readonly dismissible: boolean;
|
|
197
202
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
198
203
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
199
204
|
readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
|
|
@@ -233,6 +238,7 @@ export declare const AGENTS: {
|
|
|
233
238
|
readonly transcript_enabled: boolean;
|
|
234
239
|
readonly text_input_enabled: boolean;
|
|
235
240
|
readonly always_expanded: boolean;
|
|
241
|
+
readonly dismissible: boolean;
|
|
236
242
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
237
243
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
238
244
|
readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
|
|
@@ -274,6 +280,7 @@ export declare const AGENTS: {
|
|
|
274
280
|
readonly transcript_enabled: boolean;
|
|
275
281
|
readonly text_input_enabled: boolean;
|
|
276
282
|
readonly always_expanded: boolean;
|
|
283
|
+
readonly dismissible: boolean;
|
|
277
284
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
278
285
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
279
286
|
readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
|
|
@@ -313,6 +320,7 @@ export declare const AGENTS: {
|
|
|
313
320
|
readonly transcript_enabled: boolean;
|
|
314
321
|
readonly text_input_enabled: boolean;
|
|
315
322
|
readonly always_expanded: boolean;
|
|
323
|
+
readonly dismissible: boolean;
|
|
316
324
|
readonly text_contents: Partial<import("../types/config").TextContents>;
|
|
317
325
|
readonly styles?: Partial<import("../types/config").Styles>;
|
|
318
326
|
readonly language_presets: Partial<Record<import("@elevenlabs/types").ConversationConfigOverrideAgentLanguage, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function parseBoolAttribute(value: string | undefined): boolean | null;
|
|
2
|
-
export declare const CustomAttributeList: readonly ["variant", "placement", "override-config", "avatar-image-url", "avatar-orb-color-1", "avatar-orb-color-2", "agent-id", "signed-url", "terms-key", "server-location", "language", "dynamic-variables", "show-avatar-when-collapsed", "override-prompt", "override-llm", "override-speed", "override-stability", "override-similarity-boost", "override-first-message", "override-language", "override-voice-id", "override-text-only", "mic-muting", "transcript", "text-input", "text-contents", "default-expanded", "always-expanded", "user-id", "use-rtc", "collect-feedback", "worklet-path-raw-audio-processor", "worklet-path-audio-concat-processor", "worklet-path-libsamplerate", "syntax-highlight-theme", "markdown-link-allowed-hosts", "markdown-link-include-www", "markdown-link-allow-http"];
|
|
2
|
+
export declare const CustomAttributeList: readonly ["variant", "placement", "override-config", "avatar-image-url", "avatar-orb-color-1", "avatar-orb-color-2", "agent-id", "signed-url", "terms-key", "server-location", "language", "dynamic-variables", "show-avatar-when-collapsed", "override-prompt", "override-llm", "override-speed", "override-stability", "override-similarity-boost", "override-first-message", "override-language", "override-voice-id", "override-text-only", "mic-muting", "transcript", "text-input", "text-contents", "default-expanded", "always-expanded", "dismissible", "user-id", "use-rtc", "collect-feedback", "worklet-path-raw-audio-processor", "worklet-path-audio-concat-processor", "worklet-path-libsamplerate", "syntax-highlight-theme", "markdown-link-allowed-hosts", "markdown-link-include-www", "markdown-link-allow-http"];
|
|
3
3
|
export type CustomAttributes = {
|
|
4
4
|
[key in (typeof CustomAttributeList)[number]]?: string;
|
|
5
5
|
};
|
package/dist/types/config.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export interface WidgetConfig {
|
|
|
32
32
|
text_input_enabled: boolean;
|
|
33
33
|
default_expanded: boolean;
|
|
34
34
|
always_expanded: boolean;
|
|
35
|
+
dismissible: boolean;
|
|
35
36
|
text_contents: Partial<TextContents>;
|
|
36
37
|
styles?: Partial<Styles>;
|
|
37
38
|
language_presets: Partial<Record<Language, {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PACKAGE_VERSION = "0.
|
|
1
|
+
export declare const PACKAGE_VERSION = "0.8.0";
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { ExpandableProps } from "./Trigger";
|
|
2
|
-
|
|
2
|
+
interface CompactExpandableTriggerProps extends ExpandableProps {
|
|
3
|
+
onDismiss?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function CompactExpandableTrigger({ expanded, className, onDismiss, ...rest }: CompactExpandableTriggerProps): import("preact").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "preact/compat";
|
|
2
|
-
|
|
2
|
+
interface CompactTriggerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
onDismiss?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function CompactTrigger({ className, onDismiss, ...rest }: CompactTriggerProps): import("preact").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { ExpandableProps } from "./Trigger";
|
|
2
|
-
|
|
2
|
+
interface ExpandableTriggerActionsProps extends ExpandableProps {
|
|
3
|
+
onDismiss?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function ExpandableTriggerActions({ expanded, onDismiss }: ExpandableTriggerActionsProps): import("preact").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { ExpandableProps } from "./Trigger";
|
|
2
|
-
|
|
2
|
+
interface FullExpandableTriggerProps extends ExpandableProps {
|
|
3
|
+
onDismiss?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function FullExpandableTrigger({ expanded, className, onDismiss, ...rest }: FullExpandableTriggerProps): import("preact").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from "preact/compat";
|
|
2
|
-
|
|
2
|
+
interface FullTriggerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
onDismiss?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function FullTrigger({ className, onDismiss, ...rest }: FullTriggerProps): import("preact").JSX.Element;
|
|
6
|
+
export {};
|
package/dist/widget/Trigger.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface ExpandableProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
interface TriggerProps {
|
|
7
7
|
expandable?: boolean;
|
|
8
8
|
expanded: Signal<boolean>;
|
|
9
|
+
onDismiss?: () => void;
|
|
9
10
|
}
|
|
10
|
-
export declare function Trigger({ expandable, expanded }: TriggerProps): import("preact").JSX.Element;
|
|
11
|
+
export declare function Trigger({ expandable, expanded, onDismiss }: TriggerProps): import("preact").JSX.Element;
|
|
11
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevenlabs/convai-widget-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"eslint": "^9.8.0",
|
|
23
23
|
"msw": "^2.7.5",
|
|
24
24
|
"playwright": "^1.46.1",
|
|
25
|
-
"tailwindcss": "^
|
|
25
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
26
|
+
"tailwindcss": "^4.1.18",
|
|
26
27
|
"typescript": "^5.5.4",
|
|
27
28
|
"unified": "^11.0.5",
|
|
28
29
|
"vite": "^6.4.1",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"remark-parse": "^11.0.0",
|
|
58
59
|
"remark-rehype": "^11.1.2",
|
|
59
60
|
"tailwind-merge": "^3.4.0",
|
|
60
|
-
"@elevenlabs/client": "0.13.
|
|
61
|
+
"@elevenlabs/client": "0.13.1"
|
|
61
62
|
},
|
|
62
63
|
"publishConfig": {
|
|
63
64
|
"access": "public"
|