@ethora/chat-component 26.9.4 → 26.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/README.md +2 -0
  2. package/dist/{ChatProfileModal-Pr4--RdW.js → ChatProfileModal-DKuxJsdM.js} +526 -519
  3. package/dist/{FilePreviewModal-CYHlKzRc.js → FilePreviewModal-BcaSoO3-.js} +89 -89
  4. package/dist/{ManageDataModal-BE1eGlYh.js → ManageDataModal-Dw4dCQll.js} +2 -2
  5. package/dist/{MarkdownBody-G0_J0NL6.js → MarkdownBody-xtKDMR0h.js} +1 -1
  6. package/dist/MessageSearchModal-BVKU6H3v.js +389 -0
  7. package/dist/PublicChatsModal-CscOnVaQ.js +202 -0
  8. package/dist/{SideDrawer-BG2m7Bcm.js → SideDrawer-WneDrrWG.js} +27 -27
  9. package/dist/{UserProfileModal-B2Hp5bAF.js → UserProfileModal-CMHFq1I9.js} +3 -3
  10. package/dist/{UserSettingsModal-D871FDAT.js → UserSettingsModal-BoZXZ0oR.js} +2 -2
  11. package/dist/{VideoCallOverlay-Br0ji0nZ.js → VideoCallOverlay-CQNi7wp5.js} +1 -1
  12. package/dist/{VisibilityModal-DdFBV1_g.js → VisibilityModal-BPsNiMzJ.js} +2 -2
  13. package/dist/assets/icons.d.ts +9 -0
  14. package/dist/components/InputComponents/Search.d.ts +4 -0
  15. package/dist/components/MainComponents/ArchivedMessageCard.d.ts +11 -0
  16. package/dist/components/MainComponents/computeAnchoredScrollTop.d.ts +9 -0
  17. package/dist/components/MainComponents/useJumpToMessage.d.ts +63 -0
  18. package/dist/components/MainComponents/useStickToBottom.d.ts +27 -0
  19. package/dist/components/Modals/MessageSearchModal/MessageHitResults.d.ts +22 -0
  20. package/dist/components/Modals/MessageSearchModal/MessageSearchModal.d.ts +6 -0
  21. package/dist/components/Modals/MessageSearchModal/resolveSender.d.ts +33 -0
  22. package/dist/components/Modals/MessageSearchModal/searchFilters.d.ts +34 -0
  23. package/dist/components/Modals/MessageSearchModal/snippet.d.ts +14 -0
  24. package/dist/components/Modals/MessageSearchModal/useMessageSearch.d.ts +22 -0
  25. package/dist/components/Modals/PublicChatsModal/PublicChatsModal.d.ts +13 -0
  26. package/dist/components/styled/RoomListComponents/index.d.ts +3 -0
  27. package/dist/context/ToastContext.d.ts +7 -0
  28. package/dist/firebase-messaging-sw.js +21 -3
  29. package/dist/{handleCopyClick-DPjxMoJn.js → handleCopyClick-B70vLjJD.js} +1 -1
  30. package/dist/helpers/constants/MODAL_TYPES.d.ts +2 -0
  31. package/dist/helpers/nanoToMs.d.ts +1 -1
  32. package/dist/helpers/openRoomAtMessage.d.ts +17 -0
  33. package/dist/hooks/useMessageSearchShortcut.d.ts +14 -0
  34. package/dist/hooks/useRoomState.d.ts +1 -0
  35. package/dist/{main-BRIZ98KV.js → main-rJpE4hh-.js} +12318 -11108
  36. package/dist/main.css +1 -1
  37. package/dist/main.js +6 -6
  38. package/dist/networking/api-requests/messageSearch.api.d.ts +56 -0
  39. package/dist/networking/api-requests/publicChats.api.d.ts +23 -0
  40. package/dist/networking/api-requests/xmppToken.api.d.ts +1 -0
  41. package/dist/networking/xmppClient.d.ts +2 -0
  42. package/dist/roomStore/chatSettingsSlice.d.ts +1 -1
  43. package/dist/roomStore/roomsSlice.d.ts +38 -1
  44. package/dist/styles/classNames.d.ts +2 -0
  45. package/dist/types/models/config.model.d.ts +11 -0
  46. package/dist/utils/notificationUtils.d.ts +12 -0
  47. package/dist/version.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/public/firebase-messaging-sw.js +21 -3
package/README.md CHANGED
@@ -350,6 +350,8 @@ Below is a grouped reference for all `config` options.
350
350
  | `disableRoomMute` | `boolean` | Hide the "Mute/Unmute notifications" toggle from the chat header menu and room profile, even on a backend that supports it. |
351
351
  | `disableRoomConfig` | `boolean` | Hide every control that mutates a room's configuration, leaving the chat-details panel read-only: room avatar upload/remove, the "Delete chat" menu entry, the add-members action, and the per-member moderator menu (appoint as admin / remove member). |
352
352
  | `disableNewChatButton` | `boolean` | Hide new chat/create room action. |
353
+ | `disableMessageSearch` | `boolean` | Hide the "Search messages" button in the chat header and the search panel behind it. The panel searches the platform's message archive (`GET /v2/apps/{appId}/messages/search`) for the current chat or all chats and jumps to the hit; it needs `appId`, and without one the button is hidden anyway. |
354
+ | `disablePublicChatsDirectory` | `boolean` | Hide the "Discover chats" entry (in the room list menu, or as its own button when the host hides that menu with `chatHeaderSettings.disableMenu` or takes it over with `headerMenu`; `disableRoomMenu` removes it entirely): a directory of the app's public chats (`GET /v1/chats/public`, 50 per page, filtered client-side) where a chat can be joined without a link or QR code. |
353
355
  | `disableUserCount` | `boolean` | Hide the member-count subtitle in the chat header ("N users", plus the online-users popover attached to it). The 1:1 online/offline line is a presence state, not a count, so it stays. |
354
356
  | `disableChatInfo` | `{ disableHeader?; disableDescription?; disableType?; disableMembers?; hideMembers?; disableChatHeaderMenu? }` | Fine-grained chat info panel toggles. |
355
357
  | `chatHeaderBurgerMenu` | `boolean` | Toggle burger menu in chat header. |