Build checked component artifacts and shared React session SDK (WI-09)

This commit is contained in:
Timothy J. Aveni
2026-09-21 16:01:48 -07:00
parent 24073d7f2a
commit 2cf53280e4
9 changed files with 104 additions and 5 deletions
+2
View File
@@ -104,6 +104,7 @@ export interface InstalledComponent {
readonly subject: string;
readonly url: string;
readonly exportName: string;
readonly styles: readonly string[];
readonly compatibility: ComponentArtifact["compatibility"];
readonly sharedModules: Readonly<Record<keyof ComponentArtifact["sharedModules"], string>>;
}
@@ -163,6 +164,7 @@ export async function loadExecutionInstallation(
subject: component.subject,
compatibility: component.compatibility,
exportName: component.exportName,
styles: component.files.filter((file) => file.mediaType === "text/css").map(contentArtifactUrl),
sharedModules,
url: contentArtifactUrl(component.files.find((file) => file.path === component.path)!),
});