react-pro-messenger 1.1.0 → 1.1.2

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.
@@ -2,7 +2,7 @@
2
2
  import { MessageEntity } from "../../domain/MessageEntity";
3
3
  import { SymbolAssignmentInterface } from "../../ts/interfaces";
4
4
  declare const ChatInput: ({ onSendMessage, onEditMessage, onSendVoice, onImageSend, onVideoSend, onFileSend, dynamicSymbolAssignments, onDynamicSymbolListSet, onDynamicSymbolListDelete, messageToEdit, setMessageToEdit, }: {
5
- onSendMessage: (newMessage: string) => void;
5
+ onSendMessage: (newMessage: string, htmlContent?: string) => void;
6
6
  onEditMessage: (newMessageEntity: MessageEntity) => void;
7
7
  onSendVoice: (voiceBlobUrl: Blob) => void;
8
8
  onFileSend: (blob: Blob) => void;
@@ -3,6 +3,7 @@ import { UserInterface } from "../ts/interfaces";
3
3
  export declare class MessageEntity {
4
4
  id: string;
5
5
  text: string;
6
+ htmlContent?: string | undefined;
6
7
  createdDate: string;
7
8
  attachmentUrl: undefined | string;
8
9
  attachmentBlob: Blob | undefined;
@@ -21,9 +22,10 @@ export declare class MessageEntity {
21
22
  } | undefined;
22
23
  isSending?: boolean;
23
24
  isEdited?: boolean;
24
- constructor({ id, text, createdDate, attachmentUrl, attachmentType, attachmentFormat, attachmentBlob, attachmentName, attachmentSize, user, isRightSided, symbols, isSending, isEdited, }: {
25
+ constructor({ id, text, htmlContent, createdDate, attachmentUrl, attachmentType, attachmentFormat, attachmentBlob, attachmentName, attachmentSize, user, isRightSided, symbols, isSending, isEdited, }: {
25
26
  id: string;
26
27
  text: string;
28
+ htmlContent?: string;
27
29
  createdDate: string;
28
30
  attachmentUrl?: string;
29
31
  attachmentType?: AttachmentTypeEnum;
@@ -18,7 +18,7 @@ declare const Logic: ({ user, messages, updateMessages, onMessageSent, onEditMes
18
18
  contextMenuItems: ContextMenuItem[];
19
19
  handleSendFile: (file: Blob, type: AttachmentTypeEnum) => void;
20
20
  handleSendVoice: (voiceBlob: Blob) => void;
21
- handleSendMessage: (text: string) => void;
21
+ handleSendMessage: (text: string, htmlContent?: string) => void;
22
22
  handleContextMenu: (event: React.MouseEvent, message: MessageEntity) => void;
23
23
  isModalOpen: boolean;
24
24
  contextMenu: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-pro-messenger",
3
3
  "description": "Telegram-style chat component for React",
4
4
  "private": false,
5
- "version": "1.1.0",
5
+ "version": "1.1.2",
6
6
  "type": "module",
7
7
  "main": "dist/index.umd.js",
8
8
  "module": "dist/index.es.js",