@hyperframes/core 0.8.203 → 0.8.204
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { CLIP_HIDDEN_ATTR } from "../studioPreviewMark.js";
|
|
2
|
+
export { CLIP_HIDDEN_ATTR };
|
|
3
3
|
/** Shows a clip the visibility pass hid, contents included; returns a function that puts the mark back. */
|
|
4
4
|
export declare function revealClip(el: Element & ElementCSSInlineStyle, priority?: string): () => void;
|
|
5
5
|
/** Called by shader-transitions builds on load: their revealers go through revealClip. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { CLIP_HIDDEN_ATTR } from "../studioPreviewMark.js";
|
|
2
|
+
export { CLIP_HIDDEN_ATTR };
|
|
3
3
|
/** Shows a clip the visibility pass hid, contents included; returns a function that puts the mark back. */
|
|
4
4
|
export function revealClip(el, priority = "") {
|
|
5
5
|
el.style.setProperty("visibility", "visible", priority);
|
|
@@ -5,7 +5,9 @@ export declare const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
|
5
5
|
export declare const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
6
6
|
export declare const PREVIEW_RASTER_ATTR = "data-hf-preview-raster";
|
|
7
7
|
export declare const RUNTIME_STAMPED_ATTR = "data-hf-autostamped";
|
|
8
|
+
export declare const CLIP_HIDDEN_ATTR = "data-hf-clip-hidden";
|
|
8
9
|
export declare const STUDIO_PREVIEW_FAR_SCENE_ATTR = "data-hf-far-scene";
|
|
9
10
|
export declare const STUDIO_PREVIEW_PARKED_SCENE_ATTR = "data-hf-parked-scene";
|
|
10
11
|
export declare const PREVIEW_ONLY_ATTRS: readonly ["data-hf-upcoming", "data-hf-far-scene", "data-hf-parked-scene", "data-hf-preview-lazy", "data-hf-preview-raster", "data-hf-autostamped"];
|
|
12
|
+
export declare const isClipHiddenByRuntime: (el: HTMLElement) => boolean;
|
|
11
13
|
export declare function applyAuthoredTiming(el: Element, attrs: ReadonlyArray<readonly [name: string, value: string]>): void;
|
|
@@ -5,6 +5,7 @@ export const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
|
|
|
5
5
|
export const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
|
|
6
6
|
export const PREVIEW_RASTER_ATTR = "data-hf-preview-raster";
|
|
7
7
|
export const RUNTIME_STAMPED_ATTR = "data-hf-autostamped";
|
|
8
|
+
export const CLIP_HIDDEN_ATTR = "data-hf-clip-hidden";
|
|
8
9
|
export const STUDIO_PREVIEW_FAR_SCENE_ATTR = "data-hf-far-scene";
|
|
9
10
|
export const STUDIO_PREVIEW_PARKED_SCENE_ATTR = "data-hf-parked-scene";
|
|
10
11
|
export const PREVIEW_ONLY_ATTRS = [
|
|
@@ -15,6 +16,7 @@ export const PREVIEW_ONLY_ATTRS = [
|
|
|
15
16
|
PREVIEW_RASTER_ATTR,
|
|
16
17
|
RUNTIME_STAMPED_ATTR,
|
|
17
18
|
];
|
|
19
|
+
export const isClipHiddenByRuntime = (el) => el.hasAttribute(CLIP_HIDDEN_ATTR) && el.style.visibility === "hidden";
|
|
18
20
|
export function applyAuthoredTiming(el, attrs) {
|
|
19
21
|
for (const [name, value] of attrs)
|
|
20
22
|
el.setAttribute(name, value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.204",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -401,9 +401,9 @@
|
|
|
401
401
|
"linkedom": "^0.18.12",
|
|
402
402
|
"postcss": "^8.5.8",
|
|
403
403
|
"wawoff2": "^2.0.1",
|
|
404
|
-
"@hyperframes/
|
|
405
|
-
"@hyperframes/
|
|
406
|
-
"@hyperframes/
|
|
404
|
+
"@hyperframes/lint": "0.8.204",
|
|
405
|
+
"@hyperframes/parsers": "0.8.204",
|
|
406
|
+
"@hyperframes/studio-server": "0.8.204"
|
|
407
407
|
},
|
|
408
408
|
"devDependencies": {
|
|
409
409
|
"@fontsource/archivo-black": "^5.2.8",
|