@trii/components 3.1.14 → 3.1.16

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 Props {
4
4
  messageId: string;
5
5
  templateFileType?: MessageHeaderType;
6
6
  timestamp: Date;
7
+ timeOnly?: boolean;
7
8
  }
8
- declare const Document: ({ documents, messageId, templateFileType, timestamp }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Document: ({ documents, messageId, templateFileType, timestamp, timeOnly }: Props) => import("react/jsx-runtime").JSX.Element;
9
10
  export default Document;
@@ -1,6 +1,8 @@
1
1
  import MediaFile from '../../../../../../types/MediaFile';
2
- /** Fixed-size thumbnail. Videos are placeholders: no video request before opening. */
3
- export default function Image({ file, onOpen }: {
2
+ /** Square thumbnail. Videos are placeholders: no video request before opening. */
3
+ export default function Image({ file, onOpen, dateLabel, dateTimeLabel }: {
4
4
  file: MediaFile;
5
5
  onOpen: () => void;
6
+ dateLabel?: string;
7
+ dateTimeLabel?: string;
6
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import type { MediaEntry } from './mediaEntries';
2
+ export type MediaRow = {
3
+ key: string;
4
+ kind: 'date';
5
+ timestamp: MediaEntry['timestamp'];
6
+ } | {
7
+ key: string;
8
+ kind: 'items';
9
+ entries: {
10
+ entry: MediaEntry;
11
+ index: number;
12
+ }[];
13
+ };
14
+ /** Group the loaded pages only; keep API order and original gallery indices. */
15
+ export declare function mediaRows(entries: MediaEntry[], columns: number): MediaRow[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/components",
3
- "version": "3.1.14",
3
+ "version": "3.1.16",
4
4
  "description": "Trii components package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",