@layers-app/shared 0.2.6 → 0.2.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.
Files changed (53) hide show
  1. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
  2. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  3. package/dist/components/AppContainer/components/AppSidebarButton.js +4 -4
  4. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -22
  5. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +25 -25
  7. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +41 -41
  8. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +1 -1
  9. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  10. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  11. package/dist/components/AppContainer/hooks/useAppContainer.js +40 -37
  12. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  13. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -2
  14. package/dist/components/AppContainer/types.d.ts +1 -0
  15. package/dist/components/AppContainer/types.d.ts.map +1 -1
  16. package/dist/components/FormViewer/components/OneSlideLayput.js +39 -37
  17. package/dist/components/FormViewer/hooks/useCreateFormContext.d.ts.map +1 -1
  18. package/dist/components/FormViewer/hooks/useCreateFormContext.js +10 -10
  19. package/dist/components/FormViewer/store/formStoreApi.js +13 -13
  20. package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -1
  21. package/dist/components/ImageCropper/ImageCropper.js +185 -183
  22. package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
  23. package/dist/components/LanguagePicker/LanguagePicker.js +41 -32
  24. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +6 -4
  25. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  26. package/dist/components/NavMenu/components/NavMenuItem.js +53 -50
  27. package/dist/components/NavMenu/types.d.ts +1 -0
  28. package/dist/components/NavMenu/types.d.ts.map +1 -1
  29. package/dist/components/SocialLinkRow/index.d.ts.map +1 -1
  30. package/dist/components/SocialLinkRow/index.js +80 -58
  31. package/dist/components/TimezonePicker/index.d.ts.map +1 -1
  32. package/dist/components/TimezonePicker/index.js +42 -41
  33. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  34. package/dist/components/UserAvatar/index.js +11 -10
  35. package/dist/components/WorkspaceMenu/WorkspaceItem.js +1 -1
  36. package/dist/helpers/showFeatureFeedback.d.ts +16 -0
  37. package/dist/helpers/showFeatureFeedback.d.ts.map +1 -0
  38. package/dist/helpers/showFeatureFeedback.js +109 -0
  39. package/dist/helpers/showFeatureFeedback.module.css.js +9 -0
  40. package/dist/helpers/showNotifications.d.ts.map +1 -1
  41. package/dist/helpers/showNotifications.js +81 -113
  42. package/dist/helpers/showNotifications.module.css.js +10 -10
  43. package/dist/hooks/useFeatureFeedback.d.ts +23 -0
  44. package/dist/hooks/useFeatureFeedback.d.ts.map +1 -0
  45. package/dist/hooks/useFeatureFeedback.js +48 -0
  46. package/dist/index.css +1 -1
  47. package/dist/index.d.ts +3 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +322 -310
  50. package/dist/lib/layersVisitData.d.ts +13 -0
  51. package/dist/lib/layersVisitData.d.ts.map +1 -0
  52. package/dist/lib/layersVisitData.js +37 -0
  53. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { MouseEventHandler } from 'react';
2
2
  type AppSidebarButtonProps = {
3
- title: string;
3
+ title?: string | null;
4
4
  icon: React.ReactNode;
5
5
  active?: boolean;
6
6
  onClick?: MouseEventHandler<HTMLDivElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"AppSidebarButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/AppSidebarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAMtD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,kHAmC3B,CAAC"}
1
+ {"version":3,"file":"AppSidebarButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/AppSidebarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAc,MAAM,OAAO,CAAC;AAMtD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,kHAqC3B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
2
  import { forwardRef as c } from "react";
3
- import { Stack as p, ActionIcon as l, Text as s } from "@mantine/core";
3
+ import { Stack as p, ActionIcon as s, Text as l } from "@mantine/core";
4
4
  import d from "../AppContainer.module.css.js";
5
5
  const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */ n(
6
6
  p,
@@ -12,7 +12,7 @@ const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */
12
12
  onClick: o,
13
13
  children: [
14
14
  /* @__PURE__ */ t(
15
- l,
15
+ s,
16
16
  {
17
17
  size: "lg",
18
18
  variant: "subtle",
@@ -22,8 +22,8 @@ const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */
22
22
  children: a
23
23
  }
24
24
  ),
25
- /* @__PURE__ */ t(
26
- s,
25
+ r && /* @__PURE__ */ t(
26
+ l,
27
27
  {
28
28
  fz: 10,
29
29
  fw: 500,
@@ -1,52 +1,52 @@
1
1
  import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
- import { useTranslation as s } from "react-i18next";
3
- import { matchPath as m } from "react-router-dom";
4
- import { More01Icon as d } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as h } from "@hugeicons/react";
6
- import { ScrollArea as f, Stack as u, Menu as e } from "@mantine/core";
2
+ import { useTranslation as d } from "react-i18next";
3
+ import { matchPath as h } from "react-router-dom";
4
+ import { More01Icon as f } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as u } from "@hugeicons/react";
6
+ import { ScrollArea as b, Stack as w, Menu as e } from "@mantine/core";
7
7
  import { useAppContainerDataStore as S } from "../../hooks/useAppContainerDataStore.js";
8
8
  import { appContainerStore as g } from "../../hooks/useAppContainerStore.js";
9
- import { AppSidebarButton as n } from "../AppSidebarButton.js";
10
- import { MoreMenu as w } from "../menus/MoreMenu.js";
11
- const y = () => {
12
- const { t: p } = s("appContainer"), { hiddenTools: a } = g.useStore(), { tools: i, publicMode: c } = S();
9
+ import { AppSidebarButton as a } from "../AppSidebarButton.js";
10
+ import { MoreMenu as A } from "../menus/MoreMenu.js";
11
+ const L = () => {
12
+ const { t: p } = d("appContainer"), { hiddenTools: l } = g.useStore(), { tools: i, publicMode: s, navbarDisplayFormat: c } = S(), n = c === "iconsAndLabels";
13
13
  return /* @__PURE__ */ r(
14
- f,
14
+ b,
15
15
  {
16
16
  w: "var(--apps-sidebar-width)",
17
17
  style: { borderTop: "1px solid var(--app-shell-border)" },
18
18
  py: 8,
19
- children: /* @__PURE__ */ t(u, { gap: 8, align: "center", children: [
20
- i?.filter((o) => !a.includes(o.id))?.map((o) => {
21
- const l = !!m(
19
+ children: /* @__PURE__ */ t(w, { gap: 8, align: "center", children: [
20
+ i?.filter((o) => !l.includes(o.id))?.map((o) => {
21
+ const m = !!h(
22
22
  { path: o.path, end: !1 },
23
23
  window.location.pathname
24
24
  );
25
25
  return /* @__PURE__ */ r(
26
- n,
26
+ a,
27
27
  {
28
- title: o.name,
28
+ title: n ? o.name : null,
29
29
  icon: o.icon(),
30
- active: l,
30
+ active: m,
31
31
  onClick: o.onClick
32
32
  },
33
33
  o.id
34
34
  );
35
35
  }),
36
- !c && i.length > 1 && /* @__PURE__ */ t(e, { position: "right", closeOnItemClick: !1, children: [
36
+ !s && i.length > 1 && /* @__PURE__ */ t(e, { position: "right", closeOnItemClick: !1, children: [
37
37
  /* @__PURE__ */ r(e.Target, { children: /* @__PURE__ */ r(
38
- n,
38
+ a,
39
39
  {
40
- title: p("more"),
41
- icon: /* @__PURE__ */ r(h, { icon: d, size: 20 })
40
+ title: n ? p("more") : null,
41
+ icon: /* @__PURE__ */ r(u, { icon: f, size: 20 })
42
42
  }
43
43
  ) }),
44
- /* @__PURE__ */ r(e.Dropdown, { miw: 240, children: /* @__PURE__ */ r(w, {}) })
44
+ /* @__PURE__ */ r(e.Dropdown, { miw: 240, children: /* @__PURE__ */ r(A, {}) })
45
45
  ] })
46
46
  ] })
47
47
  }
48
48
  );
49
49
  };
50
50
  export {
51
- y as AppsSection
51
+ L as AppsSection
52
52
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+CAsDtB,CAAC"}
1
+ {"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+CAwDtB,CAAC"}
@@ -1,39 +1,39 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as s } from "react-i18next";
3
- import { Search01Icon as m, Notification02Icon as l } from "@hugeicons/core-free-icons";
4
- import { HugeiconsIcon as c } from "@hugeicons/react";
5
- import { Stack as f, ActionIcon as d, Tooltip as h, Menu as t } from "@mantine/core";
6
- import { isFeature as u } from "../../../../helpers/feature.js";
7
- import { openSearchModal as w } from "../../../../store/searchModal.js";
1
+ import { jsxs as c, jsx as o } from "react/jsx-runtime";
2
+ import { useTranslation as m } from "react-i18next";
3
+ import { Search01Icon as f, Notification02Icon as d } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as p } from "@hugeicons/react";
5
+ import { Stack as h, ActionIcon as u, Tooltip as w, Menu as t } from "@mantine/core";
6
+ import { isFeature as b } from "../../../../helpers/feature.js";
7
+ import { openSearchModal as v } from "../../../../store/searchModal.js";
8
8
  import { Notification as k } from "../../../Notification/Notification.js";
9
- import { WorkspaceAvatar as v } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
10
- import { WorkspaceMenu as g } from "../../../WorkspaceMenu/WorkspaceMenu.js";
11
- import { useAppContainerDataStore as b } from "../../hooks/useAppContainerDataStore.js";
12
- import { AppSidebarButton as p } from "../AppSidebarButton.js";
9
+ import { WorkspaceAvatar as g } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
10
+ import { WorkspaceMenu as A } from "../../../WorkspaceMenu/WorkspaceMenu.js";
11
+ import { useAppContainerDataStore as y } from "../../hooks/useAppContainerDataStore.js";
12
+ import { AppSidebarButton as s } from "../AppSidebarButton.js";
13
13
  const W = () => {
14
- const { t: e } = s("appContainer"), { workspaceMenu: i, isAnonym: r, publicMode: n } = b();
15
- return /* @__PURE__ */ a(f, { gap: 8, align: "center", pb: 8, children: [
14
+ const { t: e } = m("appContainer"), { workspaceMenu: i, isAnonym: r, publicMode: n, navbarDisplayFormat: l } = y(), a = l === "iconsAndLabels";
15
+ return /* @__PURE__ */ c(h, { gap: 8, align: "center", pb: 8, children: [
16
16
  /* @__PURE__ */ o(
17
- g,
17
+ A,
18
18
  {
19
19
  ...i,
20
20
  isAnonym: r,
21
21
  publicMode: n,
22
22
  children: /* @__PURE__ */ o(
23
- d,
23
+ u,
24
24
  {
25
25
  size: "lg",
26
26
  variant: "transparent",
27
27
  style: { overflow: "visible" },
28
28
  children: /* @__PURE__ */ o(
29
- h,
29
+ w,
30
30
  {
31
31
  label: i.active?.workspaceName,
32
32
  disabled: !i.active?.workspaceName,
33
33
  openDelay: 400,
34
34
  position: "right",
35
35
  withArrow: !0,
36
- children: /* @__PURE__ */ o(v, { workspace: i.active, size: 36 })
36
+ children: /* @__PURE__ */ o(g, { workspace: i.active, size: 36 })
37
37
  }
38
38
  )
39
39
  }
@@ -41,21 +41,21 @@ const W = () => {
41
41
  }
42
42
  ),
43
43
  !r && !n && /* @__PURE__ */ o(
44
- p,
44
+ s,
45
45
  {
46
- title: e("search"),
47
- icon: /* @__PURE__ */ o(c, { icon: m, size: 20 }),
46
+ title: a ? e("search") : null,
47
+ icon: /* @__PURE__ */ o(p, { icon: f, size: 20 }),
48
48
  onClick: () => {
49
- w();
49
+ v();
50
50
  }
51
51
  }
52
52
  ),
53
- u() && !r && /* @__PURE__ */ a(t, { position: "right-start", children: [
53
+ b() && !r && /* @__PURE__ */ c(t, { position: "right-start", children: [
54
54
  /* @__PURE__ */ o(t.Target, { children: /* @__PURE__ */ o(
55
- p,
55
+ s,
56
56
  {
57
- title: e("activity"),
58
- icon: /* @__PURE__ */ o(c, { icon: l, size: 20 })
57
+ title: a ? e("activity") : null,
58
+ icon: /* @__PURE__ */ o(p, { icon: d, size: 20 })
59
59
  }
60
60
  ) }),
61
61
  /* @__PURE__ */ o(t.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ o(k, {}) })
@@ -1,21 +1,21 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as w } from "react-i18next";
3
- import { Link as I } from "react-router-dom";
4
- import { Delete03Icon as S, UserAdd02Icon as b, HelpCircleIcon as x } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as s } from "@hugeicons/react";
6
- import { Stack as p, Menu as e, Tooltip as z, ActionIcon as A } from "@mantine/core";
7
- import { IconUserCircle as C } from "@tabler/icons-react";
8
- import { useTrashModalStore as D, openTrashModal as U, closeTrashModal as j } from "../../../../store/trashModal.js";
9
- import { useAppContainerDataStore as m } from "../../hooks/useAppContainerDataStore.js";
10
- import { AppSidebarButton as l } from "../AppSidebarButton.js";
11
- import { HelpMenu as v } from "../menus/HelpMenu/HelpMenu.js";
12
- import { MenuUserDropdown as y } from "../menus/UserMenu/MenuUserDropdown.js";
13
- const P = ({
14
- trashMenu: f,
15
- onInviteClick: c
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import { useTranslation as I } from "react-i18next";
3
+ import { Link as S } from "react-router-dom";
4
+ import { Delete03Icon as x, UserAdd02Icon as A, HelpCircleIcon as D } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as l } from "@hugeicons/react";
6
+ import { Stack as p, Menu as e, Tooltip as z, ActionIcon as C } from "@mantine/core";
7
+ import { IconUserCircle as v } from "@tabler/icons-react";
8
+ import { useTrashModalStore as y, openTrashModal as L, closeTrashModal as U } from "../../../../store/trashModal.js";
9
+ import { useAppContainerDataStore as f } from "../../hooks/useAppContainerDataStore.js";
10
+ import { AppSidebarButton as c } from "../AppSidebarButton.js";
11
+ import { HelpMenu as j } from "../menus/HelpMenu/HelpMenu.js";
12
+ import { MenuUserDropdown as H } from "../menus/UserMenu/MenuUserDropdown.js";
13
+ const R = ({
14
+ trashMenu: u,
15
+ onInviteClick: a
16
16
  }) => {
17
- const { t: n } = w("appContainer"), { user: a, isAnonym: t, userMenuItems: g, publicMode: u } = m(), M = D((i) => i.opened), d = !t && !u && a.role !== "mG", T = m((i) => i.isSaas), h = !t && T && c;
18
- return /* @__PURE__ */ r(
17
+ const { t: r } = I("appContainer"), { user: d, isAnonym: t, userMenuItems: g, publicMode: b, navbarDisplayFormat: w } = f(), M = y((n) => n.opened), h = !t && !b && d.role !== "mG", T = f((n) => n.isSaas), m = !t && T && a, s = w === "iconsAndLabels";
18
+ return /* @__PURE__ */ i(
19
19
  p,
20
20
  {
21
21
  style: { borderTop: "1px solid var(--app-shell-border)" },
@@ -24,62 +24,62 @@ const P = ({
24
24
  gap: 16,
25
25
  align: "center",
26
26
  children: [
27
- /* @__PURE__ */ r(
27
+ /* @__PURE__ */ i(
28
28
  p,
29
29
  {
30
- justify: !d && !h ? "end" : "space-between",
30
+ justify: !h && !m ? "end" : "space-between",
31
31
  gap: 8,
32
32
  flex: 1,
33
33
  children: [
34
- d && /* @__PURE__ */ r(
34
+ h && /* @__PURE__ */ i(
35
35
  e,
36
36
  {
37
37
  position: "right",
38
38
  offset: 6,
39
39
  width: 360,
40
40
  opened: M,
41
- onChange: (i) => {
42
- i ? U() : j();
41
+ onChange: (n) => {
42
+ n ? L() : U();
43
43
  },
44
44
  children: [
45
45
  /* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
46
- l,
46
+ c,
47
47
  {
48
- title: n("trash"),
49
- icon: /* @__PURE__ */ o(s, { icon: S, size: 20 })
48
+ title: s ? r("trash") : null,
49
+ icon: /* @__PURE__ */ o(l, { icon: x, size: 20 })
50
50
  }
51
51
  ) }),
52
- /* @__PURE__ */ o(e.Dropdown, { children: f })
52
+ /* @__PURE__ */ o(e.Dropdown, { children: u })
53
53
  ]
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ r(p, { gap: 8, children: [
57
- h && /* @__PURE__ */ o(
58
- l,
56
+ /* @__PURE__ */ i(p, { gap: 8, children: [
57
+ m && /* @__PURE__ */ o(
58
+ c,
59
59
  {
60
- title: n("invite"),
61
- icon: /* @__PURE__ */ o(s, { icon: b, size: 20 }),
62
- onClick: c
60
+ title: s ? r("invite") : null,
61
+ icon: /* @__PURE__ */ o(l, { icon: A, size: 20 }),
62
+ onClick: a
63
63
  }
64
64
  ),
65
- /* @__PURE__ */ r(e, { position: "right-end", offset: 6, width: 260, children: [
65
+ /* @__PURE__ */ i(e, { position: "right-end", offset: 6, width: 260, children: [
66
66
  /* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
67
- l,
67
+ c,
68
68
  {
69
- title: n("help"),
70
- icon: /* @__PURE__ */ o(s, { icon: x, size: 20 })
69
+ title: s ? r("help") : null,
70
+ icon: /* @__PURE__ */ o(l, { icon: D, size: 20 })
71
71
  }
72
72
  ) }),
73
- /* @__PURE__ */ o(e.Dropdown, { children: /* @__PURE__ */ o(v, {}) })
73
+ /* @__PURE__ */ o(e.Dropdown, { children: /* @__PURE__ */ o(j, {}) })
74
74
  ] })
75
75
  ] })
76
76
  ]
77
77
  }
78
78
  ),
79
- t ? /* @__PURE__ */ o(I, { to: "/login", children: /* @__PURE__ */ o(z, { label: "Log in", position: "right", children: /* @__PURE__ */ o(A, { size: "lg", variant: "light", children: /* @__PURE__ */ o(C, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
80
- y,
79
+ t ? /* @__PURE__ */ o(S, { to: "/login", children: /* @__PURE__ */ o(z, { label: "Log in", position: "right", children: /* @__PURE__ */ o(C, { size: "lg", variant: "light", children: /* @__PURE__ */ o(v, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
80
+ H,
81
81
  {
82
- user: a,
82
+ user: d,
83
83
  menuItems: g,
84
84
  position: "right-end"
85
85
  }
@@ -89,5 +89,5 @@ const P = ({
89
89
  );
90
90
  };
91
91
  export {
92
- P as UserSection
92
+ R as UserSection
93
93
  };
@@ -53,7 +53,7 @@ const B = () => {
53
53
  component: "a",
54
54
  href: "https://discord.gg/mEd2PbchRD",
55
55
  target: "_blank",
56
- bg: "indigo.5",
56
+ bg: "indigo.6",
57
57
  leftSection: /* @__PURE__ */ e(k, { width: 16, height: 16 }),
58
58
  c: "white",
59
59
  size: "sm",
@@ -1,3 +1,3 @@
1
1
  import { AppContainerActionsStore, AppContainerDataStore } from '../types';
2
- export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, isSaas, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, }: AppContainerDataStore & AppContainerActionsStore) => void;
2
+ export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, isSaas, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, navbarDisplayFormat, }: AppContainerDataStore & AppContainerActionsStore) => void;
3
3
  //# sourceMappingURL=useAppContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3E,eAAO,MAAM,eAAe,GAAI,4NAiB7B,qBAAqB,GAAG,wBAAwB,SAwClD,CAAC"}
1
+ {"version":3,"file":"useAppContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3E,eAAO,MAAM,eAAe,GAAI,iPAkB7B,qBAAqB,GAAG,wBAAwB,SA0ClD,CAAC"}
@@ -1,63 +1,66 @@
1
- import { useLayoutEffect as G } from "react";
2
- import { useAppContainerActionsStore as H } from "./useAppContainerActionsStore.js";
3
- import { useAppContainerDataStore as J } from "./useAppContainerDataStore.js";
4
- const R = ({
1
+ import { useLayoutEffect as H } from "react";
2
+ import { useAppContainerActionsStore as J } from "./useAppContainerActionsStore.js";
3
+ import { useAppContainerDataStore as K } from "./useAppContainerDataStore.js";
4
+ const T = ({
5
5
  user: t,
6
6
  workspaceMenu: p,
7
7
  tools: f,
8
- userMenuItems: r,
9
- notifications: C,
10
- isAnonym: S,
11
- isSaas: m,
12
- readNotificationsFunc: o,
8
+ userMenuItems: C,
9
+ notifications: S,
10
+ isAnonym: m,
11
+ isSaas: o,
12
+ readNotificationsFunc: r,
13
13
  publicMode: x,
14
14
  showMessenger: A,
15
- showNewMessage: D,
16
- version: E,
17
- updatedAt: j,
18
- privacyPolicyLink: q,
19
- userAgreementLink: z,
20
- whatsNewItems: B
15
+ showNewMessage: E,
16
+ version: j,
17
+ updatedAt: q,
18
+ privacyPolicyLink: z,
19
+ userAgreementLink: B,
20
+ whatsNewItems: D,
21
+ navbarDisplayFormat: G
21
22
  }) => {
22
- G(() => {
23
- J.setState({
23
+ H(() => {
24
+ K.setState({
24
25
  user: t,
25
26
  workspaceMenu: p,
26
27
  tools: f,
27
- userMenuItems: r,
28
- notifications: C,
29
- isAnonym: S,
30
- isSaas: m,
28
+ userMenuItems: C,
29
+ notifications: S,
30
+ isAnonym: m,
31
+ isSaas: o,
31
32
  publicMode: x,
32
33
  showMessenger: A,
33
- showNewMessage: D,
34
- version: E,
35
- updatedAt: j,
36
- privacyPolicyLink: q,
37
- userAgreementLink: z,
38
- whatsNewItems: B
39
- }), H.setState({
40
- readNotificationsFunc: o
34
+ showNewMessage: E,
35
+ version: j,
36
+ updatedAt: q,
37
+ privacyPolicyLink: z,
38
+ userAgreementLink: B,
39
+ whatsNewItems: D,
40
+ navbarDisplayFormat: G
41
+ }), J.setState({
42
+ readNotificationsFunc: r
41
43
  });
42
44
  }, [
43
- S,
44
45
  m,
45
- C,
46
- x,
47
46
  o,
47
+ S,
48
+ x,
49
+ r,
48
50
  A,
49
- D,
51
+ E,
50
52
  f,
51
53
  t,
52
- r,
54
+ C,
53
55
  p,
54
- E,
55
56
  j,
56
57
  q,
57
58
  z,
58
- B
59
+ B,
60
+ D,
61
+ G
59
62
  ]);
60
63
  };
61
64
  export {
62
- R as useAppContainer
65
+ T as useAppContainer
63
66
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useAppContainerDataStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerDataStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,wBAAwB,oFA+BlC,CAAC"}
1
+ {"version":3,"file":"useAppContainerDataStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerDataStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEjD,eAAO,MAAM,wBAAwB,oFAgClC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { create as e } from "zustand";
2
- const a = e(() => ({
2
+ const s = e(() => ({
3
3
  tools: [],
4
4
  user: {
5
5
  avatar: "",
@@ -14,6 +14,7 @@ const a = e(() => ({
14
14
  privacyPolicyLink: "",
15
15
  userAgreementLink: "",
16
16
  userMenuItems: null,
17
+ navbarDisplayFormat: "iconsAndLabels",
17
18
  workspaceMenu: {
18
19
  items: [],
19
20
  active: {
@@ -34,5 +35,5 @@ const a = e(() => ({
34
35
  }
35
36
  }));
36
37
  export {
37
- a as useAppContainerDataStore
38
+ s as useAppContainerDataStore
38
39
  };
@@ -46,6 +46,7 @@ export type AppContainerDataStore = {
46
46
  privacyPolicyLink: string;
47
47
  userAgreementLink: string;
48
48
  whatsNewItems: WhatsNewProps['items'];
49
+ navbarDisplayFormat: 'iconsAndLabels' | 'iconsOnly';
49
50
  };
50
51
  type ReadNotificationsRequest = {
51
52
  messageIds: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,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