@mobilon-dev/chotto 0.3.92 → 0.3.93

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.
@@ -10,7 +10,13 @@ import { Edit, IFilePreview, Reply } from '@/types';
10
10
  * @property {boolean} forceSend - Флаг принудительной отправки сообщения
11
11
  * @property {boolean} isRecording - Флаг активной записи (аудио/видео)
12
12
  * @property {number} [inputHeight] - Высота поля ввода для этого черновика
13
+ * @property {string} [listPreviewText] - Снимок текста черновика для списка чатов
14
+ * @property {MessageDraftListFile} [listPreviewFile] - Снимок прикреплённого файла для списка чатов
13
15
  */
16
+ export interface MessageDraftListFile {
17
+ name: string;
18
+ type?: string;
19
+ }
14
20
  export interface MessageDraft {
15
21
  id: string;
16
22
  text: string;
@@ -20,6 +26,8 @@ export interface MessageDraft {
20
26
  forceSend: boolean;
21
27
  isRecording: boolean;
22
28
  inputHeight?: number;
29
+ listPreviewText?: string;
30
+ listPreviewFile?: MessageDraftListFile;
23
31
  }
24
32
  /**
25
33
  * Структура загруженного файла
@@ -38,6 +46,7 @@ interface UploadedFile {
38
46
  preview?: IFilePreview;
39
47
  }
40
48
  export declare function getChatDraft(chatAppId: string, chatId: string | number | null | undefined): MessageDraft | undefined;
49
+ export declare function commitChatDraftToList(draftId: string | undefined): void;
41
50
  /**
42
51
  * Composable для управления состоянием черновика сообщения в конкретном чате
43
52
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobilon-dev/chotto",
3
- "version": "0.3.92",
3
+ "version": "0.3.93",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",