@convai/web-sdk 1.8.0-beta.2 → 1.8.0-beta.4
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 +30 -0
- package/dist/core/AudioManager.d.ts +3 -3
- package/dist/core/AudioManager.js +1 -1
- package/dist/core/ConnectionStateHandler.d.ts +1 -1
- package/dist/core/ConvaiClient.d.ts +6 -5
- package/dist/core/ConvaiClient.d.ts.map +1 -1
- package/dist/core/ConvaiClient.js +126 -43
- package/dist/core/ConvaiClient.js.map +1 -1
- package/dist/core/MemoryManager.d.ts +1 -1
- package/dist/core/MessageHandler.d.ts +4 -3
- package/dist/core/MessageHandler.d.ts.map +1 -1
- package/dist/core/MessageHandler.js +28 -11
- package/dist/core/MessageHandler.js.map +1 -1
- package/dist/core/SSESession.d.ts +44 -0
- package/dist/core/SSESession.d.ts.map +1 -0
- package/dist/core/SSESession.js +200 -0
- package/dist/core/SSESession.js.map +1 -0
- package/dist/core/ScreenShareManager.d.ts +2 -2
- package/dist/core/ScreenShareManager.js +2 -2
- package/dist/core/VideoManager.d.ts +2 -2
- package/dist/core/VideoManager.js +3 -3
- package/dist/core/connectRequest.d.ts +3 -1
- package/dist/core/connectRequest.d.ts.map +1 -1
- package/dist/core/connectRequest.js +27 -0
- package/dist/core/connectRequest.js.map +1 -1
- package/dist/core/contextUpdateRequest.d.ts +1 -1
- package/dist/core/index.d.ts +12 -12
- package/dist/core/index.js +10 -10
- package/dist/core/logicalTurn.d.ts +5 -0
- package/dist/core/logicalTurn.d.ts.map +1 -0
- package/dist/core/logicalTurn.js +10 -0
- package/dist/core/logicalTurn.js.map +1 -0
- package/dist/core/types.d.ts +14 -5
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js.map +1 -1
- package/dist/core/videoSourceState.d.ts +1 -1
- package/dist/core/visionRequest.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/lipsync-helpers/createBlendshapeQueue.d.ts +2 -2
- package/dist/lipsync-helpers/createBlendshapeQueue.js +2 -2
- package/dist/lipsync-helpers/declarativeMapping.d.ts +1 -1
- package/dist/lipsync-helpers/declarativeMapping.js +2 -2
- package/dist/lipsync-helpers/index.d.ts +12 -12
- package/dist/lipsync-helpers/index.js +9 -9
- package/dist/lipsync-helpers/mhaLimitDrivers.js +2 -2
- package/dist/lipsync-helpers/naturalness/processor.d.ts +1 -1
- package/dist/lipsync-helpers/naturalness/processor.js +1 -1
- package/dist/lipsync-helpers/naturalness/profiles/mha.d.ts +1 -1
- package/dist/lipsync-helpers/naturalness/profiles/mha.js +1 -1
- package/dist/lipsync-helpers/presetMappers.d.ts +1 -1
- package/dist/react/components/ConvaiWidget.d.ts +1 -1
- package/dist/react/components/ConvaiWidget.js +4 -4
- package/dist/react/components/index.d.ts +1 -1
- package/dist/react/components/index.js +1 -1
- package/dist/react/components/rtc-widget/components/AudioSettingsPanel.d.ts +1 -1
- package/dist/react/components/rtc-widget/components/ConviMessage.js +3 -3
- package/dist/react/components/rtc-widget/components/FloatingVideo.js +3 -3
- package/dist/react/components/rtc-widget/components/MessageBubble.js +1 -1
- package/dist/react/components/rtc-widget/components/MessageList.d.ts +1 -1
- package/dist/react/components/rtc-widget/components/MessageList.js +4 -4
- package/dist/react/components/rtc-widget/components/UserMessage.js +3 -3
- package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js +4 -4
- package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js +3 -3
- package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js +4 -4
- package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js +3 -3
- package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js +3 -3
- package/dist/react/components/rtc-widget/components/conviComponents/index.d.ts +5 -5
- package/dist/react/components/rtc-widget/components/conviComponents/index.js +5 -5
- package/dist/react/components/rtc-widget/components/index.d.ts +8 -8
- package/dist/react/components/rtc-widget/components/index.js +9 -9
- package/dist/react/components/rtc-widget/index.d.ts +5 -5
- package/dist/react/components/rtc-widget/index.js +3 -3
- package/dist/react/components/rtc-widget/styles/icons.d.ts +1 -1
- package/dist/react/components/rtc-widget/styles/icons.js +1 -1
- package/dist/react/components/rtc-widget/styles/index.d.ts +5 -5
- package/dist/react/components/rtc-widget/styles/index.js +4 -4
- package/dist/react/components/rtc-widget/styles/styledComponents.js +1 -1
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/index.js +3 -3
- package/dist/react/hooks/useCharacterInfo.js +1 -1
- package/dist/react/hooks/useConvaiClient.d.ts +1 -1
- package/dist/react/hooks/useConvaiClient.js +1 -1
- package/dist/react/index.d.ts +6 -6
- package/dist/react/index.js +6 -6
- package/dist/vanilla/AudioRenderer.js +1 -1
- package/dist/vanilla/ConvaiWidget.d.ts +1 -1
- package/dist/vanilla/ConvaiWidget.js +4 -4
- package/dist/vanilla/WebSocketSession.d.ts +1 -1
- package/dist/vanilla/WebSocketSession.js +1 -1
- package/dist/vanilla/index.d.ts +5 -5
- package/dist/vanilla/index.js +4 -4
- package/dist/vanilla/types.d.ts +1 -1
- package/dist/vanilla/websocket.d.ts +1 -1
- package/dist/vanilla/websocket.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +5 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RoomEvent } from 'livekit-client';
|
|
2
|
-
import { logger } from '../utils/logger';
|
|
2
|
+
import { logger } from '../utils/logger.js';
|
|
3
3
|
/**
|
|
4
4
|
* AudioRenderer - Manages audio playback for remote participants
|
|
5
5
|
* Automatically creates and attaches audio elements for remote audio tracks
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Vanilla ConvaiWidget - Complete UI widget for Convai conversations
|
|
3
3
|
* Ports the React ConvaiWidget to vanilla TypeScript with DOM manipulation
|
|
4
4
|
*/
|
|
5
|
-
import type { VanillaWidgetOptions, VanillaWidget } from "./types";
|
|
5
|
+
import type { VanillaWidgetOptions, VanillaWidget } from "./types.js";
|
|
6
6
|
/**
|
|
7
7
|
* Create a Convai chat widget in the specified container
|
|
8
8
|
*
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Vanilla ConvaiWidget - Complete UI widget for Convai conversations
|
|
3
3
|
* Ports the React ConvaiWidget to vanilla TypeScript with DOM manipulation
|
|
4
4
|
*/
|
|
5
|
-
import { AudioRenderer } from "./AudioRenderer";
|
|
6
|
-
import { aeroTheme, injectGlobalStyles, injectKeyframes, } from "./styles";
|
|
7
|
-
import { Icons } from "./icons";
|
|
8
|
-
import { ConvaiClient } from "../core/ConvaiClient";
|
|
5
|
+
import { AudioRenderer } from "./AudioRenderer.js";
|
|
6
|
+
import { aeroTheme, injectGlobalStyles, injectKeyframes, } from "./styles.js";
|
|
7
|
+
import { Icons } from "./icons.js";
|
|
8
|
+
import { ConvaiClient } from "../core/ConvaiClient.js";
|
|
9
9
|
/**
|
|
10
10
|
* Positioning declarations for the widget root, keyed by `placement`. The
|
|
11
11
|
* `bottom-right` entry must stay byte-identical to the literals it replaces --
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PipecatClient, RTVIEvent } from "@pipecat-ai/client-js";
|
|
2
2
|
import { WebSocketTransport } from "@pipecat-ai/websocket-transport";
|
|
3
|
-
import { EventEmitter } from "../core/EventEmitter";
|
|
3
|
+
import { EventEmitter } from "../core/EventEmitter.js";
|
|
4
4
|
/**
|
|
5
5
|
* Adapter that wraps PipecatClient + WebSocketTransport for use in ConvaiClient.
|
|
6
6
|
*
|
package/dist/vanilla/index.d.ts
CHANGED
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
* // - client.audioControls, videoControls, etc.
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
export { ConvaiClient } from '../core/ConvaiClient';
|
|
32
|
-
export { AudioRenderer } from './AudioRenderer';
|
|
33
|
-
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget';
|
|
34
|
-
export * from '../core/types';
|
|
35
|
-
export type { VanillaWidget, VanillaWidgetOptions, WidgetPlacement, } from './types';
|
|
31
|
+
export { ConvaiClient } from '../core/ConvaiClient.js';
|
|
32
|
+
export { AudioRenderer } from './AudioRenderer.js';
|
|
33
|
+
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget.js';
|
|
34
|
+
export * from '../core/types.js';
|
|
35
|
+
export type { VanillaWidget, VanillaWidgetOptions, WidgetPlacement, } from './types.js';
|
|
36
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/vanilla/index.js
CHANGED
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
// Main client for managing connections
|
|
32
|
-
export { ConvaiClient } from '../core/ConvaiClient';
|
|
32
|
+
export { ConvaiClient } from '../core/ConvaiClient.js';
|
|
33
33
|
// AudioRenderer for custom UI builders (handles audio playback)
|
|
34
|
-
export { AudioRenderer } from './AudioRenderer';
|
|
34
|
+
export { AudioRenderer } from './AudioRenderer.js';
|
|
35
35
|
// Vanilla widget - complete UI solution
|
|
36
|
-
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget';
|
|
36
|
+
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget.js';
|
|
37
37
|
// Re-export ALL core types for complete parity with React
|
|
38
|
-
export * from '../core/types';
|
|
38
|
+
export * from '../core/types.js';
|
|
39
39
|
//# sourceMappingURL=index.js.map
|
package/dist/vanilla/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IConvaiClient, ChatMessage } from '../core/types';
|
|
1
|
+
import type { IConvaiClient, ChatMessage } from '../core/types.js';
|
|
2
2
|
/** Where the widget anchors itself. `inline` renders it in normal document flow. */
|
|
3
3
|
export type WidgetPlacement = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'inline';
|
|
4
4
|
/**
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* const client = new ConvaiClient({ transport: 'websocket', ... });
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
import { ConvaiClient } from "../core/ConvaiClient";
|
|
18
|
-
import { WebSocketSession } from "./WebSocketSession";
|
|
17
|
+
import { ConvaiClient } from "../core/ConvaiClient.js";
|
|
18
|
+
import { WebSocketSession } from "./WebSocketSession.js";
|
|
19
19
|
// Side-effect: register the Pipecat-backed factory with ConvaiClient.
|
|
20
20
|
// After this runs, any ConvaiClient instance can use transport: "websocket".
|
|
21
21
|
ConvaiClient.registerWebSocketTransport((onMessage, enableMic) => new WebSocketSession(onMessage, enableMic));
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.8.0-beta.
|
|
1
|
+
export declare const SDK_VERSION = "1.8.0-beta.4";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,gDAAgD;AAChD,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC","sourcesContent":["// GENERATED by scripts/sync-version.mjs — do not edit by hand.\n// Regenerated from package.json on every build.\nexport const SDK_VERSION = \"1.8.0-beta.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,gDAAgD;AAChD,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC","sourcesContent":["// GENERATED by scripts/sync-version.mjs — do not edit by hand.\n// Regenerated from package.json on every build.\nexport const SDK_VERSION = \"1.8.0-beta.4\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/web-sdk",
|
|
3
|
-
"version": "1.8.0-beta.
|
|
3
|
+
"version": "1.8.0-beta.4",
|
|
4
4
|
"description": "Build web apps with lifelike AI characters. The Convai Web SDK gives you real-time voice, lipsync, emotions, and dynamic context — with first-class support for React and vanilla TypeScript.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -42,11 +42,12 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
|
-
"build": "node scripts/sync-version.mjs && tsc -p tsconfig.build.json && pnpm typecheck:downstream",
|
|
46
|
-
"build:fast": "node scripts/sync-version.mjs && tsc -p tsconfig.build.json",
|
|
47
|
-
"build:prod": "node scripts/sync-version.mjs && NODE_ENV=production tsc -p tsconfig.build.json && pnpm typecheck:downstream",
|
|
45
|
+
"build": "node scripts/sync-version.mjs && tsc -p tsconfig.build.json && node scripts/fix-dist-extensions.mjs && pnpm typecheck:downstream",
|
|
46
|
+
"build:fast": "node scripts/sync-version.mjs && tsc -p tsconfig.build.json && node scripts/fix-dist-extensions.mjs",
|
|
47
|
+
"build:prod": "node scripts/sync-version.mjs && NODE_ENV=production tsc -p tsconfig.build.json && node scripts/fix-dist-extensions.mjs && pnpm typecheck:downstream",
|
|
48
48
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
49
49
|
"clean": "rimraf dist",
|
|
50
|
+
"fix:ext": "node scripts/fix-dist-extensions.mjs",
|
|
50
51
|
"typecheck": "tsc --noEmit",
|
|
51
52
|
"typecheck:downstream": "pnpm -r --filter './examples/**' exec tsc -b --noEmit && pnpm -r --filter './doc-tests/**' exec tsc --noEmit",
|
|
52
53
|
"typecheck:all": "pnpm typecheck && pnpm typecheck:downstream",
|