@poolse/react-ui 2.15.1 → 2.15.2

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 CHANGED
@@ -4,6 +4,21 @@ All notable changes to `@poolse/react-ui` are documented here. Format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
5
5
  [semver](https://semver.org).
6
6
 
7
+ ## [2.15.2] — 2026-08-23
8
+
9
+ ### Fixed
10
+
11
+ - Same edge seam as `@poolse/react-native@2.15.2`: the floating preview's
12
+ inner tile is borderless, so the bubble owns the only rounding.
13
+
14
+ ### Changed
15
+
16
+ - `CallVideoGrid`'s tile takes `fit` separately from `bleed`. The two
17
+ were coupled, but the spotlight and the floating preview are both
18
+ bleed tiles that want opposite fits — the spotlight letterboxes so a
19
+ phone's portrait frame survives a landscape window, while the preview
20
+ is a small fixed-ratio bubble that should be filled edge to edge.
21
+
7
22
  ## [2.15.1] — 2026-08-23
8
23
 
9
24
  ### Fixed
package/dist/index.cjs CHANGED
@@ -303,8 +303,8 @@ function CallVideoGrid({
303
303
  const spotlight = others[0] ?? self;
304
304
  if (!spotlight) return null;
305
305
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: className ?? "callstage callstage--solo", children: [
306
- /* @__PURE__ */ jsxRuntime.jsx(CallVideoTile, { participant: spotlight, label, bleed: true }),
307
- self && others.length === 1 && /* @__PURE__ */ jsxRuntime.jsx(FloatingSelf, { onClick: onLocalClick, children: /* @__PURE__ */ jsxRuntime.jsx(CallVideoTile, { participant: self, label, hideName: true }) })
306
+ /* @__PURE__ */ jsxRuntime.jsx(CallVideoTile, { participant: spotlight, label, bleed: true, fit: "contain" }),
307
+ self && others.length === 1 && /* @__PURE__ */ jsxRuntime.jsx(FloatingSelf, { onClick: onLocalClick, children: /* @__PURE__ */ jsxRuntime.jsx(CallVideoTile, { participant: self, label, hideName: true, bleed: true, fit: "cover" }) })
308
308
  ] });
309
309
  }
310
310
  const tiles = [...others, ...self ? [self] : []];
@@ -321,7 +321,8 @@ function CallVideoTile({
321
321
  participant,
322
322
  label,
323
323
  bleed = false,
324
- hideName = false
324
+ hideName = false,
325
+ fit = "cover"
325
326
  }) {
326
327
  const ref = react.useRef(null);
327
328
  const track = participant.videoTrack;
@@ -349,18 +350,16 @@ function CallVideoTile({
349
350
  playsInline: true,
350
351
  muted: participant.isSelf,
351
352
  style: {
352
- // `contain` for the spotlight, `cover` for everything else,
353
- // and set here rather than left to host CSS because it is
353
+ // Set here rather than left to host CSS because it is
354
354
  // behaviour rather than theme.
355
355
  //
356
356
  // A phone publishes portrait video. Cropping that to fill a
357
357
  // landscape browser window — which is what `cover` does —
358
358
  // throws away most of the frame and lands somewhere around
359
- // the caller's nose. Letterboxing shows the picture they
360
- // are actually sending. Fixed-ratio tiles keep `cover`,
361
- // where the crop is slight and the alternative is a grid
362
- // full of pillarboxed slivers.
363
- objectFit: bleed ? "contain" : "cover",
359
+ // the caller's nose, so the spotlight letterboxes.
360
+ // Fixed-ratio tiles crop, where the loss is slight and the
361
+ // alternative is a grid full of pillarboxed slivers.
362
+ objectFit: fit,
364
363
  // Mirrored only for yourself — mirroring a remote feed would
365
364
  // flip their text and reverse which hand they are waving
366
365
  // with.