@hyperframes/inspector 0.9.59 → 0.9.63
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/server.js +1 -1
- package/dist/service.js +138 -38
- package/dist/types/core/src/chromeSandbox.d.ts +19 -0
- package/dist/types/core/src/projectFolders.d.ts +1 -0
- package/dist/types/core/src/runtime/mediaClock.d.ts +4 -0
- package/dist/types/core/src/studioPreviewMark.d.ts +34 -0
- package/dist/types/inspector/src/service.d.ts +8 -1
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const NO_SANDBOX_ARGS: string[];
|
|
2
|
+
export interface ChromeSandboxHost {
|
|
3
|
+
platform: NodeJS.Platform;
|
|
4
|
+
env: NodeJS.ProcessEnv;
|
|
5
|
+
uid: number | undefined;
|
|
6
|
+
exists: (path: string) => boolean;
|
|
7
|
+
read: (path: string) => string | undefined;
|
|
8
|
+
}
|
|
9
|
+
/** Chrome keeps its sandbox unless the host can't give it one: root, serverless, a container, or blocked user namespaces. */
|
|
10
|
+
export declare function chromeSandboxEnabled(host?: ChromeSandboxHost): boolean;
|
|
11
|
+
export declare function chromeSandboxArgs(sandbox?: boolean): string[];
|
|
12
|
+
export declare function _resetChromeSandboxFallbackForTests(): void;
|
|
13
|
+
export declare function startsWithChromeSandboxFallback(args: readonly string[], starts: (args: string[]) => boolean, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* A sandboxed Linux launch Chrome refuses at startup is retried once without the sandbox.
|
|
16
|
+
* The sandbox stays off for the process once Chrome names it as the cause, or after a second
|
|
17
|
+
* bare startup exit (a single one may be an unrelated kill). HYPERFRAMES_CHROME_SANDBOX=1 never retries.
|
|
18
|
+
*/
|
|
19
|
+
export declare function launchWithChromeSandboxFallback<T>(args: readonly string[], launch: (args: string[]) => Promise<T>, platform?: NodeJS.Platform, env?: NodeJS.ProcessEnv): Promise<T>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare const STUDIO_PREVIEW_MARK_META = "hyperframes-studio-preview";
|
|
2
|
+
export declare const PREVIEW_SEEK_HOLD_ATTR = "data-hf-preview-seek-hold";
|
|
3
|
+
export declare const PREVIEW_VIDEO_FRAME_ATTR = "data-hf-preview-video-frame";
|
|
4
|
+
export declare const PREVIEW_VIDEO_SOURCE_ATTR = "data-hf-preview-video-source";
|
|
5
|
+
export declare const PREVIEW_VIDEO_CANVAS_ATTR = "data-hf-preview-video-canvas";
|
|
6
|
+
export declare const STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
7
|
+
export declare const PREVIEW_FOR_ANOTHER_SITE_META = "hyperframes-preview-for-another-site";
|
|
8
|
+
export declare function servedToAnotherSite(doc: Document): boolean;
|
|
9
|
+
export declare function markedForStudio(doc: Document): boolean;
|
|
10
|
+
export declare function getLogicalOpacity(el: Element, computed: CSSStyleDeclaration): string;
|
|
11
|
+
export declare const PLAYER_FRAME_ATTR = "data-hf-player-frame";
|
|
12
|
+
export declare function inPlayerFrame(doc: Document): boolean;
|
|
13
|
+
export declare function defersMediaIn(doc: Document): boolean;
|
|
14
|
+
export declare function capturePageIn(doc: Document): boolean;
|
|
15
|
+
export declare const STUDIO_PREVIEW_UPCOMING_ATTR = "data-hf-upcoming";
|
|
16
|
+
export declare const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
17
|
+
export declare const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
18
|
+
export declare const STUDIO_PREVIEW_ERROR_KINDS = "__hfPreviewErrorKinds";
|
|
19
|
+
export declare function previewConsoleErrorText(args: readonly unknown[]): string | null;
|
|
20
|
+
export declare const refusedPreviewMessage: (status: number) => string;
|
|
21
|
+
export declare function refusedPreviewStatus(message: string): number | null;
|
|
22
|
+
export declare const PREVIEW_RASTER_ATTR = "data-hf-preview-raster";
|
|
23
|
+
export declare const RUNTIME_STAMPED_ATTR = "data-hf-autostamped";
|
|
24
|
+
export declare const CLIP_HIDDEN_ATTR = "data-hf-clip-hidden";
|
|
25
|
+
export declare const STUDIO_PREVIEW_FAR_SCENE_ATTR = "data-hf-far-scene";
|
|
26
|
+
export declare const STUDIO_PREVIEW_PARKED_SCENE_ATTR = "data-hf-parked-scene";
|
|
27
|
+
export declare const PREVIEW_ONLY_ATTRS: readonly ["data-hf-preview-video-frame", "data-hf-preview-video-source", "data-hf-preview-video-canvas", "data-hf-upcoming", "data-hf-far-scene", "data-hf-parked-scene", "data-hf-preview-lazy", "data-hf-preview-raster", "data-hf-autostamped"];
|
|
28
|
+
export declare const isClipHiddenByRuntime: (el: HTMLElement) => boolean;
|
|
29
|
+
export declare function applyAuthoredTiming(el: Element, attrs: ReadonlyArray<readonly [name: string, value: string]>): void;
|
|
30
|
+
export declare function dropServiceWorkers(): Promise<void>;
|
|
31
|
+
export declare function serviceWorkerScriptFetch(headers: {
|
|
32
|
+
serviceWorker?: string | string[];
|
|
33
|
+
fetchDest?: string | string[];
|
|
34
|
+
}): boolean;
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { TimelineRequest } from "../../core/src/runtime/timelineInspection.js";
|
|
2
|
-
import { type Page } from "puppeteer-core";
|
|
2
|
+
import { type Browser, type Page } from "puppeteer-core";
|
|
3
3
|
import type { InspectRequest, Snippet } from "./types.js";
|
|
4
|
+
export declare function inspectorChromeArgs(proxyArgs: readonly string[], sandbox?: boolean): string[];
|
|
5
|
+
export declare function launchInspectorChrome(options: {
|
|
6
|
+
executablePath: string;
|
|
7
|
+
userDataDir: string;
|
|
8
|
+
proxyArgs: readonly string[];
|
|
9
|
+
sandbox?: boolean;
|
|
10
|
+
}): Promise<Browser>;
|
|
4
11
|
export interface InspectorOptions {
|
|
5
12
|
executablePath?: string;
|
|
6
13
|
idleMs?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.63",
|
|
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.9.
|
|
47
|
-
"@hyperframes/parsers": "0.9.
|
|
46
|
+
"@hyperframes/core": "0.9.63",
|
|
47
|
+
"@hyperframes/parsers": "0.9.63"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^25.0.10",
|