stream-chat-react 14.4.1 → 14.6.0
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/cjs/{ReactPlayerWrapper.16cd6fed.js → ReactPlayerWrapper.30240f76.js} +2 -2
- package/dist/cjs/{ReactPlayerWrapper.16cd6fed.js.map → ReactPlayerWrapper.30240f76.js.map} +1 -1
- package/dist/cjs/channel-detail.js +3007 -0
- package/dist/cjs/channel-detail.js.map +1 -0
- package/dist/cjs/emojis.js +5 -4
- package/dist/cjs/emojis.js.map +1 -1
- package/dist/cjs/index.js +2273 -4163
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/useChannelHeaderOnlineStatus.6546ac83.js +4143 -0
- package/dist/cjs/useChannelHeaderOnlineStatus.6546ac83.js.map +1 -0
- package/dist/cjs/useMessageComposerController.c0dad9bc.js +99 -0
- package/dist/cjs/useMessageComposerController.c0dad9bc.js.map +1 -0
- package/dist/cjs/{useNotificationApi.9ffe5761.js → useNotificationApi.eb753f31.js} +156 -168
- package/dist/cjs/useNotificationApi.eb753f31.js.map +1 -0
- package/dist/css/channel-detail.css +825 -0
- package/dist/css/channel-detail.css.map +1 -0
- package/dist/css/index.css +297 -31
- package/dist/css/index.css.map +1 -1
- package/dist/es/channel-detail.mjs +2950 -0
- package/dist/es/channel-detail.mjs.map +1 -0
- package/dist/es/emojis.mjs +2 -1
- package/dist/es/emojis.mjs.map +1 -1
- package/dist/es/index.mjs +1859 -3774
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/useChannelHeaderOnlineStatus.c5215b13.mjs +3600 -0
- package/dist/es/useChannelHeaderOnlineStatus.c5215b13.mjs.map +1 -0
- package/dist/es/useMessageComposerController.29f189b4.mjs +69 -0
- package/dist/es/useMessageComposerController.29f189b4.mjs.map +1 -0
- package/dist/es/{useNotificationApi.88c33caa.mjs → useNotificationApi.fa5cddf9.mjs} +123 -141
- package/dist/es/useNotificationApi.fa5cddf9.mjs.map +1 -0
- package/dist/types/components/AudioPlayback/components/index.d.ts +1 -0
- package/dist/types/components/AudioPlayback/components/index.d.ts.map +1 -1
- package/dist/types/components/Avatar/Avatar.d.ts +4 -2
- package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/components/Avatar/ChannelAvatar.d.ts.map +1 -1
- package/dist/types/components/Channel/hooks/useMentionsHandlers.d.ts +8 -3
- package/dist/types/components/Channel/hooks/useMentionsHandlers.d.ts.map +1 -1
- package/dist/types/components/ChannelHeader/hooks/useChannelHasMembersOnline.d.ts +7 -0
- package/dist/types/components/ChannelHeader/hooks/useChannelHasMembersOnline.d.ts.map +1 -0
- package/dist/types/components/ChannelHeader/hooks/useChannelHeaderOnlineStatus.d.ts +6 -1
- package/dist/types/components/ChannelHeader/hooks/useChannelHeaderOnlineStatus.d.ts.map +1 -1
- package/dist/types/components/ChannelListItem/hooks/index.d.ts +1 -0
- package/dist/types/components/ChannelListItem/hooks/index.d.ts.map +1 -1
- package/dist/types/components/ChannelListItem/hooks/useChannelPreviewInfo.d.ts.map +1 -1
- package/dist/types/components/ChannelListItem/hooks/useIsUserMuted.d.ts +2 -0
- package/dist/types/components/ChannelListItem/hooks/useIsUserMuted.d.ts.map +1 -0
- package/dist/types/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/components/Dialog/components/Prompt.d.ts +7 -4
- package/dist/types/components/Dialog/components/Prompt.d.ts.map +1 -1
- package/dist/types/components/Dialog/service/DialogPortal.d.ts +5 -1
- package/dist/types/components/Dialog/service/DialogPortal.d.ts.map +1 -1
- package/dist/types/components/FileIcon/iconMap.d.ts.map +1 -1
- package/dist/types/components/Form/Checkbox.d.ts +8 -0
- package/dist/types/components/Form/Checkbox.d.ts.map +1 -0
- package/dist/types/components/Form/SwitchField.d.ts +6 -0
- package/dist/types/components/Form/SwitchField.d.ts.map +1 -1
- package/dist/types/components/Form/index.d.ts +1 -0
- package/dist/types/components/Form/index.d.ts.map +1 -1
- package/dist/types/components/Icons/icons.d.ts +24 -0
- package/dist/types/components/Icons/icons.d.ts.map +1 -1
- package/dist/types/components/InfiniteScrollPaginator/index.d.ts +1 -0
- package/dist/types/components/InfiniteScrollPaginator/index.d.ts.map +1 -1
- package/dist/types/components/ListItemLayout/ListItemLayout.d.ts +34 -0
- package/dist/types/components/ListItemLayout/ListItemLayout.d.ts.map +1 -0
- package/dist/types/components/ListItemLayout/index.d.ts +2 -0
- package/dist/types/components/ListItemLayout/index.d.ts.map +1 -0
- package/dist/types/components/MediaRecorder/classes/MediaRecorderController.d.ts.map +1 -1
- package/dist/types/components/Message/MessageText.d.ts.map +1 -1
- package/dist/types/components/Message/hooks/useMentionsHandler.d.ts +6 -1
- package/dist/types/components/Message/hooks/useMentionsHandler.d.ts.map +1 -1
- package/dist/types/components/Message/hooks/useMessageTextStreaming.d.ts +1 -1
- package/dist/types/components/Message/hooks/useReactionsFetcher.d.ts +1 -1
- package/dist/types/components/Message/hooks/useReactionsFetcher.d.ts.map +1 -1
- package/dist/types/components/Message/renderText/componentRenderers/Mention.d.ts +22 -4
- package/dist/types/components/Message/renderText/componentRenderers/Mention.d.ts.map +1 -1
- package/dist/types/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.d.ts +44 -3
- package/dist/types/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.d.ts.map +1 -1
- package/dist/types/components/Message/renderText/renderText.d.ts +25 -3
- package/dist/types/components/Message/renderText/renderText.d.ts.map +1 -1
- package/dist/types/components/Message/types.d.ts +2 -3
- package/dist/types/components/Message/types.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/QuotedMessagePreview.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/hooks/useMessageComposerController.d.ts.map +1 -1
- package/dist/types/components/Modal/GlobalModal.d.ts +3 -1
- package/dist/types/components/Modal/GlobalModal.d.ts.map +1 -1
- package/dist/types/components/Notifications/hooks/useNotificationApi.d.ts.map +1 -1
- package/dist/types/components/Poll/PollCreationDialog/MultipleAnswersField.d.ts.map +1 -1
- package/dist/types/components/Poll/PollOptionSelector.d.ts +0 -4
- package/dist/types/components/Poll/PollOptionSelector.d.ts.map +1 -1
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/BroadcastMentionItem.d.ts +5 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/BroadcastMentionItem.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionItem.d.ts +17 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionItem.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionSuggestionTitle.d.ts +6 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/MentionSuggestionTitle.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/RoleItem.d.ts +5 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/RoleItem.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/SpecialMentionItem.d.ts +10 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/SpecialMentionItem.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserGroupItem.d.ts +5 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserGroupItem.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserItem.d.ts +17 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/UserItem.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/index.d.ts +8 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/index.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/types.d.ts +6 -0
- package/dist/types/components/TextareaComposer/SuggestionList/MentionItem/types.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/SuggestionList.d.ts.map +1 -1
- package/dist/types/components/TextareaComposer/SuggestionList/SuggestionListItem.d.ts +2 -2
- package/dist/types/components/TextareaComposer/SuggestionList/SuggestionListItem.d.ts.map +1 -1
- package/dist/types/components/TextareaComposer/SuggestionList/TokenizedSuggestionParts.d.ts +9 -0
- package/dist/types/components/TextareaComposer/SuggestionList/TokenizedSuggestionParts.d.ts.map +1 -0
- package/dist/types/components/TextareaComposer/SuggestionList/index.d.ts +2 -1
- package/dist/types/components/TextareaComposer/SuggestionList/index.d.ts.map +1 -1
- package/dist/types/components/TextareaComposer/TextareaComposer.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/context/DialogManagerContext.d.ts +3 -1
- package/dist/types/context/DialogManagerContext.d.ts.map +1 -1
- package/dist/types/context/MessageContext.d.ts +3 -3
- package/dist/types/context/MessageContext.d.ts.map +1 -1
- package/dist/types/i18n/Streami18n.d.ts +105 -1
- package/dist/types/i18n/Streami18n.d.ts.map +1 -1
- package/dist/types/plugins/ChannelDetail/AvatarWithChannelDetail.d.ts +9 -0
- package/dist/types/plugins/ChannelDetail/AvatarWithChannelDetail.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetail.d.ts +14 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetail.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailContext.d.ts +11 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailContext.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailEmptyList.d.ts +3 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailEmptyList.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailListLoadingIndicator.d.ts +6 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailListLoadingIndicator.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailNavButton.d.ts +15 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailNavButton.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailSearchInput.d.ts +8 -0
- package/dist/types/plugins/ChannelDetail/ChannelDetailSearchInput.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/SectionNavigator/SectionNavigator.d.ts +52 -0
- package/dist/types/plugins/ChannelDetail/SectionNavigator/SectionNavigator.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/SectionNavigator/SectionNavigatorHeader.d.ts +11 -0
- package/dist/types/plugins/ChannelDetail/SectionNavigator/SectionNavigatorHeader.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/SectionNavigator/index.d.ts +3 -0
- package/dist/types/plugins/ChannelDetail/SectionNavigator/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/ChannelFilesEmptyList.d.ts +2 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/ChannelFilesEmptyList.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/ChannelFilesView.d.ts +5 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/ChannelFilesView.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/ChannelFilesView.utils.d.ts +40 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/ChannelFilesView.utils.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/index.d.ts +5 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/useChannelFilesSearch.d.ts +10 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelFilesView/useChannelFilesSearch.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelManagementView/ChannelManagementActions.defaults.d.ts +16 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelManagementView/ChannelManagementActions.defaults.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelManagementView/ChannelManagementView.d.ts +20 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelManagementView/ChannelManagementView.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelManagementView/index.d.ts +3 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelManagementView/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/ChannelMediaEmptyList.d.ts +2 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/ChannelMediaEmptyList.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/ChannelMediaView.d.ts +8 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/ChannelMediaView.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/ChannelMediaView.utils.d.ts +22 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/ChannelMediaView.utils.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/index.d.ts +5 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/useChannelMediaSearch.d.ts +9 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMediaView/useChannelMediaSearch.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMemberDetailView/ChannelMemberActions.defaults.d.ts +26 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMemberDetailView/ChannelMemberActions.defaults.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMemberDetailView/ChannelMemberDetail.d.ts +12 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMemberDetailView/ChannelMemberDetail.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMemberDetailView/index.d.ts +3 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMemberDetailView/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersAddView.d.ts +7 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersAddView.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersBrowseView.d.ts +6 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersBrowseView.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersHeaderActions.defaults.d.ts +45 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersHeaderActions.defaults.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersView.d.ts +46 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersView.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersView.utils.d.ts +8 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/ChannelMembersView.utils.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/index.d.ts +6 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/useChannelMemberCount.d.ts +4 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/useChannelMemberCount.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/useChannelMemberIds.d.ts +4 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/useChannelMemberIds.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/useChannelMembersSearch.d.ts +12 -0
- package/dist/types/plugins/ChannelDetail/Views/ChannelMembersView/useChannelMembersSearch.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/PinnedMessagesEmptyList.d.ts +2 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/PinnedMessagesEmptyList.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/PinnedMessagesView.d.ts +9 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/PinnedMessagesView.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/index.d.ts +4 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/usePinnedMessagesCount.d.ts +4 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/usePinnedMessagesCount.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/usePinnedMessagesSearch.d.ts +16 -0
- package/dist/types/plugins/ChannelDetail/Views/PinnedMessagesView/usePinnedMessagesSearch.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/VirtualizedList/VirtualizedList.d.ts +28 -0
- package/dist/types/plugins/ChannelDetail/VirtualizedList/VirtualizedList.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/VirtualizedList/index.d.ts +2 -0
- package/dist/types/plugins/ChannelDetail/VirtualizedList/index.d.ts.map +1 -0
- package/dist/types/plugins/ChannelDetail/index.d.ts +16 -0
- package/dist/types/plugins/ChannelDetail/index.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/isDmChannel.d.ts +6 -0
- package/dist/types/utils/isDmChannel.d.ts.map +1 -0
- package/package.json +13 -4
- package/dist/cjs/useNotificationApi.9ffe5761.js.map +0 -1
- package/dist/es/useNotificationApi.88c33caa.mjs.map +0 -1
- package/dist/types/components/TextareaComposer/SuggestionList/UserItem.d.ts +0 -25
- package/dist/types/components/TextareaComposer/SuggestionList/UserItem.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/AudioPlayback/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/AudioPlayback/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { type ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import { type ComponentPropsWithoutRef, type ComponentType } from 'react';
|
|
2
2
|
export type AvatarProps = {
|
|
3
|
+
/** Custom icon rendered when there is no image and no initials */
|
|
4
|
+
FallbackIcon?: ComponentType<ComponentPropsWithoutRef<'svg'>>;
|
|
3
5
|
/** URL of the avatar image */
|
|
4
6
|
imageUrl?: string;
|
|
5
7
|
/** Name of the user, used for avatar image alt text and title fallback */
|
|
@@ -11,5 +13,5 @@ export type AvatarProps = {
|
|
|
11
13
|
/**
|
|
12
14
|
* A round avatar image with fallback to username's first letter
|
|
13
15
|
*/
|
|
14
|
-
export declare const Avatar: ({ className, imageUrl, isOnline, size, userName, ...rest }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const Avatar: ({ className, FallbackIcon, imageUrl, isOnline, size, userName, ...rest }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAc,EACZ,KAAK,wBAAwB,EAC7B,KAAK,aAAa,EAInB,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,WAAW,GAAG;IACxB,kEAAkE;IAClE,YAAY,CAAC,EAAE,aAAa,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9D,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,IAAI,CAAC;CACvE,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAuBpC;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,0EAQpB,WAAW,4CA6Db,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelAvatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/ChannelAvatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,gBAAgB,GAAG,WAAW,EAAE,MAAM,CAAC,CAAC,GAAG;IACvF,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,8DAM3B,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ChannelAvatar.d.ts","sourceRoot":"","sources":["../../../../src/components/Avatar/ChannelAvatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,IAAI,CAAC;AAExD,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,gBAAgB,GAAG,WAAW,EAAE,MAAM,CAAC,CAAC,GAAG;IACvF,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;CACtD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,8DAM3B,kBAAkB,4CAiBpB,CAAC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import type { UserResponse } from 'stream-chat';
|
|
3
|
-
export type OnMentionAction = (event: React.BaseSyntheticEvent,
|
|
4
|
-
|
|
2
|
+
import type { LocalMessage, UserResponse } from 'stream-chat';
|
|
3
|
+
export type OnMentionAction = (event: React.BaseSyntheticEvent,
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Use the third `message` argument to access mention metadata instead.
|
|
6
|
+
* FIXME: Remove this argument in the next major release.
|
|
7
|
+
*/
|
|
8
|
+
user?: UserResponse, message?: LocalMessage) => void;
|
|
9
|
+
export declare const useMentionsHandlers: (onMentionsHover?: OnMentionAction, onMentionsClick?: OnMentionAction) => (event: React.BaseSyntheticEvent, mentioned_users: UserResponse[], message?: LocalMessage) => void;
|
|
5
10
|
//# sourceMappingURL=useMentionsHandlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMentionsHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMentionsHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useMentionsHandlers.d.ts","sourceRoot":"","sources":["../../../../../src/components/Channel/hooks/useMentionsHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,MAAM,eAAe,GAAG,CAC5B,KAAK,EAAE,KAAK,CAAC,kBAAkB;AAC/B;;;GAGG;AACH,IAAI,CAAC,EAAE,YAAY,EACnB,OAAO,CAAC,EAAE,YAAY,KACnB,IAAI,CAAC;AAEV,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,eAAe,EACjC,kBAAkB,eAAe,aAItB,KAAK,CAAC,kBAAkB,mBACd,YAAY,EAAE,YACrB,YAAY,SA4CzB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Channel } from 'stream-chat';
|
|
2
|
+
export type UseChannelHasMembersOnlineParams = {
|
|
3
|
+
channel?: Channel;
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const useChannelHasMembersOnline: ({ channel: channelOverride, enabled, }?: UseChannelHasMembersOnlineParams) => boolean;
|
|
7
|
+
//# sourceMappingURL=useChannelHasMembersOnline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useChannelHasMembersOnline.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelHeader/hooks/useChannelHasMembersOnline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,aAAa,CAAC;AAKzD,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAcF,eAAO,MAAM,0BAA0B,GAAI,yCAGxC,gCAAqC,YA0CvC,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import type { Channel } from 'stream-chat';
|
|
2
|
+
export type UseChannelHeaderOnlineStatusParams = {
|
|
3
|
+
channel?: Channel;
|
|
4
|
+
watcherCount?: number;
|
|
5
|
+
};
|
|
1
6
|
/**
|
|
2
7
|
* Returns the channel header online status text (e.g. "Online", "Offline", or "X members, Y online").
|
|
3
8
|
* Returns null when the channel has no members (nothing to show).
|
|
4
9
|
*/
|
|
5
|
-
export declare function useChannelHeaderOnlineStatus(): string | null;
|
|
10
|
+
export declare function useChannelHeaderOnlineStatus({ channel: channelOverride, watcherCount: watcherCountOverride, }?: UseChannelHeaderOnlineStatusParams): string | null;
|
|
6
11
|
//# sourceMappingURL=useChannelHeaderOnlineStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChannelHeaderOnlineStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelHeader/hooks/useChannelHeaderOnlineStatus.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useChannelHeaderOnlineStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelHeader/hooks/useChannelHeaderOnlineStatus.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,OAAO,EAAE,eAAe,EACxB,YAAY,EAAE,oBAAoB,GACnC,GAAE,kCAAuC,GAAG,MAAM,GAAG,IAAI,CAwBzD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { useChannelDisplayName } from './useChannelDisplayName';
|
|
2
2
|
export { useChannelPreviewInfo } from './useChannelPreviewInfo';
|
|
3
|
+
export { useIsUserMuted } from './useIsUserMuted';
|
|
3
4
|
export { MessageDeliveryStatus } from './useMessageDeliveryStatus';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelListItem/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelListItem/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChannelPreviewInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelListItem/hooks/useChannelPreviewInfo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,UAAU,CAAC;AAQlB,MAAM,MAAM,wBAAwB,GAAG;IACrC,+FAA+F;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB;;;;
|
|
1
|
+
{"version":3,"file":"useChannelPreviewInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelListItem/hooks/useChannelPreviewInfo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAGL,KAAK,uBAAuB,EAC7B,MAAM,UAAU,CAAC;AAQlB,MAAM,MAAM,wBAAwB,GAAG;IACrC,+FAA+F;IAC/F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yBAAyB;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,OAAO,wBAAwB;;;;CA8CpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsUserMuted.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChannelListItem/hooks/useIsUserMuted.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,GAAI,eAAe,MAAM,YAOnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAGL,gBAAgB,EAEjB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,kBAAkB,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI/D,OAAO,
|
|
1
|
+
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAGL,gBAAgB,EAEjB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,kBAAkB,CAAC;AAK1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI/D,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AA6CxD,MAAM,MAAM,SAAS,GAAG;IACtB,mCAAmC;IACnC,MAAM,EAAE,UAAU,CAAC;IACnB,8FAA8F;IAC9F,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,oGAAoG;IACpG,eAAe,CAAC,EAAE,qBAAqB,CAAC;IACxC,8BAA8B;IAC9B,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,2FAA2F;IAC3F,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,8EAA8E;IAC9E,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IACtD,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACvC,GAAG,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,iBAAiB,CAAC,SAAS,CAAC,mDA2EvD,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { type ComponentProps, type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type ComponentProps, type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ButtonProps } from '../../Button';
|
|
3
3
|
export type PromptHeaderProps = {
|
|
4
|
-
title:
|
|
5
|
-
description?: string;
|
|
4
|
+
title: React.ReactNode;
|
|
6
5
|
className?: string;
|
|
7
6
|
close?: () => void;
|
|
7
|
+
description?: string;
|
|
8
8
|
descriptionId?: string;
|
|
9
|
+
goBack?: () => void;
|
|
10
|
+
LeadingContent?: React.ComponentType;
|
|
9
11
|
titleId?: string;
|
|
12
|
+
TrailingContent?: React.ComponentType;
|
|
10
13
|
};
|
|
11
14
|
export type PromptBodyProps = PropsWithChildren<{
|
|
12
15
|
className?: string;
|
|
@@ -23,7 +26,7 @@ export declare const Prompt: {
|
|
|
23
26
|
FooterControls: ({ children, className }: PromptFooterControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
27
|
FooterControlsButtonPrimary: ({ className, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
28
|
FooterControlsButtonSecondary: ({ className, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
Header: ({ className, close, description, descriptionId, title, titleId, }: PromptHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
Header: ({ className, close, description, descriptionId, goBack, LeadingContent, title, titleId, TrailingContent, }: PromptHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
30
|
Root: ({ children, className, ...props }: ComponentProps<"div">) => import("react/jsx-runtime").JSX.Element;
|
|
28
31
|
};
|
|
29
32
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/components/Prompt.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/components/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,cAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE3E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAWxD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACvC,CAAC;AAmFF,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAMH,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAMH,KAAK,yBAAyB,GAAG,iBAAiB,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AA0BH,eAAO,MAAM,MAAM;oCAxC0B,eAAe;sCAQb,iBAAiB;8CAQT,yBAAyB;2DAcZ,WAAW;6DAVT,WAAW;yHA/F9E,iBAAiB;8CA5BmC,cAAc,CAAC,KAAK,CAAC;CAuJ3E,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type DialogPortalDestinationProps = {
|
|
3
|
+
captureOutsideClicks?: boolean;
|
|
4
|
+
className?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const DialogPortalDestination: ({ captureOutsideClicks, className, }: DialogPortalDestinationProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
7
|
type DialogPortalEntryProps = {
|
|
4
8
|
dialogId: string;
|
|
5
9
|
dialogManagerId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogPortal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/service/DialogPortal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DialogPortal.d.ts","sourceRoot":"","sources":["../../../../../src/components/Dialog/service/DialogPortal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAkB/C,MAAM,MAAM,4BAA4B,GAAG;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,sCAGrC,4BAA4B,mDAmE9B,CAAC;AAEF,KAAK,sBAAsB,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,0CAI/B,iBAAiB,CAAC,sBAAsB,CAAC,4CAc3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconMap.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/iconMap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAQlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"iconMap.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/iconMap.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAQlE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AA6EvD,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,MAAM,CACd,iBAAiB,GAAG,WAAW,GAAG,UAAU,EAC5C,aAAa,CAAC,iBAAiB,CAAC,CACjC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,OAkBrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type CheckboxProps = HTMLAttributes<HTMLElement> & {
|
|
3
|
+
checked?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const Checkbox: ({ checked, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type CheckmarkProps = CheckboxProps;
|
|
7
|
+
export declare const Checkmark: ({ checked, ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/Checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,WAAW,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhF,eAAO,MAAM,QAAQ,GAAI,uBAAuB,aAAa,4CAQ5D,CAAC;AAGF,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC;AAE3C,eAAO,MAAM,SAAS,0BAb0B,aAAa,4CAa5B,CAAC"}
|
|
@@ -14,8 +14,14 @@ export declare const SwitchField: ({ children, description, fieldClassName, titl
|
|
|
14
14
|
export type SwitchProps = Omit<ComponentProps<'input'>, 'type'> & {
|
|
15
15
|
on?: boolean;
|
|
16
16
|
onSwitchClick?: MouseEventHandler<HTMLDivElement>;
|
|
17
|
+
/**
|
|
18
|
+
* Renders the switch as a visual-only indicator when another element owns interaction.
|
|
19
|
+
* Example: a button row with a trailing switch indicator must not render an input inside the button.
|
|
20
|
+
*/
|
|
21
|
+
presentation?: boolean;
|
|
17
22
|
switchRef?: React.RefObject<HTMLInputElement | null>;
|
|
18
23
|
};
|
|
24
|
+
export declare const Switch: ({ className, on, onSwitchClick, presentation, switchRef, ...props }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
25
|
export type SwitchFieldLabelProps = ComponentProps<'label'> & {
|
|
20
26
|
/** Adds className str-chat__form__switch-field__label--as-error to the root */
|
|
21
27
|
asError?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SwitchField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,cAAc,EAEd,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAC1C,UAAU,CACX,GAAG;IACF,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,4DAMzB,gBAAgB,4CAyFlB,CAAC;
|
|
1
|
+
{"version":3,"file":"SwitchField.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/SwitchField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,cAAc,EAEd,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,EAC1C,UAAU,CACX,GAAG;IACF,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BA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AY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
|
|
@@ -142,6 +142,10 @@ export declare const IconMore: {
|
|
|
142
142
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
143
143
|
displayName: string;
|
|
144
144
|
};
|
|
145
|
+
export declare const IconMenu: {
|
|
146
|
+
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
147
|
+
displayName: string;
|
|
148
|
+
};
|
|
145
149
|
export declare const IconReorder: {
|
|
146
150
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
147
151
|
displayName: string;
|
|
@@ -202,10 +206,18 @@ export declare const IconFlag: {
|
|
|
202
206
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
203
207
|
displayName: string;
|
|
204
208
|
};
|
|
209
|
+
export declare const IconFolder: {
|
|
210
|
+
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
211
|
+
displayName: string;
|
|
212
|
+
};
|
|
205
213
|
export declare const IconImage: {
|
|
206
214
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
207
215
|
displayName: string;
|
|
208
216
|
};
|
|
217
|
+
export declare const IconInfo: {
|
|
218
|
+
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
219
|
+
displayName: string;
|
|
220
|
+
};
|
|
209
221
|
export declare const IconSearch: {
|
|
210
222
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
211
223
|
displayName: string;
|
|
@@ -226,10 +238,18 @@ export declare const IconMute: {
|
|
|
226
238
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
227
239
|
displayName: string;
|
|
228
240
|
};
|
|
241
|
+
export declare const IconMegaphone: {
|
|
242
|
+
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
243
|
+
displayName: string;
|
|
244
|
+
};
|
|
229
245
|
export declare const IconSend: {
|
|
230
246
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
231
247
|
displayName: string;
|
|
232
248
|
};
|
|
249
|
+
export declare const IconShield: {
|
|
250
|
+
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
251
|
+
displayName: string;
|
|
252
|
+
};
|
|
233
253
|
export declare const IconAttachment: {
|
|
234
254
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
235
255
|
displayName: string;
|
|
@@ -242,6 +262,10 @@ export declare const IconUser: {
|
|
|
242
262
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
243
263
|
displayName: string;
|
|
244
264
|
};
|
|
265
|
+
export declare const IconUsers: {
|
|
266
|
+
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;
|
|
267
|
+
displayName: string;
|
|
268
|
+
};
|
|
245
269
|
export declare const IconUserAdd: {
|
|
246
270
|
({ className, ...props }: import("./BaseIcon").BaseIconProps): import("react/jsx-runtime").JSX.Element;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AUpB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAMrB,CAAC;AAGF,eAAO,MAAM,WAAW;;;CAmBvB,CAAC;AAGF,eAAO,MAAM,aAAa;;;CAmBzB,CAAC;AAGF,eAAO,MAAM,cAAc;;;CAmB1B,CAAC;AAEF,eAAO,MAAM,OAAO;;;CAUnB,CAAC;AAGF,eAAO,MAAM,YAAY;;;CAGxB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;CAUpB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAUzB,CAAC;AAGF,eAAO,MAAM,WAAW;;;CAUvB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;CAUpB,CAAC;AAGF,eAAO,MAAM,QAAQ;;;CAGpB,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAUzB,CAAC;AAGF,eAAO,MAAM,UAAU;;;CAUtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAUtB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAUrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CAoBrB,CAAC;AAGF,eAAO,MAAM,aAAa;;;CAazB,CAAC;AAGF,eAAO,MAAM,SAAS;;;CAWrB,CAAC;AAEF,eAAO,MAAM,WAAW;;;CAUvB,CAAC;AAGF,eAAO,MAAM,WAAW;;;CAkBvB,CAAC;AAEF,eAAO,MAAM,SAAS;;;CA0BrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteScrollPaginator/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteScrollPaginator/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ComponentProps, ComponentType, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export type ListItemLayoutRootElement = Extract<keyof React.JSX.IntrinsicElements, keyof HTMLElementTagNameMap>;
|
|
4
|
+
export type ListItemLayoutBaseProps = {
|
|
5
|
+
ContentSlot?: ComponentType<ListItemLayoutContentProps>;
|
|
6
|
+
contentClassName?: string;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
descriptionClassName?: string;
|
|
9
|
+
destructive?: boolean;
|
|
10
|
+
LeadingIcon?: ComponentType;
|
|
11
|
+
LeadingSlot?: ComponentType;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
subtitle?: ReactNode;
|
|
14
|
+
subtitleClassName?: string;
|
|
15
|
+
title: ReactNode;
|
|
16
|
+
titleClassName?: string;
|
|
17
|
+
TrailingIcon?: ComponentType;
|
|
18
|
+
TrailingSlot?: ComponentType;
|
|
19
|
+
};
|
|
20
|
+
export type ListItemLayoutProps<RootElement extends ListItemLayoutRootElement = 'div'> = ListItemLayoutBaseProps & {
|
|
21
|
+
RootElement?: RootElement;
|
|
22
|
+
rootProps?: Omit<ComponentProps<RootElement>, 'children'>;
|
|
23
|
+
};
|
|
24
|
+
export declare const ListItemLayout: <RootElement extends ListItemLayoutRootElement = "div">({ ContentSlot, contentClassName, description, descriptionClassName, destructive, LeadingIcon, LeadingSlot, RootElement, rootProps, selected, subtitle, subtitleClassName, title, titleClassName, TrailingIcon, TrailingSlot, }: ListItemLayoutProps<RootElement>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export type ListItemLayoutContentProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
26
|
+
description?: ReactNode;
|
|
27
|
+
descriptionClassName?: string;
|
|
28
|
+
subtitle?: ReactNode;
|
|
29
|
+
subtitleClassName?: string;
|
|
30
|
+
title: ReactNode;
|
|
31
|
+
titleClassName?: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const ListItemLayoutContent: ({ className, description, descriptionClassName, subtitle, subtitleClassName, title, titleClassName, ...props }: ListItemLayoutContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
//# sourceMappingURL=ListItemLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItemLayout/ListItemLayout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EAGb,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAC7C,MAAM,KAAK,CAAC,GAAG,CAAC,iBAAiB,EACjC,MAAM,qBAAqB,CAC5B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,CAAC,EAAE,aAAa,CAAC,0BAA0B,CAAC,CAAC;IACxD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,WAAW,SAAS,yBAAyB,GAAG,KAAK,IACnF,uBAAuB,GAAG;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,CAAC;CAC3D,CAAC;AAEJ,eAAO,MAAM,cAAc,GAAI,WAAW,SAAS,yBAAyB,GAAG,KAAK,EAAE,gOAiBnF,mBAAmB,CAAC,WAAW,CAAC,4CA6ClC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GAAG;IAC9E,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,gHASnC,0BAA0B,4CA2B5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ListItemLayout/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaRecorderController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MediaRecorder/classes/MediaRecorderController.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAQlE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAA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B,sBAAsB,EAAE,MAAM,EAAE,CAAM;IACtC,YAAY,EAAE,IAAI,EAAE,CAAM;IAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,iBAAiB,CAAC;IAE7B,oBAAoB,EAAE,CAAC,CAAC,CAAC,EAAE,6BAA6B,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAE/E,cAAc,mDAAmE;IACjF,SAAS,6DAA6E;IACtF,KAAK,6BAAoC;IACzC,YAAY;cAAuB,MAAM;cAAQ,SAAS,GAAG,OAAO;mBAAkB;IAEtF,4BAA4B,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IACzE,CAAC,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;gBAEpB,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC,EAAE,GAAE,oBAAyB;IAmC5E,IAAI,UAAU,WAEb;IAED,sBAAsB,GAAI,UAAU,MAAM,YAOxC;IAEF,kBAAkB,2DA4ChB;IAEF,gBAAgB,GAAI,GAAG,KAAK,UAQ1B;IAEF,wBAAwB,GAAU,GAAG,SAAS,mBAiB5C;IAEF,mBAAmB,aAMjB;IAEF,OAAO,aAYL;IAEF,KAAK,sBAiEH;IAEF,KAAK,
|
|
1
|
+
{"version":3,"file":"MediaRecorderController.d.ts","sourceRoot":"","sources":["../../../../../src/components/MediaRecorder/classes/MediaRecorderController.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EAElB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAQlE,OAAO,KAAK,EAAE,6BA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AAE,uBAAuB,CAAC;IACjD,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,sBAAsB,EAAE,MAAM,EAAE,CAAM;IACtC,YAAY,EAAE,IAAI,EAAE,CAAM;IAC1B,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAS,EAAE,iBAAiB,CAAC;IAE7B,oBAAoB,EAAE,CAAC,CAAC,CAAC,EAAE,6BAA6B,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAE/E,cAAc,mDAAmE;IACjF,SAAS,6DAA6E;IACtF,KAAK,6BAAoC;IACzC,YAAY;cAAuB,MAAM;cAAQ,SAAS,GAAG,OAAO;mBAAkB;IAEtF,4BAA4B,EAAE,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IACzE,CAAC,EAAE,uBAAuB,CAAC,GAAG,CAAC,CAAC;gBAEpB,EAAE,MAAM,EAAE,sBAAsB,EAAE,CAAC,EAAE,GAAE,oBAAyB;IAmC5E,IAAI,UAAU,WAEb;IAED,sBAAsB,GAAI,UAAU,MAAM,YAOxC;IAEF,kBAAkB,2DA4ChB;IAEF,gBAAgB,GAAI,GAAG,KAAK,UAQ1B;IAEF,wBAAwB,GAAU,GAAG,SAAS,mBAiB5C;IAEF,mBAAmB,aAMjB;IAEF,OAAO,aAYL;IAEF,KAAK,sBAiEH;IAEF,KAAK,aAeH;IAEF,MAAM,aASJ;IAEF,IAAI,oEAuBF;IAEF,MAAM,aAGJ;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageText.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageText.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageText.d.ts","sourceRoot":"","sources":["../../../../src/components/Message/MessageText.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAMzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,MAAM,MAAM,gBAAgB,GAAG;IAE7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB,GAAG,IAAI,CAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;AAE5C,QAAA,MAAM,8BAA8B,GAAI,OAAO,gBAAgB,mDAuH9D,CAAC;AAEF,eAAO,MAAM,WAAW,EAEnB,OAAO,8BAA8B,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { LocalMessage, UserResponse } from 'stream-chat';
|
|
3
3
|
import type { ReactEventHandler } from '../types';
|
|
4
|
-
export type CustomMentionHandler = (event: React.BaseSyntheticEvent,
|
|
4
|
+
export type CustomMentionHandler = (event: React.BaseSyntheticEvent,
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use the third `message` argument to access mention metadata instead.
|
|
7
|
+
* FIXME: Remove this argument in the next major release.
|
|
8
|
+
*/
|
|
9
|
+
mentioned_users: UserResponse[], message: LocalMessage) => void;
|
|
5
10
|
export type MentionedUserEventHandler = (event: React.BaseSyntheticEvent, mentionedUsers: UserResponse[]) => void;
|
|
6
11
|
export declare const useMentionsHandler: (message?: LocalMessage, customMentionHandler?: {
|
|
7
12
|
onMentionsClick?: CustomMentionHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMentionsHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMentionsHandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,CACjC,KAAK,EAAE,KAAK,CAAC,kBAAkB
|
|
1
|
+
{"version":3,"file":"useMentionsHandler.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useMentionsHandler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG,CACjC,KAAK,EAAE,KAAK,CAAC,kBAAkB;AAC/B;;;GAGG;AACH,eAAe,EAAE,YAAY,EAAE,EAC/B,OAAO,EAAE,YAAY,KAClB,IAAI,CAAC;AAEV,MAAM,MAAM,yBAAyB,GAAG,CACtC,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,cAAc,EAAE,YAAY,EAAE,KAC3B,IAAI,CAAC;AAsBV,eAAO,MAAM,kBAAkB,GAC7B,UAAU,YAAY,EACtB,uBAAuB;IACrB,eAAe,CAAC,EAAE,oBAAoB,CAAC;IACvC,eAAe,CAAC,EAAE,oBAAoB,CAAC;CACxC;;;CAiBF,CAAC"}
|
|
@@ -11,7 +11,7 @@ export type UseMessageTextStreamingProps = Pick<StreamedMessageTextProps, 'strea
|
|
|
11
11
|
* @returns {{ streamedMessageText: string }} - A substring of the text property, up until we've finished rendering the typewriter animation.
|
|
12
12
|
*/
|
|
13
13
|
export declare const useMessageTextStreaming: ({ renderingLetterCount, streamingLetterIntervalMs, text, }: UseMessageTextStreamingProps) => {
|
|
14
|
-
readonly skipAnimation: import("
|
|
14
|
+
readonly skipAnimation: import("../../..").StableCallback<[], void>;
|
|
15
15
|
readonly streamedMessageText: string;
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=useMessageTextStreaming.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { LocalMessage, ReactionResponse, ReactionSort } from 'stream-chat';
|
|
2
2
|
export declare const MAX_MESSAGE_REACTIONS_TO_FETCH = 1000;
|
|
3
|
-
export declare function useReactionsFetcher(message: LocalMessage): import("
|
|
3
|
+
export declare function useReactionsFetcher(message: LocalMessage): import("../../..").StableCallback<[reactionType?: string | undefined, sort?: ReactionSort | undefined], Promise<ReactionResponse[]>>;
|
|
4
4
|
//# sourceMappingURL=useReactionsFetcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useReactionsFetcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useReactionsFetcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"useReactionsFetcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/Message/hooks/useReactionsFetcher.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,YAAY,EACZ,gBAAgB,EAChB,YAAY,EAEb,MAAM,aAAa,CAAC;AAGrB,eAAO,MAAM,8BAA8B,OAAO,CAAC;AAEnD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,wIAMxD"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import type { UserResponse } from 'stream-chat';
|
|
3
|
+
import type { RenderTextMentionEntity } from '../rehypePlugins/mentionsMarkdownPlugin';
|
|
4
|
+
type UserMentionNode = {
|
|
5
|
+
mentionedEntity: Extract<RenderTextMentionEntity, {
|
|
6
|
+
mentionType: 'user';
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use `mentionedEntity` instead.
|
|
10
|
+
*/
|
|
11
|
+
mentionedUser: UserResponse;
|
|
12
|
+
};
|
|
13
|
+
type NonUserMentionNode = {
|
|
14
|
+
mentionedEntity: Exclude<RenderTextMentionEntity, {
|
|
15
|
+
mentionType: 'user';
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `mentionedEntity` instead.
|
|
19
|
+
*/
|
|
20
|
+
mentionedUser?: undefined;
|
|
21
|
+
};
|
|
3
22
|
export type MentionProps = PropsWithChildren<{
|
|
4
|
-
node:
|
|
5
|
-
mentionedUser: UserResponse;
|
|
6
|
-
};
|
|
23
|
+
node: UserMentionNode | NonUserMentionNode;
|
|
7
24
|
}>;
|
|
8
|
-
export declare const Mention: ({ children, node: {
|
|
25
|
+
export declare const Mention: ({ children, node: { mentionedEntity } }: MentionProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
9
27
|
//# sourceMappingURL=Mention.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mention.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/componentRenderers/Mention.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Mention.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/componentRenderers/Mention.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAEvF,KAAK,eAAe,GAAG;IACrB,eAAe,EAAE,OAAO,CAAC,uBAAuB,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3E;;OAEG;IACH,aAAa,EAAE,YAAY,CAAC;CAC7B,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,OAAO,CAAC,uBAAuB,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3E;;OAEG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAAC;IAC3C,IAAI,EAAE,eAAe,GAAG,kBAAkB,CAAC;CAC5C,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,yCAAyC,YAAY,4CAS5E,CAAC"}
|
|
@@ -1,4 +1,45 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { UserResponse } from 'stream-chat';
|
|
3
|
-
export
|
|
1
|
+
import { findAndReplace } from 'hast-util-find-and-replace';
|
|
2
|
+
import type { LocalMessage, UserResponse } from 'stream-chat';
|
|
3
|
+
export type RenderTextMentionEntity = (UserResponse & {
|
|
4
|
+
mentionType: 'user';
|
|
5
|
+
}) | {
|
|
6
|
+
id: 'channel';
|
|
7
|
+
mentionType: 'channel';
|
|
8
|
+
name?: 'channel';
|
|
9
|
+
} | {
|
|
10
|
+
id: 'here';
|
|
11
|
+
mentionType: 'here';
|
|
12
|
+
name?: 'here';
|
|
13
|
+
} | {
|
|
14
|
+
id: string;
|
|
15
|
+
mentionType: 'role';
|
|
16
|
+
name?: string;
|
|
17
|
+
} | {
|
|
18
|
+
id: string;
|
|
19
|
+
mentionType: 'user_group';
|
|
20
|
+
name?: string;
|
|
21
|
+
};
|
|
22
|
+
export type RenderTextMentionMetadata = Pick<Partial<LocalMessage>, 'mentioned_channel' | 'mentioned_groups' | 'mentioned_here' | 'mentioned_roles' | 'mentioned_users'>;
|
|
23
|
+
type MentionReplacement = {
|
|
24
|
+
entity: RenderTextMentionEntity;
|
|
25
|
+
mentionDisplayText: string;
|
|
26
|
+
};
|
|
27
|
+
type MentionLookup = {
|
|
28
|
+
mentionDisplayTextSet: Set<string>;
|
|
29
|
+
mentionReplacementMap: Map<string, MentionReplacement>;
|
|
30
|
+
mentionReplacements: MentionReplacement[];
|
|
31
|
+
mentionsRegex: RegExp | null;
|
|
32
|
+
};
|
|
33
|
+
type MentionPluginAndDisplayTextSet = {
|
|
34
|
+
mentionDisplayTextSet: Set<string>;
|
|
35
|
+
plugin: () => (tree: HastTree) => void;
|
|
36
|
+
};
|
|
37
|
+
type HastTree = Parameters<typeof findAndReplace>[0];
|
|
38
|
+
export declare const getMentionDisplayTexts: (entity: RenderTextMentionEntity) => (string | undefined)[];
|
|
39
|
+
export declare const getRenderTextMentionEntities: (metadata?: RenderTextMentionMetadata) => RenderTextMentionEntity[];
|
|
40
|
+
export declare const mentionsMarkdownPluginFromLookup: ({ mentionDisplayTextSet, mentionReplacementMap, mentionReplacements, mentionsRegex, }: MentionLookup) => () => (tree: HastTree) => void;
|
|
41
|
+
export declare const createMentionPluginAndDisplayTextSet: (mentionEntitiesOrUsers: RenderTextMentionEntity[] | UserResponse[]) => MentionPluginAndDisplayTextSet;
|
|
42
|
+
export declare function mentionsMarkdownPlugin(mentionedUsers: UserResponse[]): () => (tree: HastTree) => void;
|
|
43
|
+
export declare function mentionsMarkdownPlugin(mentionEntities: RenderTextMentionEntity[]): () => (tree: HastTree) => void;
|
|
44
|
+
export {};
|
|
4
45
|
//# sourceMappingURL=mentionsMarkdownPlugin.d.ts.map
|
package/dist/types/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mentionsMarkdownPlugin.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/rehypePlugins/mentionsMarkdownPlugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mentionsMarkdownPlugin.d.ts","sourceRoot":"","sources":["../../../../../../src/components/Message/renderText/rehypePlugins/m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AC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,KAAK,QAAQ,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAmBrD,eAAO,MAAM,sBAAsB,GAAI,QAAQ,uBAAuB,2BAUrE,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,WAAW,yBAAyB,KACnC,uBAAuB,EA+CzB,CAAC;AAmDF,eAAO,MAAM,gCAAgC,GAC1C,uFAKE,aAAa,kBAyBW,QAAQ,SA6ClC,CAAC;AAEJ,eAAO,MAAM,oCAAoC,GAC/C,wBAAwB,uBAAuB,EAAE,GAAG,YAAY,EAAE,KACjE,8BAOF,CAAC;AAEF,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,YAAY,EAAE,GAC7B,MAAM,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;AAClC,wBAAgB,sBAAsB,CACpC,eAAe,EAAE,uBAAuB,EAAE,GACzC,MAAM,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { ComponentType, JSX } from 'react';
|
|
1
|
+
import type { ComponentType, JSX, ReactNode } from 'react';
|
|
2
2
|
import type { Options } from 'react-markdown';
|
|
3
3
|
import type { UserResponse } from 'stream-chat';
|
|
4
4
|
import type { PluggableList } from 'unified';
|
|
5
|
-
import type { MentionProps } from './componentRenderers';
|
|
5
|
+
import type { MentionProps } from './componentRenderers/Mention';
|
|
6
|
+
import type { RenderTextMentionEntity } from './rehypePlugins';
|
|
6
7
|
export type RenderTextPluginConfigurator = (defaultPlugins: PluggableList) => PluggableList;
|
|
7
8
|
type IntrinsicElementTagName = keyof JSX.IntrinsicElements & string;
|
|
8
9
|
export declare const defaultAllowedTagNames: Array<IntrinsicElementTagName | 'emoji' | 'mention'>;
|
|
@@ -15,7 +16,28 @@ export type RenderTextOptions = {
|
|
|
15
16
|
}>;
|
|
16
17
|
getRehypePlugins?: RenderTextPluginConfigurator;
|
|
17
18
|
getRemarkPlugins?: RenderTextPluginConfigurator;
|
|
19
|
+
/**
|
|
20
|
+
* Additive mention metadata for rendered message text.
|
|
21
|
+
*
|
|
22
|
+
* Prefer this over the deprecated `mentionedUsers` argument. Use it whenever
|
|
23
|
+
* the message contains mention kinds beyond direct-user mentions
|
|
24
|
+
* (for example `@channel`, `@here`, roles, or user groups) and `renderText`
|
|
25
|
+
* needs the exact mention entities that should be highlighted in the rendered
|
|
26
|
+
* markdown output.
|
|
27
|
+
*/
|
|
28
|
+
messageMentionEntities?: RenderTextMentionEntity[];
|
|
18
29
|
};
|
|
19
|
-
export
|
|
30
|
+
export type RenderTextFunction = (text?: string,
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Pass mention metadata through `options.messageMentionEntities`
|
|
33
|
+
* instead. This argument only supports direct-user mentions. Will be removed in next major version.
|
|
34
|
+
*/
|
|
35
|
+
mentionedUsers?: UserResponse[], options?: RenderTextOptions) => ReactNode;
|
|
36
|
+
export declare function renderText(text?: string,
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Pass mention metadata through `options.messageMentionEntities`
|
|
39
|
+
* instead. This argument only supports direct-user mentions.
|
|
40
|
+
*/
|
|
41
|
+
mentionedUsers?: UserResponse[], { allowedTagNames, customMarkDownRenderers, getRehypePlugins, getRemarkPlugins, messageMentionEntities, }?: RenderTextOptions): import("react/jsx-runtime").JSX.Element | null;
|
|
20
42
|
export {};
|
|
21
43
|
//# sourceMappingURL=renderText.d.ts.map
|