@linktr.ee/messaging-react 4.3.2 → 4.4.0-rc-1787598778
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/{AttachmentCard-Pc93Wcd0.js → AttachmentCard-BqwWgqvi.js} +83 -78
- package/dist/AttachmentCard-BqwWgqvi.js.map +1 -0
- package/dist/AttachmentCard-DUrgGRsq.cjs +2 -0
- package/dist/AttachmentCard-DUrgGRsq.cjs.map +1 -0
- package/dist/{Card-ByU9P9GA.cjs → Card-BIbqWagz.cjs} +2 -2
- package/dist/{Card-ByU9P9GA.cjs.map → Card-BIbqWagz.cjs.map} +1 -1
- package/dist/{Card-D__kW2E_.js → Card-f51K6V7Y.js} +20 -20
- package/dist/{Card-D__kW2E_.js.map → Card-f51K6V7Y.js.map} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.js +1017 -969
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/AttachmentCard/MediaPlayer.tsx +2 -0
- package/src/components/CustomMessage/StreamAttachmentMessage.test.tsx +26 -0
- package/src/components/CustomMessage/StreamAttachmentMessage.tsx +31 -3
- package/src/components/LinkAttachment/components/_shared/CardThumbnail.tsx +2 -0
- package/src/components/MessageAttachment/Audio/index.tsx +2 -0
- package/src/components/MessageAttachment/Image/index.tsx +11 -56
- package/src/components/MessageAttachment/MessageAttachment.test.tsx +249 -0
- package/src/components/MessageAttachment/Video/VideoAttachment.stories.tsx +163 -0
- package/src/components/MessageAttachment/Video/index.tsx +195 -36
- package/src/components/MessageAttachment/_shared/MediaStackGrid.tsx +27 -3
- package/src/components/MessageAttachment/_shared/VideoViewer.test.tsx +68 -1
- package/src/components/MessageAttachment/_shared/VideoViewer.tsx +86 -25
- package/src/components/MessageAttachment/_shared/useSingleMediaRatio.ts +75 -0
- package/src/components/MessageAttachment/types.ts +9 -0
- package/src/utils/nativeMediaPlayers.test.ts +55 -0
- package/src/utils/nativeMediaPlayers.ts +41 -0
- package/dist/AttachmentCard-DI2chsB_.cjs +0 -2
- package/dist/AttachmentCard-DI2chsB_.cjs.map +0 -1
- package/dist/AttachmentCard-Pc93Wcd0.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1304,6 +1304,15 @@ export declare interface MessageAttachmentVideoItem {
|
|
|
1304
1304
|
src: string;
|
|
1305
1305
|
/** Poster / thumbnail rendered before playback starts. */
|
|
1306
1306
|
poster?: string;
|
|
1307
|
+
/**
|
|
1308
|
+
* Width ÷ height of the source clip, when the sender recorded it on the
|
|
1309
|
+
* attachment (Stream's `original_width` / `original_height`). Preferred over
|
|
1310
|
+
* measuring the poster, because it is known before any image loads and works
|
|
1311
|
+
* for a clip that has no poster at all — the case that otherwise leaves a
|
|
1312
|
+
* portrait video in a square or landscape box. Absent on anything sent
|
|
1313
|
+
* before the composer began writing it (MES-1353).
|
|
1314
|
+
*/
|
|
1315
|
+
naturalAspectRatio?: number;
|
|
1307
1316
|
/** Optional MIME type (e.g. `video/mp4`). */
|
|
1308
1317
|
mimeType?: string;
|
|
1309
1318
|
/**
|
|
@@ -1840,6 +1849,12 @@ declare interface VideoAttachmentSharedProps extends MessageAttachmentBaseProps
|
|
|
1840
1849
|
src?: string;
|
|
1841
1850
|
/** Poster image — preview shown before playback starts. */
|
|
1842
1851
|
poster?: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* Width ÷ height of the source clip. See `VideoItem.naturalAspectRatio` —
|
|
1854
|
+
* this is the single-`src` convenience form of the same thing, and is what
|
|
1855
|
+
* lets a posterless portrait clip size itself correctly (MES-1353).
|
|
1856
|
+
*/
|
|
1857
|
+
naturalAspectRatio?: number;
|
|
1843
1858
|
/** MIME type hint — typed onto the inline `<source>` element. */
|
|
1844
1859
|
mimeType?: string;
|
|
1845
1860
|
/** Filename used as the viewer dialog's accessible name. */
|