@hyperframes/inspector 0.9.21 → 0.9.23

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.
@@ -17,7 +17,7 @@ export declare function findStartTags(html: string, name: string): number[];
17
17
  export declare function hasCompositionOutsideTemplates(html: string): boolean;
18
18
  /** Insert markup before the document's own `</head>`, `</body>` or `</template>`; null if it has none. */
19
19
  export declare function insertBeforeCloseTag(html: string, name: "head" | "body" | "template", markup: string): string | null;
20
- export declare function insertRuntimeTag(html: string, tag: string): string;
20
+ export declare function insertRuntimeTag(html: string, tag: string, atHeadStart?: boolean): string;
21
21
  /**
22
22
  * Insert raw tag markup at the very start of `<head>`, ahead of every author
23
23
  * script (inline or external). Falls back to just before `<body>`, then to the
@@ -229,6 +229,13 @@ export type RuntimePreviewCopiesMessage = {
229
229
  error: string | null;
230
230
  } | null;
231
231
  };
232
+ export type FetchNotSeenToStart = null;
233
+ export type PlaybackHeldBy = {
234
+ kind: "audio" | "video";
235
+ readyState: number;
236
+ networkState: number;
237
+ fetchMs: number | FetchNotSeenToStart;
238
+ };
232
239
  export type RuntimePreviewHealthMessage = {
233
240
  source: "hf-preview";
234
241
  type: "preview-health";
@@ -245,6 +252,7 @@ export type RuntimePreviewHealthMessage = {
245
252
  gapP50Ms: number;
246
253
  gapP95Ms: number;
247
254
  clockSource: "audio" | "webaudio" | "monotonic";
255
+ heldBy: PlaybackHeldBy | null;
248
256
  mode: "play";
249
257
  } | null;
250
258
  };
@@ -275,6 +283,7 @@ export type RuntimePlayer = {
275
283
  pause: () => void;
276
284
  seek: (timeSeconds: number, options?: {
277
285
  keepPlaying?: boolean;
286
+ settled?: boolean;
278
287
  }) => HeldSeek;
279
288
  renderSeek: (timeSeconds: number, options?: RuntimeSeekOptions) => void;
280
289
  getTime: () => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.9.21",
3
+ "version": "0.9.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -43,8 +43,8 @@
43
43
  "htmlparser2": "^10.1.0",
44
44
  "postcss": "^8.5.8",
45
45
  "puppeteer-core": "^25.8.0",
46
- "@hyperframes/parsers": "0.9.21",
47
- "@hyperframes/core": "0.9.21"
46
+ "@hyperframes/parsers": "0.9.23",
47
+ "@hyperframes/core": "0.9.23"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",