1.4.0 • Published 6 months ago
@magnolia/template-annotations v1.4.0
Magnolia Template Annotations
Magnolia Template Annotations help making front-end projects editable in Magnolia. It does so by injecting annotations (HTML comments) around your components, which Magnolia's Page Editor transforms into controls for content editors.
Installation
npm install --save @magnolia/template-annotations
Usage
To use TemplateAnnotations, you need to import it:
import { TemplateAnnotations } from '@magnolia/template-annotations';
TemplateAnnotations module provides these functions:
function getAreaCommentString(data: object, templateDefinition: object, componentCount?: number): string;
function getComponentCommentString(data: object, templateDefinition: object): string;
function getPageCommentString(data: object, templateDefinition: object): string;
Changelog
See the CHANGELOG.md file.
1.4.0
10 months ago
1.4.1-experimental.1
6 months ago
1.4.1-experimental.2
6 months ago
1.3.2
1 year ago
1.3.1
2 years ago
1.2.1-beta
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.2.0-beta
2 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.1.0-beta2
3 years ago
1.1.0-beta
3 years ago
1.0.6
3 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
1.0.0-beta1
4 years ago