@memberjunction/react-runtime
Version:
Platform-agnostic React component runtime for MemberJunction. Provides core compilation, registry, and execution capabilities for React components in any JavaScript environment.
24 lines • 1 kB
TypeScript
import { ComponentRegistry } from './component-registry';
import { ComponentSpec } from '@memberjunction/interactive-component-types';
export interface ResolvedComponents {
[componentName: string]: any;
}
export declare class ComponentResolver {
private registry;
constructor(registry: ComponentRegistry);
resolveComponents(spec: ComponentSpec, namespace?: string): ResolvedComponents;
private resolveComponentHierarchy;
validateDependencies(spec: ComponentSpec, namespace?: string): string[];
private checkDependencies;
getDependencyGraph(spec: ComponentSpec): Map<string, string[]>;
private buildDependencyGraph;
getLoadOrder(spec: ComponentSpec): string[];
private topologicalSortDFS;
resolveInOrder(spec: ComponentSpec, namespace?: string): Array<{
name: string;
component: any;
}>;
flattenComponentSpecs(spec: ComponentSpec): ComponentSpec[];
private collectComponentSpecs;
}
//# sourceMappingURL=component-resolver.d.ts.map