@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.
Files changed (232) hide show
  1. package/dist/assets/default-workspace-avatar.jpg.js +1 -1
  2. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  3. package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
  4. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  5. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  6. package/dist/components/AppContainer/AppContainer.js +82 -70
  7. package/dist/components/AppContainer/AppContainer.module.css.js +20 -10
  8. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts +6 -0
  9. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.d.ts.map +1 -0
  10. package/dist/components/AppContainer/components/AppsSidebar/DesktopUpdateButton.js +161 -0
  11. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  12. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
  13. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  14. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +238 -105
  15. package/dist/components/AppContainer/components/Main.js +4 -4
  16. package/dist/components/AppContainer/components/NavbarContent.d.ts.map +1 -1
  17. package/dist/components/AppContainer/components/NavbarContent.js +16 -2
  18. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  19. package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
  20. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  21. package/dist/components/AppContainer/components/ToolSidebar.js +51 -39
  22. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts +62 -1
  23. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  24. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1107 -137
  25. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +158 -6
  26. package/dist/components/AppContainer/types.d.ts +12 -0
  27. package/dist/components/AppContainer/types.d.ts.map +1 -1
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
  29. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  30. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
  31. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +18 -16
  32. package/dist/components/Chat/ChatInput/index.d.ts +13 -1
  33. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  34. package/dist/components/Chat/ChatInput/index.js +264 -164
  35. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
  36. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
  37. package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
  38. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
  39. package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
  40. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  41. package/dist/components/Chat/ChatMessage/index.js +153 -118
  42. package/dist/components/Chat/MessageActions/index.d.ts +2 -0
  43. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  44. package/dist/components/Chat/MessageActions/index.js +189 -50
  45. package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
  46. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
  47. package/dist/components/Chat/MessageAuthor/index.js +39 -25
  48. package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
  49. package/dist/components/Chat/MessageList/index.d.ts +17 -25
  50. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  51. package/dist/components/Chat/MessageList/index.js +201 -149
  52. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -1
  53. package/dist/components/Chat/MessageMeta/index.js +21 -19
  54. package/dist/components/ColorPicker/ColorPicker.d.ts +3 -0
  55. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  56. package/dist/components/ColorPicker/ColorPicker.js +81 -76
  57. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
  58. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  59. package/dist/components/ColorPicker/ColorPickerToolbar.js +97 -91
  60. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
  61. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  62. package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
  63. package/dist/components/CommentComposer/index.d.ts +1 -1
  64. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  65. package/dist/components/CommentComposer/index.js +70 -68
  66. package/dist/components/CommentComposer/types.d.ts +6 -0
  67. package/dist/components/CommentComposer/types.d.ts.map +1 -1
  68. package/dist/components/CustomKBD/index.js +21 -22
  69. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  70. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  71. package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
  72. package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
  73. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  74. package/dist/components/EntityTitle/EntityTitle.js +81 -80
  75. package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
  76. package/dist/components/FormViewer/helpers/conditions.js +33 -17
  77. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +3 -1
  78. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -1
  79. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +26 -25
  80. package/dist/components/NewToolbar/utils.d.ts +12 -0
  81. package/dist/components/NewToolbar/utils.d.ts.map +1 -0
  82. package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
  83. package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
  84. package/dist/components/Notification/InfiniteScroll.js +42 -0
  85. package/dist/components/Notification/Notification.d.ts +4 -1
  86. package/dist/components/Notification/Notification.d.ts.map +1 -1
  87. package/dist/components/Notification/Notification.module.css.js +28 -4
  88. package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
  89. package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
  90. package/dist/components/Notification/atoms/ActionBadge.js +53 -0
  91. package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
  92. package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
  93. package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
  94. package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
  95. package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
  96. package/dist/components/Notification/atoms/InboxIcon.js +33 -0
  97. package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
  98. package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
  99. package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
  100. package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
  101. package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
  102. package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
  103. package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
  104. package/dist/components/Notification/atoms/TabBadge.js +32 -0
  105. package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
  106. package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
  107. package/dist/components/Notification/atoms/UnreadDot.js +23 -0
  108. package/dist/components/Notification/atoms/index.d.ts +5 -0
  109. package/dist/components/Notification/atoms/index.d.ts.map +1 -0
  110. package/dist/components/Notification/hooks/index.d.ts +8 -0
  111. package/dist/components/Notification/hooks/index.d.ts.map +1 -0
  112. package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
  113. package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
  114. package/dist/components/Notification/hooks/useInboxActions.js +58 -0
  115. package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
  116. package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
  117. package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
  118. package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
  119. package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
  120. package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
  121. package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
  122. package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
  123. package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
  124. package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
  125. package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
  126. package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
  127. package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
  128. package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
  129. package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
  130. package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
  131. package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
  132. package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
  133. package/dist/components/Notification/lib/api.d.ts +4 -0
  134. package/dist/components/Notification/lib/api.d.ts.map +1 -0
  135. package/dist/components/Notification/lib/api.js +19 -0
  136. package/dist/components/Notification/lib/index.d.ts +5 -0
  137. package/dist/components/Notification/lib/index.d.ts.map +1 -0
  138. package/dist/components/Notification/lib/notificationText.d.ts +10 -0
  139. package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
  140. package/dist/components/Notification/lib/notificationText.js +131 -0
  141. package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
  142. package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
  143. package/dist/components/Notification/lib/stripHtml.js +6 -0
  144. package/dist/components/Notification/lib/types.d.ts +45 -0
  145. package/dist/components/Notification/lib/types.d.ts.map +1 -0
  146. package/dist/components/Notification/lib/types.js +9 -0
  147. package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
  148. package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
  149. package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
  150. package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
  151. package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
  152. package/dist/components/Notification/molecules/InboxHeader.js +73 -0
  153. package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
  154. package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
  155. package/dist/components/Notification/molecules/InboxTabs.js +60 -0
  156. package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
  157. package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
  158. package/dist/components/Notification/molecules/NotificationActions.js +64 -0
  159. package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
  160. package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
  161. package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
  162. package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
  163. package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
  164. package/dist/components/Notification/molecules/NotificationContent.js +183 -0
  165. package/dist/components/Notification/molecules/index.d.ts +7 -0
  166. package/dist/components/Notification/molecules/index.d.ts.map +1 -0
  167. package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
  168. package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
  169. package/dist/components/Notification/organisms/InboxItem.js +100 -0
  170. package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
  171. package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
  172. package/dist/components/Notification/organisms/InboxPanel.js +99 -0
  173. package/dist/components/Notification/organisms/index.d.ts +3 -0
  174. package/dist/components/Notification/organisms/index.d.ts.map +1 -0
  175. package/dist/components/OnboardingTour/index.d.ts +1 -1
  176. package/dist/components/OnboardingTour/index.d.ts.map +1 -1
  177. package/dist/components/OnboardingTour/useOnboardingTour.d.ts +2 -0
  178. package/dist/components/OnboardingTour/useOnboardingTour.d.ts.map +1 -1
  179. package/dist/components/OnboardingTour/useOnboardingTour.js +63 -51
  180. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  181. package/dist/components/modals/RemoveConfirmModal.js +27 -26
  182. package/dist/config/brand.d.ts.map +1 -1
  183. package/dist/config/brand.js +29 -29
  184. package/dist/config/envConfig.d.ts +4 -0
  185. package/dist/config/envConfig.d.ts.map +1 -1
  186. package/dist/config/envConfig.js +29 -28
  187. package/dist/helpers/getFileIcons.js +5 -5
  188. package/dist/helpers/getFileType.d.ts.map +1 -1
  189. package/dist/helpers/getFileType.js +11 -2
  190. package/dist/helpers/platform.d.ts +1 -1
  191. package/dist/helpers/platform.d.ts.map +1 -1
  192. package/dist/helpers/platform.js +1 -0
  193. package/dist/helpers/showNotifications.d.ts +8 -14
  194. package/dist/helpers/showNotifications.d.ts.map +1 -1
  195. package/dist/helpers/showNotifications.js +107 -111
  196. package/dist/helpers/showNotifications.module.css.js +4 -16
  197. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  198. package/dist/hooks/useDateUtils.js +19 -23
  199. package/dist/index.css +1 -1
  200. package/dist/index.js +576 -573
  201. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
  202. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
  203. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
  204. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
  205. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
  206. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
  207. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
  208. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
  209. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
  210. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
  211. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
  212. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
  213. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
  214. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
  215. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
  216. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
  217. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
  218. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
  219. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
  220. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
  221. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
  222. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
  223. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
  224. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
  225. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
  226. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
  227. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
  228. package/package.json +5 -3
  229. package/dist/components/Notification/Notification.js +0 -119
  230. package/dist/components/Notification/NotificationCard.d.ts +0 -10
  231. package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
  232. 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 B, useEffect as p, useMemo as W } from "react";
3
- import { useTranslation as A } from "react-i18next";
4
- import { useNavigate as L, useParams as N, useLocation as P, matchPath as V } from "react-router-dom";
5
- import { ActionIcon as k, Title as D, TextInput as F, Flex as b, Text as H, Badge as M, Drawer as R, Box as j } from "@mantine/core";
6
- import { useField as E } from "@mantine/form";
7
- import { useMediaQuery as O } from "@mantine/hooks";
8
- import { IconArrowLeft as Q } from "@tabler/icons-react";
9
- import { AppShell as y } from "../../AppShell/AppShell.js";
10
- import { NavbarResizer as q } from "../../NavbarResizer/NavbarResizer.js";
11
- import { useAppContainerDataStore as G } from "../hooks/useAppContainerDataStore.js";
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 v } from "./SidebarToggleButton.js";
14
- import { SlideAnimation as J } from "./SlideAnimation.js";
15
- import w from "../AppContainer.module.css.js";
16
- const se = (T) => {
17
- const { t: h } = A("appContainer"), { children: d, navbarTitle: i, onTitleChange: r, isBeta: S, bottomSlot: c } = T, C = L(), { showToolbar: l, toolbarWidth: I } = n.useStore(), { formId: z } = N(), m = B(r);
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 = E({
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 = P(), u = G((o) => o.tools), s = W(() => u.find((o) => !!V({ path: o.path, end: !1 }, a.pathname)), [a.pathname, u]), g = O("(max-width: 768px)", !1, {
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 && z && s.name && /* @__PURE__ */ e(
48
- k,
57
+ s?.withBackButton && L && s.name && /* @__PURE__ */ e(
58
+ M,
49
59
  {
50
- onClick: () => C(s?.path),
60
+ onClick: () => B(s?.path),
51
61
  variant: "light",
52
62
  size: "md",
53
63
  color: "gray",
54
- children: /* @__PURE__ */ e(Q, { size: 18 })
64
+ children: /* @__PURE__ */ e(K, { size: 18 })
55
65
  }
56
66
  ),
57
- /* @__PURE__ */ e(D, { order: 4, fz: 16, component: "div", style: { flex: 1, minWidth: 0 }, children: r ? /* @__PURE__ */ e(
58
- F,
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: w.toolTitleInput
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
- H,
96
+ E,
87
97
  {
88
98
  component: "span",
89
- className: w.toolTitleText,
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
- S && /* @__PURE__ */ e(
101
- M,
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
- R,
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(v, {})
154
+ /* @__PURE__ */ e(w, {})
145
155
  ]
146
156
  }
147
157
  ),
148
- /* @__PURE__ */ e(j, { flex: 1, mih: 0, style: { overflow: "auto" }, children: d }),
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
- J,
163
+ Y,
154
164
  {
155
165
  show: l,
156
166
  width: "var(--toolbar-width)",
157
167
  position: "left",
158
- children: /* @__PURE__ */ t(y.LeftSidebar, { pos: "relative", children: [
168
+ children: /* @__PURE__ */ t(v.LeftSidebar, { pos: "relative", children: [
159
169
  l && /* @__PURE__ */ e(
160
- q,
170
+ U,
161
171
  {
162
172
  position: "left",
163
- width: I,
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(y.Header, { pl: 16, pr: 14, children: [
179
+ /* @__PURE__ */ t(v.Header, { pl: 16, pr: 14, children: [
168
180
  x,
169
- /* @__PURE__ */ e(v, {})
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
- se as ToolSidebar
190
+ ce as ToolSidebar
179
191
  };
@@ -1,2 +1,63 @@
1
- export declare const HelpMenu: () => import("react/jsx-runtime").JSX.Element;
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":"AAmCA,eAAO,MAAM,QAAQ,+CA2RpB,CAAC"}
1
+ {"version":3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