communication-react-19
Version:
React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)
39 lines • 1.71 kB
TypeScript
import React from 'react';
import { ChatMessage } from '../../../types';
import { AttachmentMetadata } from "../../../../../acs-ui-common/src";
import { AttachmentMetadataInProgress } from "../../../../../acs-ui-common/src";
import { MessageThreadStrings } from '../../MessageThread';
import { MentionLookupOptions } from '../../MentionPopover';
import type { ChatMessageComponentAsRichTextEditBoxProps } from './ChatMessageComponentAsRichTextEditBox';
/**
* @private
* Use this function to load RoosterJS dependencies early in the lifecycle.
* It should be the same import as used for lazy loading.
*
* @conditional-compile-remove(rich-text-editor)
*/
export declare const loadChatMessageComponentAsRichTextEditBox: () => Promise<{
default: React.ComponentType<ChatMessageComponentAsRichTextEditBoxProps>;
}>;
/**
* @private
*/
export type ChatMessageComponentAsEditBoxPickerProps = {
onCancel?: (messageId: string) => void;
onSubmit: (text: string, attachmentMetadata?: AttachmentMetadata[]) => void;
message: ChatMessage;
strings: MessageThreadStrings;
mentionLookupOptions?: MentionLookupOptions;
isRichTextEditorEnabled?: boolean;
onPaste?: (event: {
content: DocumentFragment;
}) => void;
onRemoveInlineImage?: (imageAttributes: Record<string, string>, messageId: string) => void;
onInsertInlineImage?: (imageAttributes: Record<string, string>, messageId: string) => void;
inlineImagesWithProgress?: AttachmentMetadataInProgress[];
};
/**
* @private
*/
export declare const ChatMessageComponentAsEditBoxPicker: (props: ChatMessageComponentAsEditBoxPickerProps) => JSX.Element;
//# sourceMappingURL=ChatMessageComponentAsEditBoxPicker.d.ts.map