@layers-app/shared 0.2.3 → 0.2.5
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/assets/jsons/emoji-categorized-windows.json.js +4 -0
- package/dist/assets/jsons/emoji-categorized-windows10.json.js +4 -0
- package/dist/assets/svg/users.svg.js +5 -0
- package/dist/assets/svg/whatsapp-icon.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts +3 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +63 -54
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +54 -43
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +5 -5
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +56 -43
- package/dist/components/AppContainer/components/Main.d.ts +5 -1
- package/dist/components/AppContainer/components/Main.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Main.js +11 -8
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +34 -19
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/components/menus/MoreMenu.js +8 -8
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerStore.js +12 -9
- package/dist/components/AppContainer/types.d.ts +2 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
- package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +66 -59
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +6 -6
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +47 -46
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +72 -72
- package/dist/components/EmojiPicker/utils.d.ts +11 -0
- package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
- package/dist/components/EmojiPicker/utils.js +46 -0
- package/dist/components/EntityIcon.d.ts +5 -2
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +44 -46
- package/dist/components/FilePicker/FilePicker.d.ts +2 -3
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +95 -130
- package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -3
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +43 -44
- package/dist/components/FilePicker/FilePickerLink.d.ts +2 -3
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +21 -21
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -3
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +45 -46
- package/dist/components/FilePicker/FilePickerUpload.d.ts +3 -3
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +49 -43
- package/dist/components/FilePicker/types.d.ts +1 -1
- package/dist/components/FilePicker/types.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
- package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
- package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +10 -3
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +13 -13
- package/dist/components/Loaders/styles.module.css.js +1 -1
- package/dist/components/NavMenu/NavMenu.d.ts +4 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +96 -77
- package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
- package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
- package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDItem.js +32 -30
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDProvider.js +28 -26
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +109 -94
- package/dist/components/NavMenu/store.d.ts +1 -0
- package/dist/components/NavMenu/store.d.ts.map +1 -1
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NoData/NoData.d.ts +32 -26
- package/dist/components/NoData/NoData.d.ts.map +1 -1
- package/dist/components/NoData/NoData.js +73 -73
- package/dist/components/OnBoarding/ProjectBoard.js +17 -17
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
- package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +1 -1
- package/dist/components/PaymentSuccess/PaymentSuccess.js +9 -9
- package/dist/components/SearchFilters/components/DateFilter.js +19 -19
- package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
- package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
- package/dist/components/SortableList/SortableList.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +1 -9
- package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
- package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
- package/dist/components/StorageUsageProgress/index.d.ts +2 -2
- package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
- package/dist/components/StorageUsageProgress/index.js +73 -40
- package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
- package/dist/components/ThemeIndicator/index.js +4 -4
- package/dist/components/UserAvatar/index.js +14 -14
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts +2 -2
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +103 -103
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +31 -24
- package/dist/components/table/export.d.ts.map +1 -1
- package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
- package/dist/components/table/hooks/useSaveRowCount.js +4 -4
- package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
- package/dist/components/table/hooks/useSorting.js +3 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -1
- package/dist/helpers/getFileIcons.js +12 -12
- package/dist/helpers/isAppMode.d.ts +1 -1
- package/dist/helpers/isAppMode.d.ts.map +1 -1
- package/dist/helpers/validateAliasFormat.d.ts +2 -0
- package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
- package/dist/helpers/validateAliasFormat.js +4 -0
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +328 -329
- package/dist/lang/locales/ui_en.json.js +20 -12
- package/dist/lang/locales/ui_es.json.js +18 -10
- package/dist/lang/locales/ui_ru.json.js +26 -18
- package/dist/store/trashModal.d.ts +8 -0
- package/dist/store/trashModal.d.ts.map +1 -0
- package/dist/store/trashModal.js +13 -0
- package/dist/types/storageCategories.d.ts +4 -0
- package/dist/types/storageCategories.d.ts.map +1 -0
- package/dist/types/storageCategories.js +21 -0
- package/dist/utils/formatStorage.d.ts +1 -1
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +3 -3
- package/docs/README.md +17 -4
- package/package.json +1 -1
- package/dist/assets/fileTypes/archives.svg.js +0 -5
- package/dist/assets/fileTypes/audio.svg.js +0 -5
- package/dist/assets/fileTypes/code.svg.js +0 -5
- package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
- package/dist/assets/fileTypes/images.svg.js +0 -5
- package/dist/assets/fileTypes/other.svg.js +0 -5
- package/dist/assets/fileTypes/videos.svg.js +0 -5
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
- package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
- package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getIconsList.js +0 -32
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
- package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
- package/dist/components/NoData/NoData.module.css.js +0 -7
- package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
- package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
- package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
- package/dist/components/PaymentError/PaymentError.d.ts +0 -2
- package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
- package/dist/components/PaymentError/PaymentError.js +0 -41
- package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
- package/dist/store/accessOptionsControl.d.ts +0 -17
- package/dist/store/accessOptionsControl.d.ts.map +0 -1
- package/dist/store/accessOptionsControl.js +0 -18
|
@@ -2,20 +2,20 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { Link as c } from "react-router-dom";
|
|
3
3
|
import { PinIcon as m } from "@hugeicons/core-free-icons";
|
|
4
4
|
import { HugeiconsIcon as p } from "@hugeicons/react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { Stack as a, Menu as s, ActionIcon as l } from "@mantine/core";
|
|
6
|
+
import { IconPinFilled as d } from "@tabler/icons-react";
|
|
7
|
+
import { useAppContainerDataStore as f } from "../../hooks/useAppContainerDataStore.js";
|
|
8
8
|
import { appContainerStore as n } from "../../hooks/useAppContainerStore.js";
|
|
9
9
|
const y = () => {
|
|
10
|
-
const e = n.useStore((o) => o.hiddenTools), t =
|
|
11
|
-
return /* @__PURE__ */ i(
|
|
12
|
-
|
|
10
|
+
const e = n.useStore((o) => o.hiddenTools), t = f((o) => o.tools);
|
|
11
|
+
return /* @__PURE__ */ i(a, { gap: 2, children: t?.map((o) => /* @__PURE__ */ i(
|
|
12
|
+
s.Item,
|
|
13
13
|
{
|
|
14
14
|
component: c,
|
|
15
15
|
to: o.path,
|
|
16
16
|
leftSection: o.icon({ size: 16 }),
|
|
17
17
|
rightSection: /* @__PURE__ */ i(
|
|
18
|
-
|
|
18
|
+
l,
|
|
19
19
|
{
|
|
20
20
|
size: "sm",
|
|
21
21
|
color: "gray",
|
|
@@ -24,7 +24,7 @@ const y = () => {
|
|
|
24
24
|
r.preventDefault(), r.stopPropagation(), n.api.toggleToolVisibility(o.id);
|
|
25
25
|
},
|
|
26
26
|
children: e.includes(o.id) ? /* @__PURE__ */ i(p, { icon: m, size: 16 }) : /* @__PURE__ */ i(
|
|
27
|
-
|
|
27
|
+
d,
|
|
28
28
|
{
|
|
29
29
|
size: 16,
|
|
30
30
|
color: "var(--mantine-primary-color-filled)"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuUserDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAGL,gBAAgB,EAIjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAG3D,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,0CAK9B,qBAAqB,4CAyCvB,CAAC"}
|
|
1
|
+
{"version":3,"file":"MenuUserDropdown.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAGL,gBAAgB,EAIjB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAG3D,MAAM,MAAM,QAAQ,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC;IACpD,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC,CAAC;AAEH,eAAO,MAAM,gBAAgB,GAAI,0CAK9B,qBAAqB,4CAyCvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAppContainerStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"useAppContainerStore.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/hooks/useAppContainerStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAU,MAAM,SAAS,CAAC;AAI1D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAyHjE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;iCA9CI,OAAO;iCAIP,MAAM;kCAIL,MAAM;mCAKL,MAAM;4BASb,kBAAkB;0BAIpB,MAAM;;CAoByB,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { create as l } from "zustand";
|
|
2
2
|
import { persist as n, createJSONStorage as g } from "zustand/middleware";
|
|
3
|
-
import { DEFAULT_COLOR_SCHEME as
|
|
4
|
-
const
|
|
3
|
+
import { DEFAULT_COLOR_SCHEME as i, isValidColorScheme as b } from "../../../constants.js";
|
|
4
|
+
const r = 338, d = () => typeof window > "u" ? !0 : !window.matchMedia("(max-width: 992px)").matches, c = () => {
|
|
5
5
|
const o = l(
|
|
6
6
|
n(
|
|
7
7
|
() => ({
|
|
8
8
|
layout: "default",
|
|
9
|
-
showToolbar:
|
|
10
|
-
theme:
|
|
9
|
+
showToolbar: d(),
|
|
10
|
+
theme: i,
|
|
11
11
|
hiddenTools: [],
|
|
12
12
|
toolbarWidth: 280,
|
|
13
13
|
isTourPassed: !1,
|
|
@@ -19,10 +19,13 @@ const i = 338, c = () => {
|
|
|
19
19
|
version: 3,
|
|
20
20
|
storage: g(() => localStorage),
|
|
21
21
|
migrate: (e) => {
|
|
22
|
-
const s = typeof e?.theme == "string" && b(e.theme) ? e.theme :
|
|
22
|
+
const s = typeof e?.theme == "string" && b(e.theme) ? e.theme : i;
|
|
23
23
|
return {
|
|
24
24
|
...e,
|
|
25
|
-
rightbarWidth: Math.max(
|
|
25
|
+
rightbarWidth: Math.max(
|
|
26
|
+
e?.rightbarWidth || 0,
|
|
27
|
+
r
|
|
28
|
+
),
|
|
26
29
|
theme: s
|
|
27
30
|
};
|
|
28
31
|
}
|
|
@@ -51,7 +54,7 @@ const i = 338, c = () => {
|
|
|
51
54
|
o.setState({ toolbarWidth: t });
|
|
52
55
|
},
|
|
53
56
|
setRightbarWidth: (t) => {
|
|
54
|
-
const a = Math.max(t,
|
|
57
|
+
const a = Math.max(t, r);
|
|
55
58
|
o.setState({ rightbarWidth: a });
|
|
56
59
|
},
|
|
57
60
|
toggleToolVisibility: (t) => {
|
|
@@ -66,7 +69,7 @@ const i = 338, c = () => {
|
|
|
66
69
|
setTheme: (t) => {
|
|
67
70
|
o.setState({ theme: t });
|
|
68
71
|
}
|
|
69
|
-
}),
|
|
72
|
+
}), I = c();
|
|
70
73
|
export {
|
|
71
|
-
|
|
74
|
+
I as appContainerStore
|
|
72
75
|
};
|
|
@@ -15,6 +15,7 @@ export type ToolDef = {
|
|
|
15
15
|
};
|
|
16
16
|
export type AppContainerProps = {
|
|
17
17
|
showAppsSidebar?: boolean;
|
|
18
|
+
headerBorderless?: boolean;
|
|
18
19
|
content?: ReactNode;
|
|
19
20
|
toolbar?: ReactNode;
|
|
20
21
|
rightbar?: ReactNode;
|
|
@@ -25,6 +26,7 @@ export type AppContainerProps = {
|
|
|
25
26
|
onTitleChange?: (title?: string) => void;
|
|
26
27
|
trashMenu?: ReactNode;
|
|
27
28
|
onInviteClick?: () => void;
|
|
29
|
+
withBg?: boolean;
|
|
28
30
|
};
|
|
29
31
|
export type AppContainerDataStore = {
|
|
30
32
|
tools: ToolDef[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAClC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EACL,QAAQ,EACR,iBAAiB,EAClB,MAAM,8CAA8C,CAAC;AAEtD,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,SAAS,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAClC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,aAAa,EAAE,kBAAkB,CAAC;IAClC,IAAI,EAAE,QAAQ,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CACvC,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;CACjE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentsGalleryModal.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsGalleryModal/AttachmentsGalleryModal.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AttachmentsGalleryModal.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsGalleryModal/AttachmentsGalleryModal.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAalD,UAAU,8BAA8B;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8GD,eAAO,MAAM,uBAAuB,6FAM/B,8BAA8B,6CAyBlC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransformWrapper } from 'react-zoom-pan-pinch';
|
|
2
|
-
import { IFileResponse } from '../../../types/files
|
|
2
|
+
import { IFileResponse } from '../../../types/files';
|
|
3
3
|
interface IProps {
|
|
4
4
|
onTransformed?: React.ComponentProps<typeof TransformWrapper>['onTransformed'];
|
|
5
5
|
isActive: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GallerySlide.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/GallerySlide.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"GallerySlide.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/GallerySlide.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI5E,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAUrD,UAAU,MAAM;IACd,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAClC,OAAO,gBAAgB,CACxB,CAAC,eAAe,CAAC,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,aAAa,CAAC;CAC3B;AAED,eAAO,MAAM,YAAY,wIAoExB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r, Fragment as a } from "react/jsx-runtime";
|
|
2
2
|
import { memo as u, forwardRef as g } from "react";
|
|
3
3
|
import { TransformWrapper as h, TransformComponent as C } from "react-zoom-pan-pinch";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { Box as N } from "@mantine/core";
|
|
5
|
+
import { BaseLoader as O } from "../../Loaders/BaseLoader.js";
|
|
6
|
+
import { ShakaVideoPlayer as P } from "./ShakePlayer/ShakaPlayer.js";
|
|
7
7
|
import { ZOOM_CONFIG as o, TRANSFORM_COMPONENT_STYLES as t } from "../constants.js";
|
|
8
8
|
import { useGetPreviewUrl as b } from "../hooks/useGetPreviewUrl.js";
|
|
9
9
|
import { usePanning as w } from "../hooks/usePanning.js";
|
|
@@ -41,8 +41,8 @@ const k = u(
|
|
|
41
41
|
wrapperStyle: t,
|
|
42
42
|
contentStyle: t,
|
|
43
43
|
wrapperProps: S,
|
|
44
|
-
children: i ? /* @__PURE__ */ r(
|
|
45
|
-
|
|
44
|
+
children: i ? /* @__PURE__ */ r(O, {}) : /* @__PURE__ */ r(a, { children: l ? /* @__PURE__ */ r(N, { className: m.videoContainer, children: /* @__PURE__ */ r(
|
|
45
|
+
P,
|
|
46
46
|
{
|
|
47
47
|
isActive: s,
|
|
48
48
|
autoPlay: !1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalFooter.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ModalFooter.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalFooter.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAGrD,eAAO,MAAM,WAAW,GAAI,kBAEzB;IACD,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B,mDAeA,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Flex as l, Text as i } from "@mantine/core";
|
|
3
|
+
import { useMenu as s } from "../../../hooks/useMenu.js";
|
|
4
4
|
import { useAttachmentsGalleryContext as a } from "../AttachmentsGalleryContext.js";
|
|
5
5
|
const f = ({
|
|
6
6
|
attachments: t
|
|
7
7
|
}) => {
|
|
8
|
-
const { selectedIndex: r } = a(), o = t?.[r], { isMobile: n } =
|
|
9
|
-
return n ? /* @__PURE__ */ e(
|
|
8
|
+
const { selectedIndex: r } = a(), o = t?.[r], { isMobile: n } = s();
|
|
9
|
+
return n ? /* @__PURE__ */ e(l, { justify: "center", style: { flex: "none" }, children: /* @__PURE__ */ e(i, { py: 8, size: "xs", c: "var(--app-gallary-text)", children: o?.originalFileName }) }) : null;
|
|
10
10
|
};
|
|
11
11
|
export {
|
|
12
12
|
f as ModalFooter
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ModalHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/components/ModalHeader.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAMrD,UAAU,gBAAgB;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,iEACK,gBAAgB,6CAgI5C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SyntheticEvent } from 'react';
|
|
2
|
-
import { IFileResponse } from '../../../types/files
|
|
2
|
+
import { IFileResponse } from '../../../types/files';
|
|
3
3
|
export declare const useDownloadFile: (targetAttach?: IFileResponse) => {
|
|
4
4
|
isVideo: boolean;
|
|
5
5
|
isMobile: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDownloadFile.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useDownloadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAkC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useDownloadFile.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useDownloadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAkC,MAAM,OAAO,CAAC;AAQvE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,eAAe,GAAI,eAAe,aAAa;;;oBAI9C,cAAc;;CA8C3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetPreviewUrl.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGetPreviewUrl.d.ts","sourceRoot":"","sources":["../../../../src/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,eAAO,MAAM,gBAAgB,GAAI,YAAY,aAAa;;;;;;CAwCzD,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const o = "
|
|
1
|
+
const o = "_container_1jpi5_1", t = "_root_1jpi5_7", n = "_carouselRoot_1jpi5_14", e = "_carouselViewport_1jpi5_18", a = "_carouselSlide_1jpi5_22", _ = "_navButton_1jpi5_29", i = "_navButtonPrev_1jpi5_42", r = "_navButtonNext_1jpi5_46", c = "_modalContent_1jpi5_50", s = "_modalBody_1jpi5_55", l = "_videoContainer_1jpi5_61", u = "_imageContainer_1jpi5_66", d = {
|
|
2
2
|
container: o,
|
|
3
3
|
root: t,
|
|
4
4
|
carouselRoot: n,
|
|
5
5
|
carouselViewport: e,
|
|
6
6
|
carouselSlide: a,
|
|
7
7
|
navButton: _,
|
|
8
|
-
navButtonPrev:
|
|
9
|
-
navButtonNext:
|
|
10
|
-
modalContent:
|
|
11
|
-
modalBody:
|
|
8
|
+
navButtonPrev: i,
|
|
9
|
+
navButtonNext: r,
|
|
10
|
+
modalContent: c,
|
|
11
|
+
modalBody: s,
|
|
12
12
|
videoContainer: l,
|
|
13
13
|
imageContainer: u
|
|
14
14
|
};
|
|
@@ -19,11 +19,11 @@ export {
|
|
|
19
19
|
o as container,
|
|
20
20
|
d as default,
|
|
21
21
|
u as imageContainer,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
s as modalBody,
|
|
23
|
+
c as modalContent,
|
|
24
24
|
_ as navButton,
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
r as navButtonNext,
|
|
26
|
+
i as navButtonPrev,
|
|
27
27
|
t as root,
|
|
28
28
|
l as videoContainer
|
|
29
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentsPreview.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsPreview/AttachmentsPreview.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAIhE,UAAU,8BAA8B;IACtC,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAAE,CAAC;IAC7C,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,GAAI,8CAKhC,8BAA8B,
|
|
1
|
+
{"version":3,"file":"AttachmentsPreview.d.ts","sourceRoot":"","sources":["../../../src/components/AttachmentsPreview/AttachmentsPreview.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAIhE,UAAU,8BAA8B;IACtC,KAAK,EAAE,oBAAoB,CAAC,cAAc,EAAE,CAAC;IAC7C,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,eAAO,MAAM,kBAAkB,GAAI,8CAKhC,8BAA8B,mDAgNhC,CAAC"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsxs as n, Fragment as
|
|
2
|
-
import { Download01Icon as
|
|
3
|
-
import { HugeiconsIcon as
|
|
4
|
-
import { Stack as
|
|
1
|
+
import { jsxs as n, Fragment as C, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Download01Icon as g } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as x } from "@hugeicons/react";
|
|
4
|
+
import { Stack as v, Grid as z, Box as h, Image as F, LoadingOverlay as f, ActionIcon as c, CloseIcon as I, Flex as y, Text as N } from "@mantine/core";
|
|
5
5
|
import { useDisclosure as M } from "@mantine/hooks";
|
|
6
6
|
import { getFileIcons as P } from "../../helpers/getFileIcons.js";
|
|
7
7
|
import { getFileType as A } from "../../helpers/getFileType.js";
|
|
8
8
|
import { AttachmentsGalleryModal as B } from "../AttachmentsGalleryModal/AttachmentsGalleryModal.js";
|
|
9
9
|
import t from "./AttachmentsPreview.module.css.js";
|
|
10
10
|
const U = ({
|
|
11
|
-
files:
|
|
11
|
+
files: o,
|
|
12
12
|
onRemove: i,
|
|
13
|
-
mode:
|
|
13
|
+
mode: a,
|
|
14
14
|
parentIsExisting: u
|
|
15
15
|
}) => {
|
|
16
|
-
const [
|
|
16
|
+
const [T, { open: w, close: b }] = M(!1), s = o.filter((e) => e.isImage), d = o.filter((e) => !e.isImage), D = s.map((e) => ({
|
|
17
17
|
id: e.id,
|
|
18
18
|
Url: e.url,
|
|
19
19
|
contentType: "image",
|
|
@@ -30,15 +30,15 @@ const U = ({
|
|
|
30
30
|
version: 1,
|
|
31
31
|
deleted: !1,
|
|
32
32
|
deletedAt: /* @__PURE__ */ new Date()
|
|
33
|
-
})),
|
|
34
|
-
|
|
33
|
+
})), m = s.every((e) => !e.isTemp), k = () => {
|
|
34
|
+
m && w();
|
|
35
35
|
};
|
|
36
|
-
return
|
|
37
|
-
/* @__PURE__ */ n(
|
|
38
|
-
s.length > 0 && /* @__PURE__ */ r(
|
|
39
|
-
const l =
|
|
40
|
-
return /* @__PURE__ */ r(
|
|
41
|
-
|
|
36
|
+
return o.length === 0 ? null : /* @__PURE__ */ n(C, { children: [
|
|
37
|
+
/* @__PURE__ */ n(v, { gap: "10px", w: "100%", tabIndex: 0, children: [
|
|
38
|
+
s.length > 0 && /* @__PURE__ */ r(z, { gutter: "xs", children: s.map((e) => {
|
|
39
|
+
const l = o.indexOf(e);
|
|
40
|
+
return /* @__PURE__ */ r(z.Col, { span: "content", children: /* @__PURE__ */ n(
|
|
41
|
+
h,
|
|
42
42
|
{
|
|
43
43
|
w: 56,
|
|
44
44
|
h: 56,
|
|
@@ -54,113 +54,139 @@ const U = ({
|
|
|
54
54
|
fit: "cover",
|
|
55
55
|
radius: "sm",
|
|
56
56
|
style: {
|
|
57
|
-
cursor:
|
|
57
|
+
cursor: m ? "zoom-in" : "default"
|
|
58
58
|
},
|
|
59
|
-
onClick: () =>
|
|
59
|
+
onClick: () => k()
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
62
|
/* @__PURE__ */ r(
|
|
63
|
-
|
|
63
|
+
f,
|
|
64
64
|
{
|
|
65
|
-
visible: e.isTemp &&
|
|
65
|
+
visible: e.isTemp && a === "view" && u,
|
|
66
66
|
loaderProps: { size: 20 }
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
a === "view" && !e.isTemp && /* @__PURE__ */ r(
|
|
70
|
+
c,
|
|
71
|
+
{
|
|
72
|
+
component: "a",
|
|
73
|
+
size: "20px",
|
|
74
|
+
href: e.url,
|
|
75
|
+
download: e.name,
|
|
76
|
+
rel: "noopener noreferrer",
|
|
77
|
+
variant: "subtle",
|
|
78
|
+
color: "white",
|
|
79
|
+
top: 2,
|
|
80
|
+
right: 2,
|
|
81
|
+
bg: "var(--mantine-color-dark-filled, #2E2E2E)",
|
|
82
|
+
className: t.downloadButton,
|
|
83
|
+
children: /* @__PURE__ */ r(x, { size: 16, icon: g })
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
a === "draft" && i && /* @__PURE__ */ r(
|
|
87
|
+
c,
|
|
71
88
|
{
|
|
72
89
|
size: "20px",
|
|
73
90
|
radius: "xl",
|
|
74
91
|
variant: "filled",
|
|
75
|
-
onMouseDown: (
|
|
92
|
+
onMouseDown: (p) => p.preventDefault(),
|
|
76
93
|
pos: "absolute",
|
|
77
94
|
color: "dark",
|
|
78
95
|
onClick: () => i(l),
|
|
79
96
|
className: t.deleteButton,
|
|
80
|
-
children: /* @__PURE__ */ r(
|
|
97
|
+
children: /* @__PURE__ */ r(I, { size: "12px" })
|
|
81
98
|
}
|
|
82
99
|
)
|
|
83
100
|
]
|
|
84
101
|
}
|
|
85
102
|
) }, e.id);
|
|
86
103
|
}) }),
|
|
87
|
-
|
|
88
|
-
|
|
104
|
+
d.length > 0 && /* @__PURE__ */ r(
|
|
105
|
+
h,
|
|
89
106
|
{
|
|
90
107
|
w: "100%",
|
|
91
108
|
className: t.filePreviewList,
|
|
92
|
-
"data-many":
|
|
93
|
-
children:
|
|
94
|
-
const l =
|
|
95
|
-
return /* @__PURE__ */ n(
|
|
109
|
+
"data-many": d.length >= 4,
|
|
110
|
+
children: d.map((e) => {
|
|
111
|
+
const l = o.indexOf(e);
|
|
112
|
+
return /* @__PURE__ */ n(h, { className: t.filePreviewWrapper, children: [
|
|
96
113
|
/* @__PURE__ */ r(
|
|
97
|
-
|
|
114
|
+
f,
|
|
98
115
|
{
|
|
99
|
-
visible: e.isTemp &&
|
|
116
|
+
visible: e.isTemp && a === "view" && u,
|
|
100
117
|
loaderProps: { size: 20 }
|
|
101
118
|
}
|
|
102
119
|
),
|
|
103
|
-
/* @__PURE__ */ n(
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
120
|
+
/* @__PURE__ */ n(
|
|
121
|
+
y,
|
|
122
|
+
{
|
|
123
|
+
align: "center",
|
|
124
|
+
justify: "space-between",
|
|
125
|
+
wrap: "nowrap",
|
|
126
|
+
gap: 2,
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ n(
|
|
129
|
+
y,
|
|
130
|
+
{
|
|
131
|
+
align: "center",
|
|
132
|
+
gap: "xs",
|
|
133
|
+
wrap: "nowrap",
|
|
134
|
+
flex: 1,
|
|
135
|
+
miw: 0,
|
|
136
|
+
children: [
|
|
137
|
+
P(A(e.type), !1, 36),
|
|
138
|
+
/* @__PURE__ */ n(v, { gap: 0, flex: 1, miw: 0, children: [
|
|
139
|
+
/* @__PURE__ */ r(
|
|
140
|
+
N,
|
|
141
|
+
{
|
|
142
|
+
size: "sm",
|
|
143
|
+
truncate: !0,
|
|
144
|
+
title: e.name,
|
|
145
|
+
className: t.fileDownloadName,
|
|
146
|
+
component: "a",
|
|
147
|
+
href: e.url,
|
|
148
|
+
download: e.name,
|
|
149
|
+
rel: "noopener noreferrer",
|
|
150
|
+
w: "fit-content",
|
|
151
|
+
children: e.name
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ n(N, { size: "xs", c: "dimmed", children: [
|
|
155
|
+
Math.round(e.size / 1024),
|
|
156
|
+
" KB"
|
|
157
|
+
] })
|
|
158
|
+
] })
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
a === "view" && !e.isTemp && /* @__PURE__ */ r(
|
|
163
|
+
c,
|
|
164
|
+
{
|
|
165
|
+
component: "a",
|
|
166
|
+
href: e.url,
|
|
167
|
+
download: e.name,
|
|
168
|
+
rel: "noopener noreferrer",
|
|
169
|
+
variant: "subtle",
|
|
170
|
+
color: "gray",
|
|
171
|
+
size: "sm",
|
|
172
|
+
className: t.downloadButton,
|
|
173
|
+
children: /* @__PURE__ */ r(x, { size: 16, icon: g })
|
|
174
|
+
}
|
|
175
|
+
)
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
a === "draft" && i && /* @__PURE__ */ r(
|
|
180
|
+
c,
|
|
155
181
|
{
|
|
156
182
|
size: "xs",
|
|
157
183
|
radius: "xl",
|
|
158
|
-
onMouseDown: (
|
|
184
|
+
onMouseDown: (p) => p.preventDefault(),
|
|
159
185
|
variant: "filled",
|
|
160
186
|
color: "dark",
|
|
161
187
|
onClick: () => i(l),
|
|
162
188
|
className: t.deleteButton,
|
|
163
|
-
children: /* @__PURE__ */ r(
|
|
189
|
+
children: /* @__PURE__ */ r(I, { size: "12px" })
|
|
164
190
|
}
|
|
165
191
|
)
|
|
166
192
|
] }, e.id);
|
|
@@ -168,11 +194,11 @@ const U = ({
|
|
|
168
194
|
}
|
|
169
195
|
)
|
|
170
196
|
] }),
|
|
171
|
-
|
|
197
|
+
m && /* @__PURE__ */ r(
|
|
172
198
|
B,
|
|
173
199
|
{
|
|
174
|
-
opened:
|
|
175
|
-
onOpenChange: (e) => e ? w() :
|
|
200
|
+
opened: T,
|
|
201
|
+
onOpenChange: (e) => e ? w() : b(),
|
|
176
202
|
attachments: D
|
|
177
203
|
}
|
|
178
204
|
)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_imagePreviewWrapper_qqm20_1", t = "_deleteButton_qqm20_6", o = "_downloadButton_qqm20_13", i = "_filePreviewList_qqm20_32", r = "_fileDownloadName_qqm20_45", a = "_filePreviewWrapper_qqm20_51", l = {
|
|
2
2
|
imagePreviewWrapper: e,
|
|
3
|
-
deleteButton:
|
|
4
|
-
downloadButton:
|
|
5
|
-
filePreviewList:
|
|
6
|
-
fileDownloadName:
|
|
3
|
+
deleteButton: t,
|
|
4
|
+
downloadButton: o,
|
|
5
|
+
filePreviewList: i,
|
|
6
|
+
fileDownloadName: r,
|
|
7
7
|
filePreviewWrapper: a
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
l as default,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
t as deleteButton,
|
|
12
|
+
o as downloadButton,
|
|
13
|
+
r as fileDownloadName,
|
|
14
|
+
i as filePreviewList,
|
|
15
15
|
a as filePreviewWrapper,
|
|
16
16
|
e as imagePreviewWrapper
|
|
17
17
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { appMode } from '../../helpers/isAppMode';
|
|
2
|
+
type BouncingLogoProps = {
|
|
2
3
|
c?: string;
|
|
3
|
-
|
|
4
|
+
appMode?: appMode | null;
|
|
5
|
+
};
|
|
6
|
+
export declare const BouncingLogo: ({ c, appMode }: BouncingLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
4
8
|
//# sourceMappingURL=BouncingLogo.d.ts.map
|