@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
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const a = (e, t = "SAAS") => {
|
|
1
|
+
const n = (e, t = !0) => {
|
|
3
2
|
if (e.includes("text"))
|
|
4
3
|
return "documents";
|
|
5
4
|
if (e.includes("image") || e.includes("video"))
|
|
@@ -14,11 +13,11 @@ const a = (e, t = "SAAS") => {
|
|
|
14
13
|
case "application/excel":
|
|
15
14
|
return "documents";
|
|
16
15
|
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
17
|
-
return
|
|
16
|
+
return t ? "documents" : "xlsx";
|
|
18
17
|
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
19
|
-
return
|
|
18
|
+
return t ? "documents" : "docx";
|
|
20
19
|
case "application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
|
21
|
-
return
|
|
20
|
+
return t ? "presentation" : "pptx";
|
|
22
21
|
case "application/slides":
|
|
23
22
|
return "media";
|
|
24
23
|
case "audio/mpeg":
|
|
@@ -36,5 +35,5 @@ const a = (e, t = "SAAS") => {
|
|
|
36
35
|
}
|
|
37
36
|
};
|
|
38
37
|
export {
|
|
39
|
-
|
|
38
|
+
n as getFileType
|
|
40
39
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type appMode = 'SERVER' | 'DESKTOP' | 'SAAS';
|
|
2
|
-
export declare const isAppMode: (actualMode: appMode | undefined, expectedMode: appMode) => boolean;
|
|
2
|
+
export declare const isAppMode: (actualMode: appMode | null | undefined, expectedMode: appMode) => boolean;
|
|
3
3
|
//# sourceMappingURL=isAppMode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isAppMode.d.ts","sourceRoot":"","sources":["../../src/helpers/isAppMode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEpD,eAAO,MAAM,SAAS,GACpB,YAAY,OAAO,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"isAppMode.d.ts","sourceRoot":"","sources":["../../src/helpers/isAppMode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAEpD,eAAO,MAAM,SAAS,GACpB,YAAY,OAAO,GAAG,IAAI,GAAG,SAAS,EACtC,cAAc,OAAO,KACpB,OAEF,CAAC"}
|
|
@@ -1,12 +1,23 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { NotificationData } from '@mantine/notifications';
|
|
2
3
|
type MessageType = string | number | NotificationData;
|
|
4
|
+
export interface NotificationAction {
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
variant?: 'filled' | 'default';
|
|
8
|
+
}
|
|
9
|
+
export type ExtendedNotificationData = Omit<NotificationData, 'message'> & {
|
|
10
|
+
message?: ReactNode;
|
|
11
|
+
actions?: NotificationAction[];
|
|
12
|
+
};
|
|
3
13
|
export declare const showRequestNotifications: <Response, Request extends Promise<Response> = Promise<Response>>(request: Request, options?: {
|
|
4
14
|
notifyId?: string;
|
|
5
15
|
successMsg?: ((res: Response) => MessageType) | MessageType;
|
|
6
16
|
errorMsg?: ((err: any) => MessageType) | MessageType;
|
|
7
17
|
}) => Promise<any>;
|
|
8
|
-
export declare const showMessageNotification: (props:
|
|
9
|
-
export declare const showSuccessNotification: (props:
|
|
10
|
-
export declare const
|
|
18
|
+
export declare const showMessageNotification: (props: ExtendedNotificationData) => void;
|
|
19
|
+
export declare const showSuccessNotification: (props: ExtendedNotificationData) => void;
|
|
20
|
+
export declare const showWarningNotification: (props: ExtendedNotificationData) => void;
|
|
21
|
+
export declare const showErrorNotification: (props: ExtendedNotificationData) => void;
|
|
11
22
|
export {};
|
|
12
23
|
//# sourceMappingURL=showNotifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"showNotifications.d.ts","sourceRoot":"","sources":["../../src/helpers/showNotifications.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAUvD,OAAO,EACL,gBAAgB,EAGjB,MAAM,wBAAwB,CAAC;AAMhC,KAAK,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,gBAAgB,CAAC;AAiBtD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC,GAAG;IACzE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AA2GF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,EACR,OAAO,SAAS,OAAO,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,EAErD,SAAS,OAAO,EAChB,UAAS;IACP,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,QAAQ,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;IAC5D,QAAQ,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,WAAW,CAAC,GAAG,WAAW,CAAC;CACjD,iBA+BP,CAAC;AAyCF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,wBAAwB,SAKtE,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB,SAKpE,CAAC"}
|
|
@@ -1,72 +1,163 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N, useEffect as v } from "react";
|
|
3
|
+
import { InformationCircleIcon as C, CheckmarkCircle02Icon as y, Alert01Icon as b, Alert02Icon as x } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as d } from "@hugeicons/react";
|
|
5
|
+
import { CloseButton as B, Box as f, Button as O } from "@mantine/core";
|
|
6
|
+
import { showNotification as k, notifications as z } from "@mantine/notifications";
|
|
7
|
+
import { motion as h } from "framer-motion";
|
|
8
|
+
import { isFunction as p, isObject as w } from "lodash-es";
|
|
9
|
+
import s from "./showNotifications.module.css.js";
|
|
10
|
+
let M = 0;
|
|
11
|
+
const g = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ n(d, { icon: y, size: 14, color: "white" }), H = /* @__PURE__ */ n(d, { icon: x, size: 14, color: "white" }), R = /* @__PURE__ */ n(d, { icon: b, size: 14, color: "white" }), S = /* @__PURE__ */ n(d, { icon: C, size: 14, color: "white" }), W = (o, i) => i?.length ? /* @__PURE__ */ l(f, { children: [
|
|
12
|
+
/* @__PURE__ */ n(f, { children: o }),
|
|
13
|
+
/* @__PURE__ */ n(f, { className: s.actions, children: i.map((e, c) => /* @__PURE__ */ n(
|
|
14
|
+
O,
|
|
15
|
+
{
|
|
16
|
+
size: "compact-sm",
|
|
17
|
+
variant: e.variant ?? "default",
|
|
18
|
+
onClick: e.onClick,
|
|
19
|
+
radius: "md",
|
|
20
|
+
children: e.label
|
|
21
|
+
},
|
|
22
|
+
c
|
|
23
|
+
)) })
|
|
24
|
+
] }) : o;
|
|
25
|
+
function j({
|
|
26
|
+
id: o,
|
|
27
|
+
title: i,
|
|
28
|
+
icon: e,
|
|
29
|
+
children: c
|
|
30
|
+
}) {
|
|
31
|
+
const [t, r] = N(!1);
|
|
32
|
+
return v(() => (g.set(o, () => r(!0)), () => {
|
|
33
|
+
g.delete(o);
|
|
34
|
+
}), [o]), /* @__PURE__ */ l(
|
|
35
|
+
h.div,
|
|
36
|
+
{
|
|
37
|
+
className: s.root,
|
|
38
|
+
initial: { width: 48, maxHeight: 48 },
|
|
39
|
+
animate: t ? { width: [316, 316, 48], maxHeight: [300, 48, 48] } : { width: [48, 316, 316], maxHeight: [48, 48, 300] },
|
|
40
|
+
transition: t ? { duration: 0.5, ease: "easeIn", times: [0, 0.35, 1] } : { duration: 0.5, ease: "easeOut", times: [0, 0.65, 1] },
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ l("div", { className: i ? s.contentRow : s.contentRowCentered, children: [
|
|
43
|
+
/* @__PURE__ */ n("div", { className: s.icon, children: e }),
|
|
44
|
+
/* @__PURE__ */ l(
|
|
45
|
+
h.div,
|
|
46
|
+
{
|
|
47
|
+
className: s.body,
|
|
48
|
+
initial: { opacity: 0 },
|
|
49
|
+
animate: { opacity: t ? 0 : 1 },
|
|
50
|
+
transition: t ? { duration: 0.15, ease: "easeIn" } : { duration: 0.2, delay: 0.3, ease: "easeOut" },
|
|
51
|
+
children: [
|
|
52
|
+
i && /* @__PURE__ */ n("div", { className: s.title, children: i }),
|
|
53
|
+
c && /* @__PURE__ */ n(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: i ? s.description : s.descriptionWithoutTitle,
|
|
57
|
+
children: c
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
)
|
|
63
|
+
] }),
|
|
64
|
+
/* @__PURE__ */ n(
|
|
65
|
+
h.div,
|
|
66
|
+
{
|
|
67
|
+
className: s.closeButtonWrapper,
|
|
68
|
+
initial: { opacity: 0 },
|
|
69
|
+
animate: { opacity: t ? 0 : 1 },
|
|
70
|
+
transition: t ? { duration: 0.15, ease: "easeIn" } : { duration: 0.2, delay: 0.3, ease: "easeOut" },
|
|
71
|
+
children: /* @__PURE__ */ n(
|
|
72
|
+
B,
|
|
73
|
+
{
|
|
74
|
+
className: s.closeButton,
|
|
75
|
+
size: 24,
|
|
76
|
+
onClick: () => z.hide(o)
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
)
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
const Q = (o, i = {}) => {
|
|
86
|
+
const { successMsg: e, errorMsg: c } = i;
|
|
87
|
+
return o.then((t) => {
|
|
88
|
+
if (e) {
|
|
89
|
+
const r = p(e) ? e(t) : e, a = {
|
|
90
|
+
id: i.notifyId,
|
|
91
|
+
...w(r) ? r : { message: r }
|
|
28
92
|
};
|
|
29
|
-
|
|
93
|
+
E(a);
|
|
30
94
|
}
|
|
31
|
-
return
|
|
32
|
-
}).catch((
|
|
33
|
-
if (
|
|
34
|
-
const
|
|
35
|
-
id:
|
|
36
|
-
...
|
|
95
|
+
return t;
|
|
96
|
+
}).catch((t) => {
|
|
97
|
+
if (c) {
|
|
98
|
+
const r = p(c) ? c(t) : c, a = {
|
|
99
|
+
id: i.notifyId,
|
|
100
|
+
...w(r) ? r : { message: r }
|
|
37
101
|
};
|
|
38
|
-
|
|
102
|
+
q(a);
|
|
39
103
|
}
|
|
40
|
-
return
|
|
104
|
+
return t;
|
|
105
|
+
});
|
|
106
|
+
}, m = (o, i) => {
|
|
107
|
+
const { actions: e, title: c, message: t, onClose: r, ...a } = o, I = `ntf-${++M}`, u = a.id ?? I;
|
|
108
|
+
k({
|
|
109
|
+
color: i.color,
|
|
110
|
+
radius: 12,
|
|
111
|
+
...a,
|
|
112
|
+
id: u,
|
|
113
|
+
icon: void 0,
|
|
114
|
+
title: void 0,
|
|
115
|
+
withCloseButton: !1,
|
|
116
|
+
withBorder: !1,
|
|
117
|
+
p: 0,
|
|
118
|
+
classNames: { root: s.mantineRoot },
|
|
119
|
+
styles: {
|
|
120
|
+
root: { background: "none", border: "none", boxShadow: "none" },
|
|
121
|
+
body: { margin: 0 }
|
|
122
|
+
},
|
|
123
|
+
onClose: () => {
|
|
124
|
+
g.get(u)?.(), r?.(o);
|
|
125
|
+
},
|
|
126
|
+
message: /* @__PURE__ */ n(
|
|
127
|
+
j,
|
|
128
|
+
{
|
|
129
|
+
id: u,
|
|
130
|
+
title: c,
|
|
131
|
+
icon: i.icon,
|
|
132
|
+
children: W(t, e)
|
|
133
|
+
}
|
|
134
|
+
)
|
|
135
|
+
});
|
|
136
|
+
}, U = (o) => {
|
|
137
|
+
m(o, {
|
|
138
|
+
color: "var(--mantine-color-blue-outline)",
|
|
139
|
+
icon: S
|
|
41
140
|
});
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
styles: o,
|
|
47
|
-
withCloseButton: !0,
|
|
48
|
-
...t
|
|
141
|
+
}, E = (o) => {
|
|
142
|
+
m(o, {
|
|
143
|
+
color: "var(--mantine-color-green-outline)",
|
|
144
|
+
icon: A
|
|
49
145
|
});
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
styles: o,
|
|
55
|
-
withCloseButton: !0,
|
|
56
|
-
...t
|
|
146
|
+
}, V = (o) => {
|
|
147
|
+
m(o, {
|
|
148
|
+
color: "var(--mantine-color-yellow-outline)",
|
|
149
|
+
icon: R
|
|
57
150
|
});
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
styles: o,
|
|
63
|
-
withCloseButton: !0,
|
|
64
|
-
...t
|
|
151
|
+
}, q = (o) => {
|
|
152
|
+
m(o, {
|
|
153
|
+
color: "var(--mantine-color-red-outline)",
|
|
154
|
+
icon: H
|
|
65
155
|
});
|
|
66
156
|
};
|
|
67
157
|
export {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
158
|
+
q as showErrorNotification,
|
|
159
|
+
U as showMessageNotification,
|
|
160
|
+
Q as showRequestNotifications,
|
|
161
|
+
E as showSuccessNotification,
|
|
162
|
+
V as showWarningNotification
|
|
72
163
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const t = "_mantineRoot_1pbtj_2", o = "_root_1pbtj_11", n = "_contentRow_1pbtj_22", e = "_contentRowCentered_1pbtj_27", c = "_icon_1pbtj_32", _ = "_body_1pbtj_45", s = "_title_1pbtj_50", i = "_description_1pbtj_62", p = "_descriptionWithoutTitle_1pbtj_68", r = "_closeButtonWrapper_1pbtj_75", b = "_closeButton_1pbtj_75", l = "_actions_1pbtj_85", d = {
|
|
2
|
+
mantineRoot: t,
|
|
3
|
+
root: o,
|
|
4
|
+
contentRow: n,
|
|
5
|
+
contentRowCentered: e,
|
|
6
|
+
icon: c,
|
|
7
|
+
body: _,
|
|
8
|
+
title: s,
|
|
9
|
+
description: i,
|
|
10
|
+
descriptionWithoutTitle: p,
|
|
11
|
+
closeButtonWrapper: r,
|
|
12
|
+
closeButton: b,
|
|
13
|
+
actions: l
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
l as actions,
|
|
17
|
+
_ as body,
|
|
18
|
+
b as closeButton,
|
|
19
|
+
r as closeButtonWrapper,
|
|
20
|
+
n as contentRow,
|
|
21
|
+
e as contentRowCentered,
|
|
22
|
+
d as default,
|
|
23
|
+
i as description,
|
|
24
|
+
p as descriptionWithoutTitle,
|
|
25
|
+
c as icon,
|
|
26
|
+
t as mantineRoot,
|
|
27
|
+
o as root,
|
|
28
|
+
s as title
|
|
29
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const getUtcOffset: (tz: string, date: Date) => string | null;
|
|
2
|
+
export declare const isValidTimeZone: (tz: string) => boolean;
|
|
3
|
+
export declare const getBrowserTimeZone: () => string;
|
|
4
|
+
export declare const getSafeFormatter: (tz: string) => Intl.DateTimeFormat;
|
|
5
|
+
export declare const getTimeZones: () => {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
searchableLabel: string;
|
|
9
|
+
offset: number;
|
|
10
|
+
}[];
|
|
11
|
+
export declare const parseInvalidTz: (tz: string) => string;
|
|
12
|
+
//# sourceMappingURL=timezones.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timezones.d.ts","sourceRoot":"","sources":["../../src/helpers/timezones.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI,IAAI,MAAM,EAAE,MAAM,IAAI,KAAG,MAAM,GAAG,IAkC9D,CAAC;AACF,eAAO,MAAM,eAAe,GAAI,IAAI,MAAM,YAOzC,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAE9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM,wBAO1C,CAAC;AACF,eAAO,MAAM,YAAY;WAMd,MAAM;WACN,MAAM;qBACI,MAAM;YACf,MAAM;GA2BjB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,IAAI,MAAM,WAQxC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { getAllCountries as y } from "../node_modules/countries-and-timezones/esm/index.js";
|
|
2
|
+
const T = (n, r) => {
|
|
3
|
+
try {
|
|
4
|
+
const o = new Intl.DateTimeFormat("en-US", {
|
|
5
|
+
timeZone: n,
|
|
6
|
+
hour12: !1,
|
|
7
|
+
year: "numeric",
|
|
8
|
+
month: "2-digit",
|
|
9
|
+
day: "2-digit",
|
|
10
|
+
hour: "2-digit",
|
|
11
|
+
minute: "2-digit",
|
|
12
|
+
second: "2-digit"
|
|
13
|
+
}).formatToParts(r), a = +o.find((t) => t.type === "year").value, e = +o.find((t) => t.type === "month").value, i = +o.find((t) => t.type === "day").value, c = +o.find((t) => t.type === "hour").value, l = +o.find((t) => t.type === "minute").value, u = +o.find((t) => t.type === "second").value;
|
|
14
|
+
let s = (Date.UTC(a, e - 1, i, c, l, u) - r.getTime()) / (60 * 1e3);
|
|
15
|
+
s = Math.round(s);
|
|
16
|
+
const f = s >= 0 ? "+" : "-", p = String(Math.floor(Math.abs(s) / 60)).padStart(2, "0"), g = String(Math.abs(s) % 60).padStart(2, "0");
|
|
17
|
+
return `${f}${p}:${g}`;
|
|
18
|
+
} catch {
|
|
19
|
+
return null;
|
|
20
|
+
}
|
|
21
|
+
}, h = (n) => {
|
|
22
|
+
try {
|
|
23
|
+
return !0;
|
|
24
|
+
} catch {
|
|
25
|
+
return !1;
|
|
26
|
+
}
|
|
27
|
+
}, v = () => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC", S = (n) => {
|
|
28
|
+
const r = h() ? n : v();
|
|
29
|
+
return new Intl.DateTimeFormat("en-US", {
|
|
30
|
+
timeZone: r,
|
|
31
|
+
dateStyle: "medium",
|
|
32
|
+
timeStyle: "short"
|
|
33
|
+
});
|
|
34
|
+
}, Z = () => {
|
|
35
|
+
const n = /* @__PURE__ */ new Date(), r = y(), m = /* @__PURE__ */ new Set(), o = [];
|
|
36
|
+
return Object.values(r).forEach((a) => {
|
|
37
|
+
a.timezones.forEach((e) => {
|
|
38
|
+
if (m.has(e)) return;
|
|
39
|
+
m.add(e);
|
|
40
|
+
const i = T(e, n)?.replace("UTC", ""), c = i?.match(/([+-])(\d{2}):(\d{2})/);
|
|
41
|
+
if (!c) return;
|
|
42
|
+
const [l, u, d, s] = c, f = (parseInt(d) * 60 + parseInt(s)) * (u === "+" ? 1 : -1);
|
|
43
|
+
o.push({
|
|
44
|
+
value: e,
|
|
45
|
+
label: `(UTC${i}) ${e}`,
|
|
46
|
+
searchableLabel: `${a.name.toLowerCase()} ${e.toLowerCase()} utc${i}`,
|
|
47
|
+
offset: f
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
}), o.sort((a, e) => a.offset - e.offset);
|
|
51
|
+
}, b = (n) => h() ? n : S(n).resolvedOptions().timeZone;
|
|
52
|
+
export {
|
|
53
|
+
v as getBrowserTimeZone,
|
|
54
|
+
S as getSafeFormatter,
|
|
55
|
+
Z as getTimeZones,
|
|
56
|
+
T as getUtcOffset,
|
|
57
|
+
h as isValidTimeZone,
|
|
58
|
+
b as parseInvalidTz
|
|
59
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validateAliasFormat.d.ts","sourceRoot":"","sources":["../../src/helpers/validateAliasFormat.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,oBAAiB,KAChB,OAOF,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useSearchParams as s, useParams as a } from "react-router-dom";
|
|
2
2
|
import { isNumber as t } from "lodash-es";
|
|
3
3
|
const o = (r) => t(r) && !isNaN(r), n = (r) => {
|
|
4
|
-
const { [r]: e } =
|
|
4
|
+
const { [r]: e } = a();
|
|
5
5
|
return e || null;
|
|
6
6
|
}, c = (r) => {
|
|
7
|
-
const [e] =
|
|
7
|
+
const [e] = s();
|
|
8
8
|
return e.get(r);
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOutsideClick.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideClick.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACjE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,KAAK,IAAI,EACnD,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"useOutsideClick.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideClick.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,EACjE,OAAO,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,KAAK,IAAI,EACnD,OAAO,CAAC,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,8CA+BnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useVideoUploadGuard.d.ts","sourceRoot":"","sources":["../../src/hooks/useVideoUploadGuard.ts"],"names":[],"mappings":"AAMA,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,OAAO,QAoBvD"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useEffect as r } from "react";
|
|
2
|
+
import { useTranslation as s } from "react-i18next";
|
|
3
|
+
import { useBlocker as t } from "react-router-dom";
|
|
4
|
+
import { openRemoveConfirmModal as l } from "../components/modals/RemoveConfirmModal.js";
|
|
5
|
+
function d(n) {
|
|
6
|
+
const { t: e } = s(), o = t(n);
|
|
7
|
+
r(() => {
|
|
8
|
+
o.state === "blocked" && l({
|
|
9
|
+
title: e("videoUpload.title", { ns: "pages" }),
|
|
10
|
+
children: e("videoUpload.message", { ns: "pages" }),
|
|
11
|
+
labels: {
|
|
12
|
+
confirm: e("videoUpload.confirm", { ns: "pages" }),
|
|
13
|
+
cancel: e("videoUpload.cancel", { ns: "pages" })
|
|
14
|
+
},
|
|
15
|
+
icon: null,
|
|
16
|
+
onConfirm: () => o.proceed?.(),
|
|
17
|
+
onCancel: () => o.reset?.(),
|
|
18
|
+
onClose: () => o.reset?.()
|
|
19
|
+
});
|
|
20
|
+
}, [o.state, e]);
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
d as useVideoUploadGuard
|
|
24
|
+
};
|