@layers-app/shared 0.4.4 → 0.4.6

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 (256) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  3. package/dist/components/AppContainer/AppContainer.js +72 -79
  4. package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
  5. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  7. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
  9. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/Header.js +6 -5
  11. package/dist/components/AppContainer/components/Main.js +4 -4
  12. package/dist/components/AppContainer/components/SidebarToggleButton.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/SidebarToggleButton.js +25 -16
  14. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  15. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  18. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
  19. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  21. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  23. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  24. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  25. package/dist/components/AppContainer/types.d.ts +1 -0
  26. package/dist/components/AppContainer/types.d.ts.map +1 -1
  27. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  28. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -33
  30. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
  32. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  33. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +54 -36
  34. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  35. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +2 -0
  36. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  37. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +84 -37
  38. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  39. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  40. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  41. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  42. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  43. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  44. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  45. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +7 -7
  46. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  47. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +138 -84
  48. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  49. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  50. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  51. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  52. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  53. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +15 -0
  54. package/dist/components/Chat/CallMessage/index.d.ts +21 -0
  55. package/dist/components/Chat/CallMessage/index.d.ts.map +1 -0
  56. package/dist/components/Chat/CallMessage/index.js +49 -0
  57. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +9 -0
  58. package/dist/components/Chat/ChatBubble/index.d.ts +14 -0
  59. package/dist/components/Chat/ChatBubble/index.d.ts.map +1 -0
  60. package/dist/components/Chat/ChatBubble/index.js +32 -0
  61. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +17 -0
  62. package/dist/components/Chat/ChatHeader/index.d.ts +42 -0
  63. package/dist/components/Chat/ChatHeader/index.d.ts.map +1 -0
  64. package/dist/components/Chat/ChatHeader/index.js +78 -0
  65. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +49 -0
  66. package/dist/components/Chat/ChatInput/index.d.ts +74 -0
  67. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -0
  68. package/dist/components/Chat/ChatInput/index.js +288 -0
  69. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
  70. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
  71. package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
  72. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +15 -0
  73. package/dist/components/Chat/ChatLayout/index.d.ts +17 -0
  74. package/dist/components/Chat/ChatLayout/index.d.ts.map +1 -0
  75. package/dist/components/Chat/ChatLayout/index.js +43 -0
  76. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +21 -0
  77. package/dist/components/Chat/ChatMessage/index.d.ts +47 -0
  78. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -0
  79. package/dist/components/Chat/ChatMessage/index.js +206 -0
  80. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +11 -0
  81. package/dist/components/Chat/ChatPill/index.d.ts +12 -0
  82. package/dist/components/Chat/ChatPill/index.d.ts.map +1 -0
  83. package/dist/components/Chat/ChatPill/index.js +21 -0
  84. package/dist/components/Chat/DayMeta/index.d.ts +11 -0
  85. package/dist/components/Chat/DayMeta/index.d.ts.map +1 -0
  86. package/dist/components/Chat/DayMeta/index.js +9 -0
  87. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +17 -0
  88. package/dist/components/Chat/DialogItem/index.d.ts +41 -0
  89. package/dist/components/Chat/DialogItem/index.d.ts.map +1 -0
  90. package/dist/components/Chat/DialogItem/index.js +107 -0
  91. package/dist/components/Chat/DialogList/DialogList.module.css.js +7 -0
  92. package/dist/components/Chat/DialogList/index.d.ts +11 -0
  93. package/dist/components/Chat/DialogList/index.d.ts.map +1 -0
  94. package/dist/components/Chat/DialogList/index.js +19 -0
  95. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +13 -0
  96. package/dist/components/Chat/MediaDocument/index.d.ts +15 -0
  97. package/dist/components/Chat/MediaDocument/index.d.ts.map +1 -0
  98. package/dist/components/Chat/MediaDocument/index.js +73 -0
  99. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +7 -0
  100. package/dist/components/Chat/MessageActions/index.d.ts +23 -0
  101. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -0
  102. package/dist/components/Chat/MessageActions/index.js +68 -0
  103. package/dist/components/Chat/MessageAuthor/index.d.ts +20 -0
  104. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -0
  105. package/dist/components/Chat/MessageAuthor/index.js +36 -0
  106. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +7 -0
  107. package/dist/components/Chat/MessageForward/index.d.ts +13 -0
  108. package/dist/components/Chat/MessageForward/index.d.ts.map +1 -0
  109. package/dist/components/Chat/MessageForward/index.js +30 -0
  110. package/dist/components/Chat/MessageList/MessageList.module.css.js +21 -0
  111. package/dist/components/Chat/MessageList/index.d.ts +39 -0
  112. package/dist/components/Chat/MessageList/index.d.ts.map +1 -0
  113. package/dist/components/Chat/MessageList/index.js +159 -0
  114. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +13 -0
  115. package/dist/components/Chat/MessageMeta/index.d.ts +16 -0
  116. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -0
  117. package/dist/components/Chat/MessageMeta/index.js +33 -0
  118. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +15 -0
  119. package/dist/components/Chat/MessageReactions/index.d.ts +32 -0
  120. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -0
  121. package/dist/components/Chat/MessageReactions/index.js +72 -0
  122. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +15 -0
  123. package/dist/components/Chat/MessageReply/index.d.ts +15 -0
  124. package/dist/components/Chat/MessageReply/index.d.ts.map +1 -0
  125. package/dist/components/Chat/MessageReply/index.js +40 -0
  126. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +11 -0
  127. package/dist/components/Chat/MessageStatus/index.d.ts +14 -0
  128. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -0
  129. package/dist/components/Chat/MessageStatus/index.js +68 -0
  130. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +11 -0
  131. package/dist/components/Chat/ServiceMessage/index.d.ts +13 -0
  132. package/dist/components/Chat/ServiceMessage/index.d.ts.map +1 -0
  133. package/dist/components/Chat/ServiceMessage/index.js +21 -0
  134. package/dist/components/Chat/UnreadSeparator/index.d.ts +11 -0
  135. package/dist/components/Chat/UnreadSeparator/index.d.ts.map +1 -0
  136. package/dist/components/Chat/UnreadSeparator/index.js +13 -0
  137. package/dist/components/Chat/colors.d.ts +7 -0
  138. package/dist/components/Chat/colors.d.ts.map +1 -0
  139. package/dist/components/Chat/colors.js +30 -0
  140. package/dist/components/Chat/icons.d.ts +9 -0
  141. package/dist/components/Chat/icons.d.ts.map +1 -0
  142. package/dist/components/Chat/icons.js +49 -0
  143. package/dist/components/Chat/index.d.ts +24 -0
  144. package/dist/components/Chat/index.d.ts.map +1 -0
  145. package/dist/components/Chat/mock-data.d.ts +32 -0
  146. package/dist/components/Chat/mock-data.d.ts.map +1 -0
  147. package/dist/components/Chat/types.d.ts +159 -0
  148. package/dist/components/Chat/types.d.ts.map +1 -0
  149. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  150. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  151. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  152. package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
  153. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  154. package/dist/components/ColorPicker/ColorPickerList.js +81 -68
  155. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  156. package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
  157. package/dist/components/ColorPicker/icons.js +5 -5
  158. package/dist/components/ColorPicker/types.d.ts +6 -0
  159. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  160. package/dist/components/ColorPicker/types.js +53 -11
  161. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  162. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  163. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  164. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  165. package/dist/components/CommentComposer/types.js +9 -0
  166. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  167. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  168. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  169. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  170. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  171. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  172. package/dist/components/EmojiPicker/EmojiPicker.d.ts +23 -1
  173. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  174. package/dist/components/EmojiPicker/EmojiPicker.js +126 -88
  175. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  176. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  177. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  178. package/dist/components/EntityIcon.d.ts +1 -0
  179. package/dist/components/EntityIcon.d.ts.map +1 -1
  180. package/dist/components/EntityIcon.js +90 -33
  181. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  182. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  183. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  184. package/dist/components/ErrorPage/components/Error403.js +25 -21
  185. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  186. package/dist/components/ErrorPage/index.d.ts +5 -1
  187. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  188. package/dist/components/ErrorPage/index.js +17 -10
  189. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  190. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  191. package/dist/components/FilePicker/FilePicker.js +135 -161
  192. package/dist/components/FilePicker/FilePicker.module.css.js +8 -12
  193. package/dist/components/FilePicker/FilePickerGallery.js +13 -13
  194. package/dist/components/FilePicker/FilePickerGiphy.js +4 -4
  195. package/dist/components/FilePicker/FilePickerGoogleDrive.js +3 -3
  196. package/dist/components/FilePicker/FilePickerUnsplash.js +18 -18
  197. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  198. package/dist/components/FilePicker/FilePickerUpload.js +55 -47
  199. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  200. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  201. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  202. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  203. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  204. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  205. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  206. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  207. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  208. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  209. package/dist/components/Loaders/styles.module.css.js +6 -6
  210. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  211. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  212. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  213. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  214. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  215. package/dist/components/NavMenu/NavMenu.js +54 -44
  216. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  217. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  218. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  219. package/dist/components/NavMenu/types.d.ts +4 -0
  220. package/dist/components/NavMenu/types.d.ts.map +1 -1
  221. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  222. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  223. package/dist/components/Notification/Notification.module.css.js +1 -1
  224. package/dist/components/PillTabs/PillTabs.d.ts +19 -0
  225. package/dist/components/PillTabs/PillTabs.d.ts.map +1 -0
  226. package/dist/components/PillTabs/PillTabs.js +50 -0
  227. package/dist/components/PillTabs/PillTabs.module.css.js +11 -0
  228. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  229. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  230. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  231. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  232. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  233. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  234. package/dist/components/modals/RemoveConfirmModal.js +1 -1
  235. package/dist/components/table/FrontTable.d.ts.map +1 -1
  236. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  237. package/dist/config/envConfig.d.ts +2 -0
  238. package/dist/config/envConfig.d.ts.map +1 -1
  239. package/dist/config/envConfig.js +41 -37
  240. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  241. package/dist/helpers/showNotifications.d.ts +15 -0
  242. package/dist/helpers/showNotifications.d.ts.map +1 -1
  243. package/dist/helpers/showNotifications.js +114 -72
  244. package/dist/helpers/showNotifications.module.css.js +16 -4
  245. package/dist/hooks/useUiPref.d.ts +2 -0
  246. package/dist/hooks/useUiPref.d.ts.map +1 -0
  247. package/dist/hooks/useUiPref.js +80 -0
  248. package/dist/index.css +1 -1
  249. package/dist/index.d.ts +4 -0
  250. package/dist/index.d.ts.map +1 -1
  251. package/dist/index.js +588 -527
  252. package/dist/lang/locales/ui_en.json.js +5 -5
  253. package/dist/lang/locales/ui_es.json.js +1 -1
  254. package/dist/lang/locales/ui_ru.json.js +1 -1
  255. package/docs/README.md +499 -499
  256. package/package.json +78 -75
@@ -0,0 +1,206 @@
1
+ import { jsx as e, jsxs as d, Fragment as Z } from "react/jsx-runtime";
2
+ import _, { useMemo as $ } from "react";
3
+ import { AttachmentsPreview as P } from "../../AttachmentsPreview/AttachmentsPreview.js";
4
+ import { UserAvatar as T } from "../../UserAvatar/index.js";
5
+ import { ChatBubble as ee } from "../ChatBubble/index.js";
6
+ import { MessageActions as ae } from "../MessageActions/index.js";
7
+ import { MessageAuthor as te } from "../MessageAuthor/index.js";
8
+ import { MessageForward as se } from "../MessageForward/index.js";
9
+ import { MessageMeta as ie } from "../MessageMeta/index.js";
10
+ import { MessageReactions as re, MAX_MESSAGE_REACTIONS as oe } from "../MessageReactions/index.js";
11
+ import { MessageReply as le } from "../MessageReply/index.js";
12
+ import { MessageStatus as j } from "../MessageStatus/index.js";
13
+ import { getAvatarColor as me } from "../colors.js";
14
+ import t from "./ChatMessage.module.css.js";
15
+ const ce = { cursor: "pointer" }, de = _.memo(
16
+ _.forwardRef(function({
17
+ children: p,
18
+ outgoing: a,
19
+ senderName: o,
20
+ senderColor: n,
21
+ avatarName: g,
22
+ avatarSrc: B,
23
+ showAvatar: K,
24
+ timestamp: M,
25
+ status: l,
26
+ onRetry: h,
27
+ retryLabel: A,
28
+ replyTo: i,
29
+ forwardFrom: u,
30
+ edited: L,
31
+ attachments: r,
32
+ reactions: m,
33
+ onReactionToggle: O,
34
+ groupPosition: C = "single",
35
+ onReaction: w,
36
+ onReply: b,
37
+ onEdit: v,
38
+ onDelete: f,
39
+ onCopy: x,
40
+ onForward: N,
41
+ onPin: S,
42
+ onContextMenu: z,
43
+ onAvatarClick: k,
44
+ fullWidth: D,
45
+ noBubble: G,
46
+ mediaOnly: U,
47
+ hasMedia: y,
48
+ id: W,
49
+ className: E,
50
+ style: X
51
+ }, Y) {
52
+ const q = !a && !!o, F = !a && K, H = !!(w || b || v || f || x || N || S), J = $(() => {
53
+ const s = me(n);
54
+ return {
55
+ root: { "--avatar-bg": s },
56
+ placeholder: { backgroundColor: s }
57
+ };
58
+ }, [n]), I = m && m.length > 0, Q = (m?.length ?? 0) < oe, V = $(
59
+ () => r?.filter((s) => s.isImage).length ?? 0,
60
+ [r]
61
+ ), c = M ? /* @__PURE__ */ e(
62
+ ie,
63
+ {
64
+ time: M,
65
+ edited: L,
66
+ outgoing: a,
67
+ inReactions: I,
68
+ children: a && l && (l === "error" && h ? /* @__PURE__ */ e(
69
+ "span",
70
+ {
71
+ role: "button",
72
+ tabIndex: 0,
73
+ onClick: h,
74
+ onKeyDown: (s) => {
75
+ (s.key === "Enter" || s.key === " ") && (s.preventDefault(), h());
76
+ },
77
+ title: A,
78
+ "aria-label": A,
79
+ "data-testid": "message-retry",
80
+ style: { cursor: "pointer", display: "inline-flex" },
81
+ children: /* @__PURE__ */ e(j, { status: l })
82
+ }
83
+ ) : /* @__PURE__ */ e(j, { status: l }))
84
+ }
85
+ ) : null, R = /* @__PURE__ */ d(Z, { children: [
86
+ q && /* @__PURE__ */ e(te, { name: o, color: n }),
87
+ i && /* @__PURE__ */ e(
88
+ le,
89
+ {
90
+ title: i.senderName,
91
+ subtitle: i.text,
92
+ color: i.color,
93
+ outgoing: a,
94
+ onClick: i.onClick
95
+ }
96
+ ),
97
+ u && /* @__PURE__ */ e(se, { from: u, outgoing: a }),
98
+ U ? /* @__PURE__ */ d(
99
+ "div",
100
+ {
101
+ className: t.content,
102
+ style: { position: "relative" },
103
+ "data-testid": "chat-message-content",
104
+ "data-has-media": y || void 0,
105
+ "data-media-only": !0,
106
+ children: [
107
+ p,
108
+ c && /* @__PURE__ */ e("div", { className: t.mediaOnlyMeta, children: c })
109
+ ]
110
+ }
111
+ ) : /* @__PURE__ */ d(
112
+ "div",
113
+ {
114
+ className: t.content,
115
+ "data-testid": "chat-message-content",
116
+ "data-has-media": y || void 0,
117
+ "data-single-image": V === 1 || void 0,
118
+ children: [
119
+ r && r.length > 0 && /* @__PURE__ */ e("div", { className: t.attachmentsWrap, children: /* @__PURE__ */ e(
120
+ P,
121
+ {
122
+ files: r,
123
+ mode: "view",
124
+ parentIsExisting: !0
125
+ }
126
+ ) }),
127
+ p,
128
+ I ? /* @__PURE__ */ e(
129
+ re,
130
+ {
131
+ reactions: m,
132
+ onToggle: O,
133
+ meta: c
134
+ }
135
+ ) : c
136
+ ]
137
+ }
138
+ )
139
+ ] });
140
+ return /* @__PURE__ */ e(
141
+ "div",
142
+ {
143
+ ref: Y,
144
+ className: `${t.messageRow}${E ? ` ${E}` : ""}`,
145
+ "data-outgoing": a || void 0,
146
+ "data-message-id": W,
147
+ onContextMenu: z,
148
+ style: X,
149
+ children: /* @__PURE__ */ d(
150
+ "div",
151
+ {
152
+ className: t.wrapper,
153
+ "data-outgoing": a || void 0,
154
+ "data-group-position": C,
155
+ children: [
156
+ F ? /* @__PURE__ */ e("div", { className: t.avatar, children: /* @__PURE__ */ e(
157
+ T,
158
+ {
159
+ user: {
160
+ id: g || o || "",
161
+ name: g || o,
162
+ avatar: B
163
+ },
164
+ size: 33,
165
+ radius: "xl",
166
+ onClick: k,
167
+ style: k ? ce : void 0,
168
+ styles: J
169
+ }
170
+ ) }) : !a && /* @__PURE__ */ e("div", { className: t.spacer }),
171
+ G ? R : /* @__PURE__ */ e(
172
+ ee,
173
+ {
174
+ outgoing: a,
175
+ fullWidth: D,
176
+ groupPosition: C,
177
+ children: R
178
+ }
179
+ ),
180
+ H && /* @__PURE__ */ e(
181
+ ae,
182
+ {
183
+ className: t.hoverActions,
184
+ onReaction: w,
185
+ canAddReaction: Q,
186
+ onReply: b,
187
+ onEdit: v,
188
+ onDelete: f,
189
+ onCopy: x,
190
+ onForward: N,
191
+ onPin: S,
192
+ showEdit: !!v,
193
+ showDelete: !!f
194
+ }
195
+ )
196
+ ]
197
+ }
198
+ )
199
+ }
200
+ );
201
+ })
202
+ );
203
+ de.displayName = "ChatMessage";
204
+ export {
205
+ de as ChatMessage
206
+ };
@@ -0,0 +1,11 @@
1
+ const l = "_root_1rg6u_1", o = "_line_1rg6u_17", t = "_label_1rg6u_31", e = {
2
+ root: l,
3
+ line: o,
4
+ label: t
5
+ };
6
+ export {
7
+ e as default,
8
+ t as label,
9
+ o as line,
10
+ l as root
11
+ };
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface ChatPillProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ 'data-testid'?: string;
7
+ }
8
+ export declare function ChatPill({ children, className, style, 'data-testid': testId }: ChatPillProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare namespace ChatPill {
10
+ var displayName: string;
11
+ }
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/ChatPill/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,aAAa,2CAY5F;yBAZe,QAAQ"}
@@ -0,0 +1,21 @@
1
+ import { jsxs as d, jsx as s } from "react/jsx-runtime";
2
+ import a from "./ChatPill.module.css.js";
3
+ function r({ children: i, className: t, style: l, "data-testid": e }) {
4
+ return /* @__PURE__ */ d(
5
+ "div",
6
+ {
7
+ className: `${a.root}${t ? ` ${t}` : ""}`,
8
+ style: l,
9
+ "data-testid": e,
10
+ children: [
11
+ /* @__PURE__ */ s("div", { className: a.line }),
12
+ /* @__PURE__ */ s("span", { className: a.label, children: i }),
13
+ /* @__PURE__ */ s("div", { className: a.line })
14
+ ]
15
+ }
16
+ );
17
+ }
18
+ r.displayName = "ChatPill";
19
+ export {
20
+ r as ChatPill
21
+ };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface DayMetaProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export declare function DayMeta({ children, className, style }: DayMetaProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare namespace DayMeta {
9
+ var displayName: string;
10
+ }
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/DayMeta/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,OAAO,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,YAAY,2CAMnE;yBANe,OAAO"}
@@ -0,0 +1,9 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { ChatPill as i } from "../ChatPill/index.js";
3
+ function m({ children: t, className: a, style: e }) {
4
+ return /* @__PURE__ */ r(i, { className: a, style: e, "data-testid": "day-meta", children: t });
5
+ }
6
+ m.displayName = "DayMeta";
7
+ export {
8
+ m as DayMeta
9
+ };
@@ -0,0 +1,17 @@
1
+ const t = "_root_1wv58_1", o = "_dialogContent_1wv58_59", n = "_dialogContentDraft_1wv58_79", e = "_dialogContentSender_1wv58_89", _ = "_titleRow_1wv58_99", a = "_textContent_1wv58_119", l = {
2
+ root: t,
3
+ dialogContent: o,
4
+ dialogContentDraft: n,
5
+ dialogContentSender: e,
6
+ titleRow: _,
7
+ textContent: a
8
+ };
9
+ export {
10
+ l as default,
11
+ o as dialogContent,
12
+ n as dialogContentDraft,
13
+ e as dialogContentSender,
14
+ t as root,
15
+ a as textContent,
16
+ _ as titleRow
17
+ };
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ export interface DialogItemProps {
3
+ /** Chat title / name */
4
+ title: string;
5
+ /** Avatar image source */
6
+ avatarSrc?: string;
7
+ /** Avatar color index 1-7 */
8
+ avatarColor?: 1 | 2 | 3 | 4 | 5 | 6 | 7;
9
+ /** Last message text */
10
+ lastMessage?: string;
11
+ /** Last message sender name (for groups) */
12
+ lastMessageSender?: string;
13
+ /** Timestamp string ("12:45", "Mon") */
14
+ timestamp?: string;
15
+ /** Unread messages count */
16
+ unreadCount?: number;
17
+ /** Muted chat */
18
+ muted?: boolean;
19
+ /** Online indicator */
20
+ online?: boolean;
21
+ /** Typing status text */
22
+ typing?: string;
23
+ /** Pinned chat */
24
+ pinned?: boolean;
25
+ /** Draft text */
26
+ draft?: string;
27
+ /** Verified badge */
28
+ verified?: boolean;
29
+ /** Selected state */
30
+ selected?: boolean;
31
+ /** Click handler */
32
+ onClick?: () => void;
33
+ /** Context menu handler */
34
+ onContextMenu?: (e: React.MouseEvent) => void;
35
+ /** Custom style */
36
+ style?: React.CSSProperties;
37
+ /** Custom className */
38
+ className?: string;
39
+ }
40
+ export declare const DialogItem: React.NamedExoticComponent<DialogItemProps>;
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/DialogItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AAMpD,MAAM,WAAW,eAAe;IAC9B,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACxC,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,uBAAuB;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oBAAoB;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2BAA2B;IAC3B,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC9C,mBAAmB;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,6CAoIrB,CAAC"}
@@ -0,0 +1,107 @@
1
+ import { jsx as e, jsxs as t, Fragment as K } from "react/jsx-runtime";
2
+ import R, { useCallback as W, useMemo as g } from "react";
3
+ import { Badge as _, Indicator as E, Stack as F, Group as x, Text as y, Avatar as G } from "@mantine/core";
4
+ import { getAvatarColor as O } from "../colors.js";
5
+ import { VerifiedIcon as P, MutedIcon as T } from "../icons.js";
6
+ import r from "./DialogItem.module.css.js";
7
+ const V = R.memo(function({
8
+ title: c,
9
+ avatarSrc: I,
10
+ avatarColor: f = 1,
11
+ lastMessage: s,
12
+ lastMessageSender: d,
13
+ timestamp: p,
14
+ unreadCount: o,
15
+ muted: m,
16
+ online: N,
17
+ typing: l,
18
+ pinned: h,
19
+ draft: i,
20
+ verified: D,
21
+ selected: z,
22
+ onClick: a,
23
+ onContextMenu: B,
24
+ style: k,
25
+ className: b
26
+ }) {
27
+ const u = o != null && o > 0 || h, v = l || i || s, S = W(
28
+ (n) => {
29
+ n.key === "Enter" && a && a();
30
+ },
31
+ [a]
32
+ ), $ = g(() => {
33
+ const n = O(f);
34
+ return {
35
+ root: { "--avatar-bg": n },
36
+ placeholder: { backgroundColor: n }
37
+ };
38
+ }, [f]), w = /* @__PURE__ */ e(
39
+ G,
40
+ {
41
+ src: I,
42
+ name: c,
43
+ size: 54,
44
+ radius: "xl",
45
+ styles: $
46
+ }
47
+ ), j = g(() => {
48
+ if (!u) return null;
49
+ const n = h && (!o || o <= 0), C = m || n ? "var(--mantine-color-gray-4)" : "var(--mantine-color-green-6)", H = o != null && o > 999 ? "999+" : o;
50
+ return /* @__PURE__ */ e(
51
+ _,
52
+ {
53
+ size: "md",
54
+ radius: "xl",
55
+ variant: "filled",
56
+ styles: {
57
+ root: { backgroundColor: C, minWidth: 24, minHeight: 24, paddingInline: 6 },
58
+ label: { fontSize: 14, fontWeight: 500, lineHeight: "normal" }
59
+ },
60
+ children: n ? "📌" : H
61
+ }
62
+ );
63
+ }, [u, h, o, m]), A = g(() => l ? /* @__PURE__ */ e("span", { className: r.dialogContent, style: { color: "var(--mantine-color-blue-6, #228be6)" }, children: l }) : v ? /* @__PURE__ */ t("span", { className: r.dialogContent, children: [
64
+ i && /* @__PURE__ */ e("span", { className: r.dialogContentDraft, children: "Draft: " }),
65
+ d && !i && /* @__PURE__ */ t(K, { children: [
66
+ /* @__PURE__ */ e("span", { className: r.dialogContentSender, children: d }),
67
+ ": "
68
+ ] }),
69
+ i || s
70
+ ] }) : null, [l, i, s, d, v]);
71
+ return /* @__PURE__ */ t(
72
+ "div",
73
+ {
74
+ className: `${r.root}${b ? ` ${b}` : ""}`,
75
+ "data-selected": z || void 0,
76
+ "data-testid": "dialog-item",
77
+ "aria-label": c,
78
+ onClick: a,
79
+ onContextMenu: B,
80
+ onKeyDown: S,
81
+ tabIndex: 0,
82
+ role: "button",
83
+ style: k,
84
+ children: [
85
+ N ? /* @__PURE__ */ e(E, { inline: !0, size: 14, offset: 4, position: "bottom-end", color: "green", withBorder: !0, processing: !1, children: w }) : w,
86
+ /* @__PURE__ */ e("div", { className: r.textContent, children: /* @__PURE__ */ t(F, { gap: 2, children: [
87
+ /* @__PURE__ */ t(x, { gap: 4, wrap: "nowrap", children: [
88
+ /* @__PURE__ */ t("div", { className: r.titleRow, children: [
89
+ /* @__PURE__ */ e(y, { size: "md", fw: 600, truncate: !0, children: c }),
90
+ D && /* @__PURE__ */ e(P, {}),
91
+ m && /* @__PURE__ */ e(T, {})
92
+ ] }),
93
+ p && /* @__PURE__ */ e(y, { size: "xs", c: "dimmed", style: { flexShrink: 0 }, children: p })
94
+ ] }),
95
+ /* @__PURE__ */ t(x, { gap: 4, wrap: "nowrap", children: [
96
+ A,
97
+ j
98
+ ] })
99
+ ] }) })
100
+ ]
101
+ }
102
+ );
103
+ });
104
+ V.displayName = "DialogItem";
105
+ export {
106
+ V as DialogItem
107
+ };
@@ -0,0 +1,7 @@
1
+ const o = "_root_uv81p_1", t = {
2
+ root: o
3
+ };
4
+ export {
5
+ t as default,
6
+ o as root
7
+ };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ export interface DialogListProps {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ style?: React.CSSProperties;
6
+ }
7
+ export declare function DialogList({ children, className, style }: DialogListProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare namespace DialogList {
9
+ var displayName: string;
10
+ }
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/DialogList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,eAAe,2CAazE;yBAbe,UAAU"}
@@ -0,0 +1,19 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { ScrollArea as a } from "@mantine/core";
3
+ import l from "./DialogList.module.css.js";
4
+ function e({ children: i, className: t, style: r }) {
5
+ return /* @__PURE__ */ o(
6
+ a,
7
+ {
8
+ className: `${l.root}${t ? ` ${t}` : ""}`,
9
+ style: r,
10
+ type: "auto",
11
+ "data-testid": "dialog-list",
12
+ children: /* @__PURE__ */ o("div", { role: "listbox", "aria-label": "Chats", children: i })
13
+ }
14
+ );
15
+ }
16
+ e.displayName = "DialogList";
17
+ export {
18
+ e as DialogList
19
+ };
@@ -0,0 +1,13 @@
1
+ const o = "_root_pcicv_1", t = "_downloadButton_pcicv_39", e = "_fileName_pcicv_59", c = "_fileSize_pcicv_75", i = {
2
+ root: o,
3
+ downloadButton: t,
4
+ fileName: e,
5
+ fileSize: c
6
+ };
7
+ export {
8
+ i as default,
9
+ t as downloadButton,
10
+ e as fileName,
11
+ c as fileSize,
12
+ o as root
13
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ export interface MediaDocumentProps {
3
+ fileName: string;
4
+ fileSize?: string;
5
+ fileType?: string;
6
+ fileUrl?: string;
7
+ onClick?: () => void;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ }
11
+ export declare function MediaDocument({ fileName, fileSize, fileType, fileUrl, onClick, className, style, }: MediaDocumentProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare namespace MediaDocument {
13
+ var displayName: string;
14
+ }
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MediaDocument/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO,EACP,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,2CA8CpB;yBAtDe,aAAa"}
@@ -0,0 +1,73 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ import { Box as p, Flex as u, Stack as f, Text as c, ActionIcon as h } from "@mantine/core";
3
+ import { Download01Icon as w } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as x } from "@hugeicons/react";
5
+ import { getFileIcons as g } from "../../../helpers/getFileIcons.js";
6
+ import t from "./MediaDocument.module.css.js";
7
+ function b(o) {
8
+ try {
9
+ const r = new URL(o, window.location.origin);
10
+ return ["https:", "http:", "blob:"].includes(r.protocol);
11
+ } catch {
12
+ return !1;
13
+ }
14
+ }
15
+ function y({
16
+ fileName: o,
17
+ fileSize: r,
18
+ fileType: l,
19
+ fileUrl: a,
20
+ onClick: n,
21
+ className: m,
22
+ style: d
23
+ }) {
24
+ return /* @__PURE__ */ e(
25
+ p,
26
+ {
27
+ className: `${t.root} ${m || ""}`,
28
+ style: d,
29
+ onClick: n,
30
+ tabIndex: n ? 0 : void 0,
31
+ onKeyDown: n ? (i) => {
32
+ i.key === "Enter" && n();
33
+ } : void 0,
34
+ children: /* @__PURE__ */ s(u, { align: "center", gap: "xs", wrap: "nowrap", children: [
35
+ g(l || "other", !1, 36),
36
+ /* @__PURE__ */ s(f, { gap: 0, flex: 1, miw: 0, children: [
37
+ /* @__PURE__ */ e(
38
+ c,
39
+ {
40
+ size: "sm",
41
+ truncate: !0,
42
+ title: o,
43
+ className: t.fileName,
44
+ children: o
45
+ }
46
+ ),
47
+ r && /* @__PURE__ */ e(c, { size: "xs", className: t.fileSize, children: r })
48
+ ] }),
49
+ a && b(a) && /* @__PURE__ */ e(
50
+ h,
51
+ {
52
+ component: "a",
53
+ href: a,
54
+ target: "_blank",
55
+ download: o,
56
+ rel: "noopener noreferrer",
57
+ variant: "subtle",
58
+ color: "gray",
59
+ size: "sm",
60
+ className: t.downloadButton,
61
+ onClick: (i) => i.stopPropagation(),
62
+ "aria-label": "Download",
63
+ children: /* @__PURE__ */ e(x, { icon: w, size: 16 })
64
+ }
65
+ )
66
+ ] })
67
+ }
68
+ );
69
+ }
70
+ y.displayName = "MediaDocument";
71
+ export {
72
+ y as MediaDocument
73
+ };
@@ -0,0 +1,7 @@
1
+ const o = "_root_1hjx7_1", t = {
2
+ root: o
3
+ };
4
+ export {
5
+ t as default,
6
+ o as root
7
+ };
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ export interface MessageActionsProps {
3
+ onReaction?: (emoji: string) => void;
4
+ /**
5
+ * Whether a *new* reaction emoji may still be added. False once the message
6
+ * hit the distinct-reaction cap — we then hide the add-reaction picker
7
+ * entirely (joining an existing reaction is still possible via its pill).
8
+ * Defaults to true. See {@link MAX_MESSAGE_REACTIONS}.
9
+ */
10
+ canAddReaction?: boolean;
11
+ onReply?: () => void;
12
+ onEdit?: () => void;
13
+ onDelete?: () => void;
14
+ onCopy?: () => void;
15
+ onForward?: () => void;
16
+ onPin?: () => void;
17
+ showEdit?: boolean;
18
+ showDelete?: boolean;
19
+ className?: string;
20
+ style?: React.CSSProperties;
21
+ }
22
+ export declare const MessageActions: React.NamedExoticComponent<MessageActionsProps>;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAiBxC,MAAM,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,iDA+FzB,CAAC"}