@mobilon-dev/chotto 0.3.22 → 0.3.23

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.
Files changed (28) hide show
  1. package/dist/{CreateChat-BS86RCwj.js → CreateChat-CdkAwYO5.js} +1 -1
  2. package/dist/{CreateChat2-UAK1W75x.js → CreateChat2-sDETTpTU.js} +1 -1
  3. package/dist/{CreateDialog-CoSOBGf3.js → CreateDialog-Bw8bOym2.js} +1 -1
  4. package/dist/{ModalVideoRecorder-Cs7ZiWJ1.js → ModalVideoRecorder-BP9FfPE8.js} +1 -1
  5. package/dist/{SelectUser2-CYADx7Gc.js → SelectUser2-BAKccRXs.js} +1 -1
  6. package/dist/chotto.css +1 -1
  7. package/dist/{index-0LXvcjYD.js → index-4foc416D.js} +3135 -2676
  8. package/dist/themes/dark.css +1 -1
  9. package/dist/themes/default.css +1 -1
  10. package/dist/themes/green.css +1 -1
  11. package/dist/themes/mobilon1.css +1 -1
  12. package/dist/types/apps/data/messages.d.ts +205 -0
  13. package/dist/types/components/2_feed_elements/MessageReactions/MessageReactions.vue.d.ts +61 -0
  14. package/dist/types/components/2_feed_elements/MessageReactions/composables/index.d.ts +4 -0
  15. package/dist/types/components/2_feed_elements/MessageReactions/composables/usePositioning.d.ts +16 -0
  16. package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactions.d.ts +19 -0
  17. package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.d.ts +23 -0
  18. package/dist/types/components/2_feed_elements/MessageReactions/composables/useReactionsState.d.ts +99 -0
  19. package/dist/types/components/2_feed_elements/MessageReactions/stories/MessageReactions.stories.d.ts +16 -0
  20. package/dist/types/components/2_feed_elements/MessageReactions/styles/types.d.ts +221 -0
  21. package/dist/types/components/2_feed_elements/MessageReactions/utils/quickReactions.d.ts +6 -0
  22. package/dist/types/components/2_feed_elements/types/messages.d.ts +52 -0
  23. package/dist/types/components/index.d.ts +1 -0
  24. package/dist/types/functions/createReactionHandlers.d.ts +23 -0
  25. package/dist/types/functions/index.d.ts +1 -0
  26. package/dist/vuessages.es.js +75 -73
  27. package/dist/vuessages.umd.js +12 -12
  28. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import { type Ref } from 'vue';
2
+ import type { MessageReactions } from '@/types';
3
+ /**
4
+ * Композабл для управления локальным состоянием реакций
5
+ */
6
+ export declare function useReactionsState(initialReactions: Ref<MessageReactions | undefined>): {
7
+ localReactions: Ref<{
8
+ items: {
9
+ key: import("@/types").ReactionKey;
10
+ count: number;
11
+ reactedByMe?: boolean | undefined;
12
+ }[];
13
+ meta?: {
14
+ mode?: "single" | "multi" | undefined;
15
+ } | undefined;
16
+ recent?: {
17
+ userId: string | number;
18
+ key: import("@/types").ReactionKey;
19
+ date?: number | undefined;
20
+ }[] | undefined;
21
+ vendor?: {
22
+ telegram?: {
23
+ total_count?: number | undefined;
24
+ recent_reactions?: {
25
+ type: {
26
+ type: string;
27
+ emoji?: string | undefined;
28
+ };
29
+ actor?: {
30
+ id?: number | undefined;
31
+ is_bot?: boolean | undefined;
32
+ first_name?: string | undefined;
33
+ } | undefined;
34
+ date?: number | undefined;
35
+ }[] | undefined;
36
+ counts?: {
37
+ type: {
38
+ type: string;
39
+ emoji: string;
40
+ };
41
+ count: number;
42
+ }[] | undefined;
43
+ } | undefined;
44
+ whatsapp?: {
45
+ lastEventAt?: number | undefined;
46
+ } | undefined;
47
+ } | undefined;
48
+ } | undefined, MessageReactions | {
49
+ items: {
50
+ key: import("@/types").ReactionKey;
51
+ count: number;
52
+ reactedByMe?: boolean | undefined;
53
+ }[];
54
+ meta?: {
55
+ mode?: "single" | "multi" | undefined;
56
+ } | undefined;
57
+ recent?: {
58
+ userId: string | number;
59
+ key: import("@/types").ReactionKey;
60
+ date?: number | undefined;
61
+ }[] | undefined;
62
+ vendor?: {
63
+ telegram?: {
64
+ total_count?: number | undefined;
65
+ recent_reactions?: {
66
+ type: {
67
+ type: string;
68
+ emoji?: string | undefined;
69
+ };
70
+ actor?: {
71
+ id?: number | undefined;
72
+ is_bot?: boolean | undefined;
73
+ first_name?: string | undefined;
74
+ } | undefined;
75
+ date?: number | undefined;
76
+ }[] | undefined;
77
+ counts?: {
78
+ type: {
79
+ type: string;
80
+ emoji: string;
81
+ };
82
+ count: number;
83
+ }[] | undefined;
84
+ } | undefined;
85
+ whatsapp?: {
86
+ lastEventAt?: number | undefined;
87
+ } | undefined;
88
+ } | undefined;
89
+ } | undefined>;
90
+ displayedReactions: import("vue").ComputedRef<{
91
+ key: import("@/types").ReactionKey;
92
+ count: number;
93
+ reactedByMe?: boolean | undefined;
94
+ }[]>;
95
+ hasReactions: import("vue").ComputedRef<boolean>;
96
+ addReaction: (key: string) => void;
97
+ removeReaction: (key: string) => void;
98
+ toggleReaction: (key: string) => void;
99
+ };
@@ -0,0 +1,16 @@
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import TextMessage from '../../TextMessage/TextMessage.vue';
3
+ declare const meta: Meta<typeof TextMessage>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof TextMessage>;
6
+ export declare const Default: Story;
7
+ export declare const LeftMessageReactions: Story;
8
+ export declare const LeftMessageSingleReaction: Story;
9
+ export declare const LeftMessageMultipleReactions: Story;
10
+ export declare const LeftMessageNoReactions: Story;
11
+ export declare const RightMessageReactions: Story;
12
+ export declare const RightMessageSingleReaction: Story;
13
+ export declare const RightMessageMultipleReactions: Story;
14
+ export declare const RightMessageNoReactions: Story;
15
+ export declare const AllReactionsActive: Story;
16
+ export declare const LargeCountReactions: Story;
@@ -0,0 +1,221 @@
1
+ /**
2
+ * CSS variables for MessageReactions component
3
+ */
4
+ export interface MessageReactionsThemeCSSVariables {
5
+ /** Отображение контейнера реакций */
6
+ '--chotto-messagereactions-display': string;
7
+ /** Выравнивание элементов контейнера реакций */
8
+ '--chotto-messagereactions-align-items': string;
9
+ /** Промежуток между элементами реакций */
10
+ '--chotto-messagereactions-gap': string;
11
+ /** Позиционирование контейнера реакций */
12
+ '--chotto-messagereactions-position': string;
13
+ /** Минимальная высота контейнера реакций */
14
+ '--chotto-messagereactions-min-height': string;
15
+ /** Z-index контейнера реакций */
16
+ '--chotto-messagereactions-z-index': string;
17
+ /** Позиционирование контейнера реакций без реакций */
18
+ '--chotto-messagereactions-no-reactions-position': string;
19
+ /** Отступ снизу контейнера реакций без реакций */
20
+ '--chotto-messagereactions-no-reactions-bottom': string;
21
+ /** Высота контейнера реакций без реакций */
22
+ '--chotto-messagereactions-no-reactions-height': string;
23
+ /** Ширина контейнера реакций без реакций */
24
+ '--chotto-messagereactions-no-reactions-width': string;
25
+ /** Переполнение контейнера реакций без реакций */
26
+ '--chotto-messagereactions-no-reactions-overflow': string;
27
+ /** Минимальная высота контейнера реакций без реакций */
28
+ '--chotto-messagereactions-no-reactions-min-height': string;
29
+ /** Внешние отступы контейнера реакций без реакций */
30
+ '--chotto-messagereactions-no-reactions-margin': string;
31
+ /** Внутренние отступы контейнера реакций без реакций */
32
+ '--chotto-messagereactions-no-reactions-padding': string;
33
+ /** Z-index контейнера реакций без реакций */
34
+ '--chotto-messagereactions-no-reactions-z-index': string;
35
+ /** Отступ справа для левых сообщений без реакций */
36
+ '--chotto-messagereactions-left-no-reactions-right': string;
37
+ /** Отступ слева для левых сообщений без реакций */
38
+ '--chotto-messagereactions-left-no-reactions-left': string;
39
+ /** Отступ слева для правых сообщений без реакций */
40
+ '--chotto-messagereactions-right-no-reactions-left': string;
41
+ /** Отступ справа для правых сообщений без реакций */
42
+ '--chotto-messagereactions-right-no-reactions-right': string;
43
+ /** Отображение чипа реакции */
44
+ '--chotto-messagereactions-chip-display': string;
45
+ /** Выравнивание элементов чипа реакции */
46
+ '--chotto-messagereactions-chip-align-items': string;
47
+ /** Промежуток между элементами чипа реакции */
48
+ '--chotto-messagereactions-chip-gap': string;
49
+ /** Граница чипа реакции */
50
+ '--chotto-messagereactions-chip-border': string;
51
+ /** Фон чипа реакции */
52
+ '--chotto-messagereactions-chip-bg': string;
53
+ /** Цвет текста чипа реакции */
54
+ '--chotto-messagereactions-chip-fg': string;
55
+ /** Скругление чипа реакции */
56
+ '--chotto-messagereactions-chip-border-radius': string;
57
+ /** Внутренние отступы чипа реакции */
58
+ '--chotto-messagereactions-chip-padding': string;
59
+ /** Размер шрифта чипа реакции */
60
+ '--chotto-messagereactions-chip-font-size': string;
61
+ /** Курсор чипа реакции */
62
+ '--chotto-messagereactions-chip-cursor': string;
63
+ /** Граница активного чипа реакции */
64
+ '--chotto-messagereactions-chip-active-border': string;
65
+ /** Фон активного чипа реакции */
66
+ '--chotto-messagereactions-chip-active-bg': string;
67
+ /** Толщина шрифта активного чипа реакции */
68
+ '--chotto-messagereactions-chip-active-font-weight': string;
69
+ /** Высота строки эмодзи реакции */
70
+ '--chotto-messagereactions-emoji-line-height': string;
71
+ /** Высота строки счётчика реакции */
72
+ '--chotto-messagereactions-count-line-height': string;
73
+ /** Отображение кнопки добавления реакции */
74
+ '--chotto-messagereactions-add-display': string;
75
+ /** Выравнивание элементов кнопки добавления реакции */
76
+ '--chotto-messagereactions-add-align-items': string;
77
+ /** Выравнивание содержимого кнопки добавления реакции */
78
+ '--chotto-messagereactions-add-justify-content': string;
79
+ /** Ширина кнопки добавления реакции */
80
+ '--chotto-messagereactions-add-width': string;
81
+ /** Высота кнопки добавления реакции */
82
+ '--chotto-messagereactions-add-height': string;
83
+ /** Скругление кнопки добавления реакции */
84
+ '--chotto-messagereactions-add-border-radius': string;
85
+ /** Граница кнопки добавления реакции */
86
+ '--chotto-messagereactions-add-border': string;
87
+ /** Фон кнопки добавления реакции */
88
+ '--chotto-messagereactions-add-bg': string;
89
+ /** Цвет кнопки добавления реакции */
90
+ '--chotto-messagereactions-add-color': string;
91
+ /** Курсор кнопки добавления реакции */
92
+ '--chotto-messagereactions-add-cursor': string;
93
+ /** Размер шрифта кнопки добавления реакции */
94
+ '--chotto-messagereactions-add-font-size': string;
95
+ /** Прозрачность кнопки добавления реакции */
96
+ '--chotto-messagereactions-add-opacity': string;
97
+ /** Переход кнопки добавления реакции */
98
+ '--chotto-messagereactions-add-transition': string;
99
+ /** События указателя кнопки добавления реакции */
100
+ '--chotto-messagereactions-add-pointer-events': string;
101
+ /** Позиционирование кнопки добавления реакции */
102
+ '--chotto-messagereactions-add-position': string;
103
+ /** Отступ снизу кнопки добавления реакции */
104
+ '--chotto-messagereactions-add-bottom': string;
105
+ /** Z-index кнопки добавления реакции */
106
+ '--chotto-messagereactions-add-z-index': string;
107
+ /** Отступ справа кнопки добавления реакции для левых сообщений */
108
+ '--chotto-messagereactions-add-left-right': string;
109
+ /** Отступ слева кнопки добавления реакции для левых сообщений */
110
+ '--chotto-messagereactions-add-left-left': string;
111
+ /** Отступ слева кнопки добавления реакции для правых сообщений */
112
+ '--chotto-messagereactions-add-right-left': string;
113
+ /** Отступ справа кнопки добавления реакции для правых сообщений */
114
+ '--chotto-messagereactions-add-right-right': string;
115
+ /** Позиционирование кнопки добавления реакции когда есть реакции */
116
+ '--chotto-messagereactions-add-has-reactions-position': string;
117
+ /** Отступ снизу кнопки добавления реакции когда есть реакции */
118
+ '--chotto-messagereactions-add-has-reactions-bottom': string;
119
+ /** Трансформация кнопки добавления реакции когда есть реакции */
120
+ '--chotto-messagereactions-add-has-reactions-transform': string;
121
+ /** Прозрачность кнопки добавления реакции когда есть чипы */
122
+ '--chotto-messagereactions-add-has-chip-opacity': string;
123
+ /** События указателя кнопки добавления реакции когда есть чипы */
124
+ '--chotto-messagereactions-add-has-chip-pointer-events': string;
125
+ /** Позиционирование панели быстрых реакций */
126
+ '--chotto-messagereactions-quick-panel-position': string;
127
+ /** Отступ сверху панели быстрых реакций */
128
+ '--chotto-messagereactions-quick-panel-top': string;
129
+ /** Отступ слева панели быстрых реакций */
130
+ '--chotto-messagereactions-quick-panel-left': string;
131
+ /** Внешний отступ сверху панели быстрых реакций */
132
+ '--chotto-messagereactions-quick-panel-margin-top': string;
133
+ /** Фон панели быстрых реакций */
134
+ '--chotto-messagereactions-quick-panel-bg': string;
135
+ /** Граница панели быстрых реакций */
136
+ '--chotto-messagereactions-quick-panel-border': string;
137
+ /** Скругление панели быстрых реакций */
138
+ '--chotto-messagereactions-quick-panel-border-radius': string;
139
+ /** Тень панели быстрых реакций */
140
+ '--chotto-messagereactions-quick-panel-box-shadow': string;
141
+ /** Внутренние отступы панели быстрых реакций */
142
+ '--chotto-messagereactions-quick-panel-padding': string;
143
+ /** Отображение панели быстрых реакций */
144
+ '--chotto-messagereactions-quick-panel-display': string;
145
+ /** Выравнивание элементов панели быстрых реакций */
146
+ '--chotto-messagereactions-quick-panel-align-items': string;
147
+ /** Промежуток между элементами панели быстрых реакций */
148
+ '--chotto-messagereactions-quick-panel-gap': string;
149
+ /** Z-index панели быстрых реакций */
150
+ '--chotto-messagereactions-quick-panel-z-index': string;
151
+ /** Отступ слева панели быстрых реакций для правых сообщений */
152
+ '--chotto-messagereactions-quick-panel-right-left': string;
153
+ /** Отступ справа панели быстрых реакций для правых сообщений */
154
+ '--chotto-messagereactions-quick-panel-right-right': string;
155
+ /** Отображение элемента быстрой реакции */
156
+ '--chotto-messagereactions-quick-item-display': string;
157
+ /** Выравнивание элементов элемента быстрой реакции */
158
+ '--chotto-messagereactions-quick-item-align-items': string;
159
+ /** Выравнивание содержимого элемента быстрой реакции */
160
+ '--chotto-messagereactions-quick-item-justify-content': string;
161
+ /** Ширина элемента быстрой реакции */
162
+ '--chotto-messagereactions-quick-item-width': string;
163
+ /** Высота элемента быстрой реакции */
164
+ '--chotto-messagereactions-quick-item-height': string;
165
+ /** Скругление элемента быстрой реакции */
166
+ '--chotto-messagereactions-quick-item-border-radius': string;
167
+ /** Граница элемента быстрой реакции */
168
+ '--chotto-messagereactions-quick-item-border': string;
169
+ /** Фон элемента быстрой реакции */
170
+ '--chotto-messagereactions-quick-item-bg': string;
171
+ /** Курсор элемента быстрой реакции */
172
+ '--chotto-messagereactions-quick-item-cursor': string;
173
+ /** Размер шрифта элемента быстрой реакции */
174
+ '--chotto-messagereactions-quick-item-font-size': string;
175
+ /** Переход элемента быстрой реакции */
176
+ '--chotto-messagereactions-quick-item-transition': string;
177
+ /** Фон элемента быстрой реакции при наведении */
178
+ '--chotto-messagereactions-quick-item-hover-bg': string;
179
+ /** Отображение кнопки развернуть */
180
+ '--chotto-messagereactions-expand-display': string;
181
+ /** Выравнивание элементов кнопки развернуть */
182
+ '--chotto-messagereactions-expand-align-items': string;
183
+ /** Выравнивание содержимого кнопки развернуть */
184
+ '--chotto-messagereactions-expand-justify-content': string;
185
+ /** Ширина кнопки развернуть */
186
+ '--chotto-messagereactions-expand-width': string;
187
+ /** Высота кнопки развернуть */
188
+ '--chotto-messagereactions-expand-height': string;
189
+ /** Скругление кнопки развернуть */
190
+ '--chotto-messagereactions-expand-border-radius': string;
191
+ /** Граница кнопки развернуть */
192
+ '--chotto-messagereactions-expand-border': string;
193
+ /** Фон кнопки развернуть */
194
+ '--chotto-messagereactions-expand-bg': string;
195
+ /** Курсор кнопки развернуть */
196
+ '--chotto-messagereactions-expand-cursor': string;
197
+ /** Размер шрифта кнопки развернуть */
198
+ '--chotto-messagereactions-expand-font-size': string;
199
+ /** Цвет кнопки развернуть */
200
+ '--chotto-messagereactions-expand-color': string;
201
+ /** Переход кнопки развернуть */
202
+ '--chotto-messagereactions-expand-transition': string;
203
+ /** Фон кнопки развернуть при наведении */
204
+ '--chotto-messagereactions-expand-hover-bg': string;
205
+ /** Высота строки span внутри кнопки развернуть */
206
+ '--chotto-messagereactions-expand-span-line-height': string;
207
+ /** Толщина шрифта span внутри кнопки развернуть */
208
+ '--chotto-messagereactions-expand-span-font-weight': string;
209
+ /** Z-index пикера реакций */
210
+ '--chotto-messagereactions-picker-z-index': string;
211
+ /** Позиционирование emoji picker внутри пикера */
212
+ '--chotto-messagereactions-picker-emoji-picker-position': string;
213
+ /** Z-index emoji picker внутри пикера */
214
+ '--chotto-messagereactions-picker-emoji-picker-z-index': string;
215
+ /** Переход появления/исчезновения попапа реакций */
216
+ '--chotto-messagereactions-popover-transition': string;
217
+ /** Прозрачность попапа реакций в начале */
218
+ '--chotto-messagereactions-popover-enter-from-opacity': string;
219
+ /** Трансформация попапа реакций в начале */
220
+ '--chotto-messagereactions-popover-enter-from-transform': string;
221
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Список популярных эмоджи для быстрых реакций
3
+ * Используется в MessageReactions
4
+ */
5
+ export declare const QUICK_REACTION_EMOJIS: readonly ["👍", "❤️", "🔥", "😂", "😮", "😢"];
6
+ export type QuickReactionEmoji = typeof QUICK_REACTION_EMOJIS[number];
@@ -15,6 +15,51 @@ export interface ILinkPreview {
15
15
  url: string;
16
16
  description: string;
17
17
  }
18
+ export type ReactionKey = string;
19
+ export interface MessageReactionItem {
20
+ key: ReactionKey;
21
+ count: number;
22
+ reactedByMe?: boolean;
23
+ }
24
+ export interface MessageRecentReaction {
25
+ userId: string | number;
26
+ key: ReactionKey;
27
+ date?: number;
28
+ }
29
+ export interface MessageReactions {
30
+ items: MessageReactionItem[];
31
+ meta?: {
32
+ mode?: 'single' | 'multi';
33
+ };
34
+ recent?: MessageRecentReaction[];
35
+ vendor?: {
36
+ telegram?: {
37
+ total_count?: number;
38
+ recent_reactions?: Array<{
39
+ type: {
40
+ type: string;
41
+ emoji?: string;
42
+ };
43
+ actor?: {
44
+ id?: number;
45
+ is_bot?: boolean;
46
+ first_name?: string;
47
+ };
48
+ date?: number;
49
+ }>;
50
+ counts?: Array<{
51
+ type: {
52
+ type: string;
53
+ emoji: string;
54
+ };
55
+ count: number;
56
+ }>;
57
+ };
58
+ whatsapp?: {
59
+ lastEventAt?: number;
60
+ };
61
+ };
62
+ }
18
63
  export interface IKeyBoard {
19
64
  key: string;
20
65
  text: string;
@@ -42,6 +87,7 @@ export interface IAudioMessage {
42
87
  linkPreview?: ILinkPreview;
43
88
  embed?: object;
44
89
  keyboard?: IKeyBoard[];
90
+ reactions?: MessageReactions;
45
91
  }
46
92
  export interface ICallMessage {
47
93
  messageId: string;
@@ -58,6 +104,7 @@ export interface ICallMessage {
58
104
  transcript?: {
59
105
  dialog: IDialog[];
60
106
  };
107
+ reactions?: MessageReactions;
61
108
  }
62
109
  export interface IDateMessage {
63
110
  messageId?: string;
@@ -81,6 +128,7 @@ export interface IFileMessage {
81
128
  linkPreview?: ILinkPreview;
82
129
  embed?: object;
83
130
  keyboard?: IKeyBoard[];
131
+ reactions?: MessageReactions;
84
132
  }
85
133
  export interface IImageMessage {
86
134
  messageId: string;
@@ -100,6 +148,7 @@ export interface IImageMessage {
100
148
  linkPreview?: ILinkPreview;
101
149
  embed?: object;
102
150
  keyboard?: IKeyBoard[];
151
+ reactions?: MessageReactions;
103
152
  }
104
153
  export interface ISystemMessage {
105
154
  messageId: string;
@@ -121,6 +170,7 @@ export interface ITextMessage {
121
170
  linkPreview?: ILinkPreview;
122
171
  embed?: object;
123
172
  keyboard?: IKeyBoard[];
173
+ reactions?: MessageReactions;
124
174
  }
125
175
  export interface ITypingMessage {
126
176
  avatar?: string;
@@ -144,6 +194,7 @@ export interface IVideoMessage {
144
194
  linkPreview?: ILinkPreview;
145
195
  embed?: object;
146
196
  keyboard?: IKeyBoard[];
197
+ reactions?: MessageReactions;
147
198
  }
148
199
  export interface IStickerMessage {
149
200
  messageId: string;
@@ -164,4 +215,5 @@ export interface IStickerMessage {
164
215
  linkPreview?: ILinkPreview;
165
216
  embed?: object;
166
217
  keyboard?: IKeyBoard[];
218
+ reactions?: MessageReactions;
167
219
  }
@@ -48,6 +48,7 @@ export { default as FeedKeyboard } from './2_feed_elements/FeedKeyboard/FeedKeyb
48
48
  export { default as FileMessage } from './2_feed_elements/FileMessage/FileMessage.vue';
49
49
  export { default as ImageMessage } from './2_feed_elements/ImageMessage/ImageMessage.vue';
50
50
  export { default as MessageKeyboard } from './2_feed_elements/MessageKeyboard/MessageKeyboard.vue';
51
+ export { default as MessageReactions } from './2_feed_elements/MessageReactions/MessageReactions.vue';
51
52
  export { default as StickerMessage } from './2_feed_elements/StickerMessage/StickerMessage.vue';
52
53
  export { default as ReplyAudioMessage } from './2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue';
53
54
  export { default as ReplyCallMessage } from './2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue';
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Создает обработчики событий для реакций на сообщения
3
+ * @param emit - функция emit из компонента Vue
4
+ * @returns Объект с обработчиками onToggleReaction, onAddReaction, onRemoveReaction
5
+ */
6
+ export declare function createReactionHandlers(emit: (event: 'action', payload: {
7
+ messageId: string;
8
+ type: string;
9
+ key: string;
10
+ }) => void): {
11
+ onToggleReaction: (payload: {
12
+ messageId: string | number;
13
+ key: string;
14
+ }) => void;
15
+ onAddReaction: (payload: {
16
+ messageId: string | number;
17
+ key: string;
18
+ }) => void;
19
+ onRemoveReaction: (payload: {
20
+ messageId: string | number;
21
+ key: string;
22
+ }) => void;
23
+ };
@@ -4,3 +4,4 @@ export * from './playNotificationAudio';
4
4
  export * from './insertDaySeparators';
5
5
  export * from './sortByTimestamp';
6
6
  export * from './getMessageClass';
7
+ export * from './createReactionHandlers';