@elevenlabs/convai-widget-core 0.0.10 → 0.1.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.
@@ -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-first-message", "override-language", "override-voice-id", "override-text-only", "mic-muting", "transcript", "text-input", "text-contents"];
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-first-message", "override-language", "override-voice-id", "override-text-only", "mic-muting", "transcript", "text-input", "text-contents", "user-id"];
3
3
  export type CustomAttributes = {
4
4
  [key in (typeof CustomAttributeList)[number]]?: string;
5
5
  };
@@ -45,6 +45,7 @@ export declare const DefaultTextContents: {
45
45
  main_label: string;
46
46
  start_call: string;
47
47
  start_chat: string;
48
+ send_message: string;
48
49
  new_call: string;
49
50
  end_call: string;
50
51
  mute_microphone: string;
@@ -95,4 +96,4 @@ export declare const DefaultStyles: {
95
96
  export declare const StyleKeys: (keyof typeof DefaultStyles)[];
96
97
  export type Styles = typeof DefaultStyles;
97
98
  export declare function parseLocation(location?: string): Location;
98
- export type Location = "us" | "global" | "eu-residency";
99
+ export type Location = "us" | "global" | "eu-residency" | "in-residency";
@@ -0,0 +1 @@
1
+ export declare const PACKAGE_VERSION = "0.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elevenlabs/convai-widget-core",
3
- "version": "0.0.10",
3
+ "version": "0.1.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",
@@ -31,7 +31,7 @@
31
31
  "clsx": "^2.1.1",
32
32
  "preact": "^10.26.5",
33
33
  "preact-custom-element": "^4.3.0",
34
- "@elevenlabs/client": "0.1.7"
34
+ "@elevenlabs/client": "0.4.0"
35
35
  },
36
36
  "repository": {
37
37
  "type": "git",
@@ -39,8 +39,10 @@
39
39
  "directory": "packages/convai-widget-core"
40
40
  },
41
41
  "scripts": {
42
+ "generate-version": "printf \"// This file is auto-generated during build\\nexport const PACKAGE_VERSION = \\\"%s\\\";\\n\" \"$npm_package_version\" > src/version.ts",
43
+ "prebuild": "npm run generate-version",
42
44
  "build": "vite build && tsc --declaration --emitDeclarationOnly",
43
- "dev": "vite",
45
+ "dev": "npm run generate-version && vite",
44
46
  "lint": "npm run lint:ts && npm run lint:es && npm run lint:prettier",
45
47
  "lint:ts": "tsc --noEmit --skipLibCheck",
46
48
  "lint:es": "npx eslint .",