@livo-tv/blocks 1.2.0 → 1.4.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/README.md +1 -1
- package/dist/index.cjs +839 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +122 -6
- package/dist/index.d.ts +122 -6
- package/dist/index.js +831 -89
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -440,6 +440,12 @@ interface AvatarEditorDialogProps {
|
|
|
440
440
|
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, editorLabels, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
441
441
|
|
|
442
442
|
type CurtainKind = "image" | "video";
|
|
443
|
+
interface CurtainStageLabels {
|
|
444
|
+
play?: string;
|
|
445
|
+
tapToUnmute?: string;
|
|
446
|
+
mute?: string;
|
|
447
|
+
unmute?: string;
|
|
448
|
+
}
|
|
443
449
|
interface CurtainStageProps {
|
|
444
450
|
kind: CurtainKind;
|
|
445
451
|
url: string;
|
|
@@ -447,13 +453,20 @@ interface CurtainStageProps {
|
|
|
447
453
|
className?: string;
|
|
448
454
|
/** When true, video curtains show a static frame instead of looping. */
|
|
449
455
|
reducedMotion?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Waiting-room only. Starts muted, then offers tap-to-unmute when the
|
|
458
|
+
* file has (or may have) an audio track. Picker tiles leave this off.
|
|
459
|
+
*/
|
|
460
|
+
allowSound?: boolean;
|
|
461
|
+
labels?: CurtainStageLabels;
|
|
450
462
|
}
|
|
451
463
|
/**
|
|
452
|
-
* Waiting-room backdrop: a still image or a
|
|
464
|
+
* Waiting-room backdrop: a still image or a looping video that starts muted.
|
|
453
465
|
* Honors `prefers-reduced-motion` (or an explicit `reducedMotion` prop)
|
|
454
|
-
* by freezing video on the first frame.
|
|
466
|
+
* by freezing video on the first frame. `allowSound` offers tap-to-unmute
|
|
467
|
+
* when the file has audio.
|
|
455
468
|
*/
|
|
456
|
-
declare function CurtainStage({ kind, url, alt, className, reducedMotion, }: CurtainStageProps): React.JSX.Element;
|
|
469
|
+
declare function CurtainStage({ kind, url, alt, className, reducedMotion, allowSound, labels, }: CurtainStageProps): React.JSX.Element;
|
|
457
470
|
|
|
458
471
|
type CurtainPreviewProps = {
|
|
459
472
|
kind: CurtainKind | string;
|
|
@@ -466,12 +479,14 @@ type CurtainPreviewProps = {
|
|
|
466
479
|
* static first frame so a large grid does not play every loop at once.
|
|
467
480
|
*/
|
|
468
481
|
playWhenVisible?: boolean;
|
|
482
|
+
/** Force a static first frame even when the tile is visible. */
|
|
483
|
+
frozen?: boolean;
|
|
469
484
|
};
|
|
470
485
|
/**
|
|
471
486
|
* Thumbnail for a curtain asset: still image, or a muted looping video
|
|
472
487
|
* that plays only while visible (unless reduced motion is on).
|
|
473
488
|
*/
|
|
474
|
-
declare function CurtainPreview({ kind, url, alt, className, playWhenVisible, }: CurtainPreviewProps): React.JSX.Element;
|
|
489
|
+
declare function CurtainPreview({ kind, url, alt, className, playWhenVisible, frozen, }: CurtainPreviewProps): React.JSX.Element;
|
|
475
490
|
|
|
476
491
|
type CurtainPickerOwnerType = "organization" | "platform" | string;
|
|
477
492
|
type CurtainPickerItem = {
|
|
@@ -508,7 +523,7 @@ type CurtainPickerProps = {
|
|
|
508
523
|
onChange?: (id: string | null) => void;
|
|
509
524
|
allowNone?: boolean;
|
|
510
525
|
disabled?: boolean;
|
|
511
|
-
/** `compact` is
|
|
526
|
+
/** `compact` is a selected preview plus a dense thumbnail grid. */
|
|
512
527
|
variant?: "default" | "compact";
|
|
513
528
|
/** Split the grid into organization / platform / other sections. */
|
|
514
529
|
groupByOwner?: boolean;
|
|
@@ -843,8 +858,109 @@ declare function createLiveHlsConfig(): Partial<HlsConfig>;
|
|
|
843
858
|
*/
|
|
844
859
|
declare function createVodHlsConfig(): Partial<HlsConfig>;
|
|
845
860
|
|
|
861
|
+
type MultipartUploadPart = {
|
|
862
|
+
partNumber: number;
|
|
863
|
+
etag: string;
|
|
864
|
+
};
|
|
865
|
+
type MultipartUploadAdapter = {
|
|
866
|
+
requestPartUrl: (partNumber: number) => Promise<string>;
|
|
867
|
+
complete: (parts: MultipartUploadPart[]) => Promise<void>;
|
|
868
|
+
abort?: () => Promise<void>;
|
|
869
|
+
};
|
|
870
|
+
type UploadProgress = {
|
|
871
|
+
loaded: number;
|
|
872
|
+
total: number;
|
|
873
|
+
percent: number;
|
|
874
|
+
};
|
|
875
|
+
type UploadControllerStatus = "idle" | "uploading" | "paused" | "completing" | "completed" | "cancelled" | "error";
|
|
876
|
+
type UploadJobStatus = Exclude<UploadControllerStatus, "idle">;
|
|
877
|
+
type UploadJob = {
|
|
878
|
+
id: string;
|
|
879
|
+
name: string;
|
|
880
|
+
status: UploadJobStatus;
|
|
881
|
+
loaded: number;
|
|
882
|
+
total: number;
|
|
883
|
+
percent: number;
|
|
884
|
+
error?: string;
|
|
885
|
+
};
|
|
886
|
+
type FileDropzoneLabels = {
|
|
887
|
+
idle: string;
|
|
888
|
+
hint: string;
|
|
889
|
+
browse: string;
|
|
890
|
+
rejectType: string;
|
|
891
|
+
rejectSize: string;
|
|
892
|
+
};
|
|
893
|
+
type FileUploadTrayLabels = {
|
|
894
|
+
title: string;
|
|
895
|
+
pause: string;
|
|
896
|
+
resume: string;
|
|
897
|
+
cancel: string;
|
|
898
|
+
uploading: string;
|
|
899
|
+
paused: string;
|
|
900
|
+
completing: string;
|
|
901
|
+
completed: string;
|
|
902
|
+
cancelled: string;
|
|
903
|
+
error: string;
|
|
904
|
+
};
|
|
905
|
+
declare const DEFAULT_FILE_DROPZONE_LABELS: FileDropzoneLabels;
|
|
906
|
+
declare const DEFAULT_FILE_UPLOAD_TRAY_LABELS: FileUploadTrayLabels;
|
|
907
|
+
declare const DEFAULT_FILE_UPLOAD_LABELS: {
|
|
908
|
+
dropzone: FileDropzoneLabels;
|
|
909
|
+
tray: FileUploadTrayLabels;
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
type FileDropzoneProps = {
|
|
913
|
+
accept?: string;
|
|
914
|
+
maxSize?: number;
|
|
915
|
+
disabled?: boolean;
|
|
916
|
+
labels?: Partial<FileDropzoneLabels>;
|
|
917
|
+
onFile: (file: File) => void;
|
|
918
|
+
onReject?: (reason: "type" | "size") => void;
|
|
919
|
+
className?: string;
|
|
920
|
+
};
|
|
921
|
+
declare function FileDropzone({ accept, maxSize, disabled, labels: labelOverrides, onFile, onReject, className, }: FileDropzoneProps): React.JSX.Element;
|
|
922
|
+
|
|
923
|
+
type FileUploadTrayProps = {
|
|
924
|
+
jobs: UploadJob[];
|
|
925
|
+
labels?: Partial<FileUploadTrayLabels>;
|
|
926
|
+
onPause: (id: string) => void;
|
|
927
|
+
onResume: (id: string) => void;
|
|
928
|
+
onCancel: (id: string) => void;
|
|
929
|
+
className?: string;
|
|
930
|
+
};
|
|
931
|
+
declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): React.JSX.Element | null;
|
|
932
|
+
|
|
933
|
+
type CreateMultipartUploadControllerOptions = {
|
|
934
|
+
file: Blob;
|
|
935
|
+
partSize: number;
|
|
936
|
+
adapter: MultipartUploadAdapter;
|
|
937
|
+
onProgress?: (progress: UploadProgress) => void;
|
|
938
|
+
xhrFactory?: () => XMLHttpRequest;
|
|
939
|
+
};
|
|
940
|
+
type MultipartUploadController = {
|
|
941
|
+
start: () => Promise<void>;
|
|
942
|
+
pause: () => void;
|
|
943
|
+
resume: () => Promise<void>;
|
|
944
|
+
cancel: () => Promise<void>;
|
|
945
|
+
getStatus: () => UploadControllerStatus;
|
|
946
|
+
};
|
|
947
|
+
declare function createMultipartUploadController(options: CreateMultipartUploadControllerOptions): MultipartUploadController;
|
|
948
|
+
|
|
949
|
+
type PartRange = {
|
|
950
|
+
partNumber: number;
|
|
951
|
+
start: number;
|
|
952
|
+
end: number;
|
|
953
|
+
};
|
|
954
|
+
declare function partRanges(fileSize: number, partSize: number): PartRange[];
|
|
955
|
+
declare function progressFromBytes(loaded: number, total: number): {
|
|
956
|
+
loaded: number;
|
|
957
|
+
total: number;
|
|
958
|
+
percent: number;
|
|
959
|
+
};
|
|
960
|
+
declare function fileMatchesAccept(file: File, accept?: string): boolean;
|
|
961
|
+
|
|
846
962
|
declare function useMediaQuery(query: string): boolean;
|
|
847
963
|
|
|
848
964
|
declare function cn(...inputs: ClassValue[]): string;
|
|
849
965
|
|
|
850
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_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, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, 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, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, loadCastSender, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -440,6 +440,12 @@ interface AvatarEditorDialogProps {
|
|
|
440
440
|
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, editorLabels, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
441
441
|
|
|
442
442
|
type CurtainKind = "image" | "video";
|
|
443
|
+
interface CurtainStageLabels {
|
|
444
|
+
play?: string;
|
|
445
|
+
tapToUnmute?: string;
|
|
446
|
+
mute?: string;
|
|
447
|
+
unmute?: string;
|
|
448
|
+
}
|
|
443
449
|
interface CurtainStageProps {
|
|
444
450
|
kind: CurtainKind;
|
|
445
451
|
url: string;
|
|
@@ -447,13 +453,20 @@ interface CurtainStageProps {
|
|
|
447
453
|
className?: string;
|
|
448
454
|
/** When true, video curtains show a static frame instead of looping. */
|
|
449
455
|
reducedMotion?: boolean;
|
|
456
|
+
/**
|
|
457
|
+
* Waiting-room only. Starts muted, then offers tap-to-unmute when the
|
|
458
|
+
* file has (or may have) an audio track. Picker tiles leave this off.
|
|
459
|
+
*/
|
|
460
|
+
allowSound?: boolean;
|
|
461
|
+
labels?: CurtainStageLabels;
|
|
450
462
|
}
|
|
451
463
|
/**
|
|
452
|
-
* Waiting-room backdrop: a still image or a
|
|
464
|
+
* Waiting-room backdrop: a still image or a looping video that starts muted.
|
|
453
465
|
* Honors `prefers-reduced-motion` (or an explicit `reducedMotion` prop)
|
|
454
|
-
* by freezing video on the first frame.
|
|
466
|
+
* by freezing video on the first frame. `allowSound` offers tap-to-unmute
|
|
467
|
+
* when the file has audio.
|
|
455
468
|
*/
|
|
456
|
-
declare function CurtainStage({ kind, url, alt, className, reducedMotion, }: CurtainStageProps): React.JSX.Element;
|
|
469
|
+
declare function CurtainStage({ kind, url, alt, className, reducedMotion, allowSound, labels, }: CurtainStageProps): React.JSX.Element;
|
|
457
470
|
|
|
458
471
|
type CurtainPreviewProps = {
|
|
459
472
|
kind: CurtainKind | string;
|
|
@@ -466,12 +479,14 @@ type CurtainPreviewProps = {
|
|
|
466
479
|
* static first frame so a large grid does not play every loop at once.
|
|
467
480
|
*/
|
|
468
481
|
playWhenVisible?: boolean;
|
|
482
|
+
/** Force a static first frame even when the tile is visible. */
|
|
483
|
+
frozen?: boolean;
|
|
469
484
|
};
|
|
470
485
|
/**
|
|
471
486
|
* Thumbnail for a curtain asset: still image, or a muted looping video
|
|
472
487
|
* that plays only while visible (unless reduced motion is on).
|
|
473
488
|
*/
|
|
474
|
-
declare function CurtainPreview({ kind, url, alt, className, playWhenVisible, }: CurtainPreviewProps): React.JSX.Element;
|
|
489
|
+
declare function CurtainPreview({ kind, url, alt, className, playWhenVisible, frozen, }: CurtainPreviewProps): React.JSX.Element;
|
|
475
490
|
|
|
476
491
|
type CurtainPickerOwnerType = "organization" | "platform" | string;
|
|
477
492
|
type CurtainPickerItem = {
|
|
@@ -508,7 +523,7 @@ type CurtainPickerProps = {
|
|
|
508
523
|
onChange?: (id: string | null) => void;
|
|
509
524
|
allowNone?: boolean;
|
|
510
525
|
disabled?: boolean;
|
|
511
|
-
/** `compact` is
|
|
526
|
+
/** `compact` is a selected preview plus a dense thumbnail grid. */
|
|
512
527
|
variant?: "default" | "compact";
|
|
513
528
|
/** Split the grid into organization / platform / other sections. */
|
|
514
529
|
groupByOwner?: boolean;
|
|
@@ -843,8 +858,109 @@ declare function createLiveHlsConfig(): Partial<HlsConfig>;
|
|
|
843
858
|
*/
|
|
844
859
|
declare function createVodHlsConfig(): Partial<HlsConfig>;
|
|
845
860
|
|
|
861
|
+
type MultipartUploadPart = {
|
|
862
|
+
partNumber: number;
|
|
863
|
+
etag: string;
|
|
864
|
+
};
|
|
865
|
+
type MultipartUploadAdapter = {
|
|
866
|
+
requestPartUrl: (partNumber: number) => Promise<string>;
|
|
867
|
+
complete: (parts: MultipartUploadPart[]) => Promise<void>;
|
|
868
|
+
abort?: () => Promise<void>;
|
|
869
|
+
};
|
|
870
|
+
type UploadProgress = {
|
|
871
|
+
loaded: number;
|
|
872
|
+
total: number;
|
|
873
|
+
percent: number;
|
|
874
|
+
};
|
|
875
|
+
type UploadControllerStatus = "idle" | "uploading" | "paused" | "completing" | "completed" | "cancelled" | "error";
|
|
876
|
+
type UploadJobStatus = Exclude<UploadControllerStatus, "idle">;
|
|
877
|
+
type UploadJob = {
|
|
878
|
+
id: string;
|
|
879
|
+
name: string;
|
|
880
|
+
status: UploadJobStatus;
|
|
881
|
+
loaded: number;
|
|
882
|
+
total: number;
|
|
883
|
+
percent: number;
|
|
884
|
+
error?: string;
|
|
885
|
+
};
|
|
886
|
+
type FileDropzoneLabels = {
|
|
887
|
+
idle: string;
|
|
888
|
+
hint: string;
|
|
889
|
+
browse: string;
|
|
890
|
+
rejectType: string;
|
|
891
|
+
rejectSize: string;
|
|
892
|
+
};
|
|
893
|
+
type FileUploadTrayLabels = {
|
|
894
|
+
title: string;
|
|
895
|
+
pause: string;
|
|
896
|
+
resume: string;
|
|
897
|
+
cancel: string;
|
|
898
|
+
uploading: string;
|
|
899
|
+
paused: string;
|
|
900
|
+
completing: string;
|
|
901
|
+
completed: string;
|
|
902
|
+
cancelled: string;
|
|
903
|
+
error: string;
|
|
904
|
+
};
|
|
905
|
+
declare const DEFAULT_FILE_DROPZONE_LABELS: FileDropzoneLabels;
|
|
906
|
+
declare const DEFAULT_FILE_UPLOAD_TRAY_LABELS: FileUploadTrayLabels;
|
|
907
|
+
declare const DEFAULT_FILE_UPLOAD_LABELS: {
|
|
908
|
+
dropzone: FileDropzoneLabels;
|
|
909
|
+
tray: FileUploadTrayLabels;
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
type FileDropzoneProps = {
|
|
913
|
+
accept?: string;
|
|
914
|
+
maxSize?: number;
|
|
915
|
+
disabled?: boolean;
|
|
916
|
+
labels?: Partial<FileDropzoneLabels>;
|
|
917
|
+
onFile: (file: File) => void;
|
|
918
|
+
onReject?: (reason: "type" | "size") => void;
|
|
919
|
+
className?: string;
|
|
920
|
+
};
|
|
921
|
+
declare function FileDropzone({ accept, maxSize, disabled, labels: labelOverrides, onFile, onReject, className, }: FileDropzoneProps): React.JSX.Element;
|
|
922
|
+
|
|
923
|
+
type FileUploadTrayProps = {
|
|
924
|
+
jobs: UploadJob[];
|
|
925
|
+
labels?: Partial<FileUploadTrayLabels>;
|
|
926
|
+
onPause: (id: string) => void;
|
|
927
|
+
onResume: (id: string) => void;
|
|
928
|
+
onCancel: (id: string) => void;
|
|
929
|
+
className?: string;
|
|
930
|
+
};
|
|
931
|
+
declare function FileUploadTray({ jobs, labels: labelOverrides, onPause, onResume, onCancel, className, }: FileUploadTrayProps): React.JSX.Element | null;
|
|
932
|
+
|
|
933
|
+
type CreateMultipartUploadControllerOptions = {
|
|
934
|
+
file: Blob;
|
|
935
|
+
partSize: number;
|
|
936
|
+
adapter: MultipartUploadAdapter;
|
|
937
|
+
onProgress?: (progress: UploadProgress) => void;
|
|
938
|
+
xhrFactory?: () => XMLHttpRequest;
|
|
939
|
+
};
|
|
940
|
+
type MultipartUploadController = {
|
|
941
|
+
start: () => Promise<void>;
|
|
942
|
+
pause: () => void;
|
|
943
|
+
resume: () => Promise<void>;
|
|
944
|
+
cancel: () => Promise<void>;
|
|
945
|
+
getStatus: () => UploadControllerStatus;
|
|
946
|
+
};
|
|
947
|
+
declare function createMultipartUploadController(options: CreateMultipartUploadControllerOptions): MultipartUploadController;
|
|
948
|
+
|
|
949
|
+
type PartRange = {
|
|
950
|
+
partNumber: number;
|
|
951
|
+
start: number;
|
|
952
|
+
end: number;
|
|
953
|
+
};
|
|
954
|
+
declare function partRanges(fileSize: number, partSize: number): PartRange[];
|
|
955
|
+
declare function progressFromBytes(loaded: number, total: number): {
|
|
956
|
+
loaded: number;
|
|
957
|
+
total: number;
|
|
958
|
+
percent: number;
|
|
959
|
+
};
|
|
960
|
+
declare function fileMatchesAccept(file: File, accept?: string): boolean;
|
|
961
|
+
|
|
846
962
|
declare function useMediaQuery(query: string): boolean;
|
|
847
963
|
|
|
848
964
|
declare function cn(...inputs: ClassValue[]): string;
|
|
849
965
|
|
|
850
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, type CurtainKind, CurtainPicker, type CurtainPickerItem, type CurtainPickerLabels, type CurtainPickerOwnerType, type CurtainPickerProps, CurtainPickerSkeleton, CurtainPreview, type CurtainPreviewProps, CurtainStage, type CurtainStageProps, DEFAULT_CURTAIN_PICKER_LABELS, DEFAULT_EDITABLE_SECTION_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, type HlsPlayerMode, type Language, LanguageContext, type LanguageContextValue, LanguageSwitcher, type LanguageSwitcherLabels, type LanguageSwitcherProps, LoadingState, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, 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, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, loadCastSender, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
|
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 };
|