@layers-app/shared 0.4.7 → 0.4.8

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.
Files changed (378) hide show
  1. package/dist/assets/default-workspace-avatar.jpg.js +1 -1
  2. package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
  3. package/dist/components/AliasTextInput/AliasTextInput.js +32 -32
  4. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  5. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  6. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  7. package/dist/components/AppContainer/AppContainer.js +76 -71
  8. package/dist/components/AppContainer/AppContainer.module.css.js +14 -14
  9. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +77 -49
  11. package/dist/components/AppContainer/components/NavbarContent.d.ts.map +1 -1
  12. package/dist/components/AppContainer/components/NavbarContent.js +16 -2
  13. package/dist/components/AppContainer/components/ToolSidebar.d.ts +5 -0
  14. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  15. package/dist/components/AppContainer/components/ToolSidebar.js +42 -30
  16. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +90 -90
  17. package/dist/components/AppContainer/types.d.ts +12 -0
  18. package/dist/components/AppContainer/types.d.ts.map +1 -1
  19. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  20. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts +0 -2
  21. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.d.ts.map +1 -1
  22. package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryContext.js +17 -22
  23. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +22 -22
  24. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  25. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +120 -172
  26. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  27. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -32
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts +3 -1
  29. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  30. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +237 -93
  31. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +22 -20
  32. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -4
  33. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +8 -8
  34. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +1 -1
  35. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +1 -1
  36. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +44 -44
  37. package/dist/components/Chat/ChatInput/index.d.ts +13 -1
  38. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -1
  39. package/dist/components/Chat/ChatInput/index.js +264 -164
  40. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts +16 -0
  41. package/dist/components/Chat/ChatInput/useVoiceRecorder.d.ts.map +1 -0
  42. package/dist/components/Chat/ChatInput/useVoiceRecorder.js +83 -0
  43. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +4 -4
  44. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +20 -16
  45. package/dist/components/Chat/ChatMessage/index.d.ts +16 -0
  46. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -1
  47. package/dist/components/Chat/ChatMessage/index.js +153 -118
  48. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +1 -1
  49. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +4 -4
  50. package/dist/components/Chat/DialogList/DialogList.module.css.js +1 -1
  51. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +4 -4
  52. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +1 -1
  53. package/dist/components/Chat/MessageActions/index.d.ts +2 -0
  54. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -1
  55. package/dist/components/Chat/MessageActions/index.js +188 -50
  56. package/dist/components/Chat/MessageAuthor/index.d.ts +7 -1
  57. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -1
  58. package/dist/components/Chat/MessageAuthor/index.js +39 -25
  59. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +1 -1
  60. package/dist/components/Chat/MessageList/MessageList.module.css.js +14 -12
  61. package/dist/components/Chat/MessageList/index.d.ts +17 -25
  62. package/dist/components/Chat/MessageList/index.d.ts.map +1 -1
  63. package/dist/components/Chat/MessageList/index.js +201 -149
  64. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +3 -3
  65. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +12 -12
  66. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +7 -7
  67. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +8 -8
  68. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +1 -1
  69. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  70. package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
  71. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  72. package/dist/components/ColorPicker/ColorPickerList.js +83 -72
  73. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +1 -0
  74. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  75. package/dist/components/ColorPicker/ColorPickerToolbar.js +94 -85
  76. package/dist/components/ColorPicker/icons.js +5 -5
  77. package/dist/components/ColorPicker/types.d.ts +6 -0
  78. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  79. package/dist/components/ColorPicker/types.js +53 -11
  80. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  81. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  82. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  83. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  84. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts +2 -1
  85. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  86. package/dist/components/CommentComposer/CommentEditorHotkeys.js +29 -26
  87. package/dist/components/CommentComposer/index.d.ts +1 -1
  88. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  89. package/dist/components/CommentComposer/index.js +70 -68
  90. package/dist/components/CommentComposer/types.d.ts +6 -0
  91. package/dist/components/CommentComposer/types.d.ts.map +1 -1
  92. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  93. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  94. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  95. package/dist/components/CustomKBD/index.js +21 -22
  96. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -0
  97. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  98. package/dist/components/EmojiPicker/EmojiPicker.js +129 -121
  99. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  100. package/dist/components/EntityTitle/EntityTitle.d.ts +3 -4
  101. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  102. package/dist/components/EntityTitle/EntityTitle.js +81 -80
  103. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  104. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  105. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  106. package/dist/components/FilePicker/FilePicker.module.css.js +7 -7
  107. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  108. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  109. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  110. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  111. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  112. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  113. package/dist/components/FormViewer/helpers/conditions.d.ts.map +1 -1
  114. package/dist/components/FormViewer/helpers/conditions.js +33 -17
  115. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  116. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  117. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  118. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  119. package/dist/components/Loaders/styles.module.css.js +6 -6
  120. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  121. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  122. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  123. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  124. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  125. package/dist/components/Notification/InfiniteScroll.d.ts +12 -0
  126. package/dist/components/Notification/InfiniteScroll.d.ts.map +1 -0
  127. package/dist/components/Notification/InfiniteScroll.js +42 -0
  128. package/dist/components/Notification/Notification.d.ts +4 -1
  129. package/dist/components/Notification/Notification.d.ts.map +1 -1
  130. package/dist/components/Notification/Notification.module.css.js +28 -4
  131. package/dist/components/Notification/atoms/ActionBadge.d.ts +11 -0
  132. package/dist/components/Notification/atoms/ActionBadge.d.ts.map +1 -0
  133. package/dist/components/Notification/atoms/ActionBadge.js +53 -0
  134. package/dist/components/Notification/atoms/ArchiveIcon.d.ts +7 -0
  135. package/dist/components/Notification/atoms/ArchiveIcon.d.ts.map +1 -0
  136. package/dist/components/Notification/atoms/ArchiveIcon.js +40 -0
  137. package/dist/components/Notification/atoms/InboxIcon.d.ts +7 -0
  138. package/dist/components/Notification/atoms/InboxIcon.d.ts.map +1 -0
  139. package/dist/components/Notification/atoms/InboxIcon.js +33 -0
  140. package/dist/components/Notification/atoms/MarkReadIcon.d.ts +7 -0
  141. package/dist/components/Notification/atoms/MarkReadIcon.d.ts.map +1 -0
  142. package/dist/components/Notification/atoms/MarkReadIcon.js +33 -0
  143. package/dist/components/Notification/atoms/ResourceIcon.d.ts +7 -0
  144. package/dist/components/Notification/atoms/ResourceIcon.d.ts.map +1 -0
  145. package/dist/components/Notification/atoms/TabBadge.d.ts +7 -0
  146. package/dist/components/Notification/atoms/TabBadge.d.ts.map +1 -0
  147. package/dist/components/Notification/atoms/TabBadge.js +32 -0
  148. package/dist/components/Notification/atoms/UnreadDot.d.ts +6 -0
  149. package/dist/components/Notification/atoms/UnreadDot.d.ts.map +1 -0
  150. package/dist/components/Notification/atoms/UnreadDot.js +23 -0
  151. package/dist/components/Notification/atoms/index.d.ts +5 -0
  152. package/dist/components/Notification/atoms/index.d.ts.map +1 -0
  153. package/dist/components/Notification/hooks/index.d.ts +8 -0
  154. package/dist/components/Notification/hooks/index.d.ts.map +1 -0
  155. package/dist/components/Notification/hooks/useInboxActions.d.ts +12 -0
  156. package/dist/components/Notification/hooks/useInboxActions.d.ts.map +1 -0
  157. package/dist/components/Notification/hooks/useInboxActions.js +58 -0
  158. package/dist/components/Notification/hooks/useInboxLoader.d.ts +8 -0
  159. package/dist/components/Notification/hooks/useInboxLoader.d.ts.map +1 -0
  160. package/dist/components/Notification/hooks/useInboxLoader.js +49 -0
  161. package/dist/components/Notification/hooks/useNotificationItem.d.ts +26 -0
  162. package/dist/components/Notification/hooks/useNotificationItem.d.ts.map +1 -0
  163. package/dist/components/Notification/hooks/useNotificationItem.js +51 -0
  164. package/dist/components/Notification/hooks/useNotificationStore.d.ts +49 -0
  165. package/dist/components/Notification/hooks/useNotificationStore.d.ts.map +1 -0
  166. package/dist/components/Notification/hooks/useNotificationStore.js +139 -0
  167. package/dist/components/Notification/hooks/useNotificationStream.d.ts +2 -0
  168. package/dist/components/Notification/hooks/useNotificationStream.d.ts.map +1 -0
  169. package/dist/components/Notification/hooks/useNotificationStream.js +86 -0
  170. package/dist/components/Notification/hooks/useNotificationTime.d.ts +2 -0
  171. package/dist/components/Notification/hooks/useNotificationTime.d.ts.map +1 -0
  172. package/dist/components/Notification/hooks/useNotificationTime.js +23 -0
  173. package/dist/components/Notification/hooks/useNotificationsApi.d.ts +25 -0
  174. package/dist/components/Notification/hooks/useNotificationsApi.d.ts.map +1 -0
  175. package/dist/components/Notification/hooks/useNotificationsApi.js +64 -0
  176. package/dist/components/Notification/lib/api.d.ts +4 -0
  177. package/dist/components/Notification/lib/api.d.ts.map +1 -0
  178. package/dist/components/Notification/lib/api.js +19 -0
  179. package/dist/components/Notification/lib/index.d.ts +5 -0
  180. package/dist/components/Notification/lib/index.d.ts.map +1 -0
  181. package/dist/components/Notification/lib/notificationText.d.ts +10 -0
  182. package/dist/components/Notification/lib/notificationText.d.ts.map +1 -0
  183. package/dist/components/Notification/lib/notificationText.js +131 -0
  184. package/dist/components/Notification/lib/stripHtml.d.ts +2 -0
  185. package/dist/components/Notification/lib/stripHtml.d.ts.map +1 -0
  186. package/dist/components/Notification/lib/stripHtml.js +6 -0
  187. package/dist/components/Notification/lib/types.d.ts +45 -0
  188. package/dist/components/Notification/lib/types.d.ts.map +1 -0
  189. package/dist/components/Notification/lib/types.js +9 -0
  190. package/dist/components/Notification/molecules/InboxEmpty.d.ts +8 -0
  191. package/dist/components/Notification/molecules/InboxEmpty.d.ts.map +1 -0
  192. package/dist/components/Notification/molecules/InboxEmpty.js +21 -0
  193. package/dist/components/Notification/molecules/InboxHeader.d.ts +17 -0
  194. package/dist/components/Notification/molecules/InboxHeader.d.ts.map +1 -0
  195. package/dist/components/Notification/molecules/InboxHeader.js +73 -0
  196. package/dist/components/Notification/molecules/InboxTabs.d.ts +15 -0
  197. package/dist/components/Notification/molecules/InboxTabs.d.ts.map +1 -0
  198. package/dist/components/Notification/molecules/InboxTabs.js +60 -0
  199. package/dist/components/Notification/molecules/NotificationActions.d.ts +9 -0
  200. package/dist/components/Notification/molecules/NotificationActions.d.ts.map +1 -0
  201. package/dist/components/Notification/molecules/NotificationActions.js +64 -0
  202. package/dist/components/Notification/molecules/NotificationAvatar.d.ts +17 -0
  203. package/dist/components/Notification/molecules/NotificationAvatar.d.ts.map +1 -0
  204. package/dist/components/Notification/molecules/NotificationAvatar.js +38 -0
  205. package/dist/components/Notification/molecules/NotificationContent.d.ts +22 -0
  206. package/dist/components/Notification/molecules/NotificationContent.d.ts.map +1 -0
  207. package/dist/components/Notification/molecules/NotificationContent.js +183 -0
  208. package/dist/components/Notification/molecules/index.d.ts +7 -0
  209. package/dist/components/Notification/molecules/index.d.ts.map +1 -0
  210. package/dist/components/Notification/organisms/InboxItem.d.ts +14 -0
  211. package/dist/components/Notification/organisms/InboxItem.d.ts.map +1 -0
  212. package/dist/components/Notification/organisms/InboxItem.js +100 -0
  213. package/dist/components/Notification/organisms/InboxPanel.d.ts +4 -0
  214. package/dist/components/Notification/organisms/InboxPanel.d.ts.map +1 -0
  215. package/dist/components/Notification/organisms/InboxPanel.js +99 -0
  216. package/dist/components/Notification/organisms/index.d.ts +3 -0
  217. package/dist/components/Notification/organisms/index.d.ts.map +1 -0
  218. package/dist/components/PillTabs/PillTabs.module.css.js +1 -1
  219. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  220. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  221. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  222. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  223. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  224. package/dist/components/modals/RemoveConfirmModal.js +27 -26
  225. package/dist/components/table/FrontTable.d.ts.map +1 -1
  226. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  227. package/dist/config/envConfig.d.ts +2 -0
  228. package/dist/config/envConfig.d.ts.map +1 -1
  229. package/dist/config/envConfig.js +29 -28
  230. package/dist/helpers/getFileIcons.js +5 -5
  231. package/dist/helpers/getFileType.d.ts.map +1 -1
  232. package/dist/helpers/getFileType.js +11 -2
  233. package/dist/helpers/platform.d.ts +1 -1
  234. package/dist/helpers/platform.d.ts.map +1 -1
  235. package/dist/helpers/platform.js +1 -0
  236. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  237. package/dist/helpers/showNotifications.module.css.js +1 -1
  238. package/dist/index.css +1 -1
  239. package/dist/index.d.ts +0 -2
  240. package/dist/index.d.ts.map +1 -1
  241. package/dist/index.js +560 -571
  242. package/dist/lang/locales/ui_en.json.js +1 -1
  243. package/dist/lang/locales/ui_es.json.js +1 -1
  244. package/dist/lang/locales/ui_ru.json.js +1 -1
  245. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.context.js +15 -0
  246. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.js +228 -0
  247. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/Audio.module.css.js +4 -0
  248. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioControls.js +19 -0
  249. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioMuteButton.js +30 -0
  250. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioPlayButton.js +40 -0
  251. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSkipButton.js +28 -0
  252. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpectrum.js +137 -0
  253. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioSpeedControl.js +31 -0
  254. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeDisplay.js +44 -0
  255. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioTimeline.js +71 -0
  256. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioVolumeSlider.js +43 -0
  257. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/components/AudioWaveform.js +166 -0
  258. package/dist/node_modules/@gfazioli/mantine-audio/dist/esm/use-audio.js +201 -0
  259. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.context.js +15 -0
  260. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.js +272 -0
  261. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/Video.module.css.js +4 -0
  262. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoCaptionsButton.js +55 -0
  263. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoControls.js +30 -0
  264. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoFullscreenButton.js +31 -0
  265. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoMuteButton.js +29 -0
  266. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPiPButton.js +29 -0
  267. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoPlayButton.js +28 -0
  268. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoSkipButton.js +27 -0
  269. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeDisplay.js +44 -0
  270. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/components/VideoTimeline.js +70 -0
  271. package/dist/node_modules/@gfazioli/mantine-video/dist/esm/use-video.js +170 -0
  272. package/docs/README.md +499 -499
  273. package/package.json +80 -79
  274. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts +0 -15
  275. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.d.ts.map +0 -1
  276. package/dist/components/AttachmentsGalleryModal/components/AttachmentVideoPlayer.js +0 -36
  277. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts +0 -14
  278. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.d.ts.map +0 -1
  279. package/dist/components/AttachmentsGalleryModal/components/LegacyAttachmentVideoPlayer.js +0 -31
  280. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts +0 -18
  281. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.d.ts.map +0 -1
  282. package/dist/components/AttachmentsGalleryModal/components/StatusVideoPlayer.js +0 -35
  283. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts +0 -33
  284. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.d.ts.map +0 -1
  285. package/dist/components/AttachmentsGalleryModal/components/useAttachmentVideoStatus.js +0 -70
  286. package/dist/components/Notification/Notification.js +0 -119
  287. package/dist/components/Notification/NotificationCard.d.ts +0 -10
  288. package/dist/components/Notification/NotificationCard.d.ts.map +0 -1
  289. package/dist/components/Notification/NotificationCard.js +0 -93
  290. package/dist/components/VideoPlayer/VideoPlayer.d.ts +0 -24
  291. package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +0 -1
  292. package/dist/components/VideoPlayer/VideoPlayer.js +0 -727
  293. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts +0 -8
  294. package/dist/components/VideoPlayer/components/MobileDrawer/index.d.ts.map +0 -1
  295. package/dist/components/VideoPlayer/components/MobileDrawer/index.js +0 -67
  296. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts +0 -7
  297. package/dist/components/VideoPlayer/components/SelectListOptionButton.d.ts.map +0 -1
  298. package/dist/components/VideoPlayer/components/SelectListOptionButton.js +0 -44
  299. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts +0 -9
  300. package/dist/components/VideoPlayer/components/StoryboardPreview.d.ts.map +0 -1
  301. package/dist/components/VideoPlayer/components/StoryboardPreview.js +0 -38
  302. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts +0 -33
  303. package/dist/components/VideoPlayer/components/VideoCustomControls.d.ts.map +0 -1
  304. package/dist/components/VideoPlayer/components/VideoCustomControls.js +0 -601
  305. package/dist/components/VideoPlayer/components/VideoIcons.d.ts +0 -25
  306. package/dist/components/VideoPlayer/components/VideoIcons.d.ts.map +0 -1
  307. package/dist/components/VideoPlayer/components/VideoIcons.js +0 -145
  308. package/dist/components/VideoPlayer/components/VideoMenu.d.ts +0 -27
  309. package/dist/components/VideoPlayer/components/VideoMenu.d.ts.map +0 -1
  310. package/dist/components/VideoPlayer/components/VideoMenu.js +0 -77
  311. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts +0 -17
  312. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.d.ts.map +0 -1
  313. package/dist/components/VideoPlayer/components/VideoMobileSettingsDrawer.js +0 -289
  314. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts +0 -10
  315. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.d.ts.map +0 -1
  316. package/dist/components/VideoPlayer/components/VideoQualityMenu/index.js +0 -55
  317. package/dist/components/VideoPlayer/components/VideoSelect.d.ts +0 -10
  318. package/dist/components/VideoPlayer/components/VideoSelect.d.ts.map +0 -1
  319. package/dist/components/VideoPlayer/components/VideoSelect.js +0 -168
  320. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts +0 -12
  321. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.d.ts.map +0 -1
  322. package/dist/components/VideoPlayer/components/VideoSettingsMenu/index.js +0 -48
  323. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts +0 -25
  324. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.d.ts.map +0 -1
  325. package/dist/components/VideoPlayer/components/VideoSettingsModal/ChaptersSection.js +0 -384
  326. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts +0 -21
  327. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.d.ts.map +0 -1
  328. package/dist/components/VideoPlayer/components/VideoSettingsModal/CoverSection.js +0 -264
  329. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts +0 -10
  330. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.d.ts.map +0 -1
  331. package/dist/components/VideoPlayer/components/VideoSettingsModal/FooterActions.js +0 -39
  332. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts +0 -14
  333. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.d.ts.map +0 -1
  334. package/dist/components/VideoPlayer/components/VideoSettingsModal/ManualSubtitlesPanel.js +0 -360
  335. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts +0 -16
  336. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitleTrackRow.d.ts.map +0 -1
  337. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts +0 -14
  338. package/dist/components/VideoPlayer/components/VideoSettingsModal/SubtitlesSection.d.ts.map +0 -1
  339. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts +0 -4
  340. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.d.ts.map +0 -1
  341. package/dist/components/VideoPlayer/components/VideoSettingsModal/context.js +0 -14
  342. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts +0 -22
  343. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.d.ts.map +0 -1
  344. package/dist/components/VideoPlayer/components/VideoSettingsModal/index.js +0 -211
  345. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts +0 -11
  346. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.d.ts.map +0 -1
  347. package/dist/components/VideoPlayer/components/VideoSpeedMenu/index.js +0 -41
  348. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts +0 -10
  349. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.d.ts.map +0 -1
  350. package/dist/components/VideoPlayer/components/VideoSubtitlesMenu/index.js +0 -69
  351. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts +0 -21
  352. package/dist/components/VideoPlayer/hooks/useStoryboard.d.ts.map +0 -1
  353. package/dist/components/VideoPlayer/hooks/useStoryboard.js +0 -91
  354. package/dist/components/VideoPlayer/index.d.ts +0 -11
  355. package/dist/components/VideoPlayer/index.d.ts.map +0 -1
  356. package/dist/components/VideoPlayer/types.d.ts +0 -101
  357. package/dist/components/VideoPlayer/types.d.ts.map +0 -1
  358. package/dist/components/VideoPlayer/utils/chapters.d.ts +0 -8
  359. package/dist/components/VideoPlayer/utils/chapters.d.ts.map +0 -1
  360. package/dist/components/VideoPlayer/utils/chapters.js +0 -38
  361. package/dist/components/VideoPlayer/utils/storyboard.d.ts +0 -5
  362. package/dist/components/VideoPlayer/utils/storyboard.d.ts.map +0 -1
  363. package/dist/components/VideoPlayer/utils/storyboard.js +0 -47
  364. package/dist/components/VideoPlayer/utils/subtitles.d.ts +0 -18
  365. package/dist/components/VideoPlayer/utils/subtitles.d.ts.map +0 -1
  366. package/dist/components/VideoPlayer/utils/subtitles.js +0 -23
  367. package/dist/components/VideoPlayer/utils/touch.d.ts +0 -3
  368. package/dist/components/VideoPlayer/utils/touch.d.ts.map +0 -1
  369. package/dist/components/VideoPlayer/utils/touch.js +0 -5
  370. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts +0 -10
  371. package/dist/components/VideoPlayer/utils/videoPlayerUtils.d.ts.map +0 -1
  372. package/dist/components/VideoPlayer/utils/videoPlayerUtils.js +0 -22
  373. package/dist/components/VideoPlayer/utils/videoSettings.d.ts +0 -69
  374. package/dist/components/VideoPlayer/utils/videoSettings.d.ts.map +0 -1
  375. package/dist/components/VideoPlayer/utils/videoSettings.js +0 -90
  376. package/dist/videoSettings/createVideoSettingsDataSource.d.ts +0 -19
  377. package/dist/videoSettings/createVideoSettingsDataSource.d.ts.map +0 -1
  378. package/dist/videoSettings/createVideoSettingsDataSource.js +0 -127
@@ -1,23 +1,23 @@
1
- const t = "_container_x64pi_1", e = "_depthBox_x64pi_13", n = "_itemContainer_x64pi_38", o = "_item_x64pi_38", i = "_icon_x64pi_91", _ = "_chevron_x64pi_95", p = "_droppable_x64pi_120", a = "_draggableOverlay_x64pi_177", c = "_editInput_x64pi_197", r = {
1
+ const t = "_container_1khh8_1", e = "_depthBox_1khh8_25", n = "_itemContainer_1khh8_75", o = "_item_1khh8_75", _ = "_icon_1khh8_181", h = "_chevron_1khh8_189", a = "_droppable_1khh8_239", c = "_draggableOverlay_1khh8_353", r = "_editInput_1khh8_393", i = {
2
2
  container: t,
3
3
  depthBox: e,
4
4
  itemContainer: n,
5
5
  item: o,
6
- icon: i,
7
- chevron: _,
8
- droppable: p,
9
- draggableOverlay: a,
10
- editInput: c
6
+ icon: _,
7
+ chevron: h,
8
+ droppable: a,
9
+ draggableOverlay: c,
10
+ editInput: r
11
11
  };
12
12
  export {
13
- _ as chevron,
13
+ h as chevron,
14
14
  t as container,
15
- r as default,
15
+ i as default,
16
16
  e as depthBox,
17
- a as draggableOverlay,
18
- p as droppable,
19
- c as editInput,
20
- i as icon,
17
+ c as draggableOverlay,
18
+ a as droppable,
19
+ r as editInput,
20
+ _ as icon,
21
21
  o as item,
22
22
  n as itemContainer
23
23
  };
@@ -1,7 +1,7 @@
1
- const e = "_resizer_hdrhk_1", r = {
1
+ const e = "_resizer_1qg2p_1", s = {
2
2
  resizer: e
3
3
  };
4
4
  export {
5
- r as default,
5
+ s as default,
6
6
  e as resizer
7
7
  };
@@ -1,19 +1,19 @@
1
- const e = "_previewBoxTitle_1xmos_1", o = "_previewBox_1xmos_1", r = "_previewContainer_1xmos_45", t = "_previewHeader_1xmos_58", i = "_headerDot_1xmos_70", s = "_previewContent_1xmos_80", n = "_processing_1xmos_103", _ = {
1
+ const e = "_previewBoxTitle_p1noi_1", o = "_previewBox_p1noi_1", i = "_previewContainer_p1noi_89", n = "_previewHeader_p1noi_115", r = "_headerDot_p1noi_139", p = "_previewContent_p1noi_159", t = "_processing_p1noi_205", _ = {
2
2
  previewBoxTitle: e,
3
3
  previewBox: o,
4
- previewContainer: r,
5
- previewHeader: t,
6
- headerDot: i,
7
- previewContent: s,
8
- processing: n
4
+ previewContainer: i,
5
+ previewHeader: n,
6
+ headerDot: r,
7
+ previewContent: p,
8
+ processing: t
9
9
  };
10
10
  export {
11
11
  _ as default,
12
- i as headerDot,
12
+ r as headerDot,
13
13
  o as previewBox,
14
14
  e as previewBoxTitle,
15
- r as previewContainer,
16
- s as previewContent,
17
- t as previewHeader,
18
- n as processing
15
+ i as previewContainer,
16
+ p as previewContent,
17
+ n as previewHeader,
18
+ t as processing
19
19
  };
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ interface InfiniteScrollProps {
3
+ children: ReactNode;
4
+ isLoading?: boolean;
5
+ height?: number | string;
6
+ threshold?: number;
7
+ disabled?: boolean;
8
+ onLoadMore?: () => void;
9
+ }
10
+ export declare function InfiniteScroll({ children, isLoading, height, threshold, disabled, onLoadMore, }: InfiniteScrollProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=InfiniteScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InfiniteScroll.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/InfiniteScroll.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAIvD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,SAAiB,EACjB,MAAe,EACf,SAAe,EACf,QAAgB,EAChB,UAAU,GACX,EAAE,mBAAmB,2CA4CrB"}
@@ -0,0 +1,42 @@
1
+ import { jsx as l, jsxs as p } from "react/jsx-runtime";
2
+ import { useRef as n, useCallback as S } from "react";
3
+ import { ScrollArea as R, Stack as g, Center as d, Loader as H } from "@mantine/core";
4
+ function k({
5
+ children: f,
6
+ isLoading: r = !1,
7
+ height: a = "100%",
8
+ threshold: o = 200,
9
+ disabled: t = !1,
10
+ onLoadMore: c
11
+ }) {
12
+ const i = n(null), s = n(r), h = n(t);
13
+ s.current = r, h.current = t;
14
+ const u = S(
15
+ ({ y: m }) => {
16
+ if (s.current || h.current) return;
17
+ const e = i.current?.querySelector(
18
+ ".mantine-ScrollArea-viewport"
19
+ );
20
+ if (!e?.clientHeight || !e?.scrollHeight) return;
21
+ m + e.clientHeight + o >= e.scrollHeight && c && c();
22
+ },
23
+ [o, c]
24
+ );
25
+ return /* @__PURE__ */ l(
26
+ R,
27
+ {
28
+ ref: i,
29
+ h: a,
30
+ scrollbars: "y",
31
+ pr: 12,
32
+ onScrollPositionChange: u,
33
+ children: /* @__PURE__ */ p(g, { gap: 0, children: [
34
+ f,
35
+ r && !t && /* @__PURE__ */ l(d, { py: "md", children: /* @__PURE__ */ l(H, { size: "sm" }) })
36
+ ] })
37
+ }
38
+ );
39
+ }
40
+ export {
41
+ k as InfiniteScroll
42
+ };
@@ -1,2 +1,5 @@
1
- export declare const Notification: () => import("react/jsx-runtime").JSX.Element;
1
+ export { InboxPanel as Notification } from './organisms/InboxPanel';
2
+ export { useNotificationStore } from './hooks/useNotificationStore';
3
+ export { useNotificationStream } from './hooks/useNotificationStream';
4
+ export type { NotificationDTO, NotificationTab, UnreadCounts, SourceCategoryKey } from './lib/types';
2
5
  //# sourceMappingURL=Notification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.tsx"],"names":[],"mappings":"AAeA,eAAO,MAAM,YAAY,+CA0JxB,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC"}
@@ -1,7 +1,31 @@
1
- const e = "_headerCounter_1kh0c_1", t = {
2
- headerCounter: e
1
+ const t = "_tabsList_1bfw3_5", e = "_tabsBar_1bfw3_27", n = "_tabDivider_1bfw3_39", i = "_inboxMenu_1bfw3_65", b = "_inboxMenuLabel_1bfw3_93", _ = "_inboxMenuItem_1bfw3_109", o = "_inboxMenuItemActive_1bfw3_127", s = "_tab_1bfw3_5", a = "_shrink_1bfw3_227", c = "_item_1bfw3_245", r = "_itemContent_1bfw3_273", w = "_itemActions_1bfw3_283", m = "_replyPreview_1bfw3_341", f = {
2
+ tabsList: t,
3
+ tabsBar: e,
4
+ tabDivider: n,
5
+ inboxMenu: i,
6
+ inboxMenuLabel: b,
7
+ inboxMenuItem: _,
8
+ inboxMenuItemActive: o,
9
+ tab: s,
10
+ shrink: a,
11
+ item: c,
12
+ itemContent: r,
13
+ itemActions: w,
14
+ replyPreview: m
3
15
  };
4
16
  export {
5
- t as default,
6
- e as headerCounter
17
+ f as default,
18
+ i as inboxMenu,
19
+ _ as inboxMenuItem,
20
+ o as inboxMenuItemActive,
21
+ b as inboxMenuLabel,
22
+ c as item,
23
+ w as itemActions,
24
+ r as itemContent,
25
+ m as replyPreview,
26
+ a as shrink,
27
+ s as tab,
28
+ n as tabDivider,
29
+ e as tabsBar,
30
+ t as tabsList
7
31
  };
@@ -0,0 +1,11 @@
1
+ import { Delete03Icon } from '@hugeicons/core-free-icons';
2
+ export declare function resolveActionBadge(notificationType: string | null): {
3
+ bg: string;
4
+ Icon: typeof Delete03Icon;
5
+ };
6
+ interface ActionBadgeProps {
7
+ notificationType: string | null;
8
+ }
9
+ export declare function ActionBadge({ notificationType }: ActionBadgeProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=ActionBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/ActionBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,YAAY,EAQb,MAAM,4BAA4B,CAAC;AAsBpC,wBAAgB,kBAAkB,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI;QAnB/B,MAAM;UAAQ,OAAO,YAAY;EAsCnE;AAED,UAAU,gBAAgB;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,wBAAgB,WAAW,CAAC,EAAE,gBAAgB,EAAE,EAAE,gBAAgB,2CAuBjE"}
@@ -0,0 +1,53 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { EditIcon as t, CallDisabled02Icon as D, HashtagIcon as A, CheckmarkCircle02Icon as a, UserAdd02Icon as E, UserRemove01Icon as i, AtIcon as l, Link04Icon as I, Message01Icon as S, UndoIcon as T, Delete03Icon as C, CircleIcon as c, Appointment02Icon as g } from "@hugeicons/core-free-icons";
3
+ import { HugeiconsIcon as u } from "@hugeicons/react";
4
+ const o = {
5
+ CREATED: { bg: "var(--mantine-color-green-6)", Icon: t },
6
+ UPDATED: { bg: "var(--mantine-color-yellow-6)", Icon: c },
7
+ STATUS_CHANGED: { bg: "var(--mantine-color-yellow-6)", Icon: c },
8
+ DUE_DATE: { bg: "var(--mantine-color-orange-5)", Icon: g },
9
+ MENTIONED: { bg: "var(--mantine-color-indigo-5)", Icon: l },
10
+ COMMENTED: { bg: "var(--mantine-color-indigo-5)", Icon: S },
11
+ COMMENT_RESOLVED: { bg: "var(--mantine-color-green-6)", Icon: a },
12
+ DELETED: { bg: "var(--mantine-color-red-6)", Icon: C },
13
+ RESTORED: { bg: "var(--mantine-color-green-6)", Icon: T },
14
+ ASSIGNED: { bg: "var(--mantine-color-blue-5)", Icon: E },
15
+ UNASSIGNED: { bg: "var(--mantine-color-orange-5)", Icon: i },
16
+ ACCESS_GRANTED: { bg: "var(--mantine-color-orange-5)", Icon: E },
17
+ ACCESS_REVOKED: { bg: "var(--mantine-color-red-6)", Icon: i },
18
+ MISSED_CALL: { bg: "var(--mantine-color-red-6)", Icon: D },
19
+ CHANNEL_ADDED: { bg: "var(--mantine-color-indigo-5)", Icon: A },
20
+ ATTACHMENT: { bg: "var(--mantine-color-gray-6)", Icon: I }
21
+ };
22
+ function N(r) {
23
+ if (!r) return o.CREATED;
24
+ const n = r.toUpperCase();
25
+ return n === "MISSED_CALL" ? o.MISSED_CALL : n === "CHANNEL_ADDED" ? o.CHANNEL_ADDED : n === "COMMENT_RESOLVED" ? o.COMMENT_RESOLVED : n === "ACCESS_GRANTED" ? o.ACCESS_GRANTED : n === "ACCESS_REVOKED" ? o.ACCESS_REVOKED : n.includes("MENTION") ? o.MENTIONED : n.includes("ATTACHMENT") ? o.ATTACHMENT : n.includes("COMMENT") ? o.COMMENTED : n.includes("RESTORE") ? o.RESTORED : n.includes("DELETE") ? o.DELETED : n.includes("UNASSIGN") ? o.UNASSIGNED : n.includes("ASSIGN") ? o.ASSIGNED : n.includes("STATUS") ? o.STATUS_CHANGED : n.includes("DUE_DATE") || n.includes("START_DATE") ? o.DUE_DATE : n.includes("UPDATE") ? o.UPDATED : o.CREATED;
26
+ }
27
+ function b({ notificationType: r }) {
28
+ const n = N(r);
29
+ return /* @__PURE__ */ e(
30
+ "div",
31
+ {
32
+ style: {
33
+ position: "absolute",
34
+ bottom: 0,
35
+ right: 0,
36
+ width: 14,
37
+ height: 14,
38
+ borderRadius: "50%",
39
+ backgroundColor: n.bg,
40
+ boxSizing: "border-box",
41
+ display: "flex",
42
+ alignItems: "center",
43
+ justifyContent: "center",
44
+ zIndex: 1
45
+ },
46
+ children: /* @__PURE__ */ e(u, { icon: n.Icon, size: 10, color: "white", strokeWidth: 2.5 })
47
+ }
48
+ );
49
+ }
50
+ export {
51
+ b as ActionBadge,
52
+ N as resolveActionBadge
53
+ };
@@ -0,0 +1,7 @@
1
+ interface ArchiveIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+ export declare function ArchiveIcon({ size, color }: ArchiveIconProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=ArchiveIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArchiveIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/ArchiveIcon.tsx"],"names":[],"mappings":"AAAA,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAS,EAAE,KAAsB,EAAE,EAAE,gBAAgB,2CAwBlF"}
@@ -0,0 +1,40 @@
1
+ import { jsxs as r, jsx as t } from "react/jsx-runtime";
2
+ function n({ size: i = 20, color: C = "currentColor" }) {
3
+ return /* @__PURE__ */ r(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: i,
8
+ height: i,
9
+ viewBox: "0 0 20 20",
10
+ fill: "none",
11
+ "aria-hidden": "true",
12
+ children: [
13
+ /* @__PURE__ */ t(
14
+ "path",
15
+ {
16
+ d: "M2.70838 12.4998V6.6665C2.70838 6.32133 2.9882 6.0415 3.33338 6.0415C3.67855 6.0415 3.95838 6.32133 3.95838 6.6665V12.4998C3.95838 13.6958 3.96005 14.5299 4.04464 15.1593C4.12685 15.7708 4.27705 16.0949 4.50769 16.3255C4.73833 16.5562 5.0624 16.7064 5.67387 16.7886C6.30329 16.8732 7.13741 16.8748 8.33338 16.8748H11.6667C12.8627 16.8748 13.6968 16.8732 14.3262 16.7886C14.9377 16.7064 15.2617 16.5562 15.4924 16.3255C15.723 16.0949 15.8732 15.7708 15.9554 15.1593C16.04 14.5299 16.0417 13.6958 16.0417 12.4998V6.6665C16.0417 6.32133 16.3215 6.0415 16.6667 6.0415C17.0119 6.0415 17.2917 6.32133 17.2917 6.6665V12.4998C17.2917 13.6606 17.2933 14.5941 17.1949 15.3262C17.094 16.0763 16.8778 16.7077 16.3762 17.2093C15.8746 17.7109 15.2431 17.9271 14.493 18.028C13.761 18.1264 12.8275 18.1248 11.6667 18.1248H8.33338C7.17262 18.1248 6.23913 18.1264 5.50704 18.028C4.75696 17.9271 4.1255 17.7109 3.6239 17.2093C3.12231 16.7077 2.90607 16.0763 2.80522 15.3262C2.70681 14.5941 2.70838 13.6606 2.70838 12.4998Z",
17
+ fill: C
18
+ }
19
+ ),
20
+ /* @__PURE__ */ t(
21
+ "path",
22
+ {
23
+ d: "M17.7083 4.58333C17.7083 4.1824 17.7074 3.92342 17.6896 3.72721C17.6811 3.63324 17.6696 3.56931 17.6578 3.52458L17.6245 3.4375C17.5834 3.36641 17.5289 3.30416 17.4642 3.2544L17.3958 3.20882C17.3617 3.18916 17.2936 3.16072 17.1061 3.14372C16.9099 3.12593 16.6509 3.125 16.25 3.125H3.74996C3.34903 3.125 3.09005 3.12593 2.89384 3.14372C2.7063 3.16072 2.63818 3.18916 2.60413 3.20882C2.50914 3.26367 2.43029 3.34252 2.37545 3.4375C2.35579 3.47155 2.32735 3.53967 2.31034 3.72721C2.29256 3.92343 2.29163 4.18241 2.29163 4.58333C2.29163 4.98426 2.29256 5.24324 2.31034 5.43945C2.32735 5.62699 2.35579 5.69512 2.37545 5.72917C2.43029 5.82415 2.50914 5.903 2.60413 5.95785C2.63818 5.9775 2.7063 6.00594 2.89384 6.02295C3.09005 6.04073 3.34903 6.04167 3.74996 6.04167H16.25C16.6509 6.04167 16.9099 6.04073 17.1061 6.02295C17.2936 6.00594 17.3617 5.97751 17.3958 5.95785L17.4642 5.91227C17.5289 5.86251 17.5834 5.80026 17.6245 5.72917L17.6578 5.64209C17.6696 5.59736 17.6811 5.53343 17.6896 5.43945C17.7074 5.24325 17.7083 4.98426 17.7083 4.58333ZM18.9583 4.58333C18.9583 4.96125 18.9588 5.28684 18.9347 5.55257C18.9129 5.79246 18.8679 6.03021 18.7581 6.25733L18.7068 6.35417C18.5629 6.60344 18.364 6.81574 18.1258 6.9751L18.0208 7.0402C17.7649 7.18793 17.4934 7.24319 17.2192 7.26807C16.9535 7.29215 16.6279 7.29167 16.25 7.29167H3.74996C3.37204 7.29167 3.04645 7.29215 2.78072 7.26807C2.50653 7.24319 2.23502 7.18794 1.97913 7.0402C1.69418 6.87566 1.45763 6.63912 1.29309 6.35417C1.14535 6.09827 1.09011 5.82677 1.06523 5.55257C1.04114 5.28685 1.04163 4.96126 1.04163 4.58333C1.04163 4.20541 1.04114 3.87982 1.06523 3.6141C1.09011 3.3399 1.14535 3.0684 1.29309 2.8125C1.45763 2.52755 1.69418 2.291 1.97913 2.12647C2.23502 1.97873 2.50653 1.92348 2.78072 1.8986C3.04645 1.87452 3.37204 1.875 3.74996 1.875H16.25C16.6279 1.875 16.9535 1.87452 17.2192 1.8986C17.4934 1.92348 17.7649 1.97874 18.0208 2.12647L18.1258 2.19157C18.364 2.35092 18.5629 2.56322 18.7068 2.8125L18.7581 2.90934C18.8679 3.13646 18.9129 3.37421 18.9347 3.6141C18.9588 3.87983 18.9583 4.20541 18.9583 4.58333Z",
24
+ fill: C
25
+ }
26
+ ),
27
+ /* @__PURE__ */ t(
28
+ "path",
29
+ {
30
+ d: "M11.6667 8.5415C12.0119 8.5415 12.2917 8.82133 12.2917 9.1665C12.2917 9.51168 12.0119 9.7915 11.6667 9.7915H8.33337C7.9882 9.7915 7.70837 9.51168 7.70837 9.1665C7.70837 8.82133 7.9882 8.5415 8.33337 8.5415H11.6667Z",
31
+ fill: C
32
+ }
33
+ )
34
+ ]
35
+ }
36
+ );
37
+ }
38
+ export {
39
+ n as ArchiveIcon
40
+ };
@@ -0,0 +1,7 @@
1
+ interface InboxIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+ export declare function InboxIcon({ size, color }: InboxIconProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=InboxIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InboxIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/InboxIcon.tsx"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,KAAsB,EAAE,EAAE,cAAc,2CAoB9E"}
@@ -0,0 +1,33 @@
1
+ import { jsxs as r, jsx as n } from "react/jsx-runtime";
2
+ function i({ size: C = 20, color: t = "currentColor" }) {
3
+ return /* @__PURE__ */ r(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: C,
8
+ height: C,
9
+ viewBox: "0 0 20 20",
10
+ fill: "none",
11
+ "aria-hidden": "true",
12
+ children: [
13
+ /* @__PURE__ */ n(
14
+ "path",
15
+ {
16
+ d: "M17.7083 11.7961C17.7083 11.2936 17.7054 11.1226 17.6741 10.9603V10.9595C17.6428 10.7974 17.582 10.6371 17.3958 10.1717L15.6771 5.87484C15.3676 5.10108 15.1531 4.56775 14.9414 4.17074C14.7369 3.78739 14.5617 3.58473 14.3587 3.44727C14.1556 3.30978 13.902 3.22208 13.47 3.17464C13.0228 3.12556 12.4478 3.125 11.6146 3.125H8.3854C7.55214 3.125 6.97716 3.12556 6.52993 3.17464C6.09799 3.22208 5.84431 3.30979 5.64126 3.44727C5.43823 3.58473 5.263 3.78738 5.05857 4.17074C4.84687 4.56775 4.63241 5.10106 4.3229 5.87484L2.60496 10.1717H2.60415C2.41754 10.6382 2.35708 10.798 2.32583 10.9603C2.29457 11.1226 2.29165 11.2935 2.29165 11.7961V12.5C2.29165 13.696 2.29332 14.5301 2.37791 15.1595C2.46012 15.771 2.61032 16.095 2.84096 16.3257C3.0716 16.5563 3.39567 16.7065 4.00714 16.7887C4.63656 16.8733 5.47068 16.875 6.66665 16.875H13.3333C14.5293 16.875 15.3634 16.8733 15.9928 16.7887C16.6043 16.7065 16.9283 16.5563 17.159 16.3257C17.3896 16.095 17.5398 15.771 17.622 15.1595C17.7066 14.5301 17.7083 13.696 17.7083 12.5V11.7961ZM18.9583 12.5C18.9583 13.6608 18.9599 14.5942 18.8615 15.3263C18.7606 16.0764 18.5444 16.7079 18.0428 17.2095C17.5412 17.7111 16.9097 17.9273 16.1596 18.0282C15.4276 18.1266 14.4941 18.125 13.3333 18.125H6.66665C5.50589 18.125 4.5724 18.1266 3.84031 18.0282C3.09023 17.9273 2.45877 17.7111 1.95717 17.2095C1.45558 16.7079 1.23934 16.0764 1.13849 15.3263C1.04008 14.5942 1.04165 13.6608 1.04165 12.5V11.7961C1.04165 11.3389 1.03885 11.0296 1.0978 10.7235C1.15678 10.4174 1.2739 10.1314 1.44367 9.70703L3.16242 5.41097C3.46176 4.66261 3.70443 4.05389 3.95587 3.58236C4.21453 3.09737 4.50886 2.7044 4.94057 2.41211C5.37238 2.11978 5.8467 1.9928 6.39321 1.93278C6.92439 1.87445 7.57943 1.875 8.3854 1.875H11.6146C12.4205 1.875 13.0756 1.87445 13.6068 1.93278C14.1533 1.9928 14.6276 2.11979 15.0594 2.41211L15.2148 2.52686C15.5639 2.80447 15.8177 3.15799 16.0441 3.58236C16.2955 4.05389 16.5382 4.6626 16.8375 5.41097L18.5563 9.70703C18.6837 10.0256 18.7811 10.2662 18.8468 10.4956L18.9022 10.7235V10.7243C18.961 11.0302 18.9583 11.3391 18.9583 11.7961V12.5Z",
17
+ fill: t
18
+ }
19
+ ),
20
+ /* @__PURE__ */ n(
21
+ "path",
22
+ {
23
+ d: "M4.65493 10.2086C5.1003 10.2086 5.44401 10.2031 5.77146 10.2964C5.94036 10.3446 6.10348 10.4118 6.2573 10.4975L6.36635 10.5634C6.61571 10.7258 6.83289 10.9493 7.10854 11.225C7.47333 11.5898 7.57441 11.6833 7.6839 11.7442C7.75345 11.7829 7.82753 11.8134 7.90444 11.8353C8.02489 11.8697 8.1625 11.8752 8.67836 11.8752H11.3216C11.8375 11.8752 11.9752 11.8697 12.0955 11.8353C12.1725 11.8134 12.2466 11.7829 12.3161 11.7442V11.7434C12.4255 11.6825 12.5268 11.5897 12.8914 11.225C13.2064 10.9101 13.445 10.663 13.7427 10.4975L13.8598 10.4372C13.9785 10.3799 14.1018 10.3326 14.2285 10.2964C14.5559 10.2031 14.8997 10.2086 15.345 10.2086H17.9166V11.4586H15.345C14.8292 11.4586 14.6915 11.4641 14.5711 11.4984C14.4942 11.5204 14.42 11.5509 14.3506 11.5896V11.5904C14.2411 11.6513 14.1399 11.7441 13.7752 12.1088C13.4996 12.3844 13.2824 12.6079 13.033 12.7704L12.924 12.8363C12.7702 12.922 12.607 12.9892 12.4381 13.0373C12.1107 13.1307 11.7669 13.1252 11.3216 13.1252H8.67836C8.233 13.1252 7.88929 13.1307 7.56183 13.0373C7.43512 13.0012 7.31186 12.9539 7.19318 12.8965L7.07599 12.8363C6.77845 12.6707 6.53977 12.4238 6.22475 12.1088C5.85996 11.744 5.75888 11.6505 5.64939 11.5896C5.57984 11.5509 5.50577 11.5204 5.42885 11.4984C5.3084 11.4641 5.1708 11.4586 4.65493 11.4586H2.08331V10.2086H4.65493Z",
24
+ fill: t
25
+ }
26
+ )
27
+ ]
28
+ }
29
+ );
30
+ }
31
+ export {
32
+ i as InboxIcon
33
+ };
@@ -0,0 +1,7 @@
1
+ interface MarkReadIconProps {
2
+ size?: number;
3
+ color?: string;
4
+ }
5
+ export declare function MarkReadIcon({ size, color }: MarkReadIconProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
7
+ //# sourceMappingURL=MarkReadIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MarkReadIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/MarkReadIcon.tsx"],"names":[],"mappings":"AAAA,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,YAAY,CAAC,EAAE,IAAS,EAAE,KAAsB,EAAE,EAAE,iBAAiB,2CAoBpF"}
@@ -0,0 +1,33 @@
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ function e({ size: C = 20, color: r = "currentColor" }) {
3
+ return /* @__PURE__ */ i(
4
+ "svg",
5
+ {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: C,
8
+ height: C,
9
+ viewBox: "0 0 20 20",
10
+ fill: "none",
11
+ "aria-hidden": "true",
12
+ children: [
13
+ /* @__PURE__ */ t(
14
+ "path",
15
+ {
16
+ d: "M1.04163 10.4167C1.04163 8.56856 1.04041 7.11958 1.19218 5.9904C1.34642 4.84318 1.66924 3.93294 2.3844 3.21777C3.09957 2.50261 4.00981 2.17979 5.15702 2.02555C6.28621 1.87378 7.73518 1.875 9.58329 1.875H9.99996C10.3451 1.875 10.625 2.15482 10.625 2.5C10.625 2.84518 10.3451 3.125 9.99996 3.125H9.58329C7.69965 3.125 6.34962 3.12614 5.32304 3.26416C4.31452 3.39977 3.71238 3.65738 3.26819 4.10156C2.82401 4.54575 2.56639 5.14789 2.43079 6.15641C2.29277 7.183 2.29163 8.53302 2.29163 10.4167C2.29163 12.3003 2.29277 13.6503 2.43079 14.6769C2.56639 15.6854 2.82402 16.2876 3.26819 16.7318C3.71238 17.1759 4.31452 17.4336 5.32304 17.5692C6.34962 17.7072 7.69965 17.7083 9.58329 17.7083C11.4669 17.7083 12.817 17.7072 13.8435 17.5692C14.8521 17.4336 15.4542 17.1759 15.8984 16.7318C16.3426 16.2876 16.6002 15.6854 16.7358 14.6769C16.8738 13.6503 16.875 12.3003 16.875 10.4167V10C16.875 9.65482 17.1548 9.375 17.5 9.375C17.8451 9.375 18.125 9.65482 18.125 10V10.4167C18.125 12.2648 18.1262 13.7137 17.9744 14.8429C17.8202 15.9902 17.4973 16.9004 16.7822 17.6156C16.067 18.3307 15.1568 18.6535 14.0096 18.8078C12.8804 18.9596 11.4314 18.9583 9.58329 18.9583C7.73518 18.9583 6.28621 18.9595 5.15702 18.8078C4.00981 18.6535 3.09957 18.3307 2.3844 17.6156C1.66925 16.9004 1.34642 15.9902 1.19218 14.8429C1.04041 13.7137 1.04163 12.2648 1.04163 10.4167Z",
17
+ fill: r
18
+ }
19
+ ),
20
+ /* @__PURE__ */ t(
21
+ "path",
22
+ {
23
+ d: "M17.6495 2.28239C17.8478 1.99543 18.2518 1.91845 18.5519 2.11021C18.852 2.30208 18.9344 2.6902 18.7361 2.97721L15.8627 7.13473C15.7599 7.28328 15.5956 7.38207 15.4112 7.40632C15.2267 7.43054 15.0396 7.37784 14.8976 7.26138L12.8644 5.59355C12.5903 5.36867 12.5571 4.9742 12.79 4.71228C13.0229 4.45043 13.4338 4.42061 13.7079 4.64545L15.1811 5.8531L17.6495 2.28239Z",
24
+ fill: r
25
+ }
26
+ )
27
+ ]
28
+ }
29
+ );
30
+ }
31
+ export {
32
+ e as MarkReadIcon
33
+ };
@@ -0,0 +1,7 @@
1
+ interface ResourceIconProps {
2
+ notificationType: string | null;
3
+ size?: number;
4
+ }
5
+ export declare function ResourceIcon({ notificationType, size }: ResourceIconProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
7
+ //# sourceMappingURL=ResourceIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/ResourceIcon.tsx"],"names":[],"mappings":"AAaA,UAAU,iBAAiB;IACzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,YAAY,CAAC,EAAE,gBAAgB,EAAE,IAAS,EAAE,EAAE,iBAAiB,kDAS9E"}
@@ -0,0 +1,7 @@
1
+ interface TabBadgeProps {
2
+ count: number;
3
+ active: boolean;
4
+ }
5
+ export declare function TabBadge({ count, active }: TabBadgeProps): import("react/jsx-runtime").JSX.Element | null;
6
+ export {};
7
+ //# sourceMappingURL=TabBadge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TabBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/TabBadge.tsx"],"names":[],"mappings":"AAEA,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB;AAOD,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,aAAa,kDA6BxD"}
@@ -0,0 +1,32 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Box as e } from "@mantine/core";
3
+ function i(n) {
4
+ return n > 99 ? "99+" : String(n);
5
+ }
6
+ function a({ count: n, active: r }) {
7
+ return n <= 0 ? null : /* @__PURE__ */ o(
8
+ e,
9
+ {
10
+ px: r ? 10 : 8,
11
+ py: r ? 2 : void 0,
12
+ h: r ? void 0 : 21,
13
+ style: {
14
+ display: "inline-flex",
15
+ alignItems: "center",
16
+ justifyContent: "center",
17
+ borderRadius: 32,
18
+ backgroundColor: r ? "var(--mantine-primary-color-filled)" : "var(--mantine-color-gray-light)",
19
+ color: r ? "var(--mantine-color-white)" : "var(--mantine-color-gray-6)",
20
+ fontSize: r ? 12 : 13,
21
+ fontWeight: r ? 600 : 500,
22
+ lineHeight: 1.4,
23
+ textTransform: r ? "uppercase" : void 0,
24
+ whiteSpace: "nowrap"
25
+ },
26
+ children: i(n)
27
+ }
28
+ );
29
+ }
30
+ export {
31
+ a as TabBadge
32
+ };
@@ -0,0 +1,6 @@
1
+ interface UnreadDotProps {
2
+ size?: number;
3
+ }
4
+ export declare function UnreadDot({ size }: UnreadDotProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
6
+ //# sourceMappingURL=UnreadDot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnreadDot.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/UnreadDot.tsx"],"names":[],"mappings":"AAAA,UAAU,cAAc;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,SAAS,CAAC,EAAE,IAAS,EAAE,EAAE,cAAc,2CAiBtD"}
@@ -0,0 +1,23 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ function i({ size: o = 10 }) {
3
+ return /* @__PURE__ */ r(
4
+ "div",
5
+ {
6
+ style: {
7
+ position: "absolute",
8
+ top: -2,
9
+ left: -2,
10
+ width: o,
11
+ height: o,
12
+ borderRadius: "50%",
13
+ backgroundColor: "var(--mantine-primary-color-filled)",
14
+ border: "2px solid var(--mantine-color-body)",
15
+ boxSizing: "content-box",
16
+ zIndex: 2
17
+ }
18
+ }
19
+ );
20
+ }
21
+ export {
22
+ i as UnreadDot
23
+ };
@@ -0,0 +1,5 @@
1
+ export { UnreadDot } from './UnreadDot';
2
+ export { ActionBadge, resolveActionBadge } from './ActionBadge';
3
+ export { ResourceIcon } from './ResourceIcon';
4
+ export { TabBadge } from './TabBadge';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/atoms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ export { useInboxActions } from './useInboxActions';
2
+ export { useInboxLoader } from './useInboxLoader';
3
+ export { useNotificationItem } from './useNotificationItem';
4
+ export { useNotificationsApi } from './useNotificationsApi';
5
+ export { useNotificationStore, getActiveSourceValues } from './useNotificationStore';
6
+ export { useNotificationStream } from './useNotificationStream';
7
+ export { useNotificationTime } from './useNotificationTime';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { NotificationDTO } from '../lib/types';
2
+ export declare function useInboxActions(wsAlias: string, refreshCounts: () => void, loadPage: (p: number) => Promise<void>, onNavigate?: () => void): {
3
+ handleClick: (n: NotificationDTO) => Promise<void>;
4
+ handleRead: (id: number) => Promise<void>;
5
+ handleUnread: (id: number) => Promise<void>;
6
+ handleArchive: (id: number) => void;
7
+ handleUnarchive: (id: number) => void;
8
+ handleMarkAllRead: () => Promise<void>;
9
+ handleArchiveAll: () => Promise<void>;
10
+ handleArchiveRead: () => Promise<void>;
11
+ };
12
+ //# sourceMappingURL=useInboxActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInboxActions.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/hooks/useInboxActions.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,IAAI,EACzB,QAAQ,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,EACtC,UAAU,CAAC,EAAE,MAAM,IAAI;qBAgCX,eAAe;qBAkBe,MAAM;uBAQJ,MAAM;wBAQX,MAAM;0BAMJ,MAAM;;;;EA0BhD"}
@@ -0,0 +1,58 @@
1
+ import { useCallback as o } from "react";
2
+ import { useNavigate as U } from "react-router-dom";
3
+ import { useNotificationStore as d } from "./useNotificationStore.js";
4
+ import { useNotificationsApi as b } from "./useNotificationsApi.js";
5
+ import { isMention as x, buildNotificationLink as M } from "../lib/notificationText.js";
6
+ function O(p, n, c, l) {
7
+ const m = U(), i = b(), e = d((t) => t.updateNotification), f = d((t) => t.removeNotification), s = o(
8
+ (t, a) => {
9
+ const r = d.getState(), { all: T, mentions: w } = r.unreadCounts;
10
+ r.setUnreadCounts({
11
+ all: Math.max(0, T + t),
12
+ mentions: x(a) ? Math.max(0, w + t) : w
13
+ });
14
+ },
15
+ []
16
+ ), h = o((t) => {
17
+ new URL(t, window.location.origin).pathname === window.location.pathname ? window.location.assign(t) : (m(t), l?.());
18
+ }, [m, l]), A = o(
19
+ async (t) => {
20
+ const a = M(t.notificationType, t.objectId, t.parentId, p, t.link);
21
+ if (!t.read) {
22
+ e(t.id, { read: !0 }), s(-1, t.notificationType), a && h(a), await i.markAsRead([t.id]), n();
23
+ return;
24
+ }
25
+ a && (m(a), l?.());
26
+ },
27
+ [i, m, h, e, n, p, s, l]
28
+ ), y = o(async (t) => {
29
+ const a = d.getState().notifications.find((r) => r.id === t);
30
+ e(t, { read: !0 }), a && !a.read && s(-1, a.notificationType), await i.markAsRead([t]), n();
31
+ }, [i, e, n, s]), k = o(async (t) => {
32
+ const a = d.getState().notifications.find((r) => r.id === t);
33
+ e(t, { read: !1 }), a && a.read && s(1, a.notificationType), await i.markAsUnread([t]), n();
34
+ }, [i, e, n, s]), u = o((t) => {
35
+ i.archiveIds([t]), f(t), n();
36
+ }, [i, f, n]), v = o((t) => {
37
+ i.unarchiveIds([t]), f(t), n();
38
+ }, [i, f, n]), R = o(async () => {
39
+ await i.markAllAsRead(), c(0);
40
+ }, [i, c]), I = o(async () => {
41
+ await i.archiveAll(), c(0);
42
+ }, [i, c]), N = o(async () => {
43
+ await i.archiveRead(), c(0);
44
+ }, [i, c]);
45
+ return {
46
+ handleClick: A,
47
+ handleRead: y,
48
+ handleUnread: k,
49
+ handleArchive: u,
50
+ handleUnarchive: v,
51
+ handleMarkAllRead: R,
52
+ handleArchiveAll: I,
53
+ handleArchiveRead: N
54
+ };
55
+ }
56
+ export {
57
+ O as useInboxActions
58
+ };
@@ -0,0 +1,8 @@
1
+ export declare function useInboxLoader(activeWorkspaceId: string): {
2
+ loadPage: (p: number) => Promise<void>;
3
+ handleLoadMore: () => void;
4
+ refreshCounts: () => Promise<void>;
5
+ loading: boolean;
6
+ hasMore: boolean;
7
+ };
8
+ //# sourceMappingURL=useInboxLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useInboxLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/Notification/hooks/useInboxLoader.ts"],"names":[],"mappings":"AAOA,wBAAgB,cAAc,CAAC,iBAAiB,EAAE,MAAM;kBAiB1C,MAAM;;;;;EA8CnB"}