@sesionario/blocks 1.24.0 → 1.26.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/index.cjs +26 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/pdf.cjs +6 -4
- package/dist/pdf.cjs.map +1 -1
- package/dist/pdf.js +6 -4
- package/dist/pdf.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5164,6 +5164,7 @@ function VideoPlayer({
|
|
|
5164
5164
|
onPlayingChange,
|
|
5165
5165
|
onFirstPlay,
|
|
5166
5166
|
onError,
|
|
5167
|
+
fit = "aspect-video",
|
|
5167
5168
|
className
|
|
5168
5169
|
}) {
|
|
5169
5170
|
const t = { ...DEFAULT_LABELS2, ...labels };
|
|
@@ -5445,8 +5446,10 @@ function VideoPlayer({
|
|
|
5445
5446
|
ref: containerRef,
|
|
5446
5447
|
"data-slot": "video-player",
|
|
5447
5448
|
"data-mode": mode,
|
|
5449
|
+
"data-fit": fit,
|
|
5448
5450
|
className: cn(
|
|
5449
|
-
"group relative
|
|
5451
|
+
"group relative w-full overflow-hidden rounded-lg bg-black text-white select-none",
|
|
5452
|
+
fit === "contain" ? "h-full min-h-0 aspect-auto" : "aspect-video",
|
|
5450
5453
|
className
|
|
5451
5454
|
),
|
|
5452
5455
|
onMouseMove: revealControls,
|
|
@@ -5463,7 +5466,10 @@ function VideoPlayer({
|
|
|
5463
5466
|
{
|
|
5464
5467
|
ref: videoRef,
|
|
5465
5468
|
playsInline: true,
|
|
5466
|
-
className:
|
|
5469
|
+
className: cn(
|
|
5470
|
+
"h-full w-full bg-black",
|
|
5471
|
+
fit === "contain" && "object-contain"
|
|
5472
|
+
),
|
|
5467
5473
|
onClick: active ? togglePlay : void 0,
|
|
5468
5474
|
poster
|
|
5469
5475
|
}
|
|
@@ -5841,6 +5847,8 @@ function FeedVideoPlayer({
|
|
|
5841
5847
|
playbackId,
|
|
5842
5848
|
onPlayingChange,
|
|
5843
5849
|
paused: pausedProp,
|
|
5850
|
+
fit = "aspect-video",
|
|
5851
|
+
className,
|
|
5844
5852
|
...playerProps
|
|
5845
5853
|
}) {
|
|
5846
5854
|
const {
|
|
@@ -5855,14 +5863,24 @@ function FeedVideoPlayer({
|
|
|
5855
5863
|
},
|
|
5856
5864
|
[onExclusivePlayingChange, onPlayingChange]
|
|
5857
5865
|
);
|
|
5858
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5859
|
-
|
|
5866
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5867
|
+
"div",
|
|
5860
5868
|
{
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5869
|
+
ref: containerRef,
|
|
5870
|
+
"data-slot": "feed-video-player",
|
|
5871
|
+
className: cn(fit === "contain" && "h-full min-h-0 w-full", className),
|
|
5872
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5873
|
+
VideoPlayer,
|
|
5874
|
+
{
|
|
5875
|
+
...playerProps,
|
|
5876
|
+
fit,
|
|
5877
|
+
paused: pausedProp || exclusivePaused,
|
|
5878
|
+
onPlayingChange: handlePlayingChange,
|
|
5879
|
+
className: fit === "contain" ? "h-full min-h-0" : void 0
|
|
5880
|
+
}
|
|
5881
|
+
)
|
|
5864
5882
|
}
|
|
5865
|
-
)
|
|
5883
|
+
);
|
|
5866
5884
|
}
|
|
5867
5885
|
function usePlaybackStats(statsUrl, { intervalMs = 15e3, enabled = true } = {}) {
|
|
5868
5886
|
const [stats, setStats] = React7__namespace.useState({});
|