@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,9 +1,161 @@
|
|
|
1
|
-
const t = "
|
|
2
|
-
dot:
|
|
3
|
-
line:
|
|
1
|
+
const o = "_dot_15zs5_1", e = "_line_15zs5_9", t = "_desktopFlowModal_15zs5_16", s = "_desktopFlowModalHeader_15zs5_25", n = "_desktopFlowModalHeaderCompact_15zs5_30", r = "_desktopFlowModalHeaderFloating_15zs5_36", l = "_desktopFlowModalTitle_15zs5_49", d = "_desktopFlowModalBody_15zs5_56", a = "_desktopFlowModalBodyFloating_15zs5_60", p = "_reportProblemModal_15zs5_64", _ = "_diagnosticsConsentModal_15zs5_99", c = "_diagnosticsProgressModal_15zs5_108", i = "_diagnosticsResultModal_15zs5_118", k = "_desktopUpdateCheckingModal_15zs5_127", w = "_desktopUpdateResultModal_15zs5_137", P = "_desktopUpdateAvailableModal_15zs5_147", M = "_desktopUpdateDownloadModal_15zs5_157", m = "_desktopUpdateCheckingBody_15zs5_179", z = "_desktopUpdateResultBody_15zs5_180", b = "_desktopUpdateDownloadBody_15zs5_181", g = "_desktopUpdateCheckingStack_15zs5_185", U = "_desktopUpdateSpinner_15zs5_191", u = "_desktopUpdateResultIcon_15zs5_215", f = "_desktopUpdateSuccessIcon_15zs5_223", B = "_desktopUpdateErrorIcon_15zs5_227", D = "_desktopUpdateDownloadStack_15zs5_231", F = "_desktopUpdateDownloadDescription_15zs5_240", h = "_desktopUpdateDownloadAnimation_15zs5_250", C = "_desktopUpdateDownloadMeter_15zs5_257", R = "_desktopUpdateDownloadHeader_15zs5_263", y = "_desktopUpdateRemaining_15zs5_269", I = "_desktopUpdateRemainingLabel_15zs5_276", S = "_desktopUpdateRemainingValue_15zs5_280", H = "_desktopUpdateDownloadHint_15zs5_284", O = "_diagnosticsFloatingBody_15zs5_297", x = "_helpMenuDropdown_15zs5_301", L = "_helpMenuContent_15zs5_314", T = "_helpMenuFooter_15zs5_359", A = "_helpMenuUpdateBlock_15zs5_366", v = "_helpMenuUpdateLabel_15zs5_371", V = "_helpMenuPrimaryItem_15zs5_381", E = "_helpMenuUpdateVersion_15zs5_404", W = "_reportProblemForm_15zs5_412", j = "_reportProblemOptions_15zs5_418", q = "_reportProblemOptionRoot_15zs5_424", G = "_reportProblemOptionBody_15zs5_428", J = "_reportProblemOptionInner_15zs5_433", K = "_reportProblemOptionInput_15zs5_438", N = "_reportProblemOptionLabel_15zs5_446", Q = "_flowCheckboxLabel_15zs5_447", X = "_reportProblemTextareaRoot_15zs5_462", Y = "_reportProblemTextareaWrapper_15zs5_470", Z = "_reportProblemDescriptionLabel_15zs5_474", $ = "_reportProblemTextareaInput_15zs5_484", oo = "_reportProblemActions_15zs5_501", eo = "_flowActions_15zs5_502", to = "_reportProblemButton_15zs5_511", so = "_reportProblemCancelButton_15zs5_521", no = "_reportProblemSubmitButton_15zs5_527", ro = "_flowIntroStack_15zs5_533", lo = "_flowResultStack_15zs5_534", ao = "_flowStatusIcon_15zs5_543", po = "_flowTitle_15zs5_548", _o = "_flowDescription_15zs5_583", co = "_flowDivider_15zs5_590", io = "_flowConsentDivider_15zs5_596", ko = "_flowConsentCheckbox_15zs5_600", wo = "_flowFullButton_15zs5_608", Po = "_flowProgressRoot_15zs5_619", Mo = "_flowProgressMeter_15zs5_631", mo = "_flowProgressHeader_15zs5_637", zo = "_flowProgressMeta_15zs5_644", bo = "_flowProgressMetaPrimary_15zs5_651", go = "_flowProgressMetaSecondary_15zs5_655", Uo = "_flowProgressBar_15zs5_660", uo = "_flowProgressBarSection_15zs5_668", fo = "_flowProgressHint_15zs5_681", Bo = "_diagnosticFileIcon_15zs5_694", Do = {
|
|
2
|
+
dot: o,
|
|
3
|
+
line: e,
|
|
4
|
+
desktopFlowModal: t,
|
|
5
|
+
desktopFlowModalHeader: s,
|
|
6
|
+
desktopFlowModalHeaderCompact: n,
|
|
7
|
+
desktopFlowModalHeaderFloating: r,
|
|
8
|
+
desktopFlowModalTitle: l,
|
|
9
|
+
desktopFlowModalBody: d,
|
|
10
|
+
desktopFlowModalBodyFloating: a,
|
|
11
|
+
reportProblemModal: p,
|
|
12
|
+
diagnosticsConsentModal: _,
|
|
13
|
+
diagnosticsProgressModal: c,
|
|
14
|
+
diagnosticsResultModal: i,
|
|
15
|
+
desktopUpdateCheckingModal: k,
|
|
16
|
+
desktopUpdateResultModal: w,
|
|
17
|
+
desktopUpdateAvailableModal: P,
|
|
18
|
+
desktopUpdateDownloadModal: M,
|
|
19
|
+
desktopUpdateCheckingBody: m,
|
|
20
|
+
desktopUpdateResultBody: z,
|
|
21
|
+
desktopUpdateDownloadBody: b,
|
|
22
|
+
desktopUpdateCheckingStack: g,
|
|
23
|
+
desktopUpdateSpinner: U,
|
|
24
|
+
desktopUpdateResultIcon: u,
|
|
25
|
+
desktopUpdateSuccessIcon: f,
|
|
26
|
+
desktopUpdateErrorIcon: B,
|
|
27
|
+
desktopUpdateDownloadStack: D,
|
|
28
|
+
desktopUpdateDownloadDescription: F,
|
|
29
|
+
desktopUpdateDownloadAnimation: h,
|
|
30
|
+
desktopUpdateDownloadMeter: C,
|
|
31
|
+
desktopUpdateDownloadHeader: R,
|
|
32
|
+
desktopUpdateRemaining: y,
|
|
33
|
+
desktopUpdateRemainingLabel: I,
|
|
34
|
+
desktopUpdateRemainingValue: S,
|
|
35
|
+
desktopUpdateDownloadHint: H,
|
|
36
|
+
diagnosticsFloatingBody: O,
|
|
37
|
+
helpMenuDropdown: x,
|
|
38
|
+
helpMenuContent: L,
|
|
39
|
+
helpMenuFooter: T,
|
|
40
|
+
helpMenuUpdateBlock: A,
|
|
41
|
+
helpMenuUpdateLabel: v,
|
|
42
|
+
helpMenuPrimaryItem: V,
|
|
43
|
+
helpMenuUpdateVersion: E,
|
|
44
|
+
reportProblemForm: W,
|
|
45
|
+
reportProblemOptions: j,
|
|
46
|
+
reportProblemOptionRoot: q,
|
|
47
|
+
reportProblemOptionBody: G,
|
|
48
|
+
reportProblemOptionInner: J,
|
|
49
|
+
reportProblemOptionInput: K,
|
|
50
|
+
reportProblemOptionLabel: N,
|
|
51
|
+
flowCheckboxLabel: Q,
|
|
52
|
+
reportProblemTextareaRoot: X,
|
|
53
|
+
reportProblemTextareaWrapper: Y,
|
|
54
|
+
reportProblemDescriptionLabel: Z,
|
|
55
|
+
reportProblemTextareaInput: $,
|
|
56
|
+
reportProblemActions: oo,
|
|
57
|
+
flowActions: eo,
|
|
58
|
+
reportProblemButton: to,
|
|
59
|
+
reportProblemCancelButton: so,
|
|
60
|
+
reportProblemSubmitButton: no,
|
|
61
|
+
flowIntroStack: ro,
|
|
62
|
+
flowResultStack: lo,
|
|
63
|
+
flowStatusIcon: ao,
|
|
64
|
+
flowTitle: po,
|
|
65
|
+
flowDescription: _o,
|
|
66
|
+
flowDivider: co,
|
|
67
|
+
flowConsentDivider: io,
|
|
68
|
+
flowConsentCheckbox: ko,
|
|
69
|
+
flowFullButton: wo,
|
|
70
|
+
flowProgressRoot: Po,
|
|
71
|
+
flowProgressMeter: Mo,
|
|
72
|
+
flowProgressHeader: mo,
|
|
73
|
+
flowProgressMeta: zo,
|
|
74
|
+
flowProgressMetaPrimary: bo,
|
|
75
|
+
flowProgressMetaSecondary: go,
|
|
76
|
+
flowProgressBar: Uo,
|
|
77
|
+
flowProgressBarSection: uo,
|
|
78
|
+
flowProgressHint: fo,
|
|
79
|
+
diagnosticFileIcon: Bo
|
|
4
80
|
};
|
|
5
81
|
export {
|
|
6
|
-
|
|
7
|
-
t as
|
|
8
|
-
|
|
82
|
+
Do as default,
|
|
83
|
+
t as desktopFlowModal,
|
|
84
|
+
d as desktopFlowModalBody,
|
|
85
|
+
a as desktopFlowModalBodyFloating,
|
|
86
|
+
s as desktopFlowModalHeader,
|
|
87
|
+
n as desktopFlowModalHeaderCompact,
|
|
88
|
+
r as desktopFlowModalHeaderFloating,
|
|
89
|
+
l as desktopFlowModalTitle,
|
|
90
|
+
P as desktopUpdateAvailableModal,
|
|
91
|
+
m as desktopUpdateCheckingBody,
|
|
92
|
+
k as desktopUpdateCheckingModal,
|
|
93
|
+
g as desktopUpdateCheckingStack,
|
|
94
|
+
h as desktopUpdateDownloadAnimation,
|
|
95
|
+
b as desktopUpdateDownloadBody,
|
|
96
|
+
F as desktopUpdateDownloadDescription,
|
|
97
|
+
R as desktopUpdateDownloadHeader,
|
|
98
|
+
H as desktopUpdateDownloadHint,
|
|
99
|
+
C as desktopUpdateDownloadMeter,
|
|
100
|
+
M as desktopUpdateDownloadModal,
|
|
101
|
+
D as desktopUpdateDownloadStack,
|
|
102
|
+
B as desktopUpdateErrorIcon,
|
|
103
|
+
y as desktopUpdateRemaining,
|
|
104
|
+
I as desktopUpdateRemainingLabel,
|
|
105
|
+
S as desktopUpdateRemainingValue,
|
|
106
|
+
z as desktopUpdateResultBody,
|
|
107
|
+
u as desktopUpdateResultIcon,
|
|
108
|
+
w as desktopUpdateResultModal,
|
|
109
|
+
U as desktopUpdateSpinner,
|
|
110
|
+
f as desktopUpdateSuccessIcon,
|
|
111
|
+
Bo as diagnosticFileIcon,
|
|
112
|
+
_ as diagnosticsConsentModal,
|
|
113
|
+
O as diagnosticsFloatingBody,
|
|
114
|
+
c as diagnosticsProgressModal,
|
|
115
|
+
i as diagnosticsResultModal,
|
|
116
|
+
o as dot,
|
|
117
|
+
eo as flowActions,
|
|
118
|
+
Q as flowCheckboxLabel,
|
|
119
|
+
ko as flowConsentCheckbox,
|
|
120
|
+
io as flowConsentDivider,
|
|
121
|
+
_o as flowDescription,
|
|
122
|
+
co as flowDivider,
|
|
123
|
+
wo as flowFullButton,
|
|
124
|
+
ro as flowIntroStack,
|
|
125
|
+
Uo as flowProgressBar,
|
|
126
|
+
uo as flowProgressBarSection,
|
|
127
|
+
mo as flowProgressHeader,
|
|
128
|
+
fo as flowProgressHint,
|
|
129
|
+
zo as flowProgressMeta,
|
|
130
|
+
bo as flowProgressMetaPrimary,
|
|
131
|
+
go as flowProgressMetaSecondary,
|
|
132
|
+
Mo as flowProgressMeter,
|
|
133
|
+
Po as flowProgressRoot,
|
|
134
|
+
lo as flowResultStack,
|
|
135
|
+
ao as flowStatusIcon,
|
|
136
|
+
po as flowTitle,
|
|
137
|
+
L as helpMenuContent,
|
|
138
|
+
x as helpMenuDropdown,
|
|
139
|
+
T as helpMenuFooter,
|
|
140
|
+
V as helpMenuPrimaryItem,
|
|
141
|
+
A as helpMenuUpdateBlock,
|
|
142
|
+
v as helpMenuUpdateLabel,
|
|
143
|
+
E as helpMenuUpdateVersion,
|
|
144
|
+
e as line,
|
|
145
|
+
oo as reportProblemActions,
|
|
146
|
+
to as reportProblemButton,
|
|
147
|
+
so as reportProblemCancelButton,
|
|
148
|
+
Z as reportProblemDescriptionLabel,
|
|
149
|
+
W as reportProblemForm,
|
|
150
|
+
p as reportProblemModal,
|
|
151
|
+
G as reportProblemOptionBody,
|
|
152
|
+
J as reportProblemOptionInner,
|
|
153
|
+
K as reportProblemOptionInput,
|
|
154
|
+
N as reportProblemOptionLabel,
|
|
155
|
+
q as reportProblemOptionRoot,
|
|
156
|
+
j as reportProblemOptions,
|
|
157
|
+
no as reportProblemSubmitButton,
|
|
158
|
+
$ as reportProblemTextareaInput,
|
|
159
|
+
X as reportProblemTextareaRoot,
|
|
160
|
+
Y as reportProblemTextareaWrapper
|
|
9
161
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppContainerActionsStore, AppContainerDataStore } from '../types';
|
|
2
|
-
export declare const useAppContainer: ({ user, workspaceMenu, getFirstPageLink, tools, userMenuItems, onSyncClick, syncState, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, navbarDisplayFormat, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
2
|
+
export declare const useAppContainer: ({ user, workspaceMenu, getFirstPageLink, tools, userMenuItems, onSyncClick, syncState, syncStatusSlot, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, navbarDisplayFormat, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
3
3
|
//# sourceMappingURL=useAppContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3E,eAAO,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"useAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3E,eAAO,MAAM,eAAe,GAAI,mSAqB7B,qBAAqB,GAAG,wBAAwB,SAgDlD,CAAC"}
|
|
@@ -1,72 +1,75 @@
|
|
|
1
|
-
import { useLayoutEffect as
|
|
2
|
-
import { useAppContainerActionsStore as
|
|
3
|
-
import { useAppContainerDataStore as
|
|
4
|
-
const
|
|
1
|
+
import { useLayoutEffect as R } from "react";
|
|
2
|
+
import { useAppContainerActionsStore as S } from "./useAppContainerActionsStore.js";
|
|
3
|
+
import { useAppContainerDataStore as T } from "./useAppContainerDataStore.js";
|
|
4
|
+
const X = ({
|
|
5
5
|
user: p,
|
|
6
|
-
workspaceMenu:
|
|
7
|
-
getFirstPageLink:
|
|
8
|
-
tools:
|
|
9
|
-
userMenuItems:
|
|
10
|
-
onSyncClick:
|
|
11
|
-
syncState:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
workspaceMenu: f,
|
|
7
|
+
getFirstPageLink: C,
|
|
8
|
+
tools: m,
|
|
9
|
+
userMenuItems: t,
|
|
10
|
+
onSyncClick: x,
|
|
11
|
+
syncState: A,
|
|
12
|
+
syncStatusSlot: E,
|
|
13
|
+
notifications: j,
|
|
14
|
+
isAnonym: q,
|
|
15
|
+
readNotificationsFunc: r,
|
|
16
|
+
publicMode: z,
|
|
17
|
+
showMessenger: B,
|
|
18
|
+
showNewMessage: D,
|
|
19
|
+
version: G,
|
|
20
|
+
updatedAt: H,
|
|
21
|
+
privacyPolicyLink: J,
|
|
22
|
+
userAgreementLink: K,
|
|
23
|
+
whatsNewItems: O,
|
|
24
|
+
navbarDisplayFormat: Q
|
|
24
25
|
}) => {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
R(() => {
|
|
27
|
+
T.setState({
|
|
27
28
|
user: p,
|
|
28
|
-
workspaceMenu:
|
|
29
|
-
getFirstPageLink:
|
|
30
|
-
tools:
|
|
31
|
-
userMenuItems:
|
|
32
|
-
onSyncClick:
|
|
33
|
-
syncState:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
workspaceMenu: f,
|
|
30
|
+
getFirstPageLink: C,
|
|
31
|
+
tools: m,
|
|
32
|
+
userMenuItems: t,
|
|
33
|
+
onSyncClick: x,
|
|
34
|
+
syncState: A,
|
|
35
|
+
syncStatusSlot: E,
|
|
36
|
+
notifications: j,
|
|
37
|
+
isAnonym: q,
|
|
38
|
+
publicMode: z,
|
|
39
|
+
showMessenger: B,
|
|
40
|
+
showNewMessage: D,
|
|
41
|
+
version: G,
|
|
42
|
+
updatedAt: H,
|
|
43
|
+
privacyPolicyLink: J,
|
|
44
|
+
userAgreementLink: K,
|
|
45
|
+
whatsNewItems: O,
|
|
46
|
+
navbarDisplayFormat: Q
|
|
47
|
+
}), S.setState({
|
|
48
|
+
readNotificationsFunc: r
|
|
47
49
|
});
|
|
48
50
|
}, [
|
|
49
|
-
E,
|
|
50
|
-
A,
|
|
51
|
-
o,
|
|
52
|
-
j,
|
|
53
51
|
q,
|
|
52
|
+
j,
|
|
53
|
+
z,
|
|
54
54
|
r,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
S,
|
|
55
|
+
B,
|
|
56
|
+
D,
|
|
58
57
|
m,
|
|
59
|
-
|
|
58
|
+
p,
|
|
60
59
|
t,
|
|
60
|
+
x,
|
|
61
|
+
A,
|
|
62
|
+
E,
|
|
61
63
|
f,
|
|
62
|
-
|
|
63
|
-
B,
|
|
64
|
-
D,
|
|
64
|
+
C,
|
|
65
65
|
G,
|
|
66
66
|
H,
|
|
67
|
-
J
|
|
67
|
+
J,
|
|
68
|
+
K,
|
|
69
|
+
O,
|
|
70
|
+
Q
|
|
68
71
|
]);
|
|
69
72
|
};
|
|
70
73
|
export {
|
|
71
|
-
|
|
74
|
+
X as useAppContainer
|
|
72
75
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppContainerDataStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerDataStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"useAppContainerDataStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerDataStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,wBAAwB,oFAmClC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { create as e } from "zustand";
|
|
2
|
-
const
|
|
2
|
+
const a = e(() => ({
|
|
3
3
|
tools: [],
|
|
4
4
|
user: {
|
|
5
5
|
avatar: "",
|
|
@@ -34,8 +34,9 @@ const s = e(() => ({
|
|
|
34
34
|
showNewMessage: () => {
|
|
35
35
|
},
|
|
36
36
|
onSyncClick: void 0,
|
|
37
|
-
syncState: void 0
|
|
37
|
+
syncState: void 0,
|
|
38
|
+
syncStatusSlot: null
|
|
38
39
|
}));
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
a as useAppContainerDataStore
|
|
41
42
|
};
|
|
@@ -55,6 +55,7 @@ export type AppContainerDataStore = {
|
|
|
55
55
|
navbarDisplayFormat: 'iconsAndLabels' | 'iconsOnly';
|
|
56
56
|
onSyncClick?: () => void;
|
|
57
57
|
syncState?: 'SYNCED' | 'SYNCING' | 'OFFLINE' | 'ERROR' | string;
|
|
58
|
+
syncStatusSlot?: ReactNode;
|
|
58
59
|
};
|
|
59
60
|
type ReadNotificationsRequest = {
|
|
60
61
|
messageIds: number[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC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_9zlef_20", _ = "_leftSidebar_9zlef_28", n = "_rightSidebar_9zlef_36", r = "_main_9zlef_44", i = "_workContent_9zlef_52", a = {
|
|
2
|
+
root: e,
|
|
3
|
+
header: t,
|
|
4
4
|
section: o,
|
|
5
5
|
leftSidebar: _,
|
|
6
6
|
rightSidebar: n,
|
|
@@ -9,11 +9,11 @@ const t = "_root_10w7v_1", e = "_header_10w7v_17", o = "_section_10w7v_39", _ =
|
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
a as default,
|
|
12
|
-
|
|
12
|
+
t as header,
|
|
13
13
|
_ as leftSidebar,
|
|
14
14
|
r as main,
|
|
15
15
|
n as rightSidebar,
|
|
16
|
-
|
|
16
|
+
e as root,
|
|
17
17
|
o as section,
|
|
18
18
|
i as workContent
|
|
19
19
|
};
|
|
@@ -14,6 +14,8 @@ interface AttachmentsGalleryContextValue {
|
|
|
14
14
|
setZoomPercentage: (value: number) => void;
|
|
15
15
|
transformRefs: React.MutableRefObject<ReactZoomPanPinchContentRef[]>;
|
|
16
16
|
prevIndexRef: React.MutableRefObject<number>;
|
|
17
|
+
videoRefreshKey: number;
|
|
18
|
+
refreshVideo: () => void;
|
|
17
19
|
}
|
|
18
20
|
export declare const useAttachmentsGalleryContext: () => AttachmentsGalleryContextValue;
|
|
19
21
|
interface AttachmentsGalleryProviderProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentsGalleryContext.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsGalleryModal/AttachmentsGalleryContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"AttachmentsGalleryContext.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsGalleryModal/AttachmentsGalleryContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,UAAU,8BAA8B;IACtC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACpD,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,KAAK,CAAC,gBAAgB,CAAC,2BAA2B,EAAE,CAAC,CAAC;IACrE,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAKD,eAAO,MAAM,4BAA4B,sCAQxC,CAAC;AAEF,UAAU,+BAA+B;IACvC,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,0BAA0B,GAAI,6BAGxC,+BAA+B,4CAoCjC,CAAC"}
|
|
@@ -1,39 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as e, useRef as
|
|
3
|
-
const
|
|
4
|
-
const t =
|
|
1
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
2
|
+
import { useState as e, useRef as o, useCallback as G, createContext as R, useContext as b } from "react";
|
|
3
|
+
const s = R(null), I = () => {
|
|
4
|
+
const t = b(s);
|
|
5
5
|
if (!t)
|
|
6
6
|
throw new Error(
|
|
7
7
|
"useAttachmentsGalleryContext must be used within AttachmentsGalleryProvider"
|
|
8
8
|
);
|
|
9
9
|
return t;
|
|
10
|
-
},
|
|
10
|
+
}, g = ({
|
|
11
11
|
children: t,
|
|
12
|
-
initialIndex:
|
|
12
|
+
initialIndex: n
|
|
13
13
|
}) => {
|
|
14
|
-
const [
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
const [r, c] = e(null), [l, a] = e(!1), [m, u] = e(!1), [x, d] = e(n ?? 0), [f, i] = e(100), h = o([]), v = o(0), [C, y] = e(0), P = G(
|
|
15
|
+
() => y((S) => S + 1),
|
|
16
|
+
[]
|
|
17
|
+
);
|
|
18
|
+
return /* @__PURE__ */ A(
|
|
19
|
+
s.Provider,
|
|
17
20
|
{
|
|
18
21
|
value: {
|
|
19
|
-
embla:
|
|
20
|
-
setEmbla:
|
|
21
|
-
canScrollPrev:
|
|
22
|
+
embla: r,
|
|
23
|
+
setEmbla: c,
|
|
24
|
+
canScrollPrev: l,
|
|
22
25
|
setCanScrollPrev: a,
|
|
23
26
|
canScrollNext: m,
|
|
24
|
-
setCanScrollNext:
|
|
25
|
-
selectedIndex:
|
|
27
|
+
setCanScrollNext: u,
|
|
28
|
+
selectedIndex: x,
|
|
26
29
|
setSelectedIndex: d,
|
|
27
30
|
zoomPercentage: f,
|
|
28
31
|
setZoomPercentage: i,
|
|
29
32
|
transformRefs: h,
|
|
30
|
-
prevIndexRef: v
|
|
33
|
+
prevIndexRef: v,
|
|
34
|
+
videoRefreshKey: C,
|
|
35
|
+
refreshVideo: P
|
|
31
36
|
},
|
|
32
37
|
children: t
|
|
33
38
|
}
|
|
34
39
|
);
|
|
35
40
|
};
|
|
36
41
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
g as AttachmentsGalleryProvider,
|
|
43
|
+
I as useAttachmentsGalleryContext
|
|
39
44
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
attachmentId: string;
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Chooses how to play a video attachment based on its status:
|
|
8
|
+
* - pipeline videos (status 200) → {@link StatusVideoPlayer}: playback URLs +
|
|
9
|
+
* subtitles/chapters/storyboard come from `/status`, no `/vod` polling.
|
|
10
|
+
* - legacy attachments (status 404) → {@link LegacyAttachmentVideoPlayer}: the
|
|
11
|
+
* existing `/vod` resolution flow.
|
|
12
|
+
*/
|
|
13
|
+
export declare const AttachmentVideoPlayer: ({ attachmentId, isActive, autoPlay, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=AttachmentVideoPlayer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentVideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.tsx"],"names":[],"mappings":"AAQA,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAAI,uCAInC,KAAK,4CAiCP,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useAttachmentsGalleryContext as a } from "../AttachmentsGalleryContext.js";
|
|
3
|
+
import { BaseLoader as l } from "../../Loaders/BaseLoader.js";
|
|
4
|
+
import { LegacyAttachmentVideoPlayer as f } from "./LegacyAttachmentVideoPlayer.js";
|
|
5
|
+
import { StatusVideoPlayer as n } from "./StatusVideoPlayer.js";
|
|
6
|
+
import { useAttachmentVideoStatus as d } from "./useAttachmentVideoStatus.js";
|
|
7
|
+
import p from "../styles.module.css.js";
|
|
8
|
+
const P = ({
|
|
9
|
+
attachmentId: r,
|
|
10
|
+
isActive: t,
|
|
11
|
+
autoPlay: o
|
|
12
|
+
}) => {
|
|
13
|
+
const { videoRefreshKey: i } = a(), { status: m, loaded: s } = d(
|
|
14
|
+
r,
|
|
15
|
+
i
|
|
16
|
+
);
|
|
17
|
+
return s ? m ? /* @__PURE__ */ e(
|
|
18
|
+
n,
|
|
19
|
+
{
|
|
20
|
+
attachmentId: r,
|
|
21
|
+
status: m,
|
|
22
|
+
isActive: t,
|
|
23
|
+
autoPlay: o
|
|
24
|
+
}
|
|
25
|
+
) : /* @__PURE__ */ e(
|
|
26
|
+
f,
|
|
27
|
+
{
|
|
28
|
+
attachmentId: r,
|
|
29
|
+
isActive: t,
|
|
30
|
+
autoPlay: o
|
|
31
|
+
}
|
|
32
|
+
) : /* @__PURE__ */ e("div", { className: p.videoPlayerFill, children: /* @__PURE__ */ e(l, {}) });
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
P as AttachmentVideoPlayer
|
|
36
|
+
};
|
|
@@ -3,30 +3,30 @@ import { memo as P } from "react";
|
|
|
3
3
|
import { TransformWrapper as F, TransformComponent as T } from "react-zoom-pan-pinch";
|
|
4
4
|
import { Box as a } from "@mantine/core";
|
|
5
5
|
import { BaseLoader as U } from "../../Loaders/BaseLoader.js";
|
|
6
|
-
import {
|
|
7
|
-
import { TRANSFORM_COMPONENT_STYLES as
|
|
6
|
+
import { AttachmentVideoPlayer as E } from "./AttachmentVideoPlayer.js";
|
|
7
|
+
import { TRANSFORM_COMPONENT_STYLES as d, ZOOM_CONFIG as s } from "../constants.js";
|
|
8
8
|
import { useGetPreviewUrl as O } from "../hooks/useGetPreviewUrl.js";
|
|
9
9
|
import { usePanning as b } from "../hooks/usePanning.js";
|
|
10
10
|
import { ErrorSection as t } from "./ErrorSection.js";
|
|
11
11
|
import { UnsupportedSection as x } from "./UnsupportedSection.js";
|
|
12
12
|
import i from "../styles.module.css.js";
|
|
13
|
-
const
|
|
14
|
-
({ onTransformed:
|
|
13
|
+
const Z = P(
|
|
14
|
+
({ onTransformed: N, attachment: e, isActive: p, ref: S }) => {
|
|
15
15
|
const {
|
|
16
|
-
isError:
|
|
16
|
+
isError: n,
|
|
17
17
|
setIsError: g,
|
|
18
18
|
fileUrl: o,
|
|
19
19
|
isFetching: l,
|
|
20
|
-
isVideo:
|
|
21
|
-
isPdf:
|
|
20
|
+
isVideo: c,
|
|
21
|
+
isPdf: f,
|
|
22
22
|
isAudio: u,
|
|
23
|
-
isSupported:
|
|
24
|
-
} = O(e), y = b({ isFetching: l, isVideo:
|
|
25
|
-
return
|
|
23
|
+
isSupported: m
|
|
24
|
+
} = O(e), y = b({ isFetching: l, isVideo: c });
|
|
25
|
+
return c && !l && m ? /* @__PURE__ */ r("div", { style: d, children: /* @__PURE__ */ r(a, { className: i.videoContainer, children: /* @__PURE__ */ r(
|
|
26
26
|
E,
|
|
27
27
|
{
|
|
28
|
-
isActive:
|
|
29
|
-
autoPlay:
|
|
28
|
+
isActive: p,
|
|
29
|
+
autoPlay: !1,
|
|
30
30
|
attachmentId: e.id
|
|
31
31
|
}
|
|
32
32
|
) }) }) : /* @__PURE__ */ r(
|
|
@@ -35,15 +35,15 @@ const h = P(
|
|
|
35
35
|
panning: {
|
|
36
36
|
disabled: !0
|
|
37
37
|
},
|
|
38
|
-
onTransformed:
|
|
38
|
+
onTransformed: N,
|
|
39
39
|
initialScale: s.initialScale,
|
|
40
40
|
minScale: s.minScale,
|
|
41
41
|
maxScale: s.maxScale,
|
|
42
42
|
limitToBounds: !0,
|
|
43
|
-
disabled: l ||
|
|
43
|
+
disabled: l || f || u || !m,
|
|
44
44
|
disablePadding: !0,
|
|
45
45
|
centerZoomedOut: !0,
|
|
46
|
-
ref:
|
|
46
|
+
ref: S,
|
|
47
47
|
wheel: {
|
|
48
48
|
disabled: !1,
|
|
49
49
|
step: s.wheelStep
|
|
@@ -54,28 +54,28 @@ const h = P(
|
|
|
54
54
|
children: /* @__PURE__ */ r(
|
|
55
55
|
T,
|
|
56
56
|
{
|
|
57
|
-
wrapperStyle:
|
|
58
|
-
contentStyle:
|
|
57
|
+
wrapperStyle: d,
|
|
58
|
+
contentStyle: d,
|
|
59
59
|
wrapperProps: y,
|
|
60
|
-
children:
|
|
60
|
+
children: m ? l ? /* @__PURE__ */ r(U, {}) : f ? n || !(e?.Url || o) ? /* @__PURE__ */ r(t, {}) : /* @__PURE__ */ r(a, { className: i.pdfContainer, children: /* @__PURE__ */ r(
|
|
61
61
|
"iframe",
|
|
62
62
|
{
|
|
63
63
|
title: e.originalFileName || "pdf",
|
|
64
64
|
src: e?.Url ?? o ?? "",
|
|
65
65
|
className: i.pdfFrame
|
|
66
66
|
}
|
|
67
|
-
) }) : u ?
|
|
67
|
+
) }) : u ? n || !(e?.Url || o) ? /* @__PURE__ */ r(t, {}) : /* @__PURE__ */ C(a, { className: i.audioContainer, children: [
|
|
68
68
|
/* @__PURE__ */ r(a, { className: i.audioName, children: e.originalFileName || "audio" }),
|
|
69
69
|
/* @__PURE__ */ r(
|
|
70
70
|
"audio",
|
|
71
71
|
{
|
|
72
72
|
src: e?.Url ?? o ?? "",
|
|
73
73
|
controls: !0,
|
|
74
|
-
autoPlay:
|
|
74
|
+
autoPlay: p,
|
|
75
75
|
className: i.audioElement
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
|
-
] }) :
|
|
78
|
+
] }) : n ? /* @__PURE__ */ r(t, {}) : /* @__PURE__ */ r(
|
|
79
79
|
"img",
|
|
80
80
|
{
|
|
81
81
|
onError: () => g(!0),
|
|
@@ -97,5 +97,5 @@ const h = P(
|
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
99
|
export {
|
|
100
|
-
|
|
100
|
+
Z as GallerySlide
|
|
101
101
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
attachmentId: string;
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Player for legacy attachments that never went through the video pipeline (no
|
|
8
|
+
* VideoAsset, `/status` 404). Stream resolution stays on the existing `/vod`
|
|
9
|
+
* flow via `useShakePlayer` (HLS when ready, raw fallback). No subtitles/chapters
|
|
10
|
+
* exist for these, so none are passed.
|
|
11
|
+
*/
|
|
12
|
+
export declare const LegacyAttachmentVideoPlayer: ({ attachmentId, isActive, autoPlay, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=LegacyAttachmentVideoPlayer.d.ts.map
|
package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LegacyAttachmentVideoPlayer.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.tsx"],"names":[],"mappings":"AAMA,KAAK,KAAK,GAAG;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAI,uCAIzC,KAAK,4CAwBP,CAAC"}
|