@layers-app/shared 0.4.5 → 0.4.7
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/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.module.css.js +22 -12
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
- package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +237 -95
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1111 -131
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -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/AttachmentsGalleryContext.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +22 -17
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +15 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +36 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +14 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +31 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +172 -120
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +18 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +35 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +33 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +70 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +32 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -32
- package/dist/components/Chat/ChatInput/index.d.ts +29 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +178 -118
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +2 -2
- package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +136 -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 +3 -3
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +40 -36
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +10 -6
- package/dist/components/Chat/MessageList/index.d.ts +30 -3
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +154 -66
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageMeta/index.js +21 -19
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +8 -8
- package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageReactions/index.js +60 -28
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -6
- package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageStatus/index.js +49 -34
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +81 -76
- package/dist/components/ColorPicker/ColorPicker.module.css.js +24 -24
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +43 -41
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +52 -50
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- 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/EmojiPicker/EmojiPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +80 -32
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- 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/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
- 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/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewToolbar/utils.d.ts +12 -0
- package/dist/components/NewToolbar/utils.d.ts.map +1 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnboardingTour/index.d.ts +1 -1
- package/dist/components/OnboardingTour/index.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
- package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
- package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
- 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/VideoPlayer/VideoPlayer.d.ts +24 -0
- package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/VideoPlayer.js +727 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +8 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/MobileDrawer/index.js +67 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +7 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/SelectListOptionButton.js +44 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +9 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/StoryboardPreview.js +38 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +33 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoCustomControls.js +601 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoIcons.js +145 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts +27 -0
- package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMenu.js +77 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +17 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +289 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +55 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSelect.js +168 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +12 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +48 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +25 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +384 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +21 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +264 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +39 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +360 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +16 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +4 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +14 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +22 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +211 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +11 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +41 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +10 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +69 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +21 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/hooks/useStoryboard.js +91 -0
- package/dist/components/VideoPlayer/index.d.ts +11 -0
- package/dist/components/VideoPlayer/index.d.ts.map +1 -0
- package/dist/components/VideoPlayer/types.d.ts +101 -0
- package/dist/components/VideoPlayer/types.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts +8 -0
- package/dist/components/VideoPlayer/utils/chapters.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/chapters.js +38 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts +5 -0
- package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/storyboard.js +47 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts +18 -0
- package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/subtitles.js +23 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts +3 -0
- package/dist/components/VideoPlayer/utils/touch.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/touch.js +5 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +10 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +22 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts +69 -0
- package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +1 -0
- package/dist/components/VideoPlayer/utils/videoSettings.js +90 -0
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +29 -29
- package/dist/config/envConfig.d.ts +4 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +9 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +96 -58
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -23
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +582 -558
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts +19 -0
- package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +1 -0
- package/dist/videoSettings/createVideoSettingsDataSource.js +127 -0
- package/docs/README.md +499 -499
- package/package.json +79 -78
|
@@ -1,71 +1,159 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import { ArrowDown01Icon as
|
|
4
|
-
import { HugeiconsIcon as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
1
|
+
import { jsxs as T, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as D, useRef as i, useState as P, useEffect as u, useCallback as W, useImperativeHandle as k } from "react";
|
|
3
|
+
import { ArrowDown01Icon as C } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as G } from "@hugeicons/react";
|
|
5
|
+
import { ScrollArea as J, ActionIcon as K } from "@mantine/core";
|
|
6
|
+
import s from "./MessageList.module.css.js";
|
|
7
|
+
const Q = D(
|
|
8
|
+
function({
|
|
9
|
+
children: L,
|
|
10
|
+
className: y,
|
|
11
|
+
style: E,
|
|
12
|
+
stickToBottom: f,
|
|
13
|
+
unreadCount: v = 0,
|
|
14
|
+
onStickChange: h,
|
|
15
|
+
resetKey: F,
|
|
16
|
+
onReachTop: g,
|
|
17
|
+
floatingTopAction: N,
|
|
18
|
+
bottomOffset: M = 0
|
|
19
|
+
}, $) {
|
|
20
|
+
const r = i(null), B = i(null), n = i(!0), w = i(0), [A, q] = P(!1), H = i(h), b = i(g), x = i(!1);
|
|
21
|
+
u(() => {
|
|
22
|
+
H.current = h;
|
|
23
|
+
}, [h]), u(() => {
|
|
24
|
+
b.current = g;
|
|
25
|
+
}, [g]), u(() => {
|
|
26
|
+
const e = r.current, o = B.current;
|
|
27
|
+
if (!e || !o) return;
|
|
28
|
+
const t = new IntersectionObserver(
|
|
29
|
+
(m) => {
|
|
30
|
+
if (!m[0]?.isIntersecting || x.current || !b.current || n.current) return;
|
|
31
|
+
x.current = !0;
|
|
32
|
+
const p = e.scrollHeight, c = e.scrollTop;
|
|
33
|
+
Promise.resolve(b.current()).then(() => {
|
|
34
|
+
requestAnimationFrame(() => {
|
|
35
|
+
const a = r.current;
|
|
36
|
+
if (!a) return;
|
|
37
|
+
const d = a.scrollHeight - p;
|
|
38
|
+
d > 0 && (a.scrollTop = c + d);
|
|
39
|
+
});
|
|
40
|
+
}).finally(() => {
|
|
41
|
+
x.current = !1;
|
|
42
|
+
});
|
|
44
43
|
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
{ root: e, rootMargin: "300px 0px 0px 0px" }
|
|
45
|
+
);
|
|
46
|
+
return t.observe(o), () => t.disconnect();
|
|
47
|
+
}, []);
|
|
48
|
+
const z = W(() => {
|
|
49
|
+
r.current && r.current.scrollTo({
|
|
50
|
+
top: r.current.scrollHeight,
|
|
51
|
+
behavior: "smooth"
|
|
52
|
+
});
|
|
53
|
+
}, []);
|
|
54
|
+
k(
|
|
55
|
+
$,
|
|
56
|
+
() => ({
|
|
57
|
+
scrollToBottom: () => {
|
|
58
|
+
const e = r.current;
|
|
59
|
+
if (!e) return;
|
|
60
|
+
n.current = !0, H.current?.(!0), e.scrollTop = e.scrollHeight;
|
|
61
|
+
const o = () => {
|
|
62
|
+
const t = r.current;
|
|
63
|
+
t && (t.scrollTop = t.scrollHeight, n.current = !0);
|
|
64
|
+
};
|
|
65
|
+
requestAnimationFrame(() => {
|
|
66
|
+
o(), requestAnimationFrame(o);
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}),
|
|
70
|
+
[]
|
|
71
|
+
), u(() => {
|
|
72
|
+
!f || !r.current || (n.current = !0, w.current = r.current.scrollHeight, r.current.scrollTop = r.current.scrollHeight);
|
|
73
|
+
}, [f, F]), u(() => {
|
|
74
|
+
const e = r.current;
|
|
75
|
+
if (!f || !e) return;
|
|
76
|
+
const o = new ResizeObserver(() => {
|
|
77
|
+
const c = e.scrollHeight;
|
|
78
|
+
c !== w.current && n.current && (e.scrollTop = c), w.current = c;
|
|
79
|
+
}), t = e.firstElementChild;
|
|
80
|
+
t && o.observe(t);
|
|
81
|
+
let m = !1;
|
|
82
|
+
const p = () => {
|
|
83
|
+
const { scrollTop: c, scrollHeight: a, clientHeight: d } = e, I = a - c - d, S = I < 40;
|
|
84
|
+
S !== n.current && (n.current = S, H.current?.(S));
|
|
85
|
+
const R = I > 200;
|
|
86
|
+
R !== m && (m = R, q(R));
|
|
87
|
+
};
|
|
88
|
+
return e.addEventListener("scroll", p, { passive: !0 }), () => {
|
|
89
|
+
o.disconnect(), e.removeEventListener("scroll", p);
|
|
90
|
+
};
|
|
91
|
+
}, [f]);
|
|
92
|
+
const O = v > 999 ? "999+" : v, j = v > 0;
|
|
93
|
+
return /* @__PURE__ */ T(
|
|
94
|
+
"div",
|
|
53
95
|
{
|
|
54
|
-
className:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
96
|
+
className: s.container,
|
|
97
|
+
style: { "--ml-bottom-offset": `${M}px` },
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ l(
|
|
100
|
+
J,
|
|
101
|
+
{
|
|
102
|
+
className: `${s.root}${y ? ` ${y}` : ""}`,
|
|
103
|
+
style: E,
|
|
104
|
+
type: "auto",
|
|
105
|
+
scrollbars: "y",
|
|
106
|
+
viewportRef: r,
|
|
107
|
+
"data-testid": "message-list",
|
|
108
|
+
styles: {
|
|
109
|
+
content: {
|
|
110
|
+
display: "flex",
|
|
111
|
+
flexDirection: "column",
|
|
112
|
+
minHeight: "100%"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
children: /* @__PURE__ */ T("div", { className: s.wrapper, children: [
|
|
116
|
+
/* @__PURE__ */ l(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
ref: B,
|
|
120
|
+
className: s.top,
|
|
121
|
+
"data-testid": "message-list-top"
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
/* @__PURE__ */ l("div", { className: s.items, "data-testid": "message-list-items", children: L })
|
|
125
|
+
] })
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
A && /* @__PURE__ */ T("div", { className: s.scrollToBottomWrap, children: [
|
|
129
|
+
/* @__PURE__ */ l(
|
|
130
|
+
K,
|
|
131
|
+
{
|
|
132
|
+
variant: "default",
|
|
133
|
+
radius: "xl",
|
|
134
|
+
size: 34,
|
|
135
|
+
onClick: z,
|
|
136
|
+
"aria-label": "Scroll to bottom",
|
|
137
|
+
"data-testid": "scroll-to-bottom",
|
|
138
|
+
children: /* @__PURE__ */ l(G, { icon: C, size: 18 })
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
j && /* @__PURE__ */ l("span", { className: s.scrollToBottomBadge, children: O })
|
|
142
|
+
] }),
|
|
143
|
+
N && /* @__PURE__ */ l(
|
|
144
|
+
"div",
|
|
145
|
+
{
|
|
146
|
+
className: s.floatingTopAction,
|
|
147
|
+
"data-raised": A || void 0,
|
|
148
|
+
children: N
|
|
149
|
+
}
|
|
150
|
+
)
|
|
151
|
+
]
|
|
64
152
|
}
|
|
65
|
-
)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
Q.displayName = "MessageList";
|
|
69
157
|
export {
|
|
70
|
-
|
|
158
|
+
Q as MessageList
|
|
71
159
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_root_1bzsv_1", e = "_time_1bzsv_31", s = "_edited_1bzsv_35", o = "_views_1bzsv_39", _ = {
|
|
2
2
|
root: t,
|
|
3
3
|
time: e,
|
|
4
|
-
edited:
|
|
4
|
+
edited: s,
|
|
5
5
|
views: o
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
8
|
_ as default,
|
|
9
|
-
|
|
9
|
+
s as edited,
|
|
10
10
|
t as root,
|
|
11
11
|
e as time,
|
|
12
12
|
o as views
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageMeta/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageMeta/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,MAAM,EACN,KAAK,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,gBAAgB,2CAgBlB;yBAzBe,WAAW"}
|
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as p } from "react-i18next";
|
|
2
3
|
import e from "./MessageMeta.module.css.js";
|
|
3
|
-
function
|
|
4
|
+
function g({
|
|
4
5
|
time: t,
|
|
5
6
|
edited: i,
|
|
6
|
-
views:
|
|
7
|
-
outgoing:
|
|
8
|
-
inReactions:
|
|
9
|
-
children:
|
|
10
|
-
className:
|
|
11
|
-
style:
|
|
7
|
+
views: a,
|
|
8
|
+
outgoing: o,
|
|
9
|
+
inReactions: d,
|
|
10
|
+
children: m,
|
|
11
|
+
className: n,
|
|
12
|
+
style: r
|
|
12
13
|
}) {
|
|
13
|
-
|
|
14
|
+
const { t: c } = p("meet");
|
|
15
|
+
return /* @__PURE__ */ l(
|
|
14
16
|
"div",
|
|
15
17
|
{
|
|
16
|
-
className: `${e.root} ${
|
|
17
|
-
style:
|
|
18
|
-
"data-outgoing":
|
|
19
|
-
"data-in-reactions":
|
|
18
|
+
className: `${e.root} ${n || ""}`,
|
|
19
|
+
style: r,
|
|
20
|
+
"data-outgoing": o || void 0,
|
|
21
|
+
"data-in-reactions": d || void 0,
|
|
20
22
|
"data-testid": "message-meta",
|
|
21
23
|
children: [
|
|
22
|
-
i && /* @__PURE__ */
|
|
23
|
-
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
i && /* @__PURE__ */ s("span", { className: e.edited, children: c("message.edited") }),
|
|
25
|
+
a !== void 0 && /* @__PURE__ */ s("span", { className: e.views, children: a }),
|
|
26
|
+
/* @__PURE__ */ s("span", { className: e.time, children: t }),
|
|
27
|
+
m
|
|
26
28
|
]
|
|
27
29
|
}
|
|
28
30
|
);
|
|
29
31
|
}
|
|
30
|
-
|
|
32
|
+
g.displayName = "MessageMeta";
|
|
31
33
|
export {
|
|
32
|
-
|
|
34
|
+
g as MessageMeta
|
|
33
35
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_row_1ge4m_1", t = "_pill_1ge4m_10", _ = "_emoji_1ge4m_50", e = "_count_1ge4m_71", m = "_meta_1ge4m_93", c = {
|
|
2
2
|
row: o,
|
|
3
3
|
pill: t,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
meta:
|
|
4
|
+
emoji: _,
|
|
5
|
+
count: e,
|
|
6
|
+
meta: m
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
e as count,
|
|
10
|
+
c as default,
|
|
11
|
+
_ as emoji,
|
|
12
|
+
m as meta,
|
|
13
13
|
t as pill,
|
|
14
14
|
o as row
|
|
15
15
|
};
|
|
@@ -1,8 +1,25 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Max number of *distinct* emoji a single message can carry. Once reached, the
|
|
4
|
+
* add-reaction picker is hidden (you can still join one of the existing ones by
|
|
5
|
+
* clicking its pill). Mirrors the server cap so the UI and backend agree.
|
|
6
|
+
*/
|
|
7
|
+
export declare const MAX_MESSAGE_REACTIONS = 5;
|
|
8
|
+
export interface ReactionReactor {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
avatarUrl?: string;
|
|
12
|
+
}
|
|
2
13
|
export interface Reaction {
|
|
3
14
|
emoji: string;
|
|
4
15
|
count: number;
|
|
5
16
|
active?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Who left this reaction (resolved to name + avatar by the host). Drives the
|
|
19
|
+
* who-reacted hover popover. Optional — when absent, the pill is a plain
|
|
20
|
+
* toggle with no popover.
|
|
21
|
+
*/
|
|
22
|
+
reactors?: ReactionReactor[];
|
|
6
23
|
}
|
|
7
24
|
export interface MessageReactionsProps {
|
|
8
25
|
reactions: Reaction[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageReactions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageReactions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,gBAAgB,mDA0E3B,CAAC"}
|
|
@@ -1,40 +1,72 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
import { HoverCard as n, ScrollArea as h, Stack as u, Group as f, Text as g } from "@mantine/core";
|
|
4
|
+
import { UserAvatar as v } from "../../UserAvatar/index.js";
|
|
5
|
+
import t from "./MessageReactions.module.css.js";
|
|
6
|
+
const R = 5, w = m.memo(function({
|
|
7
|
+
reactions: s,
|
|
8
|
+
onToggle: d,
|
|
9
|
+
meta: o,
|
|
10
|
+
className: l,
|
|
11
|
+
style: p
|
|
10
12
|
}) {
|
|
11
|
-
return !
|
|
13
|
+
return !s.length && !o ? null : /* @__PURE__ */ r(
|
|
12
14
|
"div",
|
|
13
15
|
{
|
|
14
|
-
className: `${
|
|
15
|
-
style:
|
|
16
|
+
className: `${t.row}${l ? ` ${l}` : ""}`,
|
|
17
|
+
style: p,
|
|
16
18
|
"data-testid": "message-reactions",
|
|
17
19
|
children: [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
s.map((e) => {
|
|
21
|
+
const c = /* @__PURE__ */ r(
|
|
22
|
+
"button",
|
|
23
|
+
{
|
|
24
|
+
className: t.pill,
|
|
25
|
+
"data-active": e.active || void 0,
|
|
26
|
+
onClick: () => d?.(e.emoji),
|
|
27
|
+
type: "button",
|
|
28
|
+
"aria-pressed": e.active ?? !1,
|
|
29
|
+
"aria-label": `${e.emoji} ${e.count}`,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ a("span", { className: t.emoji, children: e.emoji }, e.count),
|
|
32
|
+
/* @__PURE__ */ a("span", { className: t.count, children: e.count })
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
return e.reactors?.length ? /* @__PURE__ */ r(
|
|
37
|
+
n,
|
|
38
|
+
{
|
|
39
|
+
withArrow: !0,
|
|
40
|
+
openDelay: 250,
|
|
41
|
+
closeDelay: 100,
|
|
42
|
+
position: "top",
|
|
43
|
+
shadow: "md",
|
|
44
|
+
withinPortal: !0,
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ a(n.Target, { children: c }),
|
|
47
|
+
/* @__PURE__ */ a(n.Dropdown, { p: "xs", children: /* @__PURE__ */ a(h.Autosize, { mah: 220, type: "auto", children: /* @__PURE__ */ a(u, { gap: 6, pr: 6, children: e.reactors.map((i) => /* @__PURE__ */ r(f, { gap: 8, wrap: "nowrap", miw: 0, children: [
|
|
48
|
+
/* @__PURE__ */ a(
|
|
49
|
+
v,
|
|
50
|
+
{
|
|
51
|
+
user: { id: i.id, name: i.name, avatarUrl: i.avatarUrl },
|
|
52
|
+
size: 20,
|
|
53
|
+
radius: "xl"
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ a(g, { size: "sm", lineClamp: 1, maw: 200, children: i.name })
|
|
57
|
+
] }, i.id)) }) }) })
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
e.emoji
|
|
61
|
+
) : /* @__PURE__ */ a(m.Fragment, { children: c }, e.emoji);
|
|
62
|
+
}),
|
|
63
|
+
o && /* @__PURE__ */ a("div", { className: t.meta, children: o })
|
|
33
64
|
]
|
|
34
65
|
}
|
|
35
66
|
);
|
|
36
67
|
});
|
|
37
|
-
|
|
68
|
+
w.displayName = "MessageReactions";
|
|
38
69
|
export {
|
|
39
|
-
|
|
70
|
+
R as MAX_MESSAGE_REACTIONS,
|
|
71
|
+
w as MessageReactions
|
|
40
72
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_root_z3fvn_11", o = "_border_z3fvn_8", n = "_content_z3fvn_34", e = "_title_z3fvn_43", _ = "_subtitle_z3fvn_55", s = {
|
|
2
2
|
root: t,
|
|
3
3
|
border: o,
|
|
4
|
-
content:
|
|
5
|
-
title:
|
|
6
|
-
subtitle:
|
|
4
|
+
content: n,
|
|
5
|
+
title: e,
|
|
6
|
+
subtitle: _
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
9
|
o as border,
|
|
10
|
-
|
|
10
|
+
n as content,
|
|
11
11
|
s as default,
|
|
12
12
|
t as root,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
_ as subtitle,
|
|
14
|
+
e as title
|
|
15
15
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
const o = "
|
|
2
|
-
root:
|
|
3
|
-
icon:
|
|
1
|
+
const l = "_root_llell_1", o = "_icon_llell_11", n = "_animateIn_llell_16", t = {
|
|
2
|
+
root: l,
|
|
3
|
+
icon: o,
|
|
4
|
+
animateIn: n
|
|
4
5
|
};
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
-
t as
|
|
8
|
-
o as
|
|
7
|
+
n as animateIn,
|
|
8
|
+
t as default,
|
|
9
|
+
o as icon,
|
|
10
|
+
l as root
|
|
9
11
|
};
|
|
@@ -7,7 +7,7 @@ export interface MessageStatusProps {
|
|
|
7
7
|
/** Custom style */
|
|
8
8
|
style?: React.CSSProperties;
|
|
9
9
|
}
|
|
10
|
-
export declare function MessageStatus({ status, className, style }: MessageStatusProps): import("react/jsx-runtime").JSX.Element
|
|
10
|
+
export declare function MessageStatus({ status, className, style }: MessageStatusProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare namespace MessageStatus {
|
|
12
12
|
var displayName: string;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageStatus/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/MessageStatus/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC;AAIxF,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,qBAAqB,CAAC;IAC9B,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AA+CD,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,kBAAkB,2CAsC7E;yBAtCe,aAAa"}
|
|
@@ -1,53 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import r from "react";
|
|
2
3
|
import i from "./MessageStatus.module.css.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
4
|
+
const v = 500;
|
|
5
|
+
function y(e) {
|
|
6
|
+
return /* @__PURE__ */ l("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: 1.5, ...e, children: [
|
|
7
|
+
/* @__PURE__ */ n("circle", { cx: "8", cy: "8", r: "6" }),
|
|
8
|
+
/* @__PURE__ */ n("polyline", { points: "8,4 8,8" }),
|
|
9
|
+
/* @__PURE__ */ n("polyline", { points: "8,8 10.5,10" })
|
|
8
10
|
] });
|
|
9
11
|
}
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
+
function x(e) {
|
|
13
|
+
return /* @__PURE__ */ n("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: 1.5, ...e, children: /* @__PURE__ */ n("polyline", { points: "3,8.5 6.5,12 13,4" }) });
|
|
12
14
|
}
|
|
13
|
-
function
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
15
|
+
function u(e) {
|
|
16
|
+
return /* @__PURE__ */ l("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: 1.5, ...e, children: [
|
|
17
|
+
/* @__PURE__ */ n("polyline", { points: "1.5,8.5 5,12 11.5,4" }),
|
|
18
|
+
/* @__PURE__ */ n("polyline", { points: "5.5,8.5 9,12 15.5,4" })
|
|
17
19
|
] });
|
|
18
20
|
}
|
|
19
|
-
function
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
21
|
+
function S(e) {
|
|
22
|
+
return /* @__PURE__ */ l("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: 1.5, ...e, children: [
|
|
23
|
+
/* @__PURE__ */ n("circle", { cx: "8", cy: "8", r: "6" }),
|
|
24
|
+
/* @__PURE__ */ n("line", { x1: "8", y1: "4.5", x2: "8", y2: "9" }),
|
|
25
|
+
/* @__PURE__ */ n("circle", { cx: "8", cy: "11.5", r: "0.5", fill: "currentColor", stroke: "none" })
|
|
24
26
|
] });
|
|
25
27
|
}
|
|
26
|
-
const
|
|
27
|
-
sending:
|
|
28
|
-
sent:
|
|
29
|
-
delivered:
|
|
30
|
-
read:
|
|
31
|
-
error:
|
|
28
|
+
const h = {
|
|
29
|
+
sending: y,
|
|
30
|
+
sent: x,
|
|
31
|
+
delivered: u,
|
|
32
|
+
read: u,
|
|
33
|
+
error: S
|
|
32
34
|
};
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
function C({ status: e, className: d, style: a }) {
|
|
36
|
+
const [f, c] = r.useState(!1);
|
|
37
|
+
r.useEffect(() => {
|
|
38
|
+
if (e !== "sending") {
|
|
39
|
+
c(!1);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const g = setTimeout(() => c(!0), v);
|
|
43
|
+
return () => clearTimeout(g);
|
|
44
|
+
}, [e]);
|
|
45
|
+
const o = e === "sending" && !f ? null : e, s = o ? h[o] : null, p = o === "error" ? "var(--mantine-color-red-6)" : "currentColor", t = r.useRef(null), m = t.current !== null && t.current !== e;
|
|
46
|
+
return r.useEffect(() => {
|
|
47
|
+
t.current = e;
|
|
48
|
+
}, [e]), /* @__PURE__ */ n(
|
|
39
49
|
"span",
|
|
40
50
|
{
|
|
41
|
-
className: `${i.root} ${
|
|
42
|
-
style: { ...
|
|
51
|
+
className: `${i.root} ${d || ""}`,
|
|
52
|
+
style: { ...a, color: p },
|
|
43
53
|
"data-testid": "message-status",
|
|
44
54
|
"data-status": e,
|
|
45
55
|
"aria-label": e,
|
|
46
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: s && /* @__PURE__ */ n(
|
|
57
|
+
s,
|
|
58
|
+
{
|
|
59
|
+
className: `${i.icon}${m ? ` ${i.animateIn}` : ""}`
|
|
60
|
+
}
|
|
61
|
+
)
|
|
47
62
|
}
|
|
48
63
|
);
|
|
49
64
|
}
|
|
50
|
-
|
|
65
|
+
C.displayName = "MessageStatus";
|
|
51
66
|
export {
|
|
52
|
-
|
|
67
|
+
C as MessageStatus
|
|
53
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircleColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/CircleColorPicker/CircleColorPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"CircleColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/CircleColorPicker/CircleColorPicker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAIL,gBAAgB,EAIhB,SAAS,EAOV,MAAM,eAAe,CAAC;AAevB,eAAO,MAAM,iBAAiB,GAAI,mDAK/B;IACD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC,4CAiFA,CAAC"}
|