@layers-app/shared 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/jsons/emoji-categorized-windows.json.js +4 -0
- package/dist/assets/jsons/emoji-categorized-windows10.json.js +4 -0
- package/dist/assets/svg/flags/es.svg.js +4 -0
- package/dist/assets/svg/flags/ru.svg.js +4 -0
- package/dist/assets/svg/flags/us.svg.js +4 -0
- package/dist/assets/svg/globeIcon.svg.js +5 -0
- package/dist/assets/svg/socials/github.svg.js +5 -0
- package/dist/assets/svg/socials/instagram.svg.js +5 -0
- package/dist/assets/svg/socials/x.svg.js +5 -0
- package/dist/assets/svg/socials/youtube.svg.js +5 -0
- package/dist/assets/svg/users.svg.js +5 -0
- package/dist/assets/svg/whatsapp-icon.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts +3 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +63 -54
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +48 -45
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +5 -5
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +57 -44
- package/dist/components/AppContainer/components/Main.d.ts +5 -1
- package/dist/components/AppContainer/components/Main.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Main.js +11 -8
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +34 -19
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/components/menus/MoreMenu.js +8 -8
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +45 -42
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +1 -0
- package/dist/components/AppContainer/types.d.ts +2 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
- package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +66 -59
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +6 -6
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +14 -14
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +37 -38
- package/dist/components/EmojiPicker/utils.d.ts +11 -0
- package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
- package/dist/components/EmojiPicker/utils.js +46 -0
- package/dist/components/EntityIcon.d.ts +5 -2
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +44 -46
- package/dist/components/FilePicker/FilePicker.d.ts +33 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +155 -105
- package/dist/components/FilePicker/FilePicker.module.css.js +9 -7
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts +22 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.d.ts.map +1 -0
- package/dist/components/FilePicker/FilePickerGoogleDrive.js +86 -0
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +69 -52
- package/dist/components/FilePicker/types.d.ts +1 -1
- package/dist/components/FilePicker/types.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
- package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
- package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +15 -15
- package/dist/components/FormViewer/hooks/useInterpolateText.js +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts +10 -3
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.js +3 -3
- package/dist/components/FormViewer/store/selectors.js +1 -1
- package/dist/components/GroupAvatar/index.d.ts +1 -0
- package/dist/components/GroupAvatar/index.d.ts.map +1 -1
- package/dist/components/GroupAvatar/index.js +9 -8
- package/dist/components/ImageCropper/ImageCropper.d.ts +19 -0
- package/dist/components/ImageCropper/ImageCropper.d.ts.map +1 -0
- package/dist/components/ImageCropper/ImageCropper.js +356 -0
- package/dist/components/ImageCropper/ImageCropper.module.css.js +51 -0
- package/dist/components/ImageCropper/cropUtils.d.ts +22 -0
- package/dist/components/ImageCropper/cropUtils.d.ts.map +1 -0
- package/dist/components/ImageCropper/cropUtils.js +42 -0
- package/dist/components/ImageCropper/index.d.ts +4 -0
- package/dist/components/ImageCropper/index.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts +28 -0
- package/dist/components/ImageCropper/useCropInteraction.d.ts.map +1 -0
- package/dist/components/ImageCropper/useCropInteraction.js +76 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts +21 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.js +73 -0
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +19 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/GoogleDriveIcon.js +60 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/LayersCubeIcon.js +21 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts +6 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/icons/NotionIcon.js +35 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts +4 -0
- package/dist/components/IntegrationFlowAnimation/icons/index.d.ts.map +1 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts +5 -0
- package/dist/components/IntegrationFlowAnimation/index.d.ts.map +1 -0
- package/dist/components/LanguagePicker/LanguagePicker.d.ts +2 -1
- package/dist/components/LanguagePicker/LanguagePicker.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +26 -22
- package/dist/components/Loaders/styles.module.css.js +1 -1
- package/dist/components/MediaLibrary/MediaLibrary.d.ts +3 -0
- package/dist/components/MediaLibrary/MediaLibrary.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibrary.js +93 -0
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +17 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts +8 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBreadcrumbs.js +22 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts +12 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryBrowser.js +52 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts +9 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.d.ts.map +1 -0
- package/dist/components/MediaLibrary/MediaLibraryRow.js +29 -0
- package/dist/components/MediaLibrary/index.d.ts +4 -0
- package/dist/components/MediaLibrary/index.d.ts.map +1 -0
- package/dist/components/MediaLibrary/types.d.ts +31 -0
- package/dist/components/MediaLibrary/types.d.ts.map +1 -0
- package/dist/components/NavMenu/NavMenu.d.ts +4 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +96 -77
- package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
- package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
- package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDItem.js +32 -30
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDProvider.js +28 -26
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +108 -94
- package/dist/components/NavMenu/store.d.ts +1 -0
- package/dist/components/NavMenu/store.d.ts.map +1 -1
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NoData/NoData.d.ts +38 -27
- package/dist/components/NoData/NoData.d.ts.map +1 -1
- package/dist/components/NoData/NoData.js +82 -79
- package/dist/components/OnBoarding/ProjectBoard.js +17 -17
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
- package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
- package/dist/components/SearchFilters/components/DateFilter.js +19 -19
- package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
- package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
- package/dist/components/SettingsSection/index.d.ts +12 -0
- package/dist/components/SettingsSection/index.d.ts.map +1 -0
- package/dist/components/SettingsSection/index.js +36 -0
- package/dist/components/SettingsSection/styles.module.css.js +7 -0
- package/dist/components/SocialLinkRow/index.d.ts +11 -0
- package/dist/components/SocialLinkRow/index.d.ts.map +1 -0
- package/dist/components/SocialLinkRow/index.js +109 -0
- package/dist/components/SortableList/SortableList.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +4 -12
- package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
- package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
- package/dist/components/StorageUsageProgress/index.d.ts +2 -2
- package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
- package/dist/components/StorageUsageProgress/index.js +76 -41
- package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
- package/dist/components/ThemeIndicator/index.js +4 -4
- package/dist/components/TimezonePicker/index.d.ts +9 -0
- package/dist/components/TimezonePicker/index.d.ts.map +1 -0
- package/dist/components/TimezonePicker/index.js +90 -0
- package/dist/components/UserAvatar/index.js +14 -14
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +18 -17
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +78 -74
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +31 -24
- package/dist/components/table/components/TableHeaders.js +3 -3
- package/dist/components/table/components/TablePanel.js +1 -1
- package/dist/components/table/export.d.ts.map +1 -1
- package/dist/components/table/helpers/columns.js +3 -3
- package/dist/components/table/hooks/TableProvider.js +3 -3
- package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
- package/dist/components/table/hooks/useSaveRowCount.js +4 -4
- package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
- package/dist/components/table/hooks/useSorting.js +3 -1
- package/dist/components/table/selectors.js +6 -6
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -1
- package/dist/helpers/getFileIcons.js +12 -12
- package/dist/helpers/getFileType.d.ts +1 -2
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +5 -6
- package/dist/helpers/isAppMode.d.ts +1 -1
- package/dist/helpers/isAppMode.d.ts.map +1 -1
- package/dist/helpers/showNotifications.d.ts +14 -3
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +152 -61
- package/dist/helpers/showNotifications.module.css.js +29 -0
- package/dist/helpers/timezones.d.ts +12 -0
- package/dist/helpers/timezones.d.ts.map +1 -0
- package/dist/helpers/timezones.js +59 -0
- package/dist/helpers/validateAliasFormat.d.ts +2 -0
- package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
- package/dist/helpers/validateAliasFormat.js +4 -0
- package/dist/hooks/useNumberQueryParam.js +3 -3
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/hooks/useVideoUploadGuard.d.ts +2 -0
- package/dist/hooks/useVideoUploadGuard.d.ts.map +1 -0
- package/dist/hooks/useVideoUploadGuard.js +24 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +388 -346
- package/dist/lang/locales/ui_en.json.js +24 -22
- package/dist/lang/locales/ui_es.json.js +22 -20
- package/dist/lang/locales/ui_ru.json.js +18 -16
- package/dist/lib/contentImport/index.d.ts +4 -0
- package/dist/lib/contentImport/index.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts +19 -0
- package/dist/lib/contentImport/lexicalSerializer.d.ts.map +1 -0
- package/dist/lib/contentImport/lexicalSerializer.js +215 -0
- package/dist/lib/contentImport/types.d.ts +161 -0
- package/dist/lib/contentImport/types.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.d.ts +35 -0
- package/dist/lib/contentImport/utils.d.ts.map +1 -0
- package/dist/lib/contentImport/utils.js +145 -0
- package/dist/node_modules/countries-and-timezones/esm/index.js +4031 -0
- package/dist/store/plansModal.d.ts.map +1 -1
- package/dist/store/plansModal.js +8 -7
- package/dist/store/trashModal.d.ts +8 -0
- package/dist/store/trashModal.d.ts.map +1 -0
- package/dist/store/trashModal.js +13 -0
- package/dist/types/storageCategories.d.ts +4 -0
- package/dist/types/storageCategories.d.ts.map +1 -0
- package/dist/types/storageCategories.js +21 -0
- package/dist/utils/formatStorage.d.ts +8 -2
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +10 -5
- package/dist/utils/getCroppedBlob.d.ts +3 -0
- package/dist/utils/getCroppedBlob.d.ts.map +1 -0
- package/dist/utils/getCroppedBlob.js +21 -0
- package/docs/README.md +17 -4
- package/package.json +1 -1
- package/dist/assets/fileTypes/archives.svg.js +0 -5
- package/dist/assets/fileTypes/audio.svg.js +0 -5
- package/dist/assets/fileTypes/code.svg.js +0 -5
- package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
- package/dist/assets/fileTypes/images.svg.js +0 -5
- package/dist/assets/fileTypes/other.svg.js +0 -5
- package/dist/assets/fileTypes/videos.svg.js +0 -5
- package/dist/assets/images/flags/es.svg.js +0 -4
- package/dist/assets/images/flags/ru.svg.js +0 -4
- package/dist/assets/images/flags/us.svg.js +0 -4
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
- package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
- package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getIconsList.js +0 -32
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
- package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
- package/dist/components/NoData/NoData.module.css.js +0 -7
- package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
- package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
- package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
- package/dist/components/PaymentError/PaymentError.d.ts +0 -2
- package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
- package/dist/components/PaymentError/PaymentError.js +0 -41
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts +0 -2
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +0 -1
- package/dist/components/PaymentSuccess/PaymentSuccess.js +0 -41
- package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
- package/dist/store/accessOptionsControl.d.ts +0 -17
- package/dist/store/accessOptionsControl.d.ts.map +0 -1
- package/dist/store/accessOptionsControl.js +0 -18
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 17 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_8583_5305)" }, /* @__PURE__ */ e.createElement("path", { d: "M9.70067 7.05357L15.7687 0H14.3308L9.0619 6.12452L4.85368 0H0L6.36365 9.26135L0 16.6581H1.43801L7.00205 10.1904L11.4462 16.6581H16.2999L9.70031 7.05357H9.70067ZM7.73112 9.34295L7.08635 8.42073L1.95614 1.08251H4.16483L8.30497 7.00469L8.94974 7.92691L14.3314 15.6248H12.1227L7.73112 9.3433V9.34295Z", fill: "black" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_8583_5305" }, /* @__PURE__ */ e.createElement("rect", { width: 16.2999, height: 16.6667, fill: "white" }))));
|
|
3
|
+
export {
|
|
4
|
+
l as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 17 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { clipPath: "url(#clip0_8583_6844)" }, /* @__PURE__ */ e.createElement("path", { d: "M6.66652 8.33336L10.9853 5.82732L6.66652 3.33346V8.33336ZM1.8248 11.3139C1.10702 11.1192 0.547424 10.5474 0.340624 9.84186C0 8.54016 0 5.82732 0 5.82732C0 5.82732 0 3.11447 0.340624 1.82496C0.547424 1.10723 1.10702 0.547582 1.8248 0.352955C3.11431 0.000158001 8.32102 0.000158001 8.32102 0.000158001C8.32102 0.000158001 13.5399 0.000158001 14.8295 0.352955C15.5594 0.547582 16.1068 1.10723 16.3015 1.82496C16.6542 3.11447 16.6542 5.82732 16.6542 5.82732C16.6542 5.82732 16.6542 8.54016 16.3015 9.84186C16.1068 10.5474 15.5594 11.1192 14.8295 11.3139C13.5399 11.6667 8.32102 11.6667 8.32102 11.6667C8.32102 11.6667 3.11431 11.6667 1.8248 11.3139Z", fill: "#ED1838" }), /* @__PURE__ */ e.createElement("path", { d: "M6.6665 8.33334L10.9852 5.8273L6.6665 3.33344V8.33334Z", fill: "white" })), /* @__PURE__ */ e.createElement("defs", null, /* @__PURE__ */ e.createElement("clipPath", { id: "clip0_8583_6844" }, /* @__PURE__ */ e.createElement("rect", { width: 16.6541, height: 11.6667, fill: "white" }))));
|
|
3
|
+
export {
|
|
4
|
+
l as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const C = (t) => /* @__PURE__ */ e.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 42 42", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M16.333 23.333C25.3537 23.333 32.667 27.5123 32.667 32.667C32.6667 37.8215 25.3535 42 16.333 42C7.3127 41.9999 0.000307563 37.8214 0 32.667C0 27.5124 7.31251 23.3331 16.333 23.333ZM30.0693 23.4092C36.8199 23.9093 41.9998 26.8187 42 30.333C42 32.8476 39.3479 35.0529 35.3662 36.2871C35.887 35.1389 36.166 33.9232 36.166 32.666C36.1658 29.0285 33.8272 25.7444 30.0693 23.4092ZM16.333 0C21.4876 0 25.6668 4.1785 25.667 9.33301C25.667 14.4877 21.4877 18.667 16.333 18.667C11.1785 18.6668 7 14.4876 7 9.33301C7.00018 4.17861 11.1786 0.000175749 16.333 0ZM28.2939 4.67285C32.0234 4.82711 35 7.89959 35 11.667C34.9999 15.5329 31.8659 18.6669 28 18.667C27.1484 18.667 26.3321 18.5148 25.5771 18.2363C27.8 15.9289 29.1669 12.7909 29.167 9.33398C29.167 7.68993 28.8573 6.11753 28.2939 4.67285Z", fill: "var(--mantine-color-gray-text)" }));
|
|
3
|
+
export {
|
|
4
|
+
C as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as C from "react";
|
|
2
|
+
const e = (t) => /* @__PURE__ */ C.createElement("svg", { width: "100%", height: "100%", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ C.createElement("path", { d: "M0 16L1.12466 11.8913C0.430666 10.6887 0.0659999 9.32533 0.0666665 7.92733C0.0686665 3.55667 3.62533 0 7.99532 0C10.116 0.000666667 12.1066 0.826667 13.604 2.32533C15.1006 3.824 15.9246 5.816 15.924 7.93467C15.922 12.306 12.3653 15.8627 7.99532 15.8627C6.66865 15.862 5.36132 15.5293 4.20332 14.8973L0 16ZM4.39799 13.462C5.51532 14.1253 6.58198 14.5227 7.99265 14.5233C11.6246 14.5233 14.5833 11.5673 14.5853 7.93333C14.5866 4.292 11.642 1.34 7.99798 1.33867C4.36332 1.33867 1.40666 4.29467 1.40533 7.928C1.40466 9.41133 1.83933 10.522 2.56933 11.684L1.90333 14.116L4.39799 13.462ZM11.9893 9.81933C11.94 9.73667 11.808 9.68733 11.6093 9.588C11.4113 9.48867 10.4373 9.00933 10.2553 8.94333C10.074 8.87733 9.94198 8.844 9.80931 9.04267C9.67731 9.24067 9.29731 9.68733 9.18198 9.81933C9.06665 9.95133 8.95065 9.968 8.75265 9.86867C8.55465 9.76933 7.91598 9.56067 7.15932 8.88533C6.57065 8.36 6.17265 7.71133 6.05732 7.51267C5.94199 7.31467 6.04532 7.20733 6.14399 7.10867C6.23332 7.02 6.34199 6.87733 6.44132 6.76133C6.54199 6.64667 6.57465 6.564 6.64132 6.43133C6.70732 6.29933 6.67465 6.18333 6.62465 6.084C6.57465 5.98533 6.17865 5.01 6.01399 4.61333C5.85265 4.22733 5.68932 4.27933 5.56799 4.27333L5.18799 4.26667C5.05599 4.26667 4.84132 4.316 4.65999 4.51467C4.47866 4.71333 3.96666 5.192 3.96666 6.16733C3.96666 7.14267 4.67666 8.08467 4.77532 8.21667C4.87466 8.34867 6.17199 10.35 8.15932 11.208C8.63198 11.412 9.00131 11.534 9.28865 11.6253C9.76331 11.776 10.1953 11.7547 10.5366 11.704C10.9173 11.6473 11.7086 11.2247 11.874 10.762C12.0393 10.2987 12.0393 9.902 11.9893 9.81933Z", fill: "white" }));
|
|
3
|
+
export {
|
|
4
|
+
e as default
|
|
5
|
+
};
|
|
@@ -15,7 +15,9 @@ type AliasTextInputProps = {
|
|
|
15
15
|
flexProps?: FlexProps;
|
|
16
16
|
textInputProps?: Omit<TextInputProps, 'value' | 'onChange' | 'onBlur' | 'error'>;
|
|
17
17
|
isCheckingAlias?: boolean;
|
|
18
|
+
previewMode?: boolean;
|
|
19
|
+
tooltipLabel?: string;
|
|
18
20
|
};
|
|
19
|
-
export declare const AliasTextInput: ({ form, label, disabled, localization: { aliasPlaceholder }, stackProps, flexProps, textInputProps, isCheckingAlias, }: AliasTextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare const AliasTextInput: ({ form, label, disabled, localization: { aliasPlaceholder }, stackProps, flexProps, textInputProps, isCheckingAlias, previewMode, tooltipLabel, }: AliasTextInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
22
|
export {};
|
|
21
23
|
//# sourceMappingURL=AliasTextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AliasTextInput.d.ts","sourceRoot":"","sources":["../../../src/components/AliasTextInput/AliasTextInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AliasTextInput.d.ts","sourceRoot":"","sources":["../../../src/components/AliasTextInput/AliasTextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,SAAS,EAGT,UAAU,EAGV,cAAc,EAEf,MAAM,eAAe,CAAC;AAEvB,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE;QACJ,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;QAChE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;QACpB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;KACzB,CAAC;IACF,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE;QACZ,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,IAAI,CACnB,cAAc,EACd,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAC1C,CAAC;IACF,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,mJAW5B,mBAAmB,4CAkFrB,CAAC"}
|
|
@@ -1,70 +1,79 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { HelpCircleIcon as v } from "@hugeicons/core-free-icons";
|
|
3
|
+
import { HugeiconsIcon as g } from "@hugeicons/react";
|
|
4
|
+
import { Stack as x, Flex as l, Text as c, TextInput as y, Loader as w, Box as z, Tooltip as L } from "@mantine/core";
|
|
5
|
+
const H = ({
|
|
6
|
+
form: p,
|
|
5
7
|
label: e,
|
|
6
|
-
disabled:
|
|
7
|
-
localization: { aliasPlaceholder:
|
|
8
|
-
stackProps:
|
|
9
|
-
flexProps:
|
|
10
|
-
textInputProps:
|
|
11
|
-
isCheckingAlias:
|
|
8
|
+
disabled: o,
|
|
9
|
+
localization: { aliasPlaceholder: a },
|
|
10
|
+
stackProps: m,
|
|
11
|
+
flexProps: d,
|
|
12
|
+
textInputProps: s,
|
|
13
|
+
isCheckingAlias: u,
|
|
14
|
+
previewMode: n = !1,
|
|
15
|
+
tooltipLabel: h
|
|
12
16
|
}) => {
|
|
13
|
-
const { error: t, ...
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
e ? typeof e == "string" ? /* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
17
|
+
const { error: t, ...f } = p;
|
|
18
|
+
return /* @__PURE__ */ i(x, { gap: 5, ...m, children: [
|
|
19
|
+
e ? typeof e == "string" ? /* @__PURE__ */ r(c, { fw: 500, fz: "xs", lh: "sm", children: e }) : e : null,
|
|
20
|
+
/* @__PURE__ */ i(
|
|
21
|
+
l,
|
|
18
22
|
{
|
|
19
|
-
|
|
20
|
-
gap:
|
|
21
|
-
...
|
|
23
|
+
px: 12,
|
|
24
|
+
gap: "sm",
|
|
25
|
+
...d,
|
|
22
26
|
style: {
|
|
23
27
|
border: `1px solid ${t ? "var(--mantine-color-error)" : "var(--mantine-color-default-border)"}`,
|
|
24
28
|
borderRadius: "var(--mantine-radius-default)",
|
|
25
|
-
color:
|
|
26
|
-
background:
|
|
27
|
-
opacity:
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
color: o ? "var(--input-disabled-color)" : void 0,
|
|
30
|
+
background: o ? "var(--mantine-color-disabled)" : void 0,
|
|
31
|
+
opacity: o ? 0.6 : 1,
|
|
32
|
+
overflow: "hidden",
|
|
33
|
+
cursor: o ? "not-allowed" : n ? "pointer" : void 0,
|
|
34
|
+
...d?.style
|
|
30
35
|
},
|
|
31
36
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
) }),
|
|
42
|
-
/* @__PURE__ */ o(
|
|
43
|
-
h,
|
|
44
|
-
{
|
|
45
|
-
w: "100%",
|
|
46
|
-
placeholder: s,
|
|
47
|
-
variant: "unstyled",
|
|
48
|
-
leftSectionWidth: "auto",
|
|
49
|
-
maxLength: 50,
|
|
50
|
-
disabled: r,
|
|
51
|
-
rightSection: m ? /* @__PURE__ */ o(f, { size: 14 }) : void 0,
|
|
52
|
-
...p,
|
|
53
|
-
...a,
|
|
54
|
-
styles: {
|
|
55
|
-
input: {
|
|
56
|
-
cursor: r ? "not-allowed" : void 0
|
|
57
|
-
},
|
|
58
|
-
...a?.styles
|
|
37
|
+
/* @__PURE__ */ i(l, { gap: 0, flex: 1, align: "center", children: [
|
|
38
|
+
/* @__PURE__ */ r(l, { align: "center", children: /* @__PURE__ */ r(
|
|
39
|
+
c,
|
|
40
|
+
{
|
|
41
|
+
fw: 400,
|
|
42
|
+
c: o ? "dimmed" : "gray",
|
|
43
|
+
lh: "sm",
|
|
44
|
+
style: { whiteSpace: "nowrap" },
|
|
45
|
+
children: "app.layers.md/"
|
|
59
46
|
}
|
|
60
|
-
}
|
|
61
|
-
|
|
47
|
+
) }),
|
|
48
|
+
/* @__PURE__ */ r(
|
|
49
|
+
y,
|
|
50
|
+
{
|
|
51
|
+
w: "100%",
|
|
52
|
+
placeholder: a,
|
|
53
|
+
variant: "unstyled",
|
|
54
|
+
leftSectionWidth: "auto",
|
|
55
|
+
maxLength: 50,
|
|
56
|
+
disabled: o,
|
|
57
|
+
rightSection: u ? /* @__PURE__ */ r(w, { size: 14 }) : void 0,
|
|
58
|
+
...f,
|
|
59
|
+
...s,
|
|
60
|
+
styles: {
|
|
61
|
+
input: {
|
|
62
|
+
pointerEvents: n ? "none" : void 0,
|
|
63
|
+
cursor: o ? "not-allowed" : void 0
|
|
64
|
+
},
|
|
65
|
+
...s?.styles
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
)
|
|
69
|
+
] }),
|
|
70
|
+
n && /* @__PURE__ */ r(z, { w: 20, h: 20, children: /* @__PURE__ */ r(L, { label: h || a, children: /* @__PURE__ */ r(g, { size: 20, color: "gray", icon: v }) }) })
|
|
62
71
|
]
|
|
63
72
|
}
|
|
64
73
|
),
|
|
65
|
-
t && /* @__PURE__ */
|
|
74
|
+
t && /* @__PURE__ */ r(c, { fz: "xs", c: "var(--mantine-color-error)", children: t })
|
|
66
75
|
] });
|
|
67
76
|
};
|
|
68
77
|
export {
|
|
69
|
-
|
|
78
|
+
H as AliasTextInput
|
|
70
79
|
};
|
|
@@ -5,7 +5,7 @@ declare global {
|
|
|
5
5
|
preSignMode?: boolean;
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, showAppsSidebar, headerBorderless, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
8
|
+
export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, showAppsSidebar, headerBorderless, withBg, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
9
9
|
NavbarContent: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
NewButton: ({ children, ...props }: import("@mantine/core").PolymorphicComponentProps<"button", import("@mantine/core").ButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AA0ED,eAAO,MAAM,YAAY,sJA3DtB,iBAAiB;;;CA8DlB,CAAC"}
|
|
@@ -1,64 +1,67 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { useMantineColorScheme as
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as T } from "react";
|
|
3
|
+
import { useMantineColorScheme as j, Stack as B, Flex as D } from "@mantine/core";
|
|
4
|
+
import { isAppMode as H } from "../../helpers/isAppMode.js";
|
|
5
|
+
import { useQueryParam as M } from "../../hooks/useNumberQueryParam.js";
|
|
5
6
|
import { AppShell as e } from "../AppShell/AppShell.js";
|
|
6
|
-
import { AppsSidebar as
|
|
7
|
-
import { Header as
|
|
8
|
-
import { Main as
|
|
9
|
-
import
|
|
10
|
-
import { RightSidebar as
|
|
11
|
-
import { ToolSidebar as
|
|
12
|
-
import { ToolbarNewButton as
|
|
13
|
-
import { appContainerStore as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
import { AppsSidebar as N } from "./components/AppsSidebar/AppsSidebar.js";
|
|
8
|
+
import { Header as P } from "./components/Header.js";
|
|
9
|
+
import { Main as W } from "./components/Main.js";
|
|
10
|
+
import E from "./components/NavbarContent.js";
|
|
11
|
+
import { RightSidebar as O } from "./components/RightSidebar.js";
|
|
12
|
+
import { ToolSidebar as $ } from "./components/ToolSidebar.js";
|
|
13
|
+
import { ToolbarNewButton as F } from "./components/ToolbarNewButton.js";
|
|
14
|
+
import { appContainerStore as K } from "./hooks/useAppContainerStore.js";
|
|
15
|
+
import { useAppContainerDataStore as Q } from "./hooks/useAppContainerDataStore.js";
|
|
16
|
+
const R = ({
|
|
17
|
+
header: l,
|
|
18
|
+
content: h,
|
|
17
19
|
toolbar: i,
|
|
18
20
|
navbarTitle: d,
|
|
19
21
|
footer: n,
|
|
20
|
-
onTitleChange:
|
|
21
|
-
trashMenu:
|
|
22
|
+
onTitleChange: c,
|
|
23
|
+
trashMenu: f,
|
|
22
24
|
rightbar: m,
|
|
23
|
-
onInviteClick:
|
|
24
|
-
showAppsSidebar:
|
|
25
|
-
headerBorderless:
|
|
25
|
+
onInviteClick: u,
|
|
26
|
+
showAppsSidebar: S = !0,
|
|
27
|
+
headerBorderless: b = !1,
|
|
28
|
+
withBg: x = !1
|
|
26
29
|
}) => {
|
|
27
|
-
const { toolbarWidth:
|
|
28
|
-
|
|
29
|
-
(t === "dark" || t === "light") &&
|
|
30
|
-
}, [t,
|
|
31
|
-
const
|
|
32
|
-
"--toolbar-width": `${
|
|
33
|
-
"--rightbar-width": `${
|
|
34
|
-
},
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
30
|
+
const { toolbarWidth: w, rightbarWidth: C, layout: p } = K.useStore(), g = Q((v) => v.user), a = H(g.mode, "DESKTOP"), { setColorScheme: s } = j(), t = M("theme");
|
|
31
|
+
T(() => {
|
|
32
|
+
!a && (t === "dark" || t === "light") && s(t);
|
|
33
|
+
}, [t, s, a]);
|
|
34
|
+
const A = {
|
|
35
|
+
"--toolbar-width": `${w}px`,
|
|
36
|
+
"--rightbar-width": `${C}px`
|
|
37
|
+
}, y = p !== "nothing", k = p === "default" && i;
|
|
38
|
+
return /* @__PURE__ */ r(e, { style: A, children: [
|
|
39
|
+
S && /* @__PURE__ */ o(e.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ o(N, { onInviteClick: u, trashMenu: f }) }),
|
|
40
|
+
/* @__PURE__ */ r(e.Section, { flex: 1, display: "flex", pos: "relative", children: [
|
|
41
|
+
k && /* @__PURE__ */ o($, { onTitleChange: c, navbarTitle: d, children: i }),
|
|
42
|
+
/* @__PURE__ */ r(B, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
|
|
43
|
+
y && /* @__PURE__ */ o(
|
|
41
44
|
e.Header,
|
|
42
45
|
{
|
|
43
46
|
px: "sm",
|
|
44
|
-
style:
|
|
45
|
-
children: /* @__PURE__ */
|
|
47
|
+
style: b ? { borderBottom: "none" } : void 0,
|
|
48
|
+
children: /* @__PURE__ */ o(P, { children: l })
|
|
46
49
|
}
|
|
47
50
|
),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
-
|
|
51
|
-
n && /* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ r(D, { mih: 0, gap: 0, h: "100%", children: [
|
|
52
|
+
/* @__PURE__ */ o(e.WorkContent, { children: /* @__PURE__ */ r(W, { withBg: x, children: [
|
|
53
|
+
h,
|
|
54
|
+
n && /* @__PURE__ */ o("footer", { children: n })
|
|
52
55
|
] }) }),
|
|
53
|
-
m && /* @__PURE__ */
|
|
56
|
+
m && /* @__PURE__ */ o(O, { children: m })
|
|
54
57
|
] })
|
|
55
58
|
] })
|
|
56
59
|
] })
|
|
57
60
|
] });
|
|
58
|
-
},
|
|
59
|
-
NavbarContent:
|
|
60
|
-
NewButton:
|
|
61
|
+
}, to = Object.assign(R, {
|
|
62
|
+
NavbarContent: E,
|
|
63
|
+
NewButton: F
|
|
61
64
|
});
|
|
62
65
|
export {
|
|
63
|
-
|
|
66
|
+
to as AppContainer
|
|
64
67
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_toolTitleInput_14hbr_19", n = "_appSidebarButton_14hbr_34", o = "_slideContainer_14hbr_55", e = "_slideContent_14hbr_61", i = "_main_14hbr_76", s = {
|
|
2
2
|
toolTitleInput: t,
|
|
3
3
|
appSidebarButton: n,
|
|
4
4
|
slideContainer: o,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as s } from "react-i18next";
|
|
3
3
|
import { matchPath as m } from "react-router-dom";
|
|
4
4
|
import { More01Icon as d } from "@hugeicons/core-free-icons";
|
|
5
5
|
import { HugeiconsIcon as h } from "@hugeicons/react";
|
|
@@ -9,16 +9,16 @@ import { appContainerStore as g } from "../../hooks/useAppContainerStore.js";
|
|
|
9
9
|
import { AppSidebarButton as n } from "../AppSidebarButton.js";
|
|
10
10
|
import { MoreMenu as w } from "../menus/MoreMenu.js";
|
|
11
11
|
const y = () => {
|
|
12
|
-
const { t: p } =
|
|
12
|
+
const { t: p } = s("appContainer"), { hiddenTools: a } = g.useStore(), { tools: i, publicMode: c } = S();
|
|
13
13
|
return /* @__PURE__ */ r(
|
|
14
14
|
f,
|
|
15
15
|
{
|
|
16
16
|
w: "var(--apps-sidebar-width)",
|
|
17
17
|
style: { borderTop: "1px solid var(--app-shell-border)" },
|
|
18
18
|
py: 8,
|
|
19
|
-
children: /* @__PURE__ */ t(u, { gap:
|
|
19
|
+
children: /* @__PURE__ */ t(u, { gap: 8, align: "center", children: [
|
|
20
20
|
i?.filter((o) => !a.includes(o.id))?.map((o) => {
|
|
21
|
-
const
|
|
21
|
+
const l = !!m(
|
|
22
22
|
{ path: o.path, end: !1 },
|
|
23
23
|
window.location.pathname
|
|
24
24
|
);
|
|
@@ -27,7 +27,7 @@ const y = () => {
|
|
|
27
27
|
{
|
|
28
28
|
title: o.name,
|
|
29
29
|
icon: o.icon(),
|
|
30
|
-
active:
|
|
30
|
+
active: l,
|
|
31
31
|
onClick: o.onClick
|
|
32
32
|
},
|
|
33
33
|
o.id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAsBA,eAAO,MAAM,WAAW,GAAI,+BAGzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,4CA0FA,CAAC"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Delete03Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { IconUserCircle as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as w } from "react-i18next";
|
|
3
|
+
import { Link as I } from "react-router-dom";
|
|
4
|
+
import { Delete03Icon as S, UserAdd02Icon as b, HelpCircleIcon as x } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as s } from "@hugeicons/react";
|
|
6
|
+
import { Stack as p, Menu as e, Tooltip as z, ActionIcon as A } from "@mantine/core";
|
|
7
|
+
import { IconUserCircle as C } from "@tabler/icons-react";
|
|
8
|
+
import { useTrashModalStore as D, openTrashModal as U, closeTrashModal as j } from "../../../../store/trashModal.js";
|
|
9
|
+
import { useAppContainerDataStore as m } from "../../hooks/useAppContainerDataStore.js";
|
|
10
|
+
import { AppSidebarButton as l } from "../AppSidebarButton.js";
|
|
11
|
+
import { HelpMenu as v } from "../menus/HelpMenu/HelpMenu.js";
|
|
12
|
+
import { MenuUserDropdown as y } from "../menus/UserMenu/MenuUserDropdown.js";
|
|
13
|
+
const P = ({
|
|
14
|
+
trashMenu: f,
|
|
14
15
|
onInviteClick: c
|
|
15
16
|
}) => {
|
|
16
|
-
const { t:
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
17
|
+
const { t: n } = w("appContainer"), { user: a, isAnonym: t, userMenuItems: g, publicMode: u } = m(), M = D((i) => i.opened), d = !t && !u && a.role !== "mG", T = m((i) => i.isSaas), h = !t && T && c;
|
|
18
|
+
return /* @__PURE__ */ r(
|
|
19
|
+
p,
|
|
19
20
|
{
|
|
20
21
|
style: { borderTop: "1px solid var(--app-shell-border)" },
|
|
21
22
|
flex: 1,
|
|
@@ -23,51 +24,63 @@ const q = ({
|
|
|
23
24
|
gap: 16,
|
|
24
25
|
align: "center",
|
|
25
26
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
27
|
+
/* @__PURE__ */ r(
|
|
28
|
+
p,
|
|
28
29
|
{
|
|
29
|
-
justify: !d && !
|
|
30
|
+
justify: !d && !h ? "end" : "space-between",
|
|
30
31
|
gap: 8,
|
|
31
32
|
flex: 1,
|
|
32
33
|
children: [
|
|
33
|
-
d && /* @__PURE__ */
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
d && /* @__PURE__ */ r(
|
|
35
|
+
e,
|
|
36
|
+
{
|
|
37
|
+
position: "right",
|
|
38
|
+
offset: 6,
|
|
39
|
+
width: 360,
|
|
40
|
+
opened: M,
|
|
41
|
+
onChange: (i) => {
|
|
42
|
+
i ? U() : j();
|
|
43
|
+
},
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
|
|
46
|
+
l,
|
|
47
|
+
{
|
|
48
|
+
title: n("trash"),
|
|
49
|
+
icon: /* @__PURE__ */ o(s, { icon: S, size: 20 })
|
|
50
|
+
}
|
|
51
|
+
) }),
|
|
52
|
+
/* @__PURE__ */ o(e.Dropdown, { children: f })
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
),
|
|
56
|
+
/* @__PURE__ */ r(p, { gap: 8, children: [
|
|
57
|
+
h && /* @__PURE__ */ o(
|
|
58
|
+
l,
|
|
36
59
|
{
|
|
37
|
-
title:
|
|
38
|
-
icon: /* @__PURE__ */ o(
|
|
39
|
-
}
|
|
40
|
-
) }),
|
|
41
|
-
/* @__PURE__ */ o(e.Dropdown, { children: h })
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ i(s, { gap: 8, children: [
|
|
44
|
-
m && /* @__PURE__ */ o(
|
|
45
|
-
p,
|
|
46
|
-
{
|
|
47
|
-
title: r("invite"),
|
|
48
|
-
icon: /* @__PURE__ */ o(t, { icon: I, size: 20 }),
|
|
60
|
+
title: n("invite"),
|
|
61
|
+
icon: /* @__PURE__ */ o(s, { icon: b, size: 20 }),
|
|
49
62
|
onClick: c
|
|
50
63
|
}
|
|
51
64
|
),
|
|
52
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ r(e, { position: "right-end", offset: 6, width: 260, children: [
|
|
53
66
|
/* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(
|
|
54
|
-
|
|
67
|
+
l,
|
|
55
68
|
{
|
|
56
|
-
title:
|
|
57
|
-
icon: /* @__PURE__ */ o(
|
|
69
|
+
title: n("help"),
|
|
70
|
+
icon: /* @__PURE__ */ o(s, { icon: x, size: 20 })
|
|
58
71
|
}
|
|
59
72
|
) }),
|
|
60
|
-
/* @__PURE__ */ o(e.Dropdown, { children: /* @__PURE__ */ o(
|
|
73
|
+
/* @__PURE__ */ o(e.Dropdown, { children: /* @__PURE__ */ o(v, {}) })
|
|
61
74
|
] })
|
|
62
75
|
] })
|
|
63
76
|
]
|
|
64
77
|
}
|
|
65
78
|
),
|
|
66
|
-
|
|
67
|
-
|
|
79
|
+
t ? /* @__PURE__ */ o(I, { to: "/login", children: /* @__PURE__ */ o(z, { label: "Log in", position: "right", children: /* @__PURE__ */ o(A, { size: "lg", variant: "light", children: /* @__PURE__ */ o(C, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
|
|
80
|
+
y,
|
|
68
81
|
{
|
|
69
|
-
user:
|
|
70
|
-
menuItems:
|
|
82
|
+
user: a,
|
|
83
|
+
menuItems: g,
|
|
71
84
|
position: "right-end"
|
|
72
85
|
}
|
|
73
86
|
)
|
|
@@ -76,5 +89,5 @@ const q = ({
|
|
|
76
89
|
);
|
|
77
90
|
};
|
|
78
91
|
export {
|
|
79
|
-
|
|
92
|
+
P as UserSection
|
|
80
93
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
|
|
2
|
+
type MainProps = PropsWithChildren<{
|
|
3
|
+
withBg?: boolean;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const Main: ({ children, withBg }: MainProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
3
7
|
//# sourceMappingURL=Main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,eAAO,MAAM,IAAI,GAAI,
|
|
1
|
+
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,KAAK,SAAS,GAAG,iBAAiB,CAAC;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,eAAO,MAAM,IAAI,GAAI,sBAA8B,SAAS,4CAiB3D,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { appContainerStore as
|
|
3
|
-
import
|
|
4
|
-
const p = ({ children: o }) => {
|
|
5
|
-
const
|
|
6
|
-
return /* @__PURE__ */
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { appContainerStore as n } from "../hooks/useAppContainerStore.js";
|
|
3
|
+
import s from "../AppContainer.module.css.js";
|
|
4
|
+
const p = ({ children: o, withBg: r = !1 }) => {
|
|
5
|
+
const a = n.useStore((t) => t.showToolbar);
|
|
6
|
+
return /* @__PURE__ */ e(
|
|
7
7
|
"main",
|
|
8
8
|
{
|
|
9
|
-
className:
|
|
10
|
-
"data-tool-sidebar-opened":
|
|
9
|
+
className: s.main,
|
|
10
|
+
"data-tool-sidebar-opened": a,
|
|
11
11
|
"data-app-container": !0,
|
|
12
|
+
style: {
|
|
13
|
+
backgroundColor: r ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
|
|
14
|
+
},
|
|
12
15
|
children: o
|
|
13
16
|
}
|
|
14
17
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,QAAQ,+CAuHpB,CAAC"}
|