feat: add semantic CSS stylesheets (#3274)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
Amruth Pillai
2026-07-30 12:39:15 +02:00
committed by GitHub
co-authored by Cursor Agent
parent 4ac19f81b3
commit d2ffbf9618
320 changed files with 78393 additions and 2915 deletions
+47
View File
@@ -0,0 +1,47 @@
import type { ResumeData } from "@reactive-resume/schema/resume/data";
import type { StylesheetMode, StylesheetSource } from "@reactive-resume/schema/resume/stylesheet";
import type { Template } from "@reactive-resume/schema/templates";
import type { ResolvedResumeRuntime } from "./resolve";
import { resolveResumeRuntime, resolveStylesheetMode } from "./resolve";
export type InspectResumePdfOptions = {
data: ResumeData;
template?: Template | undefined;
applied?: StylesheetSource | undefined;
mode?: StylesheetMode | undefined;
};
export type ResumePdfRenderResult<T> =
| { ok: true; value: T; diagnostics: ResolvedResumeRuntime["diagnostics"] }
| { ok: false; diagnostics: ResolvedResumeRuntime["diagnostics"] };
export const inspectResumePdf = ({
data,
template = data.metadata.template,
applied,
mode = resolveStylesheetMode(data),
}: InspectResumePdfOptions): ResolvedResumeRuntime =>
resolveResumeRuntime({
data,
template,
mode,
...(applied ? { applied } : {}),
});
export const hasSemanticErrors = ({ diagnostics }: Pick<ResolvedResumeRuntime, "diagnostics">): boolean =>
diagnostics.some(({ severity }) => severity === "error");
export type {
ResolvedResumeRuntime,
ResolveResumePresentationInput,
} from "./resolve";
export * from "./legacy-converter";
export * from "./legacy-parity";
export * from "./preflight-core";
export * from "./public-projection";
export {
resolveResumePresentation,
resolveResumeRuntime,
resolveStylesheetMode,
} from "./resolve";
export * from "./tree";