@hyperframes/inspector 0.8.212 → 0.8.214

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,4 +4,7 @@ export type HyperframeStaticGuardResult = {
4
4
  missingKeys: string[];
5
5
  failureReason: HyperframeStaticFailureReason | null;
6
6
  };
7
- export declare function validateHyperframeHtmlContract(html: string): Promise<HyperframeStaticGuardResult>;
7
+ export declare function validateHyperframeHtmlContract(html: string, project?: {
8
+ dir: string;
9
+ compSrcPath?: string;
10
+ }): Promise<HyperframeStaticGuardResult>;
@@ -49,6 +49,8 @@ export declare function isHtmlElement(value: unknown): value is HTMLElement;
49
49
  export declare function isVideoElement(value: unknown): value is HTMLVideoElement;
50
50
  /** `<audio>`, from any realm. Mirrors `instanceof HTMLAudioElement`. */
51
51
  export declare function isAudioElement(value: unknown): value is HTMLAudioElement;
52
+ /** `<source>`, from any realm. Mirrors `instanceof HTMLSourceElement`. */
53
+ export declare function isSourceElement(value: unknown): value is HTMLSourceElement;
52
54
  /** `<video>` or `<audio>`, from any realm. Mirrors `instanceof HTMLMediaElement`. */
53
55
  export declare function isMediaElement(value: unknown): value is HTMLMediaElement;
54
56
  /** `<img>`, from any realm. Mirrors `instanceof HTMLImageElement`. */
@@ -1,5 +1,6 @@
1
1
  export declare const RUNTIME_PROTOCOL_VERSION: 1;
2
2
  export declare const RUNTIME_FILLER = "hf-runtime-filler";
3
+ export declare const RUNTIME_MEDIA_LOAD_FAILED = "runtime_media_load_failed";
3
4
  export declare const RUNTIME_PROTOCOL_CAPABILITIES: readonly ["seconds-time", "rational-fps", "seek-keep-playing", "composition-manifest-v1", "runtime-data", "play-range"];
4
5
  export type RuntimeProtocolFps = {
5
6
  numerator: number;
@@ -28,3 +29,15 @@ export declare function runtimeProtocolFpsToNumber(value: unknown): number | nul
28
29
  export declare function runtimeProtocolMetadata(fps: number): RuntimeProtocolV1;
29
30
  export declare function frameDisplayScale(frame: HTMLElement): number | null;
30
31
  export declare function inspectRuntimeProtocol(value: unknown, legacyFps?: number): RuntimeProtocolInspection;
32
+ declare const STAGES: readonly ["fetch", "decode", "element"];
33
+ export type MediaLoadStage = (typeof STAGES)[number];
34
+ export interface MediaLoadFailure {
35
+ elementId: string | null;
36
+ kind: string;
37
+ stage: MediaLoadStage;
38
+ code: number | null;
39
+ bytes: number | null;
40
+ extension: string | null;
41
+ }
42
+ export declare function parseMediaLoadFailure(value: unknown): MediaLoadFailure | null;
43
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.8.212",
3
+ "version": "0.8.214",
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/core": "0.8.212",
47
- "@hyperframes/parsers": "0.8.212"
46
+ "@hyperframes/core": "0.8.214",
47
+ "@hyperframes/parsers": "0.8.214"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",