@mobilon-dev/chotto 0.3.19 → 0.3.21

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 (59) hide show
  1. package/dist/{CreateChat-CwRkMnM3.js → CreateChat-DoNHuQv0.js} +1 -1
  2. package/dist/{CreateChat2-Cxy5KpkU.js → CreateChat2-DpYCA_v_.js} +1 -1
  3. package/dist/{CreateDialog-CR1QOWmo.js → CreateDialog-BOnzLE6I.js} +1 -1
  4. package/dist/{ModalVideoRecorder-DjqHMgX1.js → ModalVideoRecorder-BY3428rE.js} +1 -1
  5. package/dist/{SelectUser2-C-M3Ca0V.js → SelectUser2-CanippyB.js} +1 -1
  6. package/dist/chotto.css +1 -1
  7. package/dist/{index-BR7f4lUX.js → index-D4aZYJgw.js} +6837 -6506
  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/chats.d.ts +1 -1
  13. package/dist/types/apps/data/messages.d.ts +121 -0
  14. package/dist/types/components/1_atoms/Tooltip/stories/Tooltip.stories.d.ts +8 -2
  15. package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/stories/ButtonEmojiPicker.stories.d.ts +4 -3
  16. package/dist/types/components/2_elements/ContactInfo/stories/ContactInfo.stories.d.ts +8 -16
  17. package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +4 -0
  18. package/dist/types/components/2_feed_elements/DateMessageSticky/stories/DateMessageSticky.stories.d.ts +5 -18
  19. package/dist/types/components/2_feed_elements/FeedKeyboard/stories/FeedKeyboard.stories.d.ts +5 -36
  20. package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +4 -0
  21. package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +4 -0
  22. package/dist/types/components/2_feed_elements/ReplyAudioMessage/stories/ReplyAudioMessage.stories.d.ts +6 -17
  23. package/dist/types/components/2_feed_elements/ReplyCallMessage/stories/ReplyCallMessage.stories.d.ts +6 -17
  24. package/dist/types/components/2_feed_elements/ReplyFileMessage/stories/ReplyFileMessage.stories.d.ts +7 -17
  25. package/dist/types/components/2_feed_elements/ReplyImageMessage/stories/ReplyImageMessage.stories.d.ts +7 -17
  26. package/dist/types/components/2_feed_elements/ReplyTextMessage/stories/ReplyTextMessage.stories.d.ts +8 -17
  27. package/dist/types/components/2_feed_elements/ReplyVideoMessage/stories/ReplyVideoMessage.stories.d.ts +7 -17
  28. package/dist/types/components/2_feed_elements/TextMessage/stories/TextMessage.stories.d.ts +2 -0
  29. package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +4 -0
  30. package/dist/types/components/2_feed_elements/VideoMessage/styles/types.d.ts +4 -0
  31. package/dist/types/components/2_feed_elements/types/messages.d.ts +5 -0
  32. package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +2 -0
  33. package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +9 -9
  34. package/dist/types/components/3_compounds/Feed/composables/index.d.ts +10 -0
  35. package/dist/types/components/3_compounds/Feed/composables/useFeedButton.d.ts +20 -0
  36. package/dist/types/components/3_compounds/Feed/composables/useFeedComponents.d.ts +6 -0
  37. package/dist/types/components/3_compounds/Feed/composables/useFeedGrouping.d.ts +33 -0
  38. package/dist/types/components/3_compounds/Feed/composables/useFeedKeyboard.d.ts +15 -0
  39. package/dist/types/components/3_compounds/Feed/composables/useFeedLoadMore.d.ts +23 -0
  40. package/dist/types/components/3_compounds/Feed/composables/useFeedMessageVisibility.d.ts +16 -0
  41. package/dist/types/components/3_compounds/Feed/composables/useFeedReply.d.ts +37 -0
  42. package/dist/types/components/3_compounds/Feed/composables/useFeedScroll.d.ts +26 -0
  43. package/dist/types/components/3_compounds/Feed/composables/useFeedScrollTo.d.ts +14 -0
  44. package/dist/types/components/3_compounds/Feed/composables/useStickyDate.d.ts +16 -0
  45. package/dist/types/functions/getMessageClass.d.ts +11 -0
  46. package/dist/types/functions/getStatusMessage.d.ts +1 -0
  47. package/dist/types/functions/index.d.ts +1 -0
  48. package/dist/types/hooks/index.d.ts +2 -1
  49. package/dist/types/hooks/messages/index.d.ts +2 -0
  50. package/dist/types/hooks/messages/useMessageActions.d.ts +56 -0
  51. package/dist/types/hooks/messages/useMessageLinks.d.ts +13 -0
  52. package/dist/types/hooks/{useMessage.d.ts → useMessageDraft.d.ts} +4 -4
  53. package/dist/types/hooks/validators/index.d.ts +1 -0
  54. package/dist/types/hooks/validators/messages/types.d.ts +2 -1
  55. package/dist/types/hooks/validators/useValidation.d.ts +84 -0
  56. package/dist/vuessages.es.js +53 -48
  57. package/dist/vuessages.umd.js +28 -28
  58. package/package.json +1 -1
  59. package/dist/types/components/1_atoms/Tooltip/Tooltip.stories.d.ts +0 -6
@@ -187,6 +187,7 @@ export declare const chats: ({
187
187
  lastMessage: string;
188
188
  'lastActivity.time': string;
189
189
  'lastActivity.timestamp': string;
190
+ avatar: string;
190
191
  actions: {
191
192
  action: string;
192
193
  title: string;
@@ -215,7 +216,6 @@ export declare const chats: ({
215
216
  data: string;
216
217
  }[];
217
218
  };
218
- avatar?: undefined;
219
219
  isFixedBottom?: undefined;
220
220
  status?: undefined;
221
221
  'lastMessage.status'?: undefined;
@@ -29,6 +29,7 @@ export declare const messages: ({
29
29
  filename?: undefined;
30
30
  linkPreview?: undefined;
31
31
  keyboard?: undefined;
32
+ statusMsg?: undefined;
32
33
  } | {
33
34
  chatId: number;
34
35
  dialogId: string;
@@ -56,6 +57,7 @@ export declare const messages: ({
56
57
  filename?: undefined;
57
58
  linkPreview?: undefined;
58
59
  keyboard?: undefined;
60
+ statusMsg?: undefined;
59
61
  } | {
60
62
  chatId: number;
61
63
  dialogId: string;
@@ -88,6 +90,7 @@ export declare const messages: ({
88
90
  filename?: undefined;
89
91
  linkPreview?: undefined;
90
92
  keyboard?: undefined;
93
+ statusMsg?: undefined;
91
94
  } | {
92
95
  chatId: number;
93
96
  dialogId: string;
@@ -112,6 +115,7 @@ export declare const messages: ({
112
115
  filename?: undefined;
113
116
  linkPreview?: undefined;
114
117
  keyboard?: undefined;
118
+ statusMsg?: undefined;
115
119
  } | {
116
120
  chatId: number;
117
121
  dialogId: string;
@@ -144,6 +148,7 @@ export declare const messages: ({
144
148
  filename?: undefined;
145
149
  linkPreview?: undefined;
146
150
  keyboard?: undefined;
151
+ statusMsg?: undefined;
147
152
  } | {
148
153
  chatId: number;
149
154
  dialogId: string;
@@ -176,6 +181,7 @@ export declare const messages: ({
176
181
  filename?: undefined;
177
182
  linkPreview?: undefined;
178
183
  keyboard?: undefined;
184
+ statusMsg?: undefined;
179
185
  } | {
180
186
  chatId: number;
181
187
  dialogId: string;
@@ -200,6 +206,7 @@ export declare const messages: ({
200
206
  filename?: undefined;
201
207
  linkPreview?: undefined;
202
208
  keyboard?: undefined;
209
+ statusMsg?: undefined;
203
210
  } | {
204
211
  chatId: number;
205
212
  dialogId: string;
@@ -238,6 +245,7 @@ export declare const messages: ({
238
245
  filename?: undefined;
239
246
  linkPreview?: undefined;
240
247
  keyboard?: undefined;
248
+ statusMsg?: undefined;
241
249
  } | {
242
250
  chatId: number;
243
251
  dialogId: string;
@@ -268,6 +276,7 @@ export declare const messages: ({
268
276
  filename?: undefined;
269
277
  linkPreview?: undefined;
270
278
  keyboard?: undefined;
279
+ statusMsg?: undefined;
271
280
  } | {
272
281
  chatId: number;
273
282
  dialogId: string;
@@ -298,6 +307,7 @@ export declare const messages: ({
298
307
  filename?: undefined;
299
308
  linkPreview?: undefined;
300
309
  keyboard?: undefined;
310
+ statusMsg?: undefined;
301
311
  } | {
302
312
  chatId: number;
303
313
  dialogId: string;
@@ -322,6 +332,7 @@ export declare const messages: ({
322
332
  filename?: undefined;
323
333
  linkPreview?: undefined;
324
334
  keyboard?: undefined;
335
+ statusMsg?: undefined;
325
336
  } | {
326
337
  chatId: number;
327
338
  dialogId: string;
@@ -354,6 +365,7 @@ export declare const messages: ({
354
365
  filename?: undefined;
355
366
  linkPreview?: undefined;
356
367
  keyboard?: undefined;
368
+ statusMsg?: undefined;
357
369
  } | {
358
370
  chatId: number;
359
371
  dialogId: string;
@@ -384,6 +396,7 @@ export declare const messages: ({
384
396
  filename?: undefined;
385
397
  linkPreview?: undefined;
386
398
  keyboard?: undefined;
399
+ statusMsg?: undefined;
387
400
  } | {
388
401
  chatId: number;
389
402
  dialogId: string;
@@ -414,6 +427,7 @@ export declare const messages: ({
414
427
  alt?: undefined;
415
428
  linkPreview?: undefined;
416
429
  keyboard?: undefined;
430
+ statusMsg?: undefined;
417
431
  } | {
418
432
  chatId: number;
419
433
  dialogId: string;
@@ -450,6 +464,7 @@ export declare const messages: ({
450
464
  filename?: undefined;
451
465
  linkPreview?: undefined;
452
466
  keyboard?: undefined;
467
+ statusMsg?: undefined;
453
468
  } | {
454
469
  chatId: number;
455
470
  dialogId: string;
@@ -479,6 +494,7 @@ export declare const messages: ({
479
494
  reply?: undefined;
480
495
  filename?: undefined;
481
496
  keyboard?: undefined;
497
+ statusMsg?: undefined;
482
498
  } | {
483
499
  chatId: number;
484
500
  dialogId: string;
@@ -515,6 +531,7 @@ export declare const messages: ({
515
531
  reply?: undefined;
516
532
  filename?: undefined;
517
533
  linkPreview?: undefined;
534
+ statusMsg?: undefined;
518
535
  } | {
519
536
  chatId: number;
520
537
  type: string;
@@ -547,6 +564,7 @@ export declare const messages: ({
547
564
  filename?: undefined;
548
565
  linkPreview?: undefined;
549
566
  keyboard?: undefined;
567
+ statusMsg?: undefined;
550
568
  } | {
551
569
  chatId: number;
552
570
  type: string;
@@ -579,6 +597,7 @@ export declare const messages: ({
579
597
  filename?: undefined;
580
598
  linkPreview?: undefined;
581
599
  keyboard?: undefined;
600
+ statusMsg?: undefined;
582
601
  } | {
583
602
  chatId: number;
584
603
  type: string;
@@ -603,6 +622,7 @@ export declare const messages: ({
603
622
  filename?: undefined;
604
623
  linkPreview?: undefined;
605
624
  keyboard?: undefined;
625
+ statusMsg?: undefined;
606
626
  } | {
607
627
  chatId: number;
608
628
  messageId: number;
@@ -627,6 +647,7 @@ export declare const messages: ({
627
647
  filename?: undefined;
628
648
  linkPreview?: undefined;
629
649
  keyboard?: undefined;
650
+ statusMsg?: undefined;
630
651
  } | {
631
652
  chatId: number;
632
653
  type: string;
@@ -654,6 +675,7 @@ export declare const messages: ({
654
675
  reply?: undefined;
655
676
  linkPreview?: undefined;
656
677
  keyboard?: undefined;
678
+ statusMsg?: undefined;
657
679
  } | {
658
680
  chatId: number;
659
681
  header: string;
@@ -678,6 +700,7 @@ export declare const messages: ({
678
700
  filename?: undefined;
679
701
  linkPreview?: undefined;
680
702
  keyboard?: undefined;
703
+ statusMsg?: undefined;
681
704
  } | {
682
705
  chatId: number;
683
706
  type: string;
@@ -708,6 +731,7 @@ export declare const messages: ({
708
731
  filename?: undefined;
709
732
  linkPreview?: undefined;
710
733
  keyboard?: undefined;
734
+ statusMsg?: undefined;
711
735
  } | {
712
736
  chatId: number;
713
737
  type: string;
@@ -735,6 +759,7 @@ export declare const messages: ({
735
759
  filename?: undefined;
736
760
  linkPreview?: undefined;
737
761
  keyboard?: undefined;
762
+ statusMsg?: undefined;
738
763
  } | {
739
764
  chatId: number;
740
765
  type: string;
@@ -759,6 +784,7 @@ export declare const messages: ({
759
784
  filename?: undefined;
760
785
  linkPreview?: undefined;
761
786
  keyboard?: undefined;
787
+ statusMsg?: undefined;
762
788
  } | {
763
789
  chatId: number;
764
790
  type: string;
@@ -783,6 +809,7 @@ export declare const messages: ({
783
809
  filename?: undefined;
784
810
  linkPreview?: undefined;
785
811
  keyboard?: undefined;
812
+ statusMsg?: undefined;
786
813
  } | {
787
814
  chatId: number;
788
815
  type: string;
@@ -807,6 +834,7 @@ export declare const messages: ({
807
834
  filename?: undefined;
808
835
  linkPreview?: undefined;
809
836
  keyboard?: undefined;
837
+ statusMsg?: undefined;
810
838
  } | {
811
839
  chatId: number;
812
840
  type: string;
@@ -834,6 +862,7 @@ export declare const messages: ({
834
862
  filename?: undefined;
835
863
  linkPreview?: undefined;
836
864
  keyboard?: undefined;
865
+ statusMsg?: undefined;
837
866
  } | {
838
867
  chatId: number;
839
868
  type: string;
@@ -858,6 +887,7 @@ export declare const messages: ({
858
887
  filename?: undefined;
859
888
  linkPreview?: undefined;
860
889
  keyboard?: undefined;
890
+ statusMsg?: undefined;
861
891
  } | {
862
892
  chatId: number;
863
893
  type: string;
@@ -882,6 +912,7 @@ export declare const messages: ({
882
912
  filename?: undefined;
883
913
  linkPreview?: undefined;
884
914
  keyboard?: undefined;
915
+ statusMsg?: undefined;
885
916
  } | {
886
917
  chatId: number;
887
918
  type: string;
@@ -909,6 +940,7 @@ export declare const messages: ({
909
940
  reply?: undefined;
910
941
  linkPreview?: undefined;
911
942
  keyboard?: undefined;
943
+ statusMsg?: undefined;
912
944
  } | {
913
945
  chatId: number;
914
946
  type: string;
@@ -940,6 +972,7 @@ export declare const messages: ({
940
972
  alt?: undefined;
941
973
  reply?: undefined;
942
974
  linkPreview?: undefined;
975
+ statusMsg?: undefined;
943
976
  } | {
944
977
  chatId: number;
945
978
  dialogId: string;
@@ -972,6 +1005,7 @@ export declare const messages: ({
972
1005
  filename?: undefined;
973
1006
  linkPreview?: undefined;
974
1007
  keyboard?: undefined;
1008
+ statusMsg?: undefined;
975
1009
  } | {
976
1010
  chatId: number;
977
1011
  dialogId: string;
@@ -996,6 +1030,7 @@ export declare const messages: ({
996
1030
  filename?: undefined;
997
1031
  linkPreview?: undefined;
998
1032
  keyboard?: undefined;
1033
+ statusMsg?: undefined;
999
1034
  } | {
1000
1035
  chatId: number;
1001
1036
  dialogId: string;
@@ -1020,6 +1055,7 @@ export declare const messages: ({
1020
1055
  reply?: undefined;
1021
1056
  linkPreview?: undefined;
1022
1057
  keyboard?: undefined;
1058
+ statusMsg?: undefined;
1023
1059
  } | {
1024
1060
  chatId: number;
1025
1061
  dialogId: string;
@@ -1050,6 +1086,7 @@ export declare const messages: ({
1050
1086
  filename?: undefined;
1051
1087
  linkPreview?: undefined;
1052
1088
  keyboard?: undefined;
1089
+ statusMsg?: undefined;
1053
1090
  } | {
1054
1091
  chatId: number;
1055
1092
  dialogId: string;
@@ -1077,6 +1114,88 @@ export declare const messages: ({
1077
1114
  filename?: undefined;
1078
1115
  linkPreview?: undefined;
1079
1116
  keyboard?: undefined;
1117
+ statusMsg?: undefined;
1118
+ } | {
1119
+ chatId: number;
1120
+ dialogId: string;
1121
+ messageId: string;
1122
+ type: string;
1123
+ text: string;
1124
+ direction: string;
1125
+ status: string;
1126
+ statusMsg: string;
1127
+ timestamp: string;
1128
+ header: string;
1129
+ subText: string;
1130
+ avatar: string;
1131
+ callDuration?: undefined;
1132
+ isMissedCall?: undefined;
1133
+ transcript?: undefined;
1134
+ embed?: undefined;
1135
+ actions?: undefined;
1136
+ views?: undefined;
1137
+ url?: undefined;
1138
+ alt?: undefined;
1139
+ reply?: undefined;
1140
+ filename?: undefined;
1141
+ linkPreview?: undefined;
1142
+ keyboard?: undefined;
1143
+ } | {
1144
+ chatId: number;
1145
+ dialogId: string;
1146
+ messageId: string;
1147
+ type: string;
1148
+ text: string;
1149
+ direction: string;
1150
+ status: string;
1151
+ statusMsg: string;
1152
+ timestamp: string;
1153
+ header: string;
1154
+ subText: string;
1155
+ avatar: string;
1156
+ reply: {
1157
+ messageId: string;
1158
+ type: string;
1159
+ text: string;
1160
+ filename: string;
1161
+ url?: undefined;
1162
+ };
1163
+ callDuration?: undefined;
1164
+ isMissedCall?: undefined;
1165
+ transcript?: undefined;
1166
+ embed?: undefined;
1167
+ actions?: undefined;
1168
+ views?: undefined;
1169
+ url?: undefined;
1170
+ alt?: undefined;
1171
+ filename?: undefined;
1172
+ linkPreview?: undefined;
1173
+ keyboard?: undefined;
1174
+ } | {
1175
+ chatId: number;
1176
+ type: string;
1177
+ url: string;
1178
+ alt: string;
1179
+ header: string;
1180
+ text: string;
1181
+ direction: string;
1182
+ subText: string;
1183
+ timestamp: string;
1184
+ status: string;
1185
+ avatar: string;
1186
+ dialogId?: undefined;
1187
+ messageId?: undefined;
1188
+ callDuration?: undefined;
1189
+ isMissedCall?: undefined;
1190
+ transcript?: undefined;
1191
+ embed?: undefined;
1192
+ actions?: undefined;
1193
+ views?: undefined;
1194
+ reply?: undefined;
1195
+ filename?: undefined;
1196
+ linkPreview?: undefined;
1197
+ keyboard?: undefined;
1198
+ statusMsg?: undefined;
1080
1199
  } | {
1081
1200
  messageId: number;
1082
1201
  chatId: number;
@@ -1101,6 +1220,7 @@ export declare const messages: ({
1101
1220
  filename?: undefined;
1102
1221
  linkPreview?: undefined;
1103
1222
  keyboard?: undefined;
1223
+ statusMsg?: undefined;
1104
1224
  } | {
1105
1225
  messageId: number;
1106
1226
  chatId: number;
@@ -1131,4 +1251,5 @@ export declare const messages: ({
1131
1251
  filename?: undefined;
1132
1252
  linkPreview?: undefined;
1133
1253
  keyboard?: undefined;
1254
+ statusMsg?: undefined;
1134
1255
  })[];
@@ -3,7 +3,13 @@ import Tooltip from '../Tooltip.vue';
3
3
  declare const meta: Meta<typeof Tooltip>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof Tooltip>;
6
- export declare const Right: Story;
6
+ export declare const Default: Story;
7
7
  export declare const Top: Story;
8
- export declare const Left: Story;
9
8
  export declare const Bottom: Story;
9
+ export declare const Left: Story;
10
+ export declare const Right: Story;
11
+ export declare const BottomLeft: Story;
12
+ export declare const WithIcon: Story;
13
+ export declare const WithButton: Story;
14
+ export declare const LongText: Story;
15
+ export declare const CustomOffset: Story;
@@ -3,6 +3,7 @@ import ButtonEmojiPicker from '../ButtonEmojiPicker.vue';
3
3
  declare const meta: Meta<typeof ButtonEmojiPicker>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof ButtonEmojiPicker>;
6
- export declare const StandardHovering: Story;
7
- export declare const StandardClicking: Story;
8
- export declare const InactiveButton: Story;
6
+ export declare const Default: Story;
7
+ export declare const ClickMode: Story;
8
+ export declare const HoverMode: Story;
9
+ export declare const Disabled: Story;
@@ -1,20 +1,12 @@
1
- import type { StoryObj } from '@storybook/vue3-vite';
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
2
  import ContactInfo from '../ContactInfo.vue';
3
- declare const meta: {
4
- title: string;
5
- component: import("vue").DefineComponent<{}, {
6
- $emit: (event: "close" | "select-attribute-channel" | "open-crm", ...args: any[]) => void;
7
- contact: Record<string, any>;
8
- channels: unknown[];
9
- currentDialog: Record<string, any>;
10
- $props: {
11
- readonly contact?: Record<string, any> | undefined;
12
- readonly channels?: unknown[] | undefined;
13
- readonly currentDialog?: Record<string, any> | undefined;
14
- };
15
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
- args: {};
17
- };
3
+ declare const meta: Meta<typeof ContactInfo>;
18
4
  export default meta;
19
5
  type Story = StoryObj<typeof ContactInfo>;
20
6
  export declare const Default: Story;
7
+ export declare const WithCurrentDialog: Story;
8
+ export declare const WithoutCurrentDialog: Story;
9
+ export declare const SingleAttribute: Story;
10
+ export declare const MultipleChannels: Story;
11
+ export declare const EmptyContact: Story;
12
+ export declare const WithIconUrls: Story;
@@ -392,6 +392,10 @@ export interface AudioMessageThemeCSSVariables {
392
392
  '--chotto-audiomessage-status-color-received': string;
393
393
  /** Цвет статуса прочитано */
394
394
  '--chotto-audiomessage-status-color-read': string;
395
+ /** Цвет статуса в ожидании */
396
+ '--chotto-audiomessage-status-color-pending': string;
397
+ /** Цвет статуса ошибка */
398
+ '--chotto-audiomessage-status-color-error': string;
395
399
  /** Размер малого текста-иконки */
396
400
  '--chotto-audiomessage-small-text-icon-size': string;
397
401
  /** Цвет иконки/текста (span) просмотров */
@@ -1,19 +1,6 @@
1
- import type { StoryObj } from '@storybook/vue3-vite';
2
- declare const meta: {
3
- title: string;
4
- component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- text: {
6
- type: StringConstructor;
7
- required: true;
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- text: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- args: {};
16
- };
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import DateMessageSticky from '../DateMessageSticky.vue';
3
+ declare const meta: Meta<typeof DateMessageSticky>;
17
4
  export default meta;
18
- type Story = StoryObj<typeof meta>;
19
- export declare const Default: Story;
5
+ type Story = StoryObj<typeof DateMessageSticky>;
6
+ export declare const Today: Story;
@@ -1,38 +1,7 @@
1
- import type { StoryObj } from '@storybook/vue3-vite';
2
- declare const meta: {
3
- title: string;
4
- component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- buttons: {
6
- type: () => import("../types/IFeedKeyboard.ts").IFeedKeyboard[];
7
- required: true;
8
- default: () => never[];
9
- };
10
- align: {
11
- type: () => "left" | "center" | "right";
12
- default: string;
13
- validator: (value: string) => boolean;
14
- };
15
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- action: (...args: any[]) => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
- buttons: {
19
- type: () => import("../types/IFeedKeyboard.ts").IFeedKeyboard[];
20
- required: true;
21
- default: () => never[];
22
- };
23
- align: {
24
- type: () => "left" | "center" | "right";
25
- default: string;
26
- validator: (value: string) => boolean;
27
- };
28
- }>> & Readonly<{
29
- onAction?: ((...args: any[]) => any) | undefined;
30
- }>, {
31
- buttons: import("../types/IFeedKeyboard.ts").IFeedKeyboard[];
32
- align: "left" | "right" | "center";
33
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
34
- args: {};
35
- };
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import FeedKeyboard from '../FeedKeyboard.vue';
3
+ declare const meta: Meta<typeof FeedKeyboard>;
36
4
  export default meta;
37
- type Story = StoryObj<typeof meta>;
5
+ type Story = StoryObj<typeof FeedKeyboard>;
38
6
  export declare const Default: Story;
7
+ export declare const CenterAligned: Story;
@@ -142,6 +142,10 @@ export interface FileMessageThemeCSSVariables {
142
142
  '--chotto-filemessage-status-received-color': string;
143
143
  /** Цвет статуса "прочитано" */
144
144
  '--chotto-filemessage-status-read-color': string;
145
+ /** Цвет статуса "в ожидании" */
146
+ '--chotto-filemessage-status-pending-color': string;
147
+ /** Цвет статуса "ошибка" */
148
+ '--chotto-filemessage-status-error-color': string;
145
149
  /** Отображение блока просмотров */
146
150
  '--chotto-filemessage-views-display': string;
147
151
  /** Выравнивание элементов блока просмотров */
@@ -92,6 +92,10 @@ export interface ImageMessageThemeCSSVariables {
92
92
  '--chotto-imagemessage-status-read-first-child-margin-right': string;
93
93
  /** Цвет иконок статуса "прочитано" */
94
94
  '--chotto-imagemessage-status-read-color': string;
95
+ /** Цвет иконок статуса "в ожидании" */
96
+ '--chotto-imagemessage-status-pending-color': string;
97
+ /** Цвет иконок статуса "ошибка" */
98
+ '--chotto-imagemessage-status-error-color': string;
95
99
  /** Размер шрифта подписи */
96
100
  '--chotto-imagemessage-subtext-font-size': string;
97
101
  /** Цвет подписи */
@@ -1,19 +1,8 @@
1
- import type { StoryObj } from '@storybook/vue3-vite';
2
- declare const meta: {
3
- title: string;
4
- component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- message: {
6
- type: () => import("../../types/messages.ts").IAudioMessage;
7
- required: true;
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- message: {
11
- type: () => import("../../types/messages.ts").IAudioMessage;
12
- required: true;
13
- };
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- args: {};
16
- };
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import ReplyAudioMessage from '../ReplyAudioMessage.vue';
3
+ declare const meta: Meta<typeof ReplyAudioMessage>;
17
4
  export default meta;
18
- type Story = StoryObj<typeof meta>;
5
+ type Story = StoryObj<typeof ReplyAudioMessage>;
19
6
  export declare const Default: Story;
7
+ export declare const RightPosition: Story;
8
+ export declare const WithHeaderAndLink: Story;
@@ -1,19 +1,8 @@
1
- import type { StoryObj } from '@storybook/vue3-vite';
2
- declare const meta: {
3
- title: string;
4
- component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- message: {
6
- type: () => import("../../types/messages.ts").ICallMessage;
7
- required: true;
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- message: {
11
- type: () => import("../../types/messages.ts").ICallMessage;
12
- required: true;
13
- };
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- args: {};
16
- };
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import ReplyCallMessage from '../ReplyCallMessage.vue';
3
+ declare const meta: Meta<typeof ReplyCallMessage>;
17
4
  export default meta;
18
- type Story = StoryObj<typeof meta>;
5
+ type Story = StoryObj<typeof ReplyCallMessage>;
19
6
  export declare const Default: Story;
7
+ export declare const MissedCall: Story;
8
+ export declare const RightPosition: Story;
@@ -1,19 +1,9 @@
1
- import type { StoryObj } from '@storybook/vue3-vite';
2
- declare const meta: {
3
- title: string;
4
- component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- message: {
6
- type: () => import("../../types/messages.ts").IFileMessage;
7
- required: true;
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- message: {
11
- type: () => import("../../types/messages.ts").IFileMessage;
12
- required: true;
13
- };
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- args: {};
16
- };
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import ReplyFileMessage from '../ReplyFileMessage.vue';
3
+ declare const meta: Meta<typeof ReplyFileMessage>;
17
4
  export default meta;
18
- type Story = StoryObj<typeof meta>;
5
+ type Story = StoryObj<typeof ReplyFileMessage>;
19
6
  export declare const Default: Story;
7
+ export declare const WithHeaderAndText: Story;
8
+ export declare const LongFilename: Story;
9
+ export declare const RightPosition: Story;
@@ -1,19 +1,9 @@
1
- import type { StoryObj } from '@storybook/vue3-vite';
2
- declare const meta: {
3
- title: string;
4
- component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
- message: {
6
- type: () => import("../../types/messages.ts").IImageMessage;
7
- required: true;
8
- };
9
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
- message: {
11
- type: () => import("../../types/messages.ts").IImageMessage;
12
- required: true;
13
- };
14
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
15
- args: {};
16
- };
1
+ import type { Meta, StoryObj } from '@storybook/vue3-vite';
2
+ import ReplyImageMessage from '../ReplyImageMessage.vue';
3
+ declare const meta: Meta<typeof ReplyImageMessage>;
17
4
  export default meta;
18
- type Story = StoryObj<typeof meta>;
5
+ type Story = StoryObj<typeof ReplyImageMessage>;
19
6
  export declare const Default: Story;
7
+ export declare const WithHeaderAndText: Story;
8
+ export declare const LongText: Story;
9
+ export declare const RightPosition: Story;