@hyperframes/core 0.9.22 → 0.9.25
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.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { RuntimeTimelineClipIdentity } from "./runtime/types.js";
|
|
1
|
+
export type { PlaybackHeldBy, RuntimeTimelineClipIdentity } from "./runtime/types.js";
|
|
2
2
|
export type { ExecutionMode, Orientation, Asset, TimelineElement, TimelineElementBase, TimelineMediaElement, TimelineTextElement, TimelineCompositionElement, TimelineElementType, MediaElementType, CanvasResolution, Fps, FpsInput, FpsParseResult, MediaFile, CompositionAPI, PlayerAPI, AddElementData, ValidationResult, CompositionAsset, Keyframe, KeyframeProperties, ElementKeyframes, StageZoom, StageZoomKeyframe, CompositionVariableType, CompositionVariableBase, StringVariable, NumberVariable, ColorVariable, BooleanVariable, EnumVariable, CompositionVariable, CompositionSpec, WaveformData, OutputResolutionCompatibility, OutputResolutionIssueKind, } from "./core.types.js";
|
|
3
3
|
export type { SlideshowManifest, SlideRef, SlideHotspot, SlideSequence, ResolvedSlide, ResolvedSlideSequence, ResolvedSlideshow, } from "./slideshow/index.js";
|
|
4
4
|
export { parseSlideshowManifest, resolveSlideshow } from "./slideshow/index.js";
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -229,6 +229,13 @@ export type RuntimePreviewCopiesMessage = {
|
|
|
229
229
|
error: string | null;
|
|
230
230
|
} | null;
|
|
231
231
|
};
|
|
232
|
+
export type FetchNotSeenToStart = null;
|
|
233
|
+
export type PlaybackHeldBy = {
|
|
234
|
+
kind: "audio" | "video";
|
|
235
|
+
readyState: number;
|
|
236
|
+
networkState: number;
|
|
237
|
+
fetchMs: number | FetchNotSeenToStart;
|
|
238
|
+
};
|
|
232
239
|
export type RuntimePreviewHealthMessage = {
|
|
233
240
|
source: "hf-preview";
|
|
234
241
|
type: "preview-health";
|
|
@@ -245,6 +252,7 @@ export type RuntimePreviewHealthMessage = {
|
|
|
245
252
|
gapP50Ms: number;
|
|
246
253
|
gapP95Ms: number;
|
|
247
254
|
clockSource: "audio" | "webaudio" | "monotonic";
|
|
255
|
+
heldBy: PlaybackHeldBy | null;
|
|
248
256
|
mode: "play";
|
|
249
257
|
} | null;
|
|
250
258
|
};
|
|
@@ -7,6 +7,7 @@ export declare const STUDIO_PREVIEW_CAPTURE_MODE = "capture";
|
|
|
7
7
|
export declare const PLAYER_FRAME_ATTR = "data-hf-player-frame";
|
|
8
8
|
export declare function inPlayerFrame(doc: Document): boolean;
|
|
9
9
|
export declare function defersMediaIn(doc: Document): boolean;
|
|
10
|
+
export declare function capturePageIn(doc: Document): boolean;
|
|
10
11
|
export declare const STUDIO_PREVIEW_UPCOMING_ATTR = "data-hf-upcoming";
|
|
11
12
|
export declare const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
12
13
|
export declare const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
@@ -12,6 +12,10 @@ export function inPlayerFrame(doc) {
|
|
|
12
12
|
export function defersMediaIn(doc) {
|
|
13
13
|
return (doc.querySelector(`meta[name="${STUDIO_PREVIEW_MARK_META}"]`) !== null || inPlayerFrame(doc));
|
|
14
14
|
}
|
|
15
|
+
export function capturePageIn(doc) {
|
|
16
|
+
return (doc.querySelector(`meta[name="${STUDIO_PREVIEW_MARK_META}"]`)?.getAttribute("content") ===
|
|
17
|
+
STUDIO_PREVIEW_CAPTURE_MODE);
|
|
18
|
+
}
|
|
15
19
|
export const STUDIO_PREVIEW_UPCOMING_ATTR = "data-hf-upcoming";
|
|
16
20
|
export const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
17
21
|
export const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -437,9 +437,9 @@
|
|
|
437
437
|
"linkedom": "^0.18.12",
|
|
438
438
|
"postcss": "^8.5.8",
|
|
439
439
|
"wawoff2": "^2.0.1",
|
|
440
|
-
"@hyperframes/lint": "0.9.
|
|
441
|
-
"@hyperframes/
|
|
442
|
-
"@hyperframes/
|
|
440
|
+
"@hyperframes/lint": "0.9.25",
|
|
441
|
+
"@hyperframes/parsers": "0.9.25",
|
|
442
|
+
"@hyperframes/studio-server": "0.9.25"
|
|
443
443
|
},
|
|
444
444
|
"devDependencies": {
|
|
445
445
|
"@fontsource/archivo-black": "^5.2.8",
|