@convai/web-sdk 1.9.0-beta.2 → 1.9.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.
Files changed (110) hide show
  1. package/dist/core/AudioManager.d.ts +3 -3
  2. package/dist/core/AudioManager.js +1 -1
  3. package/dist/core/CharacterRoster.d.ts +1 -1
  4. package/dist/core/CharacterVersionManager.d.ts +2 -2
  5. package/dist/core/CharacterVersionManager.js +1 -1
  6. package/dist/core/ConnectionStateHandler.d.ts +1 -1
  7. package/dist/core/ConvaiClient.d.ts +6 -6
  8. package/dist/core/ConvaiClient.d.ts.map +1 -1
  9. package/dist/core/ConvaiClient.js +24 -20
  10. package/dist/core/ConvaiClient.js.map +1 -1
  11. package/dist/core/MemoryManager.d.ts +1 -1
  12. package/dist/core/MessageHandler.d.ts +3 -3
  13. package/dist/core/MessageHandler.d.ts.map +1 -1
  14. package/dist/core/MessageHandler.js +15 -7
  15. package/dist/core/MessageHandler.js.map +1 -1
  16. package/dist/core/SSESession.d.ts +5 -1
  17. package/dist/core/SSESession.d.ts.map +1 -1
  18. package/dist/core/SSESession.js +13 -4
  19. package/dist/core/SSESession.js.map +1 -1
  20. package/dist/core/ScreenShareManager.d.ts +2 -2
  21. package/dist/core/ScreenShareManager.js +2 -2
  22. package/dist/core/VideoManager.d.ts +2 -2
  23. package/dist/core/VideoManager.js +3 -3
  24. package/dist/core/connectRequest.d.ts +1 -1
  25. package/dist/core/contextUpdateRequest.d.ts +1 -1
  26. package/dist/core/index.d.ts +25 -25
  27. package/dist/core/index.js +19 -19
  28. package/dist/core/modelOutput.d.ts +2 -2
  29. package/dist/core/publishedChat.d.ts +1 -1
  30. package/dist/core/rosterRequest.d.ts +1 -1
  31. package/dist/core/rosterRequest.js +1 -1
  32. package/dist/core/types.d.ts +33 -6
  33. package/dist/core/types.d.ts.map +1 -1
  34. package/dist/core/types.js.map +1 -1
  35. package/dist/core/videoSourceState.d.ts +1 -1
  36. package/dist/core/visionRequest.d.ts +1 -1
  37. package/dist/embed/ConvaiChatElement.js +2 -2
  38. package/dist/embed/browser.d.ts +2 -2
  39. package/dist/embed/browser.js +3 -3
  40. package/dist/embed/chat-embed-v1.js +2 -3
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +2 -2
  43. package/dist/lipsync-helpers/createBlendshapeQueue.d.ts +2 -2
  44. package/dist/lipsync-helpers/createBlendshapeQueue.js +2 -2
  45. package/dist/lipsync-helpers/declarativeMapping.d.ts +1 -1
  46. package/dist/lipsync-helpers/declarativeMapping.js +2 -2
  47. package/dist/lipsync-helpers/index.d.ts +12 -12
  48. package/dist/lipsync-helpers/index.js +9 -9
  49. package/dist/lipsync-helpers/mhaLimitDrivers.js +2 -2
  50. package/dist/lipsync-helpers/naturalness/processor.d.ts +1 -1
  51. package/dist/lipsync-helpers/naturalness/processor.js +1 -1
  52. package/dist/lipsync-helpers/naturalness/profiles/mha.d.ts +1 -1
  53. package/dist/lipsync-helpers/naturalness/profiles/mha.js +1 -1
  54. package/dist/lipsync-helpers/presetMappers.d.ts +1 -1
  55. package/dist/react/components/ConvaiWidget.d.ts +3 -3
  56. package/dist/react/components/ConvaiWidget.js +5 -5
  57. package/dist/react/components/index.d.ts +1 -1
  58. package/dist/react/components/index.js +1 -1
  59. package/dist/react/components/rtc-widget/components/AudioSettingsPanel.d.ts +1 -1
  60. package/dist/react/components/rtc-widget/components/ConviMessage.d.ts +1 -1
  61. package/dist/react/components/rtc-widget/components/ConviMessage.js +3 -3
  62. package/dist/react/components/rtc-widget/components/FloatingVideo.js +3 -3
  63. package/dist/react/components/rtc-widget/components/MarkdownRenderer.d.ts +1 -1
  64. package/dist/react/components/rtc-widget/components/MarkdownRenderer.js +5 -5
  65. package/dist/react/components/rtc-widget/components/MessageBubble.js +1 -1
  66. package/dist/react/components/rtc-widget/components/MessageList.d.ts +2 -2
  67. package/dist/react/components/rtc-widget/components/MessageList.js +4 -4
  68. package/dist/react/components/rtc-widget/components/SiteCard.d.ts +1 -1
  69. package/dist/react/components/rtc-widget/components/SiteCard.js +2 -2
  70. package/dist/react/components/rtc-widget/components/UserMessage.js +3 -3
  71. package/dist/react/components/rtc-widget/components/conviComponents/ConviButton.js +4 -4
  72. package/dist/react/components/rtc-widget/components/conviComponents/ConviFooter.js +3 -3
  73. package/dist/react/components/rtc-widget/components/conviComponents/ConviHeader.js +4 -4
  74. package/dist/react/components/rtc-widget/components/conviComponents/SettingsTray.js +3 -3
  75. package/dist/react/components/rtc-widget/components/conviComponents/VoiceModeOverlay.js +3 -3
  76. package/dist/react/components/rtc-widget/components/conviComponents/index.d.ts +5 -5
  77. package/dist/react/components/rtc-widget/components/conviComponents/index.js +5 -5
  78. package/dist/react/components/rtc-widget/components/index.d.ts +8 -8
  79. package/dist/react/components/rtc-widget/components/index.js +9 -9
  80. package/dist/react/components/rtc-widget/index.d.ts +5 -5
  81. package/dist/react/components/rtc-widget/index.js +3 -3
  82. package/dist/react/components/rtc-widget/styles/icons.d.ts +1 -1
  83. package/dist/react/components/rtc-widget/styles/icons.js +1 -1
  84. package/dist/react/components/rtc-widget/styles/index.d.ts +5 -5
  85. package/dist/react/components/rtc-widget/styles/index.js +4 -4
  86. package/dist/react/components/rtc-widget/styles/styledComponents.js +1 -1
  87. package/dist/react/hooks/index.d.ts +3 -3
  88. package/dist/react/hooks/index.js +3 -3
  89. package/dist/react/hooks/useCharacterInfo.js +1 -1
  90. package/dist/react/hooks/useConvaiClient.d.ts +1 -1
  91. package/dist/react/hooks/useConvaiClient.js +1 -1
  92. package/dist/react/index.d.ts +13 -13
  93. package/dist/react/index.js +10 -10
  94. package/dist/utils/lightbox.js +2 -2
  95. package/dist/utils/linkPresentation.js +1 -1
  96. package/dist/vanilla/AudioRenderer.js +1 -1
  97. package/dist/vanilla/ConvaiWidget.d.ts +1 -1
  98. package/dist/vanilla/ConvaiWidget.js +10 -10
  99. package/dist/vanilla/WebSocketSession.d.ts +1 -1
  100. package/dist/vanilla/WebSocketSession.js +1 -1
  101. package/dist/vanilla/index.d.ts +13 -13
  102. package/dist/vanilla/index.js +9 -9
  103. package/dist/vanilla/types.d.ts +3 -3
  104. package/dist/vanilla/websocket.d.ts +1 -1
  105. package/dist/vanilla/websocket.js +2 -2
  106. package/dist/version.d.ts +1 -1
  107. package/dist/version.js +1 -1
  108. package/dist/version.js.map +1 -1
  109. package/package.json +3 -2
  110. 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,5 +1,5 @@
1
1
  import { useState, useEffect } from "react";
2
- import { logger } from "../../utils/logger";
2
+ import { logger } from "../../utils/logger.js";
3
3
  /**
4
4
  * Hook to fetch character information from Convai API
5
5
  *
@@ -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.
@@ -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
@@ -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
@@ -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,4 +1,4 @@
1
- import { EventEmitter } from "../core/EventEmitter";
1
+ import { EventEmitter } from "../core/EventEmitter.js";
2
2
  /**
3
3
  * Adapter that wraps PipecatClient + WebSocketTransport for use in ConvaiClient.
4
4
  *
@@ -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
  *
@@ -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
@@ -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
@@ -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
  /**
@@ -1,3 +1,3 @@
1
- import { WebSocketSession } from "./WebSocketSession";
1
+ import { WebSocketSession } from "./WebSocketSession.js";
2
2
  export { WebSocketSession };
3
3
  //# sourceMappingURL=websocket.d.ts.map
@@ -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.2";
1
+ export declare const SDK_VERSION = "1.9.0-beta.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // GENERATED by scripts/sync-version.mjs — do not edit by hand.
2
2
  // Regenerated from package.json on every build.
3
- export const SDK_VERSION = "1.9.0-beta.2";
3
+ export const SDK_VERSION = "1.9.0-beta.4";
4
4
  //# sourceMappingURL=version.js.map
@@ -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.2\";\n"]}
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.4\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@convai/web-sdk",
3
- "version": "1.9.0-beta.2",
3
+ "version": "1.9.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",
@@ -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 --sourcemap",
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",