cattle-care-ui 0.4.0 → 0.5.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.
@@ -4,6 +4,7 @@ interface VideoCardLabels {
4
4
  comment: string;
5
5
  inaccessible: string;
6
6
  archived: string;
7
+ unavailable: string;
7
8
  new: string;
8
9
  }
9
10
  interface VideoCardWorker {
@@ -13,13 +14,13 @@ interface VideoCardWorker {
13
14
  }
14
15
  /**
15
16
  * One row of a video list. Presentational: dates, translations and the choice
16
- * between "inaccessible" and "archived" are decided by the app and passed in.
17
+ * between "inaccessible", "archived" and "unavailable" are decided by the app and passed in.
17
18
  */
18
19
  interface VideoCardProps {
19
20
  /** Thumbnail URL. */
20
21
  preview?: string;
21
- /** Tile shown when `preview` is missing or fails to load: a lock + caption, an archive + caption, or a bare play icon. */
22
- previewFallback?: 'inaccessible' | 'archived' | 'play';
22
+ /** Tile shown when `preview` is missing or fails to load: a lock + caption (access closed), an archive + caption, a crossed-out frame + caption (file missing, no lock), or a bare play icon. */
23
+ previewFallback?: 'inaccessible' | 'archived' | 'unavailable' | 'play';
23
24
  /** Called once when the thumbnail fails, e.g. to log it. */
24
25
  onPreviewError?: () => void;
25
26
  /** Alt text of the thumbnail. Defaults to "Video preview: {comment}". */