@layers-app/shared 0.3.9 → 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 (103) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +10 -10
  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/AppContainer.module.css.js +1 -1
  5. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +7 -2
  6. package/dist/components/AppContainer/components/ToolbarNewButton.d.ts.map +1 -1
  7. package/dist/components/AppContainer/components/ToolbarNewButton.js +14 -14
  8. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  9. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  10. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  11. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -27
  12. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  13. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +60 -47
  14. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  15. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +2 -1
  16. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -1
  17. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +13 -12
  18. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +17 -17
  19. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  20. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  21. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  22. package/dist/components/ColorPicker/ColorPicker.d.ts +9 -13
  23. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  24. package/dist/components/ColorPicker/ColorPicker.js +139 -145
  25. package/dist/components/ColorPicker/ColorPicker.module.css.js +8 -8
  26. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  27. package/dist/components/ColorPicker/ColorPickerToolbar.js +88 -71
  28. package/dist/components/ColorPicker/icons.js +4 -4
  29. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  30. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  31. package/dist/components/CommentComposer/CommentEditorHotkeys.js +4 -3
  32. package/dist/components/CommentComposer/index.js +1 -1
  33. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  34. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  35. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  36. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  37. package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
  38. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  39. package/dist/components/EmojiPicker/EmojiPicker.js +1 -0
  40. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  41. package/dist/components/EmojiPicker/IconsPanel.js +13 -13
  42. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  43. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  44. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  45. package/dist/components/FilePicker/FilePicker.d.ts +4 -2
  46. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  47. package/dist/components/FilePicker/FilePicker.js +241 -226
  48. package/dist/components/FilePicker/FilePicker.module.css.js +14 -12
  49. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  50. package/dist/components/FilePicker/FilePickerGallery.js +60 -34
  51. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  52. package/dist/components/FilePicker/FilePickerGiphy.js +38 -39
  53. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  54. package/dist/components/FilePicker/FilePickerLink.js +29 -26
  55. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  56. package/dist/components/FilePicker/FilePickerUnsplash.js +42 -43
  57. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  58. package/dist/components/FilePicker/FilePickerUpload.js +51 -35
  59. package/dist/components/FilePicker/coverCollections.d.ts +4 -0
  60. package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
  61. package/dist/components/FilePicker/coverCollections.js +164 -0
  62. package/dist/components/FilePicker/index.d.ts +1 -0
  63. package/dist/components/FilePicker/index.d.ts.map +1 -1
  64. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  65. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  66. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  67. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  68. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  69. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  70. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  71. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  72. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  73. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  74. package/dist/components/Loaders/styles.module.css.js +6 -6
  75. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  76. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  77. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  78. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  79. package/dist/components/Notification/Notification.module.css.js +1 -1
  80. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
  81. package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
  82. package/dist/components/OnBoarding/styles.module.css.js +7 -7
  83. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  84. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  85. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  86. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  87. package/dist/components/table/FrontTable.d.ts.map +1 -1
  88. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  89. package/dist/helpers/getFileType.d.ts +1 -1
  90. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  91. package/dist/helpers/showNotifications.module.css.js +1 -1
  92. package/dist/index.css +1 -1
  93. package/dist/index.d.ts +1 -1
  94. package/dist/index.d.ts.map +1 -1
  95. package/dist/index.js +466 -463
  96. package/dist/lang/locales/ui_en.json.js +20 -18
  97. package/dist/lang/locales/ui_es.json.js +14 -12
  98. package/dist/lang/locales/ui_ru.json.js +15 -13
  99. package/docs/README.md +499 -499
  100. package/package.json +75 -75
  101. package/dist/components/TextColorIcon.d.ts +0 -8
  102. package/dist/components/TextColorIcon.d.ts.map +0 -1
  103. package/dist/components/TextColorIcon.js +0 -60
@@ -1,4 +1,4 @@
1
- const e = "_page_188hj_3", g = "_figureContainer_188hj_16", _ = "_figure_188hj_16", a = "_figureA_188hj_29", r = "_figureB_188hj_33", n = "_grainOverlay_188hj_115", i = "_badgeWrap_188hj_127", t = "_badge0_188hj_155", d = "_badge1_188hj_160", o = "_badge2_188hj_169", b = "_badge3_188hj_178", s = {
1
+ const e = "_page_qm43p_5", g = "_figureContainer_qm43p_31", _ = "_figure_qm43p_31", a = "_figureA_qm43p_57", r = "_figureB_qm43p_65", n = "_grainOverlay_qm43p_229", i = "_badgeWrap_qm43p_253", p = "_badge0_qm43p_309", t = "_badge1_qm43p_319", d = "_badge2_qm43p_337", o = "_badge3_qm43p_355", b = {
2
2
  page: e,
3
3
  figureContainer: g,
4
4
  figure: _,
@@ -6,18 +6,18 @@ const e = "_page_188hj_3", g = "_figureContainer_188hj_16", _ = "_figure_188hj_1
6
6
  figureB: r,
7
7
  grainOverlay: n,
8
8
  badgeWrap: i,
9
- badge0: t,
10
- badge1: d,
11
- badge2: o,
12
- badge3: b
9
+ badge0: p,
10
+ badge1: t,
11
+ badge2: d,
12
+ badge3: o
13
13
  };
14
14
  export {
15
- t as badge0,
16
- d as badge1,
17
- o as badge2,
18
- b as badge3,
15
+ p as badge0,
16
+ t as badge1,
17
+ d as badge2,
18
+ o as badge3,
19
19
  i as badgeWrap,
20
- s as default,
20
+ b as default,
21
21
  _ as figure,
22
22
  a as figureA,
23
23
  r as figureB,
@@ -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,4 +1,4 @@
1
- const t = "_toolTitleInput_103nq_19", n = "_appSidebarButton_103nq_34", o = "_slideContainer_103nq_55", e = "_slideContent_103nq_61", i = "_main_103nq_76", l = "_floatingMeetSlot_103nq_85", a = {
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 = {
2
2
  toolTitleInput: t,
3
3
  appSidebarButton: n,
4
4
  slideContainer: o,
@@ -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,4 +1,4 @@
1
- const t = "_dot_h8jhb_1", o = "_line_h8jhb_9", e = {
1
+ const t = "_dot_w7tk6_1", o = "_line_w7tk6_17", e = {
2
2
  dot: t,
3
3
  line: o
4
4
  };
@@ -1,6 +1,6 @@
1
- const e = "_root_9zlef_1", t = "_header_9zlef_9", o = "_section_9zlef_20", _ = "_leftSidebar_9zlef_28", n = "_rightSidebar_9zlef_36", r = "_main_9zlef_44", i = "_workContent_9zlef_52", a = {
2
- root: e,
3
- header: t,
1
+ const t = "_root_10w7v_1", e = "_header_10w7v_17", o = "_section_10w7v_39", _ = "_leftSidebar_10w7v_55", n = "_rightSidebar_10w7v_71", r = "_main_10w7v_87", i = "_workContent_10w7v_103", a = {
2
+ root: t,
3
+ header: e,
4
4
  section: o,
5
5
  leftSidebar: _,
6
6
  rightSidebar: n,
@@ -9,11 +9,11 @@ const e = "_root_9zlef_1", t = "_header_9zlef_9", o = "_section_9zlef_20", _ = "
9
9
  };
10
10
  export {
11
11
  a as default,
12
- t as header,
12
+ e as header,
13
13
  _ as leftSidebar,
14
14
  r as main,
15
15
  n as rightSidebar,
16
- e as root,
16
+ t as root,
17
17
  o as section,
18
18
  i as workContent
19
19
  };
@@ -1 +1 @@
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,6CAiGtD,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"}
@@ -1,29 +1,29 @@
1
- import { jsx as r, jsxs as P } from "react/jsx-runtime";
2
- import { memo as F } from "react";
3
- import { TransformWrapper as U, TransformComponent as y } from "react-zoom-pan-pinch";
1
+ import { jsx as r, jsxs as C } from "react/jsx-runtime";
2
+ import { memo as P } from "react";
3
+ import { TransformWrapper as F, TransformComponent as T } from "react-zoom-pan-pinch";
4
4
  import { Box as l } from "@mantine/core";
5
- import { BaseLoader as E } from "../../Loaders/BaseLoader.js";
6
- import { ShakaVideoPlayer as O } from "./ShakePlayer/ShakaPlayer.js";
7
- import { ZOOM_CONFIG as a, TRANSFORM_COMPONENT_STYLES as c } from "../constants.js";
8
- import { useGetPreviewUrl as b } from "../hooks/useGetPreviewUrl.js";
9
- import { usePanning as x } from "../hooks/usePanning.js";
5
+ import { BaseLoader as U } from "../../Loaders/BaseLoader.js";
6
+ import { ShakaVideoPlayer as E } from "./ShakePlayer/ShakaPlayer.js";
7
+ import { ZOOM_CONFIG as a, TRANSFORM_COMPONENT_STYLES as u } from "../constants.js";
8
+ import { useGetPreviewUrl as O } from "../hooks/useGetPreviewUrl.js";
9
+ import { usePanning as b } from "../hooks/usePanning.js";
10
10
  import { ErrorSection as p } from "./ErrorSection.js";
11
- import { UnsupportedSection as T } from "./UnsupportedSection.js";
11
+ import { UnsupportedSection as x } from "./UnsupportedSection.js";
12
12
  import i from "../styles.module.css.js";
13
- const h = F(
13
+ const A = P(
14
14
  ({ onTransformed: S, attachment: e, isActive: s, ref: N }) => {
15
15
  const {
16
- isError: m,
16
+ isError: n,
17
17
  setIsError: g,
18
18
  fileUrl: o,
19
- isFetching: n,
19
+ isFetching: m,
20
20
  isVideo: d,
21
21
  isPdf: t,
22
22
  isAudio: f,
23
- isSupported: u
24
- } = b(e), C = x({ isFetching: n, isVideo: d });
23
+ isSupported: c
24
+ } = O(e), y = b({ isFetching: m, isVideo: d });
25
25
  return /* @__PURE__ */ r(
26
- U,
26
+ F,
27
27
  {
28
28
  panning: {
29
29
  disabled: !0
@@ -33,7 +33,7 @@ const h = F(
33
33
  minScale: a.minScale,
34
34
  maxScale: a.maxScale,
35
35
  limitToBounds: !0,
36
- disabled: n || d || t || f || !u,
36
+ disabled: m || d || t || f || !c,
37
37
  disablePadding: !0,
38
38
  centerZoomedOut: !0,
39
39
  ref: N,
@@ -45,26 +45,26 @@ const h = F(
45
45
  disabled: !0
46
46
  },
47
47
  children: /* @__PURE__ */ r(
48
- y,
48
+ T,
49
49
  {
50
- wrapperStyle: c,
51
- contentStyle: c,
52
- wrapperProps: C,
53
- children: u ? n ? /* @__PURE__ */ r(E, {}) : d ? /* @__PURE__ */ r(l, { className: i.videoContainer, children: /* @__PURE__ */ r(
54
- O,
50
+ wrapperStyle: u,
51
+ contentStyle: u,
52
+ wrapperProps: y,
53
+ children: c ? m ? /* @__PURE__ */ r(U, {}) : d ? /* @__PURE__ */ r(l, { className: i.videoContainer, children: /* @__PURE__ */ r(
54
+ E,
55
55
  {
56
56
  isActive: s,
57
57
  autoPlay: s,
58
58
  attachmentId: e.id
59
59
  }
60
- ) }) : t ? m || !(e?.Url || o) ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ r(l, { className: i.pdfContainer, children: /* @__PURE__ */ r(
60
+ ) }) : t ? n || !(e?.Url || o) ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ r(l, { className: i.pdfContainer, children: /* @__PURE__ */ r(
61
61
  "iframe",
62
62
  {
63
63
  title: e.originalFileName || "pdf",
64
64
  src: e?.Url ?? o ?? "",
65
65
  className: i.pdfFrame
66
66
  }
67
- ) }) : f ? m || !(e?.Url || o) ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ P(l, { className: i.audioContainer, children: [
67
+ ) }) : f ? n || !(e?.Url || o) ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ C(l, { className: i.audioContainer, children: [
68
68
  /* @__PURE__ */ r(l, { className: i.audioName, children: e.originalFileName || "audio" }),
69
69
  /* @__PURE__ */ r(
70
70
  "audio",
@@ -75,7 +75,7 @@ const h = F(
75
75
  className: i.audioElement
76
76
  }
77
77
  )
78
- ] }) : m ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ r(
78
+ ] }) : n ? /* @__PURE__ */ r(p, {}) : /* @__PURE__ */ r(
79
79
  "img",
80
80
  {
81
81
  onError: () => g(!0),
@@ -83,7 +83,13 @@ const h = F(
83
83
  className: i.imageContainer,
84
84
  src: e?.Url ?? o ?? ""
85
85
  }
86
- ) : /* @__PURE__ */ r(T, { filename: e.originalFileName })
86
+ ) : /* @__PURE__ */ r(
87
+ x,
88
+ {
89
+ filename: e.originalFileName,
90
+ contentType: e.contentType
91
+ }
92
+ )
87
93
  }
88
94
  )
89
95
  }
@@ -91,5 +97,5 @@ const h = F(
91
97
  }
92
98
  );
93
99
  export {
94
- h as GallerySlide
100
+ A as GallerySlide
95
101
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAMrD,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,iEACK,gBAAgB,6CAgI5C,CAAC"}
1
+ {"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalHeader.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAMrD,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,iEACK,gBAAgB,6CA6I5C,CAAC"}
@@ -1,29 +1,31 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { memo as I, useRef as b } from "react";
3
3
  import { useTranslation as A } from "react-i18next";
4
- import { Box as C, Tooltip as l, ActionIcon as o, Text as m, Flex as p } from "@mantine/core";
5
- import { IconDownload as h, IconMinus as R, IconPlus as k, IconX as F } from "@tabler/icons-react";
6
- import { useAttachmentsGalleryContext as T } from "../AttachmentsGalleryContext.js";
7
- import { zoomStep as u } from "../helpers.js";
8
- import { useDownloadFile as j } from "../hooks/useDownloadFile.js";
9
- import { useZoomReset as D } from "../hooks/useZoomReset.js";
10
- const V = I(
11
- ({ onClose: f, attachments: y }) => {
12
- D();
13
- const { t: e } = A("ui"), i = b(null), { zoomPercentage: x, transformRefs: n, selectedIndex: a } = T(), c = y?.[a], w = () => {
14
- u({
15
- animationRef: i,
4
+ import { Box as C, Tooltip as t, ActionIcon as a, Flex as n, Text as p } from "@mantine/core";
5
+ import { IconDownload as h, IconMinus as F, IconPlus as R, IconX as k } from "@tabler/icons-react";
6
+ import { getFileIcons as T } from "../../../helpers/getFileIcons.js";
7
+ import { getFileType as j } from "../../../helpers/getFileType.js";
8
+ import { useAttachmentsGalleryContext as D } from "../AttachmentsGalleryContext.js";
9
+ import { zoomStep as f } from "../helpers.js";
10
+ import { useDownloadFile as M } from "../hooks/useDownloadFile.js";
11
+ import { useZoomReset as Z } from "../hooks/useZoomReset.js";
12
+ const J = I(
13
+ ({ onClose: u, attachments: y }) => {
14
+ Z();
15
+ const { t: r } = A("ui"), c = b(null), { zoomPercentage: w, transformRefs: s, selectedIndex: i } = D(), l = y?.[i], x = () => {
16
+ f({
17
+ animationRef: c,
16
18
  dir: "in",
17
- activeRef: n.current[a]
19
+ activeRef: s.current[i]
18
20
  });
19
21
  }, v = () => {
20
- u({
21
- animationRef: i,
22
+ f({
23
+ animationRef: c,
22
24
  dir: "out",
23
- activeRef: n.current[a]
25
+ activeRef: s.current[i]
24
26
  });
25
- }, { isVideo: z, isFetching: s, onDownload: d, isMobile: g } = j(c);
26
- return /* @__PURE__ */ t(
27
+ }, { isVideo: z, isFetching: g, onDownload: m, isMobile: d } = M(l);
28
+ return /* @__PURE__ */ o(
27
29
  C,
28
30
  {
29
31
  style: {
@@ -38,32 +40,43 @@ const V = I(
38
40
  py: 8,
39
41
  bg: "var(--mantine-color-dark-6)",
40
42
  children: [
41
- g ? /* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.download"), children: /* @__PURE__ */ r(
42
- o,
43
+ d ? /* @__PURE__ */ e(t, { withArrow: !0, label: r("gallery.download"), children: /* @__PURE__ */ e(
44
+ a,
43
45
  {
44
46
  c: "var(--app-gallary-text)",
45
47
  color: "gray",
46
48
  size: "lg",
47
49
  variant: "light",
48
- loading: s,
49
- onClick: d,
50
- children: /* @__PURE__ */ r(h, { size: 20 })
50
+ loading: g,
51
+ onClick: m,
52
+ children: /* @__PURE__ */ e(h, { size: 20 })
51
53
  }
52
- ) }) : /* @__PURE__ */ r(m, { ml: 6, fw: 500, fz: 14, c: "var(--app-gallary-text)", truncate: !0, children: c?.originalFileName || "" }),
53
- z ? /* @__PURE__ */ r("div", {}) : /* @__PURE__ */ t(p, { gap: "xs", children: [
54
- /* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.zoomOut"), children: /* @__PURE__ */ r(
55
- o,
54
+ ) }) : /* @__PURE__ */ o(n, { align: "center", gap: 8, ml: 6, miw: 0, children: [
55
+ l ? T(
56
+ j(
57
+ l.contentType ?? "",
58
+ !1,
59
+ l.originalFileName
60
+ ),
61
+ !1,
62
+ 20
63
+ ) : null,
64
+ /* @__PURE__ */ e(p, { fw: 500, fz: 14, c: "var(--app-gallary-text)", truncate: !0, children: l?.originalFileName || "" })
65
+ ] }),
66
+ z ? /* @__PURE__ */ e("div", {}) : /* @__PURE__ */ o(n, { gap: "xs", children: [
67
+ /* @__PURE__ */ e(t, { withArrow: !0, label: r("gallery.zoomOut"), children: /* @__PURE__ */ e(
68
+ a,
56
69
  {
57
70
  c: "var(--app-gallary-text)",
58
71
  color: "gray",
59
72
  size: "lg",
60
73
  variant: "light",
61
74
  onClick: v,
62
- children: /* @__PURE__ */ r(R, { size: 20 })
75
+ children: /* @__PURE__ */ e(F, { size: 20 })
63
76
  }
64
77
  ) }),
65
- /* @__PURE__ */ t(
66
- m,
78
+ /* @__PURE__ */ o(
79
+ p,
67
80
  {
68
81
  fw: 500,
69
82
  fz: 14,
@@ -71,45 +84,45 @@ const V = I(
71
84
  miw: 50,
72
85
  ta: "center",
73
86
  children: [
74
- x,
87
+ w,
75
88
  "%"
76
89
  ]
77
90
  }
78
91
  ),
79
- /* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.zoomIn"), children: /* @__PURE__ */ r(
80
- o,
92
+ /* @__PURE__ */ e(t, { withArrow: !0, label: r("gallery.zoomIn"), children: /* @__PURE__ */ e(
93
+ a,
81
94
  {
82
95
  c: "var(--app-gallary-text)",
83
96
  color: "gray",
84
97
  size: "lg",
85
98
  variant: "light",
86
- onClick: w,
87
- children: /* @__PURE__ */ r(k, { size: 20 })
99
+ onClick: x,
100
+ children: /* @__PURE__ */ e(R, { size: 20 })
88
101
  }
89
102
  ) })
90
103
  ] }),
91
- /* @__PURE__ */ t(p, { justify: "end", gap: "xs", children: [
92
- !g && /* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.download"), children: /* @__PURE__ */ r(
93
- o,
104
+ /* @__PURE__ */ o(n, { justify: "end", gap: "xs", children: [
105
+ !d && /* @__PURE__ */ e(t, { withArrow: !0, label: r("gallery.download"), children: /* @__PURE__ */ e(
106
+ a,
94
107
  {
95
108
  c: "var(--app-gallary-text)",
96
109
  size: "lg",
97
110
  color: "gray",
98
111
  variant: "light",
99
- loading: s,
100
- onClick: d,
101
- children: /* @__PURE__ */ r(h, { size: 20 })
112
+ loading: g,
113
+ onClick: m,
114
+ children: /* @__PURE__ */ e(h, { size: 20 })
102
115
  }
103
116
  ) }),
104
- /* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.close"), children: /* @__PURE__ */ r(
105
- o,
117
+ /* @__PURE__ */ e(t, { withArrow: !0, label: r("gallery.close"), children: /* @__PURE__ */ e(
118
+ a,
106
119
  {
107
120
  c: "var(--app-gallary-text)",
108
121
  size: "lg",
109
122
  color: "gray",
110
123
  variant: "light",
111
- onClick: f,
112
- children: /* @__PURE__ */ r(F, { size: 20 })
124
+ onClick: u,
125
+ children: /* @__PURE__ */ e(k, { size: 20 })
113
126
  }
114
127
  ) })
115
128
  ] })
@@ -119,5 +132,5 @@ const V = I(
119
132
  }
120
133
  );
121
134
  export {
122
- V as ModalHeader
135
+ J as ModalHeader
123
136
  };
@@ -1,7 +1,7 @@
1
- const e = {
2
- "vod-player": "_vod-player_be6om_1",
3
- "vod-player__player": "_vod-player__player_be6om_13"
1
+ const a = {
2
+ "vod-player": "_vod-player_1paib_1",
3
+ "vod-player__player": "_vod-player__player_1paib_25"
4
4
  };
5
5
  export {
6
- e as default
6
+ a as default
7
7
  };
@@ -1,6 +1,7 @@
1
1
  interface Props {
2
2
  filename?: string;
3
+ contentType?: string;
3
4
  }
4
- export declare const UnsupportedSection: ({ filename }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const UnsupportedSection: ({ filename, contentType }: Props) => import("react/jsx-runtime").JSX.Element;
5
6
  export {};
6
7
  //# sourceMappingURL=UnsupportedSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnsupportedSection.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/UnsupportedSection.tsx"],"names":[],"mappings":"AAKA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,kBAAkB,GAAI,cAAc,KAAK,4CAqBrD,CAAC"}
1
+ {"version":3,"file":"UnsupportedSection.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/UnsupportedSection.tsx"],"names":[],"mappings":"AAOA,UAAU,KAAK;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,GAAI,2BAA2B,KAAK,4CAuBlE,CAAC"}
@@ -1,16 +1,17 @@
1
- import { jsx as r, jsxs as a } from "react/jsx-runtime";
2
- import { useTranslation as n } from "react-i18next";
3
- import { Flex as p, Stack as c, Text as t } from "@mantine/core";
4
- import { IconFileOff as o } from "@tabler/icons-react";
5
- const g = ({ filename: e }) => {
6
- const { t: l } = n("ui");
7
- return /* @__PURE__ */ r(p, { align: "center", justify: "center", children: /* @__PURE__ */ a(c, { align: "center", gap: "xs", maw: 480, p: "xl", children: [
8
- /* @__PURE__ */ r(o, { size: 48, color: "var(--app-gallary-text)" }),
9
- /* @__PURE__ */ r(t, { c: "var(--app-gallary-text)", fz: "lg", fw: 600, children: l("gallery.unsupportedTitle") }),
10
- e ? /* @__PURE__ */ r(t, { c: "var(--app-gallary-text)", fz: "sm", ta: "center", fs: "italic", children: e }) : null,
11
- /* @__PURE__ */ r(t, { c: "var(--app-gallary-text)", fz: "sm", ta: "center", children: l("gallery.unsupportedBody") })
1
+ import { jsx as t, jsxs as p } from "react/jsx-runtime";
2
+ import { useTranslation as o } from "react-i18next";
3
+ import { Flex as c, Stack as i, Text as r } from "@mantine/core";
4
+ import { getFileIcons as s } from "../../../helpers/getFileIcons.js";
5
+ import { getFileType as f } from "../../../helpers/getFileType.js";
6
+ const y = ({ filename: e, contentType: a }) => {
7
+ const { t: l } = o("ui"), n = f(a ?? "", !1, e);
8
+ return /* @__PURE__ */ t(c, { align: "center", justify: "center", children: /* @__PURE__ */ p(i, { align: "center", gap: "xs", maw: 480, p: "xl", children: [
9
+ s(n, !1, 48),
10
+ /* @__PURE__ */ t(r, { c: "var(--app-gallary-text)", fz: "lg", fw: 600, children: l("gallery.unsupportedTitle") }),
11
+ e ? /* @__PURE__ */ t(r, { c: "var(--app-gallary-text)", fz: "sm", ta: "center", fs: "italic", children: e }) : null,
12
+ /* @__PURE__ */ t(r, { c: "var(--app-gallary-text)", fz: "sm", ta: "center", children: l("gallery.unsupportedBody") })
12
13
  ] }) });
13
14
  };
14
15
  export {
15
- g as UnsupportedSection
16
+ y as UnsupportedSection
16
17
  };
@@ -1,4 +1,4 @@
1
- const o = "_container_13fbv_1", n = "_root_13fbv_7", t = "_carouselRoot_13fbv_14", e = "_carouselViewport_13fbv_18", a = "_carouselSlide_13fbv_22", _ = "_navButton_13fbv_29", r = "_navButtonPrev_13fbv_42", i = "_navButtonNext_13fbv_46", v = "_modalContent_13fbv_50", d = "_modalBody_13fbv_55", c = "_videoContainer_13fbv_61", s = "_imageContainer_13fbv_66", u = "_pdfContainer_13fbv_73", f = "_pdfFrame_13fbv_81", l = "_audioContainer_13fbv_88", m = "_audioName_13fbv_103", b = "_audioElement_13fbv_111", C = {
1
+ const o = "_container_329fy_1", n = "_root_329fy_13", t = "_carouselRoot_329fy_27", e = "_carouselViewport_329fy_35", a = "_carouselSlide_329fy_43", _ = "_navButton_329fy_57", r = "_navButtonPrev_329fy_83", i = "_navButtonNext_329fy_91", d = "_modalContent_329fy_99", c = "_modalBody_329fy_109", s = "_videoContainer_329fy_121", u = "_imageContainer_329fy_131", f = "_pdfContainer_329fy_145", l = "_pdfFrame_329fy_161", y = "_audioContainer_329fy_175", m = "_audioName_329fy_205", v = "_audioElement_329fy_221", C = {
2
2
  container: o,
3
3
  root: n,
4
4
  carouselRoot: t,
@@ -7,33 +7,33 @@ const o = "_container_13fbv_1", n = "_root_13fbv_7", t = "_carouselRoot_13fbv_14
7
7
  navButton: _,
8
8
  navButtonPrev: r,
9
9
  navButtonNext: i,
10
- modalContent: v,
11
- modalBody: d,
12
- videoContainer: c,
13
- imageContainer: s,
14
- pdfContainer: u,
15
- pdfFrame: f,
16
- audioContainer: l,
10
+ modalContent: d,
11
+ modalBody: c,
12
+ videoContainer: s,
13
+ imageContainer: u,
14
+ pdfContainer: f,
15
+ pdfFrame: l,
16
+ audioContainer: y,
17
17
  audioName: m,
18
- audioElement: b
18
+ audioElement: v
19
19
  };
20
20
  export {
21
- l as audioContainer,
22
- b as audioElement,
21
+ y as audioContainer,
22
+ v as audioElement,
23
23
  m as audioName,
24
24
  t as carouselRoot,
25
25
  a as carouselSlide,
26
26
  e as carouselViewport,
27
27
  o as container,
28
28
  C as default,
29
- s as imageContainer,
30
- d as modalBody,
31
- v as modalContent,
29
+ u as imageContainer,
30
+ c as modalBody,
31
+ d as modalContent,
32
32
  _ as navButton,
33
33
  i as navButtonNext,
34
34
  r as navButtonPrev,
35
- u as pdfContainer,
36
- f as pdfFrame,
35
+ f as pdfContainer,
36
+ l as pdfFrame,
37
37
  n as root,
38
- c as videoContainer
38
+ s as videoContainer
39
39
  };
@@ -1,4 +1,4 @@
1
- const e = "_imagePreviewWrapper_qqm20_1", t = "_deleteButton_qqm20_6", o = "_downloadButton_qqm20_13", i = "_filePreviewList_qqm20_32", r = "_fileDownloadName_qqm20_45", a = "_filePreviewWrapper_qqm20_51", l = {
1
+ const e = "_imagePreviewWrapper_1814g_1", t = "_deleteButton_1814g_11", o = "_downloadButton_1814g_25", i = "_filePreviewList_1814g_63", r = "_fileDownloadName_1814g_89", a = "_filePreviewWrapper_1814g_101", l = {
2
2
  imagePreviewWrapper: e,
3
3
  deleteButton: t,
4
4
  downloadButton: o,
@@ -1,15 +1,15 @@
1
- const o = "_wrapper_1y9p0_1", s = "_logo_1y9p0_8", p = "_desktop_1y9p0_23", _ = "_shadow_1y9p0_37", t = "_desktopShadow_1y9p0_50", d = {
1
+ const o = "_wrapper_1n4or_1", s = "_logo_1n4or_15", _ = "_desktop_1n4or_45", t = "_shadow_1n4or_73", d = "_desktopShadow_1n4or_99", p = {
2
2
  wrapper: o,
3
3
  logo: s,
4
- desktop: p,
5
- shadow: _,
6
- desktopShadow: t
4
+ desktop: _,
5
+ shadow: t,
6
+ desktopShadow: d
7
7
  };
8
8
  export {
9
- d as default,
10
- p as desktop,
11
- t as desktopShadow,
9
+ p as default,
10
+ _ as desktop,
11
+ d as desktopShadow,
12
12
  s as logo,
13
- _ as shadow,
13
+ t as shadow,
14
14
  o as wrapper
15
15
  };
@@ -1,4 +1,4 @@
1
- const o = "_accordionRoot_3pkfo_1", c = "_accordionControl_3pkfo_5", n = "_accordionItem_3pkfo_9", t = {
1
+ const o = "_accordionRoot_1of7x_1", c = "_accordionControl_1of7x_9", n = "_accordionItem_1of7x_17", t = {
2
2
  accordionRoot: o,
3
3
  accordionControl: c,
4
4
  accordionItem: n