@livo-tv/blocks 1.4.0 → 1.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/index.d.cts CHANGED
@@ -96,6 +96,33 @@ type ConfirmDestructiveDialogProps = {
96
96
  */
97
97
  declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, }: ConfirmDestructiveDialogProps): React.JSX.Element;
98
98
 
99
+ type NotificationBellItem = {
100
+ id: string;
101
+ title: string;
102
+ message: string;
103
+ read: boolean;
104
+ createdAt: string;
105
+ href?: string | null;
106
+ };
107
+ type NotificationBellLabels = {
108
+ title: string;
109
+ empty: string;
110
+ viewAll: string;
111
+ };
112
+ declare const DEFAULT_NOTIFICATION_BELL_LABELS: NotificationBellLabels;
113
+ type NotificationBellProps = {
114
+ items: NotificationBellItem[];
115
+ unreadCount: number;
116
+ isLoading?: boolean;
117
+ labels?: Partial<NotificationBellLabels>;
118
+ viewAllHref: string;
119
+ formatTime?: (iso: string) => string;
120
+ onOpenChange?: (open: boolean) => void;
121
+ align?: "start" | "end";
122
+ className?: string;
123
+ };
124
+ declare function NotificationBell({ items, unreadCount, isLoading, labels: labelOverrides, viewAllHref, formatTime, onOpenChange, align, className, }: NotificationBellProps): React.JSX.Element;
125
+
99
126
  type EditableSectionMode = "reading" | "editing" | "saving";
100
127
  type EditableSectionLabels = {
101
128
  /** Visible Edit button label. Default: "Edit" */
@@ -930,6 +957,19 @@ type FileUploadTrayProps = {
930
957
  };
931
958
  declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): React.JSX.Element | null;
932
959
 
960
+ type FileUploadMenuProps = {
961
+ jobs: UploadJob[];
962
+ labels?: Partial<FileUploadTrayLabels>;
963
+ onPause: (id: string) => void;
964
+ onResume: (id: string) => void;
965
+ onCancel: (id: string) => void;
966
+ open?: boolean;
967
+ onOpenChange?: (open: boolean) => void;
968
+ align?: "start" | "end";
969
+ className?: string;
970
+ };
971
+ declare function FileUploadMenu({ jobs, labels: labelOverrides, onPause, onResume, onCancel, open, onOpenChange, align, className, }: FileUploadMenuProps): React.JSX.Element | null;
972
+
933
973
  type CreateMultipartUploadControllerOptions = {
934
974
  file: Blob;
935
975
  partSize: number;
@@ -963,4 +1003,4 @@ declare function useMediaQuery(query: string): boolean;
963
1003
 
964
1004
  declare function cn(...inputs: ClassValue[]): string;
965
1005
 
966
- export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
1006
+ export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
package/dist/index.d.ts CHANGED
@@ -96,6 +96,33 @@ type ConfirmDestructiveDialogProps = {
96
96
  */
97
97
  declare function ConfirmDestructiveDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, }: ConfirmDestructiveDialogProps): React.JSX.Element;
98
98
 
99
+ type NotificationBellItem = {
100
+ id: string;
101
+ title: string;
102
+ message: string;
103
+ read: boolean;
104
+ createdAt: string;
105
+ href?: string | null;
106
+ };
107
+ type NotificationBellLabels = {
108
+ title: string;
109
+ empty: string;
110
+ viewAll: string;
111
+ };
112
+ declare const DEFAULT_NOTIFICATION_BELL_LABELS: NotificationBellLabels;
113
+ type NotificationBellProps = {
114
+ items: NotificationBellItem[];
115
+ unreadCount: number;
116
+ isLoading?: boolean;
117
+ labels?: Partial<NotificationBellLabels>;
118
+ viewAllHref: string;
119
+ formatTime?: (iso: string) => string;
120
+ onOpenChange?: (open: boolean) => void;
121
+ align?: "start" | "end";
122
+ className?: string;
123
+ };
124
+ declare function NotificationBell({ items, unreadCount, isLoading, labels: labelOverrides, viewAllHref, formatTime, onOpenChange, align, className, }: NotificationBellProps): React.JSX.Element;
125
+
99
126
  type EditableSectionMode = "reading" | "editing" | "saving";
100
127
  type EditableSectionLabels = {
101
128
  /** Visible Edit button label. Default: "Edit" */
@@ -930,6 +957,19 @@ type FileUploadTrayProps = {
930
957
  };
931
958
  declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): React.JSX.Element | null;
932
959
 
960
+ type FileUploadMenuProps = {
961
+ jobs: UploadJob[];
962
+ labels?: Partial<FileUploadTrayLabels>;
963
+ onPause: (id: string) => void;
964
+ onResume: (id: string) => void;
965
+ onCancel: (id: string) => void;
966
+ open?: boolean;
967
+ onOpenChange?: (open: boolean) => void;
968
+ align?: "start" | "end";
969
+ className?: string;
970
+ };
971
+ declare function FileUploadMenu({ jobs, labels: labelOverrides, onPause, onResume, onCancel, open, onOpenChange, align, className, }: FileUploadMenuProps): React.JSX.Element | null;
972
+
933
973
  type CreateMultipartUploadControllerOptions = {
934
974
  file: Blob;
935
975
  partSize: number;
@@ -963,4 +1003,4 @@ declare function useMediaQuery(query: string): boolean;
963
1003
 
964
1004
  declare function cn(...inputs: ClassValue[]): string;
965
1005
 
966
- export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
1006
+ export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CreateMultipartUploadControllerOptions, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageLabels, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_LABELS, DEFAULT_FILE_DROPZONE_LABELS, DEFAULT_FILE_UPLOAD_LABELS, DEFAULT_FILE_UPLOAD_TRAY_LABELS, DEFAULT_NOTIFICATION_BELL_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, EditableSection, type EditableSectionLabels, type EditableSectionMode, type EditableSectionProps, type EditableSectionSlots, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyState, type EmptyStateProps, EmptyTitle, ErrorState, FeedVideoPlayer, type FeedVideoPlayerProps, FieldMessage, type FieldMessageProps, FileDropzone, type FileDropzoneLabels, type FileDropzoneProps, FileUploadMenu, type FileUploadMenuProps, FileUploadTray, type FileUploadTrayLabels, type FileUploadTrayProps, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type UploadControllerStatus, type UploadJob, type UploadJobStatus, type UploadProgress, type UseEditableSectionOptions, type UseEditableSectionResult, type UseFeedExclusivePlaybackResult, type UseHlsPlaybackOptions, type UseHlsPlaybackResult, type UsePlaybackStatsOptions, VideoPlayer, type VideoPlayerLabels, type VideoPlayerProps, WaitingRoom, type WaitingRoomCurtain, type WaitingRoomProps, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };