@hyperframes/producer 0.9.68 → 0.9.69

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.
package/dist/index.js CHANGED
@@ -8073,7 +8073,10 @@ async function prepareHeifImageInputs(html, options) {
8073
8073
  }
8074
8074
 
8075
8075
  // src/services/htmlCompiler.ts
8076
- import { createStudioPositionSeekReapplyScript } from "@hyperframes/studio-server/manual-edits-render-script";
8076
+ import {
8077
+ createStudioPositionSeekReapplyScript,
8078
+ htmlHasStudioPositionEdits
8079
+ } from "@hyperframes/studio-server/manual-edits-render-script";
8077
8080
  import { getPositionEditsRenderScript } from "@hyperframes/core/runtime/position-edits-render";
8078
8081
 
8079
8082
  // src/services/assetMediaType.ts
@@ -9686,14 +9689,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
9686
9689
  abortSignal: options.abortSignal
9687
9690
  });
9688
9691
  const assembledHtml = await inlineExternalScripts(coalescedHtml, budget);
9689
- const HF_POSITION_ATTRS = [
9690
- 'data-hf-studio-path-offset="true"',
9691
- 'data-hf-studio-box-size="true"',
9692
- 'data-hf-studio-rotation="true"',
9693
- 'data-hf-studio-motion="'
9694
- ];
9695
- const hasPositionEdits = HF_POSITION_ATTRS.some((attr) => assembledHtml.includes(attr));
9696
- const htmlWithPositionScript = hasPositionEdits ? insertBeforeCloseTag(
9692
+ const htmlWithPositionScript = htmlHasStudioPositionEdits(assembledHtml) ? insertBeforeCloseTag(
9697
9693
  assembledHtml,
9698
9694
  "body",
9699
9695
  `<script>${createStudioPositionSeekReapplyScript()}
@@ -8088,7 +8088,10 @@ async function prepareHeifImageInputs(html, options) {
8088
8088
  }
8089
8089
 
8090
8090
  // src/services/htmlCompiler.ts
8091
- import { createStudioPositionSeekReapplyScript } from "@hyperframes/studio-server/manual-edits-render-script";
8091
+ import {
8092
+ createStudioPositionSeekReapplyScript,
8093
+ htmlHasStudioPositionEdits
8094
+ } from "@hyperframes/studio-server/manual-edits-render-script";
8092
8095
  import { getPositionEditsRenderScript } from "@hyperframes/core/runtime/position-edits-render";
8093
8096
 
8094
8097
  // src/services/assetMediaType.ts
@@ -9698,14 +9701,7 @@ async function compileForRender(projectDir, htmlPath, downloadDir, options = {})
9698
9701
  abortSignal: options.abortSignal
9699
9702
  });
9700
9703
  const assembledHtml = await inlineExternalScripts(coalescedHtml, budget);
9701
- const HF_POSITION_ATTRS = [
9702
- 'data-hf-studio-path-offset="true"',
9703
- 'data-hf-studio-box-size="true"',
9704
- 'data-hf-studio-rotation="true"',
9705
- 'data-hf-studio-motion="'
9706
- ];
9707
- const hasPositionEdits = HF_POSITION_ATTRS.some((attr) => assembledHtml.includes(attr));
9708
- const htmlWithPositionScript = hasPositionEdits ? insertBeforeCloseTag(
9704
+ const htmlWithPositionScript = htmlHasStudioPositionEdits(assembledHtml) ? insertBeforeCloseTag(
9709
9705
  assembledHtml,
9710
9706
  "body",
9711
9707
  `<script>${createStudioPositionSeekReapplyScript()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/producer",
3
- "version": "0.9.68",
3
+ "version": "0.9.69",
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.13.0",
37
37
  "puppeteer-core": "^25.13.0",
38
- "@hyperframes/engine": "0.9.68",
39
- "@hyperframes/core": "0.9.68",
40
- "@hyperframes/parsers": "0.9.68",
41
- "@hyperframes/lint": "0.9.68",
42
- "@hyperframes/studio-server": "0.9.68"
38
+ "@hyperframes/core": "0.9.69",
39
+ "@hyperframes/engine": "0.9.69",
40
+ "@hyperframes/lint": "0.9.69",
41
+ "@hyperframes/parsers": "0.9.69",
42
+ "@hyperframes/studio-server": "0.9.69"
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.12",
51
- "@hyperframes/aws-lambda": "0.9.68"
51
+ "@hyperframes/aws-lambda": "0.9.69"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22"