@layers-app/shared 0.4.7 → 0.4.9
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.
- package/dist/assets/default-workspace-avatar.jpg.js +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +76 -71
- package/dist/components/AppContainer/AppContainer.module.css.js +14 -14
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
- package/dist/components/AppContainer/components/NavbarContent.d.ts.map +1 -1
- package/dist/components/AppContainer/components/NavbarContent.js +16 -2
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +42 -30
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +90 -90
- package/dist/components/AppContainer/types.d.ts +12 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +59 -52
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +16 -15
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +22 -22
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +22 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -4
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +1 -1
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -44
- package/dist/components/Chat/ChatInput/index.d.ts +13 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +264 -164
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
- package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +153 -118
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
- package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts +2 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +188 -50
- package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
- package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageAuthor/index.js +39 -25
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
- package/dist/components/Chat/MessageList/index.d.ts +17 -25
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +201 -149
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +12 -12
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -8
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +83 -72
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +94 -85
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +6 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +53 -11
- package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +43 -20
- package/dist/components/CommentComposer/CommentComposer.module.css.js +14 -10
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
- package/dist/components/CommentComposer/index.d.ts +2 -1
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +333 -313
- package/dist/components/CommentComposer/types.d.ts +10 -0
- package/dist/components/CommentComposer/types.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/CustomKBD/index.js +21 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +81 -80
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/conditions.js +33 -17
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
- package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
- package/dist/components/Notification/InfiniteScroll.js +42 -0
- package/dist/components/Notification/Notification.d.ts +4 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.module.css.js +28 -4
- package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
- package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ActionBadge.js +53 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/InboxIcon.js +33 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.js +32 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
- package/dist/components/Notification/atoms/UnreadDot.js +23 -0
- package/dist/components/Notification/atoms/index.d.ts +5 -0
- package/dist/components/Notification/atoms/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/index.d.ts +8 -0
- package/dist/components/Notification/hooks/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.js +58 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
- package/dist/components/Notification/lib/api.d.ts +4 -0
- package/dist/components/Notification/lib/api.d.ts.map +1 -0
- package/dist/components/Notification/lib/api.js +19 -0
- package/dist/components/Notification/lib/index.d.ts +5 -0
- package/dist/components/Notification/lib/index.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.d.ts +10 -0
- package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.js +131 -0
- package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
- package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
- package/dist/components/Notification/lib/stripHtml.js +6 -0
- package/dist/components/Notification/lib/types.d.ts +45 -0
- package/dist/components/Notification/lib/types.d.ts.map +1 -0
- package/dist/components/Notification/lib/types.js +9 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxHeader.js +73 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxTabs.js +60 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationActions.js +64 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationContent.js +183 -0
- package/dist/components/Notification/molecules/index.d.ts +7 -0
- package/dist/components/Notification/molecules/index.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.js +100 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxPanel.js +99 -0
- package/dist/components/Notification/organisms/index.d.ts +3 -0
- package/dist/components/Notification/organisms/index.d.ts.map +1 -0
- package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +27 -26
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/envConfig.d.ts +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +29 -28
- package/dist/helpers/getFileIcons.js +5 -5
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +11 -1
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +1 -0
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDateUtils.d.ts +3 -1
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +23 -18
- package/dist/index.css +1 -1
- package/dist/index.js +595 -588
- package/dist/lang/locales/ui_en.json.js +9 -7
- package/dist/lang/locales/ui_es.json.js +6 -4
- package/dist/lang/locales/ui_ru.json.js +8 -6
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
- package/docs/README.md +499 -499
- package/package.json +81 -79
- package/dist/components/Notification/Notification.js +0 -119
- package/dist/components/Notification/NotificationCard.d.ts +0 -10
- package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
- package/dist/components/Notification/NotificationCard.js +0 -93
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_root_uj82d_1", d = "_sidebar_uj82d_23", t = "_chat_uj82d_45", _ = "_info_uj82d_67", r = "_drawerBody_uj82d_87", s = {
|
|
2
2
|
root: o,
|
|
3
|
-
sidebar:
|
|
3
|
+
sidebar: d,
|
|
4
4
|
chat: t,
|
|
5
5
|
info: _,
|
|
6
6
|
drawerBody: r
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
t as chat,
|
|
10
|
-
|
|
10
|
+
s as default,
|
|
11
11
|
r as drawerBody,
|
|
12
12
|
_ as info,
|
|
13
13
|
o as root,
|
|
14
|
-
|
|
14
|
+
d as sidebar
|
|
15
15
|
};
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
const t = "
|
|
2
|
-
wrapper:
|
|
3
|
-
avatar:
|
|
4
|
-
spacer:
|
|
5
|
-
content:
|
|
6
|
-
attachmentsWrap:
|
|
1
|
+
const a = "_wrapper_rpwzs_1", t = "_avatar_rpwzs_77", r = "_spacer_rpwzs_93", e = "_content_rpwzs_107", s = "_attachmentsWrap_rpwzs_153", _ = "_mediaOnlyMeta_rpwzs_243", n = "_threadSummary_rpwzs_285", o = "_threadSummaryLabel_rpwzs_317", c = "_messageRow_rpwzs_337", p = "_hoverActions_rpwzs_347", m = {
|
|
2
|
+
wrapper: a,
|
|
3
|
+
avatar: t,
|
|
4
|
+
spacer: r,
|
|
5
|
+
content: e,
|
|
6
|
+
attachmentsWrap: s,
|
|
7
7
|
mediaOnlyMeta: _,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
threadSummary: n,
|
|
9
|
+
threadSummaryLabel: o,
|
|
10
|
+
messageRow: c,
|
|
11
|
+
hoverActions: p
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
s as attachmentsWrap,
|
|
15
|
+
t as avatar,
|
|
16
|
+
e as content,
|
|
17
|
+
m as default,
|
|
18
|
+
p as hoverActions,
|
|
17
19
|
_ as mediaOnlyMeta,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
c as messageRow,
|
|
21
|
+
r as spacer,
|
|
22
|
+
n as threadSummary,
|
|
23
|
+
o as threadSummaryLabel,
|
|
24
|
+
a as wrapper
|
|
21
25
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CommentComposerTypes } from '../../CommentComposer/types';
|
|
3
|
+
import { type MessageAuthorBadge } from '../MessageAuthor';
|
|
3
4
|
import { type Reaction } from '../MessageReactions';
|
|
4
5
|
import { type MessageDeliveryStatus } from '../MessageStatus';
|
|
5
6
|
export interface ChatMessageProps {
|
|
@@ -7,6 +8,7 @@ export interface ChatMessageProps {
|
|
|
7
8
|
outgoing?: boolean;
|
|
8
9
|
senderName?: string;
|
|
9
10
|
senderColor?: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
11
|
+
senderBadge?: MessageAuthorBadge;
|
|
10
12
|
avatarName?: string;
|
|
11
13
|
avatarSrc?: string;
|
|
12
14
|
showAvatar?: boolean;
|
|
@@ -22,12 +24,26 @@ export interface ChatMessageProps {
|
|
|
22
24
|
};
|
|
23
25
|
forwardFrom?: string;
|
|
24
26
|
edited?: boolean;
|
|
27
|
+
/** In-bubble thread summary: stacked participant avatars + "N replies". */
|
|
28
|
+
threadSummary?: {
|
|
29
|
+
count: number;
|
|
30
|
+
label: string;
|
|
31
|
+
participants: {
|
|
32
|
+
id?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
avatar?: string | null;
|
|
35
|
+
}[];
|
|
36
|
+
onClick: () => void;
|
|
37
|
+
};
|
|
25
38
|
attachments?: CommentComposerTypes.AnyCommentFile[];
|
|
39
|
+
/** Forwarded to {@link AttachmentsPreview}; `voice` renders audio as a waveform note. */
|
|
40
|
+
audioVariant?: 'voice';
|
|
26
41
|
reactions?: Reaction[];
|
|
27
42
|
onReactionToggle?: (emoji: string) => void;
|
|
28
43
|
groupPosition?: 'single' | 'first' | 'middle' | 'last';
|
|
29
44
|
onReaction?: (emoji: string) => void;
|
|
30
45
|
onReply?: () => void;
|
|
46
|
+
onThread?: () => void;
|
|
31
47
|
onEdit?: () => void;
|
|
32
48
|
onDelete?: () => void;
|
|
33
49
|
onCopy?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/ChatMessage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/ChatMessage/index.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,138 +1,172 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
1
|
+
import { jsxs as l, Fragment as se, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import L, { useMemo as $ } from "react";
|
|
3
|
+
import { Avatar as ie } from "@mantine/core";
|
|
4
|
+
import { AttachmentsPreview as re } from "../../AttachmentsPreview/AttachmentsPreview.js";
|
|
5
|
+
import { UserAvatar as j } from "../../UserAvatar/index.js";
|
|
6
|
+
import { ChatBubble as oe } from "../ChatBubble/index.js";
|
|
7
|
+
import { MessageActions as le } from "../MessageActions/index.js";
|
|
8
|
+
import { MessageAuthor as ce } from "../MessageAuthor/index.js";
|
|
9
|
+
import { MessageForward as ne } from "../MessageForward/index.js";
|
|
10
|
+
import { MessageMeta as de } from "../MessageMeta/index.js";
|
|
11
|
+
import { MessageReactions as me, MAX_MESSAGE_REACTIONS as he } from "../MessageReactions/index.js";
|
|
12
|
+
import { MessageReply as pe } from "../MessageReply/index.js";
|
|
13
|
+
import { MessageStatus as z } from "../MessageStatus/index.js";
|
|
14
|
+
import { getAvatarColor as ve } from "../colors.js";
|
|
14
15
|
import t from "./ChatMessage.module.css.js";
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
children:
|
|
18
|
-
outgoing:
|
|
19
|
-
senderName:
|
|
20
|
-
senderColor:
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
const fe = { cursor: "pointer" }, ge = L.memo(
|
|
17
|
+
L.forwardRef(function({
|
|
18
|
+
children: g,
|
|
19
|
+
outgoing: s,
|
|
20
|
+
senderName: c,
|
|
21
|
+
senderColor: h,
|
|
22
|
+
senderBadge: B,
|
|
23
|
+
avatarName: u,
|
|
24
|
+
avatarSrc: G,
|
|
23
25
|
showAvatar: K,
|
|
24
|
-
timestamp:
|
|
25
|
-
status:
|
|
26
|
-
onRetry:
|
|
27
|
-
retryLabel:
|
|
26
|
+
timestamp: A,
|
|
27
|
+
status: n,
|
|
28
|
+
onRetry: p,
|
|
29
|
+
retryLabel: M,
|
|
28
30
|
replyTo: i,
|
|
29
|
-
forwardFrom:
|
|
30
|
-
edited:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
forwardFrom: b,
|
|
32
|
+
edited: O,
|
|
33
|
+
threadSummary: r,
|
|
34
|
+
attachments: o,
|
|
35
|
+
audioVariant: D,
|
|
36
|
+
reactions: d,
|
|
37
|
+
onReactionToggle: U,
|
|
34
38
|
groupPosition: C = "single",
|
|
35
|
-
onReaction:
|
|
36
|
-
onReply:
|
|
39
|
+
onReaction: N,
|
|
40
|
+
onReply: w,
|
|
41
|
+
onThread: W,
|
|
37
42
|
onEdit: v,
|
|
38
43
|
onDelete: f,
|
|
39
44
|
onCopy: x,
|
|
40
|
-
onForward:
|
|
41
|
-
onPin:
|
|
42
|
-
onContextMenu:
|
|
43
|
-
onAvatarClick:
|
|
44
|
-
fullWidth:
|
|
45
|
-
noBubble:
|
|
46
|
-
mediaOnly:
|
|
47
|
-
hasMedia:
|
|
48
|
-
id:
|
|
49
|
-
className:
|
|
50
|
-
style:
|
|
51
|
-
},
|
|
52
|
-
const
|
|
53
|
-
const
|
|
45
|
+
onForward: k,
|
|
46
|
+
onPin: y,
|
|
47
|
+
onContextMenu: X,
|
|
48
|
+
onAvatarClick: E,
|
|
49
|
+
fullWidth: Y,
|
|
50
|
+
noBubble: q,
|
|
51
|
+
mediaOnly: F,
|
|
52
|
+
hasMedia: I,
|
|
53
|
+
id: H,
|
|
54
|
+
className: R,
|
|
55
|
+
style: J
|
|
56
|
+
}, Q) {
|
|
57
|
+
const V = !s && !!c, Z = !s && K, P = !!(N || w || v || f || x || k || y), T = $(() => {
|
|
58
|
+
const a = ve(h);
|
|
54
59
|
return {
|
|
55
|
-
root: { "--avatar-bg":
|
|
56
|
-
placeholder: { backgroundColor:
|
|
60
|
+
root: { "--avatar-bg": a },
|
|
61
|
+
placeholder: { backgroundColor: a }
|
|
57
62
|
};
|
|
58
|
-
}, [
|
|
59
|
-
() =>
|
|
60
|
-
[
|
|
61
|
-
),
|
|
62
|
-
|
|
63
|
+
}, [h]), S = d && d.length > 0, ee = (d?.length ?? 0) < he, ae = $(
|
|
64
|
+
() => o?.filter((a) => a.isImage).length ?? 0,
|
|
65
|
+
[o]
|
|
66
|
+
), m = A ? /* @__PURE__ */ e(
|
|
67
|
+
de,
|
|
63
68
|
{
|
|
64
|
-
time:
|
|
65
|
-
edited:
|
|
66
|
-
outgoing:
|
|
67
|
-
inReactions:
|
|
68
|
-
children:
|
|
69
|
+
time: A,
|
|
70
|
+
edited: O,
|
|
71
|
+
outgoing: s,
|
|
72
|
+
inReactions: S,
|
|
73
|
+
children: s && n && (n === "error" && p ? /* @__PURE__ */ e(
|
|
69
74
|
"span",
|
|
70
75
|
{
|
|
71
76
|
role: "button",
|
|
72
77
|
tabIndex: 0,
|
|
73
|
-
onClick:
|
|
74
|
-
onKeyDown: (
|
|
75
|
-
(
|
|
78
|
+
onClick: p,
|
|
79
|
+
onKeyDown: (a) => {
|
|
80
|
+
(a.key === "Enter" || a.key === " ") && (a.preventDefault(), p());
|
|
76
81
|
},
|
|
77
|
-
title:
|
|
78
|
-
"aria-label":
|
|
82
|
+
title: M,
|
|
83
|
+
"aria-label": M,
|
|
79
84
|
"data-testid": "message-retry",
|
|
80
85
|
style: { cursor: "pointer", display: "inline-flex" },
|
|
81
|
-
children: /* @__PURE__ */ e(
|
|
86
|
+
children: /* @__PURE__ */ e(z, { status: n })
|
|
82
87
|
}
|
|
83
|
-
) : /* @__PURE__ */ e(
|
|
88
|
+
) : /* @__PURE__ */ e(z, { status: n }))
|
|
84
89
|
}
|
|
85
|
-
) : null,
|
|
86
|
-
|
|
90
|
+
) : null, _ = /* @__PURE__ */ l(se, { children: [
|
|
91
|
+
V && /* @__PURE__ */ e(
|
|
92
|
+
ce,
|
|
93
|
+
{
|
|
94
|
+
name: c,
|
|
95
|
+
color: h,
|
|
96
|
+
badge: B
|
|
97
|
+
}
|
|
98
|
+
),
|
|
87
99
|
i && /* @__PURE__ */ e(
|
|
88
|
-
|
|
100
|
+
pe,
|
|
89
101
|
{
|
|
90
102
|
title: i.senderName,
|
|
91
103
|
subtitle: i.text,
|
|
92
104
|
color: i.color,
|
|
93
|
-
outgoing:
|
|
105
|
+
outgoing: s,
|
|
94
106
|
onClick: i.onClick
|
|
95
107
|
}
|
|
96
108
|
),
|
|
97
|
-
|
|
98
|
-
|
|
109
|
+
b && /* @__PURE__ */ e(ne, { from: b, outgoing: s }),
|
|
110
|
+
F ? /* @__PURE__ */ l(
|
|
99
111
|
"div",
|
|
100
112
|
{
|
|
101
113
|
className: t.content,
|
|
102
114
|
style: { position: "relative" },
|
|
103
115
|
"data-testid": "chat-message-content",
|
|
104
|
-
"data-has-media":
|
|
116
|
+
"data-has-media": I || void 0,
|
|
105
117
|
"data-media-only": !0,
|
|
106
118
|
children: [
|
|
107
|
-
|
|
108
|
-
|
|
119
|
+
g,
|
|
120
|
+
m && /* @__PURE__ */ e("div", { className: t.mediaOnlyMeta, children: m })
|
|
109
121
|
]
|
|
110
122
|
}
|
|
111
|
-
) : /* @__PURE__ */
|
|
123
|
+
) : /* @__PURE__ */ l(
|
|
112
124
|
"div",
|
|
113
125
|
{
|
|
114
126
|
className: t.content,
|
|
115
127
|
"data-testid": "chat-message-content",
|
|
116
|
-
"data-has-media":
|
|
117
|
-
"data-single-image":
|
|
128
|
+
"data-has-media": I || void 0,
|
|
129
|
+
"data-single-image": ae === 1 || void 0,
|
|
118
130
|
children: [
|
|
119
|
-
|
|
120
|
-
|
|
131
|
+
o && o.length > 0 && /* @__PURE__ */ e("div", { className: t.attachmentsWrap, children: /* @__PURE__ */ e(
|
|
132
|
+
re,
|
|
121
133
|
{
|
|
122
|
-
files:
|
|
134
|
+
files: o,
|
|
123
135
|
mode: "view",
|
|
136
|
+
audioVariant: D,
|
|
124
137
|
parentIsExisting: !0
|
|
125
138
|
}
|
|
126
139
|
) }),
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
140
|
+
g,
|
|
141
|
+
S ? /* @__PURE__ */ e(
|
|
142
|
+
me,
|
|
143
|
+
{
|
|
144
|
+
reactions: d,
|
|
145
|
+
onToggle: U,
|
|
146
|
+
meta: m
|
|
147
|
+
}
|
|
148
|
+
) : m,
|
|
149
|
+
r && r.count > 0 && /* @__PURE__ */ l(
|
|
150
|
+
"button",
|
|
130
151
|
{
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
152
|
+
type: "button",
|
|
153
|
+
className: t.threadSummary,
|
|
154
|
+
onClick: r.onClick,
|
|
155
|
+
"data-cy": "thread-open",
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ e(ie.Group, { spacing: 6, children: r.participants.slice(0, 3).map((a, te) => /* @__PURE__ */ e(
|
|
158
|
+
j,
|
|
159
|
+
{
|
|
160
|
+
user: { id: a.id, name: a.name, avatar: a.avatar },
|
|
161
|
+
size: 18,
|
|
162
|
+
radius: "xl"
|
|
163
|
+
},
|
|
164
|
+
a.id ?? a.name ?? te
|
|
165
|
+
)) }),
|
|
166
|
+
/* @__PURE__ */ e("span", { className: t.threadSummaryLabel, children: r.label })
|
|
167
|
+
]
|
|
134
168
|
}
|
|
135
|
-
)
|
|
169
|
+
)
|
|
136
170
|
]
|
|
137
171
|
}
|
|
138
172
|
)
|
|
@@ -140,55 +174,56 @@ const ce = { cursor: "pointer" }, de = _.memo(
|
|
|
140
174
|
return /* @__PURE__ */ e(
|
|
141
175
|
"div",
|
|
142
176
|
{
|
|
143
|
-
ref:
|
|
144
|
-
className: `${t.messageRow}${
|
|
145
|
-
"data-outgoing":
|
|
146
|
-
"data-message-id":
|
|
147
|
-
onContextMenu:
|
|
148
|
-
style:
|
|
149
|
-
children: /* @__PURE__ */
|
|
177
|
+
ref: Q,
|
|
178
|
+
className: `${t.messageRow}${R ? ` ${R}` : ""}`,
|
|
179
|
+
"data-outgoing": s || void 0,
|
|
180
|
+
"data-message-id": H,
|
|
181
|
+
onContextMenu: X,
|
|
182
|
+
style: J,
|
|
183
|
+
children: /* @__PURE__ */ l(
|
|
150
184
|
"div",
|
|
151
185
|
{
|
|
152
186
|
className: t.wrapper,
|
|
153
|
-
"data-outgoing":
|
|
187
|
+
"data-outgoing": s || void 0,
|
|
154
188
|
"data-group-position": C,
|
|
155
189
|
children: [
|
|
156
|
-
|
|
157
|
-
|
|
190
|
+
Z ? /* @__PURE__ */ e("div", { className: t.avatar, children: /* @__PURE__ */ e(
|
|
191
|
+
j,
|
|
158
192
|
{
|
|
159
193
|
user: {
|
|
160
|
-
id:
|
|
161
|
-
name:
|
|
162
|
-
avatar:
|
|
194
|
+
id: u || c || "",
|
|
195
|
+
name: u || c,
|
|
196
|
+
avatar: G
|
|
163
197
|
},
|
|
164
198
|
size: 33,
|
|
165
199
|
radius: "xl",
|
|
166
|
-
onClick:
|
|
167
|
-
style:
|
|
168
|
-
styles:
|
|
200
|
+
onClick: E,
|
|
201
|
+
style: E ? fe : void 0,
|
|
202
|
+
styles: T
|
|
169
203
|
}
|
|
170
|
-
) }) : !
|
|
171
|
-
|
|
172
|
-
|
|
204
|
+
) }) : !s && /* @__PURE__ */ e("div", { className: t.spacer }),
|
|
205
|
+
q ? _ : /* @__PURE__ */ e(
|
|
206
|
+
oe,
|
|
173
207
|
{
|
|
174
|
-
outgoing:
|
|
175
|
-
fullWidth:
|
|
208
|
+
outgoing: s,
|
|
209
|
+
fullWidth: Y,
|
|
176
210
|
groupPosition: C,
|
|
177
|
-
children:
|
|
211
|
+
children: _
|
|
178
212
|
}
|
|
179
213
|
),
|
|
180
|
-
|
|
181
|
-
|
|
214
|
+
P && /* @__PURE__ */ e(
|
|
215
|
+
le,
|
|
182
216
|
{
|
|
183
217
|
className: t.hoverActions,
|
|
184
|
-
onReaction:
|
|
185
|
-
canAddReaction:
|
|
186
|
-
onReply:
|
|
218
|
+
onReaction: N,
|
|
219
|
+
canAddReaction: ee,
|
|
220
|
+
onReply: w,
|
|
221
|
+
onThread: W,
|
|
187
222
|
onEdit: v,
|
|
188
223
|
onDelete: f,
|
|
189
224
|
onCopy: x,
|
|
190
|
-
onForward:
|
|
191
|
-
onPin:
|
|
225
|
+
onForward: k,
|
|
226
|
+
onPin: y,
|
|
192
227
|
showEdit: !!v,
|
|
193
228
|
showDelete: !!f
|
|
194
229
|
}
|
|
@@ -200,7 +235,7 @@ const ce = { cursor: "pointer" }, de = _.memo(
|
|
|
200
235
|
);
|
|
201
236
|
})
|
|
202
237
|
);
|
|
203
|
-
|
|
238
|
+
ge.displayName = "ChatMessage";
|
|
204
239
|
export {
|
|
205
|
-
|
|
240
|
+
ge as ChatMessage
|
|
206
241
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const t = "
|
|
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
2
|
root: t,
|
|
3
3
|
dialogContent: o,
|
|
4
4
|
dialogContentDraft: n,
|
|
5
5
|
dialogContentSender: e,
|
|
6
6
|
titleRow: _,
|
|
7
|
-
textContent:
|
|
7
|
+
textContent: a
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
l as default,
|
|
11
11
|
o as dialogContent,
|
|
12
12
|
n as dialogContentDraft,
|
|
13
13
|
e as dialogContentSender,
|
|
14
14
|
t as root,
|
|
15
|
-
|
|
15
|
+
a as textContent,
|
|
16
16
|
_ as titleRow
|
|
17
17
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_root_pcicv_1", t = "_downloadButton_pcicv_39", e = "_fileName_pcicv_59", c = "_fileSize_pcicv_75", i = {
|
|
2
2
|
root: o,
|
|
3
3
|
downloadButton: t,
|
|
4
4
|
fileName: e,
|
|
5
|
-
fileSize:
|
|
5
|
+
fileSize: c
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
i as default,
|
|
9
9
|
t as downloadButton,
|
|
10
10
|
e as fileName,
|
|
11
|
-
|
|
11
|
+
c as fileSize,
|
|
12
12
|
o as root
|
|
13
13
|
};
|
|
@@ -9,6 +9,8 @@ export interface MessageActionsProps {
|
|
|
9
9
|
*/
|
|
10
10
|
canAddReaction?: boolean;
|
|
11
11
|
onReply?: () => void;
|
|
12
|
+
/** Open this message as a thread (separate from inline reply). */
|
|
13
|
+
onThread?: () => void;
|
|
12
14
|
onEdit?: () => void;
|
|
13
15
|
onDelete?: () => void;
|
|
14
16
|
onCopy?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageActions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAwBxC,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,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,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,iDA6MzB,CAAC"}
|