@layers-app/shared 0.4.7 → 0.4.9
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/default-workspace-avatar.jpg.js +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- 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 +76 -71
- package/dist/components/AppContainer/AppContainer.module.css.js +14 -14
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
- package/dist/components/AppContainer/components/NavbarContent.d.ts.map +1 -1
- package/dist/components/AppContainer/components/NavbarContent.js +16 -2
- package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +42 -30
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +90 -90
- package/dist/components/AppContainer/types.d.ts +12 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +59 -52
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +1 -0
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +16 -15
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +22 -22
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +22 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -4
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +1 -1
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -44
- package/dist/components/Chat/ChatInput/index.d.ts +13 -1
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatInput/index.js +264 -164
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
- package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
- package/dist/components/Chat/ChatMessage/index.js +153 -118
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
- package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
- package/dist/components/Chat/MessageActions/index.d.ts +2 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageActions/index.js +188 -50
- package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
- package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageAuthor/index.js +39 -25
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
- package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
- package/dist/components/Chat/MessageList/index.d.ts +17 -25
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
- package/dist/components/Chat/MessageList/index.js +201 -149
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +12 -12
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -8
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +83 -72
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +94 -85
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +6 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +53 -11
- package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +43 -20
- package/dist/components/CommentComposer/CommentComposer.module.css.js +14 -10
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
- package/dist/components/CommentComposer/index.d.ts +2 -1
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +333 -313
- package/dist/components/CommentComposer/types.d.ts +10 -0
- package/dist/components/CommentComposer/types.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/CustomKBD/index.js +21 -22
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +81 -80
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/conditions.js +33 -17
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
- package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
- package/dist/components/Notification/InfiniteScroll.js +42 -0
- package/dist/components/Notification/Notification.d.ts +4 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.module.css.js +28 -4
- package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
- package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ActionBadge.js +53 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/InboxIcon.js +33 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
- package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
- package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
- package/dist/components/Notification/atoms/TabBadge.js +32 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
- package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
- package/dist/components/Notification/atoms/UnreadDot.js +23 -0
- package/dist/components/Notification/atoms/index.d.ts +5 -0
- package/dist/components/Notification/atoms/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/index.d.ts +8 -0
- package/dist/components/Notification/hooks/index.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
- package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxActions.js +58 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
- package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
- package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
- package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
- package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
- package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
- package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
- package/dist/components/Notification/lib/api.d.ts +4 -0
- package/dist/components/Notification/lib/api.d.ts.map +1 -0
- package/dist/components/Notification/lib/api.js +19 -0
- package/dist/components/Notification/lib/index.d.ts +5 -0
- package/dist/components/Notification/lib/index.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.d.ts +10 -0
- package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
- package/dist/components/Notification/lib/notificationText.js +131 -0
- package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
- package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
- package/dist/components/Notification/lib/stripHtml.js +6 -0
- package/dist/components/Notification/lib/types.d.ts +45 -0
- package/dist/components/Notification/lib/types.d.ts.map +1 -0
- package/dist/components/Notification/lib/types.js +9 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
- package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
- package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxHeader.js +73 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
- package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
- package/dist/components/Notification/molecules/InboxTabs.js +60 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
- package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationActions.js +64 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
- package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
- package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
- package/dist/components/Notification/molecules/NotificationContent.js +183 -0
- package/dist/components/Notification/molecules/index.d.ts +7 -0
- package/dist/components/Notification/molecules/index.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
- package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxItem.js +100 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
- package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
- package/dist/components/Notification/organisms/InboxPanel.js +99 -0
- package/dist/components/Notification/organisms/index.d.ts +3 -0
- package/dist/components/Notification/organisms/index.d.ts.map +1 -0
- package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +27 -26
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/envConfig.d.ts +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +29 -28
- package/dist/helpers/getFileIcons.js +5 -5
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +11 -1
- package/dist/helpers/platform.d.ts +1 -1
- package/dist/helpers/platform.d.ts.map +1 -1
- package/dist/helpers/platform.js +1 -0
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDateUtils.d.ts +3 -1
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +23 -18
- package/dist/index.css +1 -1
- package/dist/index.js +595 -588
- package/dist/lang/locales/ui_en.json.js +9 -7
- package/dist/lang/locales/ui_es.json.js +6 -4
- package/dist/lang/locales/ui_ru.json.js +8 -6
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
- package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
- package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
- package/docs/README.md +499 -499
- package/package.json +81 -79
- package/dist/components/Notification/Notification.js +0 -119
- package/dist/components/Notification/NotificationCard.d.ts +0 -10
- package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
- package/dist/components/Notification/NotificationCard.js +0 -93
package/package.json
CHANGED
|
@@ -1,79 +1,81 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@layers-app/shared",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Shared components, hooks, and utilities for Layers application",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist",
|
|
7
|
-
"docs"
|
|
8
|
-
],
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
|
-
"type": "module",
|
|
13
|
-
"main": "dist/index.js",
|
|
14
|
-
"module": "dist/index.js",
|
|
15
|
-
"types": "dist/index.d.ts",
|
|
16
|
-
"sideEffects": [
|
|
17
|
-
"**/*.css"
|
|
18
|
-
],
|
|
19
|
-
"exports": {
|
|
20
|
-
".": {
|
|
21
|
-
"import": "./dist/index.js",
|
|
22
|
-
"types": "./dist/index.d.ts"
|
|
23
|
-
},
|
|
24
|
-
"./styles": "./dist/index.css",
|
|
25
|
-
"./dist/*": "./dist/*",
|
|
26
|
-
"./assets/*": "./src/assets/*",
|
|
27
|
-
"./package.json": "./package.json"
|
|
28
|
-
},
|
|
29
|
-
"scripts": {
|
|
30
|
-
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build && tsc --project tsconfig.build.json",
|
|
31
|
-
"check:ts": "tsc --noEmit",
|
|
32
|
-
"prePublish": "vite build && npm version patch",
|
|
33
|
-
"watch": "vite build --watch"
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"@dnd-kit/core": "^6.0.0",
|
|
37
|
-
"@dnd-kit/sortable": "^8.0.0",
|
|
38
|
-
"@dnd-kit/utilities": "^3.2.0",
|
|
39
|
-
"@emoji-mart/data": "^1.2.1",
|
|
40
|
-
"@layers-app/
|
|
41
|
-
"@
|
|
42
|
-
"@mantine/
|
|
43
|
-
"@mantine/
|
|
44
|
-
"@mantine/
|
|
45
|
-
"@mantine/
|
|
46
|
-
"@mantine/
|
|
47
|
-
"@mantine/
|
|
48
|
-
"@mantine/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@tabler/icons-
|
|
52
|
-
"@
|
|
53
|
-
"@tanstack/
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"emoji-mart": "^5.6.0",
|
|
58
|
-
"exceljs": "^4.3.0",
|
|
59
|
-
"framer-motion": "^11.3.24",
|
|
60
|
-
"fuse.js": "^7.1.0",
|
|
61
|
-
"i18next": "^25.5.2",
|
|
62
|
-
"lodash-es": "^4.17.21",
|
|
63
|
-
"query-string": "^9.1.0",
|
|
64
|
-
"react": "^19.2.0",
|
|
65
|
-
"react-dom": "^19.2.0",
|
|
66
|
-
"react-helmet": "^6.1.0",
|
|
67
|
-
"react-i18next": "^15.7.3",
|
|
68
|
-
"react-router-dom": "^7.5.2",
|
|
69
|
-
"react-zoom-pan-pinch": "^3.0.0",
|
|
70
|
-
"shaka-player": "^4.0.0",
|
|
71
|
-
"shaka-player-react": "^1.1.5",
|
|
72
|
-
"styled-components": "^6.0.0",
|
|
73
|
-
"zod": "^4.0.0",
|
|
74
|
-
"zustand": "^5.0.3"
|
|
75
|
-
},
|
|
76
|
-
"dependencies": {
|
|
77
|
-
"@gfazioli/mantine-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@layers-app/shared",
|
|
3
|
+
"version": "0.4.9",
|
|
4
|
+
"description": "Shared components, hooks, and utilities for Layers application",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist",
|
|
7
|
+
"docs"
|
|
8
|
+
],
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"module": "dist/index.js",
|
|
15
|
+
"types": "dist/index.d.ts",
|
|
16
|
+
"sideEffects": [
|
|
17
|
+
"**/*.css"
|
|
18
|
+
],
|
|
19
|
+
"exports": {
|
|
20
|
+
".": {
|
|
21
|
+
"import": "./dist/index.js",
|
|
22
|
+
"types": "./dist/index.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./styles": "./dist/index.css",
|
|
25
|
+
"./dist/*": "./dist/*",
|
|
26
|
+
"./assets/*": "./src/assets/*",
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build && tsc --project tsconfig.build.json",
|
|
31
|
+
"check:ts": "tsc --noEmit",
|
|
32
|
+
"prePublish": "vite build && npm version patch",
|
|
33
|
+
"watch": "vite build --watch"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@dnd-kit/core": "^6.0.0",
|
|
37
|
+
"@dnd-kit/sortable": "^8.0.0",
|
|
38
|
+
"@dnd-kit/utilities": "^3.2.0",
|
|
39
|
+
"@emoji-mart/data": "^1.2.1",
|
|
40
|
+
"@layers-app/draggable-ui": "^0.0.1",
|
|
41
|
+
"@layers-app/onboarding-tour": "^4.0.0",
|
|
42
|
+
"@mantine/carousel": ">=9.0.0",
|
|
43
|
+
"@mantine/core": ">=9.0.0",
|
|
44
|
+
"@mantine/dates": ">=9.0.0",
|
|
45
|
+
"@mantine/dropzone": ">=9.0.0",
|
|
46
|
+
"@mantine/form": ">=9.0.0",
|
|
47
|
+
"@mantine/hooks": ">=9.0.0",
|
|
48
|
+
"@mantine/modals": ">=9.0.0",
|
|
49
|
+
"@mantine/notifications": ">=9.0.0",
|
|
50
|
+
"@reduxjs/toolkit": "^2.2.7",
|
|
51
|
+
"@tabler/icons-react": "^3.7.0",
|
|
52
|
+
"@tabler/icons-sprite": "^3.29.0",
|
|
53
|
+
"@tanstack/react-query": "^5.52.2",
|
|
54
|
+
"@tanstack/virtual-core": "^3.0.0",
|
|
55
|
+
"chroma-js": "^3.1.2",
|
|
56
|
+
"date-fns": "^4.1.0",
|
|
57
|
+
"emoji-mart": "^5.6.0",
|
|
58
|
+
"exceljs": "^4.3.0",
|
|
59
|
+
"framer-motion": "^11.3.24",
|
|
60
|
+
"fuse.js": "^7.1.0",
|
|
61
|
+
"i18next": "^25.5.2",
|
|
62
|
+
"lodash-es": "^4.17.21",
|
|
63
|
+
"query-string": "^9.1.0",
|
|
64
|
+
"react": "^19.2.0",
|
|
65
|
+
"react-dom": "^19.2.0",
|
|
66
|
+
"react-helmet": "^6.1.0",
|
|
67
|
+
"react-i18next": "^15.7.3",
|
|
68
|
+
"react-router-dom": "^7.5.2",
|
|
69
|
+
"react-zoom-pan-pinch": "^3.0.0",
|
|
70
|
+
"shaka-player": "^4.0.0",
|
|
71
|
+
"shaka-player-react": "^1.1.5",
|
|
72
|
+
"styled-components": "^6.0.0",
|
|
73
|
+
"zod": "^4.0.0",
|
|
74
|
+
"zustand": "^5.0.3"
|
|
75
|
+
},
|
|
76
|
+
"dependencies": {
|
|
77
|
+
"@gfazioli/mantine-audio": "^1.0.2",
|
|
78
|
+
"@gfazioli/mantine-onboarding-tour": "^4.0.0",
|
|
79
|
+
"@gfazioli/mantine-video": "^1.1.2"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as A, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as D, useRef as w, useCallback as g, useEffect as y } from "react";
|
|
3
|
-
import { useTranslation as N } from "react-i18next";
|
|
4
|
-
import { useNavigate as E } from "react-router-dom";
|
|
5
|
-
import { Flex as a, Text as l, Box as k, Button as b, Divider as v, Group as d } from "@mantine/core";
|
|
6
|
-
import { IconArrowsSort as F } from "@tabler/icons-react";
|
|
7
|
-
import { useAppContainerActionsStore as j } from "../AppContainer/hooks/useAppContainerActionsStore.js";
|
|
8
|
-
import { useAppContainerDataStore as S } from "../AppContainer/hooks/useAppContainerDataStore.js";
|
|
9
|
-
import { CustomKBD as C } from "../CustomKBD/index.js";
|
|
10
|
-
import { NoData as B } from "../NoData/NoData.js";
|
|
11
|
-
import I from "./NotificationCard.js";
|
|
12
|
-
import K from "./Notification.module.css.js";
|
|
13
|
-
const J = () => {
|
|
14
|
-
const { t: r } = N("appContainer"), h = E(), { notifications: n } = S(), { readNotificationsFunc: p } = j(), [s, c] = D(null), u = w([]), x = w(null), m = g(
|
|
15
|
-
async (t) => {
|
|
16
|
-
if (!n?.length) return;
|
|
17
|
-
const o = `/invitation/${n[t].link}`;
|
|
18
|
-
p({
|
|
19
|
-
messageIds: [n[t].id],
|
|
20
|
-
markAll: !1,
|
|
21
|
-
action: 1
|
|
22
|
-
}), h(o);
|
|
23
|
-
},
|
|
24
|
-
[h, n, p]
|
|
25
|
-
), f = g(
|
|
26
|
-
(t) => {
|
|
27
|
-
t.key === "ArrowDown" ? (t.preventDefault(), c(
|
|
28
|
-
(o) => o === null ? 0 : Math.min(o + 1, n?.length - 1)
|
|
29
|
-
)) : t.key === "ArrowUp" ? (t.preventDefault(), c(
|
|
30
|
-
(o) => o === null ? n?.length - 1 : Math.max(o - 1, 0)
|
|
31
|
-
)) : t.key === "Enter" && s !== null && n?.length && m(s);
|
|
32
|
-
},
|
|
33
|
-
[s, m, n?.length]
|
|
34
|
-
);
|
|
35
|
-
return y(() => (window.addEventListener("keydown", f), () => {
|
|
36
|
-
c(null), window.removeEventListener("keydown", f);
|
|
37
|
-
}), [f]), y(() => {
|
|
38
|
-
const t = u.current[s ?? -1];
|
|
39
|
-
t && t.scrollIntoView({
|
|
40
|
-
behavior: "smooth",
|
|
41
|
-
block: "nearest"
|
|
42
|
-
});
|
|
43
|
-
}, [s]), /* @__PURE__ */ i(A, { children: [
|
|
44
|
-
/* @__PURE__ */ i(a, { p: "sm", justify: "space-between", children: [
|
|
45
|
-
/* @__PURE__ */ i(a, { children: [
|
|
46
|
-
/* @__PURE__ */ e(l, { fz: "sm", children: r("notification") }),
|
|
47
|
-
/* @__PURE__ */ e(k, { className: K.headerCounter, children: /* @__PURE__ */ e(l, { fz: "xs", children: n?.length < 100 ? n?.length : "99+" }) })
|
|
48
|
-
] }),
|
|
49
|
-
/* @__PURE__ */ e(b, { h: 22, variant: "transparent", size: "xs", children: /* @__PURE__ */ e(l, { h: 22, fz: "md", children: r("showAll") }) })
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ e(v, {}),
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
d,
|
|
54
|
-
{
|
|
55
|
-
mah: 280,
|
|
56
|
-
ref: x,
|
|
57
|
-
style: {
|
|
58
|
-
overflowY: "auto"
|
|
59
|
-
},
|
|
60
|
-
gap: 0,
|
|
61
|
-
children: n ? n?.map((t, o) => /* @__PURE__ */ e(
|
|
62
|
-
k,
|
|
63
|
-
{
|
|
64
|
-
onClick: () => m(o),
|
|
65
|
-
style: {
|
|
66
|
-
overflow: "hidden"
|
|
67
|
-
},
|
|
68
|
-
children: /* @__PURE__ */ e(
|
|
69
|
-
I,
|
|
70
|
-
{
|
|
71
|
-
isFocused: o === s,
|
|
72
|
-
notification: t,
|
|
73
|
-
ref: (z) => {
|
|
74
|
-
u.current[o] = z;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
},
|
|
79
|
-
t.id
|
|
80
|
-
)) : /* @__PURE__ */ e(
|
|
81
|
-
B,
|
|
82
|
-
{
|
|
83
|
-
py: "md",
|
|
84
|
-
size: 140,
|
|
85
|
-
my: 20,
|
|
86
|
-
illustration: "noNotifications",
|
|
87
|
-
descriptionProps: { maw: 300 },
|
|
88
|
-
description: r("emptyNotifyDescription")
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
}
|
|
92
|
-
),
|
|
93
|
-
/* @__PURE__ */ e(v, {}),
|
|
94
|
-
/* @__PURE__ */ i(a, { bottom: 0, p: "sm", justify: "space-between", children: [
|
|
95
|
-
/* @__PURE__ */ i(a, { gap: 24, children: [
|
|
96
|
-
/* @__PURE__ */ i(d, { gap: 8, children: [
|
|
97
|
-
/* @__PURE__ */ e(
|
|
98
|
-
C,
|
|
99
|
-
{
|
|
100
|
-
miw: 26,
|
|
101
|
-
w: 26,
|
|
102
|
-
bbw: 4,
|
|
103
|
-
value: /* @__PURE__ */ e(F, { stroke: 1.5, width: 16, height: 16 })
|
|
104
|
-
}
|
|
105
|
-
),
|
|
106
|
-
/* @__PURE__ */ e(l, { fz: "sm", fw: 400, children: r("choose") })
|
|
107
|
-
] }),
|
|
108
|
-
/* @__PURE__ */ i(d, { gap: 8, children: [
|
|
109
|
-
/* @__PURE__ */ e(C, { miw: 45, w: 45, bbw: 4, value: "Enter" }),
|
|
110
|
-
/* @__PURE__ */ e(l, { fz: "sm", fw: 400, children: r("open") })
|
|
111
|
-
] })
|
|
112
|
-
] }),
|
|
113
|
-
/* @__PURE__ */ e(b, { h: 22, variant: "transparent", size: "xs", children: /* @__PURE__ */ e(l, { h: 22, fz: "md", children: r("closeAll") }) })
|
|
114
|
-
] })
|
|
115
|
-
] });
|
|
116
|
-
};
|
|
117
|
-
export {
|
|
118
|
-
J as Notification
|
|
119
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { UserNotifications } from '../AppContainer/components/menus/UserMenu/MenuUserDropdown';
|
|
3
|
-
interface NotificationCardProps {
|
|
4
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
5
|
-
isFocused: boolean;
|
|
6
|
-
notification: UserNotifications;
|
|
7
|
-
}
|
|
8
|
-
declare const NotificationCard: ({ isFocused, notification, ref, }: NotificationCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default NotificationCard;
|
|
10
|
-
//# sourceMappingURL=NotificationCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NotificationCard.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/NotificationCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,4DAA4D,CAAC;AAE/F,UAAU,qBAAqB;IAC7B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,QAAA,MAAM,gBAAgB,GAAI,mCAIvB,qBAAqB,4CAgFvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as p } from "react-i18next";
|
|
3
|
-
import { Flex as a, Text as t, Tooltip as g } from "@mantine/core";
|
|
4
|
-
import { IconFileText as x, IconCheckbox as h, IconX as u } from "@tabler/icons-react";
|
|
5
|
-
const D = ({
|
|
6
|
-
isFocused: n,
|
|
7
|
-
notification: e,
|
|
8
|
-
ref: s
|
|
9
|
-
}) => {
|
|
10
|
-
const { i18n: o } = p("appContainer"), i = (f) => {
|
|
11
|
-
const m = o.language === "ru" ? "ru-RU" : "en-US";
|
|
12
|
-
return f.toLocaleDateString(m, {
|
|
13
|
-
day: "numeric",
|
|
14
|
-
month: "long",
|
|
15
|
-
year: "numeric"
|
|
16
|
-
});
|
|
17
|
-
}, c = new Date(e.createdAt), d = i(c);
|
|
18
|
-
return /* @__PURE__ */ l(
|
|
19
|
-
a,
|
|
20
|
-
{
|
|
21
|
-
ref: s,
|
|
22
|
-
px: 8,
|
|
23
|
-
w: "100%",
|
|
24
|
-
py: "sm",
|
|
25
|
-
justify: "flex-start",
|
|
26
|
-
style: {
|
|
27
|
-
backgroundColor: n ? "#f0f0f0" : "transparent",
|
|
28
|
-
cursor: "pointer",
|
|
29
|
-
borderRadius: "4px"
|
|
30
|
-
},
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ l(a, { w: 274, justify: "flex-start", children: [
|
|
33
|
-
/* @__PURE__ */ r(
|
|
34
|
-
x,
|
|
35
|
-
{
|
|
36
|
-
size: 20,
|
|
37
|
-
color: "gray",
|
|
38
|
-
style: { alignSelf: "flex-start" }
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ r(t, { fz: 16, style: { alignSelf: "flex-start" }, children: e.pageIcon === "DefaultIcon" ? /* @__PURE__ */ r(h, { size: 20, color: "gray" }) : e.pageIcon }),
|
|
42
|
-
/* @__PURE__ */ l(a, { direction: "column", gap: 0, w: 200, children: [
|
|
43
|
-
/* @__PURE__ */ r(
|
|
44
|
-
g,
|
|
45
|
-
{
|
|
46
|
-
disabled: e.description.length < 40,
|
|
47
|
-
label: e.description,
|
|
48
|
-
children: /* @__PURE__ */ r(
|
|
49
|
-
t,
|
|
50
|
-
{
|
|
51
|
-
fz: "sm",
|
|
52
|
-
style: {
|
|
53
|
-
alignSelf: "flex-start",
|
|
54
|
-
lineHeight: "16px"
|
|
55
|
-
},
|
|
56
|
-
lineClamp: 2,
|
|
57
|
-
children: e.description
|
|
58
|
-
}
|
|
59
|
-
)
|
|
60
|
-
}
|
|
61
|
-
),
|
|
62
|
-
/* @__PURE__ */ l(
|
|
63
|
-
t,
|
|
64
|
-
{
|
|
65
|
-
c: "dimmed",
|
|
66
|
-
fz: "sm",
|
|
67
|
-
h: "16",
|
|
68
|
-
style: { alignSelf: "flex-start" },
|
|
69
|
-
children: [
|
|
70
|
-
" ",
|
|
71
|
-
e.pageName
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] })
|
|
76
|
-
] }),
|
|
77
|
-
/* @__PURE__ */ r(t, { c: "dimmed", fz: "sm", w: 98, style: { alignSelf: "flex-start" }, children: d }),
|
|
78
|
-
/* @__PURE__ */ r(
|
|
79
|
-
u,
|
|
80
|
-
{
|
|
81
|
-
width: 12,
|
|
82
|
-
height: 12,
|
|
83
|
-
color: "gray",
|
|
84
|
-
style: { alignSelf: "flex-start", marginTop: "5px" }
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
export {
|
|
92
|
-
D as default
|
|
93
|
-
};
|