@layers-app/shared 0.1.5 → 0.2.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/assets/enitityIcons/flow.svg.js +5 -0
- package/dist/assets/enitityIcons/form.svg.js +5 -0
- package/dist/assets/enitityIcons/index.d.ts +5 -0
- package/dist/assets/enitityIcons/page.svg.js +5 -0
- package/dist/assets/enitityIcons/sprint.svg.js +5 -0
- package/dist/assets/fileTypes/archieve.svg.js +4 -0
- package/dist/assets/fileTypes/archives.svg.js +5 -0
- package/dist/assets/fileTypes/audio.svg.js +5 -0
- package/dist/assets/fileTypes/code.svg.js +5 -0
- package/dist/assets/fileTypes/diagram.svg.js +4 -0
- package/dist/assets/fileTypes/documents.svg.js +4 -0
- package/dist/assets/fileTypes/documentsStorage.svg.js +5 -0
- package/dist/assets/fileTypes/docx.svg.js +4 -0
- package/dist/assets/fileTypes/folder.svg.js +4 -0
- package/dist/assets/fileTypes/images.svg.js +5 -0
- package/dist/assets/fileTypes/media.svg.js +4 -0
- package/dist/assets/fileTypes/other.svg.js +4 -0
- package/dist/assets/fileTypes/other.svg2.js +5 -0
- package/dist/assets/fileTypes/pptx.svg.js +4 -0
- package/dist/assets/fileTypes/presentation.svg.js +4 -0
- package/dist/assets/fileTypes/sheet.svg.js +4 -0
- package/dist/assets/fileTypes/videos.svg.js +5 -0
- package/dist/assets/fileTypes/xlsx.svg.js +4 -0
- package/dist/assets/images/flags/es.svg.js +4 -0
- package/dist/assets/images/flags/ru.svg.js +4 -0
- package/dist/assets/images/flags/us.svg.js +4 -0
- package/dist/assets/images/person.png.js +4 -0
- package/dist/assets/images/person2.png.js +4 -0
- package/dist/assets/images/person3.png.js +4 -0
- package/dist/assets/images/person4.png.js +4 -0
- package/dist/assets/jsons/emoji-categorized.json.js +4 -0
- package/dist/assets/jsons/icons.min.json.d.ts +1 -1
- package/dist/assets/jsons/icons.min.json.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +5 -0
- package/dist/assets/layers-logo-icon.svg.js +5 -0
- package/dist/assets/logo-copyright.svg.js +5 -0
- package/dist/assets/svg/alertMan.svg.js +7 -0
- package/dist/assets/svg/default_icon.svg.js +4 -0
- package/dist/assets/svg/discord-icon.svg.js +5 -0
- package/dist/assets/svg/discord.svg.js +5 -0
- package/dist/assets/svg/dog.svg.js +5 -0
- package/dist/assets/svg/layers-logo-full.svg.js +4 -0
- package/dist/assets/svg/noData/404.svg.js +9 -0
- package/dist/assets/svg/noData/500.svg.js +5 -0
- package/dist/assets/svg/noData/empty.svg.js +5 -0
- package/dist/assets/svg/noData/folder.svg.js +5 -0
- package/dist/assets/svg/noData/noAccess.svg.js +7 -0
- package/dist/assets/svg/noData/noAnswers.svg.js +5 -0
- package/dist/assets/svg/noData/noCloud.svg.js +5 -0
- package/dist/assets/svg/noData/noComments.svg.js +5 -0
- package/dist/assets/svg/noData/noData.svg.js +5 -0
- package/dist/assets/svg/noData/noFlows.svg.js +5 -0
- package/dist/assets/svg/noData/noForms.svg.js +5 -0
- package/dist/assets/svg/noData/noGroups.svg.js +17 -0
- package/dist/assets/svg/noData/noImage.svg.js +5 -0
- package/dist/assets/svg/noData/noMembers.svg.js +7 -0
- package/dist/assets/svg/noData/noNotifications.svg.js +5 -0
- package/dist/assets/svg/noData/noResults.svg.js +5 -0
- package/dist/assets/svg/noData/noSearchResults.svg.js +5 -0
- package/dist/assets/svg/noData/noTaskResults.svg.js +5 -0
- package/dist/assets/svg/noData/noTasks.svg.js +5 -0
- package/dist/assets/svg/noData/noWorkspaces.svg.js +7 -0
- package/dist/assets/svg/noData/trash.svg.js +7 -0
- package/dist/assets/svg/notSuccessMan.svg.js +7 -0
- package/dist/assets/svg/successMan.svg.js +5 -0
- package/dist/assets/svg/telegram-icon.svg.js +5 -0
- package/dist/assets/svg/telegram.svg.js +5 -0
- package/dist/components/AlertsBlock/index.js +53 -0
- package/dist/components/AnimationWrapper/index.js +15 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.js +56 -0
- package/dist/components/AppContainer/AppContainer.module.css.js +15 -0
- package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +44 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +52 -0
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.js +16 -0
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +67 -0
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -0
- package/dist/components/AppContainer/{Header.d.ts → components/Header.d.ts} +1 -1
- package/dist/components/AppContainer/components/Header.js +9 -0
- package/dist/components/AppContainer/components/Main.js +18 -0
- package/dist/components/AppContainer/components/NavbarContent.js +6 -0
- package/dist/components/AppContainer/components/RightSidebar.js +30 -0
- package/dist/components/AppContainer/components/SidebarToggleButton.js +27 -0
- package/dist/components/AppContainer/components/SlideAnimation.js +43 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +6 -2
- package/dist/components/AppContainer/components/ToolSidebar.js +84 -0
- package/dist/components/AppContainer/components/ToolbarNewButton.js +28 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +122 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +9 -0
- package/dist/components/AppContainer/components/menus/HelpMenu/WhatsNew.js +58 -0
- package/dist/components/AppContainer/components/menus/MoreMenu.js +42 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -1
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.js +44 -0
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +60 -0
- package/dist/components/AppContainer/hooks/useAppContainerActionsStore.js +10 -0
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +37 -0
- package/dist/components/AppContainer/hooks/useAppContainerStore.d.ts +2 -3
- package/dist/components/AppContainer/hooks/useAppContainerStore.js +62 -0
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +2 -0
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +10 -0
- package/dist/components/AppContainer/types.d.ts +8 -4
- package/dist/components/AppShell/AppShell.js +18 -0
- package/dist/components/AppShell/AppShell.module.css.js +19 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +4 -2
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +39 -0
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.js +127 -0
- package/dist/components/AttachmentsGalleryModal/components/ErrorSection.js +14 -0
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +69 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +13 -0
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +123 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +4 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +41 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +7 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +54 -0
- package/dist/components/AttachmentsGalleryModal/constants.d.ts +2 -1
- package/dist/components/AttachmentsGalleryModal/constants.js +21 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +22 -0
- package/dist/components/AttachmentsGalleryModal/helpers.js +40 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +35 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useEmblaCarousel.js +49 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +28 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.d.ts +10 -0
- package/dist/components/AttachmentsGalleryModal/hooks/usePanning.js +61 -0
- package/dist/components/AttachmentsGalleryModal/hooks/useZoomReset.js +16 -0
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +29 -0
- package/dist/components/BottomDrawerWithoutHeader/index.js +75 -0
- package/dist/components/BouncingLogo/BouncingLogo.js +22 -0
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +9 -0
- package/dist/components/CircleColorPicker/CircleColorPicker.js +72 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPicker.js +131 -0
- package/dist/components/ColorPicker/ColorPickerPopover.js +42 -0
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +61 -0
- package/dist/components/CommentComposer/index.d.ts +2 -1
- package/dist/components/CommentComposer/index.js +288 -0
- package/dist/components/CommentFilterMenu/index.js +92 -0
- package/dist/components/CommentsPanel/CommentsPanel.module.css.js +109 -0
- package/dist/components/CommentsPanel/components/CommentActionMenu.js +49 -0
- package/dist/components/CommentsPanel/components/CommentActions.js +151 -0
- package/dist/components/CommentsPanel/components/CommentPanelListItem.d.ts +2 -1
- package/dist/components/CommentsPanel/components/CommentPanelListItem.js +366 -0
- package/dist/components/CommentsPanel/components/CommentTabFilter.js +53 -0
- package/dist/components/CommentsPanel/components/CommentsEmptyPlaceholder.js +17 -0
- package/dist/components/CommentsPanel/components/CommentsFilterHeader.js +83 -0
- package/dist/components/CommentsPanel/components/CommentsListItemMenu.js +63 -0
- package/dist/components/CommentsPanel/components/CommentsPanelList.d.ts +2 -1
- package/dist/components/CommentsPanel/components/CommentsPanelList.js +74 -0
- package/dist/components/CommentsPanel/components/CommentsThreadReplyControls.js +108 -0
- package/dist/components/CommentsPanel/components/CommentsUploadFilesPreview.js +142 -0
- package/dist/components/CommentsPanel/components/Icon.js +29 -0
- package/dist/components/CommentsPanel/index.d.ts +2 -1
- package/dist/components/CommentsPanel/index.js +137 -0
- package/dist/components/CommentsPanel/store.js +32 -0
- package/dist/components/CommentsPanel/types.d.ts +5 -5
- package/dist/components/CommentsPanel/utils.js +189 -0
- package/dist/components/CommunitiesDialog/index.js +149 -0
- package/dist/components/CommunitiesDialog/styles.module.css.js +7 -0
- package/dist/components/Copyright/Copyright.module.css.js +7 -0
- package/dist/components/Copyright/index.d.ts +1 -2
- package/dist/components/Copyright/index.js +32 -0
- package/dist/components/CustomKBD/CustomKBD.module.css.js +7 -0
- package/dist/components/CustomKBD/index.js +40 -0
- package/dist/components/EmojiPicker/EmojiPanel.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +273 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.js +222 -0
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +13 -0
- package/dist/components/EmojiPicker/IconsPanel.js +267 -0
- package/dist/components/EmojiPicker/constants.js +36 -0
- package/dist/components/EmojiPicker/custom-icons/StatusCancel.js +37 -0
- package/dist/components/EmojiPicker/custom-icons/StatusDone.js +29 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress00.js +17 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress10.js +20 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress100.js +20 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress20.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress30.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress40.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress50.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress60.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress70.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress80.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/StatusProgress90.js +26 -0
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +99 -0
- package/dist/components/EmojiPicker/getIconsList.d.ts +11 -0
- package/dist/components/EmojiPicker/getIconsList.js +32 -0
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +1 -0
- package/dist/components/EmojiPicker/getRandomIcon.js +10 -0
- package/dist/components/EntityIcon.d.ts +2 -0
- package/dist/components/EntityIcon.js +95 -0
- package/dist/components/EntityTitle/EntityTitle.js +86 -0
- package/dist/components/EntityTitle/EntityTitle.module.css.js +9 -0
- package/dist/components/ErrorAlert/index.js +20 -0
- package/dist/components/ErrorPage/components/Error403.js +51 -0
- package/dist/components/ErrorPage/components/Error404.js +5 -0
- package/dist/components/ErrorPage/components/Error406.js +47 -0
- package/dist/components/ErrorPage/components/Error500.js +58 -0
- package/dist/components/ErrorPage/components/ErrorUndefined.js +44 -0
- package/dist/components/ErrorPage/index.js +25 -0
- package/dist/components/FilePicker/FilePicker.js +242 -0
- package/dist/components/FilePicker/FilePicker.module.css.js +13 -0
- package/dist/components/FilePicker/FilePickerGallery.js +38 -0
- package/dist/components/FilePicker/FilePickerGiphy.js +91 -0
- package/dist/components/FilePicker/FilePickerLink.js +48 -0
- package/dist/components/FilePicker/FilePickerSkeletonLoader.js +9 -0
- package/dist/components/FilePicker/FilePickerUnsplash.js +95 -0
- package/dist/components/FilePicker/FilePickerUpload.js +86 -0
- package/dist/components/FilePicker/api/giphyApi.js +26 -0
- package/dist/components/FilePicker/api/unsplashApi.js +29 -0
- package/dist/components/FilePicker/types.d.ts +1 -0
- package/dist/components/FormViewer/FormViewer.js +42 -0
- package/dist/components/FormViewer/FormViewer.module.css.js +37 -0
- package/dist/components/FormViewer/components/AllSlidesLayout.js +24 -0
- package/dist/components/FormViewer/components/Container.js +27 -0
- package/dist/components/FormViewer/components/ListFocusBox.js +22 -0
- package/dist/components/FormViewer/components/NavControls.js +58 -0
- package/dist/components/FormViewer/components/Navigation/Navigation.js +37 -0
- package/dist/components/FormViewer/components/OneSlideLayput.js +133 -0
- package/dist/components/FormViewer/components/Step.js +225 -0
- package/dist/components/FormViewer/components/StepDescription.js +73 -0
- package/dist/components/FormViewer/components/StepTitle.js +118 -0
- package/dist/components/FormViewer/components/fields/AddOptionButton.js +24 -0
- package/dist/components/FormViewer/components/fields/ButtonField/ButtonField.js +63 -0
- package/dist/components/FormViewer/components/fields/ButtonField/InnerButton.js +70 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceCard.js +35 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/ChoiceField.js +135 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +37 -0
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +93 -0
- package/dist/components/FormViewer/components/fields/ConfirmButton.js +49 -0
- package/dist/components/FormViewer/components/fields/ConfirmField.js +21 -0
- package/dist/components/FormViewer/components/fields/DateField.js +31 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.js +81 -0
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.js +117 -0
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.js +70 -0
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/EmailField.js +26 -0
- package/dist/components/FormViewer/components/fields/LocationField.js +27 -0
- package/dist/components/FormViewer/components/fields/LongTextField.js +48 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceCard.js +38 -0
- package/dist/components/FormViewer/components/fields/MultipleChoice/MultipleChoiceField.js +152 -0
- package/dist/components/FormViewer/components/fields/NumberField.js +28 -0
- package/dist/components/FormViewer/components/fields/PhoneField.js +24 -0
- package/dist/components/FormViewer/components/fields/ProgressLine.js +30 -0
- package/dist/components/FormViewer/components/fields/RatingField.js +33 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +154 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.js +110 -0
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +15 -0
- package/dist/components/FormViewer/components/fields/SliderField.js +31 -0
- package/dist/components/FormViewer/components/fields/StartButton.js +34 -0
- package/dist/components/FormViewer/components/fields/StartField.js +21 -0
- package/dist/components/FormViewer/components/fields/TextField.js +31 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +155 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.js +62 -0
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +7 -0
- package/dist/components/FormViewer/components/fields/YesNoField.js +37 -0
- package/dist/components/FormViewer/constants/defaultTheme.js +41 -0
- package/dist/components/FormViewer/helpers/conditions.d.ts +1 -1
- package/dist/components/FormViewer/helpers/conditions.js +43 -0
- package/dist/components/FormViewer/helpers/controls.js +79 -0
- package/dist/components/FormViewer/helpers/cssScoping.js +10 -0
- package/dist/components/FormViewer/helpers/helpers.d.ts +1 -1
- package/dist/components/FormViewer/helpers/helpers.js +9 -0
- package/dist/components/FormViewer/helpers/slides.js +35 -0
- package/dist/components/FormViewer/helpers/staticClasses.js +48 -0
- package/dist/components/FormViewer/helpers/steps.d.ts +1 -1
- package/dist/components/FormViewer/helpers/steps.js +55 -0
- package/dist/components/FormViewer/helpers/themeUtils.js +8 -0
- package/dist/components/FormViewer/helpers/validation.js +87 -0
- package/dist/components/FormViewer/hooks/useActiveControl.js +9 -0
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +1 -1
- package/dist/components/FormViewer/hooks/useActiveStep.js +9 -0
- package/dist/components/FormViewer/hooks/useCreateFormContext.js +78 -0
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +132 -0
- package/dist/components/FormViewer/hooks/useFormMobile.js +15 -0
- package/dist/components/FormViewer/hooks/useInterpolateText.js +57 -0
- package/dist/components/FormViewer/store/formStore.d.ts +6 -6
- package/dist/components/FormViewer/store/formStore.js +84 -0
- package/dist/components/FormViewer/store/formStoreApi.d.ts +3 -3
- package/dist/components/FormViewer/store/formStoreApi.js +383 -0
- package/dist/components/FormViewer/store/selectors.d.ts +342 -342
- package/dist/components/FormViewer/store/selectors.js +98 -0
- package/dist/components/FormViewer/types/form.js +40 -0
- package/dist/components/FormViewer/types/schemes.d.ts +22 -22
- package/dist/components/FormViewer/types/schemes.js +314 -0
- package/dist/components/ImageModal/ImageModal.js +165 -0
- package/dist/components/LanguagePicker/LanguagePicker.js +41 -0
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +7 -0
- package/dist/components/Loaders/BaseLoader.js +8 -0
- package/dist/components/Loaders/styles.module.css.js +9 -0
- package/dist/components/Logotype.js +40 -0
- package/dist/components/NavMenu/NavMenu.d.ts +4 -2
- package/dist/components/NavMenu/NavMenu.js +98 -0
- package/dist/components/NavMenu/NavMenu.module.css.js +23 -0
- package/dist/components/NavMenu/components/DnDItem.js +44 -0
- package/dist/components/NavMenu/components/DnDProvider.js +64 -0
- package/dist/components/NavMenu/components/DraggableOverlay.js +18 -0
- package/dist/components/NavMenu/components/NavMenuActionIcon.js +27 -0
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +5 -0
- package/dist/components/NavMenu/components/NavMenuItem.js +179 -0
- package/dist/components/NavMenu/components/NavMenuLabel.js +18 -0
- package/dist/components/NavMenu/store.d.ts +12 -2
- package/dist/components/NavMenu/store.js +61 -0
- package/dist/components/NavMenu/types.d.ts +10 -3
- package/dist/components/NavbarResizer/NavbarResizer.js +42 -0
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +7 -0
- package/dist/components/NewColorPicker/components/Pallete.js +46 -0
- package/dist/components/NewColorPicker/components/Target.js +47 -0
- package/dist/components/NewColorPicker/index.js +92 -0
- package/dist/components/NoData/NoData.js +103 -0
- package/dist/components/NoData/NoData.module.css.js +7 -0
- package/dist/components/NotFound/NoFound.js +65 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.js +53 -0
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +19 -0
- package/dist/components/Notification/Notification.js +117 -0
- package/dist/components/Notification/Notification.module.css.js +7 -0
- package/dist/components/Notification/NotificationCard.js +92 -0
- package/dist/components/OnBoarding/OnBoardingPage.js +80 -0
- package/dist/components/OnBoarding/ProjectBoard.js +141 -0
- package/dist/components/OnBoarding/StepsNavBar.js +21 -0
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +42 -0
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +51 -0
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +45 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +42 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusBadge.js +22 -0
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +217 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.js +16 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +56 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +272 -0
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +9 -0
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +86 -0
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.js +26 -0
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +61 -0
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +42 -0
- package/dist/components/OnBoarding/steps/StartedStep.js +71 -0
- package/dist/components/OnBoarding/steps/Wrapper.js +49 -0
- package/dist/components/OnBoarding/steps/styles.module.css.js +17 -0
- package/dist/components/OnBoarding/styles.module.css.js +15 -0
- package/dist/components/PaymentCancel/PaymentCancel.js +41 -0
- package/dist/components/PaymentError/PaymentError.js +41 -0
- package/dist/components/PaymentSuccess/PaymentSuccess.js +41 -0
- package/dist/components/PinModal/PinModal.js +90 -0
- package/dist/components/PinModal/slice.js +28 -0
- package/dist/components/ProjectIcon/ProjectIcon.d.ts +1 -0
- package/dist/components/ProjectIcon/ProjectIcon.js +88 -0
- package/dist/components/SearchFilters/SearchFilters.js +37 -0
- package/dist/components/SearchFilters/SearchFilters.module.css.js +9 -0
- package/dist/components/SearchFilters/components/DateFilter.js +199 -0
- package/dist/components/SearchFilters/components/SearchHelp.js +121 -0
- package/dist/components/SearchFilters/components/Sort.js +99 -0
- package/dist/components/SearchFilters/components/Type.js +124 -0
- package/dist/components/SortableList/SortableList.js +44 -0
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +82 -0
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +62 -0
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +27 -0
- package/dist/components/StorageUsageProgress/index.js +52 -0
- package/dist/components/SubmitModal/index.js +12 -0
- package/dist/components/ThemeIndicator/index.js +21 -0
- package/dist/components/UserAvatar/index.d.ts +3 -2
- package/dist/components/UserAvatar/index.js +22 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +22 -0
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +41 -0
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +211 -0
- package/dist/components/modals/RemoveConfirmModal.d.ts +8 -1
- package/dist/components/modals/RemoveConfirmModal.js +68 -0
- package/dist/components/table/FrontTable.js +21 -0
- package/dist/components/table/api.js +248 -0
- package/dist/components/table/components/Table.js +139 -0
- package/dist/components/table/components/TableAggregation.js +31 -0
- package/dist/components/table/components/TableCell.js +55 -0
- package/dist/components/table/components/TableHeaderCell.js +159 -0
- package/dist/components/table/components/TableHeaders.js +99 -0
- package/dist/components/table/components/TableMenu.js +59 -0
- package/dist/components/table/components/TablePagination.js +52 -0
- package/dist/components/table/components/TablePanel.js +26 -0
- package/dist/components/table/components/TableRow.js +85 -0
- package/dist/components/table/components/TableRows.js +66 -0
- package/dist/components/table/components/TableSearch.js +32 -0
- package/dist/components/table/components/TableSkeleton.js +60 -0
- package/dist/components/table/components/TableTitle.js +26 -0
- package/dist/components/table/constants.js +28 -0
- package/dist/components/table/export.js +58 -0
- package/dist/components/table/helpers/columns.js +198 -0
- package/dist/components/table/helpers/formatters.js +65 -0
- package/dist/components/table/hooks/TableProvider.js +62 -0
- package/dist/components/table/hooks/useColumnsResizing.js +51 -0
- package/dist/components/table/hooks/useCreateTable.js +9 -0
- package/dist/components/table/hooks/useSaveRowCount.js +9 -0
- package/dist/components/table/hooks/useSorting.js +36 -0
- package/dist/components/table/hooks/useTableStore.js +6 -0
- package/dist/components/table/selectors.js +203 -0
- package/dist/components/table/store.js +65 -0
- package/dist/components/table/types.js +17 -0
- package/dist/constants.js +19 -0
- package/dist/helpers/combineStatuses.js +5 -0
- package/dist/helpers/dates.js +15 -0
- package/dist/helpers/download.js +17 -0
- package/dist/helpers/feature.js +7 -0
- package/dist/helpers/fileUtils.js +33 -0
- package/dist/helpers/filterHierarchyByTypes.js +13 -0
- package/dist/helpers/formatBytes.js +8 -0
- package/dist/helpers/generateLink.js +9 -0
- package/dist/helpers/getFileIcons.js +42 -0
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.js +40 -0
- package/dist/helpers/getPartOfTheDay.js +12 -0
- package/dist/helpers/getRandomIconColor.js +17 -0
- package/dist/helpers/hotjar.d.ts +9 -0
- package/dist/helpers/hotjar.js +19 -0
- package/dist/helpers/isAppMode.js +4 -0
- package/dist/helpers/pickRandomEmoji.d.ts +1 -0
- package/dist/helpers/pickRandomEmoji.js +12 -0
- package/dist/helpers/showNotifications.js +72 -0
- package/dist/helpers/themeUtils.js +5 -0
- package/dist/helpers/validation.js +38 -0
- package/dist/hooks/useAsyncStatus.d.ts +8 -0
- package/dist/hooks/useAsyncStatus.js +26 -0
- package/dist/hooks/useDateFnsLocale.js +13 -0
- package/dist/hooks/useDateUtils.js +33 -0
- package/dist/hooks/useDisableWindowScroll.js +24 -0
- package/dist/hooks/useEvent.js +12 -0
- package/dist/hooks/useFormatDistance.js +17 -0
- package/dist/hooks/useMenu.js +9 -0
- package/dist/hooks/useNumberQueryParam.js +14 -0
- package/dist/hooks/useOAuthErrorParams.js +16 -0
- package/dist/hooks/useOutsideClick.js +21 -0
- package/dist/hooks/useSwipeDetect.js +21 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +70 -76
- package/dist/index.js +397 -259
- package/dist/lang/locales/ui_en.json.d.ts +6 -5
- package/dist/lang/locales/ui_en.json.js +19 -0
- package/dist/lang/locales/ui_es.json.d.ts +2 -1
- package/dist/lang/locales/ui_es.json.js +19 -0
- package/dist/lang/locales/ui_ru.json.d.ts +2 -1
- package/dist/lang/locales/ui_ru.json.js +19 -0
- package/dist/store/accessOptionsControl.js +10 -0
- package/dist/store/discordDialogStore.js +14 -0
- package/dist/store/onboarding.js +53 -0
- package/dist/store/plansModal.js +13 -0
- package/dist/store/searchModal.js +13 -0
- package/dist/store/timezoneStore.js +19 -0
- package/dist/store/workspacesOrder.js +17 -0
- package/dist/utils/formatStorage.js +8 -0
- package/dist/utils/getPlanBadgeColor.js +17 -0
- package/dist/utils/queryParams.js +15 -0
- package/docs/README.md +486 -0
- package/package.json +32 -11
- package/dist/KanbanLayout-BnHAvyHl.js +0 -297
- package/dist/components/AppContainer/hooks/useHideHeader.d.ts +0 -1
- package/dist/components/AppContainer/hooks/useHideSidebar.d.ts +0 -1
- package/dist/components/AppTour/AppTour.d.ts +0 -7
- package/dist/components/AppTour/FinishModal.d.ts +0 -1
- package/dist/components/AppTour/HelloModal.d.ts +0 -1
- package/dist/components/AppTour/hooks/useAppTour.d.ts +0 -2
- package/dist/components/AppTour/index.d.ts +0 -4
- package/dist/components/AppTour/types.d.ts +0 -17
- package/dist/emoji-categorized-CRsMUQyD.js +0 -4
- package/dist/helpers/pickRandomIcon.d.ts +0 -1
- package/dist/helpers/token.d.ts +0 -3
- package/dist/icons.min-wo13YUY4.js +0 -4
- package/dist/index-BawytWAK.js +0 -96715
- package/dist/index.umd.cjs +0 -356
- /package/dist/components/AppContainer/{Main.d.ts → components/Main.d.ts} +0 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { memo as I, useRef as b } from "react";
|
|
3
|
+
import { useTranslation as A } from "react-i18next";
|
|
4
|
+
import { Box as C, Tooltip as l, ActionIcon as o, Text as m, Flex as p } from "@mantine/core";
|
|
5
|
+
import { IconDownload as h, IconMinus as R, IconPlus as k, IconX as F } from "@tabler/icons-react";
|
|
6
|
+
import { useAttachmentsGalleryContext as T } from "../AttachmentsGalleryContext.js";
|
|
7
|
+
import { zoomStep as u } from "../helpers.js";
|
|
8
|
+
import { useDownloadFile as j } from "../hooks/useDownloadFile.js";
|
|
9
|
+
import { useZoomReset as D } from "../hooks/useZoomReset.js";
|
|
10
|
+
const V = I(
|
|
11
|
+
({ onClose: f, attachments: y }) => {
|
|
12
|
+
D();
|
|
13
|
+
const { t: e } = A("ui"), i = b(null), { zoomPercentage: x, transformRefs: n, selectedIndex: a } = T(), c = y?.[a], w = () => {
|
|
14
|
+
u({
|
|
15
|
+
animationRef: i,
|
|
16
|
+
dir: "in",
|
|
17
|
+
activeRef: n.current[a]
|
|
18
|
+
});
|
|
19
|
+
}, v = () => {
|
|
20
|
+
u({
|
|
21
|
+
animationRef: i,
|
|
22
|
+
dir: "out",
|
|
23
|
+
activeRef: n.current[a]
|
|
24
|
+
});
|
|
25
|
+
}, { isVideo: z, isFetching: s, onDownload: d, isMobile: g } = j(c);
|
|
26
|
+
return /* @__PURE__ */ t(
|
|
27
|
+
C,
|
|
28
|
+
{
|
|
29
|
+
style: {
|
|
30
|
+
borderRadius: 8,
|
|
31
|
+
display: "grid",
|
|
32
|
+
gridTemplateColumns: "1fr auto 1fr",
|
|
33
|
+
alignItems: "center",
|
|
34
|
+
flex: "none",
|
|
35
|
+
gap: 12
|
|
36
|
+
},
|
|
37
|
+
px: 8,
|
|
38
|
+
py: 8,
|
|
39
|
+
bg: "var(--mantine-color-dark-6)",
|
|
40
|
+
children: [
|
|
41
|
+
g ? /* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.download"), children: /* @__PURE__ */ r(
|
|
42
|
+
o,
|
|
43
|
+
{
|
|
44
|
+
c: "var(--app-gallary-text)",
|
|
45
|
+
color: "gray",
|
|
46
|
+
size: "lg",
|
|
47
|
+
variant: "light",
|
|
48
|
+
loading: s,
|
|
49
|
+
onClick: d,
|
|
50
|
+
children: /* @__PURE__ */ r(h, { size: 20 })
|
|
51
|
+
}
|
|
52
|
+
) }) : /* @__PURE__ */ r(m, { ml: 6, fw: 500, fz: 14, c: "var(--app-gallary-text)", truncate: !0, children: c?.originalFileName || "" }),
|
|
53
|
+
z ? /* @__PURE__ */ r("div", {}) : /* @__PURE__ */ t(p, { gap: "xs", children: [
|
|
54
|
+
/* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.zoomOut"), children: /* @__PURE__ */ r(
|
|
55
|
+
o,
|
|
56
|
+
{
|
|
57
|
+
c: "var(--app-gallary-text)",
|
|
58
|
+
color: "gray",
|
|
59
|
+
size: "lg",
|
|
60
|
+
variant: "light",
|
|
61
|
+
onClick: v,
|
|
62
|
+
children: /* @__PURE__ */ r(R, { size: 20 })
|
|
63
|
+
}
|
|
64
|
+
) }),
|
|
65
|
+
/* @__PURE__ */ t(
|
|
66
|
+
m,
|
|
67
|
+
{
|
|
68
|
+
fw: 500,
|
|
69
|
+
fz: 14,
|
|
70
|
+
c: "var(--app-gallary-text)",
|
|
71
|
+
miw: 50,
|
|
72
|
+
ta: "center",
|
|
73
|
+
children: [
|
|
74
|
+
x,
|
|
75
|
+
"%"
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.zoomIn"), children: /* @__PURE__ */ r(
|
|
80
|
+
o,
|
|
81
|
+
{
|
|
82
|
+
c: "var(--app-gallary-text)",
|
|
83
|
+
color: "gray",
|
|
84
|
+
size: "lg",
|
|
85
|
+
variant: "light",
|
|
86
|
+
onClick: w,
|
|
87
|
+
children: /* @__PURE__ */ r(k, { size: 20 })
|
|
88
|
+
}
|
|
89
|
+
) })
|
|
90
|
+
] }),
|
|
91
|
+
/* @__PURE__ */ t(p, { justify: "end", gap: "xs", children: [
|
|
92
|
+
!g && /* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.download"), children: /* @__PURE__ */ r(
|
|
93
|
+
o,
|
|
94
|
+
{
|
|
95
|
+
c: "var(--app-gallary-text)",
|
|
96
|
+
size: "lg",
|
|
97
|
+
color: "gray",
|
|
98
|
+
variant: "light",
|
|
99
|
+
loading: s,
|
|
100
|
+
onClick: d,
|
|
101
|
+
children: /* @__PURE__ */ r(h, { size: 20 })
|
|
102
|
+
}
|
|
103
|
+
) }),
|
|
104
|
+
/* @__PURE__ */ r(l, { withArrow: !0, label: e("gallery.close"), children: /* @__PURE__ */ r(
|
|
105
|
+
o,
|
|
106
|
+
{
|
|
107
|
+
c: "var(--app-gallary-text)",
|
|
108
|
+
size: "lg",
|
|
109
|
+
color: "gray",
|
|
110
|
+
variant: "light",
|
|
111
|
+
onClick: f,
|
|
112
|
+
children: /* @__PURE__ */ r(F, { size: 20 })
|
|
113
|
+
}
|
|
114
|
+
) })
|
|
115
|
+
] })
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
export {
|
|
122
|
+
V as ModalHeader
|
|
123
|
+
};
|
|
@@ -2,6 +2,9 @@ type BaseProps = {
|
|
|
2
2
|
autoPlay?: boolean;
|
|
3
3
|
isActive?: boolean;
|
|
4
4
|
attachmentId: string;
|
|
5
|
+
loader?: React.ReactNode;
|
|
6
|
+
stylesContainer?: React.CSSProperties;
|
|
7
|
+
classNameContainer?: string;
|
|
5
8
|
};
|
|
6
|
-
export declare const ShakaVideoPlayer: ({ attachmentId, autoPlay, isActive, }: BaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const ShakaVideoPlayer: ({ attachmentId, autoPlay, isActive, loader, stylesContainer, classNameContainer, }: BaseProps) => string | number | boolean | Iterable<import('react').ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
7
10
|
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
import n from "shaka-player-react";
|
|
4
|
+
import { BaseLoader as y } from "../../../Loaders/BaseLoader.js";
|
|
5
|
+
import { ErrorSection as d } from "../ErrorSection.js";
|
|
6
|
+
import { useShakePlayer as h } from "./useShakePlayer.js";
|
|
7
|
+
import t from "./ShakaPlayer.module.css.js";
|
|
8
|
+
import "shaka-player/dist/controls.css";
|
|
9
|
+
const _ = ({
|
|
10
|
+
attachmentId: m,
|
|
11
|
+
autoPlay: o,
|
|
12
|
+
isActive: i,
|
|
13
|
+
loader: s,
|
|
14
|
+
stylesContainer: p,
|
|
15
|
+
classNameContainer: l
|
|
16
|
+
}) => {
|
|
17
|
+
const { isError: f, containerRef: c, vodUrl: e } = h({
|
|
18
|
+
autoPlay: o,
|
|
19
|
+
isActive: i,
|
|
20
|
+
attachmentId: m
|
|
21
|
+
});
|
|
22
|
+
return f ? /* @__PURE__ */ r(d, {}) : e ? /* @__PURE__ */ r(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
ref: c,
|
|
26
|
+
style: p,
|
|
27
|
+
className: a(t["vod-player"], "shaka-vod-player-wrapper", l),
|
|
28
|
+
children: /* @__PURE__ */ r(
|
|
29
|
+
n,
|
|
30
|
+
{
|
|
31
|
+
autoPlay: o ?? !0,
|
|
32
|
+
className: a(t["vod-player__player"]),
|
|
33
|
+
src: e
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
}
|
|
37
|
+
) : s ?? /* @__PURE__ */ r(y, {});
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
_ as ShakaVideoPlayer
|
|
41
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { useState as g, useRef as c, useEffect as E } from "react";
|
|
2
|
+
const y = ({
|
|
3
|
+
attachmentId: o,
|
|
4
|
+
isActive: i,
|
|
5
|
+
autoPlay: a
|
|
6
|
+
}) => {
|
|
7
|
+
const [l, f] = g(null), [h, d] = g(!1), s = c(null), u = c(!0), t = c(null), r = c(null), b = async () => {
|
|
8
|
+
if (!o)
|
|
9
|
+
return;
|
|
10
|
+
r.current && r.current.abort();
|
|
11
|
+
const e = new AbortController();
|
|
12
|
+
r.current = e;
|
|
13
|
+
try {
|
|
14
|
+
const n = await fetch(`/v1/attachments/${o}/vod`, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
credentials: "include",
|
|
17
|
+
headers: {
|
|
18
|
+
Accept: "*/*"
|
|
19
|
+
},
|
|
20
|
+
signal: e.signal
|
|
21
|
+
});
|
|
22
|
+
if (!n.ok) throw new Error("Failed to get VOD URL");
|
|
23
|
+
const w = await n.json();
|
|
24
|
+
if (!u.current || e.signal.aborted) return;
|
|
25
|
+
if (w.ready) {
|
|
26
|
+
const m = new URL(w.url, window.location.origin).toString();
|
|
27
|
+
f(m);
|
|
28
|
+
} else
|
|
29
|
+
t.current = setTimeout(() => {
|
|
30
|
+
b();
|
|
31
|
+
}, 3e3);
|
|
32
|
+
} catch (n) {
|
|
33
|
+
if (n instanceof Error && n.name === "AbortError" || !u.current || e.signal.aborted) return;
|
|
34
|
+
d(!0);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
return E(() => {
|
|
38
|
+
if (u.current = !0, f(null), d(!1), t.current && (clearTimeout(t.current), t.current = null), r.current && (r.current.abort(), r.current = null), !!o)
|
|
39
|
+
return b(), () => {
|
|
40
|
+
u.current = !1, t.current && (clearTimeout(t.current), t.current = null), r.current && (r.current.abort(), r.current = null);
|
|
41
|
+
};
|
|
42
|
+
}, [o]), E(() => {
|
|
43
|
+
if (!l || !s.current) return;
|
|
44
|
+
const e = s.current.querySelector(
|
|
45
|
+
"video"
|
|
46
|
+
);
|
|
47
|
+
e && (i ? a !== !1 && e.play().catch((n) => {
|
|
48
|
+
console.error("Ошибка при воспроизведении видео:", n);
|
|
49
|
+
}) : e.pause());
|
|
50
|
+
}, [i, l, a]), { containerRef: s, isError: h, vodUrl: l };
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
y as useShakePlayer
|
|
54
|
+
};
|
|
@@ -4,7 +4,7 @@ export declare const ZOOM_CONFIG: {
|
|
|
4
4
|
readonly minScale: 1;
|
|
5
5
|
readonly maxScale: 5;
|
|
6
6
|
readonly wheelStep: 0.1;
|
|
7
|
-
readonly
|
|
7
|
+
readonly buttonStepPercent: 50;
|
|
8
8
|
};
|
|
9
9
|
export declare const MODAL_TRANSITION: {
|
|
10
10
|
readonly duration: 200;
|
|
@@ -17,3 +17,4 @@ export declare const TRANSFORM_COMPONENT_STYLES: {
|
|
|
17
17
|
alignItems: string;
|
|
18
18
|
justifyContent: string;
|
|
19
19
|
};
|
|
20
|
+
export declare const STEPS: number[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
initialScale: 1,
|
|
3
|
+
minScale: 1,
|
|
4
|
+
maxScale: 5,
|
|
5
|
+
wheelStep: 0.1
|
|
6
|
+
}, e = {
|
|
7
|
+
duration: 200,
|
|
8
|
+
exitDuration: 200
|
|
9
|
+
}, n = {
|
|
10
|
+
width: "100%",
|
|
11
|
+
height: "100%",
|
|
12
|
+
display: "flex",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "center"
|
|
15
|
+
}, i = [1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5];
|
|
16
|
+
export {
|
|
17
|
+
e as MODAL_TRANSITION,
|
|
18
|
+
i as STEPS,
|
|
19
|
+
n as TRANSFORM_COMPONENT_STYLES,
|
|
20
|
+
t as ZOOM_CONFIG
|
|
21
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { ReactZoomPanPinchContentRef } from 'react-zoom-pan-pinch';
|
|
3
|
+
export declare const animateTransform: ({ instance, from, to, duration, animationRef, }: {
|
|
4
|
+
instance: ReactZoomPanPinchContentRef["instance"];
|
|
5
|
+
from: {
|
|
6
|
+
scale: number;
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
to: {
|
|
11
|
+
scale: number;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
duration: number;
|
|
16
|
+
animationRef: MutableRefObject<number | null>;
|
|
17
|
+
}) => void;
|
|
18
|
+
export declare const zoomStep: ({ dir, activeRef, animationRef, }: {
|
|
19
|
+
dir: "in" | "out";
|
|
20
|
+
activeRef: ReactZoomPanPinchContentRef;
|
|
21
|
+
animationRef: MutableRefObject<number | null>;
|
|
22
|
+
}) => void;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { STEPS as h } from "./constants.js";
|
|
2
|
+
const y = ({
|
|
3
|
+
instance: r,
|
|
4
|
+
from: t,
|
|
5
|
+
to: e,
|
|
6
|
+
duration: s = 200,
|
|
7
|
+
animationRef: n
|
|
8
|
+
}) => {
|
|
9
|
+
n.current && cancelAnimationFrame(n.current);
|
|
10
|
+
const c = performance.now(), a = (p) => {
|
|
11
|
+
const i = Math.min((p - c) / s, 1), o = 1 - Math.pow(1 - i, 3), x = t.scale + (e.scale - t.scale) * o, l = t.x + (e.x - t.x) * o, m = t.y + (e.y - t.y) * o;
|
|
12
|
+
r.setTransformState(x, l, m), i < 1 && (n.current = requestAnimationFrame(a));
|
|
13
|
+
};
|
|
14
|
+
n.current = requestAnimationFrame(a);
|
|
15
|
+
}, I = ({
|
|
16
|
+
dir: r,
|
|
17
|
+
activeRef: t,
|
|
18
|
+
animationRef: e
|
|
19
|
+
}) => {
|
|
20
|
+
const s = t?.instance;
|
|
21
|
+
if (!s) return;
|
|
22
|
+
const { scale: n, positionX: c, positionY: a } = s.transformState, p = s.wrapperComponent?.getBoundingClientRect(), i = (p?.width ?? 0) / 2, o = (p?.height ?? 0) / 2, x = S(n), l = r === "in" ? x + 1 : x - 1, m = Math.min(Math.max(l, 0), h.length - 1), u = h[m], d = u / n, f = i - (i - c) * d, w = o - (o - a) * d;
|
|
23
|
+
y({
|
|
24
|
+
instance: s,
|
|
25
|
+
from: { scale: n, x: c, y: a },
|
|
26
|
+
to: { scale: u, x: f, y: w },
|
|
27
|
+
duration: 200,
|
|
28
|
+
animationRef: e
|
|
29
|
+
});
|
|
30
|
+
}, S = (r) => {
|
|
31
|
+
let t = 0, e = 1 / 0;
|
|
32
|
+
return h.forEach((s, n) => {
|
|
33
|
+
const c = Math.abs(s - r);
|
|
34
|
+
c < e && (e = c, t = n);
|
|
35
|
+
}), t;
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
y as animateTransform,
|
|
39
|
+
I as zoomStep
|
|
40
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useState as w, useCallback as u, useMemo as p } from "react";
|
|
2
|
+
import { downloadImageFromExternalUrl as m, downloadURL as c } from "../../../helpers/download.js";
|
|
3
|
+
import { isVideoFile as b } from "../../../helpers/fileUtils.js";
|
|
4
|
+
import { useMenu as F } from "../../../hooks/useMenu.js";
|
|
5
|
+
const L = (o) => {
|
|
6
|
+
const [l, e] = w(!1), n = u(
|
|
7
|
+
async (a) => {
|
|
8
|
+
if (a.stopPropagation(), !!o)
|
|
9
|
+
if (e(!0), o?.Url)
|
|
10
|
+
await m(o?.Url, "file"), e(!1);
|
|
11
|
+
else {
|
|
12
|
+
const i = await fetch(`/v1/attachments/${o.id}`, {
|
|
13
|
+
method: "GET"
|
|
14
|
+
});
|
|
15
|
+
if (!i.ok)
|
|
16
|
+
throw e(!1), new Error(`Error loading: ${i.statusText}`);
|
|
17
|
+
const d = await i.blob();
|
|
18
|
+
e(!1);
|
|
19
|
+
const s = window.URL.createObjectURL(d);
|
|
20
|
+
s && o && (o.id ? c(s, o.originalFileName || "file") : m(s, "file"));
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
[o]
|
|
24
|
+
), { isMobile: r } = F(), f = b(
|
|
25
|
+
o?.contentType,
|
|
26
|
+
o?.originalFileName
|
|
27
|
+
);
|
|
28
|
+
return p(
|
|
29
|
+
() => ({ isVideo: f, isMobile: r, onDownload: n, isFetching: l }),
|
|
30
|
+
[r, f, n, l]
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
L as useDownloadFile
|
|
35
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { useState as v, useEffect as o } from "react";
|
|
2
|
+
import { useAttachmentsGalleryContext as P } from "../AttachmentsGalleryContext.js";
|
|
3
|
+
const V = () => {
|
|
4
|
+
const {
|
|
5
|
+
embla: e,
|
|
6
|
+
canScrollPrev: c,
|
|
7
|
+
setCanScrollPrev: i,
|
|
8
|
+
canScrollNext: a,
|
|
9
|
+
setCanScrollNext: d,
|
|
10
|
+
selectedIndex: S,
|
|
11
|
+
setSelectedIndex: f,
|
|
12
|
+
zoomPercentage: s,
|
|
13
|
+
setZoomPercentage: u,
|
|
14
|
+
prevIndexRef: x
|
|
15
|
+
} = P(), [I, m] = v([]), t = () => {
|
|
16
|
+
e && (i(e.canScrollPrev()), d(e.canScrollNext()));
|
|
17
|
+
};
|
|
18
|
+
return o(() => {
|
|
19
|
+
if (!e) return;
|
|
20
|
+
t();
|
|
21
|
+
const l = () => {
|
|
22
|
+
const r = e.slidesInView();
|
|
23
|
+
m(r);
|
|
24
|
+
}, n = () => {
|
|
25
|
+
t();
|
|
26
|
+
const r = e.selectedScrollSnap();
|
|
27
|
+
x.current = r, f(r), u(100), l();
|
|
28
|
+
};
|
|
29
|
+
return l(), e.on("select", n), e.on("slidesInView", l), e.on("reInit", t), () => {
|
|
30
|
+
e.off("select", n), e.off("slidesInView", l), e.off("reInit", t);
|
|
31
|
+
};
|
|
32
|
+
}, [e]), o(() => {
|
|
33
|
+
e && e.reInit({ watchDrag: s === 100 });
|
|
34
|
+
}, [e, s]), {
|
|
35
|
+
scrollPrev: () => {
|
|
36
|
+
e?.scrollPrev();
|
|
37
|
+
},
|
|
38
|
+
scrollNext: () => {
|
|
39
|
+
e?.scrollNext();
|
|
40
|
+
},
|
|
41
|
+
canScrollPrev: c,
|
|
42
|
+
canScrollNext: a,
|
|
43
|
+
selectedIndex: S,
|
|
44
|
+
visibleSlides: I
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
V as useEmblaCarousel
|
|
49
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useState as t, useEffect as w, useMemo as U } from "react";
|
|
2
|
+
import { isVideoFile as E } from "../../../helpers/fileUtils.js";
|
|
3
|
+
const p = (e) => {
|
|
4
|
+
const [l, c] = t(null), [n, s] = t(!1), [f, o] = t(!1);
|
|
5
|
+
async function u(d) {
|
|
6
|
+
s(!0);
|
|
7
|
+
const i = await fetch(`/v1/attachments/${d}`, {
|
|
8
|
+
method: "GET"
|
|
9
|
+
});
|
|
10
|
+
if (!i.ok)
|
|
11
|
+
throw s(!1), o(!0), new Error(`Error loading: ${i.statusText}`);
|
|
12
|
+
const a = await i.blob();
|
|
13
|
+
c(window.URL.createObjectURL(a)), s(!1), o(!1);
|
|
14
|
+
}
|
|
15
|
+
const r = E(
|
|
16
|
+
e.contentType,
|
|
17
|
+
e.originalFileName
|
|
18
|
+
);
|
|
19
|
+
return w(() => {
|
|
20
|
+
e.id && !r && !e.Url && u(e.id);
|
|
21
|
+
}, [e.Url, e.id, r]), U(
|
|
22
|
+
() => ({ fileUrl: l, isFetching: n, isError: f, setIsError: o, isVideo: r }),
|
|
23
|
+
[l, f, n, r]
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
p as useGetPreviewUrl
|
|
28
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const usePanning: ({ isVideo, isFetching, }: {
|
|
2
|
+
isFetching: boolean;
|
|
3
|
+
isVideo: boolean;
|
|
4
|
+
}) => {
|
|
5
|
+
onMouseDown: (e: React.MouseEvent) => void;
|
|
6
|
+
onMouseMove: (e: React.MouseEvent) => void;
|
|
7
|
+
onMouseUp: () => void;
|
|
8
|
+
onMouseLeave: () => void;
|
|
9
|
+
onDoubleClick: () => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { useRef as i, useCallback as l, useMemo as g } from "react";
|
|
2
|
+
import { useAttachmentsGalleryContext as v } from "../AttachmentsGalleryContext.js";
|
|
3
|
+
import { zoomStep as w } from "../helpers.js";
|
|
4
|
+
const b = ({
|
|
5
|
+
isVideo: p,
|
|
6
|
+
isFetching: x
|
|
7
|
+
}) => {
|
|
8
|
+
const { transformRefs: t, selectedIndex: e } = v(), S = i(null), c = i(null), n = i(null), a = i(!1), d = l(
|
|
9
|
+
(r) => {
|
|
10
|
+
if (x || p) return;
|
|
11
|
+
const s = t.current[e]?.instance;
|
|
12
|
+
if (!s) return;
|
|
13
|
+
c.current = { x: r.clientX, y: r.clientY };
|
|
14
|
+
const { scale: o, positionX: u, positionY: y } = s.transformState;
|
|
15
|
+
n.current = { scale: o, x: u, y }, a.current = !1;
|
|
16
|
+
},
|
|
17
|
+
[x, p, e, t]
|
|
18
|
+
), M = l(
|
|
19
|
+
(r) => {
|
|
20
|
+
if (!c.current || !n.current) return;
|
|
21
|
+
const s = t.current[e]?.instance;
|
|
22
|
+
if (!s) return;
|
|
23
|
+
const o = r.clientX - c.current.x, u = r.clientY - c.current.y;
|
|
24
|
+
if (Math.sqrt(o * o + u * u) > 5) {
|
|
25
|
+
a.current = !0;
|
|
26
|
+
const { scale: m } = n.current, X = n.current.x + o / m, Y = n.current.y + u / m;
|
|
27
|
+
s.setTransformState(m, X, Y);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
[e, t]
|
|
31
|
+
), f = l(() => {
|
|
32
|
+
if (!a.current && n.current) {
|
|
33
|
+
const r = t.current[e]?.instance;
|
|
34
|
+
r && r.setTransformState(
|
|
35
|
+
n.current.scale,
|
|
36
|
+
n.current.x,
|
|
37
|
+
n.current.y
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
c.current = null, n.current = null, a.current = !1;
|
|
41
|
+
}, [e, t]), R = l(() => {
|
|
42
|
+
w({
|
|
43
|
+
dir: "in",
|
|
44
|
+
activeRef: t.current[e],
|
|
45
|
+
animationRef: S
|
|
46
|
+
});
|
|
47
|
+
}, [e, t]);
|
|
48
|
+
return g(
|
|
49
|
+
() => ({
|
|
50
|
+
onMouseDown: d,
|
|
51
|
+
onMouseMove: M,
|
|
52
|
+
onMouseUp: f,
|
|
53
|
+
onMouseLeave: f,
|
|
54
|
+
onDoubleClick: R
|
|
55
|
+
}),
|
|
56
|
+
[R, d, M, f]
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
b as usePanning
|
|
61
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useRef as o, useEffect as c } from "react";
|
|
2
|
+
import { useAttachmentsGalleryContext as u } from "../AttachmentsGalleryContext.js";
|
|
3
|
+
const i = () => {
|
|
4
|
+
const { selectedIndex: e, transformRefs: r } = u(), n = o(e);
|
|
5
|
+
c(() => {
|
|
6
|
+
const t = n.current;
|
|
7
|
+
n.current = e;
|
|
8
|
+
const s = setTimeout(() => {
|
|
9
|
+
t !== e && r.current[t] && r.current[t].resetTransform(), r.current[e] && r.current[e].resetTransform();
|
|
10
|
+
}, 0);
|
|
11
|
+
return () => clearTimeout(s);
|
|
12
|
+
}, [e]);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
i as useZoomReset
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const o = "_container_ohoof_1", t = "_root_ohoof_7", n = "_carouselRoot_ohoof_14", e = "_carouselViewport_ohoof_18", a = "_carouselSlide_ohoof_22", _ = "_navButton_ohoof_30", r = "_navButtonPrev_ohoof_44", c = "_navButtonNext_ohoof_48", s = "_modalContent_ohoof_52", i = "_modalBody_ohoof_57", l = "_videoContainer_ohoof_63", u = "_imageContainer_ohoof_68", d = {
|
|
2
|
+
container: o,
|
|
3
|
+
root: t,
|
|
4
|
+
carouselRoot: n,
|
|
5
|
+
carouselViewport: e,
|
|
6
|
+
carouselSlide: a,
|
|
7
|
+
navButton: _,
|
|
8
|
+
navButtonPrev: r,
|
|
9
|
+
navButtonNext: c,
|
|
10
|
+
modalContent: s,
|
|
11
|
+
modalBody: i,
|
|
12
|
+
videoContainer: l,
|
|
13
|
+
imageContainer: u
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
n as carouselRoot,
|
|
17
|
+
a as carouselSlide,
|
|
18
|
+
e as carouselViewport,
|
|
19
|
+
o as container,
|
|
20
|
+
d as default,
|
|
21
|
+
u as imageContainer,
|
|
22
|
+
i as modalBody,
|
|
23
|
+
s as modalContent,
|
|
24
|
+
_ as navButton,
|
|
25
|
+
c as navButtonNext,
|
|
26
|
+
r as navButtonPrev,
|
|
27
|
+
t as root,
|
|
28
|
+
l as videoContainer
|
|
29
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as w } from "react";
|
|
3
|
+
import { createPortal as x } from "react-dom";
|
|
4
|
+
import { useTranslation as C } from "react-i18next";
|
|
5
|
+
import { Drawer as v, Group as c, Text as d, Button as y, ActionIcon as b } from "@mantine/core";
|
|
6
|
+
import { IconX as k } from "@tabler/icons-react";
|
|
7
|
+
const p = ({ onClose: e, onSave: r }) => {
|
|
8
|
+
const { t } = C("ui");
|
|
9
|
+
return /* @__PURE__ */ l(
|
|
10
|
+
c,
|
|
11
|
+
{
|
|
12
|
+
justify: "space-between",
|
|
13
|
+
gap: "xs",
|
|
14
|
+
w: "100%",
|
|
15
|
+
style: {
|
|
16
|
+
position: "fixed",
|
|
17
|
+
top: 0,
|
|
18
|
+
left: 0,
|
|
19
|
+
zIndex: 9999,
|
|
20
|
+
background: "transparent",
|
|
21
|
+
height: 40
|
|
22
|
+
},
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o(d, {}),
|
|
25
|
+
/* @__PURE__ */ l(c, { gap: 5, mr: 10, children: [
|
|
26
|
+
r && /* @__PURE__ */ o(
|
|
27
|
+
y,
|
|
28
|
+
{
|
|
29
|
+
mr: 2,
|
|
30
|
+
size: "xs",
|
|
31
|
+
variant: "subtle",
|
|
32
|
+
color: "white",
|
|
33
|
+
onClick: r,
|
|
34
|
+
children: /* @__PURE__ */ o(d, { size: "sm", children: t("customDrawer.save") })
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
e && /* @__PURE__ */ o(
|
|
38
|
+
b,
|
|
39
|
+
{
|
|
40
|
+
onClick: e,
|
|
41
|
+
variant: "subtle",
|
|
42
|
+
color: "white",
|
|
43
|
+
"aria-label": "Close",
|
|
44
|
+
children: /* @__PURE__ */ o(k, { stroke: 2 })
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
] })
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}, I = (e) => {
|
|
52
|
+
const { children: r, lockScroll: t = !0, opened: i } = e, n = "drawerHeader" in e, s = n ? (({ drawerHeader: f, ...a }) => a)(e) : (({ onClose: f, onSave: a, ...h }) => h)(e), m = n ? e.drawerHeader : /* @__PURE__ */ o(p, { onClose: e.onClose, onSave: e.onSave }), u = n ? () => {
|
|
53
|
+
} : e.onClose;
|
|
54
|
+
return w(() => {
|
|
55
|
+
t && (t && i ? document.documentElement.style.overflow = "hidden" : document.documentElement.style.overflow = "auto");
|
|
56
|
+
}, [i, t]), /* @__PURE__ */ o(
|
|
57
|
+
v,
|
|
58
|
+
{
|
|
59
|
+
...s,
|
|
60
|
+
onClose: u,
|
|
61
|
+
title: e.opened && x(m, document.body),
|
|
62
|
+
position: "bottom",
|
|
63
|
+
radius: "md",
|
|
64
|
+
size: "calc(100vh - 40px)",
|
|
65
|
+
styles: { header: { display: "none" }, ...s.styles },
|
|
66
|
+
transitionProps: {
|
|
67
|
+
duration: 500
|
|
68
|
+
},
|
|
69
|
+
children: r
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
I as BottomDrawerWithoutHeader
|
|
75
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsxs as i, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Box as m } from "@mantine/core";
|
|
3
|
+
import { useIsDarkTheme as a } from "../../helpers/themeUtils.js";
|
|
4
|
+
import { Logotype as t } from "../Logotype.js";
|
|
5
|
+
import r from "./BouncingLogo.module.css.js";
|
|
6
|
+
const d = ({ c: s }) => {
|
|
7
|
+
const e = a();
|
|
8
|
+
return /* @__PURE__ */ i(m, { className: r.wrapper, children: [
|
|
9
|
+
/* @__PURE__ */ o("div", { className: r.logo, children: /* @__PURE__ */ o(
|
|
10
|
+
t,
|
|
11
|
+
{
|
|
12
|
+
isLink: !1,
|
|
13
|
+
c: s || (e ? "white" : "black"),
|
|
14
|
+
minified: !0
|
|
15
|
+
}
|
|
16
|
+
) }),
|
|
17
|
+
/* @__PURE__ */ o("div", { className: r.shadow })
|
|
18
|
+
] });
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
d as BouncingLogo
|
|
22
|
+
};
|