@hyperframes/inspector 0.9.81 → 0.9.83

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.
@@ -12,3 +12,12 @@ export declare function audibleVideoNeedsWebAudio(fields: {
12
12
  audioGroup?: string | null;
13
13
  masterChain?: string | null;
14
14
  }): boolean;
15
+ export interface ParentCopy {
16
+ kind: "audio" | "video";
17
+ src: string;
18
+ start: number;
19
+ duration: number;
20
+ mediaStart: number;
21
+ }
22
+ export declare function mediaFileOf(el: HTMLMediaElement): string | null;
23
+ export declare function parentCopyOf(el: HTMLMediaElement): ParentCopy | null;
@@ -0,0 +1 @@
1
+ export * from "@hyperframes/parsers/composition-contract";
@@ -0,0 +1,2 @@
1
+ export declare const COMPOSITION_SRC_ATTR = "data-composition-src";
2
+ export declare const CODE_LOADING_ATTRS: ReadonlySet<string>;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Linked clips: members sharing a `data-link` id are edited as one (a detached
3
+ * video + its audio). An editing contract only; playback and render ignore it.
4
+ */
5
+ export declare const MEDIA_LINK_ATTR = "data-link";
6
+ interface AttributeReader {
7
+ getAttribute(name: string): string | null;
8
+ }
9
+ export interface LinkTiming {
10
+ start: number;
11
+ duration: number;
12
+ mediaStart: number;
13
+ playbackRate: number;
14
+ }
15
+ export declare function readLinkTiming(el: AttributeReader): LinkTiming;
16
+ /** The timing fields (`start`, `duration`, `media-start`, `playback-rate`) on which members disagree. */
17
+ export declare function linkTimingMismatches(members: readonly AttributeReader[]): string[];
18
+ /** The composition a link group stays inside: the nearest inline composition or file host. */
19
+ export declare function linkScopeOf(el: Element): Element | null;
20
+ export declare function mintLinkId(taken: Iterable<string>): string;
21
+ /** Split right halves get a fresh link id; a sync origin is reminted only when video and audio were both cut. */
22
+ export declare function relinkSplitHalves(doc: Document, rightHalfIds: readonly string[]): void;
23
+ /** Shared by a detached or linked video + audio of one file; it survives Unlink so a drifted pair can resync. */
24
+ export declare const SYNC_ORIGIN_ATTR = "data-sync-origin";
25
+ export type SyncTiming = Pick<LinkTiming, "start" | "mediaStart" | "playbackRate">;
26
+ /** Where source time zero lands on the timeline: `start − mediaStart / rate`. */
27
+ export declare function sourceZeroTime(timing: SyncTiming): number;
28
+ /** Frames `clip` sits from `partner`, positive when it plays late; null when their rates differ. */
29
+ export declare function syncOffsetFrames(clip: SyncTiming, partner: SyncTiming, fps: number): number | null;
30
+ /** `+10`, `-1:21` (seconds:frames once past one second). */
31
+ export declare function formatSyncOffset(frames: number, fps: number): string;
32
+ /** Move into Sync: the start that puts `clip` back on `partner`, or null before zero. */
33
+ export declare function moveIntoSyncStart(clip: SyncTiming, partner: SyncTiming): number | null;
34
+ /** Slip into Sync: the media start that syncs `clip` in place, or null before the file's start. */
35
+ export declare function slipIntoSyncMediaStart(clip: SyncTiming, partner: SyncTiming): number | null;
36
+ interface PairableElement extends AttributeReader {
37
+ tagName: string;
38
+ closest(selectors: string): Element | null;
39
+ ownerDocument: Document;
40
+ }
41
+ export declare function findSyncPartner(el: PairableElement): Element | null;
42
+ export {};
@@ -60,6 +60,7 @@ export interface EditingElementMatch {
60
60
  export declare const MAX_ELEMENT_ENTRIES = 256;
61
61
  export declare const MAX_ELEMENT_TEXT = 10000;
62
62
  export declare const MAX_ELEMENT_VALUE = 2000;
63
+ export declare const MAX_DRAFT_PX = 100000;
63
64
  export declare const MAX_SOURCE_GROUPS = 64;
64
65
  export declare const MAX_DESCRIBE_HANDLES = 256;
65
66
  export declare const MAX_POINT_STACK = 64;
@@ -1,7 +1,7 @@
1
1
  export declare const RUNTIME_PROTOCOL_VERSION: 1;
2
2
  export declare const RUNTIME_FILLER = "hf-runtime-filler";
3
3
  export declare const RUNTIME_MEDIA_LOAD_FAILED = "runtime_media_load_failed";
4
- export declare const RUNTIME_PROTOCOL_CAPABILITIES: readonly ["seconds-time", "rational-fps", "seek-keep-playing", "composition-manifest-v1", "runtime-data", "play-range"];
4
+ export declare const RUNTIME_PROTOCOL_CAPABILITIES: readonly ["seconds-time", "rational-fps", "seek-keep-playing", "composition-manifest-v1", "runtime-data", "play-range", "announce-timeline"];
5
5
  export type RuntimeProtocolFps = {
6
6
  numerator: number;
7
7
  denominator: number;
@@ -3,6 +3,7 @@ import type { PreviewTarget } from "../studioPreviewMark.js";
3
3
  import type { RuntimeAnalyticsEvent } from "./analytics.js";
4
4
  import type { TextLayerRead } from "./editingElement.js";
5
5
  import type { AudioFades } from "../audioFade.js";
6
+ import type { ParentCopy } from "../audibleVideo.js";
6
7
  import type { RateSpec } from "../speedRamp.js";
7
8
  import type { VolumeKeyframe } from "./mediaVolumeEnvelope.js";
8
9
  export type RuntimeJson = string | number | boolean | null | RuntimeJson[] | {
@@ -156,6 +157,7 @@ export type RuntimeStageSizeMessage = {
156
157
  export type RuntimeMediaAutoplayBlockedMessage = {
157
158
  source: "hf-preview";
158
159
  type: "media-autoplay-blocked";
160
+ media: ParentCopy[];
159
161
  };
160
162
  /**
161
163
  * Posted by the runtime when `installRuntimeControlBridge` finishes registering
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.9.81",
3
+ "version": "0.9.83",
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.81",
47
- "@hyperframes/core": "0.9.81"
46
+ "@hyperframes/core": "0.9.83",
47
+ "@hyperframes/parsers": "0.9.83"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",