@shopware/cms-base-layer@2.0.0
Major Changes
-
#1944
c41a839Thanks @mkucmus! - Updates the@shopware/cms-base-layerpackage with the following changes:- Adds support for the new
SwQuantitySelectcomponent - Updates the
SwProductAddToCartcomponent to use the newSwQuantitySelectcomponent - Fixes the
Statuscomponent to use the new state classes - Updates the
uno.config.tsfile to include default styling that can be used and extended in the end-project:
Nuxt UnoCSS Configuration Example
// nuxt.config.ts in your end-project { unocss: { nuxtLayers: true; // enable Nuxt layers support in order to merge UnoCSS configurations } }
UnoCSS Configuration Example
// uno.config.ts in your end-project import { mergeConfigs } from "@unocss/core"; import baseConfig from "./.nuxt/uno.config.mjs"; export default mergeConfigs(baseConfig, { // will be merged with the base config - all optional theme: { colors: { "brand-primary": "#ff3e00", "brand-secondary": "#ff6a00", }, }, safelist: ["states-success"], preflights: [ { getCSS: () => ` body { font-family: 'Inter', sans-serif; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; } `, }, ], });
- Adds support for the new
Minor Changes
-
#2030
22ff62eThanks @mkucmus! - Introduce new UI components, refine listing filters (structure and UX), add global collapse animations, and improve type safety.Features
- New UI components:
- SwFilterChips – shows active filters as removable chips
- SwSortDropdown – sorting dropdown
- SwProductListingPagination – listing pagination
- Checkbox – reusable checkbox
- ChevronIcon – configurable chevron (up/down/left/right)
- RadioButton – reusable radio button
- SwitchButton – toggle switch
Refactors
- SwFilterProperties:
- Replace computed factory with
isChecked()andselectValue()helpers for better performance and readability.
- Replace computed factory with
- Filter collapse animation:
- Unified expand/collapse animations for SwFilterProperties, SwFilterRating, SwFilterShippingFree, and SwFilterPrice using UnoCSS preflights.
TypeScript fixes
- SwProductListingFilters:
- Provide fallbacks (
?? [],?? '') when passinggetSortingOrdersandgetCurrentSortingOrder.
- Provide fallbacks (
- SwFilterChips:
- Relax prop types to accept union types compatible with both full Shopware schemas and simplified helper types.
Code quality improvements
- SwFilterPrice:
- Remove unnecessary optional chaining on
props.selectedFiltersto prevent masking undefined errors
- Remove unnecessary optional chaining on
- Checkbox component:
- Replace
outline-blue-500withoutline-brand-primaryfor brand consistency - Make
labelprop optional to support checkbox-only pattern
- Replace
- SwFilterShippingFree:
- Add i18n support using
useCmsTranslationsinstead of hardcoded "free delivery" text
- Add i18n support using
- SwFilterProperties:
- Remove unnecessary empty label prop from Checkbox usage
Note: Transition classes are globally available via UnoCSS preflights.
- New UI components:
-
#2139
20d1066Thanks @mkucmus! - Added a newSwProductReviewsFormcomponent that allows logged-in customers to submit product reviews. -
#1959
c77daa6Thanks @patzick! - Updated default types to Shopware 6.7 -
#2176
c647bafThanks @mkucmus! - - Extract product listing data early from CMS page responses to enable SSR rendering- Remove ClientOnly wrappers from
SwProductListingFiltersandSwFilterChipscomponents - Resolve hydration mismatches on category pages with filters
- Remove ClientOnly wrappers from
Patch Changes
-
#2174
e9f3d97Thanks @mkucmus! - Added a new image placeholder. -
#2162
e1fae3eThanks @mkucmus! - Replace hardcoded colors with theme tokens, add image placeholder composable, improve URL encoding for special characters in image paths, enhance CMS block layouts, and use useTemplateRef for better type safety -
#2128
efe125eThanks @mkucmus! - Enhanced SwProductReviews component with reviewer names, shop feedback, and star ratings using direct SVG imports. -
#2008
3a1bca9Thanks @mkucmus! - Added missing labels forSwQuantitySelectcomponent. -
#1951
3f2379bThanks @mkucmus! - Use proper paths for components configuration -
#2154
168989eThanks @mkucmus! - Implicitly set public components as global to expose them for templates that extend from the base one. -
Updated dependencies [
87771c3,22ff62e,a44d871,e43d9b7,2cbda25,2cbda25,7fe2ef9,70dcf95,56cd178,c647baf,e1fae3e,c647baf,c77daa6]:- @shopware/composables@1.10.0
- @shopware/helpers@1.6.0
- @shopware/api-client@1.4.0