@livo-tv/blocks 1.28.0 → 1.30.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 +1323 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +121 -5
- package/dist/index.d.ts +121 -5
- package/dist/index.js +1248 -150
- package/dist/index.js.map +1 -1
- package/package.json +22 -2
package/dist/index.d.cts
CHANGED
|
@@ -466,7 +466,64 @@ interface AvatarEditorDialogProps {
|
|
|
466
466
|
}
|
|
467
467
|
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, editorLabels, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
468
468
|
|
|
469
|
-
|
|
469
|
+
declare const SHADER_CURTAIN_TYPES: readonly ["plane", "sphere", "waterPlane"];
|
|
470
|
+
declare const SHADER_VARIANTS: readonly ["defaults", "cosmic", "glass", "positionMix"];
|
|
471
|
+
declare const SHADER_LIGHT_TYPES: readonly ["3d", "env"];
|
|
472
|
+
declare const SHADER_ENV_PRESETS: readonly ["city", "dawn", "lobby"];
|
|
473
|
+
declare const SHADER_ON_OFF: readonly ["on", "off"];
|
|
474
|
+
declare const SHADER_RANGE: readonly ["enabled", "disabled"];
|
|
475
|
+
type ShaderCurtainConfig = {
|
|
476
|
+
type: (typeof SHADER_CURTAIN_TYPES)[number];
|
|
477
|
+
shader: (typeof SHADER_VARIANTS)[number];
|
|
478
|
+
animate: (typeof SHADER_ON_OFF)[number];
|
|
479
|
+
uTime: number;
|
|
480
|
+
uSpeed: number;
|
|
481
|
+
uStrength: number;
|
|
482
|
+
uDensity: number;
|
|
483
|
+
uFrequency: number;
|
|
484
|
+
uAmplitude: number;
|
|
485
|
+
wireframe: boolean;
|
|
486
|
+
loop: (typeof SHADER_ON_OFF)[number];
|
|
487
|
+
loopDuration: number;
|
|
488
|
+
range: (typeof SHADER_RANGE)[number];
|
|
489
|
+
rangeStart: number;
|
|
490
|
+
rangeEnd: number;
|
|
491
|
+
positionX: number;
|
|
492
|
+
positionY: number;
|
|
493
|
+
positionZ: number;
|
|
494
|
+
rotationX: number;
|
|
495
|
+
rotationY: number;
|
|
496
|
+
rotationZ: number;
|
|
497
|
+
color1: string;
|
|
498
|
+
color2: string;
|
|
499
|
+
color3: string;
|
|
500
|
+
reflection: number;
|
|
501
|
+
brightness: number;
|
|
502
|
+
cAzimuthAngle: number;
|
|
503
|
+
cPolarAngle: number;
|
|
504
|
+
cDistance: number;
|
|
505
|
+
cameraZoom: number;
|
|
506
|
+
fov: number;
|
|
507
|
+
zoomOut: boolean;
|
|
508
|
+
lightType: (typeof SHADER_LIGHT_TYPES)[number];
|
|
509
|
+
envPreset: (typeof SHADER_ENV_PRESETS)[number];
|
|
510
|
+
grain: (typeof SHADER_ON_OFF)[number];
|
|
511
|
+
grainBlending: number;
|
|
512
|
+
pixelDensity: number;
|
|
513
|
+
};
|
|
514
|
+
declare const DEFAULT_SHADER_CURTAIN_CONFIG: ShaderCurtainConfig;
|
|
515
|
+
type ShaderCurtainPreset = {
|
|
516
|
+
id: string;
|
|
517
|
+
title: string;
|
|
518
|
+
config: ShaderCurtainConfig;
|
|
519
|
+
};
|
|
520
|
+
declare const SHADER_CURTAIN_PRESETS: readonly ShaderCurtainPreset[];
|
|
521
|
+
declare function mergeShaderCurtainConfig(partial?: Partial<ShaderCurtainConfig> | null): ShaderCurtainConfig;
|
|
522
|
+
declare function parseShaderGradientUrl(input: string): ShaderCurtainConfig | null;
|
|
523
|
+
declare function toShaderGradientUrl(config: ShaderCurtainConfig): string;
|
|
524
|
+
declare function isShaderCurtainKind(kind: string): kind is "shader";
|
|
525
|
+
|
|
526
|
+
type CurtainKind = "image" | "video" | "shader";
|
|
470
527
|
interface CurtainStageLabels {
|
|
471
528
|
play?: string;
|
|
472
529
|
tapToUnmute?: string;
|
|
@@ -478,6 +535,8 @@ interface CurtainStageProps {
|
|
|
478
535
|
url: string;
|
|
479
536
|
alt?: string;
|
|
480
537
|
className?: string;
|
|
538
|
+
config?: ShaderCurtainConfig;
|
|
539
|
+
envBasePath?: string;
|
|
481
540
|
/** When true, video curtains show a static frame instead of looping. */
|
|
482
541
|
reducedMotion?: boolean;
|
|
483
542
|
/**
|
|
@@ -493,7 +552,7 @@ interface CurtainStageProps {
|
|
|
493
552
|
* by freezing video on the first frame. `allowSound` offers tap-to-unmute
|
|
494
553
|
* when the file has audio.
|
|
495
554
|
*/
|
|
496
|
-
declare function CurtainStage({ kind, url, alt, className, reducedMotion, allowSound, labels, }: CurtainStageProps): React.JSX.Element;
|
|
555
|
+
declare function CurtainStage({ kind, url, alt, className, config, envBasePath, reducedMotion, allowSound, labels, }: CurtainStageProps): React.JSX.Element;
|
|
497
556
|
|
|
498
557
|
type CurtainPreviewProps = {
|
|
499
558
|
kind: CurtainKind | string;
|
|
@@ -531,9 +590,11 @@ type CurtainPickerLabels = {
|
|
|
531
590
|
noneDescription?: string;
|
|
532
591
|
defaultBadge?: string;
|
|
533
592
|
makeDefault?: string;
|
|
593
|
+
edit?: string;
|
|
534
594
|
delete?: string;
|
|
535
595
|
image?: string;
|
|
536
596
|
video?: string;
|
|
597
|
+
shader?: string;
|
|
537
598
|
organization?: string;
|
|
538
599
|
platform?: string;
|
|
539
600
|
groupOrganization?: string;
|
|
@@ -555,6 +616,7 @@ type CurtainPickerProps = {
|
|
|
555
616
|
/** Split the grid into organization / platform / other sections. */
|
|
556
617
|
groupByOwner?: boolean;
|
|
557
618
|
onMakeDefault?: (item: CurtainPickerItem) => void;
|
|
619
|
+
onEdit?: (item: CurtainPickerItem) => void;
|
|
558
620
|
onDelete?: (item: CurtainPickerItem) => void;
|
|
559
621
|
canMakeDefault?: (item: CurtainPickerItem) => boolean;
|
|
560
622
|
canDelete?: (item: CurtainPickerItem) => boolean;
|
|
@@ -574,11 +636,13 @@ declare function CurtainPickerSkeleton({ count, variant, className, }: {
|
|
|
574
636
|
* optional selection (including None), and optional manage actions.
|
|
575
637
|
* Consumers fetch, upload, and confirm deletes themselves.
|
|
576
638
|
*/
|
|
577
|
-
declare function CurtainPicker({ curtains, value, onChange, allowNone, disabled, variant, groupByOwner, onMakeDefault, onDelete, canMakeDefault, canDelete, labels, emptyAction, className, actionsPending, }: CurtainPickerProps): React.JSX.Element;
|
|
639
|
+
declare function CurtainPicker({ curtains, value, onChange, allowNone, disabled, variant, groupByOwner, onMakeDefault, onEdit, onDelete, canMakeDefault, canDelete, labels, emptyAction, className, actionsPending, }: CurtainPickerProps): React.JSX.Element;
|
|
578
640
|
|
|
579
641
|
interface WaitingRoomCurtain {
|
|
580
642
|
kind: CurtainKind;
|
|
581
643
|
url: string;
|
|
644
|
+
config?: ShaderCurtainConfig;
|
|
645
|
+
envBasePath?: string;
|
|
582
646
|
}
|
|
583
647
|
interface WaitingRoomProps {
|
|
584
648
|
title: string;
|
|
@@ -587,6 +651,8 @@ interface WaitingRoomProps {
|
|
|
587
651
|
startsAt?: number | null;
|
|
588
652
|
durationSeconds?: number | null;
|
|
589
653
|
curtain?: WaitingRoomCurtain | null;
|
|
654
|
+
hideBranding?: boolean;
|
|
655
|
+
hideStatus?: boolean;
|
|
590
656
|
nowMs?: number;
|
|
591
657
|
labels?: {
|
|
592
658
|
startsIn?: string;
|
|
@@ -599,7 +665,57 @@ interface WaitingRoomProps {
|
|
|
599
665
|
* Public waiting-room chrome: curtain (or calm branded fallback), title,
|
|
600
666
|
* org avatar, and a countdown to `startsAt`.
|
|
601
667
|
*/
|
|
602
|
-
declare function WaitingRoom({ title, organizationName, organizationImage, startsAt, durationSeconds, curtain, nowMs, labels, className, }: WaitingRoomProps): React.JSX.Element;
|
|
668
|
+
declare function WaitingRoom({ title, organizationName, organizationImage, startsAt, durationSeconds, curtain, hideBranding, hideStatus, nowMs, labels, className, }: WaitingRoomProps): React.JSX.Element;
|
|
669
|
+
|
|
670
|
+
type ShaderCurtainProps = {
|
|
671
|
+
config: ShaderCurtainConfig | Partial<ShaderCurtainConfig>;
|
|
672
|
+
posterUrl?: string | null;
|
|
673
|
+
envBasePath?: string;
|
|
674
|
+
className?: string;
|
|
675
|
+
/** Editor only — needed for canvas.toBlob capture. */
|
|
676
|
+
preserveDrawingBuffer?: boolean;
|
|
677
|
+
reducedMotion?: boolean;
|
|
678
|
+
alt?: string;
|
|
679
|
+
};
|
|
680
|
+
/**
|
|
681
|
+
* Live ShaderGradient canvas with a poster fallback while the optional
|
|
682
|
+
* WebGL peers load, when WebGL is missing, or when motion is reduced.
|
|
683
|
+
*/
|
|
684
|
+
declare function ShaderCurtain({ config, posterUrl, envBasePath, className, preserveDrawingBuffer, reducedMotion, alt, }: ShaderCurtainProps): React.JSX.Element;
|
|
685
|
+
|
|
686
|
+
type ShaderCurtainEditorLabels = {
|
|
687
|
+
shape?: string;
|
|
688
|
+
colors?: string;
|
|
689
|
+
light?: string;
|
|
690
|
+
camera?: string;
|
|
691
|
+
presets?: string;
|
|
692
|
+
importUrl?: string;
|
|
693
|
+
importApply?: string;
|
|
694
|
+
importError?: string;
|
|
695
|
+
};
|
|
696
|
+
declare const DEFAULT_SHADER_CURTAIN_EDITOR_LABELS: Required<ShaderCurtainEditorLabels>;
|
|
697
|
+
type ShaderCurtainEditorHandle = {
|
|
698
|
+
getConfig: () => ShaderCurtainConfig;
|
|
699
|
+
capturePoster: () => Promise<Blob | null>;
|
|
700
|
+
};
|
|
701
|
+
type ShaderCurtainEditorProps = {
|
|
702
|
+
value?: Partial<ShaderCurtainConfig>;
|
|
703
|
+
onChange?: (config: ShaderCurtainConfig) => void;
|
|
704
|
+
envBasePath?: string;
|
|
705
|
+
className?: string;
|
|
706
|
+
labels?: ShaderCurtainEditorLabels;
|
|
707
|
+
};
|
|
708
|
+
declare const ShaderCurtainEditor: React.ForwardRefExoticComponent<ShaderCurtainEditorProps & React.RefAttributes<ShaderCurtainEditorHandle>>;
|
|
709
|
+
|
|
710
|
+
type CaptureShaderPosterOptions = {
|
|
711
|
+
quality?: number;
|
|
712
|
+
type?: "image/jpeg" | "image/png";
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* Snapshot the live ShaderGradient canvas. The editor must pass
|
|
716
|
+
* `preserveDrawingBuffer` or the pixels will be empty.
|
|
717
|
+
*/
|
|
718
|
+
declare function captureShaderPoster(root: HTMLElement, options?: CaptureShaderPosterOptions): Promise<Blob | null>;
|
|
603
719
|
|
|
604
720
|
type CastFramework = {
|
|
605
721
|
CastContext: {
|
|
@@ -1153,4 +1269,4 @@ type MetricSkeletonProps = {
|
|
|
1153
1269
|
};
|
|
1154
1270
|
declare function MetricSkeleton({ className, bars }: MetricSkeletonProps): React.JSX.Element;
|
|
1155
1271
|
|
|
1156
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, CAPTION_LOCALES, type CaptionLocale, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, type CreatePlaybackBeaconClientOptions, 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, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, 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, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackBeaconClient, type PlaybackBeaconEvent, type PlaybackBeaconEventType, type PlaybackBeaconSurface, type PlaybackBeaconTrackInput, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, 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, captionsVttUrlFromPlayback, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createPlaybackBeaconClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, isCaptionLocale, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
|
1272
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, CAPTION_LOCALES, type CaptionLocale, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, type CreatePlaybackBeaconClientOptions, 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, DEFAULT_SHADER_CURTAIN_CONFIG, DEFAULT_SHADER_CURTAIN_EDITOR_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, 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, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackBeaconClient, type PlaybackBeaconEvent, type PlaybackBeaconEventType, type PlaybackBeaconSurface, type PlaybackBeaconTrackInput, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SHADER_CURTAIN_PRESETS, SafeImage, type SafeImageProps, ShaderCurtain, type ShaderCurtainConfig, ShaderCurtainEditor, type ShaderCurtainEditorHandle, type ShaderCurtainEditorLabels, type ShaderCurtainEditorProps, type ShaderCurtainPreset, type ShaderCurtainProps, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, 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, captionsVttUrlFromPlayback, captureShaderPoster, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createPlaybackBeaconClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, isCaptionLocale, isShaderCurtainKind, loadCastSender, mergeShaderCurtainConfig, parseShaderGradientUrl, partRanges, progressFromBytes, shouldRetryLiveEdge404, toShaderGradientUrl, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
package/dist/index.d.ts
CHANGED
|
@@ -466,7 +466,64 @@ interface AvatarEditorDialogProps {
|
|
|
466
466
|
}
|
|
467
467
|
declare function AvatarEditorDialog({ value, onChange, onSave, displaySize, editorSize, outputSize, placeholder, editLabel, dialogTitle, acceptText, cancelText, savingText, savedText, successMessage, errorMessage, className, editorLabels, }: AvatarEditorDialogProps): React.JSX.Element;
|
|
468
468
|
|
|
469
|
-
|
|
469
|
+
declare const SHADER_CURTAIN_TYPES: readonly ["plane", "sphere", "waterPlane"];
|
|
470
|
+
declare const SHADER_VARIANTS: readonly ["defaults", "cosmic", "glass", "positionMix"];
|
|
471
|
+
declare const SHADER_LIGHT_TYPES: readonly ["3d", "env"];
|
|
472
|
+
declare const SHADER_ENV_PRESETS: readonly ["city", "dawn", "lobby"];
|
|
473
|
+
declare const SHADER_ON_OFF: readonly ["on", "off"];
|
|
474
|
+
declare const SHADER_RANGE: readonly ["enabled", "disabled"];
|
|
475
|
+
type ShaderCurtainConfig = {
|
|
476
|
+
type: (typeof SHADER_CURTAIN_TYPES)[number];
|
|
477
|
+
shader: (typeof SHADER_VARIANTS)[number];
|
|
478
|
+
animate: (typeof SHADER_ON_OFF)[number];
|
|
479
|
+
uTime: number;
|
|
480
|
+
uSpeed: number;
|
|
481
|
+
uStrength: number;
|
|
482
|
+
uDensity: number;
|
|
483
|
+
uFrequency: number;
|
|
484
|
+
uAmplitude: number;
|
|
485
|
+
wireframe: boolean;
|
|
486
|
+
loop: (typeof SHADER_ON_OFF)[number];
|
|
487
|
+
loopDuration: number;
|
|
488
|
+
range: (typeof SHADER_RANGE)[number];
|
|
489
|
+
rangeStart: number;
|
|
490
|
+
rangeEnd: number;
|
|
491
|
+
positionX: number;
|
|
492
|
+
positionY: number;
|
|
493
|
+
positionZ: number;
|
|
494
|
+
rotationX: number;
|
|
495
|
+
rotationY: number;
|
|
496
|
+
rotationZ: number;
|
|
497
|
+
color1: string;
|
|
498
|
+
color2: string;
|
|
499
|
+
color3: string;
|
|
500
|
+
reflection: number;
|
|
501
|
+
brightness: number;
|
|
502
|
+
cAzimuthAngle: number;
|
|
503
|
+
cPolarAngle: number;
|
|
504
|
+
cDistance: number;
|
|
505
|
+
cameraZoom: number;
|
|
506
|
+
fov: number;
|
|
507
|
+
zoomOut: boolean;
|
|
508
|
+
lightType: (typeof SHADER_LIGHT_TYPES)[number];
|
|
509
|
+
envPreset: (typeof SHADER_ENV_PRESETS)[number];
|
|
510
|
+
grain: (typeof SHADER_ON_OFF)[number];
|
|
511
|
+
grainBlending: number;
|
|
512
|
+
pixelDensity: number;
|
|
513
|
+
};
|
|
514
|
+
declare const DEFAULT_SHADER_CURTAIN_CONFIG: ShaderCurtainConfig;
|
|
515
|
+
type ShaderCurtainPreset = {
|
|
516
|
+
id: string;
|
|
517
|
+
title: string;
|
|
518
|
+
config: ShaderCurtainConfig;
|
|
519
|
+
};
|
|
520
|
+
declare const SHADER_CURTAIN_PRESETS: readonly ShaderCurtainPreset[];
|
|
521
|
+
declare function mergeShaderCurtainConfig(partial?: Partial<ShaderCurtainConfig> | null): ShaderCurtainConfig;
|
|
522
|
+
declare function parseShaderGradientUrl(input: string): ShaderCurtainConfig | null;
|
|
523
|
+
declare function toShaderGradientUrl(config: ShaderCurtainConfig): string;
|
|
524
|
+
declare function isShaderCurtainKind(kind: string): kind is "shader";
|
|
525
|
+
|
|
526
|
+
type CurtainKind = "image" | "video" | "shader";
|
|
470
527
|
interface CurtainStageLabels {
|
|
471
528
|
play?: string;
|
|
472
529
|
tapToUnmute?: string;
|
|
@@ -478,6 +535,8 @@ interface CurtainStageProps {
|
|
|
478
535
|
url: string;
|
|
479
536
|
alt?: string;
|
|
480
537
|
className?: string;
|
|
538
|
+
config?: ShaderCurtainConfig;
|
|
539
|
+
envBasePath?: string;
|
|
481
540
|
/** When true, video curtains show a static frame instead of looping. */
|
|
482
541
|
reducedMotion?: boolean;
|
|
483
542
|
/**
|
|
@@ -493,7 +552,7 @@ interface CurtainStageProps {
|
|
|
493
552
|
* by freezing video on the first frame. `allowSound` offers tap-to-unmute
|
|
494
553
|
* when the file has audio.
|
|
495
554
|
*/
|
|
496
|
-
declare function CurtainStage({ kind, url, alt, className, reducedMotion, allowSound, labels, }: CurtainStageProps): React.JSX.Element;
|
|
555
|
+
declare function CurtainStage({ kind, url, alt, className, config, envBasePath, reducedMotion, allowSound, labels, }: CurtainStageProps): React.JSX.Element;
|
|
497
556
|
|
|
498
557
|
type CurtainPreviewProps = {
|
|
499
558
|
kind: CurtainKind | string;
|
|
@@ -531,9 +590,11 @@ type CurtainPickerLabels = {
|
|
|
531
590
|
noneDescription?: string;
|
|
532
591
|
defaultBadge?: string;
|
|
533
592
|
makeDefault?: string;
|
|
593
|
+
edit?: string;
|
|
534
594
|
delete?: string;
|
|
535
595
|
image?: string;
|
|
536
596
|
video?: string;
|
|
597
|
+
shader?: string;
|
|
537
598
|
organization?: string;
|
|
538
599
|
platform?: string;
|
|
539
600
|
groupOrganization?: string;
|
|
@@ -555,6 +616,7 @@ type CurtainPickerProps = {
|
|
|
555
616
|
/** Split the grid into organization / platform / other sections. */
|
|
556
617
|
groupByOwner?: boolean;
|
|
557
618
|
onMakeDefault?: (item: CurtainPickerItem) => void;
|
|
619
|
+
onEdit?: (item: CurtainPickerItem) => void;
|
|
558
620
|
onDelete?: (item: CurtainPickerItem) => void;
|
|
559
621
|
canMakeDefault?: (item: CurtainPickerItem) => boolean;
|
|
560
622
|
canDelete?: (item: CurtainPickerItem) => boolean;
|
|
@@ -574,11 +636,13 @@ declare function CurtainPickerSkeleton({ count, variant, className, }: {
|
|
|
574
636
|
* optional selection (including None), and optional manage actions.
|
|
575
637
|
* Consumers fetch, upload, and confirm deletes themselves.
|
|
576
638
|
*/
|
|
577
|
-
declare function CurtainPicker({ curtains, value, onChange, allowNone, disabled, variant, groupByOwner, onMakeDefault, onDelete, canMakeDefault, canDelete, labels, emptyAction, className, actionsPending, }: CurtainPickerProps): React.JSX.Element;
|
|
639
|
+
declare function CurtainPicker({ curtains, value, onChange, allowNone, disabled, variant, groupByOwner, onMakeDefault, onEdit, onDelete, canMakeDefault, canDelete, labels, emptyAction, className, actionsPending, }: CurtainPickerProps): React.JSX.Element;
|
|
578
640
|
|
|
579
641
|
interface WaitingRoomCurtain {
|
|
580
642
|
kind: CurtainKind;
|
|
581
643
|
url: string;
|
|
644
|
+
config?: ShaderCurtainConfig;
|
|
645
|
+
envBasePath?: string;
|
|
582
646
|
}
|
|
583
647
|
interface WaitingRoomProps {
|
|
584
648
|
title: string;
|
|
@@ -587,6 +651,8 @@ interface WaitingRoomProps {
|
|
|
587
651
|
startsAt?: number | null;
|
|
588
652
|
durationSeconds?: number | null;
|
|
589
653
|
curtain?: WaitingRoomCurtain | null;
|
|
654
|
+
hideBranding?: boolean;
|
|
655
|
+
hideStatus?: boolean;
|
|
590
656
|
nowMs?: number;
|
|
591
657
|
labels?: {
|
|
592
658
|
startsIn?: string;
|
|
@@ -599,7 +665,57 @@ interface WaitingRoomProps {
|
|
|
599
665
|
* Public waiting-room chrome: curtain (or calm branded fallback), title,
|
|
600
666
|
* org avatar, and a countdown to `startsAt`.
|
|
601
667
|
*/
|
|
602
|
-
declare function WaitingRoom({ title, organizationName, organizationImage, startsAt, durationSeconds, curtain, nowMs, labels, className, }: WaitingRoomProps): React.JSX.Element;
|
|
668
|
+
declare function WaitingRoom({ title, organizationName, organizationImage, startsAt, durationSeconds, curtain, hideBranding, hideStatus, nowMs, labels, className, }: WaitingRoomProps): React.JSX.Element;
|
|
669
|
+
|
|
670
|
+
type ShaderCurtainProps = {
|
|
671
|
+
config: ShaderCurtainConfig | Partial<ShaderCurtainConfig>;
|
|
672
|
+
posterUrl?: string | null;
|
|
673
|
+
envBasePath?: string;
|
|
674
|
+
className?: string;
|
|
675
|
+
/** Editor only — needed for canvas.toBlob capture. */
|
|
676
|
+
preserveDrawingBuffer?: boolean;
|
|
677
|
+
reducedMotion?: boolean;
|
|
678
|
+
alt?: string;
|
|
679
|
+
};
|
|
680
|
+
/**
|
|
681
|
+
* Live ShaderGradient canvas with a poster fallback while the optional
|
|
682
|
+
* WebGL peers load, when WebGL is missing, or when motion is reduced.
|
|
683
|
+
*/
|
|
684
|
+
declare function ShaderCurtain({ config, posterUrl, envBasePath, className, preserveDrawingBuffer, reducedMotion, alt, }: ShaderCurtainProps): React.JSX.Element;
|
|
685
|
+
|
|
686
|
+
type ShaderCurtainEditorLabels = {
|
|
687
|
+
shape?: string;
|
|
688
|
+
colors?: string;
|
|
689
|
+
light?: string;
|
|
690
|
+
camera?: string;
|
|
691
|
+
presets?: string;
|
|
692
|
+
importUrl?: string;
|
|
693
|
+
importApply?: string;
|
|
694
|
+
importError?: string;
|
|
695
|
+
};
|
|
696
|
+
declare const DEFAULT_SHADER_CURTAIN_EDITOR_LABELS: Required<ShaderCurtainEditorLabels>;
|
|
697
|
+
type ShaderCurtainEditorHandle = {
|
|
698
|
+
getConfig: () => ShaderCurtainConfig;
|
|
699
|
+
capturePoster: () => Promise<Blob | null>;
|
|
700
|
+
};
|
|
701
|
+
type ShaderCurtainEditorProps = {
|
|
702
|
+
value?: Partial<ShaderCurtainConfig>;
|
|
703
|
+
onChange?: (config: ShaderCurtainConfig) => void;
|
|
704
|
+
envBasePath?: string;
|
|
705
|
+
className?: string;
|
|
706
|
+
labels?: ShaderCurtainEditorLabels;
|
|
707
|
+
};
|
|
708
|
+
declare const ShaderCurtainEditor: React.ForwardRefExoticComponent<ShaderCurtainEditorProps & React.RefAttributes<ShaderCurtainEditorHandle>>;
|
|
709
|
+
|
|
710
|
+
type CaptureShaderPosterOptions = {
|
|
711
|
+
quality?: number;
|
|
712
|
+
type?: "image/jpeg" | "image/png";
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* Snapshot the live ShaderGradient canvas. The editor must pass
|
|
716
|
+
* `preserveDrawingBuffer` or the pixels will be empty.
|
|
717
|
+
*/
|
|
718
|
+
declare function captureShaderPoster(root: HTMLElement, options?: CaptureShaderPosterOptions): Promise<Blob | null>;
|
|
603
719
|
|
|
604
720
|
type CastFramework = {
|
|
605
721
|
CastContext: {
|
|
@@ -1153,4 +1269,4 @@ type MetricSkeletonProps = {
|
|
|
1153
1269
|
};
|
|
1154
1270
|
declare function MetricSkeleton({ className, bars }: MetricSkeletonProps): React.JSX.Element;
|
|
1155
1271
|
|
|
1156
|
-
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, CAPTION_LOCALES, type CaptionLocale, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, type CreatePlaybackBeaconClientOptions, 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, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, 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, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackBeaconClient, type PlaybackBeaconEvent, type PlaybackBeaconEventType, type PlaybackBeaconSurface, type PlaybackBeaconTrackInput, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SafeImage, type SafeImageProps, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, 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, captionsVttUrlFromPlayback, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createPlaybackBeaconClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, isCaptionLocale, loadCastSender, partRanges, progressFromBytes, shouldRetryLiveEdge404, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|
|
1272
|
+
export { type AutoplayState, AvatarEditor, AvatarEditorDialog, type AvatarEditorDialogProps, type AvatarEditorLabels, type AvatarEditorProps, type BlocksLanguage, CAPTION_LOCALES, type CaptionLocale, ConfirmDestructiveDialog, type ConfirmDestructiveDialogProps, CostBreakdownCard, type CostBreakdownCardProps, type CostBreakdownItem, type CreateMultipartUploadControllerOptions, type CreatePlaybackBeaconClientOptions, 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, DEFAULT_SHADER_CURTAIN_CONFIG, DEFAULT_SHADER_CURTAIN_EDITOR_LABELS, DataList, DataListItem, type DataListItemProps, type DataListProps, type DescribedPlaybackError, type DimensionBreakdownRow, DimensionBreakdownTable, type DimensionBreakdownTableProps, 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, MetricChartCard, type MetricChartCardProps, MetricEmptyState, type MetricEmptyStateProps, MetricSkeleton, type MetricSkeletonProps, type MultipartUploadAdapter, type MultipartUploadController, type MultipartUploadPart, NotificationBell, type NotificationBellItem, type NotificationBellLabels, type NotificationBellProps, type PartRange, type PlaybackBeaconClient, type PlaybackBeaconEvent, type PlaybackBeaconEventType, type PlaybackBeaconSurface, type PlaybackBeaconTrackInput, type PlaybackErrorContext, type PlaybackErrorDetail, type PlaybackErrorKind, type PlaybackState, type PlaybackStats, type QualityLevel, SHADER_CURTAIN_PRESETS, SafeImage, type SafeImageProps, ShaderCurtain, type ShaderCurtainConfig, ShaderCurtainEditor, type ShaderCurtainEditorHandle, type ShaderCurtainEditorLabels, type ShaderCurtainEditorProps, type ShaderCurtainPreset, type ShaderCurtainProps, SparklineStat, type SparklineStatProps, StatHighlightCard, type StatHighlightCardProps, TIME_RANGE_OPTIONS, ThemeSwitcher, type ThemeSwitcherLabels, type ThemeSwitcherProps, type TimeRange, TimeRangePicker, type TimeRangePickerLabels, type TimeRangePickerProps, 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, captionsVttUrlFromPlayback, captureShaderPoster, castHlsUrl, cn, createLiveHlsConfig, createMultipartUploadController, createPlaybackBeaconClient, createVodHlsConfig, defaultLanguages, describeAvResync, describePlaybackError, fileMatchesAccept, isCaptionLocale, isShaderCurtainKind, loadCastSender, mergeShaderCurtainConfig, parseShaderGradientUrl, partRanges, progressFromBytes, shouldRetryLiveEdge404, toShaderGradientUrl, useEditableSection, useFeedExclusivePlayback, useHlsPlayback, useLanguageContext, useMediaQuery, usePlaybackStats };
|