phase-6: add registry-driven dynamic page-section-widget rendering engine
This commit is contained in:
20
src/app/widgets/contracts/widget-component.contract.ts
Normal file
20
src/app/widgets/contracts/widget-component.contract.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { Type } from '@angular/core';
|
||||
|
||||
export interface WidgetRenderContext {
|
||||
pageId: string;
|
||||
sectionId: string;
|
||||
locale?: string;
|
||||
}
|
||||
|
||||
export interface RegisteredWidget {
|
||||
type: string;
|
||||
version: string;
|
||||
component: Type<unknown>;
|
||||
}
|
||||
|
||||
export interface ResolvedWidget {
|
||||
type: string;
|
||||
version: string;
|
||||
component: Type<unknown>;
|
||||
props: Record<string, unknown>;
|
||||
}
|
||||
Reference in New Issue
Block a user