@hyperframes/inspector 0.9.63 → 0.9.65
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/service.js +84 -26
- package/dist/types/core/src/compiler/compositionScoping.d.ts +2 -0
- package/dist/types/core/src/compiler/inlineSubCompositions.d.ts +5 -0
- package/dist/types/core/src/runtime/types.d.ts +4 -2
- package/dist/types/core/src/studioPreviewMark.d.ts +8 -0
- package/package.json +3 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
type ScopeOptions = {
|
|
2
2
|
compoundAuthoredRoot?: boolean;
|
|
3
3
|
scopeRootSelectors?: boolean;
|
|
4
|
+
/** Told the sheet's size, an upper bound for each rule before it is scoped, then the correction. */
|
|
5
|
+
charge?: (bytes: number) => void;
|
|
4
6
|
};
|
|
5
7
|
export declare function scopeCssToComposition(css: string, compositionId: string, scopeSelectorOverride?: string, authoredRootId?: string | null, options?: ScopeOptions): string;
|
|
6
8
|
/** `scopeCssToComposition` for sheets mounted many times: each sheet is scoped once around a
|
|
@@ -100,6 +100,11 @@ export interface InlineSubCompositionsOptions {
|
|
|
100
100
|
/** Tag each top-level host with `data-hf-scene` and report every part's scene, for preview swaps. */
|
|
101
101
|
tagScenes?: boolean;
|
|
102
102
|
readProjectScript?: (path: string) => string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Told the size of each script and stylesheet generated for a mount: each wrapped script once
|
|
105
|
+
* built, and each scoped sheet rule by rule as `scopeCssToComposition` reports it. May throw.
|
|
106
|
+
*/
|
|
107
|
+
chargeEmitted?: (srcPath: string, bytes: number) => void;
|
|
103
108
|
}
|
|
104
109
|
export interface ExternalLink {
|
|
105
110
|
href: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { HfColorGradingTarget } from "../colorGrading.js";
|
|
2
|
+
import type { PreviewTarget } from "../studioPreviewMark.js";
|
|
2
3
|
import type { RuntimeAnalyticsEvent } from "./analytics.js";
|
|
3
4
|
import type { AudioFades } from "../audioFade.js";
|
|
4
5
|
import type { RateSpec } from "../speedRamp.js";
|
|
@@ -9,7 +10,7 @@ export type RuntimeJson = string | number | boolean | null | RuntimeJson[] | {
|
|
|
9
10
|
import type { HyperframeControlAction } from "../inline-scripts/runtimeContract.js";
|
|
10
11
|
import type { HyperframePickerElementInfo } from "../inline-scripts/pickerApi.js";
|
|
11
12
|
import type { RuntimeProtocolV1 } from "./protocol.js";
|
|
12
|
-
type RuntimeBridgeControlActionBase = HyperframeControlAction | "tick" | "set-volume" | "set-media-output-muted" | "set-native-media-sync-disabled" | "set-web-audio-media-disabled" | "set-idle-heartbeat" | "set-display-scale" | "set-preview-quality" | "set-copies-ahead" | "retry-preview-copies" | "request-preview-facts" | "set-root-duration" | "set-play-range" | "stop-media" | "flash-elements";
|
|
13
|
+
type RuntimeBridgeControlActionBase = HyperframeControlAction | "tick" | "set-volume" | "set-media-output-muted" | "set-native-media-sync-disabled" | "set-web-audio-media-disabled" | "set-idle-heartbeat" | "set-display-scale" | "set-preview-quality" | "set-copies-ahead" | "retry-preview-copies" | "request-preview-facts" | "set-root-duration" | "set-play-range" | "stop-media" | "flash-elements" | "scrub-audio";
|
|
13
14
|
type RuntimeBridgeControlMessageBase = {
|
|
14
15
|
source: "hf-parent";
|
|
15
16
|
type: "control";
|
|
@@ -27,7 +28,8 @@ type RuntimeBridgeControlMessageBase = {
|
|
|
27
28
|
level?: number;
|
|
28
29
|
on?: boolean;
|
|
29
30
|
playbackRate?: number;
|
|
30
|
-
target?: HfColorGradingTarget | string | null;
|
|
31
|
+
target?: HfColorGradingTarget | PreviewTarget | string | null;
|
|
32
|
+
time?: number | null;
|
|
31
33
|
grading?: RuntimeJson;
|
|
32
34
|
compare?: RuntimeJson;
|
|
33
35
|
seekMode?: "drag" | "commit";
|
|
@@ -32,3 +32,11 @@ export declare function serviceWorkerScriptFetch(headers: {
|
|
|
32
32
|
serviceWorker?: string | string[];
|
|
33
33
|
fetchDest?: string | string[];
|
|
34
34
|
}): boolean;
|
|
35
|
+
export interface PreviewTarget {
|
|
36
|
+
hfId?: string;
|
|
37
|
+
domId?: string;
|
|
38
|
+
id: string;
|
|
39
|
+
sourceFile?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare function previewElementSourceFile(el: Element): string | undefined;
|
|
42
|
+
export declare function previewElementFinder(doc: Document, selector?: string): (target: PreviewTarget) => Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.65",
|
|
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.65",
|
|
47
|
+
"@hyperframes/parsers": "0.9.65"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "^25.0.10",
|