@hyperframes/core 0.9.93 → 0.9.94

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.
@@ -214,6 +214,7 @@ export declare const HF_COLOR_GRADING_HUE_CURVE_KEYS: readonly ["hueVsHue", "hue
214
214
  export declare const HF_COLOR_GRADING_DETAIL_KEYS: readonly ["vignette", "vignetteMidpoint", "vignetteRoundness", "vignetteFeather", "grain", "grainSize", "grainRoughness"];
215
215
  export declare const HF_COLOR_GRADING_EFFECT_KEYS: readonly ["blur", "pixelate", "chromaBleed", "tapeDamage", "tapeTracking", "tapeNoise", "tapeSpeed", "filmArtifacts", "halftone", "halftoneSize", "twoInkPrint", "twoInkPrintSize", "ascii", "asciiSize", "asciiInvert", "asciiStyle", "asciiColor", "asciiRotation", "dither", "ditherSize", "bloom", "bloomRadius", "monoScreen", "monoScreenSize", "monoScreenAngle", "monoScreenSpread", "monoScreenShape", "monoScreenInvert", "scanlines", "scanlineCount", "scanlineSoftness", "chromaticAberration", "chromaticAngle", "crtCurvature", "digitalGlitch", "digitalGlitchColorSplit", "digitalGlitchLineTear", "digitalGlitchPixelate", "digitalGlitchBlockAmount", "digitalGlitchBlockDisplacement", "digitalGlitchBlockOpacity", "digitalGlitchSpeed", "engraving", "engravingSpacing", "engravingMinThickness", "engravingMaxThickness", "engravingAngle", "engravingContrast", "engravingSharpness", "engravingWave", "engravingWaveFrequency", "crosshatch", "crosshatchSpacing", "crosshatchThickness", "crosshatchAngle", "crosshatchContrast", "crosshatchEdges", "crosshatchLineWeight", "crosshatchWave", "crosshatchWaveFrequency", "kuwahara", "kuwaharaRadius", "kuwaharaSharpness", "kuwaharaSaturation"];
216
216
  export declare const HF_COLOR_GRADING_PRESETS: readonly HfColorGradingPreset[];
217
+ export declare function isHfColorGradingVariableRef(value: unknown): boolean;
217
218
  export declare const HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS: readonly ["blur", "pixelate", "chromaBleed", "tapeDamage", "filmArtifacts", "halftone", "twoInkPrint", "ascii", "dither", "bloom", "monoScreen", "scanlines", "chromaticAberration", "crtCurvature", "digitalGlitch", "engraving", "crosshatch", "kuwahara"];
218
219
  export type HfColorGradingActiveEffectKey = (typeof HF_COLOR_GRADING_ACTIVE_EFFECT_KEYS)[number];
219
220
  export declare const HF_COLOR_GRADING_EFFECT_PRESETS: HfColorGradingPreset[];
@@ -365,6 +365,9 @@ export const HF_COLOR_GRADING_PRESETS = [
365
365
  ];
366
366
  const PRESETS_BY_ID = new Map(HF_COLOR_GRADING_PRESETS.map((preset) => [preset.id, preset]));
367
367
  const VARIABLE_REF_RE = /^\$(?:\{([A-Za-z0-9_.:-]+)\}|([A-Za-z0-9_.:-]+))$/;
368
+ export function isHfColorGradingVariableRef(value) {
369
+ return typeof value === "string" && VARIABLE_REF_RE.test(value.trim());
370
+ }
368
371
  const ADJUST_LIMITS = {
369
372
  exposure: { min: -2, max: 2 },
370
373
  contrast: { min: -1, max: 1 },
@@ -1,6 +1,6 @@
1
1
  import { acceleratedCanvasTrackerSource } from "../pageMotionBlur.js";
2
2
  import { findSceneTemplate, templateContent } from "@hyperframes/parsers/sub-composition-validity";
3
- import { parseHTML } from "linkedom";
3
+ import { parseHTML } from "@hyperframes/parsers/linkedom";
4
4
  import { escapeInlineScriptSource, indexOfLower, lowerAscii, RUNTIME_BOOTSTRAP_ATTR, startsWithLower, } from "./htmlTokens.js";
5
5
  export { escapeInlineScriptSource, RUNTIME_BOOTSTRAP_ATTR };
6
6
  const RUNTIME_FILES = [
@@ -1,4 +1,4 @@
1
- import { parseHTML } from "linkedom";
1
+ import { parseHTML } from "@hyperframes/parsers/linkedom";
2
2
  function finiteAttribute(element, name) {
3
3
  const raw = element.getAttribute(name);
4
4
  if (raw === null || raw.trim() === "")
@@ -1,4 +1,4 @@
1
- import { parseHTML } from "linkedom";
1
+ import { parseHTML } from "@hyperframes/parsers/linkedom";
2
2
  import { HF_AUDIO_FX_ATTR } from "../audioFx.js";
3
3
  import { locateSceneRoot } from "./htmlDocument.js";
4
4
  export { isTemplateEntry } from "./htmlDocument.js";
@@ -2,7 +2,7 @@
2
2
  * (linkedom): unknown elements and attributes are dropped by default rather than pattern-matched
3
3
  * as dangerous, so a new SVG feature can't reopen a class of bug the way regex denylisting did.
4
4
  */
5
- import { DOMParser } from "linkedom";
5
+ import { DOMParser } from "@hyperframes/parsers/linkedom";
6
6
  import { SVG_ATTRIBUTES as SAFE_ATTRIBUTES, SVG_ELEMENTS as SAFE_ELEMENTS, } from "../utils/svgAllowlist.js";
7
7
  function localName(name) {
8
8
  const i = name.lastIndexOf(":");
@@ -1,4 +1,4 @@
1
- import { parseHTML } from "linkedom";
1
+ import { parseHTML } from "@hyperframes/parsers/linkedom";
2
2
  export type PageDocument = ReturnType<typeof parseHTML>["document"];
3
3
  export declare function readPage(html: string): PageDocument;
4
4
  /** The page's tree for a step that edits it: handed over, and no longer the page the readers share. */
@@ -1,4 +1,4 @@
1
- import { parseHTML } from "linkedom";
1
+ import { parseHTML } from "@hyperframes/parsers/linkedom";
2
2
  /** The tree of the page the font step read last, so its readers share one parse of it. */
3
3
  let lastPage;
4
4
  export function readPage(html) {