@ai-matrx/media 0.2.0 → 0.2.1
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/CHANGELOG.md +17 -0
- package/dist/react.cjs +13 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +30 -3
- package/dist/react.d.ts +30 -3
- package/dist/react.js +13 -2
- package/dist/react.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ai-matrx/media
|
|
2
2
|
|
|
3
|
+
## 0.2.1 — 2026-08-30
|
|
4
|
+
|
|
5
|
+
Additive only — every default unchanged. Closes the wave-2 gap that kept the
|
|
6
|
+
host's video lightbox host-side: `MediaLightbox` had no video passthrough.
|
|
7
|
+
|
|
8
|
+
- **`MediaLightbox`** gains `autoPlay`, `playsInline`, `poster`, and
|
|
9
|
+
`playbackLabel`, forwarded to the underlying `InlineMediaRef`:
|
|
10
|
+
- `poster` is typed as the branded `DurableSrc` (law 3 — the host
|
|
11
|
+
resolves/mints it, exactly like the element src; no raw-string lane);
|
|
12
|
+
- `playbackLabel` sets the label reported to the host's existing
|
|
13
|
+
`playbackSession` port while the media plays (e.g. "Video
|
|
14
|
+
(fullscreen)") — playback still rides the ONE port, no new lane.
|
|
15
|
+
- **`InlineMediaRef`** gains the same two new props (`poster` →
|
|
16
|
+
`<video poster>`; `playbackLabel` → the playback-session registration,
|
|
17
|
+
defaulting to `alt` then "Media file" as before). `autoPlay`/`playsInline`
|
|
18
|
+
already existed there.
|
|
19
|
+
|
|
3
20
|
## 0.2.0 — 2026-08-29
|
|
4
21
|
|
|
5
22
|
**THE SHARE MANDATE row is satisfied (wave M-SHARE, ruling C19).** The
|
package/dist/react.cjs
CHANGED
|
@@ -938,6 +938,8 @@ function InlineMediaRef({
|
|
|
938
938
|
playsInline,
|
|
939
939
|
preload,
|
|
940
940
|
controlsList,
|
|
941
|
+
poster,
|
|
942
|
+
playbackLabel,
|
|
941
943
|
rounded = "md",
|
|
942
944
|
onClick,
|
|
943
945
|
onError,
|
|
@@ -981,7 +983,7 @@ function InlineMediaRef({
|
|
|
981
983
|
{
|
|
982
984
|
isPlaying: isMediaPlaying,
|
|
983
985
|
source: "file-media",
|
|
984
|
-
label: alt || "Media file",
|
|
986
|
+
label: playbackLabel ?? (alt || "Media file"),
|
|
985
987
|
trackKey
|
|
986
988
|
},
|
|
987
989
|
sessionElRef
|
|
@@ -1122,6 +1124,7 @@ function InlineMediaRef({
|
|
|
1122
1124
|
playsInline,
|
|
1123
1125
|
preload,
|
|
1124
1126
|
controlsList,
|
|
1127
|
+
poster,
|
|
1125
1128
|
onLoadedData: onLoad,
|
|
1126
1129
|
onError: handleLoadError,
|
|
1127
1130
|
crossOrigin,
|
|
@@ -2080,6 +2083,10 @@ function MediaLightbox({
|
|
|
2080
2083
|
fileName,
|
|
2081
2084
|
alt,
|
|
2082
2085
|
as,
|
|
2086
|
+
autoPlay,
|
|
2087
|
+
playsInline,
|
|
2088
|
+
poster,
|
|
2089
|
+
playbackLabel,
|
|
2083
2090
|
actions,
|
|
2084
2091
|
hideUnavailableActions = false,
|
|
2085
2092
|
headerExtra,
|
|
@@ -2158,7 +2165,11 @@ function MediaLightbox({
|
|
|
2158
2165
|
fit: "contain",
|
|
2159
2166
|
rounded: "none",
|
|
2160
2167
|
alt: alt ?? fileName ?? "",
|
|
2161
|
-
as
|
|
2168
|
+
as,
|
|
2169
|
+
autoPlay,
|
|
2170
|
+
playsInline,
|
|
2171
|
+
poster,
|
|
2172
|
+
playbackLabel
|
|
2162
2173
|
}
|
|
2163
2174
|
) })
|
|
2164
2175
|
}
|