@hyperframes/inspector 0.8.156 → 0.8.157
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/inspection.js +42 -14
- package/dist/live.js +385 -44
- package/dist/service.js +484 -87
- package/dist/types/core/src/runtime/inspectionTypes.d.ts +1 -0
- package/dist/types/core/src/runtime/timelineValues.d.ts +1 -1
- package/dist/types/inspector/src/authoredState.d.ts +3 -0
- package/dist/types/inspector/src/elementMap.d.ts +2 -0
- package/dist/types/inspector/src/engine.d.ts +2 -1
- package/dist/types/inspector/src/pageQueries.d.ts +1 -0
- package/dist/types/inspector/src/sources.d.ts +17 -9
- package/package.json +3 -3
|
@@ -12,4 +12,4 @@ export interface AnimationValues {
|
|
|
12
12
|
ease: DeclaredValue;
|
|
13
13
|
}
|
|
14
14
|
/** Authored endpoints, never sampled values or inferred previous-tween state. */
|
|
15
|
-
export declare function animationValues(vars: Record<string, unknown>, properties: string[]): AnimationValues;
|
|
15
|
+
export declare function animationValues(vars: Record<string, unknown>, properties: string[], keyframesEase?: unknown): AnimationValues;
|
|
@@ -13,8 +13,10 @@ export interface ElementNode {
|
|
|
13
13
|
text: string;
|
|
14
14
|
media: string | null;
|
|
15
15
|
relative: string;
|
|
16
|
+
position: number;
|
|
16
17
|
groupSelector: string;
|
|
17
18
|
siblingMatchCount: number;
|
|
19
|
+
generated?: boolean;
|
|
18
20
|
children: number[];
|
|
19
21
|
}
|
|
20
22
|
export interface ElementDom {
|
|
@@ -2,7 +2,7 @@ import type { TimelineRequest } from "../../core/src/runtime/timelineInspection.
|
|
|
2
2
|
import { type ElementMap } from "./elementMap.js";
|
|
3
3
|
import { mapInspection } from "./mapInspection.js";
|
|
4
4
|
import { type PageRunner } from "./pageQueries.js";
|
|
5
|
-
import type { Sources } from "./sources.js";
|
|
5
|
+
import type { AuthoredHtml, Sources } from "./sources.js";
|
|
6
6
|
import { type TimelineReport } from "./timelineReport.js";
|
|
7
7
|
import type { InspectRequest, Snippet } from "./types.js";
|
|
8
8
|
export interface SourceContext {
|
|
@@ -14,6 +14,7 @@ export interface InspectionView {
|
|
|
14
14
|
readonly sourceVersion: string;
|
|
15
15
|
readonly pageGeneration?: string;
|
|
16
16
|
sourceContext(): SourceContext;
|
|
17
|
+
authoredHtml?(): AuthoredHtml;
|
|
17
18
|
assertCurrent(): Promise<void>;
|
|
18
19
|
}
|
|
19
20
|
export type ComponentReport = ReturnType<typeof mapInspection>;
|
|
@@ -6,6 +6,7 @@ export interface PageRunner {
|
|
|
6
6
|
export interface PageTimeline extends TimelineRuntimeResult {
|
|
7
7
|
following: TimelineEvent[];
|
|
8
8
|
generation: string | null;
|
|
9
|
+
duration?: number;
|
|
9
10
|
}
|
|
10
11
|
export interface PageRuntimeResponse extends RuntimeResponse {
|
|
11
12
|
generation: string | null;
|
|
@@ -17,6 +17,22 @@ interface SourceFile {
|
|
|
17
17
|
lines: number[];
|
|
18
18
|
}
|
|
19
19
|
export declare function fingerprint(project: string): string;
|
|
20
|
+
export interface HtmlTag {
|
|
21
|
+
file: string;
|
|
22
|
+
start: number;
|
|
23
|
+
end: number;
|
|
24
|
+
id?: string;
|
|
25
|
+
hfId?: string;
|
|
26
|
+
classes: string[];
|
|
27
|
+
tag: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AuthoredHtml {
|
|
30
|
+
files: Map<string, {
|
|
31
|
+
text: string;
|
|
32
|
+
}>;
|
|
33
|
+
htmlTags: HtmlTag[];
|
|
34
|
+
}
|
|
35
|
+
export declare function authoredHtml(project: string): AuthoredHtml;
|
|
20
36
|
export declare class Sources {
|
|
21
37
|
readonly project: string;
|
|
22
38
|
readonly files: Map<string, SourceFile>;
|
|
@@ -28,15 +44,7 @@ export declare class Sources {
|
|
|
28
44
|
start: number;
|
|
29
45
|
end: number;
|
|
30
46
|
}[];
|
|
31
|
-
readonly htmlTags:
|
|
32
|
-
file: string;
|
|
33
|
-
start: number;
|
|
34
|
-
end: number;
|
|
35
|
-
id?: string;
|
|
36
|
-
hfId?: string;
|
|
37
|
-
classes: string[];
|
|
38
|
-
tag: string;
|
|
39
|
-
}[];
|
|
47
|
+
readonly htmlTags: HtmlTag[];
|
|
40
48
|
constructor(project: string);
|
|
41
49
|
private addChunk;
|
|
42
50
|
private addCss;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/inspector",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.157",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/heygen-com/hyperframes",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"eslint-scope": "^9.1.2",
|
|
43
43
|
"postcss": "^8.5.8",
|
|
44
44
|
"puppeteer-core": "^25.8.0",
|
|
45
|
-
"@hyperframes/
|
|
46
|
-
"@hyperframes/
|
|
45
|
+
"@hyperframes/parsers": "0.8.157",
|
|
46
|
+
"@hyperframes/core": "0.8.157"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^25.0.10",
|