@layers-app/shared 0.4.5 → 0.4.6

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 (128) hide show
  1. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  2. package/dist/components/AppContainer/AppContainer.js +72 -79
  3. package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
  4. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  5. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  6. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
  8. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  9. package/dist/components/AppContainer/components/Header.js +6 -5
  10. package/dist/components/AppContainer/components/Main.js +4 -4
  11. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  12. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  14. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  15. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
  16. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  17. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  18. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  19. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  21. package/dist/components/AppContainer/types.d.ts +1 -0
  22. package/dist/components/AppContainer/types.d.ts.map +1 -1
  23. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  24. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
  25. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  26. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +68 -62
  27. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  28. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  30. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  32. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  33. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  34. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  35. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +135 -80
  36. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  37. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  38. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  39. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  40. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  41. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +5 -5
  42. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +40 -28
  43. package/dist/components/Chat/ChatInput/index.d.ts +29 -1
  44. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  45. package/dist/components/Chat/ChatInput/index.js +178 -118
  46. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
  47. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
  48. package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
  49. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +9 -9
  50. package/dist/components/Chat/ChatMessage/index.d.ts +2 -0
  51. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  52. package/dist/components/Chat/ChatMessage/index.js +136 -118
  53. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
  54. package/dist/components/Chat/MessageActions/index.d.ts +7 -0
  55. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  56. package/dist/components/Chat/MessageActions/index.js +33 -30
  57. package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -10
  58. package/dist/components/Chat/MessageList/index.d.ts +30 -3
  59. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  60. package/dist/components/Chat/MessageList/index.js +154 -66
  61. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +7 -7
  62. package/dist/components/Chat/MessageReactions/index.d.ts +17 -0
  63. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -1
  64. package/dist/components/Chat/MessageReactions/index.js +60 -28
  65. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +6 -4
  66. package/dist/components/Chat/MessageStatus/index.d.ts +1 -1
  67. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -1
  68. package/dist/components/Chat/MessageStatus/index.js +49 -34
  69. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  70. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  71. package/dist/components/ColorPicker/ColorPicker.module.css.js +26 -20
  72. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  73. package/dist/components/ColorPicker/ColorPickerList.js +81 -68
  74. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  75. package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
  76. package/dist/components/ColorPicker/icons.js +5 -5
  77. package/dist/components/ColorPicker/types.d.ts +6 -0
  78. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  79. package/dist/components/ColorPicker/types.js +53 -11
  80. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  81. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  82. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  83. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  84. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  85. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  86. package/dist/components/EmojiPicker/EmojiPicker.d.ts +16 -1
  87. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  88. package/dist/components/EmojiPicker/EmojiPicker.js +121 -86
  89. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  90. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  91. package/dist/components/EntityIcon.d.ts +1 -0
  92. package/dist/components/EntityIcon.d.ts.map +1 -1
  93. package/dist/components/EntityIcon.js +80 -32
  94. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  95. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  96. package/dist/components/ErrorPage/components/Error403.js +25 -21
  97. package/dist/components/ErrorPage/index.d.ts +5 -1
  98. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  99. package/dist/components/ErrorPage/index.js +17 -10
  100. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  101. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  102. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  103. package/dist/components/NavMenu/NavMenu.js +54 -44
  104. package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
  105. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  106. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  107. package/dist/components/NavMenu/types.d.ts +4 -0
  108. package/dist/components/NavMenu/types.d.ts.map +1 -1
  109. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  110. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  111. package/dist/config/envConfig.d.ts +2 -0
  112. package/dist/config/envConfig.d.ts.map +1 -1
  113. package/dist/config/envConfig.js +41 -37
  114. package/dist/helpers/showNotifications.d.ts +15 -0
  115. package/dist/helpers/showNotifications.d.ts.map +1 -1
  116. package/dist/helpers/showNotifications.js +114 -72
  117. package/dist/helpers/showNotifications.module.css.js +16 -4
  118. package/dist/hooks/useUiPref.d.ts +2 -0
  119. package/dist/hooks/useUiPref.d.ts.map +1 -0
  120. package/dist/hooks/useUiPref.js +80 -0
  121. package/dist/index.css +1 -1
  122. package/dist/index.d.ts +1 -0
  123. package/dist/index.d.ts.map +1 -1
  124. package/dist/index.js +550 -540
  125. package/dist/lang/locales/ui_en.json.js +1 -1
  126. package/dist/lang/locales/ui_es.json.js +1 -1
  127. package/dist/lang/locales/ui_ru.json.js +1 -1
  128. package/package.json +1 -1
@@ -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;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
+ {"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AA+FD,eAAO,MAAM,YAAY,uNA1EtB,iBAAiB;;;;;;;;CA6ElB,CAAC"}
@@ -1,100 +1,93 @@
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,
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { useEffect as N } from "react";
3
+ import { useMantineColorScheme as P, Stack as E, Flex as O } from "@mantine/core";
4
+ import { isAppMode as $ } from "../../helpers/isAppMode.js";
5
+ import { useQueryParam as F } from "../../hooks/useNumberQueryParam.js";
6
+ import { AppShell as o } from "../AppShell/AppShell.js";
7
+ import { useMeetWidget as K } from "./MeetWidgetContext.js";
8
+ import { AppsSidebar as Q } from "./components/AppsSidebar/AppsSidebar.js";
9
+ import { Header as R } from "./components/Header.js";
10
+ import { Main as _ } from "./components/Main.js";
11
+ import q from "./components/NavbarContent.js";
12
+ import { RightSidebar as z } from "./components/RightSidebar.js";
13
+ import { ToolSidebar as G } from "./components/ToolSidebar.js";
14
+ import { ToolbarNewButton as I } from "./components/ToolbarNewButton.js";
15
+ import { useAppContainerDataStore as J } from "./hooks/useAppContainerDataStore.js";
16
+ import { appContainerStore as L } from "./hooks/useAppContainerStore.js";
17
+ const U = ({
18
+ header: l,
19
+ content: d,
20
+ toolbar: i,
21
+ navbarTitle: h,
22
+ footer: n,
23
+ onTitleChange: c,
24
+ trashMenu: f,
25
+ rightbar: m,
26
+ onInviteClick: u,
27
+ showAppsSidebar: S = !0,
28
+ headerBorderless: b = !1,
29
+ withBg: x = !1,
30
+ isBeta: g = !1,
31
+ hideHeader: w = !1,
32
+ showSearch: C = !0,
33
+ showMore: A = !0,
35
34
  showBorders: y = !0,
36
- showLogo: W = !1
35
+ showLogo: M = !1
37
36
  }) => {
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,
37
+ const { toolbarWidth: W, rightbarWidth: k, layout: s } = L.useStore(), v = J((H) => H.user), a = $(v.mode, "DESKTOP"), { setColorScheme: p } = P(), t = F("theme"), T = K();
38
+ N(() => {
39
+ !a && (t === "dark" || t === "light") && p(t);
40
+ }, [t, p, a]);
41
+ const j = {
42
+ "--toolbar-width": `${W}px`,
43
+ "--rightbar-width": `${k}px`
44
+ }, B = s !== "nothing" && !w, D = s === "default" && !!i;
45
+ return /* @__PURE__ */ r(o, { style: j, children: [
46
+ S && /* @__PURE__ */ e(o.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ e(
47
+ Q,
54
48
  {
55
- onInviteClick: g,
56
- trashMenu: b,
57
- showSearch: T,
58
- showMore: v,
49
+ onInviteClick: u,
50
+ trashMenu: f,
51
+ showSearch: C,
52
+ showMore: A,
59
53
  showBorders: y,
60
- showLogo: W
54
+ showLogo: M
61
55
  }
62
56
  ) }),
63
- /* @__PURE__ */ o(t.Section, { flex: 1, display: "flex", pos: "relative", children: [
64
- d && /* @__PURE__ */ e(
65
- I,
57
+ /* @__PURE__ */ r(o.Section, { flex: 1, display: "flex", pos: "relative", children: [
58
+ D && /* @__PURE__ */ e(
59
+ G,
66
60
  {
67
- isBeta: M,
68
- onTitleChange: S,
69
- navbarTitle: u,
70
- bottomSlot: c ? null : i,
71
- children: n
61
+ isBeta: g,
62
+ onTitleChange: c,
63
+ navbarTitle: h,
64
+ children: i
72
65
  }
73
66
  ),
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,
67
+ T,
68
+ /* @__PURE__ */ r(E, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
69
+ B && /* @__PURE__ */ e(
70
+ o.Header,
78
71
  {
79
72
  px: "sm",
80
- style: w ? { borderBottom: "none" } : void 0,
81
- children: /* @__PURE__ */ e(_, { children: h })
73
+ style: b ? { borderBottom: "none" } : void 0,
74
+ children: /* @__PURE__ */ e(R, { children: l })
82
75
  }
83
76
  ),
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 })
77
+ /* @__PURE__ */ r(O, { mih: 0, gap: 0, h: "100%", children: [
78
+ /* @__PURE__ */ e(o.WorkContent, { children: /* @__PURE__ */ r(_, { withBg: x, children: [
79
+ d,
80
+ n && /* @__PURE__ */ e("footer", { children: n })
88
81
  ] }) }),
89
- a && /* @__PURE__ */ e(G, { children: a })
82
+ m && /* @__PURE__ */ e(z, { children: m })
90
83
  ] })
91
84
  ] })
92
85
  ] })
93
86
  ] });
94
- }, Se = Object.assign(Y, {
95
- NavbarContent: z,
96
- NewButton: J
87
+ }, he = Object.assign(U, {
88
+ NavbarContent: q,
89
+ NewButton: I
97
90
  });
98
91
  export {
99
- Se as AppContainer
92
+ he as AppContainer
100
93
  };
@@ -1,17 +1,17 @@
1
- const t = "_toolTitleInput_7pu9q_37", n = "_appSidebarButton_7pu9q_67", o = "_slideContainer_7pu9q_109", e = "_slideContent_7pu9q_121", i = "_main_7pu9q_151", l = "_floatingMeetSlot_7pu9q_169", a = {
1
+ const t = "_toolTitleInput_1nq45_37", n = "_appSidebarButton_1nq45_67", e = "_sidebarSyncStatus_1nq45_109", o = "_slideContainer_1nq45_121", s = "_slideContent_1nq45_133", i = "_main_1nq45_163", a = {
2
2
  toolTitleInput: t,
3
3
  appSidebarButton: n,
4
+ sidebarSyncStatus: e,
4
5
  slideContainer: o,
5
- slideContent: e,
6
- main: i,
7
- floatingMeetSlot: l
6
+ slideContent: s,
7
+ main: i
8
8
  };
9
9
  export {
10
10
  n as appSidebarButton,
11
11
  a as default,
12
- l as floatingMeetSlot,
13
12
  i as main,
13
+ e as sidebarSyncStatus,
14
14
  o as slideContainer,
15
- e as slideContent,
15
+ s as slideContent,
16
16
  t as toolTitleInput
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,GAAI,2BAGxB;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,4CAoEA,CAAC"}
1
+ {"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,GAAI,2BAGxB;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,4CAsEA,CAAC"}
@@ -1,9 +1,9 @@
1
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
2
  import { useTranslation as u } from "react-i18next";
3
- import { Search01Icon as b, Notification02Icon as v } from "@hugeicons/core-free-icons";
3
+ import { Search01Icon as b, Notification02Icon as g } from "@hugeicons/core-free-icons";
4
4
  import { HugeiconsIcon as p } from "@hugeicons/react";
5
- import { Stack as w, ActionIcon as g, Tooltip as n, Menu as a } from "@mantine/core";
6
- import { isFeature as k } from "../../../../helpers/feature.js";
5
+ import { Stack as w, ActionIcon as k, Tooltip as a, Menu as n } from "@mantine/core";
6
+ import { isFeature as v } from "../../../../helpers/feature.js";
7
7
  import { openSearchModal as y } from "../../../../store/searchModal.js";
8
8
  import { Notification as A } from "../../../Notification/Notification.js";
9
9
  import { WorkspaceAvatar as l } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
@@ -14,62 +14,64 @@ const H = ({
14
14
  showSearch: d = !0,
15
15
  showLogo: h = !1
16
16
  }) => {
17
- const { t: i } = u("appContainer"), { workspaceMenu: r, isAnonym: t, publicMode: c, navbarDisplayFormat: f } = z(), e = f === "iconsAndLabels";
17
+ const { t: o } = u("appContainer"), { workspaceMenu: r, isAnonym: t, publicMode: c, navbarDisplayFormat: f } = z(), e = f === "iconsAndLabels";
18
18
  return /* @__PURE__ */ s(w, { gap: 8, align: "center", pb: 8, children: [
19
- h ? /* @__PURE__ */ o(l, { size: 36 }) : /* @__PURE__ */ o(
19
+ h ? /* @__PURE__ */ i(l, { size: 36 }) : /* @__PURE__ */ i(
20
20
  S,
21
21
  {
22
22
  ...r,
23
23
  isAnonym: t,
24
24
  publicMode: c,
25
- children: /* @__PURE__ */ o(
26
- g,
25
+ children: /* @__PURE__ */ i(
26
+ k,
27
27
  {
28
+ "data-cy": "workspace-menu-trigger",
29
+ "data-testid": "workspace-menu-trigger",
28
30
  size: "lg",
29
31
  variant: "transparent",
30
32
  style: { overflow: "visible" },
31
- children: /* @__PURE__ */ o(
32
- n,
33
+ children: /* @__PURE__ */ i(
34
+ a,
33
35
  {
34
36
  label: r.active?.workspaceName,
35
37
  disabled: !r.active?.workspaceName,
36
38
  openDelay: 400,
37
39
  position: "right",
38
40
  withArrow: !0,
39
- children: /* @__PURE__ */ o(l, { workspace: r.active, size: 36 })
41
+ children: /* @__PURE__ */ i(l, { workspace: r.active, size: 36 })
40
42
  }
41
43
  )
42
44
  }
43
45
  )
44
46
  }
45
47
  ),
46
- d && !t && !c && /* @__PURE__ */ o(n, { label: i("search"), position: "right", disabled: e, children: /* @__PURE__ */ o(
48
+ d && !t && !c && /* @__PURE__ */ i(a, { label: o("search"), position: "right", disabled: e, children: /* @__PURE__ */ i(
47
49
  m,
48
50
  {
49
- title: e ? i("search") : null,
50
- icon: /* @__PURE__ */ o(p, { icon: b, size: 20 }),
51
+ title: e ? o("search") : null,
52
+ icon: /* @__PURE__ */ i(p, { icon: b, size: 20 }),
51
53
  onClick: () => {
52
54
  y();
53
55
  }
54
56
  }
55
57
  ) }),
56
- k() && !t && /* @__PURE__ */ s(a, { position: "right-start", children: [
57
- /* @__PURE__ */ o(a.Target, { children: /* @__PURE__ */ o(
58
- n,
58
+ v() && !t && /* @__PURE__ */ s(n, { position: "right-start", children: [
59
+ /* @__PURE__ */ i(n.Target, { children: /* @__PURE__ */ i(
60
+ a,
59
61
  {
60
- label: i("activity"),
62
+ label: o("activity"),
61
63
  position: "right",
62
64
  disabled: e,
63
- children: /* @__PURE__ */ o(
65
+ children: /* @__PURE__ */ i(
64
66
  m,
65
67
  {
66
- title: e ? i("activity") : null,
67
- icon: /* @__PURE__ */ o(p, { icon: v, size: 20 })
68
+ title: e ? o("activity") : null,
69
+ icon: /* @__PURE__ */ i(p, { icon: g, size: 20 })
68
70
  }
69
71
  )
70
72
  }
71
73
  ) }),
72
- /* @__PURE__ */ o(a.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ o(A, {}) })
74
+ /* @__PURE__ */ i(n.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ i(A, {}) })
73
75
  ] })
74
76
  ] });
75
77
  };
@@ -1 +1 @@
1
- {"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAuBA,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,4CAyGA,CAAC"}
1
+ {"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAwBA,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,4CAoHA,CAAC"}
@@ -1,27 +1,35 @@
1
1
  import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as v } from "react-i18next";
2
+ import { useTranslation as M } from "react-i18next";
3
3
  import { Link as x } from "react-router-dom";
4
4
  import { Delete03Icon as A, UserAdd02Icon as D, HelpCircleIcon as z } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as p } from "@hugeicons/react";
6
- import { Stack as a, Menu as r, Tooltip as t, ActionIcon as C } from "@mantine/core";
7
- import { IconUserCircle as S } from "@tabler/icons-react";
8
- import { usePlatform as U } from "../../../../hooks/usePlatform.js";
9
- import { useTrashModalStore as y, openTrashModal as L, closeTrashModal as j } from "../../../../store/trashModal.js";
10
- import { useAppContainerDataStore as H } from "../../hooks/useAppContainerDataStore.js";
11
- import { AppSidebarButton as c } from "../AppSidebarButton.js";
12
- import { HelpMenu as k } from "../menus/HelpMenu/HelpMenu.js";
13
- import { MenuUserDropdown as B } from "../menus/UserMenu/MenuUserDropdown.js";
14
- const X = ({
5
+ import { HugeiconsIcon as a } from "@hugeicons/react";
6
+ import { Stack as c, Menu as r, Tooltip as s, ActionIcon as C } from "@mantine/core";
7
+ import { IconUserCircle as U } from "@tabler/icons-react";
8
+ import { usePlatform as L } from "../../../../hooks/usePlatform.js";
9
+ import { useTrashModalStore as j, openTrashModal as H, closeTrashModal as k } from "../../../../store/trashModal.js";
10
+ import { useAppContainerDataStore as B } from "../../hooks/useAppContainerDataStore.js";
11
+ import F from "../../AppContainer.module.css.js";
12
+ import { AppSidebarButton as p } from "../AppSidebarButton.js";
13
+ import { HelpMenu as G } from "../menus/HelpMenu/HelpMenu.js";
14
+ import { MenuUserDropdown as N } from "../menus/UserMenu/MenuUserDropdown.js";
15
+ const $ = ({
15
16
  trashMenu: d,
16
17
  onInviteClick: h,
17
- showBorders: g = !0
18
+ showBorders: S = !0
18
19
  }) => {
19
- const { t: e } = v("appContainer"), b = U(), { user: m, isAnonym: l, userMenuItems: w, publicMode: T, navbarDisplayFormat: I } = H(), M = y((s) => s.opened), f = !l && !T && m.role !== "mG" && d, u = !l && b.has("inviteUsers") && h, i = I === "iconsAndLabels";
20
+ const { t: e } = M("appContainer"), w = L(), {
21
+ user: m,
22
+ isAnonym: t,
23
+ userMenuItems: T,
24
+ publicMode: f,
25
+ navbarDisplayFormat: v,
26
+ syncStatusSlot: u
27
+ } = B(), y = j((l) => l.opened), g = !t && !f && m.role !== "mG" && d, b = !t && w.has("inviteUsers") && h, i = v === "iconsAndLabels", I = !t && !f && u;
20
28
  return /* @__PURE__ */ n(
21
- a,
29
+ c,
22
30
  {
23
31
  style: {
24
- borderTop: g ? "1px solid var(--app-shell-border)" : void 0
32
+ borderTop: S ? "1px solid var(--app-shell-border)" : void 0
25
33
  },
26
34
  flex: 1,
27
35
  pt: 8,
@@ -29,34 +37,34 @@ const X = ({
29
37
  align: "center",
30
38
  children: [
31
39
  /* @__PURE__ */ n(
32
- a,
40
+ c,
33
41
  {
34
- justify: !f && !u ? "end" : "space-between",
42
+ justify: !g && !b ? "end" : "space-between",
35
43
  gap: 8,
36
44
  flex: 1,
37
45
  children: [
38
- f && /* @__PURE__ */ n(
46
+ g && /* @__PURE__ */ n(
39
47
  r,
40
48
  {
41
49
  position: "right",
42
50
  offset: 6,
43
51
  width: 360,
44
- opened: M,
45
- onChange: (s) => {
46
- s ? L() : j();
52
+ opened: y,
53
+ onChange: (l) => {
54
+ l ? H() : k();
47
55
  },
48
56
  children: [
49
57
  /* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
50
- t,
58
+ s,
51
59
  {
52
60
  label: e("trash"),
53
61
  position: "right",
54
62
  disabled: i,
55
63
  children: /* @__PURE__ */ o(
56
- c,
64
+ p,
57
65
  {
58
66
  title: i ? e("trash") : null,
59
- icon: /* @__PURE__ */ o(p, { icon: A, size: 20 })
67
+ icon: /* @__PURE__ */ o(a, { icon: A, size: 20 })
60
68
  }
61
69
  )
62
70
  }
@@ -65,34 +73,35 @@ const X = ({
65
73
  ]
66
74
  }
67
75
  ),
68
- /* @__PURE__ */ n(a, { gap: 8, children: [
69
- u && /* @__PURE__ */ o(t, { label: e("invite"), position: "right", disabled: i, children: /* @__PURE__ */ o(
70
- c,
76
+ /* @__PURE__ */ n(c, { gap: 8, children: [
77
+ b && /* @__PURE__ */ o(s, { label: e("invite"), position: "right", disabled: i, children: /* @__PURE__ */ o(
78
+ p,
71
79
  {
72
80
  title: i ? e("invite") : null,
73
- icon: /* @__PURE__ */ o(p, { icon: D, size: 20 }),
81
+ icon: /* @__PURE__ */ o(a, { icon: D, size: 20 }),
74
82
  onClick: h
75
83
  }
76
84
  ) }),
77
85
  /* @__PURE__ */ n(r, { position: "right-end", offset: 6, width: 260, children: [
78
- /* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(t, { label: e("help"), position: "right", disabled: i, children: /* @__PURE__ */ o(
79
- c,
86
+ /* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(s, { label: e("help"), position: "right", disabled: i, children: /* @__PURE__ */ o(
87
+ p,
80
88
  {
81
89
  title: i ? e("help") : null,
82
- icon: /* @__PURE__ */ o(p, { icon: z, size: 20 })
90
+ icon: /* @__PURE__ */ o(a, { icon: z, size: 20 })
83
91
  }
84
92
  ) }) }),
85
- /* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(k, {}) })
86
- ] })
93
+ /* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(G, {}) })
94
+ ] }),
95
+ I && /* @__PURE__ */ o("div", { className: F.sidebarSyncStatus, children: u })
87
96
  ] })
88
97
  ]
89
98
  }
90
99
  ),
91
- l ? /* @__PURE__ */ o(x, { to: "/login", children: /* @__PURE__ */ o(t, { label: "Log in", position: "right", children: /* @__PURE__ */ o(C, { size: "lg", variant: "light", children: /* @__PURE__ */ o(S, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
92
- B,
100
+ t ? /* @__PURE__ */ o(x, { to: "/login", children: /* @__PURE__ */ o(s, { label: "Log in", position: "right", children: /* @__PURE__ */ o(C, { size: "lg", variant: "light", children: /* @__PURE__ */ o(U, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
101
+ N,
93
102
  {
94
103
  user: m,
95
- menuItems: w,
104
+ menuItems: T,
96
105
  position: "right-end"
97
106
  }
98
107
  )
@@ -101,5 +110,5 @@ const X = ({
101
110
  );
102
111
  };
103
112
  export {
104
- X as UserSection
113
+ $ as UserSection
105
114
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AAED,eAAO,MAAM,MAAM,GAAI,cAAc,iBAAiB,4CAOrD,CAAC"}
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AAED,eAAO,MAAM,MAAM,GAAI,cAAc,iBAAiB,4CAOrD,CAAC"}
@@ -1,9 +1,10 @@
1
- import { jsxs as e, Fragment as o, jsx as t } from "react/jsx-runtime";
2
- import { SidebarToggleButton as n } from "./SidebarToggleButton.js";
3
- const p = ({ children: r }) => /* @__PURE__ */ e(o, { children: [
4
- /* @__PURE__ */ t(n, { forOpen: !0 }),
1
+ import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
+ import { Flex as t } from "@mantine/core";
3
+ import { SidebarToggleButton as i } from "./SidebarToggleButton.js";
4
+ const a = ({ children: r }) => /* @__PURE__ */ e(t, { align: "center", gap: 8, h: "100%", w: "100%", miw: 0, children: [
5
+ /* @__PURE__ */ o(i, { forOpen: !0 }),
5
6
  r
6
7
  ] });
7
8
  export {
8
- p as Header
9
+ a as Header
9
10
  };
@@ -1,16 +1,16 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { appContainerStore as n } from "../hooks/useAppContainerStore.js";
3
3
  import s from "../AppContainer.module.css.js";
4
- const p = ({ children: o, withBg: a = !1 }) => {
5
- const r = n.useStore((t) => t.showToolbar);
4
+ const p = ({ children: o, withBg: r = !1 }) => {
5
+ const a = n.useStore((t) => t.showToolbar);
6
6
  return /* @__PURE__ */ e(
7
7
  "main",
8
8
  {
9
9
  className: s.main,
10
- "data-tool-sidebar-opened": r,
10
+ "data-tool-sidebar-opened": a,
11
11
  "data-app-container": !0,
12
12
  style: {
13
- backgroundColor: a ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
13
+ backgroundColor: r ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
14
14
  },
15
15
  children: o
16
16
  }
@@ -3,13 +3,13 @@ import { useIsFirstRender as a } from "@mantine/hooks";
3
3
  import { AnimatePresence as m, motion as d } from "framer-motion";
4
4
  import t from "../AppContainer.module.css.js";
5
5
  const u = ({
6
- children: s,
7
- show: n,
6
+ children: n,
7
+ show: s,
8
8
  width: e,
9
9
  position: r
10
10
  }) => {
11
11
  const o = a();
12
- return /* @__PURE__ */ i(m, { children: n && /* @__PURE__ */ i(
12
+ return /* @__PURE__ */ i(m, { children: s && /* @__PURE__ */ i(
13
13
  d.div,
14
14
  {
15
15
  className: t.slideContainer,
@@ -32,7 +32,7 @@ const u = ({
32
32
  className: t.slideContent,
33
33
  style: { width: e },
34
34
  "data-position": r,
35
- children: s
35
+ children: n
36
36
  }
37
37
  )
38
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ToolSidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/ToolSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAsBtE,UAAU,gBAAiB,SAAQ,iBAAiB;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CA2IlD,CAAC"}
1
+ {"version":3,"file":"ToolSidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/ToolSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAgCtE,UAAU,gBAAiB,SAAQ,iBAAiB;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CAyLlD,CAAC"}