streemo-video-call-sdk 0.2.11 → 0.2.13

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/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { d as StreemoClient, n as StreemoChannel, o as TypingState, p as Streemo
2
2
  export { r as Participant, a as SDKError, b as SDKErrorCode, c as ServerTokenProviderOptions, e as StreemoClientOptions, s as StreemoReaction, t as StreemoUser, f as TokenProviderContext, V as VideoSDKConfig, g as createServerTokenProvider, h as createStreemoClient, i as defaultApiBaseUrl, j as defaultWsBaseUrlFromApi, k as getVideoSDKConfig, l as initVideoSDK, m as mapSDKErrorToUIMessage } from './sdkConfig-DTNZ7Mms.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import * as react from 'react';
5
- import { PropsWithChildren, Component, ReactNode, ErrorInfo } from 'react';
5
+ import { PropsWithChildren, ReactNode, Component, ErrorInfo } from 'react';
6
6
  export { StreemoThemeProvider, Theme, ThemeMode, ThemeTokens, createTheme, useTheme } from 'streemo-ui-kit-web/theme';
7
7
 
8
8
  type StreemoContextValue = {
@@ -174,11 +174,19 @@ type MessageProps = {
174
174
  declare function Message({ message, isOwn, onThread }: MessageProps): react_jsx_runtime.JSX.Element;
175
175
 
176
176
  type MessageInputProps = {
177
+ value?: string;
178
+ onChange?: (value: string) => void;
179
+ onSend?: (text: string) => void | Promise<void>;
177
180
  channelId?: string;
178
181
  parentId?: string;
179
182
  placeholder?: string;
183
+ disabled?: boolean;
184
+ className?: string;
185
+ autoFocus?: boolean;
186
+ maxLength?: number;
187
+ onTypingChange?: (isTyping: boolean) => void;
180
188
  };
181
- declare function MessageInput({ channelId, parentId, placeholder }: MessageInputProps): react_jsx_runtime.JSX.Element;
189
+ declare function MessageInput({ value, onChange, onSend, channelId, parentId, placeholder, disabled, className, autoFocus, maxLength, onTypingChange, }: MessageInputProps): react_jsx_runtime.JSX.Element;
182
190
 
183
191
  type ThreadProps = {
184
192
  parent: StreemoMessage;
@@ -216,8 +224,9 @@ type ParticipantTileProps = {
216
224
  userId: string;
217
225
  stream?: MediaStream;
218
226
  subtitle?: string;
227
+ videoActive?: boolean;
219
228
  };
220
- declare function ParticipantTile({ userId, stream, subtitle }: ParticipantTileProps): react_jsx_runtime.JSX.Element;
229
+ declare function ParticipantTile({ userId, stream, subtitle, videoActive }: ParticipantTileProps): react_jsx_runtime.JSX.Element;
221
230
 
222
231
  declare function CallControls(): react_jsx_runtime.JSX.Element;
223
232
 
@@ -238,6 +247,27 @@ type AvatarProps = {
238
247
  };
239
248
  declare function Avatar({ name, image, size }: AvatarProps): react_jsx_runtime.JSX.Element;
240
249
 
250
+ type ChatMessageInputProps = {
251
+ value: string;
252
+ onChange: (nextValue: string) => void;
253
+ onSend: (text: string) => void | Promise<void>;
254
+ placeholder?: string;
255
+ disabled?: boolean;
256
+ className?: string;
257
+ autoFocus?: boolean;
258
+ maxLength?: number;
259
+ isSending?: boolean;
260
+ onTypingChange?: (isTyping: boolean) => void;
261
+ onFocusChange?: (focused: boolean) => void;
262
+ sendAriaLabel?: string;
263
+ sendLabel?: string;
264
+ hideSendLabel?: boolean;
265
+ leftAdornment?: ReactNode;
266
+ rightAdornment?: ReactNode;
267
+ sendIcon?: ReactNode;
268
+ };
269
+ declare function ChatMessageInput({ value, onChange, onSend, placeholder, disabled, className, autoFocus, maxLength, isSending, onTypingChange, onFocusChange, sendAriaLabel, sendLabel, hideSendLabel, leftAdornment, rightAdornment, sendIcon, }: ChatMessageInputProps): react_jsx_runtime.JSX.Element;
270
+
241
271
  type UserStatusProps = {
242
272
  name: string;
243
273
  status: 'online' | 'offline' | 'away';
@@ -334,13 +364,14 @@ type Props = {
334
364
  mirrored?: boolean;
335
365
  label: string;
336
366
  subtitle?: string;
367
+ videoActive?: boolean;
337
368
  i18n?: {
338
369
  resumePlayback?: string;
339
370
  audioOnlyMuted?: string;
340
371
  audioOnlyConnected?: string;
341
372
  };
342
373
  };
343
- declare function VideoTile({ stream, muted, mirrored, label, subtitle, i18n }: Props): react_jsx_runtime.JSX.Element;
374
+ declare function VideoTile({ stream, muted, mirrored, label, subtitle, videoActive, i18n }: Props): react_jsx_runtime.JSX.Element;
344
375
 
345
376
  type ChatPanelProps = {
346
377
  messages: ChatMessage[];
@@ -375,4 +406,4 @@ type VideoCallWidgetProps = {
375
406
  };
376
407
  declare function VideoCallWidget({ roomId, userId, userName, roomToken, wsBaseUrl, tokenProvider, apiBaseUrl, auth, enabled, localLabelSuffix, showChat, }: VideoCallWidgetProps): react_jsx_runtime.JSX.Element;
377
408
 
378
- export { AttachmentPreview, Avatar, CallControls, CallRoom, CameraToggle, Channel, ChannelList, ChannelPreview, Chat, type ChatMessage, ChatPanel, type ChatPanelProps, ErrorBoundary, JoinCallButton, LeaveCallButton, LoadingSpinner, Message, MessageInput, MessageList, MuteButton, ParticipantGrid, ParticipantTile, PresenceBadge, PresenceState, ReactionPicker, type RemoteTrackState, ScreenShareButton, ServerAuthConfig, StreemoAttachment, StreemoChannel, StreemoClient, type StreemoEntitlements, StreemoMessage, StreemoProvider, StreemoTheme, type StreemoThemeTokens, Thread, TokenProvider, TypingIndicator, type TypingParticipant, TypingState, type UseWebRTCCallParams, UserStatus, VideoCallWidget, type VideoCallWidgetProps, VideoTile, useCall, useCallRoomContext, useChannel, useChat, useEntitlements, useMessages, useParticipants, usePresence, useStreemoContext, useTyping, useWebRTCCall };
409
+ export { AttachmentPreview, Avatar, CallControls, CallRoom, CameraToggle, Channel, ChannelList, ChannelPreview, Chat, type ChatMessage, ChatMessageInput, type ChatMessageInputProps, ChatPanel, type ChatPanelProps, ErrorBoundary, JoinCallButton, LeaveCallButton, LoadingSpinner, Message, MessageInput, MessageList, MuteButton, ParticipantGrid, ParticipantTile, PresenceBadge, PresenceState, ReactionPicker, type RemoteTrackState, ScreenShareButton, ServerAuthConfig, StreemoAttachment, StreemoChannel, StreemoClient, type StreemoEntitlements, StreemoMessage, StreemoProvider, StreemoTheme, type StreemoThemeTokens, Thread, TokenProvider, TypingIndicator, type TypingParticipant, TypingState, type UseWebRTCCallParams, UserStatus, VideoCallWidget, type VideoCallWidgetProps, VideoTile, useCall, useCallRoomContext, useChannel, useChat, useEntitlements, useMessages, useParticipants, usePresence, useStreemoContext, useTyping, useWebRTCCall };