@hyperframes/core 0.8.169 → 0.8.171

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,7 @@
1
1
  export declare const SCENE_PART_ATTR = "data-hf-scene";
2
2
  export declare const SCENE_PARTS_META = "hf-scene-parts";
3
+ export declare const SCENE_FONTS_ATTR = "data-hf-scene-fonts";
4
+ export declare const fontFaceBlocks: (css: string) => string[];
3
5
  /** On a scene's top-level host: why the scene cannot be swapped in place, so edits to it reload. */
4
6
  export declare const SCENE_NO_SWAP_ATTR = "data-hf-scene-no-swap";
5
7
  /** Hashes of one preview document: everything outside the scene parts, and each scene's parts. */
@@ -1,4 +1,6 @@
1
1
  export const SCENE_PART_ATTR = "data-hf-scene";
2
2
  export const SCENE_PARTS_META = "hf-scene-parts";
3
+ export const SCENE_FONTS_ATTR = "data-hf-scene-fonts";
4
+ export const fontFaceBlocks = (css) => css.match(/@font-face\s*\{[^}]*\}/gi) ?? [];
3
5
  /** On a scene's top-level host: why the scene cannot be swapped in place, so edits to it reload. */
4
6
  export const SCENE_NO_SWAP_ATTR = "data-hf-scene-no-swap";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/core",
3
- "version": "0.8.169",
3
+ "version": "0.8.171",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -381,9 +381,9 @@
381
381
  "linkedom": "^0.18.12",
382
382
  "postcss": "^8.5.8",
383
383
  "wawoff2": "^2.0.1",
384
- "@hyperframes/lint": "0.8.169",
385
- "@hyperframes/parsers": "0.8.169",
386
- "@hyperframes/studio-server": "0.8.169"
384
+ "@hyperframes/lint": "0.8.171",
385
+ "@hyperframes/studio-server": "0.8.171",
386
+ "@hyperframes/parsers": "0.8.171"
387
387
  },
388
388
  "devDependencies": {
389
389
  "@fontsource/archivo-black": "^5.2.8",