commercetools-8.x-1.2-alpha1/modules/commercetools_decoupled/components/blocks/cart-block/cart-block.component.yml
modules/commercetools_decoupled/components/blocks/cart-block/cart-block.component.yml
$schema: https://git.drupalcode.org/project/drupal/-/raw/10.1.x/core/modules/sdc/src/metadata.schema.json
name: commercetools cart block
status: experimental
group: commercetools
props:
type: object
properties:
max_items:
type: integer
title: Number of items to display
description: The maximum number of items to display in the cart summary.
libraryOverrides:
dependencies:
- commercetools_decoupled/commercetools
- commercetools_decoupled/placeholderify
- core/drupal.message
js:
js/CartBlock.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/molecules/CartSummary.js: { attributes: { type: module } }
../../../js/templates/CartInfo.js: { attributes: { type: module } }
../../../js/organisms/CartForm.js: { attributes: { type: module } }
../../../js/molecules/LineItems.js: { attributes: { type: module } }
../../../js/molecules/LineItem.js: { attributes: { type: module } }
../../../js/molecules/LineItemSummary.js: { attributes: { type: module } }
