@hyperframes/studio 0.8.210 → 0.8.211

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.
@@ -582,8 +582,10 @@ function parsePreviewCopies(value) {
582
582
  error: typeof error === "string" ? error : null
583
583
  };
584
584
  }
585
+ var optionalNumber = (n) => typeof n === "number" ? n : void 0;
585
586
  function parsePlaybackHealth(value) {
586
587
  if (typeof value !== "object" || value === null) return null;
588
+ const extra = value;
587
589
  const { droppedShare, seconds, choppy, fps, worstFrameMs } = value;
588
590
  const numbers = [droppedShare, seconds, fps, worstFrameMs].every((n) => typeof n === "number");
589
591
  if (!numbers || typeof choppy !== "boolean") return null;
@@ -593,6 +595,10 @@ function parsePlaybackHealth(value) {
593
595
  choppy,
594
596
  fps,
595
597
  worstFrameMs,
598
+ skippedShare: optionalNumber(extra.skippedShare),
599
+ waitingShare: optionalNumber(extra.waitingShare),
600
+ gapP50Ms: optionalNumber(extra.gapP50Ms),
601
+ gapP95Ms: optionalNumber(extra.gapP95Ms),
596
602
  mode: "play"
597
603
  };
598
604
  }
package/dist/index.d.ts CHANGED
@@ -259,6 +259,10 @@ interface PlaybackHealth {
259
259
  choppy: boolean;
260
260
  fps: number;
261
261
  worstFrameMs: number;
262
+ skippedShare?: number;
263
+ waitingShare?: number;
264
+ gapP50Ms?: number;
265
+ gapP95Ms?: number;
262
266
  mode: "play";
263
267
  }
264
268
  /** What the preview holds, counts and classes only, filled when asked for. */
package/dist/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
  document.documentElement.dataset.theme = "paper";
15
15
  }
16
16
  </script>
17
- <script type="module" crossorigin src="/assets/index-CtrcjpbM.js"></script>
17
+ <script type="module" crossorigin src="/assets/index-k4nVfS2D.js"></script>
18
18
  <link rel="stylesheet" crossorigin href="/assets/index-RUPGNyct.css">
19
19
  </head>
20
20
  <body>