@factorialco/f0-react 4.66.2 → 4.68.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/f0.d.ts CHANGED
@@ -5012,7 +5012,9 @@ export declare const defaultTranslations: {
5012
5012
  readonly cancelRecording: "Cancel recording";
5013
5013
  readonly dropFilesHere: "Drop your files here";
5014
5014
  readonly removeFile: "Remove";
5015
+ readonly removeNamedFile: "Remove {{name}}";
5015
5016
  readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
5017
+ readonly fileTooLargeError: "Each file must be {{maxFileSize}} or smaller";
5016
5018
  readonly fileUploadError: "Upload failed";
5017
5019
  readonly micPermissionDenied: "Microphone access is blocked. Allow it in your browser settings to dictate.";
5018
5020
  readonly micError: "Couldn't access the microphone.";
@@ -5048,6 +5050,7 @@ export declare const defaultTranslations: {
5048
5050
  readonly reply: "Reply";
5049
5051
  readonly react: "Add reaction";
5050
5052
  readonly download: "Download";
5053
+ readonly downloadNamedFile: "Download {{name}}";
5051
5054
  readonly removeQuote: "Remove quote";
5052
5055
  readonly edit: "Edit";
5053
5056
  readonly editing: "Editing";
@@ -5061,7 +5064,10 @@ export declare const defaultTranslations: {
5061
5064
  readonly previousImage: "Previous image";
5062
5065
  readonly nextImage: "Next image";
5063
5066
  readonly openDocument: "Open document";
5067
+ readonly openNamedDocument: "Open {{name}}";
5064
5068
  readonly documentPreview: "Document preview";
5069
+ readonly videoPlayerLabel: "Video player: {{name}}";
5070
+ readonly loadingVideo: "Loading video: {{name}}";
5065
5071
  readonly photo: "Photo";
5066
5072
  readonly photoCount: {
5067
5073
  readonly one: "{{count}} photo";
@@ -12069,9 +12075,11 @@ export declare const F0VideoPlayer: WithDataTestIdReturnType_3<typeof F0VideoPla
12069
12075
  * useRestrictForwardSeek → blocks seeking past the furthest-watched point.
12070
12076
  * <Controls> → presentation only; interactions delegated back here.
12071
12077
  */
12072
- declare function F0VideoPlayerInternal({ src, poster, silent, persistControls, content, defaultLanguage, autoPlay, autoFocus, restrictForwardSeek, onTrackAction, onMilestone, onComplete, ...dataAttributes }: F0VideoPlayerProps): JSX_2.Element;
12078
+ declare function F0VideoPlayerInternal({ src, poster, ariaLabel, silent, persistControls, content, defaultLanguage, autoPlay, autoFocus, download, restrictForwardSeek, onTrackAction, onMilestone, onComplete, ...dataAttributes }: F0VideoPlayerProps): JSX_2.Element;
12073
12079
 
12074
12080
  export declare interface F0VideoPlayerProps extends DataAttributes_2 {
12081
+ /** Accessible name for this player region. Defaults to "Video player". */
12082
+ ariaLabel?: string;
12075
12083
  /**
12076
12084
  * Video source URL. Localizable — pass a per-locale list of dubbed renditions
12077
12085
  * to offer selectable audio languages; an "Audio" selector then appears,
@@ -12121,6 +12129,15 @@ export declare interface F0VideoPlayerProps extends DataAttributes_2 {
12121
12129
  autoPlay?: boolean;
12122
12130
  /** Focus the player on mount so keyboard shortcuts work immediately. Default `false`. */
12123
12131
  autoFocus?: boolean;
12132
+ /**
12133
+ * Optional download action rendered inside the player controls. Native media
12134
+ * downloads remain disabled, so embedded surfaces that allow saving the
12135
+ * source can expose an explicit, keyboard-accessible action here.
12136
+ */
12137
+ download?: {
12138
+ label: string;
12139
+ onClick: () => void;
12140
+ };
12124
12141
  /**
12125
12142
  * Prevent seeking past the furthest point already watched. Renders a marker at
12126
12143
  * that position and blocks the cursor beyond it. Default `false`.