* [Installation](#installation) * [Usage](#usage) * [API](#api) * [Documentation](#documentation) * [Changelog](#changelog)


stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
Minified + gzip package size for @adobe/cq-spa-component-mapping in KB


Table of contents

The package is deprecated

The package has been moved. Please use @adobe/aem-spa-component-mapping


npm install @adobe/cq-spa-component-mapping


This module provides helpers to map resource types with SPA components.


The MapTo helper can be used to directly associate resource type(s) with a given SPA component.

import { MapTo } from '@adobe/spa-component-mapping';

class MyComponent {

export default MapTo('my/resource/type')(MyComponent);


@adobe/cq-spa-component-mapping 1.1.2



The technical documentation is already available, but if you are unable to solve your problem or you found a bug you can always contact us and ask for help!


1.1.1 - 24 August 2020

  • Deprecating the package. Renaming to aem-spa-component-mapping

1.1.0 - 20 August 2020

  • Change codebase to TypeScript

1.0.3 - 28 September 2018

  • Windows OS support
  • Server-Side Rendering support
  • Modularization

0.0.16 - 20 June 2018

Public release of cq-spa-component-mapping

0.0.15 - 20 April 2018

Initial public release of cq-spa-component-mapping, which provides:

  • MapTo helper to map JS components with AEM resource types
  • ComponentMapping singleton to interact with the existing mappings

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.