@hyperframes/core 0.8.146 → 0.8.148

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.
@@ -3,4 +3,6 @@ export declare const STUDIO_PREVIEW_UPCOMING_ATTR = "data-hf-upcoming";
3
3
  export declare const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
4
4
  export declare const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
5
5
  export declare const PREVIEW_RASTER_ATTR = "data-hf-preview-raster";
6
- export declare const PREVIEW_ONLY_ATTRS: readonly ["data-hf-upcoming", "data-hf-preview-lazy", "data-hf-preview-raster"];
6
+ export declare const RUNTIME_STAMPED_ATTR = "data-hf-autostamped";
7
+ export declare const PREVIEW_ONLY_ATTRS: readonly ["data-hf-upcoming", "data-hf-preview-lazy", "data-hf-preview-raster", "data-hf-autostamped"];
8
+ export declare function applyAuthoredTiming(el: Element, attrs: ReadonlyArray<readonly [name: string, value: string]>): void;
@@ -3,8 +3,15 @@ export const STUDIO_PREVIEW_UPCOMING_ATTR = "data-hf-upcoming";
3
3
  export const STUDIO_PREVIEW_LAZY_ATTR = "data-hf-preview-lazy";
4
4
  export const STUDIO_PREVIEW_ERRORS = "__hfPreviewErrors";
5
5
  export const PREVIEW_RASTER_ATTR = "data-hf-preview-raster";
6
+ export const RUNTIME_STAMPED_ATTR = "data-hf-autostamped";
6
7
  export const PREVIEW_ONLY_ATTRS = [
7
8
  STUDIO_PREVIEW_UPCOMING_ATTR,
8
9
  STUDIO_PREVIEW_LAZY_ATTR,
9
10
  PREVIEW_RASTER_ATTR,
11
+ RUNTIME_STAMPED_ATTR,
10
12
  ];
13
+ export function applyAuthoredTiming(el, attrs) {
14
+ for (const [name, value] of attrs)
15
+ el.setAttribute(name, value);
16
+ el.removeAttribute(RUNTIME_STAMPED_ATTR);
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/core",
3
- "version": "0.8.146",
3
+ "version": "0.8.148",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -366,9 +366,9 @@
366
366
  "linkedom": "^0.18.12",
367
367
  "postcss": "^8.5.8",
368
368
  "wawoff2": "^2.0.1",
369
- "@hyperframes/lint": "0.8.146",
370
- "@hyperframes/parsers": "0.8.146",
371
- "@hyperframes/studio-server": "0.8.146"
369
+ "@hyperframes/studio-server": "0.8.148",
370
+ "@hyperframes/parsers": "0.8.148",
371
+ "@hyperframes/lint": "0.8.148"
372
372
  },
373
373
  "devDependencies": {
374
374
  "@fontsource/archivo-black": "^5.2.8",