@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.
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +10 -10
- package/dist/components/AppContainer/AppContainer.d.ts +6 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts +7 -2
- package/dist/components/AppContainer/components/ToolbarNewButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolbarNewButton.js +14 -14
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -27
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +60 -47
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +2 -1
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +13 -12
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +17 -17
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +9 -13
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +139 -145
- package/dist/components/ColorPicker/ColorPicker.module.css.js +8 -8
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +88 -71
- package/dist/components/ColorPicker/icons.js +4 -4
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +4 -3
- package/dist/components/CommentComposer/index.js +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.js +13 -13
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.d.ts +4 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +241 -226
- package/dist/components/FilePicker/FilePicker.module.css.js +14 -12
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +60 -34
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +38 -39
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +29 -26
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +42 -43
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +51 -35
- package/dist/components/FilePicker/coverCollections.d.ts +4 -0
- package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
- package/dist/components/FilePicker/coverCollections.js +164 -0
- package/dist/components/FilePicker/index.d.ts +1 -0
- package/dist/components/FilePicker/index.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
- package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
- package/dist/components/OnBoarding/styles.module.css.js +7 -7
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +466 -463
- package/dist/lang/locales/ui_en.json.js +20 -18
- package/dist/lang/locales/ui_es.json.js +14 -12
- package/dist/lang/locales/ui_ru.json.js +15 -13
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/TextColorIcon.d.ts +0 -8
- package/dist/components/TextColorIcon.d.ts.map +0 -1
- package/dist/components/TextColorIcon.js +0 -60
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "
|
|
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:
|
|
10
|
-
badge1:
|
|
11
|
-
badge2:
|
|
12
|
-
badge3:
|
|
9
|
+
badge0: p,
|
|
10
|
+
badge1: t,
|
|
11
|
+
badge2: d,
|
|
12
|
+
badge3: o
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
p as badge0,
|
|
16
|
+
t as badge1,
|
|
17
|
+
d as badge2,
|
|
18
|
+
o as badge3,
|
|
19
19
|
i as badgeWrap,
|
|
20
|
-
|
|
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:
|
|
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
|
|
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 = "
|
|
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
|
|
2
|
-
export declare const ToolbarNewButton:
|
|
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":"
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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__ */
|
|
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
|
-
...
|
|
23
|
-
children:
|
|
21
|
+
...r,
|
|
22
|
+
children: t
|
|
24
23
|
}
|
|
25
|
-
);
|
|
24
|
+
));
|
|
25
|
+
s.displayName = "ToolbarNewButton";
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
s as ToolbarNewButton
|
|
28
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
header:
|
|
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
|
-
|
|
12
|
+
e as header,
|
|
13
13
|
_ as leftSidebar,
|
|
14
14
|
r as main,
|
|
15
15
|
n as rightSidebar,
|
|
16
|
-
|
|
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,
|
|
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
|
|
2
|
-
import { memo as
|
|
3
|
-
import { TransformWrapper as
|
|
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
|
|
6
|
-
import { ShakaVideoPlayer as
|
|
7
|
-
import { ZOOM_CONFIG as a, TRANSFORM_COMPONENT_STYLES as
|
|
8
|
-
import { useGetPreviewUrl as
|
|
9
|
-
import { usePanning as
|
|
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
|
|
11
|
+
import { UnsupportedSection as x } from "./UnsupportedSection.js";
|
|
12
12
|
import i from "../styles.module.css.js";
|
|
13
|
-
const
|
|
13
|
+
const A = P(
|
|
14
14
|
({ onTransformed: S, attachment: e, isActive: s, ref: N }) => {
|
|
15
15
|
const {
|
|
16
|
-
isError:
|
|
16
|
+
isError: n,
|
|
17
17
|
setIsError: g,
|
|
18
18
|
fileUrl: o,
|
|
19
|
-
isFetching:
|
|
19
|
+
isFetching: m,
|
|
20
20
|
isVideo: d,
|
|
21
21
|
isPdf: t,
|
|
22
22
|
isAudio: f,
|
|
23
|
-
isSupported:
|
|
24
|
-
} =
|
|
23
|
+
isSupported: c
|
|
24
|
+
} = O(e), y = b({ isFetching: m, isVideo: d });
|
|
25
25
|
return /* @__PURE__ */ r(
|
|
26
|
-
|
|
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:
|
|
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
|
-
|
|
48
|
+
T,
|
|
49
49
|
{
|
|
50
|
-
wrapperStyle:
|
|
51
|
-
contentStyle:
|
|
52
|
-
wrapperProps:
|
|
53
|
-
children:
|
|
54
|
-
|
|
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 ?
|
|
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 ?
|
|
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
|
-
] }) :
|
|
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(
|
|
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
|
-
|
|
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":"
|
|
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
|
|
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
|
|
5
|
-
import { IconDownload as h, IconMinus as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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:
|
|
19
|
+
activeRef: s.current[i]
|
|
18
20
|
});
|
|
19
21
|
}, v = () => {
|
|
20
|
-
|
|
21
|
-
animationRef:
|
|
22
|
+
f({
|
|
23
|
+
animationRef: c,
|
|
22
24
|
dir: "out",
|
|
23
|
-
activeRef:
|
|
25
|
+
activeRef: s.current[i]
|
|
24
26
|
});
|
|
25
|
-
}, { isVideo: z, isFetching:
|
|
26
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
42
|
-
|
|
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:
|
|
49
|
-
onClick:
|
|
50
|
-
children: /* @__PURE__ */
|
|
50
|
+
loading: g,
|
|
51
|
+
onClick: m,
|
|
52
|
+
children: /* @__PURE__ */ e(h, { size: 20 })
|
|
51
53
|
}
|
|
52
|
-
) }) : /* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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__ */
|
|
75
|
+
children: /* @__PURE__ */ e(F, { size: 20 })
|
|
63
76
|
}
|
|
64
77
|
) }),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
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
|
-
|
|
87
|
+
w,
|
|
75
88
|
"%"
|
|
76
89
|
]
|
|
77
90
|
}
|
|
78
91
|
),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
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:
|
|
87
|
-
children: /* @__PURE__ */
|
|
99
|
+
onClick: x,
|
|
100
|
+
children: /* @__PURE__ */ e(R, { size: 20 })
|
|
88
101
|
}
|
|
89
102
|
) })
|
|
90
103
|
] }),
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
!
|
|
93
|
-
|
|
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:
|
|
100
|
-
onClick:
|
|
101
|
-
children: /* @__PURE__ */
|
|
112
|
+
loading: g,
|
|
113
|
+
onClick: m,
|
|
114
|
+
children: /* @__PURE__ */ e(h, { size: 20 })
|
|
102
115
|
}
|
|
103
116
|
) }),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
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:
|
|
112
|
-
children: /* @__PURE__ */
|
|
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
|
-
|
|
135
|
+
J as ModalHeader
|
|
123
136
|
};
|
package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const
|
|
2
|
-
"vod-player": "_vod-
|
|
3
|
-
"vod-player__player": "_vod-
|
|
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
|
-
|
|
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":"
|
|
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
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Flex as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ r
|
|
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
|
-
|
|
16
|
+
y as UnsupportedSection
|
|
16
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const o = "
|
|
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:
|
|
11
|
-
modalBody:
|
|
12
|
-
videoContainer:
|
|
13
|
-
imageContainer:
|
|
14
|
-
pdfContainer:
|
|
15
|
-
pdfFrame:
|
|
16
|
-
audioContainer:
|
|
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:
|
|
18
|
+
audioElement: v
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
36
|
-
|
|
35
|
+
f as pdfContainer,
|
|
36
|
+
l as pdfFrame,
|
|
37
37
|
n as root,
|
|
38
|
-
|
|
38
|
+
s as videoContainer
|
|
39
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "
|
|
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 = "
|
|
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:
|
|
5
|
-
shadow:
|
|
6
|
-
desktopShadow:
|
|
4
|
+
desktop: _,
|
|
5
|
+
shadow: t,
|
|
6
|
+
desktopShadow: d
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
p as default,
|
|
10
|
+
_ as desktop,
|
|
11
|
+
d as desktopShadow,
|
|
12
12
|
s as logo,
|
|
13
|
-
|
|
13
|
+
t as shadow,
|
|
14
14
|
o as wrapper
|
|
15
15
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const o = "
|
|
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
|