@convai/web-sdk 1.9.0-beta.2 → 1.9.0-beta.3
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/core/AudioManager.d.ts +3 -3
- package/dist/core/AudioManager.js +1 -1
- package/dist/core/CharacterRoster.d.ts +1 -1
- package/dist/core/CharacterVersionManager.d.ts +2 -2
- package/dist/core/CharacterVersionManager.js +1 -1
- package/dist/core/ConnectionStateHandler.d.ts +1 -1
- package/dist/core/ConvaiClient.d.ts +6 -6
- package/dist/core/ConvaiClient.js +20 -20
- package/dist/core/MemoryManager.d.ts +1 -1
- package/dist/core/MessageHandler.d.ts +3 -3
- package/dist/core/MessageHandler.js +5 -5
- package/dist/core/SSESession.d.ts +1 -1
- package/dist/core/SSESession.js +4 -4
- 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 +1 -1
- package/dist/core/contextUpdateRequest.d.ts +1 -1
- package/dist/core/index.d.ts +25 -25
- package/dist/core/index.js +19 -19
- package/dist/core/modelOutput.d.ts +2 -2
- package/dist/core/publishedChat.d.ts +1 -1
- package/dist/core/rosterRequest.d.ts +1 -1
- package/dist/core/rosterRequest.js +1 -1
- package/dist/core/types.d.ts +5 -5
- package/dist/core/videoSourceState.d.ts +1 -1
- package/dist/core/visionRequest.d.ts +1 -1
- package/dist/embed/ConvaiChatElement.js +2 -2
- package/dist/embed/browser.d.ts +2 -2
- package/dist/embed/browser.js +3 -3
- package/dist/embed/chat-embed-v1.js +1 -2
- 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 +3 -3
- package/dist/react/components/ConvaiWidget.js +5 -5
- 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.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/MarkdownRenderer.d.ts +1 -1
- package/dist/react/components/rtc-widget/components/MarkdownRenderer.js +5 -5
- package/dist/react/components/rtc-widget/components/MessageBubble.js +1 -1
- package/dist/react/components/rtc-widget/components/MessageList.d.ts +2 -2
- package/dist/react/components/rtc-widget/components/MessageList.js +4 -4
- package/dist/react/components/rtc-widget/components/SiteCard.d.ts +1 -1
- package/dist/react/components/rtc-widget/components/SiteCard.js +2 -2
- 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 +13 -13
- package/dist/react/index.js +10 -10
- package/dist/utils/lightbox.js +2 -2
- package/dist/utils/linkPresentation.js +1 -1
- package/dist/vanilla/AudioRenderer.js +1 -1
- package/dist/vanilla/ConvaiWidget.d.ts +1 -1
- package/dist/vanilla/ConvaiWidget.js +10 -10
- package/dist/vanilla/WebSocketSession.d.ts +1 -1
- package/dist/vanilla/WebSocketSession.js +1 -1
- package/dist/vanilla/index.d.ts +13 -13
- package/dist/vanilla/index.js +9 -9
- package/dist/vanilla/types.d.ts +3 -3
- 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 +3 -2
- package/dist/embed/chat-embed-v1.js.map +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { useConvaiClient } from './useConvaiClient';
|
|
2
|
-
export { useCharacterInfo } from './useCharacterInfo';
|
|
3
|
-
export { useLocalCameraTrack } from './useLocalCameraTrack';
|
|
1
|
+
export { useConvaiClient } from './useConvaiClient.js';
|
|
2
|
+
export { useCharacterInfo } from './useCharacterInfo.js';
|
|
3
|
+
export { useLocalCameraTrack } from './useLocalCameraTrack.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Main hook
|
|
2
|
-
export { useConvaiClient } from './useConvaiClient';
|
|
2
|
+
export { useConvaiClient } from './useConvaiClient.js';
|
|
3
3
|
// Additional hooks
|
|
4
|
-
export { useCharacterInfo } from './useCharacterInfo';
|
|
5
|
-
export { useLocalCameraTrack } from './useLocalCameraTrack';
|
|
4
|
+
export { useCharacterInfo } from './useCharacterInfo.js';
|
|
5
|
+
export { useLocalCameraTrack } from './useLocalCameraTrack.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConvaiConfig, IConvaiClient, ChatMessage } from "../../core/types";
|
|
1
|
+
import type { ConvaiConfig, IConvaiClient, ChatMessage } from "../../core/types.js";
|
|
2
2
|
/**
|
|
3
3
|
* React hook wrapper for ConvaiClient
|
|
4
4
|
* Main hook for managing Convai client connection and functionality.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback } from "react";
|
|
2
|
-
import { ConvaiClient as CoreConvaiClient } from "../../core";
|
|
2
|
+
import { ConvaiClient as CoreConvaiClient } from "../../core/index.js";
|
|
3
3
|
/**
|
|
4
4
|
* React hook wrapper for ConvaiClient
|
|
5
5
|
* Main hook for managing Convai client connection and functionality.
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export { useConvaiClient } from './hooks/useConvaiClient';
|
|
2
|
-
export { ConvaiWidget } from './components/ConvaiWidget';
|
|
3
|
-
export { MarkdownRenderer } from './components/rtc-widget/components/MarkdownRenderer';
|
|
4
|
-
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown';
|
|
5
|
-
export type { InlineNode, MediaKind } from '../utils/inlineMarkdown';
|
|
6
|
-
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation';
|
|
7
|
-
export type { LinkKind } from '../utils/linkPresentation';
|
|
8
|
-
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview';
|
|
9
|
-
export type { LinkPreviewMeta, LinkPreviewResolver } from '../utils/linkPreview';
|
|
10
|
-
export * from './hooks';
|
|
11
|
-
export * from '../core/types';
|
|
12
|
-
export { getDisconnectReasonMessage } from '../core/types';
|
|
13
|
-
export { ActionResultAckError, ConvaiClient } from '../core';
|
|
1
|
+
export { useConvaiClient } from './hooks/useConvaiClient.js';
|
|
2
|
+
export { ConvaiWidget } from './components/ConvaiWidget.js';
|
|
3
|
+
export { MarkdownRenderer } from './components/rtc-widget/components/MarkdownRenderer.js';
|
|
4
|
+
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown.js';
|
|
5
|
+
export type { InlineNode, MediaKind } from '../utils/inlineMarkdown.js';
|
|
6
|
+
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation.js';
|
|
7
|
+
export type { LinkKind } from '../utils/linkPresentation.js';
|
|
8
|
+
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview.js';
|
|
9
|
+
export type { LinkPreviewMeta, LinkPreviewResolver } from '../utils/linkPreview.js';
|
|
10
|
+
export * from './hooks/index.js';
|
|
11
|
+
export * from '../core/types.js';
|
|
12
|
+
export { getDisconnectReasonMessage } from '../core/types.js';
|
|
13
|
+
export { ActionResultAckError, ConvaiClient } from '../core/index.js';
|
|
14
14
|
export { RoomAudioRenderer as AudioRenderer, RoomContext as AudioContext } from '@livekit/components-react';
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/react/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// Main hook (backward compatible)
|
|
2
|
-
export { useConvaiClient } from './hooks/useConvaiClient';
|
|
2
|
+
export { useConvaiClient } from './hooks/useConvaiClient.js';
|
|
3
3
|
// Components
|
|
4
|
-
export { ConvaiWidget } from './components/ConvaiWidget';
|
|
4
|
+
export { ConvaiWidget } from './components/ConvaiWidget.js';
|
|
5
5
|
// Bubble renderer, for a custom chat UI that is not ConvaiWidget. Pass
|
|
6
6
|
// `media={false}` on the user's own bubble: previews are a bot-side
|
|
7
7
|
// affordance, and rendering them on a line the user typed lets any pasted URL
|
|
8
8
|
// pull remote media into the transcript.
|
|
9
|
-
export { MarkdownRenderer } from './components/rtc-widget/components/MarkdownRenderer';
|
|
9
|
+
export { MarkdownRenderer } from './components/rtc-widget/components/MarkdownRenderer.js';
|
|
10
10
|
// The tokenizer behind it, for building a renderer from scratch.
|
|
11
|
-
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown';
|
|
12
|
-
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation';
|
|
13
|
-
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview';
|
|
11
|
+
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown.js';
|
|
12
|
+
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation.js';
|
|
13
|
+
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview.js';
|
|
14
14
|
// Additional hooks (for advanced usage)
|
|
15
|
-
export * from './hooks';
|
|
15
|
+
export * from './hooks/index.js';
|
|
16
16
|
// Re-export core types for convenience
|
|
17
|
-
export * from '../core/types';
|
|
17
|
+
export * from '../core/types.js';
|
|
18
18
|
// Re-export helper functions explicitly
|
|
19
|
-
export { getDisconnectReasonMessage } from '../core/types';
|
|
19
|
+
export { getDisconnectReasonMessage } from '../core/types.js';
|
|
20
20
|
// Re-export core client for advanced usage
|
|
21
|
-
export { ActionResultAckError, ConvaiClient } from '../core';
|
|
21
|
+
export { ActionResultAckError, ConvaiClient } from '../core/index.js';
|
|
22
22
|
// Re-export LiveKit components for convenience (backward compatible)
|
|
23
23
|
export { RoomAudioRenderer as AudioRenderer, RoomContext as AudioContext } from '@livekit/components-react';
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/lightbox.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* `part` hooks and the injected keyframes resolve wherever the widget lives.
|
|
5
5
|
* One at a time: opening a second closes the first.
|
|
6
6
|
*/
|
|
7
|
-
import { glyph, presentationStyles, toCssText } from "./linkPresentation";
|
|
8
|
-
import { injectKeyframes } from "../vanilla/styles";
|
|
7
|
+
import { glyph, presentationStyles, toCssText } from "./linkPresentation.js";
|
|
8
|
+
import { injectKeyframes } from "../vanilla/styles.js";
|
|
9
9
|
let current = null;
|
|
10
10
|
const el = (tag, part, style) => {
|
|
11
11
|
const node = document.createElement(tag);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* failure budget a preview gets before it collapses. Pure functions and
|
|
9
9
|
* style objects only; no DOM, so it is testable without a renderer.
|
|
10
10
|
*/
|
|
11
|
-
import { compactUrl } from "./inlineMarkdown";
|
|
11
|
+
import { compactUrl } from "./inlineMarkdown.js";
|
|
12
12
|
const IMAGE_EXT = /\.(png|jpe?g|gif|webp|avif)$/i;
|
|
13
13
|
const VIDEO_EXT = /\.(mp4|webm|mov|ogg)$/i;
|
|
14
14
|
const DOCUMENT_EXT = /\.(pdf|docx?|xlsx?|csv|pptx?|txt|md|zip)$/i;
|
|
@@ -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,16 +2,16 @@
|
|
|
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 { WidgetEventSubscriptions } from "./WidgetEventSubscriptions";
|
|
9
|
-
import { ConvaiClient } from "../core/ConvaiClient";
|
|
10
|
-
import { parseInlineMarkdown, compactUrl } from "../utils/inlineMarkdown";
|
|
11
|
-
import { linkKindForUrl, describeUrl, fileNameOf, documentBadge, contactLabel, hoverTitle, isMixedContent, glyph, presentationStyles as S, toCssText, PREVIEW_TIMEOUT_MS, MAX_CARDS_PER_MESSAGE, } from "../utils/linkPresentation";
|
|
12
|
-
import { openLightbox } from "../utils/lightbox";
|
|
13
|
-
import { resolveLinkPreviewCached, isCardWorthy, siteNameFor, faviconFor, } from "../utils/linkPreview";
|
|
14
|
-
import { freshPublicationGrantOptions } from "../core/publishedChat";
|
|
5
|
+
import { AudioRenderer } from "./AudioRenderer.js";
|
|
6
|
+
import { aeroTheme, injectGlobalStyles, injectKeyframes, } from "./styles.js";
|
|
7
|
+
import { Icons } from "./icons.js";
|
|
8
|
+
import { WidgetEventSubscriptions } from "./WidgetEventSubscriptions.js";
|
|
9
|
+
import { ConvaiClient } from "../core/ConvaiClient.js";
|
|
10
|
+
import { parseInlineMarkdown, compactUrl } from "../utils/inlineMarkdown.js";
|
|
11
|
+
import { linkKindForUrl, describeUrl, fileNameOf, documentBadge, contactLabel, hoverTitle, isMixedContent, glyph, presentationStyles as S, toCssText, PREVIEW_TIMEOUT_MS, MAX_CARDS_PER_MESSAGE, } from "../utils/linkPresentation.js";
|
|
12
|
+
import { openLightbox } from "../utils/lightbox.js";
|
|
13
|
+
import { resolveLinkPreviewCached, isCardWorthy, siteNameFor, faviconFor, } from "../utils/linkPreview.js";
|
|
14
|
+
import { freshPublicationGrantOptions } from "../core/publishedChat.js";
|
|
15
15
|
/**
|
|
16
16
|
* Positioning declarations for the widget root, keyed by `placement`. The
|
|
17
17
|
* `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,17 +28,17 @@
|
|
|
28
28
|
* // - client.audioControls, videoControls, etc.
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
export { ActionResultAckError, ConvaiClient } from '../core/ConvaiClient';
|
|
32
|
-
export { CharacterVersionManager, CharacterApiError } from '../core/CharacterVersionManager';
|
|
33
|
-
export { ConvaiRoomError } from '../core/ConvaiRoomError';
|
|
34
|
-
export { AudioRenderer } from './AudioRenderer';
|
|
35
|
-
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget';
|
|
36
|
-
export * from '../core/types';
|
|
37
|
-
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown';
|
|
38
|
-
export type { InlineNode, MediaKind } from '../utils/inlineMarkdown';
|
|
39
|
-
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation';
|
|
40
|
-
export type { LinkKind } from '../utils/linkPresentation';
|
|
41
|
-
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview';
|
|
42
|
-
export type { LinkPreviewMeta, LinkPreviewResolver } from '../utils/linkPreview';
|
|
43
|
-
export type { VanillaWidget, VanillaWidgetOptions, WidgetPlacement, } from './types';
|
|
31
|
+
export { ActionResultAckError, ConvaiClient } from '../core/ConvaiClient.js';
|
|
32
|
+
export { CharacterVersionManager, CharacterApiError } from '../core/CharacterVersionManager.js';
|
|
33
|
+
export { ConvaiRoomError } from '../core/ConvaiRoomError.js';
|
|
34
|
+
export { AudioRenderer } from './AudioRenderer.js';
|
|
35
|
+
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget.js';
|
|
36
|
+
export * from '../core/types.js';
|
|
37
|
+
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown.js';
|
|
38
|
+
export type { InlineNode, MediaKind } from '../utils/inlineMarkdown.js';
|
|
39
|
+
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation.js';
|
|
40
|
+
export type { LinkKind } from '../utils/linkPresentation.js';
|
|
41
|
+
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview.js';
|
|
42
|
+
export type { LinkPreviewMeta, LinkPreviewResolver } from '../utils/linkPreview.js';
|
|
43
|
+
export type { VanillaWidget, VanillaWidgetOptions, WidgetPlacement, } from './types.js';
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/vanilla/index.js
CHANGED
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
31
|
// Main client for managing connections
|
|
32
|
-
export { ActionResultAckError, ConvaiClient } from '../core/ConvaiClient';
|
|
33
|
-
export { CharacterVersionManager, CharacterApiError } from '../core/CharacterVersionManager';
|
|
34
|
-
export { ConvaiRoomError } from '../core/ConvaiRoomError';
|
|
32
|
+
export { ActionResultAckError, ConvaiClient } from '../core/ConvaiClient.js';
|
|
33
|
+
export { CharacterVersionManager, CharacterApiError } from '../core/CharacterVersionManager.js';
|
|
34
|
+
export { ConvaiRoomError } from '../core/ConvaiRoomError.js';
|
|
35
35
|
// AudioRenderer for custom UI builders (handles audio playback)
|
|
36
|
-
export { AudioRenderer } from './AudioRenderer';
|
|
36
|
+
export { AudioRenderer } from './AudioRenderer.js';
|
|
37
37
|
// Vanilla widget - complete UI solution
|
|
38
|
-
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget';
|
|
38
|
+
export { createConvaiWidget, destroyConvaiWidget } from './ConvaiWidget.js';
|
|
39
39
|
// Re-export ALL core types for complete parity with React
|
|
40
|
-
export * from '../core/types';
|
|
40
|
+
export * from '../core/types.js';
|
|
41
41
|
// Inline markdown tokenizer, for building a chat UI without createConvaiWidget.
|
|
42
|
-
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown';
|
|
43
|
-
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation';
|
|
44
|
-
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview';
|
|
42
|
+
export { parseInlineMarkdown, mediaKindForUrl, isSafeHref, compactUrl } from '../utils/inlineMarkdown.js';
|
|
43
|
+
export { linkKindForUrl, describeUrl } from '../utils/linkPresentation.js';
|
|
44
|
+
export { resolveLinkPreviewCached, isCardWorthy, LINK_PREVIEW_TIMEOUT_MS } from '../utils/linkPreview.js';
|
|
45
45
|
//# sourceMappingURL=index.js.map
|
package/dist/vanilla/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IConvaiClient, ChatMessage, PublishedChatConnectOptions } from '../core/types';
|
|
2
|
-
import type { PublishedChatDescriptor } from '../embed/publicationApi';
|
|
3
|
-
import type { LinkPreviewResolver } from "../utils/linkPreview";
|
|
1
|
+
import type { IConvaiClient, ChatMessage, PublishedChatConnectOptions } from '../core/types.js';
|
|
2
|
+
import type { PublishedChatDescriptor } from '../embed/publicationApi.js';
|
|
3
|
+
import type { LinkPreviewResolver } from "../utils/linkPreview.js";
|
|
4
4
|
/** Where the widget anchors itself. `inline` renders it in normal document flow. */
|
|
5
5
|
export type WidgetPlacement = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'inline';
|
|
6
6
|
/**
|
|
@@ -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.9.0-beta.
|
|
1
|
+
export declare const SDK_VERSION = "1.9.0-beta.3";
|
|
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.9.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.9.0-beta.3\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@convai/web-sdk",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.3",
|
|
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",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"build": "node scripts/sync-version.mjs && tsc -p tsconfig.build.json && node scripts/fix-dist-extensions.mjs && pnpm build:embed && pnpm typecheck:downstream",
|
|
73
73
|
"build:fast": "node scripts/sync-version.mjs && tsc -p tsconfig.build.json && node scripts/fix-dist-extensions.mjs && pnpm build:embed",
|
|
74
74
|
"build:prod": "node scripts/sync-version.mjs && NODE_ENV=production tsc -p tsconfig.build.json && node scripts/fix-dist-extensions.mjs && pnpm build:embed && pnpm typecheck:downstream",
|
|
75
|
-
"build:embed": "esbuild src/embed/browser.ts --bundle --format=esm --platform=browser --target=es2020 --outfile=dist/embed/chat-embed-v1.js --minify
|
|
75
|
+
"build:embed": "esbuild src/embed/browser.ts --bundle --format=esm --platform=browser --target=es2020 --outfile=dist/embed/chat-embed-v1.js --minify",
|
|
76
76
|
"dev": "tsc -p tsconfig.build.json --watch",
|
|
77
77
|
"clean": "rimraf dist",
|
|
78
78
|
"fix:ext": "node scripts/fix-dist-extensions.mjs",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"verify": "vitest run && tsc && tsc -p tsconfig.build.json && pnpm -r --filter './doc-tests/**' exec tsc --noEmit",
|
|
86
86
|
"test:lipsync": "tsc && node scripts/test-neurosync-ahead.mjs",
|
|
87
87
|
"prepublishOnly": "npm run clean && npm run build:prod",
|
|
88
|
+
"prepack": "npm run clean && npm run build:prod",
|
|
88
89
|
"changeset": "changeset",
|
|
89
90
|
"version": "changeset version",
|
|
90
91
|
"release": "npm run build:prod && changeset publish",
|