Files
hyperframes/packages/parsers/src/composition.ts
T
Miguel Ángel f312fca7e2 feat(producer): fail a render whose variables the page does not declare (#7548)
* feat(producer): fail a render whose variables the page does not declare

* chore(producer): keep the comment share and the dead-code audit clean for the variables check
2026-11-11 08:46:13 +00:00

29 lines
1.0 KiB
TypeScript

// Pure, browser-safe composition primitives (data types, font aliases, URL
// helper). Recast/linkedom-free, so browser consumers (e.g. the lint rule
// engine via @hyperframes/lint/browser) can import these without pulling the
// GSAP/HTML parser machinery from the main entry.
export * from "./types.js";
export {
FONT_ALIAS_MAP,
FONT_ALIAS_KEYS,
CANONICAL_FONT_DISPLAY_NAMES,
resolveAliasDisplayName,
} from "./fontAliases.js";
export { fontShorthandFamilies, parseFontShorthand } from "./fontShorthand.js";
export { decodeUrlPathVariants } from "./utils/urlPath.js";
export {
parseCompositionVariables,
readCompositionVariables,
type ReadCompositionVariables,
isCompositionVariable,
isFontValue,
isImageValue,
isScalarVariableValue,
isSafeMediaUrl,
} from "./compositionVariables.js";
export { scanVariableUsage, type VariableUsageScan } from "./variableUsage.js";
export * from "./compositionContract.js";
export * from "./canvasScaffoldPatterns.js";
export { extractMediaSrcMutations, type MediaSrcMutation } from "./mediaSrcMutation.js";