@mobilon-dev/chotto 0.3.91 → 0.3.92

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.
@@ -122,6 +122,12 @@ export interface ChatItemThemeCSSVariables {
122
122
  '--chotto-chatitem-last-message-font-size': string;
123
123
  /** Цвет текста последнего сообщения */
124
124
  '--chotto-chatitem-last-message-text-color': string;
125
+ /** Цвет подписи черновика */
126
+ '--chotto-chatitem-draft-label-color': string;
127
+ /** Отступ справа от подписи черновика */
128
+ '--chotto-chatitem-draft-label-margin-right': string;
129
+ /** Цвет текста черновика */
130
+ '--chotto-chatitem-draft-text-color': string;
125
131
  /** Переполнение текста последнего сообщения (скрытие) */
126
132
  '--chotto-chatitem-last-message-text-overflow-hidden': string;
127
133
  /** Обрезка текста последнего сообщения */
@@ -9,6 +9,7 @@ import { Edit, IFilePreview, Reply } from '@/types';
9
9
  * @property {Edit} [edit] - Редактируемое сообщение
10
10
  * @property {boolean} forceSend - Флаг принудительной отправки сообщения
11
11
  * @property {boolean} isRecording - Флаг активной записи (аудио/видео)
12
+ * @property {number} [inputHeight] - Высота поля ввода для этого черновика
12
13
  */
13
14
  export interface MessageDraft {
14
15
  id: string;
@@ -18,6 +19,7 @@ export interface MessageDraft {
18
19
  edit?: Edit;
19
20
  forceSend: boolean;
20
21
  isRecording: boolean;
22
+ inputHeight?: number;
21
23
  }
22
24
  /**
23
25
  * Структура загруженного файла
@@ -35,6 +37,7 @@ interface UploadedFile {
35
37
  type?: string;
36
38
  preview?: IFilePreview;
37
39
  }
40
+ export declare function getChatDraft(chatAppId: string, chatId: string | number | null | undefined): MessageDraft | undefined;
38
41
  /**
39
42
  * Composable для управления состоянием черновика сообщения в конкретном чате
40
43
  *
@@ -3,6 +3,7 @@ export const en: {
3
3
  'component.ChatFilter.InputPlaceholder': string;
4
4
  'layout.ChatWrapper.noSelectedChat': string;
5
5
  'component.ChatItem.typing': string;
6
+ 'component.ChatItem.draft': string;
6
7
  'component.ChatInput.InputPlaceholder': string;
7
8
  'component.ChatInput.TelegramInputPlaceholder': string;
8
9
  'component.ChatInput.WhatsappInputPlaceholder': string;
@@ -3,6 +3,7 @@ export const ru: {
3
3
  'component.ChatFilter.InputPlaceholder': string;
4
4
  'layout.ChatWrapper.noSelectedChat': string;
5
5
  'component.ChatItem.typing': string;
6
+ 'component.ChatItem.draft': string;
6
7
  'component.ChatInput.InputPlaceholder': string;
7
8
  'component.ChatInput.WhatsappInputPlaceholder': string;
8
9
  'component.ChatInput.TelegramInputPlaceholder': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobilon-dev/chotto",
3
- "version": "0.3.91",
3
+ "version": "0.3.92",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "primeicons": "^7.0.0",
44
44
  "sass-embedded": "^1.96.0",
45
45
  "vue": "^3.5.25",
46
- "vue3-emoji-picker-ru": "^1.1.9"
46
+ "vue3-emoji-picker-ru": "^1.1.10"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@chromatic-com/storybook": "^4.1.3",