@layers-app/shared 0.4.6 → 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.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +79 -72
- package/dist/components/AppContainer/AppContainer.module.css.js +20 -10
- 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/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +238 -105
- package/dist/components/AppContainer/components/Main.js +4 -4
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.js +9 -9
- 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 +1107 -137
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
- 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/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/styles.module.css.js +32 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +12 -12
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -4
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +1 -1
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -44
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +10 -10
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
- package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +38 -37
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +5 -5
- 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 +12 -12
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -8
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.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 +26 -32
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +72 -83
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +64 -67
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +0 -6
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +11 -53
- package/dist/components/ColorPicker/useRecentColors.d.ts +1 -3
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +20 -43
- 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/EmojiPicker.module.css.js +8 -8
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/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/NavMenu/NavMenu.module.css.js +12 -12
- 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/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 +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +8 -14
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +107 -111
- package/dist/helpers/showNotifications.module.css.js +4 -16
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -23
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +589 -575
- 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,11 +1,11 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_page_q8c84_3", g = "_figureContainer_q8c84_16", _ = "_figure_q8c84_16", a = "_figureA_q8c84_29", r = "_figureB_q8c84_33", c = "_grainOverlay_q8c84_115", n = "_badgeWrap_q8c84_127", i = "_badge0_q8c84_155", t = "_badge1_q8c84_160", d = "_badge2_q8c84_169", o = "_badge3_q8c84_178", b = {
|
|
2
2
|
page: e,
|
|
3
|
-
figureContainer:
|
|
4
|
-
figure:
|
|
5
|
-
figureA:
|
|
6
|
-
figureB:
|
|
7
|
-
grainOverlay:
|
|
8
|
-
badgeWrap:
|
|
3
|
+
figureContainer: g,
|
|
4
|
+
figure: _,
|
|
5
|
+
figureA: a,
|
|
6
|
+
figureB: r,
|
|
7
|
+
grainOverlay: c,
|
|
8
|
+
badgeWrap: n,
|
|
9
9
|
badge0: i,
|
|
10
10
|
badge1: t,
|
|
11
11
|
badge2: d,
|
|
@@ -16,12 +16,12 @@ export {
|
|
|
16
16
|
t as badge1,
|
|
17
17
|
d as badge2,
|
|
18
18
|
o as badge3,
|
|
19
|
-
|
|
19
|
+
n as badgeWrap,
|
|
20
20
|
b as default,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
_ as figure,
|
|
22
|
+
a as figureA,
|
|
23
|
+
r as figureB,
|
|
24
|
+
g as figureContainer,
|
|
25
|
+
c as grainOverlay,
|
|
26
26
|
e as page
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAI5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AAwGD,eAAO,MAAM,YAAY,uNAnFtB,iBAAiB;;;;;;;;CAsFlB,CAAC"}
|
|
@@ -1,93 +1,100 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { useMantineColorScheme as
|
|
4
|
-
import { isAppMode as
|
|
5
|
-
import { useQueryParam as
|
|
6
|
-
import { AppShell as
|
|
7
|
-
import { useMeetWidget as
|
|
8
|
-
import { AppsSidebar as
|
|
9
|
-
import { Header as
|
|
10
|
-
import { Main as
|
|
11
|
-
import
|
|
12
|
-
import { RightSidebar as
|
|
13
|
-
import { ToolSidebar as
|
|
14
|
-
import { ToolbarNewButton as
|
|
15
|
-
import { useAppContainerDataStore as
|
|
16
|
-
import { appContainerStore as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as E } from "react";
|
|
3
|
+
import { useMantineColorScheme as F, Stack as O, Flex as $ } from "@mantine/core";
|
|
4
|
+
import { isAppMode as K } from "../../helpers/isAppMode.js";
|
|
5
|
+
import { useQueryParam as Q } from "../../hooks/useNumberQueryParam.js";
|
|
6
|
+
import { AppShell as t } from "../AppShell/AppShell.js";
|
|
7
|
+
import { useMeetWidget as R } from "./MeetWidgetContext.js";
|
|
8
|
+
import { AppsSidebar as V } from "./components/AppsSidebar/AppsSidebar.js";
|
|
9
|
+
import { Header as _ } from "./components/Header.js";
|
|
10
|
+
import { Main as q } from "./components/Main.js";
|
|
11
|
+
import z from "./components/NavbarContent.js";
|
|
12
|
+
import { RightSidebar as G } from "./components/RightSidebar.js";
|
|
13
|
+
import { ToolSidebar as I } from "./components/ToolSidebar.js";
|
|
14
|
+
import { ToolbarNewButton as J } from "./components/ToolbarNewButton.js";
|
|
15
|
+
import { useAppContainerDataStore as L } from "./hooks/useAppContainerDataStore.js";
|
|
16
|
+
import { appContainerStore as U } from "./hooks/useAppContainerStore.js";
|
|
17
|
+
import X from "./AppContainer.module.css.js";
|
|
18
|
+
const Y = ({
|
|
19
|
+
header: h,
|
|
20
|
+
content: f,
|
|
21
|
+
toolbar: n,
|
|
22
|
+
navbarTitle: u,
|
|
23
|
+
footer: s,
|
|
24
|
+
onTitleChange: S,
|
|
25
|
+
trashMenu: b,
|
|
26
|
+
rightbar: a,
|
|
27
|
+
onInviteClick: g,
|
|
28
|
+
showAppsSidebar: x = !0,
|
|
29
|
+
headerBorderless: w = !1,
|
|
30
|
+
withBg: C = !1,
|
|
31
|
+
isBeta: M = !1,
|
|
32
|
+
hideHeader: A = !1,
|
|
33
|
+
showSearch: T = !0,
|
|
34
|
+
showMore: v = !0,
|
|
34
35
|
showBorders: y = !0,
|
|
35
|
-
showLogo:
|
|
36
|
+
showLogo: W = !1
|
|
36
37
|
}) => {
|
|
37
|
-
const {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
38
|
+
const {
|
|
39
|
+
toolbarWidth: k,
|
|
40
|
+
rightbarWidth: N,
|
|
41
|
+
layout: l,
|
|
42
|
+
showToolbar: j
|
|
43
|
+
} = U.useStore(), B = L((P) => P.user), m = K(B.mode, "DESKTOP"), { setColorScheme: p } = F(), r = Q("theme"), i = R();
|
|
44
|
+
E(() => {
|
|
45
|
+
!m && (r === "dark" || r === "light") && p(r);
|
|
46
|
+
}, [r, p, m]);
|
|
47
|
+
const D = {
|
|
48
|
+
"--toolbar-width": `${k}px`,
|
|
49
|
+
"--rightbar-width": `${N}px`
|
|
50
|
+
}, H = l !== "nothing" && !A, d = l === "default" && !!n, c = !d || !j;
|
|
51
|
+
return /* @__PURE__ */ o(t, { style: D, children: [
|
|
52
|
+
x && /* @__PURE__ */ e(t.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ e(
|
|
53
|
+
V,
|
|
48
54
|
{
|
|
49
|
-
onInviteClick:
|
|
50
|
-
trashMenu:
|
|
51
|
-
showSearch:
|
|
52
|
-
showMore:
|
|
55
|
+
onInviteClick: g,
|
|
56
|
+
trashMenu: b,
|
|
57
|
+
showSearch: T,
|
|
58
|
+
showMore: v,
|
|
53
59
|
showBorders: y,
|
|
54
|
-
showLogo:
|
|
60
|
+
showLogo: W
|
|
55
61
|
}
|
|
56
62
|
) }),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
/* @__PURE__ */ o(t.Section, { flex: 1, display: "flex", pos: "relative", children: [
|
|
64
|
+
d && /* @__PURE__ */ e(
|
|
65
|
+
I,
|
|
60
66
|
{
|
|
61
|
-
isBeta:
|
|
62
|
-
onTitleChange:
|
|
63
|
-
navbarTitle:
|
|
64
|
-
|
|
67
|
+
isBeta: M,
|
|
68
|
+
onTitleChange: S,
|
|
69
|
+
navbarTitle: u,
|
|
70
|
+
bottomSlot: c ? null : i,
|
|
71
|
+
children: n
|
|
65
72
|
}
|
|
66
73
|
),
|
|
67
|
-
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
i && c && /* @__PURE__ */ e("div", { className: X.floatingMeetSlot, children: i }),
|
|
75
|
+
/* @__PURE__ */ o(O, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
|
|
76
|
+
H && /* @__PURE__ */ e(
|
|
77
|
+
t.Header,
|
|
71
78
|
{
|
|
72
79
|
px: "sm",
|
|
73
|
-
style:
|
|
74
|
-
children: /* @__PURE__ */ e(
|
|
80
|
+
style: w ? { borderBottom: "none" } : void 0,
|
|
81
|
+
children: /* @__PURE__ */ e(_, { children: h })
|
|
75
82
|
}
|
|
76
83
|
),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
|
|
80
|
-
|
|
84
|
+
/* @__PURE__ */ o($, { mih: 0, gap: 0, h: "100%", children: [
|
|
85
|
+
/* @__PURE__ */ e(t.WorkContent, { children: /* @__PURE__ */ o(q, { withBg: C, children: [
|
|
86
|
+
f,
|
|
87
|
+
s && /* @__PURE__ */ e("footer", { children: s })
|
|
81
88
|
] }) }),
|
|
82
|
-
|
|
89
|
+
a && /* @__PURE__ */ e(G, { children: a })
|
|
83
90
|
] })
|
|
84
91
|
] })
|
|
85
92
|
] })
|
|
86
93
|
] });
|
|
87
|
-
},
|
|
88
|
-
NavbarContent:
|
|
89
|
-
NewButton:
|
|
94
|
+
}, Se = Object.assign(Y, {
|
|
95
|
+
NavbarContent: z,
|
|
96
|
+
NewButton: J
|
|
90
97
|
});
|
|
91
98
|
export {
|
|
92
|
-
|
|
99
|
+
Se as AppContainer
|
|
93
100
|
};
|
|
@@ -1,17 +1,27 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_toolTitleInput_ukfsq_19", o = "_appSidebarButton_ukfsq_34", e = "_sidebarSyncStatus_ukfsq_55", n = "_desktopUpdateButton_ukfsq_61", s = "_desktopUpdateButtonIndicator_ukfsq_82", a = "_desktopUpdateButtonIcon_ukfsq_88", d = "_desktopUpdateButtonLabel_ukfsq_112", p = "_slideContainer_ukfsq_120", u = "_slideContent_ukfsq_126", _ = "_main_ukfsq_141", i = "_floatingMeetSlot_ukfsq_150", k = {
|
|
2
2
|
toolTitleInput: t,
|
|
3
|
-
appSidebarButton:
|
|
3
|
+
appSidebarButton: o,
|
|
4
4
|
sidebarSyncStatus: e,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
desktopUpdateButton: n,
|
|
6
|
+
desktopUpdateButtonIndicator: s,
|
|
7
|
+
desktopUpdateButtonIcon: a,
|
|
8
|
+
desktopUpdateButtonLabel: d,
|
|
9
|
+
slideContainer: p,
|
|
10
|
+
slideContent: u,
|
|
11
|
+
main: _,
|
|
12
|
+
floatingMeetSlot: i
|
|
8
13
|
};
|
|
9
14
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
o as appSidebarButton,
|
|
16
|
+
k as default,
|
|
17
|
+
n as desktopUpdateButton,
|
|
18
|
+
a as desktopUpdateButtonIcon,
|
|
19
|
+
s as desktopUpdateButtonIndicator,
|
|
20
|
+
d as desktopUpdateButtonLabel,
|
|
21
|
+
i as floatingMeetSlot,
|
|
22
|
+
_ as main,
|
|
13
23
|
e as sidebarSyncStatus,
|
|
14
|
-
|
|
15
|
-
|
|
24
|
+
p as slideContainer,
|
|
25
|
+
u as slideContent,
|
|
16
26
|
t as toolTitleInput
|
|
17
27
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DesktopUpdateButton.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.tsx"],"names":[],"mappings":"AA+BA,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,iBAEjC,wBAAwB,mDAkL1B,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { jsx as l, jsxs as w } from "react/jsx-runtime";
|
|
2
|
+
import { useState as V, useEffect as N, useMemo as T, useCallback as I } from "react";
|
|
3
|
+
import { useTranslation as D } from "react-i18next";
|
|
4
|
+
import { RefreshIcon as E, DownloadCircle01Icon as p, ReloadIcon as R, Alert02Icon as C } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as A } from "@hugeicons/react";
|
|
6
|
+
import { Tooltip as B, Stack as S, Indicator as _, ActionIcon as x, Text as z } from "@mantine/core";
|
|
7
|
+
import { getDesktopBridge as L } from "../menus/HelpMenu/HelpMenu.js";
|
|
8
|
+
import s from "../../AppContainer.module.css.js";
|
|
9
|
+
const P = "layers:desktop-update:download", j = "layers:desktop-update:install", H = "layers:desktop-update:check", O = /* @__PURE__ */ new Set([
|
|
10
|
+
"available",
|
|
11
|
+
"downloading",
|
|
12
|
+
"downloaded",
|
|
13
|
+
"installing",
|
|
14
|
+
"error"
|
|
15
|
+
]), Q = ({
|
|
16
|
+
showLabels: c
|
|
17
|
+
}) => {
|
|
18
|
+
const { t: e } = D("appContainer"), [t, r] = V(null);
|
|
19
|
+
N(() => {
|
|
20
|
+
const a = L()?.updates;
|
|
21
|
+
if (!a) {
|
|
22
|
+
r(null);
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
let d = !1;
|
|
26
|
+
const u = (h) => {
|
|
27
|
+
d || r(h);
|
|
28
|
+
};
|
|
29
|
+
a.status().then(u).catch(() => {
|
|
30
|
+
});
|
|
31
|
+
const y = a.onChanged(u);
|
|
32
|
+
return () => {
|
|
33
|
+
d = !0, y();
|
|
34
|
+
};
|
|
35
|
+
}, []);
|
|
36
|
+
const b = t?.enabled && O.has(t.status), { icon: f, label: v, tooltip: i, eventName: n, busy: k, tone: o } = T(() => {
|
|
37
|
+
const a = t?.availableVersion ? `v${t.availableVersion}` : e("desktopUpdate.sidebarUnknownVersion", {
|
|
38
|
+
defaultValue: "the latest version"
|
|
39
|
+
});
|
|
40
|
+
return t?.status === "downloaded" ? {
|
|
41
|
+
icon: E,
|
|
42
|
+
label: e("desktopUpdate.sidebarRestart", {
|
|
43
|
+
defaultValue: "Restart"
|
|
44
|
+
}),
|
|
45
|
+
tooltip: e("desktopUpdate.sidebarRestartTooltip", {
|
|
46
|
+
version: a,
|
|
47
|
+
defaultValue: "Restart to install {{version}}"
|
|
48
|
+
}),
|
|
49
|
+
eventName: j,
|
|
50
|
+
busy: !1,
|
|
51
|
+
tone: "ready"
|
|
52
|
+
} : t?.status === "downloading" ? {
|
|
53
|
+
icon: p,
|
|
54
|
+
label: e("desktopUpdate.sidebarDownloading", {
|
|
55
|
+
defaultValue: "Downloading"
|
|
56
|
+
}),
|
|
57
|
+
tooltip: e("desktopUpdate.sidebarDownloadingTooltip", {
|
|
58
|
+
version: a,
|
|
59
|
+
defaultValue: "Downloading update {{version}}"
|
|
60
|
+
}),
|
|
61
|
+
eventName: null,
|
|
62
|
+
busy: !0,
|
|
63
|
+
tone: "busy"
|
|
64
|
+
} : t?.status === "installing" ? {
|
|
65
|
+
icon: R,
|
|
66
|
+
label: e("desktopUpdate.sidebarInstalling", {
|
|
67
|
+
defaultValue: "Installing"
|
|
68
|
+
}),
|
|
69
|
+
tooltip: e("desktopUpdate.sidebarInstallingTooltip", {
|
|
70
|
+
version: a,
|
|
71
|
+
defaultValue: "Installing update {{version}}"
|
|
72
|
+
}),
|
|
73
|
+
eventName: null,
|
|
74
|
+
busy: !0,
|
|
75
|
+
tone: "busy"
|
|
76
|
+
} : t?.status === "error" ? {
|
|
77
|
+
icon: C,
|
|
78
|
+
label: e("desktopUpdate.sidebarRetry", {
|
|
79
|
+
defaultValue: "Retry"
|
|
80
|
+
}),
|
|
81
|
+
tooltip: t.error || e("desktopUpdate.sidebarRetryTooltip", {
|
|
82
|
+
defaultValue: "Retry update check"
|
|
83
|
+
}),
|
|
84
|
+
eventName: H,
|
|
85
|
+
busy: !1,
|
|
86
|
+
tone: "error"
|
|
87
|
+
} : {
|
|
88
|
+
icon: p,
|
|
89
|
+
label: e("desktopUpdate.sidebarUpdate", {
|
|
90
|
+
defaultValue: "Update"
|
|
91
|
+
}),
|
|
92
|
+
tooltip: e("desktopUpdate.sidebarUpdateTooltip", {
|
|
93
|
+
version: a,
|
|
94
|
+
defaultValue: "Update to {{version}}"
|
|
95
|
+
}),
|
|
96
|
+
eventName: P,
|
|
97
|
+
busy: !1,
|
|
98
|
+
tone: "available"
|
|
99
|
+
};
|
|
100
|
+
}, [t?.availableVersion, t?.error, t?.status, e]), m = I(() => {
|
|
101
|
+
n && window.dispatchEvent(new Event(n));
|
|
102
|
+
}, [n]);
|
|
103
|
+
if (!b) return null;
|
|
104
|
+
const g = o === "available" || o === "ready", U = o === "ready" ? "green" : "blue";
|
|
105
|
+
return /* @__PURE__ */ l(B, { label: i, position: "right", withArrow: !0, openDelay: 250, children: /* @__PURE__ */ w(
|
|
106
|
+
S,
|
|
107
|
+
{
|
|
108
|
+
className: s.desktopUpdateButton,
|
|
109
|
+
"data-tone": o,
|
|
110
|
+
"data-disabled": !n || void 0,
|
|
111
|
+
gap: 0,
|
|
112
|
+
align: "center",
|
|
113
|
+
onClick: m,
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ l(
|
|
116
|
+
_,
|
|
117
|
+
{
|
|
118
|
+
className: s.desktopUpdateButtonIndicator,
|
|
119
|
+
disabled: !g,
|
|
120
|
+
color: U,
|
|
121
|
+
inline: !0,
|
|
122
|
+
offset: 4,
|
|
123
|
+
position: "top-end",
|
|
124
|
+
processing: !0,
|
|
125
|
+
size: 10,
|
|
126
|
+
withBorder: !0,
|
|
127
|
+
children: /* @__PURE__ */ l(
|
|
128
|
+
x,
|
|
129
|
+
{
|
|
130
|
+
className: s.desktopUpdateButtonIcon,
|
|
131
|
+
"aria-label": i,
|
|
132
|
+
size: "lg",
|
|
133
|
+
variant: "light",
|
|
134
|
+
color: o === "ready" ? "green" : o === "error" ? "red" : "blue",
|
|
135
|
+
loading: k,
|
|
136
|
+
"data-button": !0,
|
|
137
|
+
children: /* @__PURE__ */ l(A, { icon: f, size: 18 })
|
|
138
|
+
}
|
|
139
|
+
)
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
c && /* @__PURE__ */ l(
|
|
143
|
+
z,
|
|
144
|
+
{
|
|
145
|
+
className: s.desktopUpdateButtonLabel,
|
|
146
|
+
fz: 10,
|
|
147
|
+
fw: 500,
|
|
148
|
+
lh: 1.4,
|
|
149
|
+
c: "var(--app-container-title-color)",
|
|
150
|
+
px: 4,
|
|
151
|
+
ta: "center",
|
|
152
|
+
children: v
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
) });
|
|
158
|
+
};
|
|
159
|
+
export {
|
|
160
|
+
Q as DesktopUpdateButton
|
|
161
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AA4CA,eAAO,MAAM,WAAW,GAAI,4CAIzB;IACD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CAmPA,CAAC"}
|