Files
hyperframes/packages/core/src/variables.ts
T
Akshar Patel 04df17cccb fix(sdk): keep font and image declarations after object edits (#6281)
* fix(sdk): preserve font and image declarations after object edits

* fix(studio): preserve variable object defaults when editing declarations

* fix(studio): show font and image values in bind warnings
2026-10-25 23:01:32 +00:00

38 lines
1.1 KiB
TypeScript

/**
* Browser-safe variables entry (`@hyperframes/core/variables`) — the complete
* composition-variables surface in one import: schema types, the declaration
* parser, runtime value resolution, and value validation. Deliberately free of
* the Node-only modules reachable from the core/parsers root entries, so
* browser consumers (SDK, Studio, embedders) can bundle it.
*/
export type {
CompositionVariable,
CompositionVariableType,
CompositionVariableBase,
StringVariable,
NumberVariable,
ColorVariable,
BooleanVariable,
EnumVariable,
FontVariable,
FontValue,
ImageVariable,
ImageValue,
} from "@hyperframes/parsers/composition";
export {
COMPOSITION_VARIABLE_TYPES,
parseCompositionVariables,
isCompositionVariable,
isScalarVariableValue,
scanVariableUsage,
} from "@hyperframes/parsers/composition";
export type { VariableUsageScan } from "@hyperframes/parsers/composition";
export { getVariables, readDeclaredDefaults } from "./runtime/getVariables.js";
export {
validateVariables,
formatVariableValidationIssue,
type VariableValidationIssue,
} from "./runtime/validateVariables.js";