@layers-app/shared 0.3.9 → 0.4.0
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 +1 -4
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +15 -22
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +21 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +91 -48
- 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 +1 -3
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +63 -89
- 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 +26 -35
- 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 +36 -43
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +0 -4
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +20 -59
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +18 -28
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +18 -22
- 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 +18 -23
- 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/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 +1 -0
- 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 +33 -43
- 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/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 +0 -6
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +3 -4
- 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 +6358 -381
- 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 +1 -3
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +21 -24
- 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 +1 -3
- 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 +1 -7
- package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +23 -21
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NewColorPicker/components/Target.d.ts +1 -3
- package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
- package/dist/components/NewColorPicker/components/Target.js +43 -48
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.js +1 -3
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/Notification/NotificationCard.d.ts +1 -3
- package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
- package/dist/components/Notification/NotificationCard.js +86 -87
- 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 +74 -70
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +12 -7
- package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
- package/dist/components/ProjectIcon/ProjectIcon.js +60 -58
- 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/UserAvatar/index.d.ts +1 -2
- package/dist/components/UserAvatar/index.d.ts.map +1 -1
- package/dist/components/UserAvatar/index.js +35 -38
- 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 +18 -19
- 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 +0 -8
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +13 -21
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +45 -63
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +8 -29
- package/dist/helpers/getPartOfTheDay.d.ts +1 -1
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +4 -5
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +29 -30
- 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 +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +465 -467
- 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/dist/node_modules/countries-and-timezones/esm/index.js +4011 -281
- package/docs/README.md +499 -499
- package/package.json +75 -75
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +0 -6
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +0 -1
- package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +0 -16
- package/dist/components/TextColorIcon.d.ts +0 -8
- package/dist/components/TextColorIcon.d.ts.map +0 -1
- package/dist/components/TextColorIcon.js +0 -60
- package/dist/helpers/offlineSuppression.d.ts +0 -3
- package/dist/helpers/offlineSuppression.d.ts.map +0 -1
- package/dist/helpers/offlineSuppression.js +0 -8
|
@@ -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,
|
|
@@ -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>;
|
|
3
|
+
badgeRefs: import("react").MutableRefObject<(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_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,13 +1,10 @@
|
|
|
1
1
|
import { MouseEventHandler } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
type AppSidebarButtonProps = {
|
|
4
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
5
3
|
title?: string | null;
|
|
6
4
|
icon: React.ReactNode;
|
|
7
5
|
active?: boolean;
|
|
8
6
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
9
|
-
'data-cy'?: string;
|
|
10
7
|
};
|
|
11
|
-
export declare const AppSidebarButton: (
|
|
8
|
+
export declare const AppSidebarButton: import("react").ForwardRefExoticComponent<AppSidebarButtonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
9
|
export {};
|
|
13
10
|
//# 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,EAAc,MAAM,OAAO,CAAC;AAMtD,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,kHAqC3B,CAAC"}
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import l from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
icon: r,
|
|
7
|
-
active: e,
|
|
8
|
-
onClick: c,
|
|
9
|
-
"data-cy": o,
|
|
10
|
-
ref: n
|
|
11
|
-
}) => /* @__PURE__ */ i(
|
|
1
|
+
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
|
+
import { Stack as p, ActionIcon as s, Text as l } from "@mantine/core";
|
|
4
|
+
import d from "../AppContainer.module.css.js";
|
|
5
|
+
const h = n(({ title: r, icon: a, active: e, onClick: o }, c) => /* @__PURE__ */ i(
|
|
12
6
|
p,
|
|
13
7
|
{
|
|
14
|
-
ref:
|
|
15
|
-
className:
|
|
8
|
+
ref: c,
|
|
9
|
+
className: d.appSidebarButton,
|
|
16
10
|
gap: 0,
|
|
17
11
|
align: "center",
|
|
18
|
-
onClick:
|
|
19
|
-
"data-cy": o,
|
|
12
|
+
onClick: o,
|
|
20
13
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
14
|
+
/* @__PURE__ */ t(
|
|
22
15
|
s,
|
|
23
16
|
{
|
|
24
17
|
size: "lg",
|
|
@@ -26,11 +19,11 @@ const f = ({
|
|
|
26
19
|
color: "gray",
|
|
27
20
|
"data-button": !0,
|
|
28
21
|
"data-active": e,
|
|
29
|
-
children:
|
|
22
|
+
children: a
|
|
30
23
|
}
|
|
31
24
|
),
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
r && /* @__PURE__ */ t(
|
|
26
|
+
l,
|
|
34
27
|
{
|
|
35
28
|
fz: 10,
|
|
36
29
|
fw: 500,
|
|
@@ -40,12 +33,12 @@ const f = ({
|
|
|
40
33
|
truncate: !0,
|
|
41
34
|
ta: "center",
|
|
42
35
|
w: "var(--apps-sidebar-width)",
|
|
43
|
-
children:
|
|
36
|
+
children: r
|
|
44
37
|
}
|
|
45
38
|
)
|
|
46
39
|
]
|
|
47
40
|
}
|
|
48
|
-
);
|
|
41
|
+
));
|
|
49
42
|
export {
|
|
50
|
-
|
|
43
|
+
h as AppSidebarButton
|
|
51
44
|
};
|
|
@@ -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,4CA2DA,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o, jsxs as l } 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 w } from "@hugeicons/react";
|
|
6
|
+
import { ScrollArea as S, Stack as v, Tooltip as a, 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,50 +12,49 @@ 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: m } = C.useStore(), { tools: t, publicMode: d, navbarDisplayFormat: h } = A(), r = h === "iconsAndLabels";
|
|
16
|
+
return /* @__PURE__ */ o(
|
|
17
|
+
S,
|
|
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__ */ l(v, { gap: 8, align: "center", children: [
|
|
25
|
+
t?.filter((i) => !m.includes(i.id))?.map((i) => {
|
|
26
26
|
const u = !!b(
|
|
27
|
-
{ path:
|
|
27
|
+
{ path: i.path, end: !1 },
|
|
28
28
|
window.location.pathname
|
|
29
29
|
);
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
return /* @__PURE__ */ o(
|
|
31
|
+
a,
|
|
32
32
|
{
|
|
33
|
-
label:
|
|
33
|
+
label: i.name,
|
|
34
34
|
position: "right",
|
|
35
35
|
disabled: r,
|
|
36
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ o(
|
|
37
37
|
p,
|
|
38
38
|
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
icon: o.icon(),
|
|
39
|
+
title: r ? i.name : null,
|
|
40
|
+
icon: i.icon(),
|
|
42
41
|
active: u,
|
|
43
|
-
onClick:
|
|
42
|
+
onClick: i.onClick
|
|
44
43
|
}
|
|
45
44
|
)
|
|
46
45
|
},
|
|
47
|
-
|
|
46
|
+
i.id
|
|
48
47
|
);
|
|
49
48
|
}),
|
|
50
|
-
s && !
|
|
51
|
-
/* @__PURE__ */
|
|
49
|
+
s && !d && t.length > 1 && /* @__PURE__ */ l(e, { position: "right", closeOnItemClick: !1, children: [
|
|
50
|
+
/* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(a, { label: n("more"), position: "right", disabled: r, children: /* @__PURE__ */ o(
|
|
52
51
|
p,
|
|
53
52
|
{
|
|
54
53
|
title: r ? n("more") : null,
|
|
55
|
-
icon: /* @__PURE__ */
|
|
54
|
+
icon: /* @__PURE__ */ o(w, { icon: g, size: 20 })
|
|
56
55
|
}
|
|
57
56
|
) }) }),
|
|
58
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ o(e.Dropdown, { miw: 240, children: /* @__PURE__ */ o(M, {}) })
|
|
59
58
|
] })
|
|
60
59
|
] })
|
|
61
60
|
}
|
|
@@ -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":"AAyBA,eAAO,MAAM,WAAW,GAAI,4CAIzB;IACD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CA2KA,CAAC"}
|
|
@@ -1,98 +1,141 @@
|
|
|
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 t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as D } from "react-i18next";
|
|
3
|
+
import { Link as E } from "react-router-dom";
|
|
4
|
+
import { Delete03Icon as x, UserAdd02Icon as A, HelpCircleIcon as L, Wifi01Icon as M, WifiDisconnected04Icon as U } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as s } from "@hugeicons/react";
|
|
6
|
+
import { Stack as d, Menu as r, Tooltip as l, Box as C, ActionIcon as F } from "@mantine/core";
|
|
7
|
+
import { IconUserCircle as R } from "@tabler/icons-react";
|
|
8
|
+
import { usePlatform as k } from "../../../../hooks/usePlatform.js";
|
|
9
|
+
import { useTrashModalStore as z, openTrashModal as j, closeTrashModal as G } from "../../../../store/trashModal.js";
|
|
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 Y } from "../menus/UserMenu/MenuUserDropdown.js";
|
|
14
|
+
const no = ({
|
|
15
|
+
trashMenu: h,
|
|
16
|
+
onInviteClick: m,
|
|
17
|
+
showBorders: T = !0
|
|
18
18
|
}) => {
|
|
19
|
-
const { t:
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
const { t: i } = D("appContainer"), f = k(), {
|
|
20
|
+
user: g,
|
|
21
|
+
isAnonym: p,
|
|
22
|
+
userMenuItems: v,
|
|
23
|
+
publicMode: S,
|
|
24
|
+
navbarDisplayFormat: N,
|
|
25
|
+
onSyncClick: u,
|
|
26
|
+
syncState: w
|
|
27
|
+
} = H(), O = z((e) => e.opened), y = !p && !S && g.role !== "mG" && h, b = !p && f.has("inviteUsers") && m, n = N === "iconsAndLabels";
|
|
28
|
+
return /* @__PURE__ */ t(
|
|
29
|
+
d,
|
|
22
30
|
{
|
|
23
31
|
style: {
|
|
24
|
-
borderTop:
|
|
32
|
+
borderTop: T ? "1px solid var(--app-shell-border)" : void 0
|
|
25
33
|
},
|
|
26
34
|
flex: 1,
|
|
27
35
|
pt: 8,
|
|
28
36
|
gap: 16,
|
|
29
37
|
align: "center",
|
|
30
38
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
39
|
+
/* @__PURE__ */ t(
|
|
40
|
+
d,
|
|
33
41
|
{
|
|
34
|
-
justify: !
|
|
42
|
+
justify: !y && !b ? "end" : "space-between",
|
|
35
43
|
gap: 8,
|
|
36
44
|
flex: 1,
|
|
37
45
|
children: [
|
|
38
|
-
|
|
46
|
+
y && /* @__PURE__ */ t(
|
|
39
47
|
r,
|
|
40
48
|
{
|
|
41
49
|
position: "right",
|
|
42
50
|
offset: 6,
|
|
43
51
|
width: 360,
|
|
44
|
-
opened:
|
|
45
|
-
onChange: (
|
|
46
|
-
|
|
52
|
+
opened: O,
|
|
53
|
+
onChange: (e) => {
|
|
54
|
+
e ? j() : G();
|
|
47
55
|
},
|
|
48
56
|
children: [
|
|
49
57
|
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
|
|
50
|
-
|
|
58
|
+
l,
|
|
51
59
|
{
|
|
52
|
-
label:
|
|
60
|
+
label: i("trash"),
|
|
53
61
|
position: "right",
|
|
54
|
-
disabled:
|
|
62
|
+
disabled: n,
|
|
55
63
|
children: /* @__PURE__ */ o(
|
|
56
64
|
c,
|
|
57
65
|
{
|
|
58
|
-
title:
|
|
59
|
-
icon: /* @__PURE__ */ o(
|
|
66
|
+
title: n ? i("trash") : null,
|
|
67
|
+
icon: /* @__PURE__ */ o(s, { icon: x, size: 20 })
|
|
60
68
|
}
|
|
61
69
|
)
|
|
62
70
|
}
|
|
63
71
|
) }),
|
|
64
|
-
/* @__PURE__ */ o(r.Dropdown, { children:
|
|
72
|
+
/* @__PURE__ */ o(r.Dropdown, { children: h })
|
|
65
73
|
]
|
|
66
74
|
}
|
|
67
75
|
),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
76
|
+
/* @__PURE__ */ t(d, { gap: 8, children: [
|
|
77
|
+
b && /* @__PURE__ */ o(l, { label: i("invite"), position: "right", disabled: n, children: /* @__PURE__ */ o(
|
|
70
78
|
c,
|
|
71
79
|
{
|
|
72
|
-
title:
|
|
73
|
-
icon: /* @__PURE__ */ o(
|
|
74
|
-
onClick:
|
|
80
|
+
title: n ? i("invite") : null,
|
|
81
|
+
icon: /* @__PURE__ */ o(s, { icon: A, size: 20 }),
|
|
82
|
+
onClick: m
|
|
75
83
|
}
|
|
76
84
|
) }),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
|
|
85
|
+
/* @__PURE__ */ t(r, { position: "right-end", offset: 6, width: 260, children: [
|
|
86
|
+
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(l, { label: i("help"), position: "right", disabled: n, children: /* @__PURE__ */ o(
|
|
79
87
|
c,
|
|
80
88
|
{
|
|
81
|
-
title:
|
|
82
|
-
icon: /* @__PURE__ */ o(
|
|
89
|
+
title: n ? i("help") : null,
|
|
90
|
+
icon: /* @__PURE__ */ o(s, { icon: L, size: 20 })
|
|
83
91
|
}
|
|
84
92
|
) }) }),
|
|
85
|
-
/* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(
|
|
86
|
-
] })
|
|
93
|
+
/* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(K, {}) })
|
|
94
|
+
] }),
|
|
95
|
+
f.isDesktop && u && (() => {
|
|
96
|
+
const e = (w || "").toUpperCase(), a = e === "SYNCED" || e === "OK", I = a ? "var(--mantine-color-green-6)" : e === "SYNCING" ? "var(--mantine-color-blue-6)" : e === "ERROR" || e === "CONFLICT" || e === "OFFLINE" ? "var(--mantine-color-red-6)" : e === "ATTENTION" ? "var(--mantine-color-orange-6)" : "var(--mantine-color-yellow-6)";
|
|
97
|
+
return /* @__PURE__ */ o(l, { label: i(a ? "sync.tooltipSynced" : e === "SYNCING" ? "sync.tooltipSyncing" : e === "OFFLINE" ? "sync.tooltipOffline" : e === "ERROR" ? "sync.tooltipError" : e === "CONFLICT" ? "sync.tooltipConflict" : e === "ATTENTION" ? "sync.tooltipAttention" : e === "QUEUED" ? "sync.tooltipQueued" : "sync.tooltipSyncing"), position: "right", children: /* @__PURE__ */ o(
|
|
98
|
+
c,
|
|
99
|
+
{
|
|
100
|
+
title: "Sync",
|
|
101
|
+
icon: /* @__PURE__ */ t(C, { pos: "relative", display: "inline-flex", children: [
|
|
102
|
+
/* @__PURE__ */ o(
|
|
103
|
+
s,
|
|
104
|
+
{
|
|
105
|
+
icon: a ? M : U,
|
|
106
|
+
size: 20,
|
|
107
|
+
color: I
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ o(
|
|
111
|
+
C,
|
|
112
|
+
{
|
|
113
|
+
pos: "absolute",
|
|
114
|
+
bottom: -2,
|
|
115
|
+
right: -2,
|
|
116
|
+
w: 8,
|
|
117
|
+
h: 8,
|
|
118
|
+
style: {
|
|
119
|
+
borderRadius: "50%",
|
|
120
|
+
border: "2px solid var(--app-shell-bg)",
|
|
121
|
+
backgroundColor: I
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] }),
|
|
126
|
+
onClick: u
|
|
127
|
+
}
|
|
128
|
+
) });
|
|
129
|
+
})()
|
|
87
130
|
] })
|
|
88
131
|
]
|
|
89
132
|
}
|
|
90
133
|
),
|
|
91
|
-
|
|
92
|
-
|
|
134
|
+
p ? /* @__PURE__ */ o(E, { to: "/login", children: /* @__PURE__ */ o(l, { label: "Log in", position: "right", children: /* @__PURE__ */ o(F, { size: "lg", variant: "light", children: /* @__PURE__ */ o(R, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
|
|
135
|
+
Y,
|
|
93
136
|
{
|
|
94
|
-
user:
|
|
95
|
-
menuItems:
|
|
137
|
+
user: g,
|
|
138
|
+
menuItems: v,
|
|
96
139
|
position: "right-end"
|
|
97
140
|
}
|
|
98
141
|
)
|
|
@@ -101,5 +144,5 @@ const X = ({
|
|
|
101
144
|
);
|
|
102
145
|
};
|
|
103
146
|
export {
|
|
104
|
-
|
|
147
|
+
no as UserSection
|
|
105
148
|
};
|
|
@@ -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,12 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { TransformWrapper } from 'react-zoom-pan-pinch';
|
|
3
2
|
import { IFileResponse } from '../../../types/files';
|
|
4
3
|
interface IProps {
|
|
5
|
-
ref?: any;
|
|
6
4
|
onTransformed?: React.ComponentProps<typeof TransformWrapper>['onTransformed'];
|
|
7
5
|
isActive: boolean;
|
|
8
6
|
attachment: IFileResponse;
|
|
9
7
|
}
|
|
10
|
-
export declare const GallerySlide:
|
|
8
|
+
export declare const GallerySlide: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<IProps & import("react").RefAttributes<HTMLDivElement>>>;
|
|
11
9
|
export {};
|
|
12
10
|
//# 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":"AACA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAUrD,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAClC,OAAO,gBAAgB,CACxB,CAAC,eAAe,CAAC,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,wIAoExB,CAAC"}
|