@algenium/blocks 1.16.0 → 1.17.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/index.cjs +466 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -4
- package/dist/index.d.ts +32 -4
- package/dist/index.js +467 -165
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -68,6 +68,7 @@ interface ChatConversationRoom {
|
|
|
68
68
|
id: string;
|
|
69
69
|
type: string;
|
|
70
70
|
lastMessageAt: string | null;
|
|
71
|
+
unreadCount?: number;
|
|
71
72
|
}
|
|
72
73
|
interface ChatConversation {
|
|
73
74
|
caseId: string;
|
|
@@ -77,6 +78,7 @@ interface ChatConversation {
|
|
|
77
78
|
rooms: ChatConversationRoom[];
|
|
78
79
|
}
|
|
79
80
|
type ChatSidebarView = "list" | "chat";
|
|
81
|
+
type ChatStatusTone = "success" | "warning" | "destructive" | "info" | "neutral";
|
|
80
82
|
interface ChatSidebarContextValue {
|
|
81
83
|
isOpen: boolean;
|
|
82
84
|
view: ChatSidebarView;
|
|
@@ -84,6 +86,9 @@ interface ChatSidebarContextValue {
|
|
|
84
86
|
isLoading: boolean;
|
|
85
87
|
activeCaseId: string | null;
|
|
86
88
|
activeRoomId: string | null;
|
|
89
|
+
searchQuery: string;
|
|
90
|
+
setSearchQuery: (query: string) => void;
|
|
91
|
+
totalUnreadCount: number;
|
|
87
92
|
toggle: () => void;
|
|
88
93
|
open: () => void;
|
|
89
94
|
close: () => void;
|
|
@@ -91,6 +96,7 @@ interface ChatSidebarContextValue {
|
|
|
91
96
|
selectRoom: (roomId: string, caseId: string) => void;
|
|
92
97
|
back: () => void;
|
|
93
98
|
refetch: () => void;
|
|
99
|
+
clearRoomUnread: (roomId: string) => void;
|
|
94
100
|
}
|
|
95
101
|
declare const ChatSidebarContext: React.Context<ChatSidebarContextValue | null>;
|
|
96
102
|
declare function useChatSidebar(): ChatSidebarContextValue;
|
|
@@ -680,20 +686,28 @@ interface UseChatRoomOptions {
|
|
|
680
686
|
minReconnectDelay?: number;
|
|
681
687
|
maxReconnectDelay?: number;
|
|
682
688
|
pingInterval?: number;
|
|
689
|
+
/** Called after a successful mark-read so the sidebar can clear unread badges. */
|
|
690
|
+
onMarkedRead?: (roomId: string) => void;
|
|
683
691
|
}
|
|
684
692
|
interface UseChatRoomResult {
|
|
685
693
|
messages: ChatMessageData[];
|
|
686
694
|
sendMessage: (content: string, attachmentIds?: string[]) => void;
|
|
687
695
|
sendTyping: (isTyping: boolean) => void;
|
|
696
|
+
markRead: (lastMessageId: string, lastReadAt: string) => void;
|
|
688
697
|
isConnected: boolean;
|
|
689
698
|
error: string | null;
|
|
690
699
|
typingUsers: Array<{
|
|
691
700
|
userId: string;
|
|
692
701
|
userName: string | null;
|
|
693
702
|
}>;
|
|
703
|
+
onlineUserIds: string[];
|
|
704
|
+
/** Map of userId -> lastReadAt ISO string */
|
|
705
|
+
readReceipts: Record<string, string>;
|
|
694
706
|
loadMoreHistory: () => Promise<void>;
|
|
695
707
|
hasMoreHistory: boolean;
|
|
696
708
|
isLoadingHistory: boolean;
|
|
709
|
+
/** True until the first history load after server_hello resolves. */
|
|
710
|
+
isInitialLoading: boolean;
|
|
697
711
|
}
|
|
698
712
|
declare function useChatRoom(roomId: string | null | undefined, config: ChatRoomConfig, options?: UseChatRoomOptions): UseChatRoomResult;
|
|
699
713
|
|
|
@@ -704,23 +718,35 @@ interface ChatRoomViewLabels {
|
|
|
704
718
|
today?: string;
|
|
705
719
|
yesterday?: string;
|
|
706
720
|
attachFile?: string;
|
|
721
|
+
online?: string;
|
|
722
|
+
offline?: string;
|
|
723
|
+
seen?: string;
|
|
724
|
+
loading?: string;
|
|
707
725
|
}
|
|
708
726
|
interface ChatRoomViewProps {
|
|
709
727
|
roomId: string;
|
|
710
728
|
currentUserId: string;
|
|
711
729
|
config: ChatRoomConfig;
|
|
712
730
|
roomLabel?: string;
|
|
731
|
+
caseNumber?: string;
|
|
713
732
|
labels?: ChatRoomViewLabels;
|
|
714
733
|
roleLabel?: (role: string) => string;
|
|
734
|
+
onMarkedRead?: (roomId: string) => void;
|
|
715
735
|
className?: string;
|
|
716
736
|
}
|
|
717
|
-
declare function ChatRoomView({ roomId, currentUserId, config, roomLabel, labels, roleLabel, className, }: ChatRoomViewProps): react_jsx_runtime.JSX.Element;
|
|
737
|
+
declare function ChatRoomView({ roomId, currentUserId, config, roomLabel, caseNumber, labels, roleLabel, onMarkedRead, className, }: ChatRoomViewProps): react_jsx_runtime.JSX.Element;
|
|
718
738
|
|
|
719
739
|
interface ChatSidebarLabels extends ChatRoomViewLabels {
|
|
720
740
|
title?: string;
|
|
721
741
|
noConversations?: string;
|
|
742
|
+
noResults?: string;
|
|
722
743
|
rooms?: string;
|
|
723
744
|
loading?: string;
|
|
745
|
+
searchPlaceholder?: string;
|
|
746
|
+
noMessagesShort?: string;
|
|
747
|
+
online?: string;
|
|
748
|
+
offline?: string;
|
|
749
|
+
seen?: string;
|
|
724
750
|
}
|
|
725
751
|
interface ChatSidebarProps {
|
|
726
752
|
currentUserId: string;
|
|
@@ -728,11 +754,13 @@ interface ChatSidebarProps {
|
|
|
728
754
|
labels?: ChatSidebarLabels;
|
|
729
755
|
roleLabel?: (role: string) => string;
|
|
730
756
|
roomTypeLabel?: (type: string) => string;
|
|
757
|
+
statusLabel?: (status: string) => string;
|
|
758
|
+
statusTone?: (status: string) => ChatStatusTone;
|
|
731
759
|
/** Top offset on mobile so the navbar stays visible (e.g. "3.5rem", "4rem"). */
|
|
732
760
|
mobileTopOffset?: string;
|
|
733
761
|
className?: string;
|
|
734
762
|
}
|
|
735
|
-
declare function ChatSidebar({ currentUserId, config, labels, roleLabel, roomTypeLabel, mobileTopOffset, className, }: ChatSidebarProps): react_jsx_runtime.JSX.Element | null;
|
|
763
|
+
declare function ChatSidebar({ currentUserId, config, labels, roleLabel, roomTypeLabel, statusLabel, statusTone, mobileTopOffset, className, }: ChatSidebarProps): react_jsx_runtime.JSX.Element | null;
|
|
736
764
|
|
|
737
765
|
/** Category keys, in display order. */
|
|
738
766
|
type EmojiCategoryKey = "smileys" | "people" | "nature" | "food" | "travel" | "activities" | "objects" | "symbols" | "flags";
|
|
@@ -1035,7 +1063,7 @@ declare function useDebouncedValue<T>(value: T, delayMs: number): T;
|
|
|
1035
1063
|
declare function useDebouncedValueStrict<T>(value: T, delayMs: number): T | undefined;
|
|
1036
1064
|
|
|
1037
1065
|
declare const buttonVariants: (props?: ({
|
|
1038
|
-
variant?: "
|
|
1066
|
+
variant?: "destructive" | "default" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
1039
1067
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
1040
1068
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1041
1069
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -1381,4 +1409,4 @@ declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
|
1381
1409
|
|
|
1382
1410
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1383
1411
|
|
|
1384
|
-
export { type AddressAutocompleteAdapter, type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type DescribedPlaybackError, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmptyState, type EmptyStateProps, EnvironmentBanner, type EnvironmentBannerLabels, type EnvironmentBannerProps, EnvironmentContext, type EnvironmentContextValue, EnvironmentDot, type EnvironmentDotProps, EnvironmentMiniBadge, type EnvironmentMiniBadgeProps, EnvironmentSwitcher, type EnvironmentSwitcherLabels, type EnvironmentSwitcherProps, ErrorState, EventDialog, type EventDialogLabels, type EventDialogProps, EventRsvpBadge, type EventRsvpBadgeProps, type FeatureEntry, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, MiniCalendar, type MiniCalendarProps, type Notification, type NotificationType, NotificationsContext, type NotificationsContextValue, NotificationsWidget, type NotificationsWidgetProps, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PhoneInput, type PhoneInputProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfessionalVerificationStatus, type QualityLevel, ScrollArea, ScrollBar, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, Slider, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, type USAddressInputLabels, type USAddressInputProps, type USAddressValue, UpcomingEvents, type UpcomingEventsProps, type UseChatRoomResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, buttonVariants, cn, createLiveHlsConfig, createVodHlsConfig, defaultLanguages, describePlaybackError, fuzzyMatch, getEnvironmentDotClass, getEnvironmentLabel, isBlocksDataEnvironment, normalizeEmojiQuery, shouldRetryLiveEdge404, toggleVariants, useCalendarContext, useChatRoom, useChatSidebar, useDebouncedValue, useDebouncedValueStrict, useEnvironmentContext, useHlsPlayback, useLanguageContext, useNotificationsContext, usePlaybackStats, useSearchHotkey };
|
|
1412
|
+
export { type AddressAutocompleteAdapter, type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, type ChatStatusTone, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type DescribedPlaybackError, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmptyState, type EmptyStateProps, EnvironmentBanner, type EnvironmentBannerLabels, type EnvironmentBannerProps, EnvironmentContext, type EnvironmentContextValue, EnvironmentDot, type EnvironmentDotProps, EnvironmentMiniBadge, type EnvironmentMiniBadgeProps, EnvironmentSwitcher, type EnvironmentSwitcherLabels, type EnvironmentSwitcherProps, ErrorState, EventDialog, type EventDialogLabels, type EventDialogProps, EventRsvpBadge, type EventRsvpBadgeProps, type FeatureEntry, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, MiniCalendar, type MiniCalendarProps, type Notification, type NotificationType, NotificationsContext, type NotificationsContextValue, NotificationsWidget, type NotificationsWidgetProps, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PhoneInput, type PhoneInputProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfessionalVerificationStatus, type QualityLevel, ScrollArea, ScrollBar, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, Slider, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, type USAddressInputLabels, type USAddressInputProps, type USAddressValue, UpcomingEvents, type UpcomingEventsProps, type UseChatRoomResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, buttonVariants, cn, createLiveHlsConfig, createVodHlsConfig, defaultLanguages, describePlaybackError, fuzzyMatch, getEnvironmentDotClass, getEnvironmentLabel, isBlocksDataEnvironment, normalizeEmojiQuery, shouldRetryLiveEdge404, toggleVariants, useCalendarContext, useChatRoom, useChatSidebar, useDebouncedValue, useDebouncedValueStrict, useEnvironmentContext, useHlsPlayback, useLanguageContext, useNotificationsContext, usePlaybackStats, useSearchHotkey };
|
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ interface ChatConversationRoom {
|
|
|
68
68
|
id: string;
|
|
69
69
|
type: string;
|
|
70
70
|
lastMessageAt: string | null;
|
|
71
|
+
unreadCount?: number;
|
|
71
72
|
}
|
|
72
73
|
interface ChatConversation {
|
|
73
74
|
caseId: string;
|
|
@@ -77,6 +78,7 @@ interface ChatConversation {
|
|
|
77
78
|
rooms: ChatConversationRoom[];
|
|
78
79
|
}
|
|
79
80
|
type ChatSidebarView = "list" | "chat";
|
|
81
|
+
type ChatStatusTone = "success" | "warning" | "destructive" | "info" | "neutral";
|
|
80
82
|
interface ChatSidebarContextValue {
|
|
81
83
|
isOpen: boolean;
|
|
82
84
|
view: ChatSidebarView;
|
|
@@ -84,6 +86,9 @@ interface ChatSidebarContextValue {
|
|
|
84
86
|
isLoading: boolean;
|
|
85
87
|
activeCaseId: string | null;
|
|
86
88
|
activeRoomId: string | null;
|
|
89
|
+
searchQuery: string;
|
|
90
|
+
setSearchQuery: (query: string) => void;
|
|
91
|
+
totalUnreadCount: number;
|
|
87
92
|
toggle: () => void;
|
|
88
93
|
open: () => void;
|
|
89
94
|
close: () => void;
|
|
@@ -91,6 +96,7 @@ interface ChatSidebarContextValue {
|
|
|
91
96
|
selectRoom: (roomId: string, caseId: string) => void;
|
|
92
97
|
back: () => void;
|
|
93
98
|
refetch: () => void;
|
|
99
|
+
clearRoomUnread: (roomId: string) => void;
|
|
94
100
|
}
|
|
95
101
|
declare const ChatSidebarContext: React.Context<ChatSidebarContextValue | null>;
|
|
96
102
|
declare function useChatSidebar(): ChatSidebarContextValue;
|
|
@@ -680,20 +686,28 @@ interface UseChatRoomOptions {
|
|
|
680
686
|
minReconnectDelay?: number;
|
|
681
687
|
maxReconnectDelay?: number;
|
|
682
688
|
pingInterval?: number;
|
|
689
|
+
/** Called after a successful mark-read so the sidebar can clear unread badges. */
|
|
690
|
+
onMarkedRead?: (roomId: string) => void;
|
|
683
691
|
}
|
|
684
692
|
interface UseChatRoomResult {
|
|
685
693
|
messages: ChatMessageData[];
|
|
686
694
|
sendMessage: (content: string, attachmentIds?: string[]) => void;
|
|
687
695
|
sendTyping: (isTyping: boolean) => void;
|
|
696
|
+
markRead: (lastMessageId: string, lastReadAt: string) => void;
|
|
688
697
|
isConnected: boolean;
|
|
689
698
|
error: string | null;
|
|
690
699
|
typingUsers: Array<{
|
|
691
700
|
userId: string;
|
|
692
701
|
userName: string | null;
|
|
693
702
|
}>;
|
|
703
|
+
onlineUserIds: string[];
|
|
704
|
+
/** Map of userId -> lastReadAt ISO string */
|
|
705
|
+
readReceipts: Record<string, string>;
|
|
694
706
|
loadMoreHistory: () => Promise<void>;
|
|
695
707
|
hasMoreHistory: boolean;
|
|
696
708
|
isLoadingHistory: boolean;
|
|
709
|
+
/** True until the first history load after server_hello resolves. */
|
|
710
|
+
isInitialLoading: boolean;
|
|
697
711
|
}
|
|
698
712
|
declare function useChatRoom(roomId: string | null | undefined, config: ChatRoomConfig, options?: UseChatRoomOptions): UseChatRoomResult;
|
|
699
713
|
|
|
@@ -704,23 +718,35 @@ interface ChatRoomViewLabels {
|
|
|
704
718
|
today?: string;
|
|
705
719
|
yesterday?: string;
|
|
706
720
|
attachFile?: string;
|
|
721
|
+
online?: string;
|
|
722
|
+
offline?: string;
|
|
723
|
+
seen?: string;
|
|
724
|
+
loading?: string;
|
|
707
725
|
}
|
|
708
726
|
interface ChatRoomViewProps {
|
|
709
727
|
roomId: string;
|
|
710
728
|
currentUserId: string;
|
|
711
729
|
config: ChatRoomConfig;
|
|
712
730
|
roomLabel?: string;
|
|
731
|
+
caseNumber?: string;
|
|
713
732
|
labels?: ChatRoomViewLabels;
|
|
714
733
|
roleLabel?: (role: string) => string;
|
|
734
|
+
onMarkedRead?: (roomId: string) => void;
|
|
715
735
|
className?: string;
|
|
716
736
|
}
|
|
717
|
-
declare function ChatRoomView({ roomId, currentUserId, config, roomLabel, labels, roleLabel, className, }: ChatRoomViewProps): react_jsx_runtime.JSX.Element;
|
|
737
|
+
declare function ChatRoomView({ roomId, currentUserId, config, roomLabel, caseNumber, labels, roleLabel, onMarkedRead, className, }: ChatRoomViewProps): react_jsx_runtime.JSX.Element;
|
|
718
738
|
|
|
719
739
|
interface ChatSidebarLabels extends ChatRoomViewLabels {
|
|
720
740
|
title?: string;
|
|
721
741
|
noConversations?: string;
|
|
742
|
+
noResults?: string;
|
|
722
743
|
rooms?: string;
|
|
723
744
|
loading?: string;
|
|
745
|
+
searchPlaceholder?: string;
|
|
746
|
+
noMessagesShort?: string;
|
|
747
|
+
online?: string;
|
|
748
|
+
offline?: string;
|
|
749
|
+
seen?: string;
|
|
724
750
|
}
|
|
725
751
|
interface ChatSidebarProps {
|
|
726
752
|
currentUserId: string;
|
|
@@ -728,11 +754,13 @@ interface ChatSidebarProps {
|
|
|
728
754
|
labels?: ChatSidebarLabels;
|
|
729
755
|
roleLabel?: (role: string) => string;
|
|
730
756
|
roomTypeLabel?: (type: string) => string;
|
|
757
|
+
statusLabel?: (status: string) => string;
|
|
758
|
+
statusTone?: (status: string) => ChatStatusTone;
|
|
731
759
|
/** Top offset on mobile so the navbar stays visible (e.g. "3.5rem", "4rem"). */
|
|
732
760
|
mobileTopOffset?: string;
|
|
733
761
|
className?: string;
|
|
734
762
|
}
|
|
735
|
-
declare function ChatSidebar({ currentUserId, config, labels, roleLabel, roomTypeLabel, mobileTopOffset, className, }: ChatSidebarProps): react_jsx_runtime.JSX.Element | null;
|
|
763
|
+
declare function ChatSidebar({ currentUserId, config, labels, roleLabel, roomTypeLabel, statusLabel, statusTone, mobileTopOffset, className, }: ChatSidebarProps): react_jsx_runtime.JSX.Element | null;
|
|
736
764
|
|
|
737
765
|
/** Category keys, in display order. */
|
|
738
766
|
type EmojiCategoryKey = "smileys" | "people" | "nature" | "food" | "travel" | "activities" | "objects" | "symbols" | "flags";
|
|
@@ -1035,7 +1063,7 @@ declare function useDebouncedValue<T>(value: T, delayMs: number): T;
|
|
|
1035
1063
|
declare function useDebouncedValueStrict<T>(value: T, delayMs: number): T | undefined;
|
|
1036
1064
|
|
|
1037
1065
|
declare const buttonVariants: (props?: ({
|
|
1038
|
-
variant?: "
|
|
1066
|
+
variant?: "destructive" | "default" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
1039
1067
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
1040
1068
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1041
1069
|
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -1381,4 +1409,4 @@ declare const MEXICO_STATE_PATHS: Record<MexicoStateId, string>;
|
|
|
1381
1409
|
|
|
1382
1410
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1383
1411
|
|
|
1384
|
-
export { type AddressAutocompleteAdapter, type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type DescribedPlaybackError, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmptyState, type EmptyStateProps, EnvironmentBanner, type EnvironmentBannerLabels, type EnvironmentBannerProps, EnvironmentContext, type EnvironmentContextValue, EnvironmentDot, type EnvironmentDotProps, EnvironmentMiniBadge, type EnvironmentMiniBadgeProps, EnvironmentSwitcher, type EnvironmentSwitcherLabels, type EnvironmentSwitcherProps, ErrorState, EventDialog, type EventDialogLabels, type EventDialogProps, EventRsvpBadge, type EventRsvpBadgeProps, type FeatureEntry, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, MiniCalendar, type MiniCalendarProps, type Notification, type NotificationType, NotificationsContext, type NotificationsContextValue, NotificationsWidget, type NotificationsWidgetProps, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PhoneInput, type PhoneInputProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfessionalVerificationStatus, type QualityLevel, ScrollArea, ScrollBar, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, Slider, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, type USAddressInputLabels, type USAddressInputProps, type USAddressValue, UpcomingEvents, type UpcomingEventsProps, type UseChatRoomResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, buttonVariants, cn, createLiveHlsConfig, createVodHlsConfig, defaultLanguages, describePlaybackError, fuzzyMatch, getEnvironmentDotClass, getEnvironmentLabel, isBlocksDataEnvironment, normalizeEmojiQuery, shouldRetryLiveEdge404, toggleVariants, useCalendarContext, useChatRoom, useChatSidebar, useDebouncedValue, useDebouncedValueStrict, useEnvironmentContext, useHlsPlayback, useLanguageContext, useNotificationsContext, usePlaybackStats, useSearchHotkey };
|
|
1412
|
+
export { type AddressAutocompleteAdapter, type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorProps, BLOCKS_DATA_ENVIRONMENTS, type BlocksDataEnvironment, type BlocksLanguage, type BlocksNotification, Button, CalendarContext, type CalendarContextValue, type CalendarData, type CalendarEvent, CalendarSubscribeButton, type CalendarSubscribeButtonProps, CalendarView, type CalendarViewLabels, type CalendarViewMode, type CalendarViewProps, CalendarWidget, type CalendarWidgetLabels, type CalendarWidgetProps, CardInput, type CardInputLabels, type CardInputProps, type CardTokenResult, type ChatConversation, type ChatConversationRoom, type ChatMessageData, type ChatRoomConfig, ChatRoomView, type ChatRoomViewLabels, type ChatRoomViewProps, ChatSidebar, ChatSidebarContext, type ChatSidebarContextValue, type ChatSidebarLabels, type ChatSidebarProps, ChatSidebarProvider, type ChatSidebarProviderProps, type ChatSidebarView, type ChatStatusTone, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, type DescribedPlaybackError, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EmojiCategoryData, type EmojiCategoryKey, type EmojiDatum, EmojiPicker, type EmojiPickerLabels, type EmojiPickerLocale, EmojiPickerPopover, type EmojiPickerPopoverProps, type EmojiPickerProps, type EmojiSkinTone, EmptyState, type EmptyStateProps, EnvironmentBanner, type EnvironmentBannerLabels, type EnvironmentBannerProps, EnvironmentContext, type EnvironmentContextValue, EnvironmentDot, type EnvironmentDotProps, EnvironmentMiniBadge, type EnvironmentMiniBadgeProps, EnvironmentSwitcher, type EnvironmentSwitcherLabels, type EnvironmentSwitcherProps, ErrorState, EventDialog, type EventDialogLabels, type EventDialogProps, EventRsvpBadge, type EventRsvpBadgeProps, type FeatureEntry, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, MEXICO_STATES, MEXICO_STATE_PATHS, MexicoMap, type MexicoMapProps, type MexicoState, type MexicoStateId, MiniCalendar, type MiniCalendarProps, type Notification, type NotificationType, NotificationsContext, type NotificationsContextValue, NotificationsWidget, type NotificationsWidgetProps, OrgSwitcher, type OrgSwitcherLabels, type OrgSwitcherProps, type OrgSwitcherTenant, PhoneInput, type PhoneInputProps, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfessionalVerificationStatus, type QualityLevel, ScrollArea, ScrollBar, SearchCommand, type SearchCommandLabels, type SearchCommandProps, type SearchCommandSelection, type SearchHit, Slider, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, Toggle, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, USAddressInput, type USAddressInputLabels, type USAddressInputProps, type USAddressValue, UpcomingEvents, type UpcomingEventsProps, type UseChatRoomResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, type UseSearchHotkeyOptions, type UseSearchHotkeyResult, VerifiedProfessionalBadge, type VerifiedProfessionalBadgeProps, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, buttonVariants, cn, createLiveHlsConfig, createVodHlsConfig, defaultLanguages, describePlaybackError, fuzzyMatch, getEnvironmentDotClass, getEnvironmentLabel, isBlocksDataEnvironment, normalizeEmojiQuery, shouldRetryLiveEdge404, toggleVariants, useCalendarContext, useChatRoom, useChatSidebar, useDebouncedValue, useDebouncedValueStrict, useEnvironmentContext, useHlsPlayback, useLanguageContext, useNotificationsContext, usePlaybackStats, useSearchHotkey };
|