Build checked component artifacts and shared React session SDK (WI-09)
This commit is contained in:
@@ -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)!),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user