@layers-app/shared 0.3.7 → 0.3.9
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/AnimatedFigurePage/useParallax.d.ts +2 -2
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +4 -1
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
- 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 +3 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +89 -63
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +35 -26
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +43 -36
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +6 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +16 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -18
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
- 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 +23 -18
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +145 -139
- package/dist/components/ColorPicker/ColorPicker.module.css.js +14 -14
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +71 -88
- package/dist/components/ColorPicker/icons.js +1 -1
- 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 +3 -4
- package/dist/components/CommentComposer/index.js +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
- package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +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 +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +0 -1
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.js +13 -13
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +43 -33
- 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 +2 -4
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +226 -241
- package/dist/components/FilePicker/FilePicker.module.css.js +12 -14
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +34 -60
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +39 -38
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +26 -29
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +43 -42
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +35 -51
- package/dist/components/FilePicker/index.d.ts +0 -1
- 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/helpers/conditions.d.ts +38 -38
- package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
- package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +6 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +248 -248
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
- package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
- package/dist/components/FormViewer/types/form.d.ts +1 -1
- package/dist/components/FormViewer/types/form.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.d.ts +381 -6358
- package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
- package/dist/components/FormViewer/types/schemes.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +3 -1
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +24 -21
- 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/MediaLibrary/MediaLibraryRow.js +7 -7
- package/dist/components/NavMenu/NavMenu.d.ts +3 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +7 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +48 -43
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.js +3 -1
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/NotificationCard.d.ts +3 -1
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +87 -86
- 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/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
- package/dist/components/OnboardingTour/OnboardingTourWrapper.js +70 -74
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
- 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/TextColorIcon.d.ts +8 -0
- package/dist/components/TextColorIcon.d.ts.map +1 -0
- package/dist/components/TextColorIcon.js +60 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/UserAvatar/index.d.ts +2 -1
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +38 -35
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/envConfig.d.ts +8 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +21 -13
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +63 -45
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +29 -8
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/offlineSuppression.d.ts +3 -0
- package/dist/helpers/offlineSuppression.d.ts.map +1 -0
- package/dist/helpers/offlineSuppression.js +8 -0
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +5 -4
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +30 -29
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +467 -465
- package/dist/lang/locales/ui_en.json.js +18 -20
- package/dist/lang/locales/ui_es.json.js +12 -14
- package/dist/lang/locales/ui_ru.json.js +13 -15
- package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/FilePicker/coverCollections.d.ts +0 -4
- package/dist/components/FilePicker/coverCollections.d.ts.map +0 -1
- package/dist/components/FilePicker/coverCollections.js +0 -164
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "
|
|
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 = {
|
|
2
2
|
page: e,
|
|
3
3
|
figureContainer: g,
|
|
4
4
|
figure: _,
|
|
@@ -6,18 +6,18 @@ const e = "_page_qm43p_5", g = "_figureContainer_qm43p_31", _ = "_figure_qm43p_3
|
|
|
6
6
|
figureB: r,
|
|
7
7
|
grainOverlay: n,
|
|
8
8
|
badgeWrap: i,
|
|
9
|
-
badge0:
|
|
10
|
-
badge1:
|
|
11
|
-
badge2:
|
|
12
|
-
badge3:
|
|
9
|
+
badge0: t,
|
|
10
|
+
badge1: d,
|
|
11
|
+
badge2: o,
|
|
12
|
+
badge3: b
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
t as badge0,
|
|
16
|
+
d as badge1,
|
|
17
|
+
o as badge2,
|
|
18
|
+
b as badge3,
|
|
19
19
|
i as badgeWrap,
|
|
20
|
-
|
|
20
|
+
s as default,
|
|
21
21
|
_ as figure,
|
|
22
22
|
a as figureA,
|
|
23
23
|
r as figureB,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const useParallax: () => {
|
|
2
|
-
pageRef: import("react").RefObject<HTMLDivElement>;
|
|
3
|
-
badgeRefs: import("react").
|
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
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 = {
|
|
2
2
|
toolTitleInput: t,
|
|
3
3
|
appSidebarButton: n,
|
|
4
4
|
slideContainer: o,
|
|
@@ -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:
|
|
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,
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
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:
|
|
9
|
-
className:
|
|
14
|
+
ref: n,
|
|
15
|
+
className: l.appSidebarButton,
|
|
10
16
|
gap: 0,
|
|
11
17
|
align: "center",
|
|
12
|
-
onClick:
|
|
18
|
+
onClick: c,
|
|
19
|
+
"data-cy": o,
|
|
13
20
|
children: [
|
|
14
|
-
/* @__PURE__ */
|
|
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:
|
|
29
|
+
children: r
|
|
23
30
|
}
|
|
24
31
|
),
|
|
25
|
-
|
|
26
|
-
|
|
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:
|
|
43
|
+
children: t
|
|
37
44
|
}
|
|
38
45
|
)
|
|
39
46
|
]
|
|
40
47
|
}
|
|
41
|
-
)
|
|
48
|
+
);
|
|
42
49
|
export {
|
|
43
|
-
|
|
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,
|
|
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
|
|
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
|
|
6
|
-
import { ScrollArea as
|
|
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:
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
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__ */
|
|
25
|
-
t?.filter((
|
|
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:
|
|
27
|
+
{ path: o.path, end: !1 },
|
|
28
28
|
window.location.pathname
|
|
29
29
|
);
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
return /* @__PURE__ */ i(
|
|
31
|
+
l,
|
|
32
32
|
{
|
|
33
|
-
label:
|
|
33
|
+
label: o.name,
|
|
34
34
|
position: "right",
|
|
35
35
|
disabled: r,
|
|
36
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ i(
|
|
37
37
|
p,
|
|
38
38
|
{
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
"data-cy": `nav-tool-${o.id}`,
|
|
40
|
+
title: r ? o.name : null,
|
|
41
|
+
icon: o.icon(),
|
|
41
42
|
active: u,
|
|
42
|
-
onClick:
|
|
43
|
+
onClick: o.onClick
|
|
43
44
|
}
|
|
44
45
|
)
|
|
45
46
|
},
|
|
46
|
-
|
|
47
|
+
o.id
|
|
47
48
|
);
|
|
48
49
|
}),
|
|
49
|
-
s && !
|
|
50
|
-
/* @__PURE__ */
|
|
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__ */
|
|
55
|
+
icon: /* @__PURE__ */ i(v, { icon: g, size: 20 })
|
|
55
56
|
}
|
|
56
57
|
) }) }),
|
|
57
|
-
/* @__PURE__ */
|
|
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":"
|
|
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
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Delete03Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { IconUserCircle as
|
|
8
|
-
import { usePlatform as
|
|
9
|
-
import { useTrashModalStore as
|
|
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
|
|
13
|
-
import { MenuUserDropdown as
|
|
14
|
-
const
|
|
15
|
-
trashMenu:
|
|
16
|
-
onInviteClick:
|
|
17
|
-
showBorders:
|
|
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:
|
|
20
|
-
|
|
21
|
-
|
|
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:
|
|
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__ */
|
|
40
|
-
|
|
31
|
+
/* @__PURE__ */ n(
|
|
32
|
+
a,
|
|
41
33
|
{
|
|
42
|
-
justify: !
|
|
34
|
+
justify: !f && !u ? "end" : "space-between",
|
|
43
35
|
gap: 8,
|
|
44
36
|
flex: 1,
|
|
45
37
|
children: [
|
|
46
|
-
|
|
38
|
+
f && /* @__PURE__ */ n(
|
|
47
39
|
r,
|
|
48
40
|
{
|
|
49
41
|
position: "right",
|
|
50
42
|
offset: 6,
|
|
51
43
|
width: 360,
|
|
52
|
-
opened:
|
|
53
|
-
onChange: (
|
|
54
|
-
|
|
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
|
-
|
|
50
|
+
t,
|
|
59
51
|
{
|
|
60
|
-
label:
|
|
52
|
+
label: e("trash"),
|
|
61
53
|
position: "right",
|
|
62
|
-
disabled:
|
|
54
|
+
disabled: i,
|
|
63
55
|
children: /* @__PURE__ */ o(
|
|
64
56
|
c,
|
|
65
57
|
{
|
|
66
|
-
title:
|
|
67
|
-
icon: /* @__PURE__ */ o(
|
|
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:
|
|
64
|
+
/* @__PURE__ */ o(r.Dropdown, { children: d })
|
|
73
65
|
]
|
|
74
66
|
}
|
|
75
67
|
),
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
|
|
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:
|
|
81
|
-
icon: /* @__PURE__ */ o(
|
|
82
|
-
onClick:
|
|
72
|
+
title: i ? e("invite") : null,
|
|
73
|
+
icon: /* @__PURE__ */ o(p, { icon: D, size: 20 }),
|
|
74
|
+
onClick: h
|
|
83
75
|
}
|
|
84
76
|
) }),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */ o(r.Target, { 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:
|
|
90
|
-
icon: /* @__PURE__ */ o(
|
|
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(
|
|
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
|
-
|
|
135
|
-
|
|
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:
|
|
138
|
-
menuItems:
|
|
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
|
-
|
|
104
|
+
X as UserSection
|
|
148
105
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
root:
|
|
3
|
-
header:
|
|
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,
|
|
4
4
|
section: o,
|
|
5
5
|
leftSidebar: _,
|
|
6
6
|
rightSidebar: n,
|
|
@@ -9,11 +9,11 @@ const t = "_root_10w7v_1", e = "_header_10w7v_17", o = "_section_10w7v_39", _ =
|
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
a as default,
|
|
12
|
-
|
|
12
|
+
t as header,
|
|
13
13
|
_ as leftSidebar,
|
|
14
14
|
r as main,
|
|
15
15
|
n as rightSidebar,
|
|
16
|
-
|
|
16
|
+
e as root,
|
|
17
17
|
o as section,
|
|
18
18
|
i as workContent
|
|
19
19
|
};
|
|
@@ -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:
|
|
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":"
|
|
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"}
|