@hyperframes/producer 0.9.40 → 0.9.42

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.
@@ -33,6 +33,7 @@ export declare function dropMediaOutsideProject(input: {
33
33
  images: ImageElement[];
34
34
  };
35
35
  log: ProducerLogger;
36
+ allowOutsideProjectAssets?: boolean;
36
37
  }): void;
37
38
  /**
38
39
  * Fail early when a successfully-probed local asset cannot satisfy the HTML
@@ -64,7 +64,7 @@ export declare function inlineExternalScripts(html: string): Promise<string>;
64
64
  *
65
65
  * Handles: src/href attributes, CSS url(), inline style url().
66
66
  */
67
- export declare function collectExternalAssets(html: string, projectDir: string): {
67
+ export declare function collectExternalAssets(html: string, projectDir: string, log?: ProducerLogger, file?: string): {
68
68
  html: string;
69
69
  externalAssets: Map<string, string>;
70
70
  };
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Path resolution utilities for the render pipeline.
3
3
  */
4
+ import { type LeftOutReason } from "@hyperframes/studio-server/outside-file";
4
5
  export interface RenderPaths {
5
6
  absoluteProjectDir: string;
6
7
  absoluteOutputPath: string;
@@ -28,6 +29,11 @@ type IsPathInsideOptions = {
28
29
  export declare function isPathInside(childPath: string, parentPath: string, options?: IsPathInsideOptions): boolean;
29
30
  /** True when `assetRoot` is set and `path`, symlinks resolved, leaves it. */
30
31
  export declare function escapesAssetRoot(path: string, assetRoot: string | undefined): boolean;
32
+ /** Why a trusted local render leaves out `path`, which leads outside `projectDir`, as publish does; null to bring it in. */
33
+ export declare function outsideAssetRefusal(projectDir: string, path: string): LeftOutReason | null;
34
+ export declare const leftOutOfRender: (file: string, reference: string, reason: LeftOutReason) => string;
35
+ /** True, after a warning, when a trusted local render must not serve or copy `path`, a project file that leads outside. */
36
+ export declare function refusesOutsideLink(projectDir: string, path: string, warn: (line: string) => void): boolean;
31
37
  /**
32
38
  * Build a safe, cross-platform relative key for an absolute asset path
33
39
  * that lives outside the project directory.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/producer",
3
- "version": "0.9.40",
3
+ "version": "0.9.42",
4
4
  "description": "HTML-to-video rendering engine using Chrome's BeginFrame API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,13 +33,13 @@
33
33
  "hono": "^4.6.0",
34
34
  "linkedom": "^0.18.12",
35
35
  "postcss": "^8.4.0",
36
- "puppeteer": "~25.11.0",
37
- "puppeteer-core": "^25.11.0",
38
- "@hyperframes/core": "0.9.40",
39
- "@hyperframes/lint": "0.9.40",
40
- "@hyperframes/studio-server": "0.9.40",
41
- "@hyperframes/parsers": "0.9.40",
42
- "@hyperframes/engine": "0.9.40"
36
+ "puppeteer": "~25.13.0",
37
+ "puppeteer-core": "^25.13.0",
38
+ "@hyperframes/lint": "0.9.42",
39
+ "@hyperframes/core": "0.9.42",
40
+ "@hyperframes/parsers": "0.9.42",
41
+ "@hyperframes/engine": "0.9.42",
42
+ "@hyperframes/studio-server": "0.9.42"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^25.0.10",
@@ -47,8 +47,8 @@
47
47
  "esbuild": "^0.28.2",
48
48
  "tsx": "^4.21.0",
49
49
  "typescript": "^5.7.2",
50
- "vitest": "^4.1.11",
51
- "@hyperframes/aws-lambda": "0.9.40"
50
+ "vitest": "^4.1.12",
51
+ "@hyperframes/aws-lambda": "0.9.42"
52
52
  },
53
53
  "engines": {
54
54
  "node": ">=22"