commercetools-8.x-1.2-alpha1/modules/commercetools_decoupled/components/pages/product-page/product-page.component.yml
modules/commercetools_decoupled/components/pages/product-page/product-page.component.yml
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json
name: commercetools product page
status: experimental
group: commercetools
props:
type: object
properties:
id:
type: string
title: Id
description: 'Id of the product.'
libraryOverrides:
dependencies:
- commercetools_decoupled/commercetools
- commercetools_decoupled/placeholderify
- commercetools/commercetools.bootstrap_checker
- core/drupal.message
js:
js/ProductPage.js: { attributes: { type: 'module', defer: true } }
# We have to include here all dependencies of the components used in the
# template to extract translation strings from them by Drupal.
# @see https://medium.com/swissquote-engineering/drupal-8-react-i18n-and-typescript-c43aab12532d
../../../js/templates/ProductInfo.js: { attributes: { type: module } }
../../../js/molecules/ProductDetails.js: { attributes: { type: module } }
../../../js/molecules/AddToCartForm.js: { attributes: { type: module } }
../../../js/molecules/PageNotFound.js: { attributes: { type: module } }
../../../js/molecules/Carousel.js: { attributes: { type: module } }
../../../js/molecules/GalleryModal.js: { attributes: { type: module } }
