@dosgato/templating
Advanced tools
Comparing version 0.0.40 to 0.0.41
@@ -234,6 +234,5 @@ import { ResourceProvider } from './provider.js'; | ||
} | ||
export interface RenderedComponent { | ||
inherited: boolean; | ||
export interface RenderedComponent<C extends Component = Component> { | ||
component: C; | ||
html: string; | ||
editbar: string; | ||
} | ||
@@ -240,0 +239,0 @@ export declare abstract class Page<DataType extends PageData = any, FetchedType = any, RenderContextType extends ContextBase = any> extends Component<DataType, FetchedType, RenderContextType> { |
@@ -97,3 +97,3 @@ import { isNotBlank } from 'txstate-utils'; | ||
renderComponents(components = [], opts) { | ||
return components.flatMap(c => c.inherited && opts?.hideInheritBars ? [c.html] : [c.editbar, c.html]).join(''); | ||
return components.flatMap(c => c.component.inheritedFrom && opts?.hideInheritBars ? [c.html] : [c.component.editBar(), c.html]).join(''); | ||
} | ||
@@ -100,0 +100,0 @@ /** |
{ | ||
"name": "@dosgato/templating", | ||
"version": "0.0.40", | ||
"version": "0.0.41", | ||
"description": "A library to support building templates for dosgato CMS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52116
1178