@factorialco/f0-react 16.35.0 → 16.35.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.
@@ -4,7 +4,7 @@ import { useCallback as i, useEffect as a, useRef as o, useState as s } from "re
4
4
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
5
  //#region \0virtual:f0-component-status-data
6
6
  var u = {
7
- generatedAt: "2026-12-01T11:42:58.508Z",
7
+ generatedAt: "2026-12-01T12:50:07.125Z",
8
8
  stats: {
9
9
  total: 319,
10
10
  byStatus: {
@@ -9413,29 +9413,29 @@ interface AutoFocusResult {
9413
9413
  */
9414
9414
  export declare const resolveAutoFocus: ({ tiles, intent, seenShareKeys }: AutoFocusInput) => AutoFocusResult;
9415
9415
  //#endregion
9416
- //#region src/domains/platform/communications/meetings/F0Meeting/layout/speaker-order.d.ts
9417
- interface SpeakerOrderInput {
9418
- tiles: F0MeetingTile[];
9416
+ //#region src/domains/platform/communications/meetings/F0Meeting/layout/visual-stable-order.d.ts
9417
+ interface StableStageOrderInput {
9418
+ tiles: readonly F0MeetingTile[];
9419
+ /** What this surface drew last time; null on its first render. */
9420
+ previous: readonly F0MeetingTile[] | null;
9419
9421
  /** Participants currently speaking. */
9420
9422
  speakerIds: readonly string[];
9421
- /** How many tiles the grid can show at once. */
9422
- pageSize: number;
9423
9423
  /** participantId → epoch ms of their last turn. */
9424
9424
  lastSpokenAt: Readonly<Record<string, number>>;
9425
- /** Now, injected so the function stays pure and testable. */
9426
- now: number;
9427
- /** A visible tile is only displaced after being quiet this long. */
9428
- holdMs: number;
9425
+ /** How many tiles the surface shows before the "+N". */
9426
+ pageSize: number;
9429
9427
  }
9430
9428
  /**
9431
- * Promotes off-page speakers into the visible page, replacing the tile that has
9432
- * been quiet the longest rather than the first one — swapping into slot 0 makes
9433
- * the grid jump on every turn.
9429
+ * The order the room draws, given the order it drew last time.
9430
+ *
9431
+ * Shares always lead, and while everyone fits the roster order is kept as it
9432
+ * is: like LiveKit, the stable algorithm only runs once some tiles are behind
9433
+ * the "+N". Unlike LiveKit, a new `pageSize` (a resize, a share starting) does
9434
+ * not reset to `sorted`, so a resize that still leaves a "+N" keeps the order.
9434
9435
  *
9435
- * The hold window stops two people alternating from shuffling tiles on every
9436
- * exchange, which is the single most distracting thing a video grid can do.
9436
+ * Your own tile is never swapped off the page once it is on it, as before.
9437
9437
  */
9438
- export declare const reorderForSpeakers: ({ tiles, speakerIds, pageSize, lastSpokenAt, now, holdMs }: SpeakerOrderInput) => F0MeetingTile[];
9438
+ export declare const stableStageOrder: ({ tiles, previous, speakerIds, lastSpokenAt, pageSize }: StableStageOrderInput) => F0MeetingTile[];
9439
9439
  //#endregion
9440
9440
  //#region src/domains/platform/communications/meetings/F0Meeting/window/panel.d.ts
9441
9441
  /** The whole viewport as a rect, for hosts that publish no content area. */