@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,44 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Menu as t, Stack as l, Flex as h, Text as i, Divider as a } from "@mantine/core";
|
|
3
|
+
import { UserAvatar as d } from "../../../../UserAvatar/index.js";
|
|
4
|
+
const f = ({
|
|
5
|
+
position: o = "bottom-end",
|
|
6
|
+
children: m,
|
|
7
|
+
user: r,
|
|
8
|
+
menuItems: c
|
|
9
|
+
}) => /* @__PURE__ */ n(t, { keepMounted: !0, position: o, children: [
|
|
10
|
+
/* @__PURE__ */ e(t.Target, { children: m ?? /* @__PURE__ */ e(
|
|
11
|
+
d,
|
|
12
|
+
{
|
|
13
|
+
user: r,
|
|
14
|
+
size: 36,
|
|
15
|
+
style: {
|
|
16
|
+
cursor: "pointer"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
) }),
|
|
20
|
+
/* @__PURE__ */ e(t.Dropdown, { w: 264, children: /* @__PURE__ */ n(l, { gap: 2, children: [
|
|
21
|
+
/* @__PURE__ */ n(h, { h: 49, px: "sm", gap: 10, mb: 5, py: 6, children: [
|
|
22
|
+
/* @__PURE__ */ e(d, { user: r, size: 36 }),
|
|
23
|
+
/* @__PURE__ */ n("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
24
|
+
/* @__PURE__ */ e(
|
|
25
|
+
i,
|
|
26
|
+
{
|
|
27
|
+
c: "var(--mantine-color-bright)",
|
|
28
|
+
lh: "sm",
|
|
29
|
+
fz: "sm",
|
|
30
|
+
fw: 700,
|
|
31
|
+
truncate: "end",
|
|
32
|
+
children: r.name
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ e(i, { lh: "140%", fz: "xs", c: "dimmed", truncate: "end", children: r.email })
|
|
36
|
+
] })
|
|
37
|
+
] }),
|
|
38
|
+
/* @__PURE__ */ e(a, {}),
|
|
39
|
+
c
|
|
40
|
+
] }) })
|
|
41
|
+
] });
|
|
42
|
+
export {
|
|
43
|
+
f as MenuUserDropdown
|
|
44
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AppContainerActionsStore, AppContainerDataStore } from '../types';
|
|
2
|
-
export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, whatsNewItems, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
2
|
+
export declare const useAppContainer: ({ user, workspaceMenu, tools, userMenuItems, notifications, isAnonym, readNotificationsFunc, publicMode, showMessenger, showNewMessage, version, updatedAt, privacyPolicyLink, userAgreementLink, whatsNewItems, }: AppContainerDataStore & AppContainerActionsStore) => void;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { useLayoutEffect as z } from "react";
|
|
2
|
+
import { useAppContainerActionsStore as B } from "./useAppContainerActionsStore.js";
|
|
3
|
+
import { useAppContainerDataStore as G } from "./useAppContainerDataStore.js";
|
|
4
|
+
const O = ({
|
|
5
|
+
user: t,
|
|
6
|
+
workspaceMenu: p,
|
|
7
|
+
tools: S,
|
|
8
|
+
userMenuItems: f,
|
|
9
|
+
notifications: r,
|
|
10
|
+
isAnonym: C,
|
|
11
|
+
readNotificationsFunc: m,
|
|
12
|
+
publicMode: o,
|
|
13
|
+
showMessenger: x,
|
|
14
|
+
showNewMessage: A,
|
|
15
|
+
version: D,
|
|
16
|
+
updatedAt: E,
|
|
17
|
+
privacyPolicyLink: a,
|
|
18
|
+
userAgreementLink: j,
|
|
19
|
+
whatsNewItems: q
|
|
20
|
+
}) => {
|
|
21
|
+
z(() => {
|
|
22
|
+
G.setState({
|
|
23
|
+
user: t,
|
|
24
|
+
workspaceMenu: p,
|
|
25
|
+
tools: S,
|
|
26
|
+
userMenuItems: f,
|
|
27
|
+
notifications: r,
|
|
28
|
+
isAnonym: C,
|
|
29
|
+
publicMode: o,
|
|
30
|
+
showMessenger: x,
|
|
31
|
+
showNewMessage: A,
|
|
32
|
+
version: D,
|
|
33
|
+
updatedAt: E,
|
|
34
|
+
privacyPolicyLink: a,
|
|
35
|
+
userAgreementLink: j,
|
|
36
|
+
whatsNewItems: q
|
|
37
|
+
}), B.setState({
|
|
38
|
+
readNotificationsFunc: m
|
|
39
|
+
});
|
|
40
|
+
}, [
|
|
41
|
+
C,
|
|
42
|
+
r,
|
|
43
|
+
o,
|
|
44
|
+
m,
|
|
45
|
+
x,
|
|
46
|
+
A,
|
|
47
|
+
S,
|
|
48
|
+
t,
|
|
49
|
+
f,
|
|
50
|
+
p,
|
|
51
|
+
D,
|
|
52
|
+
E,
|
|
53
|
+
a,
|
|
54
|
+
j,
|
|
55
|
+
q
|
|
56
|
+
]);
|
|
57
|
+
};
|
|
58
|
+
export {
|
|
59
|
+
O as useAppContainer
|
|
60
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { create as e } from "zustand";
|
|
2
|
+
const a = e(() => ({
|
|
3
|
+
tools: [],
|
|
4
|
+
user: {
|
|
5
|
+
avatar: "",
|
|
6
|
+
email: "",
|
|
7
|
+
id: "",
|
|
8
|
+
name: "",
|
|
9
|
+
mode: "SAAS",
|
|
10
|
+
role: ""
|
|
11
|
+
},
|
|
12
|
+
version: "",
|
|
13
|
+
updatedAt: "",
|
|
14
|
+
privacyPolicyLink: "",
|
|
15
|
+
userAgreementLink: "",
|
|
16
|
+
userMenuItems: null,
|
|
17
|
+
workspaceMenu: {
|
|
18
|
+
items: [],
|
|
19
|
+
active: {
|
|
20
|
+
workspaceId: "",
|
|
21
|
+
workspaceName: "",
|
|
22
|
+
workspaceIcon: "",
|
|
23
|
+
plan: "FREE"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
whatsNewItems: [],
|
|
27
|
+
notifications: [],
|
|
28
|
+
isAnonym: !1,
|
|
29
|
+
publicMode: !1,
|
|
30
|
+
showMessenger: () => {
|
|
31
|
+
},
|
|
32
|
+
showNewMessage: () => {
|
|
33
|
+
}
|
|
34
|
+
}));
|
|
35
|
+
export {
|
|
36
|
+
a as useAppContainerDataStore
|
|
37
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StoreApi, UseBoundStore } from 'zustand';
|
|
2
|
-
import { AppContainerStore } from '../types';
|
|
2
|
+
import { AppContainerLayout, AppContainerStore } from '../types';
|
|
3
3
|
export declare const appContainerStore: {
|
|
4
4
|
useStore: UseBoundStore<Omit<StoreApi<AppContainerStore>, "setState" | "persist"> & {
|
|
5
5
|
setState(partial: AppContainerStore | Partial<AppContainerStore> | ((state: AppContainerStore) => AppContainerStore | Partial<AppContainerStore>), replace?: false | undefined): unknown;
|
|
@@ -25,8 +25,7 @@ export declare const appContainerStore: {
|
|
|
25
25
|
setToolbarWidth: (width: number) => void;
|
|
26
26
|
setRightbarWidth: (width: number) => void;
|
|
27
27
|
toggleToolVisibility: (id: string) => void;
|
|
28
|
-
|
|
29
|
-
setWithoutHeader: (flag: boolean) => void;
|
|
28
|
+
setLayout: (layout: AppContainerLayout) => void;
|
|
30
29
|
setTheme: (theme: string) => void;
|
|
31
30
|
};
|
|
32
31
|
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { create as s } from "zustand";
|
|
2
|
+
import { persist as r, createJSONStorage as i } from "zustand/middleware";
|
|
3
|
+
const l = () => {
|
|
4
|
+
const o = s(
|
|
5
|
+
r(
|
|
6
|
+
() => ({
|
|
7
|
+
layout: "default",
|
|
8
|
+
showToolbar: !0,
|
|
9
|
+
theme: "indigo",
|
|
10
|
+
tools: [],
|
|
11
|
+
hiddenTools: [],
|
|
12
|
+
toolbarWidth: 280,
|
|
13
|
+
isTourPassed: !1,
|
|
14
|
+
showRightbar: !1,
|
|
15
|
+
rightbarWidth: 200
|
|
16
|
+
}),
|
|
17
|
+
{
|
|
18
|
+
name: "app-menu",
|
|
19
|
+
storage: i(() => localStorage)
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
);
|
|
23
|
+
return {
|
|
24
|
+
useStore: o,
|
|
25
|
+
api: h(o)
|
|
26
|
+
};
|
|
27
|
+
}, h = (o) => ({
|
|
28
|
+
toggleToolbar: () => {
|
|
29
|
+
o.setState((t) => ({ ...t, showToolbar: !t.showToolbar }));
|
|
30
|
+
},
|
|
31
|
+
closeToolbar: () => o.setState({ showToolbar: !1 }),
|
|
32
|
+
openToolbar: () => o.setState({ showToolbar: !0 }),
|
|
33
|
+
toggleRightbar: () => {
|
|
34
|
+
o.setState((t) => ({ ...t, showRightbar: !t.showRightbar }));
|
|
35
|
+
},
|
|
36
|
+
closeRightbar: () => o.setState({ showRightbar: !1 }),
|
|
37
|
+
openRightbar: () => o.setState({ showRightbar: !0 }),
|
|
38
|
+
toggleTourPassed: (t) => {
|
|
39
|
+
o.setState({ isTourPassed: t });
|
|
40
|
+
},
|
|
41
|
+
setToolbarWidth: (t) => {
|
|
42
|
+
o.setState({ toolbarWidth: t });
|
|
43
|
+
},
|
|
44
|
+
setRightbarWidth: (t) => {
|
|
45
|
+
o.setState({ rightbarWidth: t });
|
|
46
|
+
},
|
|
47
|
+
toggleToolVisibility: (t) => {
|
|
48
|
+
o.setState((e) => ({
|
|
49
|
+
...e,
|
|
50
|
+
hiddenTools: e.hiddenTools.includes(t) ? e.hiddenTools.filter((a) => a !== t) : [...e.hiddenTools, t]
|
|
51
|
+
}));
|
|
52
|
+
},
|
|
53
|
+
setLayout: (t) => {
|
|
54
|
+
o.setState({ layout: t });
|
|
55
|
+
},
|
|
56
|
+
setTheme: (t) => {
|
|
57
|
+
o.setState({ theme: t });
|
|
58
|
+
}
|
|
59
|
+
}), y = l();
|
|
60
|
+
export {
|
|
61
|
+
y as appContainerStore
|
|
62
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useEffect as o } from "react";
|
|
2
|
+
import { appContainerStore as e } from "./useAppContainerStore.js";
|
|
3
|
+
const p = (t = "default") => {
|
|
4
|
+
o(() => (e.api.setLayout(t), () => {
|
|
5
|
+
e.api.setLayout("default");
|
|
6
|
+
}), [t]);
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
p as useSetAppContainerLayout
|
|
10
|
+
};
|
|
@@ -5,17 +5,20 @@ import { MenuUser, UserNotifications } from './components/menus/UserMenu/MenuUse
|
|
|
5
5
|
export type ToolDef = {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
|
-
icon:
|
|
8
|
+
icon: (props?: {
|
|
9
|
+
size?: number;
|
|
10
|
+
}) => ReactNode;
|
|
9
11
|
path: string;
|
|
10
12
|
onClick?: () => void;
|
|
11
13
|
withBackButton?: boolean;
|
|
12
14
|
entityName?: string;
|
|
13
15
|
};
|
|
14
16
|
export type AppContainerProps = {
|
|
17
|
+
showAppsSidebar?: boolean;
|
|
15
18
|
content?: ReactNode;
|
|
16
19
|
toolbar?: ReactNode;
|
|
17
20
|
rightbar?: ReactNode;
|
|
18
|
-
header
|
|
21
|
+
header: ReactNode;
|
|
19
22
|
navbarTitle?: string;
|
|
20
23
|
displayType?: 'ROUNDED' | 'BOXED';
|
|
21
24
|
footer?: ReactNode;
|
|
@@ -38,6 +41,7 @@ export type AppContainerDataStore = {
|
|
|
38
41
|
version: string;
|
|
39
42
|
updatedAt: string;
|
|
40
43
|
privacyPolicyLink: string;
|
|
44
|
+
userAgreementLink: string;
|
|
41
45
|
whatsNewItems: WhatsNewProps['items'];
|
|
42
46
|
};
|
|
43
47
|
type ReadNotificationsRequest = {
|
|
@@ -48,13 +52,13 @@ type ReadNotificationsRequest = {
|
|
|
48
52
|
export type AppContainerActionsStore = {
|
|
49
53
|
readNotificationsFunc: (data: ReadNotificationsRequest) => void;
|
|
50
54
|
};
|
|
55
|
+
export type AppContainerLayout = 'header-only' | 'nothing' | 'default';
|
|
51
56
|
export type AppContainerStore = {
|
|
52
57
|
toolbarWidth: number;
|
|
53
58
|
showToolbar: boolean;
|
|
54
59
|
theme: string;
|
|
55
60
|
hiddenTools: string[];
|
|
56
|
-
|
|
57
|
-
withoutHeader: boolean;
|
|
61
|
+
layout: AppContainerLayout;
|
|
58
62
|
isTourPassed: boolean;
|
|
59
63
|
showRightbar: boolean;
|
|
60
64
|
rightbarWidth: number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Box as r } from "@mantine/core";
|
|
3
|
+
import o from "./AppShell.module.css.js";
|
|
4
|
+
const s = ({ children: e, ...t }) => /* @__PURE__ */ n(r, { className: o.section, ...t, children: e }), a = ({ children: e, ...t }) => /* @__PURE__ */ n(r, { className: o.content, ...t, children: e }), c = ({ children: e, ...t }) => /* @__PURE__ */ n(r, { component: "header", className: o.header, ...t, children: e }), m = ({ children: e, ...t }) => /* @__PURE__ */ n(r, { className: o.leftSidebar, ...t, children: e }), i = ({
|
|
5
|
+
children: e,
|
|
6
|
+
...t
|
|
7
|
+
}) => /* @__PURE__ */ n(r, { className: o.root, ...t, children: e }), l = ({ children: e, ...t }) => /* @__PURE__ */ n(r, { className: o.rightSidebar, ...t, children: e }), p = ({ children: e, ...t }) => /* @__PURE__ */ n(r, { component: "main", className: o.main, ...t, children: e }), u = ({ children: e, ...t }) => /* @__PURE__ */ n(r, { className: o.workContent, ...t, children: e }), b = Object.assign(i, {
|
|
8
|
+
Section: s,
|
|
9
|
+
LeftSidebar: m,
|
|
10
|
+
RightSidebar: l,
|
|
11
|
+
Content: a,
|
|
12
|
+
Header: c,
|
|
13
|
+
Main: p,
|
|
14
|
+
WorkContent: u
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
b as AppShell
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const e = "_root_9zlef_1", t = "_header_9zlef_9", o = "_section_9zlef_20", _ = "_leftSidebar_9zlef_28", n = "_rightSidebar_9zlef_36", r = "_main_9zlef_44", i = "_workContent_9zlef_52", a = {
|
|
2
|
+
root: e,
|
|
3
|
+
header: t,
|
|
4
|
+
section: o,
|
|
5
|
+
leftSidebar: _,
|
|
6
|
+
rightSidebar: n,
|
|
7
|
+
main: r,
|
|
8
|
+
workContent: i
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
a as default,
|
|
12
|
+
t as header,
|
|
13
|
+
_ as leftSidebar,
|
|
14
|
+
r as main,
|
|
15
|
+
n as rightSidebar,
|
|
16
|
+
e as root,
|
|
17
|
+
o as section,
|
|
18
|
+
i as workContent
|
|
19
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactZoomPanPinchContentRef } from 'react-zoom-pan-pinch';
|
|
2
3
|
import { EmblaCarouselType } from 'embla-carousel';
|
|
3
4
|
interface AttachmentsGalleryContextValue {
|
|
4
5
|
embla: EmblaCarouselType | null;
|
|
@@ -11,12 +12,13 @@ interface AttachmentsGalleryContextValue {
|
|
|
11
12
|
setSelectedIndex: (value: number) => void;
|
|
12
13
|
zoomPercentage: number;
|
|
13
14
|
setZoomPercentage: (value: number) => void;
|
|
14
|
-
transformRefs: React.MutableRefObject<
|
|
15
|
+
transformRefs: React.MutableRefObject<ReactZoomPanPinchContentRef[]>;
|
|
15
16
|
prevIndexRef: React.MutableRefObject<number>;
|
|
16
17
|
}
|
|
17
18
|
export declare const useAttachmentsGalleryContext: () => AttachmentsGalleryContextValue;
|
|
18
19
|
interface AttachmentsGalleryProviderProps {
|
|
19
20
|
children: ReactNode;
|
|
21
|
+
initialIndex: number;
|
|
20
22
|
}
|
|
21
|
-
export declare const AttachmentsGalleryProvider: ({ children, }: AttachmentsGalleryProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare const AttachmentsGalleryProvider: ({ children, initialIndex, }: AttachmentsGalleryProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { useState as e, useRef as n, createContext as P, useContext as S } from "react";
|
|
3
|
+
const o = P(null), G = () => {
|
|
4
|
+
const t = S(o);
|
|
5
|
+
if (!t)
|
|
6
|
+
throw new Error(
|
|
7
|
+
"useAttachmentsGalleryContext must be used within AttachmentsGalleryProvider"
|
|
8
|
+
);
|
|
9
|
+
return t;
|
|
10
|
+
}, p = ({
|
|
11
|
+
children: t,
|
|
12
|
+
initialIndex: r
|
|
13
|
+
}) => {
|
|
14
|
+
const [s, l] = e(null), [c, a] = e(!1), [m, x] = e(!1), [u, d] = e(r ?? 0), [f, i] = e(100), h = n([]), v = n(0);
|
|
15
|
+
return /* @__PURE__ */ C(
|
|
16
|
+
o.Provider,
|
|
17
|
+
{
|
|
18
|
+
value: {
|
|
19
|
+
embla: s,
|
|
20
|
+
setEmbla: l,
|
|
21
|
+
canScrollPrev: c,
|
|
22
|
+
setCanScrollPrev: a,
|
|
23
|
+
canScrollNext: m,
|
|
24
|
+
setCanScrollNext: x,
|
|
25
|
+
selectedIndex: u,
|
|
26
|
+
setSelectedIndex: d,
|
|
27
|
+
zoomPercentage: f,
|
|
28
|
+
setZoomPercentage: i,
|
|
29
|
+
transformRefs: h,
|
|
30
|
+
prevIndexRef: v
|
|
31
|
+
},
|
|
32
|
+
children: t
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
p as AttachmentsGalleryProvider,
|
|
38
|
+
G as useAttachmentsGalleryContext
|
|
39
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { jsx as e, jsxs as p } from "react/jsx-runtime";
|
|
2
|
+
import { memo as w } from "react";
|
|
3
|
+
import { Carousel as h } from "@mantine/carousel";
|
|
4
|
+
import { Modal as B, Box as a, ActionIcon as v } from "@mantine/core";
|
|
5
|
+
import { useHotkeys as I } from "@mantine/hooks";
|
|
6
|
+
import { IconChevronLeft as M, IconChevronRight as P } from "@tabler/icons-react";
|
|
7
|
+
import b from "clsx";
|
|
8
|
+
import { AttachmentsGalleryProvider as G, useAttachmentsGalleryContext as R } from "./AttachmentsGalleryContext.js";
|
|
9
|
+
import { GallerySlide as k } from "./components/GallerySlide.js";
|
|
10
|
+
import { ModalFooter as E } from "./components/ModalFooter.js";
|
|
11
|
+
import { ModalHeader as F } from "./components/ModalHeader.js";
|
|
12
|
+
import { MODAL_TRANSITION as L } from "./constants.js";
|
|
13
|
+
import { useEmblaCarousel as T } from "./hooks/useEmblaCarousel.js";
|
|
14
|
+
import o from "./styles.module.css.js";
|
|
15
|
+
const j = ({
|
|
16
|
+
onClose: t,
|
|
17
|
+
initialIndex: l = 0,
|
|
18
|
+
attachments: r = []
|
|
19
|
+
}) => {
|
|
20
|
+
const { setEmbla: s, selectedIndex: n, setZoomPercentage: g, transformRefs: C } = R(), {
|
|
21
|
+
scrollPrev: c,
|
|
22
|
+
scrollNext: m,
|
|
23
|
+
canScrollPrev: N,
|
|
24
|
+
canScrollNext: S,
|
|
25
|
+
visibleSlides: y
|
|
26
|
+
} = T();
|
|
27
|
+
I([
|
|
28
|
+
["arrowLeft", c],
|
|
29
|
+
["arrowRight", m]
|
|
30
|
+
]);
|
|
31
|
+
const d = r?.length <= 1;
|
|
32
|
+
return /* @__PURE__ */ p(a, { autoFocus: !0, className: o.root, children: [
|
|
33
|
+
/* @__PURE__ */ e(F, { attachments: r, onClose: t }),
|
|
34
|
+
/* @__PURE__ */ p("div", { className: o.container, children: [
|
|
35
|
+
/* @__PURE__ */ e(
|
|
36
|
+
h,
|
|
37
|
+
{
|
|
38
|
+
draggable: !1,
|
|
39
|
+
getEmblaApi: s,
|
|
40
|
+
withIndicators: !1,
|
|
41
|
+
withControls: !1,
|
|
42
|
+
initialSlide: l ?? 0,
|
|
43
|
+
height: "100%",
|
|
44
|
+
classNames: {
|
|
45
|
+
root: o.carouselRoot,
|
|
46
|
+
viewport: o.carouselViewport,
|
|
47
|
+
slide: o.carouselSlide
|
|
48
|
+
},
|
|
49
|
+
children: r.map((f, i) => {
|
|
50
|
+
const A = y.includes(i);
|
|
51
|
+
return /* @__PURE__ */ e(h.Slide, { children: A ? /* @__PURE__ */ e(
|
|
52
|
+
k,
|
|
53
|
+
{
|
|
54
|
+
isActive: i === n,
|
|
55
|
+
ref: (u) => {
|
|
56
|
+
C.current[i] = u;
|
|
57
|
+
},
|
|
58
|
+
attachment: f,
|
|
59
|
+
onTransformed: (u, x) => {
|
|
60
|
+
i === n && g(
|
|
61
|
+
Number((x.scale * 100).toFixed(0))
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
) : /* @__PURE__ */ e(a, {}) }, f?.id);
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
!d && /* @__PURE__ */ e(a, { className: b(o.navButton, o.navButtonPrev), children: /* @__PURE__ */ e(
|
|
70
|
+
v,
|
|
71
|
+
{
|
|
72
|
+
variant: "subtle",
|
|
73
|
+
bg: "transparent",
|
|
74
|
+
size: 44,
|
|
75
|
+
onClick: c,
|
|
76
|
+
disabled: !N,
|
|
77
|
+
color: "var(--app-container-item-bg-hover)",
|
|
78
|
+
children: /* @__PURE__ */ e(M, {})
|
|
79
|
+
}
|
|
80
|
+
) }),
|
|
81
|
+
!d && /* @__PURE__ */ e(a, { className: b(o.navButton, o.navButtonNext), children: /* @__PURE__ */ e(
|
|
82
|
+
v,
|
|
83
|
+
{
|
|
84
|
+
variant: "subtle",
|
|
85
|
+
disabled: !S,
|
|
86
|
+
bg: "transparent",
|
|
87
|
+
color: "var(--app-container-item-bg-hover)",
|
|
88
|
+
size: 44,
|
|
89
|
+
onClick: m,
|
|
90
|
+
children: /* @__PURE__ */ e(P, {})
|
|
91
|
+
}
|
|
92
|
+
) })
|
|
93
|
+
] }),
|
|
94
|
+
/* @__PURE__ */ e(E, { attachments: r })
|
|
95
|
+
] });
|
|
96
|
+
}, Y = w(
|
|
97
|
+
({
|
|
98
|
+
opened: t,
|
|
99
|
+
onOpenChange: l,
|
|
100
|
+
attachments: r,
|
|
101
|
+
initialIndex: s
|
|
102
|
+
}) => /* @__PURE__ */ e(
|
|
103
|
+
B,
|
|
104
|
+
{
|
|
105
|
+
transitionProps: L,
|
|
106
|
+
classNames: {
|
|
107
|
+
content: o.modalContent,
|
|
108
|
+
body: o.modalBody
|
|
109
|
+
},
|
|
110
|
+
withCloseButton: !1,
|
|
111
|
+
opened: t,
|
|
112
|
+
onClose: () => l?.(!1),
|
|
113
|
+
fullScreen: !0,
|
|
114
|
+
children: t && /* @__PURE__ */ e(G, { initialIndex: s ?? 0, children: /* @__PURE__ */ e(
|
|
115
|
+
j,
|
|
116
|
+
{
|
|
117
|
+
attachments: r,
|
|
118
|
+
initialIndex: s,
|
|
119
|
+
onClose: () => l?.(!1)
|
|
120
|
+
}
|
|
121
|
+
) })
|
|
122
|
+
}
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
export {
|
|
126
|
+
Y as AttachmentsGalleryModal
|
|
127
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as o } from "react-i18next";
|
|
3
|
+
import { Flex as i, Text as l } from "@mantine/core";
|
|
4
|
+
import { IconAlertCircle as n } from "@tabler/icons-react";
|
|
5
|
+
const s = () => {
|
|
6
|
+
const { t } = o("ui");
|
|
7
|
+
return /* @__PURE__ */ e(i, { align: "center", justify: "center", direction: "column", children: [
|
|
8
|
+
/* @__PURE__ */ r(n, { size: 36, color: "var(--app-gallary-text)" }),
|
|
9
|
+
/* @__PURE__ */ r(l, { c: "var(--app-gallary-text)", children: t("gallery.fileError") })
|
|
10
|
+
] });
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
s as ErrorSection
|
|
14
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { jsx as r, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u, forwardRef as g } from "react";
|
|
3
|
+
import { TransformWrapper as h, TransformComponent as C } from "react-zoom-pan-pinch";
|
|
4
|
+
import { ShakaVideoPlayer as N } from "./ShakePlayer/ShakaPlayer.js";
|
|
5
|
+
import { Box as O } from "@mantine/core";
|
|
6
|
+
import { BaseLoader as P } from "../../Loaders/BaseLoader.js";
|
|
7
|
+
import { ZOOM_CONFIG as o, TRANSFORM_COMPONENT_STYLES as t } from "../constants.js";
|
|
8
|
+
import { useGetPreviewUrl as b } from "../hooks/useGetPreviewUrl.js";
|
|
9
|
+
import { usePanning as w } from "../hooks/usePanning.js";
|
|
10
|
+
import { ErrorSection as y } from "./ErrorSection.js";
|
|
11
|
+
import m from "../styles.module.css.js";
|
|
12
|
+
const k = u(
|
|
13
|
+
g(
|
|
14
|
+
({ onTransformed: n, attachment: e, isActive: s }, d) => {
|
|
15
|
+
const { isError: p, setIsError: c, fileUrl: f, isFetching: i, isVideo: l } = b(e), S = w({ isFetching: i, isVideo: l });
|
|
16
|
+
return /* @__PURE__ */ r(
|
|
17
|
+
h,
|
|
18
|
+
{
|
|
19
|
+
panning: {
|
|
20
|
+
disabled: !0
|
|
21
|
+
},
|
|
22
|
+
onTransformed: n,
|
|
23
|
+
initialScale: o.initialScale,
|
|
24
|
+
minScale: o.minScale,
|
|
25
|
+
maxScale: o.maxScale,
|
|
26
|
+
limitToBounds: !0,
|
|
27
|
+
disabled: i || l,
|
|
28
|
+
disablePadding: !0,
|
|
29
|
+
centerZoomedOut: !0,
|
|
30
|
+
ref: d,
|
|
31
|
+
wheel: {
|
|
32
|
+
disabled: !1,
|
|
33
|
+
step: o.wheelStep
|
|
34
|
+
},
|
|
35
|
+
doubleClick: {
|
|
36
|
+
disabled: !0
|
|
37
|
+
},
|
|
38
|
+
children: /* @__PURE__ */ r(
|
|
39
|
+
C,
|
|
40
|
+
{
|
|
41
|
+
wrapperStyle: t,
|
|
42
|
+
contentStyle: t,
|
|
43
|
+
wrapperProps: S,
|
|
44
|
+
children: i ? /* @__PURE__ */ r(P, {}) : /* @__PURE__ */ r(a, { children: l ? /* @__PURE__ */ r(O, { className: m.videoContainer, children: /* @__PURE__ */ r(
|
|
45
|
+
N,
|
|
46
|
+
{
|
|
47
|
+
isActive: s,
|
|
48
|
+
autoPlay: !1,
|
|
49
|
+
attachmentId: e.id
|
|
50
|
+
}
|
|
51
|
+
) }) : /* @__PURE__ */ r(a, { children: p ? /* @__PURE__ */ r(y, {}) : /* @__PURE__ */ r(
|
|
52
|
+
"img",
|
|
53
|
+
{
|
|
54
|
+
onError: () => c(!0),
|
|
55
|
+
alt: e.originalFileName || "file",
|
|
56
|
+
className: m.imageContainer,
|
|
57
|
+
src: e?.Url ?? f ?? ""
|
|
58
|
+
}
|
|
59
|
+
) }) })
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
);
|
|
67
|
+
export {
|
|
68
|
+
k as GallerySlide
|
|
69
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useMenu as l } from "../../../hooks/useMenu.js";
|
|
3
|
+
import { Flex as i, Text as s } from "@mantine/core";
|
|
4
|
+
import { useAttachmentsGalleryContext as a } from "../AttachmentsGalleryContext.js";
|
|
5
|
+
const f = ({
|
|
6
|
+
attachments: t
|
|
7
|
+
}) => {
|
|
8
|
+
const { selectedIndex: r } = a(), o = t?.[r], { isMobile: n } = l();
|
|
9
|
+
return n ? /* @__PURE__ */ e(i, { justify: "center", style: { flex: "none" }, children: /* @__PURE__ */ e(s, { py: 8, size: "xs", c: "var(--app-gallary-text)", children: o?.originalFileName }) }) : null;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
f as ModalFooter
|
|
13
|
+
};
|