@adobe/cq-spa-component-mapping

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

Stats

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

Readme

Table of contents

The package is deprecated

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

Installation

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

Usage

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

MapTo

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);

API

@adobe/cq-spa-component-mapping 1.1.2

src/utils/MapComponents.js

Documentation

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!

Changelog

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.