@hyperframes/producer 0.8.149 → 0.8.150

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.
@@ -1,23 +1,17 @@
1
1
  /**
2
2
  * Collect the render pipeline's media list from the fully inlined document.
3
3
  *
4
- * Sub-composition media used to be gathered from each composition FILE before
5
- * inlining, then merged with the main document's media and deduplicated by
6
- * element id. That merge is unsound: ids are unique per file, not per render
7
- * document, so two scenes that both declare `<video id="clip">` — or that both
8
- * declare a bare `<video>` and get the per-file auto-id `hf-video-0` — collapse
9
- * into a single entry. See mediaRenderIds.ts for the full failure.
10
- *
11
- * Reading the inlined document instead makes the render document the single
12
- * source of truth for what media exists: every element is present exactly once,
13
- * `assignMediaRenderIds` has already given it a document-unique key, and the
14
- * timeline offsets are recoverable from the composition hosts it sits inside.
4
+ * Ids are unique per composition file, not per render document (see mediaRenderIds.ts), so media is
5
+ * read from the inlined document: each element once, keyed by its render id or else its author id,
6
+ * and placed by the composition hosts it sits inside.
15
7
  */
16
8
  import { type VideoElement, type ImageElement, type AudioElement } from "@hyperframes/engine";
17
9
  export interface RenderMedia {
18
10
  videos: VideoElement[];
19
11
  audios: AudioElement[];
20
12
  images: ImageElement[];
13
+ /** Ids of clips in the document that never play; the browser probe must not add them back. */
14
+ droppedMediaIds: Set<string>;
21
15
  }
22
16
  /**
23
17
  * Parse every media element in the inlined render document, with each clip's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/producer",
3
- "version": "0.8.149",
3
+ "version": "0.8.150",
4
4
  "description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,11 +35,11 @@
35
35
  "postcss": "^8.4.0",
36
36
  "puppeteer": "^25.2.1",
37
37
  "puppeteer-core": "^25.2.1",
38
- "@hyperframes/engine": "0.8.149",
39
- "@hyperframes/core": "0.8.149",
40
- "@hyperframes/lint": "0.8.149",
41
- "@hyperframes/studio-server": "0.8.149",
42
- "@hyperframes/parsers": "0.8.149"
38
+ "@hyperframes/lint": "0.8.150",
39
+ "@hyperframes/engine": "0.8.150",
40
+ "@hyperframes/core": "0.8.150",
41
+ "@hyperframes/studio-server": "0.8.150",
42
+ "@hyperframes/parsers": "0.8.150"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^25.0.10",
@@ -48,7 +48,7 @@
48
48
  "tsx": "^4.21.0",
49
49
  "typescript": "^5.7.2",
50
50
  "vitest": "^4.1.11",
51
- "@hyperframes/aws-lambda": "0.8.149"
51
+ "@hyperframes/aws-lambda": "0.8.150"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22"