diff --git a/packages/core/src/lib/registry.ts b/packages/core/src/lib/registry.ts index 3655976d..1541fba3 100644 --- a/packages/core/src/lib/registry.ts +++ b/packages/core/src/lib/registry.ts @@ -118,7 +118,10 @@ export function getPreviewStyles() { /** * Preview Templates */ -export function registerPreviewTemplate(name: string, component: TemplatePreviewComponent) { +export function registerPreviewTemplate( + name: string, + component: TemplatePreviewComponent, +) { registry.templates[name] = component as TemplatePreviewComponent; } @@ -129,7 +132,10 @@ export function getPreviewTemplate(name: string): TemplatePreviewComponent(name: string, component: TemplatePreviewCardComponent) { +export function registerPreviewCard( + name: string, + component: TemplatePreviewCardComponent, +) { registry.cards[name] = component as TemplatePreviewCardComponent; }