@layers-app/shared 0.4.6 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/default-workspace-avatar.jpg.js +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +82 -70
- 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/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
- 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/NavbarContent.d.ts.map +1 -1
- package/dist/components/AppContainer/components/NavbarContent.js +16 -2
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +51 -39
- 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/AppContainer/types.d.ts +12 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +18 -16
- package/dist/components/Chat/ChatInput/index.d.ts +13 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +264 -164
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
- package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +153 -118
- package/dist/components/Chat/MessageActions/index.d.ts +2 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +189 -50
- package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
- package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageAuthor/index.js +39 -25
- package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
- package/dist/components/Chat/MessageList/index.d.ts +17 -25
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +201 -149
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageMeta/index.js +21 -19
- 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/ColorPickerToolbar.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +97 -91
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
- package/dist/components/CommentComposer/index.d.ts +1 -1
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +70 -68
- package/dist/components/CommentComposer/types.d.ts +6 -0
- package/dist/components/CommentComposer/types.d.ts.map +1 -1
- package/dist/components/CustomKBD/index.js +21 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
- package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +81 -80
- package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/conditions.js +33 -17
- 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/NewToolbar/utils.d.ts +12 -0
- package/dist/components/NewToolbar/utils.d.ts.map +1 -0
- package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
- package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
- package/dist/components/Notification/InfiniteScroll.js +42 -0
- package/dist/components/Notification/Notification.d.ts +4 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.module.css.js +28 -4
- package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
- package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ActionBadge.js +53 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/InboxIcon.js +33 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.js +32 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
- package/dist/components/Notification/atoms/UnreadDot.js +23 -0
- package/dist/components/Notification/atoms/index.d.ts +5 -0
- package/dist/components/Notification/atoms/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/index.d.ts +8 -0
- package/dist/components/Notification/hooks/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.js +58 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
- package/dist/components/Notification/lib/api.d.ts +4 -0
- package/dist/components/Notification/lib/api.d.ts.map +1 -0
- package/dist/components/Notification/lib/api.js +19 -0
- package/dist/components/Notification/lib/index.d.ts +5 -0
- package/dist/components/Notification/lib/index.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.d.ts +10 -0
- package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.js +131 -0
- package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
- package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
- package/dist/components/Notification/lib/stripHtml.js +6 -0
- package/dist/components/Notification/lib/types.d.ts +45 -0
- package/dist/components/Notification/lib/types.d.ts.map +1 -0
- package/dist/components/Notification/lib/types.js +9 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxHeader.js +73 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxTabs.js +60 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationActions.js +64 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationContent.js +183 -0
- package/dist/components/Notification/molecules/index.d.ts +7 -0
- package/dist/components/Notification/molecules/index.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.js +100 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxPanel.js +99 -0
- package/dist/components/Notification/organisms/index.d.ts +3 -0
- package/dist/components/Notification/organisms/index.d.ts.map +1 -0
- package/dist/components/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/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +27 -26
- 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 +29 -28
- package/dist/helpers/getFileIcons.js +5 -5
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +11 -2
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +1 -0
- package/dist/helpers/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.js +576 -573
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
- package/package.json +5 -3
- package/dist/components/Notification/Notification.js +0 -119
- package/dist/components/Notification/NotificationCard.d.ts +0 -10
- package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
- package/dist/components/Notification/NotificationCard.js +0 -93
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { useNavigate as
|
|
5
|
-
import { ActionIcon as
|
|
6
|
-
import { useField as
|
|
7
|
-
import { useMediaQuery as
|
|
8
|
-
import { IconArrowLeft as
|
|
9
|
-
import { AppShell as
|
|
10
|
-
import { NavbarResizer as
|
|
11
|
-
import { useAppContainerDataStore as
|
|
2
|
+
import { useRef as N, useEffect as p, useMemo as P } from "react";
|
|
3
|
+
import { useTranslation as V } from "react-i18next";
|
|
4
|
+
import { useNavigate as k, useParams as D, useLocation as F, matchPath as H } from "react-router-dom";
|
|
5
|
+
import { ActionIcon as M, Title as R, TextInput as j, Flex as b, Text as E, Badge as O, Drawer as Q, Box as q } from "@mantine/core";
|
|
6
|
+
import { useField as G } from "@mantine/form";
|
|
7
|
+
import { useMediaQuery as J } from "@mantine/hooks";
|
|
8
|
+
import { IconArrowLeft as K } from "@tabler/icons-react";
|
|
9
|
+
import { AppShell as v } from "../../AppShell/AppShell.js";
|
|
10
|
+
import { NavbarResizer as U } from "../../NavbarResizer/NavbarResizer.js";
|
|
11
|
+
import { useAppContainerDataStore as X } from "../hooks/useAppContainerDataStore.js";
|
|
12
12
|
import { appContainerStore as n } from "../hooks/useAppContainerStore.js";
|
|
13
|
-
import { SidebarToggleButton as
|
|
14
|
-
import { SlideAnimation as
|
|
15
|
-
import
|
|
16
|
-
const
|
|
17
|
-
const { t: h } =
|
|
13
|
+
import { SidebarToggleButton as w } from "./SidebarToggleButton.js";
|
|
14
|
+
import { SlideAnimation as Y } from "./SlideAnimation.js";
|
|
15
|
+
import y from "../AppContainer.module.css.js";
|
|
16
|
+
const ce = (T) => {
|
|
17
|
+
const { t: h } = V("appContainer"), {
|
|
18
|
+
children: d,
|
|
19
|
+
navbarTitle: i,
|
|
20
|
+
onTitleChange: r,
|
|
21
|
+
isBeta: C,
|
|
22
|
+
bottomSlot: c,
|
|
23
|
+
widthOverride: S,
|
|
24
|
+
onWidthChange: W,
|
|
25
|
+
minWidth: I,
|
|
26
|
+
maxWidth: z
|
|
27
|
+
} = T, B = k(), { showToolbar: l, toolbarWidth: A } = n.useStore(), { formId: L } = D(), m = N(r);
|
|
18
28
|
p(() => {
|
|
19
29
|
m.current = r;
|
|
20
30
|
}, [r]);
|
|
21
|
-
const f =
|
|
31
|
+
const f = G({
|
|
22
32
|
initialValue: i || "",
|
|
23
33
|
onValueChange: (o) => {
|
|
24
34
|
m.current?.(o);
|
|
@@ -27,7 +37,7 @@ const se = (T) => {
|
|
|
27
37
|
p(() => {
|
|
28
38
|
f.setValue(i || "");
|
|
29
39
|
}, [i]);
|
|
30
|
-
const a =
|
|
40
|
+
const a = F(), u = X((o) => o.tools), s = P(() => u.find((o) => !!H({ path: o.path, end: !1 }, a.pathname)), [a.pathname, u]), g = J("(max-width: 768px)", !1, {
|
|
31
41
|
getInitialValueInEffect: !1
|
|
32
42
|
});
|
|
33
43
|
p(() => {
|
|
@@ -44,18 +54,18 @@ const se = (T) => {
|
|
|
44
54
|
minWidth: 0
|
|
45
55
|
},
|
|
46
56
|
children: [
|
|
47
|
-
s?.withBackButton &&
|
|
48
|
-
|
|
57
|
+
s?.withBackButton && L && s.name && /* @__PURE__ */ e(
|
|
58
|
+
M,
|
|
49
59
|
{
|
|
50
|
-
onClick: () =>
|
|
60
|
+
onClick: () => B(s?.path),
|
|
51
61
|
variant: "light",
|
|
52
62
|
size: "md",
|
|
53
63
|
color: "gray",
|
|
54
|
-
children: /* @__PURE__ */ e(
|
|
64
|
+
children: /* @__PURE__ */ e(K, { size: 18 })
|
|
55
65
|
}
|
|
56
66
|
),
|
|
57
|
-
/* @__PURE__ */ e(
|
|
58
|
-
|
|
67
|
+
/* @__PURE__ */ e(R, { order: 4, fz: 16, component: "div", style: { flex: 1, minWidth: 0 }, children: r ? /* @__PURE__ */ e(
|
|
68
|
+
j,
|
|
59
69
|
{
|
|
60
70
|
...f.getInputProps(),
|
|
61
71
|
placeholder: h("noName"),
|
|
@@ -63,7 +73,7 @@ const se = (T) => {
|
|
|
63
73
|
minLength: 1,
|
|
64
74
|
unstyled: !0,
|
|
65
75
|
classNames: {
|
|
66
|
-
input:
|
|
76
|
+
input: y.toolTitleInput
|
|
67
77
|
},
|
|
68
78
|
styles: {
|
|
69
79
|
root: {
|
|
@@ -83,10 +93,10 @@ const se = (T) => {
|
|
|
83
93
|
}
|
|
84
94
|
) : /* @__PURE__ */ t(b, { gap: "xs", children: [
|
|
85
95
|
/* @__PURE__ */ e(
|
|
86
|
-
|
|
96
|
+
E,
|
|
87
97
|
{
|
|
88
98
|
component: "span",
|
|
89
|
-
className:
|
|
99
|
+
className: y.toolTitleText,
|
|
90
100
|
truncate: "end",
|
|
91
101
|
style: {
|
|
92
102
|
fontSize: "inherit",
|
|
@@ -97,8 +107,8 @@ const se = (T) => {
|
|
|
97
107
|
children: i
|
|
98
108
|
}
|
|
99
109
|
),
|
|
100
|
-
|
|
101
|
-
|
|
110
|
+
C && /* @__PURE__ */ e(
|
|
111
|
+
O,
|
|
102
112
|
{
|
|
103
113
|
px: 8,
|
|
104
114
|
py: 4,
|
|
@@ -114,7 +124,7 @@ const se = (T) => {
|
|
|
114
124
|
}
|
|
115
125
|
);
|
|
116
126
|
return g ? /* @__PURE__ */ t(
|
|
117
|
-
|
|
127
|
+
Q,
|
|
118
128
|
{
|
|
119
129
|
opened: l,
|
|
120
130
|
onClose: n.api.closeToolbar,
|
|
@@ -141,32 +151,34 @@ const se = (T) => {
|
|
|
141
151
|
style: { borderBottom: "1px solid var(--app-shell-border-color, var(--mantine-color-default-border))" },
|
|
142
152
|
children: [
|
|
143
153
|
x,
|
|
144
|
-
/* @__PURE__ */ e(
|
|
154
|
+
/* @__PURE__ */ e(w, {})
|
|
145
155
|
]
|
|
146
156
|
}
|
|
147
157
|
),
|
|
148
|
-
/* @__PURE__ */ e(
|
|
158
|
+
/* @__PURE__ */ e(q, { flex: 1, mih: 0, style: { overflow: "auto" }, children: d }),
|
|
149
159
|
c
|
|
150
160
|
]
|
|
151
161
|
}
|
|
152
162
|
) : /* @__PURE__ */ e(
|
|
153
|
-
|
|
163
|
+
Y,
|
|
154
164
|
{
|
|
155
165
|
show: l,
|
|
156
166
|
width: "var(--toolbar-width)",
|
|
157
167
|
position: "left",
|
|
158
|
-
children: /* @__PURE__ */ t(
|
|
168
|
+
children: /* @__PURE__ */ t(v.LeftSidebar, { pos: "relative", children: [
|
|
159
169
|
l && /* @__PURE__ */ e(
|
|
160
|
-
|
|
170
|
+
U,
|
|
161
171
|
{
|
|
162
172
|
position: "left",
|
|
163
|
-
width:
|
|
164
|
-
onChange: n.api.setToolbarWidth
|
|
173
|
+
width: S ?? A,
|
|
174
|
+
onChange: W ?? n.api.setToolbarWidth,
|
|
175
|
+
minWidth: I,
|
|
176
|
+
maxWidth: z
|
|
165
177
|
}
|
|
166
178
|
),
|
|
167
|
-
/* @__PURE__ */ t(
|
|
179
|
+
/* @__PURE__ */ t(v.Header, { pl: 16, pr: 14, children: [
|
|
168
180
|
x,
|
|
169
|
-
/* @__PURE__ */ e(
|
|
181
|
+
/* @__PURE__ */ e(w, {})
|
|
170
182
|
] }),
|
|
171
183
|
d,
|
|
172
184
|
c
|
|
@@ -175,5 +187,5 @@ const se = (T) => {
|
|
|
175
187
|
);
|
|
176
188
|
};
|
|
177
189
|
export {
|
|
178
|
-
|
|
190
|
+
ce as ToolSidebar
|
|
179
191
|
};
|
|
@@ -1,2 +1,63 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DesktopBridge = {
|
|
2
|
+
getVersion?: () => Promise<string>;
|
|
3
|
+
collectDiagnostics?: () => Promise<{
|
|
4
|
+
ok: boolean;
|
|
5
|
+
archivePath?: string;
|
|
6
|
+
folderPath?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
}>;
|
|
9
|
+
onDiagnosticsProgress?: (cb: (progress: DesktopDiagnosticsProgress) => void) => () => void;
|
|
10
|
+
updates?: {
|
|
11
|
+
status: () => Promise<DesktopUpdateState>;
|
|
12
|
+
check: () => Promise<DesktopUpdateState>;
|
|
13
|
+
download: () => Promise<DesktopUpdateState>;
|
|
14
|
+
install: () => Promise<DesktopUpdateState>;
|
|
15
|
+
onChanged: (cb: (state: DesktopUpdateState) => void) => () => void;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type DesktopDiagnosticsProgress = {
|
|
19
|
+
phase: 'preparing' | 'copying' | 'analyzing' | 'archiving' | 'done' | 'error';
|
|
20
|
+
percent: number;
|
|
21
|
+
completedUnits?: number;
|
|
22
|
+
totalUnits?: number;
|
|
23
|
+
};
|
|
24
|
+
export type DesktopUpdateState = {
|
|
25
|
+
status: 'disabled' | 'idle' | 'checking' | 'available' | 'not_available' | 'downloading' | 'downloaded' | 'installing' | 'error';
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
currentVersion: string;
|
|
28
|
+
availableVersion?: string;
|
|
29
|
+
feedUrl?: string;
|
|
30
|
+
error?: string;
|
|
31
|
+
progress?: {
|
|
32
|
+
percent?: number;
|
|
33
|
+
transferredBytes?: number;
|
|
34
|
+
totalBytes?: number;
|
|
35
|
+
bytesPerSecond?: number;
|
|
36
|
+
};
|
|
37
|
+
canCheck: boolean;
|
|
38
|
+
canDownload: boolean;
|
|
39
|
+
canInstall: boolean;
|
|
40
|
+
};
|
|
41
|
+
export declare const getDesktopBridge: () => DesktopBridge | undefined;
|
|
42
|
+
export declare const DesktopSupportReportModal: ({ opened, onClose, }: {
|
|
43
|
+
opened: boolean;
|
|
44
|
+
onClose: () => void;
|
|
45
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare const DesktopDiagnosticsConsentModal: ({ opened, onClose, collecting, onCollectingChange, }: {
|
|
47
|
+
opened: boolean;
|
|
48
|
+
onClose: () => void;
|
|
49
|
+
collecting: boolean;
|
|
50
|
+
onCollectingChange: (collecting: boolean) => void;
|
|
51
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export declare const DesktopUpdateFlowModal: ({ opened, onClose, }: {
|
|
53
|
+
opened: boolean;
|
|
54
|
+
onClose: () => void;
|
|
55
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export declare const HelpMenu: ({ onReportProblemClick, onCheckUpdatesClick, onCollectDiagnosticsClick, diagnosticsCollecting, reportProblemTourTargetId, }: {
|
|
57
|
+
onReportProblemClick?: () => void;
|
|
58
|
+
onCheckUpdatesClick?: () => void;
|
|
59
|
+
onCollectDiagnosticsClick?: () => void;
|
|
60
|
+
diagnosticsCollecting?: boolean;
|
|
61
|
+
reportProblemTourTargetId?: string;
|
|
62
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
2
63
|
//# sourceMappingURL=HelpMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"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"}
|