@poolse/react-ui 2.15.1 → 2.16.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/CHANGELOG.md +19 -0
- package/dist/index.cjs +9 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ 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.16.0] — 2026-08-24
|
|
8
|
+
|
|
9
|
+
Republished in lockstep with `@poolse/react-native@2.16.0`.
|
|
10
|
+
|
|
11
|
+
## [2.15.2] — 2026-08-23
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Same edge seam as `@poolse/react-native@2.15.2`: the floating preview's
|
|
16
|
+
inner tile is borderless, so the bubble owns the only rounding.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- `CallVideoGrid`'s tile takes `fit` separately from `bleed`. The two
|
|
21
|
+
were coupled, but the spotlight and the floating preview are both
|
|
22
|
+
bleed tiles that want opposite fits — the spotlight letterboxes so a
|
|
23
|
+
phone's portrait frame survives a landscape window, while the preview
|
|
24
|
+
is a small fixed-ratio bubble that should be filled edge to edge.
|
|
25
|
+
|
|
7
26
|
## [2.15.1] — 2026-08-23
|
|
8
27
|
|
|
9
28
|
### 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
|
-
//
|
|
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
|
|
360
|
-
//
|
|
361
|
-
//
|
|
362
|
-
|
|
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.
|