@mobilon-dev/chotto 0.3.2 → 0.3.3

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 (241) hide show
  1. package/dist/CreateChat-Dv1RI_Uw.js +31 -0
  2. package/dist/CreateChat2-DR5H827U.js +42 -0
  3. package/dist/CreateDialog-lcy7szHJ.js +77 -0
  4. package/dist/ModalVideoRecorder-CXr2HQuY.js +143 -0
  5. package/dist/SelectUser2-BpDHmoMk.js +46 -0
  6. package/dist/chotto.css +1 -1
  7. package/dist/index-BAlmGgQr.js +20864 -0
  8. package/dist/types/App.vue.d.ts +2 -0
  9. package/dist/types/BaseAdaptiveExtendedChatApp.vue.d.ts +13 -0
  10. package/dist/types/BaseBaseChatApp.vue.d.ts +13 -0
  11. package/dist/types/BaseExtendedChatApp.vue.d.ts +13 -0
  12. package/dist/types/BaseFeedChatApp.vue.d.ts +11 -0
  13. package/dist/types/FloatExtendedChatApp.vue.d.ts +11 -0
  14. package/dist/types/MobilonExtendedChatApp.vue.d.ts +13 -0
  15. package/dist/types/components/atoms/Modal/Modal.vue.d.ts +15 -0
  16. package/dist/types/components/atoms/Modal/stories/Modal.stories.d.ts +43 -0
  17. package/dist/types/components/atoms/ModalFullscreen/ModalFullscreen.vue.d.ts +15 -0
  18. package/dist/types/components/atoms/ModalFullscreen/stories/ModalFullscreen.stories.d.ts +43 -0
  19. package/dist/types/components/atoms/ModalNoFooter/ModalNoFooter.vue.d.ts +15 -0
  20. package/dist/types/components/atoms/ModalNoFooter/stories/ModalNoFooter.stories.d.ts +43 -0
  21. package/dist/types/components/atoms/Tooltip/Tooltip.stories.d.ts +6 -0
  22. package/dist/types/components/atoms/Tooltip/Tooltip.vue.d.ts +41 -0
  23. package/dist/types/components/atoms/Tooltip/stories/Tooltip.stories.d.ts +9 -0
  24. package/dist/types/components/atoms/index.d.ts +4 -0
  25. package/dist/types/components/blocks/ChatItem/ChatItem.vue.d.ts +20 -0
  26. package/dist/types/components/blocks/ChatItem/stories/ChatItem.stories.d.ts +22 -0
  27. package/dist/types/components/blocks/ChatList/ChatList.vue.d.ts +25 -0
  28. package/dist/types/components/blocks/ChatList/stories/ChatList.stories.d.ts +13 -0
  29. package/dist/types/components/blocks/ChatPanel/ChatPanel.vue.d.ts +17 -0
  30. package/dist/types/components/blocks/ChatPanel/stories/ChatPanel.stories.d.ts +6 -0
  31. package/dist/types/components/blocks/FeedFoundItem/FeedFoundItem.vue.d.ts +23 -0
  32. package/dist/types/components/blocks/FeedFoundItem/stories/FeedFoundItem.stories.d.ts +15 -0
  33. package/dist/types/components/blocks/FeedFoundObjects/FeedFoundObjects.vue.d.ts +66 -0
  34. package/dist/types/components/blocks/FeedFoundObjects/stories/FeedFoundObjects.stories.d.ts +10 -0
  35. package/dist/types/components/blocks/FeedSearch/FeedSearch.vue.d.ts +22 -0
  36. package/dist/types/components/blocks/FeedSearch/stories/FeedSearch.stories.d.ts +8 -0
  37. package/dist/types/components/blocks/MessageKeyboard/MessageKeyboard.vue.d.ts +57 -0
  38. package/dist/types/components/blocks/MessageKeyboard/stories/MessageKeyboard.stories.d.ts +12 -0
  39. package/dist/types/components/blocks/index.d.ts +8 -0
  40. package/dist/types/components/compounds/ChatInput/ChatInput.vue.d.ts +54 -0
  41. package/dist/types/components/compounds/ChatInput/icons/MaxSendIcon.vue.d.ts +2 -0
  42. package/dist/types/components/compounds/ChatInput/icons/SMSSendIcon.vue.d.ts +2 -0
  43. package/dist/types/components/compounds/ChatInput/icons/TelegramSendIcon.vue.d.ts +2 -0
  44. package/dist/types/components/compounds/ChatInput/icons/WhatsAppSendIcon.vue.d.ts +2 -0
  45. package/dist/types/components/compounds/ChatInput/icons/index.d.ts +4 -0
  46. package/dist/types/components/compounds/ChatInput/stories/ChatInput.stories.d.ts +6 -0
  47. package/dist/types/components/compounds/CommunicationPanel/CommunicationPanel.vue.d.ts +16 -0
  48. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.d.ts +2 -0
  49. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.d.ts +2 -0
  50. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.d.ts +2 -0
  51. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.d.ts +2 -0
  52. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.d.ts +2 -0
  53. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.d.ts +2 -0
  54. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.d.ts +2 -0
  55. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.d.ts +2 -0
  56. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.d.ts +2 -0
  57. package/dist/types/components/compounds/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.d.ts +2 -0
  58. package/dist/types/components/compounds/CommunicationPanel/icons/index.d.ts +10 -0
  59. package/dist/types/components/compounds/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +23 -0
  60. package/dist/types/components/compounds/Feed/Feed.vue.d.ts +158 -0
  61. package/dist/types/components/compounds/Feed/messages/AudioMessage/AudioMessage.vue.d.ts +38 -0
  62. package/dist/types/components/compounds/Feed/messages/AudioMessage/stories/AudioMessage.stories.d.ts +36 -0
  63. package/dist/types/components/compounds/Feed/messages/BaseReplyMessage/BaseReplyMessage.vue.d.ts +19 -0
  64. package/dist/types/components/compounds/Feed/messages/BaseReplyMessage/stories/BaseReplyMessage.stories.d.ts +7 -0
  65. package/dist/types/components/compounds/Feed/messages/CallMessage/CallMessage.vue.d.ts +23 -0
  66. package/dist/types/components/compounds/Feed/messages/CallMessage/stories/CallMessage.stories.d.ts +17 -0
  67. package/dist/types/components/compounds/Feed/messages/DateMessage/DateMessage.vue.d.ts +17 -0
  68. package/dist/types/components/compounds/Feed/messages/DateMessage/stories/DateMessage.stories.d.ts +6 -0
  69. package/dist/types/components/compounds/Feed/messages/DateMessageSticky/DateMessageSticky.vue.d.ts +12 -0
  70. package/dist/types/components/compounds/Feed/messages/DateMessageSticky/stories/DateMessageSticky.stories.d.ts +19 -0
  71. package/dist/types/components/compounds/Feed/messages/FileMessage/FileMessage.vue.d.ts +38 -0
  72. package/dist/types/components/compounds/Feed/messages/FileMessage/stories/FileMessage.stories.d.ts +36 -0
  73. package/dist/types/components/compounds/Feed/messages/ImageMessage/ImageMessage.vue.d.ts +38 -0
  74. package/dist/types/components/compounds/Feed/messages/ImageMessage/stories/ImageMessage.stories.d.ts +38 -0
  75. package/dist/types/components/compounds/Feed/messages/ReplyAudioMessage/ReplyAudioMessage.vue.d.ts +13 -0
  76. package/dist/types/components/compounds/Feed/messages/ReplyAudioMessage/stories/ReplyAudioMessage.stories.d.ts +19 -0
  77. package/dist/types/components/compounds/Feed/messages/ReplyCallMessage/ReplyCallMessage.vue.d.ts +13 -0
  78. package/dist/types/components/compounds/Feed/messages/ReplyCallMessage/stories/ReplyCallMessage.stories.d.ts +19 -0
  79. package/dist/types/components/compounds/Feed/messages/ReplyFileMessage/ReplyFileMessage.vue.d.ts +13 -0
  80. package/dist/types/components/compounds/Feed/messages/ReplyFileMessage/stories/ReplyFileMessage.stories.d.ts +19 -0
  81. package/dist/types/components/compounds/Feed/messages/ReplyImageMessage/ReplyImageMessage.vue.d.ts +13 -0
  82. package/dist/types/components/compounds/Feed/messages/ReplyImageMessage/stories/ReplyImageMessage.stories.d.ts +19 -0
  83. package/dist/types/components/compounds/Feed/messages/ReplyTextMessage/ReplyTextMessage.vue.d.ts +13 -0
  84. package/dist/types/components/compounds/Feed/messages/ReplyTextMessage/stories/ReplyTextMessage.stories.d.ts +19 -0
  85. package/dist/types/components/compounds/Feed/messages/ReplyVideoMessage/ReplyVideoMessage.vue.d.ts +13 -0
  86. package/dist/types/components/compounds/Feed/messages/ReplyVideoMessage/stories/ReplyVideoMessage.stories.d.ts +19 -0
  87. package/dist/types/components/compounds/Feed/messages/SystemMessage/SystemMessage.vue.d.ts +13 -0
  88. package/dist/types/components/compounds/Feed/messages/SystemMessage/stories/SystemMessage.stories.d.ts +6 -0
  89. package/dist/types/components/compounds/Feed/messages/TextMessage/TextMessage.vue.d.ts +38 -0
  90. package/dist/types/components/compounds/Feed/messages/TextMessage/stories/TextMessage.stories.d.ts +44 -0
  91. package/dist/types/components/compounds/Feed/messages/TypingMessage/TypingMessage.vue.d.ts +13 -0
  92. package/dist/types/components/compounds/Feed/messages/TypingMessage/stories/TypingMessage.stories.d.ts +8 -0
  93. package/dist/types/components/compounds/Feed/messages/VideoMessage/VideoMessage.vue.d.ts +38 -0
  94. package/dist/types/components/compounds/Feed/messages/VideoMessage/stories/VideoMessage.stories.d.ts +36 -0
  95. package/dist/types/components/compounds/Feed/messages/index.d.ts +6 -0
  96. package/dist/types/components/compounds/Feed/stories/Feed.stories.d.ts +12 -0
  97. package/dist/types/components/compounds/ModalVideoRecorder/ModalVideoRecorder.vue.d.ts +10 -0
  98. package/dist/types/components/compounds/ModalVideoRecorder/stories/ModalVideoRecorder.stories.d.ts +17 -0
  99. package/dist/types/components/compounds/SideBar/SideBar.vue.d.ts +12 -0
  100. package/dist/types/components/compounds/SideBar/stories/SideBar.stories.d.ts +8 -0
  101. package/dist/types/components/compounds/TemplateSelector/TemplateSelector.vue.d.ts +12 -0
  102. package/dist/types/components/compounds/TemplateSelector/stories/TemplateSelector.stories.d.ts +6 -0
  103. package/dist/types/components/compounds/UserProfile/UserProfile.vue.d.ts +7 -0
  104. package/dist/types/components/compounds/UserProfile/stories/UserProfile.stories.d.ts +7 -0
  105. package/dist/types/components/compounds/index.d.ts +6 -0
  106. package/dist/types/components/containers/BaseContainer/BaseContainer.vue.d.ts +18 -0
  107. package/dist/types/components/containers/FloatContainer/FloatContainer.vue.d.ts +25 -0
  108. package/dist/types/components/containers/PlaceholderComponent/PlaceholderComponent.vue.d.ts +12 -0
  109. package/dist/types/components/containers/SplashScreen/SplashScreen.vue.d.ts +20 -0
  110. package/dist/types/components/containers/index.d.ts +5 -0
  111. package/dist/types/components/elements/AudioRecorder/AudioRecorder.vue.d.ts +23 -0
  112. package/dist/types/components/elements/AudioRecorder/stories/AudioRecorder.stories.d.ts +7 -0
  113. package/dist/types/components/elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.d.ts +40 -0
  114. package/dist/types/components/elements/ButtonCommandsSelector/stories/ButtonCommandsSelector.stories.d.ts +9 -0
  115. package/dist/types/components/elements/ButtonContextMenu/ButtonContextMenu.vue.d.ts +69 -0
  116. package/dist/types/components/elements/ButtonContextMenu/stories/ButtonContextMenu.stories.d.ts +13 -0
  117. package/dist/types/components/elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +9 -0
  118. package/dist/types/components/elements/ButtonEmojiPicker/icons/SmilesIcon.vue.d.ts +2 -0
  119. package/dist/types/components/elements/ButtonEmojiPicker/icons/index.d.ts +1 -0
  120. package/dist/types/components/elements/ButtonEmojiPicker/stories/ButtonEmojiPicker.stories.d.ts +8 -0
  121. package/dist/types/components/elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.d.ts +15 -0
  122. package/dist/types/components/elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.d.ts +2 -0
  123. package/dist/types/components/elements/ButtonTemplateSelector/icons/index.d.ts +1 -0
  124. package/dist/types/components/elements/ButtonTemplateSelector/stories/ButtonTemplateSelector.stories.d.ts +7 -0
  125. package/dist/types/components/elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.d.ts +18 -0
  126. package/dist/types/components/elements/ButtonWabaTemplateSelector/stories/ButtonWabaTemplateSelector.stories.d.ts +7 -0
  127. package/dist/types/components/elements/ChannelSelector/ChannelSelector.vue.d.ts +12 -0
  128. package/dist/types/components/elements/ChannelSelector/stories/ChannelSelector.stories.d.ts +9 -0
  129. package/dist/types/components/elements/ChatFilter/ChatFilter.vue.d.ts +8 -0
  130. package/dist/types/components/elements/ChatFilter/stories/ChatFilter.stories.d.ts +15 -0
  131. package/dist/types/components/elements/ChatInfo/ChatInfo.vue.d.ts +27 -0
  132. package/dist/types/components/elements/ChatInfo/stories/ChatInfo.stories.d.ts +7 -0
  133. package/dist/types/components/elements/ChatTabs/ChatTabs.vue.d.ts +8 -0
  134. package/dist/types/components/elements/ChatTabs/stories/ChatTabs.stories.d.ts +15 -0
  135. package/dist/types/components/elements/ContactInfo/ContactInfo.vue.d.ts +12 -0
  136. package/dist/types/components/elements/ContactInfo/stories/ContactInfo.stories.d.ts +19 -0
  137. package/dist/types/components/elements/ContextMenu/ContextMenu.vue.d.ts +8 -0
  138. package/dist/types/components/elements/ContextMenu/stories/ContextMenu.stories.d.ts +8 -0
  139. package/dist/types/components/elements/FeedKeyboard/FeedKeyboard.vue.d.ts +32 -0
  140. package/dist/types/components/elements/FeedKeyboard/stories/FeedKeyboard.stories.d.ts +38 -0
  141. package/dist/types/components/elements/FilePreview/FilePreview.vue.d.ts +17 -0
  142. package/dist/types/components/elements/FilePreview/stories/FilePreview.stories.d.ts +10 -0
  143. package/dist/types/components/elements/FileUploader/FileUploader.vue.d.ts +27 -0
  144. package/dist/types/components/elements/FileUploader/icons/FileUploaderIcon.vue.d.ts +2 -0
  145. package/dist/types/components/elements/FileUploader/icons/index.d.ts +1 -0
  146. package/dist/types/components/elements/FileUploader/stories/FileUploader.stories.d.ts +7 -0
  147. package/dist/types/components/elements/ThemeMode/ThemeMode.vue.d.ts +10 -0
  148. package/dist/types/components/elements/ThemeMode/stories/ThemeMode.stories.d.ts +6 -0
  149. package/dist/types/components/elements/VideoRecorder/VideoRecorder.vue.d.ts +23 -0
  150. package/dist/types/components/elements/VideoRecorder/stories/VideoRecorder.stories.d.ts +7 -0
  151. package/dist/types/components/elements/WABAAttachmentSection/WABAAttachmentSection.vue.d.ts +24 -0
  152. package/dist/types/components/elements/WABAAttachmentSection/stories/WABAAttachmentSection.stories.d.ts +31 -0
  153. package/dist/types/components/elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.d.ts +48 -0
  154. package/dist/types/components/elements/WABAQuickReplyButtons/stories/WABAQuickReplyButtons.stories.d.ts +6 -0
  155. package/dist/types/components/elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.d.ts +48 -0
  156. package/dist/types/components/elements/WABASeparatedQuickButtons/stories/WABASeparatedQuickButtons.stories.d.ts +6 -0
  157. package/dist/types/components/elements/WABATemplateSelector/WABATemplateSelector.vue.d.ts +12 -0
  158. package/dist/types/components/elements/WABATemplateSelector/stories/WABATemplateSelector.stories.d.ts +19 -0
  159. package/dist/types/components/elements/index.d.ts +21 -0
  160. package/dist/types/components/icons/AvatarIcon.vue.d.ts +35 -0
  161. package/dist/types/components/icons/CheckIcon.vue.d.ts +7 -0
  162. package/dist/types/components/icons/CloseButtonIcon.vue.d.ts +2 -0
  163. package/dist/types/components/icons/ContactCRMIcon.vue.d.ts +2 -0
  164. package/dist/types/components/icons/MenuIcon.vue.d.ts +2 -0
  165. package/dist/types/components/icons/SearchIcon.vue.d.ts +2 -0
  166. package/dist/types/components/icons/SettingsIcon.vue.d.ts +2 -0
  167. package/dist/types/components/icons/TelegramIcon.vue.d.ts +2 -0
  168. package/dist/types/components/icons/WhatsAppIcon.vue.d.ts +2 -0
  169. package/dist/types/components/icons/index.d.ts +2 -0
  170. package/dist/types/components/index.d.ts +7 -0
  171. package/dist/types/components/layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.d.ts +20 -0
  172. package/dist/types/components/layouts/BaseLayout/BaseLayout.vue.d.ts +11 -0
  173. package/dist/types/components/layouts/ChatWrapper/ChatWrapper.vue.d.ts +57 -0
  174. package/dist/types/components/layouts/ExtendedLayout/ExtendedLayout.vue.d.ts +13 -0
  175. package/dist/types/components/layouts/FeedLayout/FeedLayout.vue.d.ts +9 -0
  176. package/dist/types/components/layouts/index.d.ts +6 -0
  177. package/dist/types/components/molecules/CreateChat/CreateChat.vue.d.ts +8 -0
  178. package/dist/types/components/molecules/CreateChat/stories/CreateChat.stories.d.ts +15 -0
  179. package/dist/types/components/molecules/CreateChat2/CreateChat2.vue.d.ts +8 -0
  180. package/dist/types/components/molecules/CreateChat2/stories/CreateChat2.stories.d.ts +15 -0
  181. package/dist/types/components/molecules/CreateDialog/CreateDialog.vue.d.ts +16 -0
  182. package/dist/types/components/molecules/CreateDialog/stories/CreateDialog.stories.d.ts +23 -0
  183. package/dist/types/components/molecules/EmbedPreview/EmbedPreview.vue.d.ts +12 -0
  184. package/dist/types/components/molecules/EmbedPreview/stories/EmbedPreview.stories.d.ts +19 -0
  185. package/dist/types/components/molecules/LinkPreview/LinkPreview.vue.d.ts +13 -0
  186. package/dist/types/components/molecules/LinkPreview/stories/LinkPreview.stories.d.ts +19 -0
  187. package/dist/types/components/molecules/SelectUser/SelectUser.vue.d.ts +10 -0
  188. package/dist/types/components/molecules/SelectUser/stories/SelectUser.stories.d.ts +17 -0
  189. package/dist/types/components/molecules/SelectUser2/SelectUser2.vue.d.ts +10 -0
  190. package/dist/types/components/molecules/SelectUser2/stories/SelectUser2.stories.d.ts +17 -0
  191. package/dist/types/components/molecules/index.d.ts +3 -0
  192. package/dist/types/data/channels.d.ts +15 -0
  193. package/dist/types/data/chats.d.ts +224 -0
  194. package/dist/types/data/groupTemplates.d.ts +5 -0
  195. package/dist/types/data/index.d.ts +9 -0
  196. package/dist/types/data/messages.d.ts +1134 -0
  197. package/dist/types/data/sidebarItems.d.ts +33 -0
  198. package/dist/types/data/templates.d.ts +7 -0
  199. package/dist/types/data/userProfile.d.ts +8 -0
  200. package/dist/types/data/users.d.ts +4 -0
  201. package/dist/types/data/wabaTemplates.d.ts +18 -0
  202. package/dist/types/helpers/formatTimestamp.d.ts +1 -0
  203. package/dist/types/helpers/generatePreview.d.ts +7 -0
  204. package/dist/types/helpers/getStatusMessage.d.ts +2 -0
  205. package/dist/types/helpers/getTypeFileByMime.d.ts +1 -0
  206. package/dist/types/helpers/index.d.ts +12 -0
  207. package/dist/types/helpers/playNotificationAudio.d.ts +1 -0
  208. package/dist/types/helpers/prepareTimeline.d.ts +3 -0
  209. package/dist/types/helpers/sortByTimestamp.d.ts +1 -0
  210. package/dist/types/helpers/throttle.d.ts +1 -0
  211. package/dist/types/helpers/uploadFile.d.ts +21 -0
  212. package/dist/types/helpers/useCreateChat.d.ts +1 -0
  213. package/dist/types/helpers/useCreateChat2.d.ts +1 -0
  214. package/dist/types/helpers/useCreateDialog.d.ts +1 -0
  215. package/dist/types/helpers/useDelayDebouncedRef.d.ts +2 -0
  216. package/dist/types/helpers/useImmediateDebouncedRef.d.ts +2 -0
  217. package/dist/types/helpers/useMessage.d.ts +40 -0
  218. package/dist/types/helpers/useModal.d.ts +7 -0
  219. package/dist/types/helpers/useModalSelectUser2.d.ts +1 -0
  220. package/dist/types/helpers/useSearchModel.d.ts +6 -0
  221. package/dist/types/helpers/useTheme.d.ts +6 -0
  222. package/dist/types/helpers/useVideoRecorder.d.ts +1 -0
  223. package/dist/types/index.d.ts +7 -0
  224. package/dist/types/locale/en.d.ts +13 -0
  225. package/dist/types/locale/ru.d.ts +13 -0
  226. package/dist/types/locale/useLocale.d.ts +22 -0
  227. package/dist/types/main.d.ts +2 -0
  228. package/dist/types/stores/useChatStore.d.ts +49 -0
  229. package/dist/types/themes/constants.d.ts +18 -0
  230. package/dist/types/themes/index.d.ts +9 -0
  231. package/dist/types/themes/types.d.ts +116 -0
  232. package/dist/types/transform/transformToFeed.d.ts +4 -0
  233. package/dist/types/types/IChat.d.ts +6 -0
  234. package/dist/types/types/IFeedKeyboard.d.ts +8 -0
  235. package/dist/types/types/IInputMessage.d.ts +9 -0
  236. package/dist/types/types/components.d.ts +49 -0
  237. package/dist/types/types/index.d.ts +4 -0
  238. package/dist/types/types/messages.d.ts +143 -0
  239. package/dist/vuessages.es.js +65 -21189
  240. package/dist/vuessages.umd.js +5 -5
  241. package/package.json +2 -1
@@ -0,0 +1,33 @@
1
+ export declare const sidebarItems: ({
2
+ itemId: string;
3
+ icon: string;
4
+ name: string;
5
+ notificationCount: number;
6
+ selected: boolean;
7
+ notificationColor?: undefined;
8
+ isFixedBottom?: undefined;
9
+ } | {
10
+ itemId: string;
11
+ icon: string;
12
+ name: string;
13
+ notificationCount: number;
14
+ notificationColor: string;
15
+ selected: boolean;
16
+ isFixedBottom?: undefined;
17
+ } | {
18
+ itemId: string;
19
+ icon: string;
20
+ notificationCount: number;
21
+ notificationColor: string;
22
+ selected: boolean;
23
+ name?: undefined;
24
+ isFixedBottom?: undefined;
25
+ } | {
26
+ itemId: string;
27
+ icon: string;
28
+ name: string;
29
+ isFixedBottom: boolean;
30
+ notificationCount: number;
31
+ notificationColor: string;
32
+ selected: boolean;
33
+ })[];
@@ -0,0 +1,7 @@
1
+ export declare const templates: {
2
+ templateId: string;
3
+ title: string;
4
+ template: string;
5
+ type: string;
6
+ groupId: string;
7
+ }[];
@@ -0,0 +1,8 @@
1
+ export declare const userProfile: {
2
+ name: string;
3
+ email: string;
4
+ phone: string;
5
+ auth: string;
6
+ avatar: string;
7
+ status: string;
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare const users: {
2
+ userId: string;
3
+ name: string;
4
+ }[];
@@ -0,0 +1,18 @@
1
+ export declare const wabaTemplates: ({
2
+ templateId: string;
3
+ groupId: string;
4
+ type: string;
5
+ title: string;
6
+ template: string;
7
+ buttons?: undefined;
8
+ } | {
9
+ templateId: string;
10
+ groupId: string;
11
+ type: string;
12
+ title: string;
13
+ template: string;
14
+ buttons: {
15
+ text: string;
16
+ type: string;
17
+ }[];
18
+ })[];
@@ -0,0 +1 @@
1
+ export declare function formatTimestamp(timestamp: string): string | undefined;
@@ -0,0 +1,7 @@
1
+ export declare const generatePreview: (file: File) => {
2
+ isImage: boolean;
3
+ isVideo: boolean;
4
+ isAudio: boolean;
5
+ previewUrl: string;
6
+ fileSize: string;
7
+ };
@@ -0,0 +1,2 @@
1
+ export declare const statuses: string[];
2
+ export declare const getStatus: (status: string) => string;
@@ -0,0 +1 @@
1
+ export declare const getTypeFileByMime: (mime: string) => string;
@@ -0,0 +1,12 @@
1
+ export * from './formatTimestamp';
2
+ export * from './prepareTimeline';
3
+ export * from './playNotificationAudio';
4
+ export * from './sortByTimestamp';
5
+ export * from './getTypeFileByMime';
6
+ export * from './getStatusMessage';
7
+ export { useModal } from './useModal';
8
+ export { useModalCreateChat } from './useCreateChat';
9
+ export { useModalCreateChat2 } from './useCreateChat2';
10
+ export { useModalCreateDialog } from './useCreateDialog';
11
+ export { useModalVideoRecorder } from './useVideoRecorder';
12
+ export { useModalSelectUser2 } from './useModalSelectUser2';
@@ -0,0 +1 @@
1
+ export declare const playNotificationAudio: () => Promise<void>;
@@ -0,0 +1,3 @@
1
+ export declare const insertDaySeparators: (messages: {
2
+ timestamp: number;
3
+ }[], outPreviousDay?: number | null) => unknown[];
@@ -0,0 +1 @@
1
+ export declare const sortByTimestamp: (messages: any) => any;
@@ -0,0 +1 @@
1
+ export declare function throttle(callee: (...args: unknown[]) => void, timeout: number): (...args: unknown[]) => void;
@@ -0,0 +1,21 @@
1
+ export declare const uploadFile: (filebumpUrl: string | null, selectedFile: File) => Promise<{
2
+ url: any;
3
+ name: string;
4
+ size: number;
5
+ type: string;
6
+ status: string;
7
+ preview: {
8
+ isImage: boolean;
9
+ isVideo: boolean;
10
+ isAudio: boolean;
11
+ previewUrl: string;
12
+ fileSize: string;
13
+ };
14
+ } | {
15
+ status: string;
16
+ url?: undefined;
17
+ name?: undefined;
18
+ size?: undefined;
19
+ type?: undefined;
20
+ preview?: undefined;
21
+ }>;
@@ -0,0 +1 @@
1
+ export declare const useModalCreateChat: (title: string, theme: string) => Promise<Record<string, unknown>>;
@@ -0,0 +1 @@
1
+ export declare const useModalCreateChat2: (title: string, theme: string) => Promise<Record<string, unknown>>;
@@ -0,0 +1 @@
1
+ export declare const useModalCreateDialog: (title: string, name: string, contacts: unknown, channels: unknown, filter: (data: unknown) => void, theme?: string) => Promise<Record<string, unknown>>;
@@ -0,0 +1,2 @@
1
+ declare function useDelayDebouncedRef(value: unknown, delay?: number): import("vue").Ref<unknown, unknown>;
2
+ export default useDelayDebouncedRef;
@@ -0,0 +1,2 @@
1
+ declare function useImmediateDebouncedRef(value: unknown, delay?: number): import("vue").Ref<unknown, unknown>;
2
+ export default useImmediateDebouncedRef;
@@ -0,0 +1,40 @@
1
+ import { Reply } from '../types';
2
+ interface UploadedFile {
3
+ url: string;
4
+ name?: string;
5
+ size?: number;
6
+ type?: string;
7
+ }
8
+ export declare const useMessage: (outId: string) => {
9
+ getMessage: () => {
10
+ id: string;
11
+ text: string;
12
+ file?: {
13
+ url: string;
14
+ name?: string | undefined;
15
+ size?: number | undefined;
16
+ type?: string | undefined;
17
+ } | undefined;
18
+ reply?: {
19
+ messageId: string;
20
+ type: string;
21
+ text?: string | undefined;
22
+ url?: string | undefined;
23
+ filename?: string | undefined;
24
+ header?: string | undefined;
25
+ callDuration?: string | undefined;
26
+ isMissedCall?: boolean | undefined;
27
+ } | undefined;
28
+ forceSend: boolean;
29
+ isRecording: boolean;
30
+ };
31
+ resetMessage: () => void;
32
+ setMessageFile: (file: UploadedFile) => void;
33
+ resetMessageFile: () => void;
34
+ setMessageText: (text: string) => void;
35
+ setReply: (reply: Reply) => void;
36
+ resetReply: () => void;
37
+ setForceSendMessage: (val: boolean) => void;
38
+ setRecordingMessage: (val: boolean) => void;
39
+ };
40
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Component } from 'vue';
2
+ export declare function useModal({ component, attrs, Modal, modalAttrs }: {
3
+ component: Promise<Component>;
4
+ attrs: Record<string, unknown>;
5
+ Modal: Component;
6
+ modalAttrs: Record<string, unknown>;
7
+ }): Promise<Record<string, unknown>>;
@@ -0,0 +1 @@
1
+ export declare const useModalSelectUser2: (title: any, users: any, theme: any) => Promise<Record<string, unknown>>;
@@ -0,0 +1,6 @@
1
+ export declare const useSearchModel: (outId: string) => {
2
+ getModel: () => {
3
+ id: string;
4
+ text: string;
5
+ };
6
+ };
@@ -0,0 +1,6 @@
1
+ export declare const useTheme: (outId: string) => {
2
+ getTheme: () => {
3
+ id: string;
4
+ theme: string;
5
+ };
6
+ };
@@ -0,0 +1 @@
1
+ export declare const useModalVideoRecorder: (theme?: string) => Promise<Record<string, unknown>>;
@@ -0,0 +1,7 @@
1
+ import 'primeicons/primeicons.css';
2
+ import './themes/index.scss';
3
+ export * from './components';
4
+ export * from './components/containers';
5
+ export * from './components/layouts';
6
+ export * from './components/icons';
7
+ export * from './helpers';
@@ -0,0 +1,13 @@
1
+ export const en: {
2
+ 'component.ChatList.Title': string;
3
+ 'component.ChatFilter.InputPlaceholder': string;
4
+ 'layout.ChatWrapper.noSelectedChat': string;
5
+ 'component.ChatItem.typing': string;
6
+ 'component.ChatInput.InputPlaceholder': string;
7
+ 'component.FeedFoundObjects.results': string;
8
+ 'component.FeedFoundObjects.notFound': string;
9
+ 'component.FeedFoundObjects.notSearched': string;
10
+ 'component.FeedSearch.SearchLabel': string;
11
+ 'component.FeedSearch.SearchPlaceholder': string;
12
+ 'component.ChannelSelector.Placeholder': string;
13
+ };
@@ -0,0 +1,13 @@
1
+ export const ru: {
2
+ 'component.ChatList.Title': string;
3
+ 'component.ChatFilter.InputPlaceholder': string;
4
+ 'layout.ChatWrapper.noSelectedChat': string;
5
+ 'component.ChatItem.typing': string;
6
+ 'component.ChatInput.InputPlaceholder': string;
7
+ 'component.FeedFoundObjects.results': string;
8
+ 'component.FeedFoundObjects.notFound': string;
9
+ 'component.FeedFoundObjects.notSearched': string;
10
+ 'component.FeedSearch.SearchLabel': string;
11
+ 'component.FeedSearch.SearchPlaceholder': string;
12
+ 'component.ChannelSelector.Placeholder': string;
13
+ };
@@ -0,0 +1,22 @@
1
+ export function useLocale(): {
2
+ t: (msg: any) => any;
3
+ locale: import("vue").Ref<{
4
+ code: string;
5
+ name: string;
6
+ flag: string;
7
+ }, {
8
+ code: string;
9
+ name: string;
10
+ flag: string;
11
+ } | {
12
+ code: string;
13
+ name: string;
14
+ flag: string;
15
+ }>;
16
+ locales: {
17
+ code: string;
18
+ name: string;
19
+ flag: string;
20
+ }[];
21
+ };
22
+ export function t(msg: any): any;
@@ -0,0 +1,2 @@
1
+ import 'primeicons/primeicons.css';
2
+ import './themes/index.scss';
@@ -0,0 +1,49 @@
1
+ export declare const useChatsStore: import("pinia").StoreDefinition<"chats", Pick<{
2
+ chats: import("vue").Ref<{
3
+ chatId: string;
4
+ countUnread?: number | undefined;
5
+ }[], {
6
+ chatId: string;
7
+ countUnread?: number;
8
+ }[] | {
9
+ chatId: string;
10
+ countUnread?: number | undefined;
11
+ }[]>;
12
+ setUnreadCounter: (chatId: string, countUnread: number) => void;
13
+ addChat: (chat: {
14
+ chatId: string;
15
+ countUnread?: number;
16
+ }) => void;
17
+ }, "chats">, Pick<{
18
+ chats: import("vue").Ref<{
19
+ chatId: string;
20
+ countUnread?: number | undefined;
21
+ }[], {
22
+ chatId: string;
23
+ countUnread?: number;
24
+ }[] | {
25
+ chatId: string;
26
+ countUnread?: number | undefined;
27
+ }[]>;
28
+ setUnreadCounter: (chatId: string, countUnread: number) => void;
29
+ addChat: (chat: {
30
+ chatId: string;
31
+ countUnread?: number;
32
+ }) => void;
33
+ }, never>, Pick<{
34
+ chats: import("vue").Ref<{
35
+ chatId: string;
36
+ countUnread?: number | undefined;
37
+ }[], {
38
+ chatId: string;
39
+ countUnread?: number;
40
+ }[] | {
41
+ chatId: string;
42
+ countUnread?: number | undefined;
43
+ }[]>;
44
+ setUnreadCounter: (chatId: string, countUnread: number) => void;
45
+ addChat: (chat: {
46
+ chatId: string;
47
+ countUnread?: number;
48
+ }) => void;
49
+ }, "setUnreadCounter" | "addChat">>;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Theme constants and configuration
3
+ */
4
+ import type { ThemeName } from './types';
5
+ export declare const THEME_NAMES: ThemeName[];
6
+ export declare const THEME_DISPLAY_NAMES: Record<ThemeName, string>;
7
+ export declare const THEME_DESCRIPTIONS: Record<ThemeName, string>;
8
+ export declare const THEME_VARIABLE_PREFIX: "--chotto-theme";
9
+ export declare const REQUIRED_THEME_VARIABLES: readonly ["--chotto-theme-font-family", "--chotto-theme-container-font-weight", "--chotto-theme-container-borders", "--chotto-theme-float-container-border-radius-header", "--chotto-theme-float-container-box-shadow", "--chotto-theme-float-container-bg-header", "--chotto-theme-modal-padding", "--chotto-theme-modal-border-radius", "--chotto-theme-modal-mask-background", "--chotto-theme-modal-overlay-shadow", "--chotto-theme-modal-bg", "--chotto-theme-layout-extended-third-col-bg", "--chotto-theme-layout-extended-second-col-bg", "--chotto-theme-layout-extended-first-col-bg", "--chotto-theme-layout-extended-first-col-width", "--chotto-theme-layout-extended-second-col-width", "--chotto-theme-layout-base-second-col-bg", "--chotto-theme-layout-base-first-col-bg", "--chotto-theme-layout-feed-bg", "--chotto-theme-message-right-bg", "--chotto-theme-message-right-secondary-bg", "--chotto-theme-message-left-bg", "--chotto-theme-message-left-secondary-bg", "--chotto-theme-message-accent-line-color", "--chotto-theme-message-focused-color", "--chotto-theme-message-margin", "--chotto-theme-message-type-icon-bg-color", "--chotto-theme-message-type-icon-color", "--chotto-theme-message-popup-info-bg-color", "--chotto-theme-message-popup-info-color", "--chotto-theme-message-border-radius", "--chotto-theme-audio-message-transcript-delimiter-color", "--chotto-theme-audio-message-pbc-background-color", "--chotto-theme-audio-message-pb-background-color", "--chotto-theme-call-message-phone-icon-missed-color", "--chotto-theme-system-message-bg-color", "--chotto-theme-primary-color", "--chotto-theme-secondary-color", "--chotto-theme-primary-text-color", "--chotto-theme-secondary-text-color", "--chotto-theme-header-font", "--chotto-theme-header-font-color", "--chotto-theme-header-font-size", "--chotto-theme-title-font-size", "--chotto-theme-text-font-size", "--chotto-theme-additional-text-font-size", "--chotto-theme-small-text-font-size", "--chotto-theme-header-font-weight", "--chotto-theme-title-font-weight", "--chotto-theme-button-icon-size", "--chotto-theme-text-icon-size", "--chotto-theme-small-text-icon-size", "--chotto-theme-button-color-active", "--chotto-theme-button-color-hover", "--chotto-theme-button-color-disabled", "--chotto-theme-action-button-color-active", "--chotto-theme-action-button-color-hover", "--chotto-theme-action-button-color-disabled", "--chotto-theme-shadow-color", "--chotto-theme-shadow-light-color", "--chotto-theme-status-color-received", "--chotto-theme-status-color-read", "--chotto-theme-item-background-color-focus", "--chotto-theme-item-background-color-hover", "--chotto-theme-item-border-color", "--chotto-theme-unread-background-color", "--chotto-theme-unread-text-color", "--chotto-theme-scrollbar-bg", "--chotto-theme-scrollbar-thumb-bg"];
10
+ export declare const ALL_THEME_VARIABLES: readonly ["--chotto-theme-font-family", "--chotto-theme-container-font-weight", "--chotto-theme-container-borders", "--chotto-theme-float-container-border-radius-header", "--chotto-theme-float-container-box-shadow", "--chotto-theme-float-container-bg-header", "--chotto-theme-modal-padding", "--chotto-theme-modal-border-radius", "--chotto-theme-modal-mask-background", "--chotto-theme-modal-overlay-shadow", "--chotto-theme-modal-bg", "--chotto-theme-layout-extended-third-col-bg", "--chotto-theme-layout-extended-second-col-bg", "--chotto-theme-layout-extended-first-col-bg", "--chotto-theme-layout-extended-first-col-width", "--chotto-theme-layout-extended-second-col-width", "--chotto-theme-layout-base-second-col-bg", "--chotto-theme-layout-base-first-col-bg", "--chotto-theme-layout-feed-bg", "--chotto-theme-message-right-bg", "--chotto-theme-message-right-secondary-bg", "--chotto-theme-message-left-bg", "--chotto-theme-message-left-secondary-bg", "--chotto-theme-message-accent-line-color", "--chotto-theme-message-focused-color", "--chotto-theme-message-margin", "--chotto-theme-message-type-icon-bg-color", "--chotto-theme-message-type-icon-color", "--chotto-theme-message-popup-info-bg-color", "--chotto-theme-message-popup-info-color", "--chotto-theme-message-border-radius", "--chotto-theme-audio-message-transcript-delimiter-color", "--chotto-theme-audio-message-pbc-background-color", "--chotto-theme-audio-message-pb-background-color", "--chotto-theme-call-message-phone-icon-missed-color", "--chotto-theme-system-message-bg-color", "--chotto-theme-primary-color", "--chotto-theme-secondary-color", "--chotto-theme-primary-text-color", "--chotto-theme-secondary-text-color", "--chotto-theme-header-font", "--chotto-theme-header-font-color", "--chotto-theme-header-font-size", "--chotto-theme-title-font-size", "--chotto-theme-text-font-size", "--chotto-theme-additional-text-font-size", "--chotto-theme-small-text-font-size", "--chotto-theme-header-font-weight", "--chotto-theme-title-font-weight", "--chotto-theme-button-icon-size", "--chotto-theme-text-icon-size", "--chotto-theme-small-text-icon-size", "--chotto-theme-button-color-active", "--chotto-theme-button-color-hover", "--chotto-theme-button-color-disabled", "--chotto-theme-action-button-color-active", "--chotto-theme-action-button-color-hover", "--chotto-theme-action-button-color-disabled", "--chotto-theme-shadow-color", "--chotto-theme-shadow-light-color", "--chotto-theme-status-color-received", "--chotto-theme-status-color-read", "--chotto-theme-item-background-color-focus", "--chotto-theme-item-background-color-hover", "--chotto-theme-item-border-color", "--chotto-theme-unread-background-color", "--chotto-theme-unread-text-color", "--chotto-theme-scrollbar-bg", "--chotto-theme-scrollbar-thumb-bg"];
11
+ export declare const THEME_FILE_PATHS: Record<ThemeName, string>;
12
+ export declare const DEFAULT_THEME: ThemeName;
13
+ export declare const THEME_VALIDATION_CONFIG: {
14
+ readonly strictMode: true;
15
+ readonly allowOptionalVariables: true;
16
+ readonly validateSyntax: true;
17
+ readonly checkConsistency: true;
18
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Chotto Themes - Main export file
3
+ *
4
+ * This file exports all theme-related types, constants, and utilities
5
+ * for the Chotto theme system.
6
+ */
7
+ export type { ThemeName, ChottoThemeVariables, ThemeConfig, ThemeRegistry, ChottoThemeVariableName, RequiredChottoThemeVariables, OptionalChottoThemeVariables, ThemeValidationResult, ThemeValidationSummary } from './types';
8
+ export { THEME_NAMES, THEME_DISPLAY_NAMES, THEME_DESCRIPTIONS, THEME_VARIABLE_PREFIX, REQUIRED_THEME_VARIABLES, ALL_THEME_VARIABLES, THEME_FILE_PATHS, DEFAULT_THEME, THEME_VALIDATION_CONFIG } from './constants';
9
+ import './index.scss';
@@ -0,0 +1,116 @@
1
+ export type ThemeName = 'dark' | 'default' | 'green' | 'mobilon1';
2
+ export type ColorValue = string;
3
+ export type FontFamily = string;
4
+ export type FontSize = string;
5
+ export type FontWeight = string | number;
6
+ export type BorderRadius = string;
7
+ export type BoxShadow = string;
8
+ export type Margin = string;
9
+ export type Padding = string;
10
+ export type Width = string;
11
+ export type Height = string;
12
+ export interface ChottoThemeVariables {
13
+ '--chotto-theme-font-family': FontFamily;
14
+ '--chotto-theme-container-font-weight': FontWeight;
15
+ '--chotto-theme-container-borders': string;
16
+ '--chotto-theme-float-container-border-radius-header': BorderRadius;
17
+ '--chotto-theme-float-container-box-shadow': BoxShadow;
18
+ '--chotto-theme-float-container-bg-header': ColorValue;
19
+ '--chotto-theme-modal-padding': Padding;
20
+ '--chotto-theme-modal-border-radius': BorderRadius;
21
+ '--chotto-theme-modal-mask-background': ColorValue;
22
+ '--chotto-theme-modal-overlay-shadow': BoxShadow;
23
+ '--chotto-theme-modal-bg': ColorValue;
24
+ '--chotto-theme-layout-extended-third-col-bg': ColorValue;
25
+ '--chotto-theme-layout-extended-second-col-bg': ColorValue;
26
+ '--chotto-theme-layout-extended-first-col-bg': ColorValue;
27
+ '--chotto-theme-layout-extended-first-col-width': Width;
28
+ '--chotto-theme-layout-extended-second-col-width': Width;
29
+ '--chotto-theme-layout-base-second-col-bg': ColorValue;
30
+ '--chotto-theme-layout-base-first-col-bg': ColorValue;
31
+ '--chotto-theme-layout-feed-bg': ColorValue;
32
+ '--chotto-theme-message-right-bg': ColorValue;
33
+ '--chotto-theme-message-right-secondary-bg': ColorValue;
34
+ '--chotto-theme-message-left-bg': ColorValue;
35
+ '--chotto-theme-message-left-secondary-bg': ColorValue;
36
+ '--chotto-theme-message-accent-line-color': ColorValue;
37
+ '--chotto-theme-message-focused-color': ColorValue;
38
+ '--chotto-theme-message-margin': Margin;
39
+ '--chotto-theme-message-type-icon-bg-color': ColorValue;
40
+ '--chotto-theme-message-type-icon-color': ColorValue;
41
+ '--chotto-theme-message-popup-info-bg-color': ColorValue;
42
+ '--chotto-theme-message-popup-info-color': ColorValue;
43
+ '--chotto-theme-message-border-radius': BorderRadius;
44
+ '--chotto-theme-audio-message-transcript-delimiter-color': ColorValue;
45
+ '--chotto-theme-audio-message-pbc-background-color': ColorValue;
46
+ '--chotto-theme-audio-message-pb-background-color': ColorValue;
47
+ '--chotto-theme-call-message-phone-icon-missed-color': ColorValue;
48
+ '--chotto-theme-system-message-bg-color': ColorValue;
49
+ '--chotto-theme-primary-color': ColorValue;
50
+ '--chotto-theme-secondary-color': ColorValue;
51
+ '--chotto-theme-primary-text-color': ColorValue;
52
+ '--chotto-theme-secondary-text-color': ColorValue;
53
+ '--chotto-theme-header-font': FontFamily;
54
+ '--chotto-theme-header-font-size': FontSize;
55
+ '--chotto-theme-title-font-size': FontSize;
56
+ '--chotto-theme-text-font-size': FontSize;
57
+ '--chotto-theme-additional-text-font-size': FontSize;
58
+ '--chotto-theme-small-text-font-size': FontSize;
59
+ '--chotto-theme-header-font-weight': FontWeight;
60
+ '--chotto-theme-title-font-weight': FontWeight;
61
+ '--chotto-theme-button-icon-size': FontSize;
62
+ '--chotto-theme-text-icon-size': FontSize;
63
+ '--chotto-theme-small-text-icon-size': FontSize;
64
+ '--chotto-theme-button-color-active': ColorValue;
65
+ '--chotto-theme-button-color-hover': ColorValue;
66
+ '--chotto-theme-button-color-disabled': ColorValue;
67
+ '--chotto-theme-action-button-color-active': ColorValue;
68
+ '--chotto-theme-action-button-color-hover': ColorValue;
69
+ '--chotto-theme-action-button-color-disabled': ColorValue;
70
+ '--chotto-theme-shadow-color': ColorValue;
71
+ '--chotto-theme-shadow-light-color': ColorValue;
72
+ '--chotto-theme-status-color-received': ColorValue;
73
+ '--chotto-theme-status-color-read': ColorValue;
74
+ '--chotto-theme-item-background-color-focus': ColorValue;
75
+ '--chotto-theme-item-background-color-hover': ColorValue;
76
+ '--chotto-theme-item-border-color': ColorValue;
77
+ '--chotto-theme-unread-background-color': ColorValue;
78
+ '--chotto-theme-unread-text-color': ColorValue;
79
+ '--chotto-theme-scrollbar-bg': ColorValue;
80
+ '--chotto-theme-scrollbar-thumb-bg': ColorValue;
81
+ '--chotto-theme-header-font-color'?: ColorValue;
82
+ '--chotto-theme-small-text-font-weight'?: FontWeight;
83
+ '--chotto-theme-context-menu-font-size'?: FontSize;
84
+ '--chotto-theme-danger-button-color-active'?: ColorValue;
85
+ '--chotto-theme-danger-button-color-hover'?: ColorValue;
86
+ '--chotto-theme-danger-button-color-disabled'?: ColorValue;
87
+ }
88
+ export interface ThemeConfig {
89
+ name: ThemeName;
90
+ displayName: string;
91
+ description: string;
92
+ variables: ChottoThemeVariables;
93
+ }
94
+ export type ThemeRegistry = Record<ThemeName, ThemeConfig>;
95
+ export type ChottoThemeVariableName = keyof ChottoThemeVariables;
96
+ export type RequiredChottoThemeVariables = Omit<ChottoThemeVariables, '--chotto-theme-header-font-color' | '--chotto-theme-small-text-font-weight' | '--chotto-theme-context-menu-font-size' | '--chotto-theme-danger-button-color-active' | '--chotto-theme-danger-button-color-hover' | '--chotto-theme-danger-button-color-disabled'>;
97
+ export type OptionalChottoThemeVariables = Pick<ChottoThemeVariables, '--chotto-theme-header-font-color' | '--chotto-theme-small-text-font-weight' | '--chotto-theme-context-menu-font-size' | '--chotto-theme-danger-button-color-active' | '--chotto-theme-danger-button-color-hover' | '--chotto-theme-danger-button-color-disabled'>;
98
+ export interface ThemeValidationResult {
99
+ theme: ThemeName;
100
+ isValid: boolean;
101
+ missingVariables: ChottoThemeVariableName[];
102
+ extraVariables: ChottoThemeVariableName[];
103
+ syntaxErrors: Array<{
104
+ variable: ChottoThemeVariableName;
105
+ error: string;
106
+ line: number;
107
+ }>;
108
+ }
109
+ export interface ThemeValidationSummary {
110
+ totalThemes: number;
111
+ validThemes: number;
112
+ totalVariables: number;
113
+ totalErrors: number;
114
+ totalWarnings: number;
115
+ results: ThemeValidationResult[];
116
+ }
@@ -0,0 +1,4 @@
1
+ export declare const transformToFeed: (objects: Array<{
2
+ direction: string;
3
+ timestamp: number;
4
+ }>, outPreviousDay?: number | null) => unknown[];
@@ -0,0 +1,6 @@
1
+ export interface IChat {
2
+ name: string;
3
+ lastMessage: string;
4
+ countUnread: number;
5
+ 'lastActivity.time': string;
6
+ }
@@ -0,0 +1,8 @@
1
+ export interface IFeedKeyboard {
2
+ key: string;
3
+ text: string;
4
+ order: number;
5
+ action?: (() => void) | string;
6
+ 'shadow-color'?: string;
7
+ 'text-color'?: string;
8
+ }
@@ -0,0 +1,9 @@
1
+ import { Reply } from "./messages";
2
+ export interface IInputMessage {
3
+ type: string;
4
+ text?: string;
5
+ url?: string;
6
+ filename?: string;
7
+ size?: string;
8
+ reply?: Reply;
9
+ }
@@ -0,0 +1,49 @@
1
+ import { IAudioMessage, ICallMessage, IDateMessage, IFileMessage, IImageMessage, IKeyBoard, ILinkPreview, ISystemMessage, ITextMessage, ITypingMessage, IVideoMessage, Reply } from "./messages";
2
+ export interface IFeedObject {
3
+ messageId: string;
4
+ type: string;
5
+ header?: string;
6
+ text?: string;
7
+ position?: string;
8
+ status?: string;
9
+ time?: string;
10
+ url?: string;
11
+ alt?: string;
12
+ filename?: string;
13
+ avatar?: string;
14
+ subtext?: string;
15
+ actions?: IAction[];
16
+ views?: number;
17
+ callDuration?: string;
18
+ isMissedCall?: boolean;
19
+ reply?: Reply;
20
+ linkPreview?: ILinkPreview;
21
+ keyboard?: IKeyBoard[];
22
+ }
23
+ export type TFeedObject = IAudioMessage | ICallMessage | IDateMessage | IFileMessage | IImageMessage | ISystemMessage | ITextMessage | ITypingMessage | IVideoMessage;
24
+ export interface IAction {
25
+ action: string;
26
+ title: string;
27
+ icon?: string;
28
+ prime?: string;
29
+ }
30
+ export interface IFeedTyping {
31
+ title?: string;
32
+ avatar?: string;
33
+ }
34
+ export interface IFeedUnreadButton {
35
+ unreadAmount: number;
36
+ }
37
+ export interface IDialog {
38
+ time: string;
39
+ text: string;
40
+ position: string;
41
+ }
42
+ export interface IFilePreview {
43
+ previewUrl?: string;
44
+ isImage: boolean;
45
+ isVideo: boolean;
46
+ isAudio: boolean;
47
+ fileName?: string;
48
+ fileSize: string;
49
+ }
@@ -0,0 +1,4 @@
1
+ export * from './IChat';
2
+ export * from './components';
3
+ export * from './messages';
4
+ export * from './IInputMessage';