Release Notes / Version 10.2104
Table Of ContentsThe Bricks have been split up into two categories. We now distinct between API Bricks and example bricks to showcase the use of API Bricks.
The bricks in
frontend/lib/bricks
provide a stable API and are maintained as such. They focus on stability and customizability. For more information consult the Frontend Developer Manual.
Example Bricks are contained in the
frontend/bricks
folder and serve as an example to show how frontend features can be implemented in the
Frontend Workspace
. As this is the folder where your own bricks reside they are prefixed with "example-" to avoid naming clashes. In NPM the example bricks (and all our themes) now use the custom scope "@coremedia-examples" to have a clear separation between API packages and examples. Examples can be changed or removed in new releases without prior notice. In order to use example bricks in your theme you need to create a copy and rename them accordingly.
Templates and styling for special banner variants that were part of the calista theme have been consolidated and transformed into example-bricks. They no longer rely on bootstrap but utilize CSS flexbox layouts.
Newly introduced banner variants are
left-right-banner
and
square-banner
.
Every banner variant still depends on the brick
default-teaser
as API and uses its Freemarker macros to showcase different configuration options. Every brick provides styling and templates, specifies image crops for different breakpoints and a grid to be as independent as possible.
As part of our examples we introduced new example brick
navigation
that does not require bootstrap in order to be functional. It provides the same functionality as the bootstrap implementation.
The package
@coremedia/slick-carouselis now considered an API brick and was renamed to@coremedia/brick-slick-carouselaccordingly. It was moved fromlib/helperstolib/bricks.Please adjust your theme dependencies accordingly
Freemarker import statements also need to be adjusted to reflect the new name of the brick
Adjustments in
default-teaserbrickRenamed
CMPlaceholder.asTeaser.ftltoCMPlaceholder.teaser.ftlso banner variants created with thedefault-teaserbrick will automatically benefit from it.Removed
CMGallery.asTeaser.ftlas it has only added the CSS classcm-teasable--galleryto templates. Feel free to readd the template in your themes if you need special styling based on this CSS class.Container.asPlacement.ftlandContainer.asTeaser.ftlnow have to be provided by the theme to define which banner is to be used as the default implementation if no layout variant is set (please check our example themes for an implementation if you did not yet have an own version of these templates). The intention is to decouple the way the pagegrid is setup from the generic API contained in thedefault-teaserbrick that helps rendering banners.
Removed
generic-templatesbrickMoved basic templates and styles for page rendering to new API brick
page. Make sure to add a dependency to your theme if you have used the templates.Moved
*.asLink.ftlandNavigation.asBreadcrumb.ftltonavigationbrick.Moved
CMHTML.asFooter.ftltofooterbrick.Moved
CMTeasable.asListItem.ftltoelastic-socialbrick.Moved generic
cm-richtextstyling tosass-utilspackage.Moved
CMTeasable.asRichtextEmbed.ftlandCMPicture.asRichtextEmbed.ftlto a new example brickrichtext-embed.Moved
PageGrid.ftlandPageGridPlacement.ftlto our example themes. The fallback in the common view repository in the maven modulecae-base-libremains. If you have made use of the templates you need to copy them to your themes (e.g. from the version you migrated from).If you are using the templates and stylings of the
detailbrick make sure that you now have an explicit dependency in your themes as it was previously automatically included by thegeneric-templatesbrick.
The
mediabrick now contains the@coremedia/js-responsive-imagespackage. The@coremedia/js-responsive-imagespackage has been removed.
The package
@coremedia/brick-360-spinneris now considered an example brick and was renamed to@coremedia-examples/brick-360-spinner. It was moved fromlib/brickstobricks. Additionally, the@coremedia/js-360-spinnerpackage was integrated into the@coremedia-examples/brick-360-spinnerpackage. The@coremedia/js-360-spinnerpackage has been removed.
The package
@coremedia/brick-detailis now considered an example brick and was renamed to@coremedia-examples/brick-detail. It was moved fromlib/brickstobricks.The default value for "relatedView" is now "asRelated" in all templates
The package
@coremedia/brick-download-portalis now considered an example brick and was renamed to@coremedia-examples/brick-download-portal. It was moved fromlib/brickstobricks.
The package
@coremedia/brick-elastic-socialis now considered an example brick and was renamed to@coremedia-examples/brick-elastic-social. It was moved fromlib/brickstobricks.
The package
@coremedia/brick-footeris now considered an example brick and was renamed to@coremedia-examples/brick-footer. It was moved fromlib/brickstobricks.
The package
@coremedia/brick-fragment-scenariois now considered an example brick and was renamed to@coremedia-examples/brick-fragment-scenario. It was moved fromlib/brickstobricks.
The package
@coremedia/brick-shoppable-videois now considered an example brick and was renamed to@coremedia-examples/brick-shoppable-video. It was moved fromlib/brickstobricks.
The brick
hero-teaseris discontinued. The final version can be found underbricks/example-hero-teaser (legacy). You can either maintain a local copy of it or check if theexample-hero-bannerfits your needs.The brick
responsive-carouselis discontinued. The final version can be found underbricks/example-responsive-carousel (legacy). You can either maintain a local copy of it or check if theexample-carousel-bannerfits your needs.The brick
bootstrapis discontinued. The final version can be found underbricks/example-bootstrap3 (legacy). If you want to keep using the brick you need to maintain a local copy of it.The brick
navigationwhich was based on bootstrap is discontinued. The final version can be found underbricks/example-bootstrap3-navigation (legacy). If you want to keep using the brick you need to maintain a local copy of it. Please also check the new example bricknavigationfor a possible replacement that does not require bootstrap.The brick
bootstrap-pagegridis discontinued. The final version can be found underbricks/example-bootstrap3-pagegrid (legacy). If you want to keep using the brick you need to maintain a local copy of it.The package
@coremedia/js-jquery-pluginsis discontinued. The final version can be found underbricks/example-jquery-plugins (legacy). If you want to keep using the brick you need to maintain a local copy of it.
The templates and styling for the landscape banner have been moved from the calista theme to the new brick example-landscape-banner including styling and the following templates:
CMTeasable.asLandscapeBanner.ftlCMTeasable.asPreviewForLandscape.ftlContainer.asPlacementlandscape.ftlContainer.asLandscapeBanner.ftl
The templates and styling for the portrait banner have been moved from the calista theme to the new brick example-landscape-banner including styling and the following templates:
CMTeasable.asPortraitBanner.ftlCMTeasable.asPreviewForPortrait.ftlContainer.asPlacementportrait.ftlContainer.asPortraitBanner.ftl
(CMS-14577)


