@cometchat/chat-uikit-react 5.0.0 → 5.0.1
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/assets/image_placeholder.png +0 -0
- package/dist/assets/placeholder.png +0 -0
- package/dist/index.d.ts +349 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/components/BaseComponents/CometChatImageBubble/CometChatImageBubble.d.ts +1 -0
- package/dist/types/utils/MessagesDataSource.d.ts +1 -1
- package/dist/types/utils/util.d.ts +18 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -6796,7 +6796,7 @@ declare class MessagesDataSource implements DataSource {
|
|
|
6796
6796
|
getVideoMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6797
6797
|
getAudioMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6798
6798
|
getFileMessageOptions(loggedInUser: CometChat$1.User, messageObject: CometChat$1.BaseMessage, group?: CometChat$1.Group, additionalParams?: Object | undefined): Array<CometChatActionsIcon | CometChatActionsView>;
|
|
6799
|
-
getReceiptClass(status?: number): "wait" | "
|
|
6799
|
+
getReceiptClass(status?: number): "wait" | "error" | "read" | "delivered" | "sent" | undefined;
|
|
6800
6800
|
/**
|
|
6801
6801
|
* Function to get receipt for message bubble
|
|
6802
6802
|
* @param {CometChat.BaseMessage} item - The message bubble for which the receipt needs to be fetched
|
|
@@ -10528,6 +10528,7 @@ interface ImageBubbleProps {
|
|
|
10528
10528
|
src: string;
|
|
10529
10529
|
}) => void;
|
|
10530
10530
|
isSentByMe?: boolean;
|
|
10531
|
+
disableLoadingState?: boolean;
|
|
10531
10532
|
}
|
|
10532
10533
|
declare const CometChatImageBubble: (props: ImageBubbleProps) => react_jsx_runtime.JSX.Element;
|
|
10533
10534
|
|
|
@@ -10863,6 +10864,352 @@ declare class MessageUtils {
|
|
|
10863
10864
|
getActionMessage(message: CometChat.Action): string;
|
|
10864
10865
|
}
|
|
10865
10866
|
|
|
10867
|
+
type GeneralEventTypes = {
|
|
10868
|
+
[EventName: string]: unknown[];
|
|
10869
|
+
};
|
|
10870
|
+
type EventListener<EventTypes extends GeneralEventTypes, EventName extends keyof EventTypes> = (...args: EventTypes[EventName]) => void;
|
|
10871
|
+
/** A simple event emitter that can be used to listen to and emit events. */
|
|
10872
|
+
declare class EventEmitter<EventTypes extends GeneralEventTypes> {
|
|
10873
|
+
private listeners;
|
|
10874
|
+
/** Subscribe to an event. Returns an unsubscribe function. */
|
|
10875
|
+
on<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>, options?: {
|
|
10876
|
+
once?: boolean;
|
|
10877
|
+
}): () => void;
|
|
10878
|
+
/** Unsubscribe from an event */
|
|
10879
|
+
un<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>): void;
|
|
10880
|
+
/** Subscribe to an event only once */
|
|
10881
|
+
once<EventName extends keyof EventTypes>(event: EventName, listener: EventListener<EventTypes, EventName>): () => void;
|
|
10882
|
+
/** Clear all events */
|
|
10883
|
+
unAll(): void;
|
|
10884
|
+
/** Emit an event */
|
|
10885
|
+
protected emit<EventName extends keyof EventTypes>(eventName: EventName, ...args: EventTypes[EventName]): void;
|
|
10886
|
+
}
|
|
10887
|
+
|
|
10888
|
+
type BasePluginEvents = {
|
|
10889
|
+
destroy: [];
|
|
10890
|
+
};
|
|
10891
|
+
type GenericPlugin = BasePlugin<BasePluginEvents, unknown>;
|
|
10892
|
+
/** Base class for wavesurfer plugins */
|
|
10893
|
+
declare class BasePlugin<EventTypes extends BasePluginEvents, Options> extends EventEmitter<EventTypes> {
|
|
10894
|
+
protected wavesurfer?: WaveSurfer;
|
|
10895
|
+
protected subscriptions: (() => void)[];
|
|
10896
|
+
protected options: Options;
|
|
10897
|
+
/** Create a plugin instance */
|
|
10898
|
+
constructor(options: Options);
|
|
10899
|
+
/** Called after this.wavesurfer is available */
|
|
10900
|
+
protected onInit(): void;
|
|
10901
|
+
/** Do not call directly, only called by WavesSurfer internally */
|
|
10902
|
+
_init(wavesurfer: WaveSurfer): void;
|
|
10903
|
+
/** Destroy the plugin and unsubscribe from all events */
|
|
10904
|
+
destroy(): void;
|
|
10905
|
+
}
|
|
10906
|
+
|
|
10907
|
+
type TreeNode = {
|
|
10908
|
+
[key: string]: string | number | boolean | CSSStyleDeclaration | TreeNode | Node;
|
|
10909
|
+
} & {
|
|
10910
|
+
xmlns?: string;
|
|
10911
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
10912
|
+
textContent?: string | Node;
|
|
10913
|
+
children?: TreeNode;
|
|
10914
|
+
};
|
|
10915
|
+
declare function createElement(tagName: string, content: TreeNode & {
|
|
10916
|
+
xmlns: string;
|
|
10917
|
+
}, container?: Node): SVGElement;
|
|
10918
|
+
declare function createElement(tagName: string, content?: TreeNode, container?: Node): HTMLElement;
|
|
10919
|
+
|
|
10920
|
+
declare const dom_createElement: typeof createElement;
|
|
10921
|
+
declare namespace dom {
|
|
10922
|
+
export {
|
|
10923
|
+
dom_createElement as createElement,
|
|
10924
|
+
createElement as default,
|
|
10925
|
+
};
|
|
10926
|
+
}
|
|
10927
|
+
|
|
10928
|
+
type PlayerOptions = {
|
|
10929
|
+
media?: HTMLMediaElement;
|
|
10930
|
+
mediaControls?: boolean;
|
|
10931
|
+
autoplay?: boolean;
|
|
10932
|
+
playbackRate?: number;
|
|
10933
|
+
};
|
|
10934
|
+
declare class Player<T extends GeneralEventTypes> extends EventEmitter<T> {
|
|
10935
|
+
protected media: HTMLMediaElement;
|
|
10936
|
+
private isExternalMedia;
|
|
10937
|
+
constructor(options: PlayerOptions);
|
|
10938
|
+
protected onMediaEvent<K extends keyof HTMLElementEventMap>(event: K, callback: (ev: HTMLElementEventMap[K]) => void, options?: boolean | AddEventListenerOptions): () => void;
|
|
10939
|
+
protected getSrc(): string;
|
|
10940
|
+
private revokeSrc;
|
|
10941
|
+
private canPlayType;
|
|
10942
|
+
protected setSrc(url: string, blob?: Blob): void;
|
|
10943
|
+
protected destroy(): void;
|
|
10944
|
+
protected setMediaElement(element: HTMLMediaElement): void;
|
|
10945
|
+
/** Start playing the audio */
|
|
10946
|
+
play(): Promise<void>;
|
|
10947
|
+
/** Pause the audio */
|
|
10948
|
+
pause(): void;
|
|
10949
|
+
/** Check if the audio is playing */
|
|
10950
|
+
isPlaying(): boolean;
|
|
10951
|
+
/** Jump to a specific time in the audio (in seconds) */
|
|
10952
|
+
setTime(time: number): void;
|
|
10953
|
+
/** Get the duration of the audio in seconds */
|
|
10954
|
+
getDuration(): number;
|
|
10955
|
+
/** Get the current audio position in seconds */
|
|
10956
|
+
getCurrentTime(): number;
|
|
10957
|
+
/** Get the audio volume */
|
|
10958
|
+
getVolume(): number;
|
|
10959
|
+
/** Set the audio volume */
|
|
10960
|
+
setVolume(volume: number): void;
|
|
10961
|
+
/** Get the audio muted state */
|
|
10962
|
+
getMuted(): boolean;
|
|
10963
|
+
/** Mute or unmute the audio */
|
|
10964
|
+
setMuted(muted: boolean): void;
|
|
10965
|
+
/** Get the playback speed */
|
|
10966
|
+
getPlaybackRate(): number;
|
|
10967
|
+
/** Check if the audio is seeking */
|
|
10968
|
+
isSeeking(): boolean;
|
|
10969
|
+
/** Set the playback speed, pass an optional false to NOT preserve the pitch */
|
|
10970
|
+
setPlaybackRate(rate: number, preservePitch?: boolean): void;
|
|
10971
|
+
/** Get the HTML media element */
|
|
10972
|
+
getMediaElement(): HTMLMediaElement;
|
|
10973
|
+
/** Set a sink id to change the audio output device */
|
|
10974
|
+
setSinkId(sinkId: string): Promise<void>;
|
|
10975
|
+
}
|
|
10976
|
+
|
|
10977
|
+
type WaveSurferOptions = {
|
|
10978
|
+
/** Required: an HTML element or selector where the waveform will be rendered */
|
|
10979
|
+
container: HTMLElement | string;
|
|
10980
|
+
/** The height of the waveform in pixels, or "auto" to fill the container height */
|
|
10981
|
+
height?: number | 'auto';
|
|
10982
|
+
/** The width of the waveform in pixels or any CSS value; defaults to 100% */
|
|
10983
|
+
width?: number | string;
|
|
10984
|
+
/** The color of the waveform */
|
|
10985
|
+
waveColor?: string | string[] | CanvasGradient;
|
|
10986
|
+
/** The color of the progress mask */
|
|
10987
|
+
progressColor?: string | string[] | CanvasGradient;
|
|
10988
|
+
/** The color of the playpack cursor */
|
|
10989
|
+
cursorColor?: string;
|
|
10990
|
+
/** The cursor width */
|
|
10991
|
+
cursorWidth?: number;
|
|
10992
|
+
/** If set, the waveform will be rendered with bars like this: ▁ ▂ ▇ ▃ ▅ ▂ */
|
|
10993
|
+
barWidth?: number;
|
|
10994
|
+
/** Spacing between bars in pixels */
|
|
10995
|
+
barGap?: number;
|
|
10996
|
+
/** Rounded borders for bars */
|
|
10997
|
+
barRadius?: number;
|
|
10998
|
+
/** A vertical scaling factor for the waveform */
|
|
10999
|
+
barHeight?: number;
|
|
11000
|
+
/** Vertical bar alignment */
|
|
11001
|
+
barAlign?: 'top' | 'bottom';
|
|
11002
|
+
/** Minimum pixels per second of audio (i.e. the zoom level) */
|
|
11003
|
+
minPxPerSec?: number;
|
|
11004
|
+
/** Stretch the waveform to fill the container, true by default */
|
|
11005
|
+
fillParent?: boolean;
|
|
11006
|
+
/** Audio URL */
|
|
11007
|
+
url?: string;
|
|
11008
|
+
/** Pre-computed audio data, arrays of floats for each channel */
|
|
11009
|
+
peaks?: Array<Float32Array | number[]>;
|
|
11010
|
+
/** Pre-computed audio duration in seconds */
|
|
11011
|
+
duration?: number;
|
|
11012
|
+
/** Use an existing media element instead of creating one */
|
|
11013
|
+
media?: HTMLMediaElement;
|
|
11014
|
+
/** Whether to show default audio element controls */
|
|
11015
|
+
mediaControls?: boolean;
|
|
11016
|
+
/** Play the audio on load */
|
|
11017
|
+
autoplay?: boolean;
|
|
11018
|
+
/** Pass false to disable clicks on the waveform */
|
|
11019
|
+
interact?: boolean;
|
|
11020
|
+
/** Allow to drag the cursor to seek to a new position. If an object with `debounceTime` is provided instead
|
|
11021
|
+
* then `dragToSeek` will also be true. If `true` the default is 200ms
|
|
11022
|
+
*/
|
|
11023
|
+
dragToSeek?: boolean | {
|
|
11024
|
+
debounceTime: number;
|
|
11025
|
+
};
|
|
11026
|
+
/** Hide the scrollbar */
|
|
11027
|
+
hideScrollbar?: boolean;
|
|
11028
|
+
/** Audio rate, i.e. the playback speed */
|
|
11029
|
+
audioRate?: number;
|
|
11030
|
+
/** Automatically scroll the container to keep the current position in viewport */
|
|
11031
|
+
autoScroll?: boolean;
|
|
11032
|
+
/** If autoScroll is enabled, keep the cursor in the center of the waveform during playback */
|
|
11033
|
+
autoCenter?: boolean;
|
|
11034
|
+
/** Decoding sample rate. Doesn't affect the playback. Defaults to 8000 */
|
|
11035
|
+
sampleRate?: number;
|
|
11036
|
+
/** Render each audio channel as a separate waveform */
|
|
11037
|
+
splitChannels?: Array<Partial<WaveSurferOptions> & {
|
|
11038
|
+
overlay?: boolean;
|
|
11039
|
+
}>;
|
|
11040
|
+
/** Stretch the waveform to the full height */
|
|
11041
|
+
normalize?: boolean;
|
|
11042
|
+
/** The list of plugins to initialize on start */
|
|
11043
|
+
plugins?: GenericPlugin[];
|
|
11044
|
+
/** Custom render function */
|
|
11045
|
+
renderFunction?: (peaks: Array<Float32Array | number[]>, ctx: CanvasRenderingContext2D) => void;
|
|
11046
|
+
/** Options to pass to the fetch method */
|
|
11047
|
+
fetchParams?: RequestInit;
|
|
11048
|
+
/** Playback "backend" to use, defaults to MediaElement */
|
|
11049
|
+
backend?: 'WebAudio' | 'MediaElement';
|
|
11050
|
+
/** Nonce for CSP if necessary */
|
|
11051
|
+
cspNonce?: string;
|
|
11052
|
+
};
|
|
11053
|
+
declare const defaultOptions: {
|
|
11054
|
+
waveColor: string;
|
|
11055
|
+
progressColor: string;
|
|
11056
|
+
cursorWidth: number;
|
|
11057
|
+
minPxPerSec: number;
|
|
11058
|
+
fillParent: boolean;
|
|
11059
|
+
interact: boolean;
|
|
11060
|
+
dragToSeek: boolean;
|
|
11061
|
+
autoScroll: boolean;
|
|
11062
|
+
autoCenter: boolean;
|
|
11063
|
+
sampleRate: number;
|
|
11064
|
+
};
|
|
11065
|
+
type WaveSurferEvents = {
|
|
11066
|
+
/** After wavesurfer is created */
|
|
11067
|
+
init: [];
|
|
11068
|
+
/** When audio starts loading */
|
|
11069
|
+
load: [url: string];
|
|
11070
|
+
/** During audio loading */
|
|
11071
|
+
loading: [percent: number];
|
|
11072
|
+
/** When the audio has been decoded */
|
|
11073
|
+
decode: [duration: number];
|
|
11074
|
+
/** When the audio is both decoded and can play */
|
|
11075
|
+
ready: [duration: number];
|
|
11076
|
+
/** When visible waveform is drawn */
|
|
11077
|
+
redraw: [];
|
|
11078
|
+
/** When all audio channel chunks of the waveform have drawn */
|
|
11079
|
+
redrawcomplete: [];
|
|
11080
|
+
/** When the audio starts playing */
|
|
11081
|
+
play: [];
|
|
11082
|
+
/** When the audio pauses */
|
|
11083
|
+
pause: [];
|
|
11084
|
+
/** When the audio finishes playing */
|
|
11085
|
+
finish: [];
|
|
11086
|
+
/** On audio position change, fires continuously during playback */
|
|
11087
|
+
timeupdate: [currentTime: number];
|
|
11088
|
+
/** An alias of timeupdate but only when the audio is playing */
|
|
11089
|
+
audioprocess: [currentTime: number];
|
|
11090
|
+
/** When the user seeks to a new position */
|
|
11091
|
+
seeking: [currentTime: number];
|
|
11092
|
+
/** When the user interacts with the waveform (i.g. clicks or drags on it) */
|
|
11093
|
+
interaction: [newTime: number];
|
|
11094
|
+
/** When the user clicks on the waveform */
|
|
11095
|
+
click: [relativeX: number, relativeY: number];
|
|
11096
|
+
/** When the user double-clicks on the waveform */
|
|
11097
|
+
dblclick: [relativeX: number, relativeY: number];
|
|
11098
|
+
/** When the user drags the cursor */
|
|
11099
|
+
drag: [relativeX: number];
|
|
11100
|
+
/** When the user starts dragging the cursor */
|
|
11101
|
+
dragstart: [relativeX: number];
|
|
11102
|
+
/** When the user ends dragging the cursor */
|
|
11103
|
+
dragend: [relativeX: number];
|
|
11104
|
+
/** When the waveform is scrolled (panned) */
|
|
11105
|
+
scroll: [visibleStartTime: number, visibleEndTime: number, scrollLeft: number, scrollRight: number];
|
|
11106
|
+
/** When the zoom level changes */
|
|
11107
|
+
zoom: [minPxPerSec: number];
|
|
11108
|
+
/** Just before the waveform is destroyed so you can clean up your events */
|
|
11109
|
+
destroy: [];
|
|
11110
|
+
/** When source file is unable to be fetched, decoded, or an error is thrown by media element */
|
|
11111
|
+
error: [error: Error];
|
|
11112
|
+
};
|
|
11113
|
+
declare class WaveSurfer extends Player<WaveSurferEvents> {
|
|
11114
|
+
options: WaveSurferOptions & typeof defaultOptions;
|
|
11115
|
+
private renderer;
|
|
11116
|
+
private timer;
|
|
11117
|
+
private plugins;
|
|
11118
|
+
private decodedData;
|
|
11119
|
+
protected subscriptions: Array<() => void>;
|
|
11120
|
+
protected mediaSubscriptions: Array<() => void>;
|
|
11121
|
+
protected abortController: AbortController | null;
|
|
11122
|
+
static readonly BasePlugin: typeof BasePlugin;
|
|
11123
|
+
static readonly dom: typeof dom;
|
|
11124
|
+
/** Create a new WaveSurfer instance */
|
|
11125
|
+
static create(options: WaveSurferOptions): WaveSurfer;
|
|
11126
|
+
/** Create a new WaveSurfer instance */
|
|
11127
|
+
constructor(options: WaveSurferOptions);
|
|
11128
|
+
private updateProgress;
|
|
11129
|
+
private initTimerEvents;
|
|
11130
|
+
private initPlayerEvents;
|
|
11131
|
+
private initRendererEvents;
|
|
11132
|
+
private initPlugins;
|
|
11133
|
+
private unsubscribePlayerEvents;
|
|
11134
|
+
/** Set new wavesurfer options and re-render it */
|
|
11135
|
+
setOptions(options: Partial<WaveSurferOptions>): void;
|
|
11136
|
+
/** Register a wavesurfer plugin */
|
|
11137
|
+
registerPlugin<T extends GenericPlugin>(plugin: T): T;
|
|
11138
|
+
/** For plugins only: get the waveform wrapper div */
|
|
11139
|
+
getWrapper(): HTMLElement;
|
|
11140
|
+
/** For plugins only: get the scroll container client width */
|
|
11141
|
+
getWidth(): number;
|
|
11142
|
+
/** Get the current scroll position in pixels */
|
|
11143
|
+
getScroll(): number;
|
|
11144
|
+
/** Set the current scroll position in pixels */
|
|
11145
|
+
setScroll(pixels: number): void;
|
|
11146
|
+
/** Move the start of the viewing window to a specific time in the audio (in seconds) */
|
|
11147
|
+
setScrollTime(time: number): void;
|
|
11148
|
+
/** Get all registered plugins */
|
|
11149
|
+
getActivePlugins(): GenericPlugin[];
|
|
11150
|
+
private loadAudio;
|
|
11151
|
+
/** Load an audio file by URL, with optional pre-decoded audio data */
|
|
11152
|
+
load(url: string, channelData?: WaveSurferOptions['peaks'], duration?: number): Promise<void>;
|
|
11153
|
+
/** Load an audio blob */
|
|
11154
|
+
loadBlob(blob: Blob, channelData?: WaveSurferOptions['peaks'], duration?: number): Promise<void>;
|
|
11155
|
+
/** Zoom the waveform by a given pixels-per-second factor */
|
|
11156
|
+
zoom(minPxPerSec: number): void;
|
|
11157
|
+
/** Get the decoded audio data */
|
|
11158
|
+
getDecodedData(): AudioBuffer | null;
|
|
11159
|
+
/** Get decoded peaks */
|
|
11160
|
+
exportPeaks({ channels, maxLength, precision }?: {
|
|
11161
|
+
channels?: number | undefined;
|
|
11162
|
+
maxLength?: number | undefined;
|
|
11163
|
+
precision?: number | undefined;
|
|
11164
|
+
}): Array<number[]>;
|
|
11165
|
+
/** Get the duration of the audio in seconds */
|
|
11166
|
+
getDuration(): number;
|
|
11167
|
+
/** Toggle if the waveform should react to clicks */
|
|
11168
|
+
toggleInteraction(isInteractive: boolean): void;
|
|
11169
|
+
/** Jump to a specific time in the audio (in seconds) */
|
|
11170
|
+
setTime(time: number): void;
|
|
11171
|
+
/** Seek to a percentage of audio as [0..1] (0 = beginning, 1 = end) */
|
|
11172
|
+
seekTo(progress: number): void;
|
|
11173
|
+
/** Play or pause the audio */
|
|
11174
|
+
playPause(): Promise<void>;
|
|
11175
|
+
/** Stop the audio and go to the beginning */
|
|
11176
|
+
stop(): void;
|
|
11177
|
+
/** Skip N or -N seconds from the current position */
|
|
11178
|
+
skip(seconds: number): void;
|
|
11179
|
+
/** Empty the waveform */
|
|
11180
|
+
empty(): void;
|
|
11181
|
+
/** Set HTML media element */
|
|
11182
|
+
setMediaElement(element: HTMLMediaElement): void;
|
|
11183
|
+
/**
|
|
11184
|
+
* Export the waveform image as a data-URI or a blob.
|
|
11185
|
+
*
|
|
11186
|
+
* @param format The format of the exported image, can be `image/png`, `image/jpeg`, `image/webp` or any other format supported by the browser.
|
|
11187
|
+
* @param quality The quality of the exported image, for `image/jpeg` or `image/webp`. Must be between 0 and 1.
|
|
11188
|
+
* @param type The type of the exported image, can be `dataURL` (default) or `blob`.
|
|
11189
|
+
* @returns A promise that resolves with an array of data-URLs or blobs, one for each canvas element.
|
|
11190
|
+
*/
|
|
11191
|
+
exportImage(format: string, quality: number, type: 'dataURL'): Promise<string[]>;
|
|
11192
|
+
exportImage(format: string, quality: number, type: 'blob'): Promise<Blob[]>;
|
|
11193
|
+
/** Unmount wavesurfer */
|
|
11194
|
+
destroy(): void;
|
|
11195
|
+
}
|
|
11196
|
+
|
|
11197
|
+
interface MediaPlayer {
|
|
11198
|
+
video?: HTMLVideoElement | null;
|
|
11199
|
+
mediaRecorder?: MediaRecorder | null;
|
|
11200
|
+
}
|
|
11201
|
+
/**
|
|
11202
|
+
* storing current media which is being played.
|
|
11203
|
+
*/
|
|
11204
|
+
declare const currentMediaPlayer: MediaPlayer;
|
|
11205
|
+
declare const currentAudioPlayer: {
|
|
11206
|
+
instance: WaveSurfer | null;
|
|
11207
|
+
setIsPlaying: ((isPlaying: boolean) => void) | null;
|
|
11208
|
+
};
|
|
11209
|
+
/**
|
|
11210
|
+
* Function to stop current media playback.
|
|
11211
|
+
*/
|
|
11212
|
+
declare function closeCurrentMediaPlayer(pauseAudio?: boolean): void;
|
|
10866
11213
|
declare function sanitizeHtml(htmlString: string, whitelistRegExes: RegExp[]): string;
|
|
10867
11214
|
declare function isMessageSentByMe(message: CometChat.BaseMessage, loggedInUser: CometChat.User): boolean;
|
|
10868
11215
|
/**
|
|
@@ -11110,4 +11457,4 @@ declare function useRefSync<T>(value: T): React__default.MutableRefObject<T>;
|
|
|
11110
11457
|
declare function useStateRef<T>(initialValue: T): [T, (node: T) => void];
|
|
11111
11458
|
declare function useCometChatErrorHandler(onError?: ((error: CometChat.CometChatException) => void) | null): (error: unknown, source?: string) => void;
|
|
11112
11459
|
|
|
11113
|
-
export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, downloadRecordingFromURL, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|
|
11460
|
+
export { AuxiliaryButtonAlignment, ButtonAction, CallButtonConfiguration, CallWorkflow, CallingConfiguration, CallingDetailsUtils, CallingExtension, CallingExtensionDecorator, ChatConfigurator, ChatSdkEventInitializer, CollaborativeDocumentConfiguration, CollaborativeDocumentExtension, CollaborativeDocumentExtensionDecorator, CollaborativeWhiteBoardExtensionDecorator, CollaborativeWhiteboardConfiguration, CollaborativeWhiteboardExtension, CometChatActionBubble, CometChatActionSheet, CometChatActions, CometChatActionsIcon, CometChatActionsView, CometChatAudioBubble, CometChatAvatar, CometChatButton, CometChatCallBubble, CometChatCallButtons, CometChatCallEvents, CometChatCallLogs, CometChatChangeScope, CometChatCheckbox, CometChatConfirmDialog, CometChatContextMenu, CometChatConversationEvents, CometChatConversations, CometChatDate, CometChatDeleteBubble, CometChatDocumentBubble, CometChatDropDown, CometChatEditPreview, CometChatEmojiKeyboard, CometChatFileBubble, CometChatFullScreenViewer, CometChatGroupEvents, CometChatGroupMembers, CometChatGroups, CometChatImageBubble, CometChatIncomingCall, CometChatList, CometChatListItem, CometChatLocalize, CometChatMediaRecorder, CometChatMentionsFormatter, CometChatMessageBubble, CometChatMessageComposer, CometChatMessageComposerAction, CometChatMessageEvents, CometChatMessageHeader, CometChatMessageInformation, CometChatMessageList, CometChatMessageOption, CometChatMessageTemplate, CometChatOngoingCall, CometChatOption, CometChatOutgoingCall, CometChatPopover, CometChatRadioButton, CometChatReactionInfo, CometChatReactionList, CometChatReactions, CometChatSearchBar, CometChatTextBubble, CometChatTextFormatter, CometChatThreadedMessagePreview, CometChatToast, CometChatUIEvents, CometChatUIKit, CometChatUIKitCalls, CometChatUIKitConstants, CometChatUIKitLoginListener, CometChatUIKitUtility, CometChatUrlsFormatter, CometChatUserEvents, CometChatUserMemberWrapper, CometChatUsers, CometChatUtilityConstants, CometChatVideoBubble, ConversationUtils, DataSource, DataSourceDecorator, DatePatterns, DateTimePickerMode, DocumentIconAlignment, ElementType, EnterKeyBehavior, ExtensionsDataSource, GroupMemberUtils, HTTPSRequestMethods, IActiveChatChanged, IDialog, IGroupLeft, IGroupMemberAdded, IGroupMemberJoined, IGroupMemberKickedBanned, IGroupMemberScopeChanged, IGroupMemberUnBanned, IMentionsCountWarning, IMessages, IModal, IMouseEvent, IOpenChat, IOwnershipChanged, IPanel, IShowOngoingCall, IconButtonAlignment, LabelAlignment, LinkPreviewExtension, LinkPreviewExtensionDecorator, MentionsTargetElement, MentionsVisibility, MessageBubbleAlignment, MessageListAlignment, MessageReceiptUtils, MessageStatus, MessageTranslationExtension, MessageTranslationExtensionDecorator, MessageUtils, MessagesDataSource, MouseEventSource, OutgoingCallConfiguration, PanelAlignment, Placement$1 as Placement, PollsConfiguration, PollsExtension, PollsExtensionDecorator, PreviewMessageMode, Receipts, RecordingType, SelectionMode, States, StickersExtension, StickersExtensionDecorator, StorageUtils, TabAlignment, TabsVisibility, ThumbnailGenerationExtension, ThumbnailGenerationExtensionDecorator, TimestampAlignment, TitleAlignment, UIKitSettings, UIKitSettingsBuilder, UserMemberListType, closeCurrentMediaPlayer, convertMinutesToHoursMinutesSeconds, convertSecondsToHoursMinutesSeconds, currentAudioPlayer, currentMediaPlayer, downloadRecordingFromURL, formatDateFromTimestamp, getCallStatusWithType, getThemeMode, getThemeVariable, isMessageSentByMe, isMissedCall, isMobileDevice, isSafari, isSentByMe, isURL, localize, processFileForAudio, sanitizeHtml, useCometChatErrorHandler, useRefSync, useStateRef, verifyCallUser };
|