You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6ac36ce
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ScheduledMessages): make the list, row actions and dialogs overridable
Add ComponentContext slots used by the default components:
- ScheduledMessageList, for the banner's list dialog and the Channel Detail
section
- ScheduledMessageActions, the actions button on each list item (null hides
it)
- DeleteScheduledMessageAlert and RescheduleMessageDialog, opened from the
row menu
Refs: REACT-1390
Copy file name to clipboardExpand all lines: src/context/ComponentContext.tsx
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ import {
14
14
typeContextMenuContentProps,
15
15
typeContextMenuProps,
16
16
typeDateSeparatorProps,
17
+
typeDeleteScheduledMessageAlertProps,
17
18
typeEditedScheduledMessagePreviewProps,
18
19
typeEmojiSearchIndex,
19
20
typeEmptyStateIndicatorProps,
@@ -50,7 +51,10 @@ import {
50
51
typeReactionSelectorProps,
51
52
typeRecordingPermissionDeniedNotificationProps,
52
53
typeReminderNotificationProps,
54
+
typeRescheduleMessageDialogProps,
55
+
typeScheduledMessageActionsProps,
53
56
typeScheduledMessageItemProps,
57
+
typeScheduledMessageListProps,
54
58
typeScheduleMessageDialogProps,
55
59
typeScrollToLatestMessageButtonProps,
56
60
typeSearchResultsPresearchProps,
@@ -278,12 +282,20 @@ export type ComponentContextValue = {
278
282
SearchSourceResultsHeader?: React.ComponentType;
279
283
/** Custom component to display the search source results UI during the search query execution, defaults to and accepts same props as: [SearchSourceResultsLoadingIndicator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/Search/SearchResults/SearchSourceResultsLoadingIndicator.tsx) */
/** Custom UI component rendered on each scheduled message list item to open its actions, defaults to and accepts same props as: [ScheduledMessageActions](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ScheduledMessages/ScheduledMessageActions.tsx). Pass `null` to hide it. */
/** Custom UI component to render the scheduled message list in the banner dialog and the Channel Detail section, defaults to and accepts same props as: [ScheduledMessageList](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ScheduledMessages/ScheduledMessageList.tsx) */
/** Custom UI component rendered next to the send button that opens the schedule menu, defaults to: [ScheduleMessageButton](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ScheduledMessages/ScheduleMessageButton.tsx). Pass `null` to hide it. */
284
292
ScheduleMessageButton?: React.ComponentType|null;
285
293
/** Custom UI component to render the custom-time dialog for scheduling a message, defaults to and accepts same props as: [ScheduleMessageDialog](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ScheduledMessages/ScheduleMessageDialog.tsx) */
/** Custom UI component to confirm deleting a scheduled message, defaults to and accepts same props as: [DeleteScheduledMessageAlert](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ScheduledMessages/DeleteScheduledMessageAlert.tsx) */
/** Custom UI component to pick a new time for a scheduled message, defaults to and accepts same props as: [RescheduleMessageDialog](https://github.com/GetStream/stream-chat-react/blob/master/src/components/ScheduledMessages/RescheduleMessageDialog.tsx) */
/** Custom UI component for send button, defaults to and accepts same props as: [SendButton](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageComposer/icons.tsx) */
/** Custom UI component checkbox that indicates message to be sent to main channel, defaults to and accepts same props as: [SendToChannelCheckbox](https://github.com/GetStream/stream-chat-react/blob/master/src/components/MessageComposer/SendToChannelCheckbox.tsx) */
0 commit comments