@layers-app/shared 0.4.0 → 0.4.1

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 (122) hide show
  1. package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
  2. package/dist/components/AppContainer/AppContainer.d.ts +6 -1
  3. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  4. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +4 -1
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
  7. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
  11. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +7 -2
  12. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/ToolbarNewButton.js +14 -14
  14. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +3 -1
  15. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  16. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +96 -64
  17. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  18. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +60 -47
  19. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
  20. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  21. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +35 -26
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
  23. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  24. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +43 -36
  25. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +7 -0
  26. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
  27. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +17 -0
  28. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
  29. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  30. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
  31. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -18
  32. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  33. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
  34. package/dist/components/ColorPicker/ColorPicker.d.ts +12 -11
  35. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  36. package/dist/components/ColorPicker/ColorPicker.js +1 -1
  37. package/dist/components/ColorPicker/ColorPickerToolbar.js +11 -11
  38. package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
  39. package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
  40. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
  41. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  42. package/dist/components/EntityIcon.d.ts.map +1 -1
  43. package/dist/components/EntityIcon.js +43 -33
  44. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  45. package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
  46. package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
  47. package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
  48. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
  49. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
  50. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +6 -0
  51. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
  52. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
  53. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
  54. package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
  55. package/dist/components/FormViewer/store/formStore.d.ts +248 -248
  56. package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
  57. package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
  58. package/dist/components/FormViewer/types/form.d.ts +1 -1
  59. package/dist/components/FormViewer/types/form.d.ts.map +1 -1
  60. package/dist/components/FormViewer/types/schemes.d.ts +381 -6358
  61. package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
  62. package/dist/components/FormViewer/types/schemes.js +1 -1
  63. package/dist/components/GroupAvatar/index.d.ts +3 -1
  64. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  65. package/dist/components/GroupAvatar/index.js +24 -21
  66. package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
  67. package/dist/components/NavMenu/NavMenu.d.ts +3 -1
  68. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  69. package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
  70. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  71. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +7 -1
  72. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
  73. package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
  74. package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
  75. package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
  76. package/dist/components/NewColorPicker/components/Target.js +48 -43
  77. package/dist/components/Notification/Notification.js +3 -1
  78. package/dist/components/Notification/NotificationCard.d.ts +3 -1
  79. package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
  80. package/dist/components/Notification/NotificationCard.js +87 -86
  81. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
  82. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
  83. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +70 -74
  84. package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
  85. package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
  86. package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
  87. package/dist/components/UserAvatar/index.d.ts +2 -1
  88. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  89. package/dist/components/UserAvatar/index.js +38 -35
  90. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
  91. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
  92. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
  93. package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
  94. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
  95. package/dist/config/envConfig.d.ts +8 -0
  96. package/dist/config/envConfig.d.ts.map +1 -1
  97. package/dist/config/envConfig.js +21 -13
  98. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  99. package/dist/helpers/getFileIcons.js +63 -45
  100. package/dist/helpers/getFileType.d.ts +1 -1
  101. package/dist/helpers/getFileType.d.ts.map +1 -1
  102. package/dist/helpers/getFileType.js +29 -8
  103. package/dist/helpers/getPartOfTheDay.d.ts +1 -1
  104. package/dist/helpers/offlineSuppression.d.ts +3 -0
  105. package/dist/helpers/offlineSuppression.d.ts.map +1 -0
  106. package/dist/helpers/offlineSuppression.js +8 -0
  107. package/dist/helpers/platform.d.ts +1 -1
  108. package/dist/helpers/platform.d.ts.map +1 -1
  109. package/dist/helpers/platform.js +5 -4
  110. package/dist/helpers/showNotifications.d.ts.map +1 -1
  111. package/dist/helpers/showNotifications.js +30 -29
  112. package/dist/hooks/useOutsideClick.d.ts +1 -1
  113. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  114. package/dist/index.css +1 -1
  115. package/dist/index.d.ts +1 -0
  116. package/dist/index.d.ts.map +1 -1
  117. package/dist/index.js +336 -331
  118. package/dist/lang/locales/ui_en.json.js +1 -1
  119. package/dist/lang/locales/ui_es.json.js +1 -1
  120. package/dist/lang/locales/ui_ru.json.js +1 -1
  121. package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
  122. package/package.json +13 -13
@@ -1,6 +1,6 @@
1
1
  export declare const useParallax: () => {
2
- pageRef: import("react").RefObject<HTMLDivElement>;
3
- badgeRefs: import("react").MutableRefObject<(HTMLSpanElement | null)[]>;
2
+ pageRef: import("react").RefObject<HTMLDivElement | null>;
3
+ badgeRefs: import("react").RefObject<(HTMLSpanElement | null)[]>;
4
4
  handleMouseMove: (e: React.MouseEvent<HTMLDivElement>) => void;
5
5
  };
6
6
  //# sourceMappingURL=useParallax.d.ts.map
@@ -7,6 +7,11 @@ declare global {
7
7
  }
8
8
  export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, showAppsSidebar, headerBorderless, withBg, isBeta, hideHeader, showSearch, showMore, showBorders, showLogo, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
9
9
  NavbarContent: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
- NewButton: ({ children, ...props }: import("@mantine/core").PolymorphicComponentProps<"button", import("@mantine/core").ButtonProps>) => import("react/jsx-runtime").JSX.Element;
10
+ NewButton: import("react").ForwardRefExoticComponent<Omit<import("@mantine/core").ButtonProps & {
11
+ component?: "button" | undefined;
12
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "component" | keyof import("@mantine/core").ButtonProps> & {
13
+ ref?: import("react").Ref<HTMLButtonElement> | undefined;
14
+ renderRoot?: (props: any) => any;
15
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
11
16
  };
12
17
  //# sourceMappingURL=AppContainer.d.ts.map
@@ -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;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,10 +1,13 @@
1
1
  import { MouseEventHandler } from 'react';
2
+ import React from 'react';
2
3
  type AppSidebarButtonProps = {
4
+ ref?: React.Ref<HTMLDivElement>;
3
5
  title?: string | null;
4
6
  icon: React.ReactNode;
5
7
  active?: boolean;
6
8
  onClick?: MouseEventHandler<HTMLDivElement>;
9
+ 'data-cy'?: string;
7
10
  };
8
- export declare const AppSidebarButton: import("react").ForwardRefExoticComponent<AppSidebarButtonProps & import("react").RefAttributes<HTMLDivElement>>;
11
+ export declare const AppSidebarButton: ({ title, icon, active, onClick, "data-cy": dataCy, ref, }: AppSidebarButtonProps) => import("react/jsx-runtime").JSX.Element;
9
12
  export {};
10
13
  //# sourceMappingURL=AppSidebarButton.d.ts.map
@@ -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,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
+ {"version":3,"file":"AppSidebarButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/AppSidebarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,qBAAqB,GAAG;IAC3B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,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;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,2DAO9B,qBAAqB,4CAmCvB,CAAC"}
@@ -1,17 +1,24 @@
1
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as n } from "react";
3
- import { Stack as p, ActionIcon as s, Text as l } from "@mantine/core";
4
- import d from "../AppContainer.module.css.js";
5
- const h = n(({ title: r, icon: a, active: e, onClick: o }, c) => /* @__PURE__ */ i(
1
+ import { jsxs as i, jsx as a } from "react/jsx-runtime";
2
+ import { Stack as p, ActionIcon as s, Text as d } from "@mantine/core";
3
+ import l from "../AppContainer.module.css.js";
4
+ const f = ({
5
+ title: t,
6
+ icon: r,
7
+ active: e,
8
+ onClick: c,
9
+ "data-cy": o,
10
+ ref: n
11
+ }) => /* @__PURE__ */ i(
6
12
  p,
7
13
  {
8
- ref: c,
9
- className: d.appSidebarButton,
14
+ ref: n,
15
+ className: l.appSidebarButton,
10
16
  gap: 0,
11
17
  align: "center",
12
- onClick: o,
18
+ onClick: c,
19
+ "data-cy": o,
13
20
  children: [
14
- /* @__PURE__ */ t(
21
+ /* @__PURE__ */ a(
15
22
  s,
16
23
  {
17
24
  size: "lg",
@@ -19,11 +26,11 @@ const h = n(({ title: r, icon: a, active: e, onClick: o }, c) => /* @__PURE__ */
19
26
  color: "gray",
20
27
  "data-button": !0,
21
28
  "data-active": e,
22
- children: a
29
+ children: r
23
30
  }
24
31
  ),
25
- r && /* @__PURE__ */ t(
26
- l,
32
+ t && /* @__PURE__ */ a(
33
+ d,
27
34
  {
28
35
  fz: 10,
29
36
  fw: 500,
@@ -33,12 +40,12 @@ const h = n(({ title: r, icon: a, active: e, onClick: o }, c) => /* @__PURE__ */
33
40
  truncate: !0,
34
41
  ta: "center",
35
42
  w: "var(--apps-sidebar-width)",
36
- children: r
43
+ children: t
37
44
  }
38
45
  )
39
46
  ]
40
47
  }
41
- ));
48
+ );
42
49
  export {
43
- h as AppSidebarButton
50
+ f as AppSidebarButton
44
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AppsSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/AppsSection.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,GAAI,4BAGzB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CA2DA,CAAC"}
1
+ {"version":3,"file":"AppsSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/AppsSection.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,GAAI,4BAGzB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CA4DA,CAAC"}
@@ -1,9 +1,9 @@
1
- import { jsx as o, jsxs as l } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
2
2
  import { useTranslation as f } from "react-i18next";
3
3
  import { matchPath as b } from "react-router-dom";
4
4
  import { More01Icon as g } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as w } from "@hugeicons/react";
6
- import { ScrollArea as S, Stack as v, Tooltip as a, Menu as e } from "@mantine/core";
5
+ import { HugeiconsIcon as v } from "@hugeicons/react";
6
+ import { ScrollArea as w, Stack as S, Tooltip as l, Menu as e } from "@mantine/core";
7
7
  import { useAppContainerDataStore as A } from "../../hooks/useAppContainerDataStore.js";
8
8
  import { appContainerStore as C } from "../../hooks/useAppContainerStore.js";
9
9
  import { AppSidebarButton as p } from "../AppSidebarButton.js";
@@ -12,49 +12,50 @@ const F = ({
12
12
  showMore: s = !0,
13
13
  showBorders: c = !0
14
14
  }) => {
15
- const { t: n } = f("appContainer"), { hiddenTools: m } = C.useStore(), { tools: t, publicMode: d, navbarDisplayFormat: h } = A(), r = h === "iconsAndLabels";
16
- return /* @__PURE__ */ o(
17
- S,
15
+ const { t: n } = f("appContainer"), { hiddenTools: d } = C.useStore(), { tools: t, publicMode: m, navbarDisplayFormat: h } = A(), r = h === "iconsAndLabels";
16
+ return /* @__PURE__ */ i(
17
+ w,
18
18
  {
19
19
  w: "var(--apps-sidebar-width)",
20
20
  style: {
21
21
  borderTop: c ? "1px solid var(--app-shell-border)" : void 0
22
22
  },
23
23
  py: 8,
24
- children: /* @__PURE__ */ l(v, { gap: 8, align: "center", children: [
25
- t?.filter((i) => !m.includes(i.id))?.map((i) => {
24
+ children: /* @__PURE__ */ a(S, { gap: 8, align: "center", children: [
25
+ t?.filter((o) => !d.includes(o.id))?.map((o) => {
26
26
  const u = !!b(
27
- { path: i.path, end: !1 },
27
+ { path: o.path, end: !1 },
28
28
  window.location.pathname
29
29
  );
30
- return /* @__PURE__ */ o(
31
- a,
30
+ return /* @__PURE__ */ i(
31
+ l,
32
32
  {
33
- label: i.name,
33
+ label: o.name,
34
34
  position: "right",
35
35
  disabled: r,
36
- children: /* @__PURE__ */ o(
36
+ children: /* @__PURE__ */ i(
37
37
  p,
38
38
  {
39
- title: r ? i.name : null,
40
- icon: i.icon(),
39
+ "data-cy": `nav-tool-${o.id}`,
40
+ title: r ? o.name : null,
41
+ icon: o.icon(),
41
42
  active: u,
42
- onClick: i.onClick
43
+ onClick: o.onClick
43
44
  }
44
45
  )
45
46
  },
46
- i.id
47
+ o.id
47
48
  );
48
49
  }),
49
- s && !d && t.length > 1 && /* @__PURE__ */ l(e, { position: "right", closeOnItemClick: !1, children: [
50
- /* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(a, { label: n("more"), position: "right", disabled: r, children: /* @__PURE__ */ o(
50
+ s && !m && t.length > 1 && /* @__PURE__ */ a(e, { position: "right", closeOnItemClick: !1, children: [
51
+ /* @__PURE__ */ i(e.Target, { children: /* @__PURE__ */ i(l, { label: n("more"), position: "right", disabled: r, children: /* @__PURE__ */ i(
51
52
  p,
52
53
  {
53
54
  title: r ? n("more") : null,
54
- icon: /* @__PURE__ */ o(w, { icon: g, size: 20 })
55
+ icon: /* @__PURE__ */ i(v, { icon: g, size: 20 })
55
56
  }
56
57
  ) }) }),
57
- /* @__PURE__ */ o(e.Dropdown, { miw: 240, children: /* @__PURE__ */ o(M, {}) })
58
+ /* @__PURE__ */ i(e.Dropdown, { miw: 240, children: /* @__PURE__ */ i(M, {}) })
58
59
  ] })
59
60
  ] })
60
61
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAyBA,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,4CA2KA,CAAC"}
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,141 +1,98 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as D } from "react-i18next";
3
- import { Link as E } from "react-router-dom";
4
- import { Delete03Icon as x, UserAdd02Icon as A, HelpCircleIcon as L, Wifi01Icon as M, WifiDisconnected04Icon as U } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as s } from "@hugeicons/react";
6
- import { Stack as d, Menu as r, Tooltip as l, Box as C, ActionIcon as F } from "@mantine/core";
7
- import { IconUserCircle as R } from "@tabler/icons-react";
8
- import { usePlatform as k } from "../../../../hooks/usePlatform.js";
9
- import { useTrashModalStore as z, openTrashModal as j, closeTrashModal as G } from "../../../../store/trashModal.js";
1
+ import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
+ import { useTranslation as v } from "react-i18next";
3
+ import { Link as x } from "react-router-dom";
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
10
  import { useAppContainerDataStore as H } from "../../hooks/useAppContainerDataStore.js";
11
11
  import { AppSidebarButton as c } from "../AppSidebarButton.js";
12
- import { HelpMenu as K } from "../menus/HelpMenu/HelpMenu.js";
13
- import { MenuUserDropdown as Y } from "../menus/UserMenu/MenuUserDropdown.js";
14
- const no = ({
15
- trashMenu: h,
16
- onInviteClick: m,
17
- showBorders: T = !0
12
+ import { HelpMenu as k } from "../menus/HelpMenu/HelpMenu.js";
13
+ import { MenuUserDropdown as B } from "../menus/UserMenu/MenuUserDropdown.js";
14
+ const X = ({
15
+ trashMenu: d,
16
+ onInviteClick: h,
17
+ showBorders: g = !0
18
18
  }) => {
19
- const { t: i } = D("appContainer"), f = k(), {
20
- user: g,
21
- isAnonym: p,
22
- userMenuItems: v,
23
- publicMode: S,
24
- navbarDisplayFormat: N,
25
- onSyncClick: u,
26
- syncState: w
27
- } = H(), O = z((e) => e.opened), y = !p && !S && g.role !== "mG" && h, b = !p && f.has("inviteUsers") && m, n = N === "iconsAndLabels";
28
- return /* @__PURE__ */ t(
29
- d,
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
+ return /* @__PURE__ */ n(
21
+ a,
30
22
  {
31
23
  style: {
32
- borderTop: T ? "1px solid var(--app-shell-border)" : void 0
24
+ borderTop: g ? "1px solid var(--app-shell-border)" : void 0
33
25
  },
34
26
  flex: 1,
35
27
  pt: 8,
36
28
  gap: 16,
37
29
  align: "center",
38
30
  children: [
39
- /* @__PURE__ */ t(
40
- d,
31
+ /* @__PURE__ */ n(
32
+ a,
41
33
  {
42
- justify: !y && !b ? "end" : "space-between",
34
+ justify: !f && !u ? "end" : "space-between",
43
35
  gap: 8,
44
36
  flex: 1,
45
37
  children: [
46
- y && /* @__PURE__ */ t(
38
+ f && /* @__PURE__ */ n(
47
39
  r,
48
40
  {
49
41
  position: "right",
50
42
  offset: 6,
51
43
  width: 360,
52
- opened: O,
53
- onChange: (e) => {
54
- e ? j() : G();
44
+ opened: M,
45
+ onChange: (s) => {
46
+ s ? L() : j();
55
47
  },
56
48
  children: [
57
49
  /* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
58
- l,
50
+ t,
59
51
  {
60
- label: i("trash"),
52
+ label: e("trash"),
61
53
  position: "right",
62
- disabled: n,
54
+ disabled: i,
63
55
  children: /* @__PURE__ */ o(
64
56
  c,
65
57
  {
66
- title: n ? i("trash") : null,
67
- icon: /* @__PURE__ */ o(s, { icon: x, size: 20 })
58
+ title: i ? e("trash") : null,
59
+ icon: /* @__PURE__ */ o(p, { icon: A, size: 20 })
68
60
  }
69
61
  )
70
62
  }
71
63
  ) }),
72
- /* @__PURE__ */ o(r.Dropdown, { children: h })
64
+ /* @__PURE__ */ o(r.Dropdown, { children: d })
73
65
  ]
74
66
  }
75
67
  ),
76
- /* @__PURE__ */ t(d, { gap: 8, children: [
77
- b && /* @__PURE__ */ o(l, { label: i("invite"), position: "right", disabled: n, children: /* @__PURE__ */ o(
68
+ /* @__PURE__ */ n(a, { gap: 8, children: [
69
+ u && /* @__PURE__ */ o(t, { label: e("invite"), position: "right", disabled: i, children: /* @__PURE__ */ o(
78
70
  c,
79
71
  {
80
- title: n ? i("invite") : null,
81
- icon: /* @__PURE__ */ o(s, { icon: A, size: 20 }),
82
- onClick: m
72
+ title: i ? e("invite") : null,
73
+ icon: /* @__PURE__ */ o(p, { icon: D, size: 20 }),
74
+ onClick: h
83
75
  }
84
76
  ) }),
85
- /* @__PURE__ */ t(r, { position: "right-end", offset: 6, width: 260, children: [
86
- /* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(l, { label: i("help"), position: "right", disabled: n, children: /* @__PURE__ */ o(
77
+ /* @__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(
87
79
  c,
88
80
  {
89
- title: n ? i("help") : null,
90
- icon: /* @__PURE__ */ o(s, { icon: L, size: 20 })
81
+ title: i ? e("help") : null,
82
+ icon: /* @__PURE__ */ o(p, { icon: z, size: 20 })
91
83
  }
92
84
  ) }) }),
93
- /* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(K, {}) })
94
- ] }),
95
- f.isDesktop && u && (() => {
96
- const e = (w || "").toUpperCase(), a = e === "SYNCED" || e === "OK", I = a ? "var(--mantine-color-green-6)" : e === "SYNCING" ? "var(--mantine-color-blue-6)" : e === "ERROR" || e === "CONFLICT" || e === "OFFLINE" ? "var(--mantine-color-red-6)" : e === "ATTENTION" ? "var(--mantine-color-orange-6)" : "var(--mantine-color-yellow-6)";
97
- return /* @__PURE__ */ o(l, { label: i(a ? "sync.tooltipSynced" : e === "SYNCING" ? "sync.tooltipSyncing" : e === "OFFLINE" ? "sync.tooltipOffline" : e === "ERROR" ? "sync.tooltipError" : e === "CONFLICT" ? "sync.tooltipConflict" : e === "ATTENTION" ? "sync.tooltipAttention" : e === "QUEUED" ? "sync.tooltipQueued" : "sync.tooltipSyncing"), position: "right", children: /* @__PURE__ */ o(
98
- c,
99
- {
100
- title: "Sync",
101
- icon: /* @__PURE__ */ t(C, { pos: "relative", display: "inline-flex", children: [
102
- /* @__PURE__ */ o(
103
- s,
104
- {
105
- icon: a ? M : U,
106
- size: 20,
107
- color: I
108
- }
109
- ),
110
- /* @__PURE__ */ o(
111
- C,
112
- {
113
- pos: "absolute",
114
- bottom: -2,
115
- right: -2,
116
- w: 8,
117
- h: 8,
118
- style: {
119
- borderRadius: "50%",
120
- border: "2px solid var(--app-shell-bg)",
121
- backgroundColor: I
122
- }
123
- }
124
- )
125
- ] }),
126
- onClick: u
127
- }
128
- ) });
129
- })()
85
+ /* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(k, {}) })
86
+ ] })
130
87
  ] })
131
88
  ]
132
89
  }
133
90
  ),
134
- p ? /* @__PURE__ */ o(E, { to: "/login", children: /* @__PURE__ */ o(l, { label: "Log in", position: "right", children: /* @__PURE__ */ o(F, { size: "lg", variant: "light", children: /* @__PURE__ */ o(R, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
135
- Y,
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,
136
93
  {
137
- user: g,
138
- menuItems: v,
94
+ user: m,
95
+ menuItems: w,
139
96
  position: "right-end"
140
97
  }
141
98
  )
@@ -144,5 +101,5 @@ const no = ({
144
101
  );
145
102
  };
146
103
  export {
147
- no as UserSection
104
+ X as UserSection
148
105
  };
@@ -1,3 +1,8 @@
1
- import { ButtonProps, PolymorphicComponentProps } from '@mantine/core';
2
- export declare const ToolbarNewButton: ({ children, ...props }: PolymorphicComponentProps<"button", ButtonProps>) => import("react/jsx-runtime").JSX.Element;
1
+ import { ButtonProps } from '@mantine/core';
2
+ export declare const ToolbarNewButton: import("react").ForwardRefExoticComponent<Omit<ButtonProps & {
3
+ component?: "button" | undefined;
4
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "component" | keyof ButtonProps> & {
5
+ ref?: import("react").Ref<HTMLButtonElement> | undefined;
6
+ renderRoot?: (props: any) => any;
7
+ }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
3
8
  //# sourceMappingURL=ToolbarNewButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolbarNewButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/ToolbarNewButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAU,WAAW,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAE/E,eAAO,MAAM,gBAAgB,GAAI,wBAG9B,yBAAyB,CAAC,QAAQ,EAAE,WAAW,CAAC,4CAmBlD,CAAC"}
1
+ {"version":3,"file":"ToolbarNewButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/ToolbarNewButton.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,WAAW,EAA6B,MAAM,eAAe,CAAC;AAE/E,eAAO,MAAM,gBAAgB;;;;;6DAuB3B,CAAC"}
@@ -1,15 +1,14 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { Add01Icon as r } from "@hugeicons/core-free-icons";
3
- import { HugeiconsIcon as n } from "@hugeicons/react";
4
- import { Button as e } from "@mantine/core";
5
- const c = ({
6
- children: o,
7
- ...i
8
- }) => /* @__PURE__ */ t(
9
- e,
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
+ import { Add01Icon as n } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as m } from "@hugeicons/react";
5
+ import { Button as f } from "@mantine/core";
6
+ const s = e(({ children: t, ...r }, i) => /* @__PURE__ */ o(
7
+ f,
10
8
  {
9
+ ref: i,
11
10
  px: 8,
12
- leftSection: /* @__PURE__ */ t(n, { icon: r, size: 16 }),
11
+ leftSection: /* @__PURE__ */ o(m, { icon: n, size: 16 }),
13
12
  justify: "flex-start",
14
13
  variant: "filled",
15
14
  size: "sm",
@@ -19,10 +18,11 @@ const c = ({
19
18
  marginInlineEnd: 8
20
19
  }
21
20
  },
22
- ...i,
23
- children: o
21
+ ...r,
22
+ children: t
24
23
  }
25
- );
24
+ ));
25
+ s.displayName = "ToolbarNewButton";
26
26
  export {
27
- c as ToolbarNewButton
27
+ s as ToolbarNewButton
28
28
  };
@@ -1,10 +1,12 @@
1
+ import React from 'react';
1
2
  import { TransformWrapper } from 'react-zoom-pan-pinch';
2
3
  import { IFileResponse } from '../../../types/files';
3
4
  interface IProps {
5
+ ref?: any;
4
6
  onTransformed?: React.ComponentProps<typeof TransformWrapper>['onTransformed'];
5
7
  isActive: boolean;
6
8
  attachment: IFileResponse;
7
9
  }
8
- export declare const GallerySlide: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<IProps & import("react").RefAttributes<HTMLDivElement>>>;
10
+ export declare const GallerySlide: React.MemoExoticComponent<({ onTransformed, attachment, isActive, ref }: IProps) => import("react/jsx-runtime").JSX.Element>;
9
11
  export {};
10
12
  //# sourceMappingURL=GallerySlide.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GallerySlide.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/GallerySlide.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAUrD,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAClC,OAAO,gBAAgB,CACxB,CAAC,eAAe,CAAC,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,wIAoExB,CAAC"}
1
+ {"version":3,"file":"GallerySlide.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/GallerySlide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAsB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAWrD,UAAU,MAAM;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAClC,OAAO,gBAAgB,CACxB,CAAC,eAAe,CAAC,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,2EACwB,MAAM,6CAoGtD,CAAC"}