Releases: shopware/frontends
@shopware/nuxt-module@1.4.2
@shopware/helpers@1.6.0
Minor Changes
-
#1985
2cbda25Thanks @mkucmus! - Added methods to extract product info:isProductOnSaleisProductTopSellergetProductManufacturerName
-
#2176
c647bafThanks @mkucmus! - - AddgetProductListingFromCmsPagehelper to extract product listing from CMS page structure- Enable early access to listing data during SSR before component tree renders
Patch Changes
-
#2030
22ff62eThanks @mkucmus! - ExtendedListingFiltertype to support property options and manufacturer entities:- Added optional
optionsproperty for property group options - Added optional
entitiesproperty for manufacturer entities - Improved type safety by explicitly typing empty array return in
getListingFilters()
- Added optional
-
#2153
56cd178Thanks @mkucmus! - FixgetSrcSetForMediato properly encode special characters (spaces, commas, parentheses) in media URLs -
#2162
e1fae3eThanks @mkucmus! - Export encodeUrlPath helper function to properly handle special characters (spaces, commas) in image URLs
@shopware/composables@1.10.0
Minor Changes
-
#2098
a44d871Thanks @mdanilowicz! - Enhanced theuseSyncWishlistcomposable by exposing thelimit,products, andisLoadingproperties, allowing better control and monitoring of the wishlist state. Similarly, updateduseWishlistto also exposelimit,products, andisLoadingproperties for both local and synced wishlists, providing a consistent API and improved state handling for wishlist management. -
#1997
e43d9b7Thanks @mdanilowicz! - Added constsSUBSRIBE_KEYandUNSUBSCRIBE_KEYfor newsletter status in useNewsletter composable -
#1974
7fe2ef9Thanks @mkucmus! - Use proper associations format withinuseDefaultOrderAssociations(no redundant nesting).Returned value is in type of
Schemas["Criteria"]['associations']now:const { loadOrders } = useCustomerOrders(); loadOrders({ // ... other parameters associations: useDefaultOrderAssociations(), });
-
#2176
c647bafThanks @mkucmus! - - AddinitialListingparameter touseListingcomposable for SSR data hydration- Update
createCategoryListingContextto accept initial listing data - Maintain backward compatibility with existing implementations
- Update
-
#1959
c77daa6Thanks @patzick! - Updated default types to Shopware 6.7
Patch Changes
-
87771c3Thanks @mkucmus! - add nested media entity association explicitly -
#1985
2cbda25Thanks @mkucmus! - ChangeisInWishlistproperty type toComputedRefwithinuseProductWishlistcomposable. -
Updated dependencies [
22ff62e,2cbda25,70dcf95,56cd178,e1fae3e,c647baf,c77daa6]:- @shopware/helpers@1.6.0
- @shopware/api-client@1.4.0
@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
@shopware/api-gen@1.4.0
Minor Changes
-
#2181
ed72205Thanks @patzick! - Add API-specific configuration support forstore-apiandadmin-apiinapi-gen.config.json. This allows configuringrulesandpatchesseparately for each API type. Root-levelrulesandpatchesare now deprecated but still supported for backwards compatibility.Example:
{ "$schema": "./node_modules/@shopware/api-gen/api-gen.schema.json", "store-api": { "patches": ["storeApiSchema.overrides.json"], "rules": ["COMPONENTS_API_ALIAS"] }, "admin-api": { "patches": ["adminApiSchema.overrides.json"] } } -
#2126
e595bc1Thanks @mdanilowicz! - Enhanced OpenAPI schema override merging to properly handle conflicts between$refand composition keywords (oneOf,anyOf,allOf,not). When merging overrides:- Composition keywords now automatically remove conflicting
$refproperties $refoverrides can replace composition keywords entirely- Different composition keywords can replace each other (e.g.,
allOf→oneOf)
This ensures correct schema merging when using composition keywords in override files, preventing invalid OpenAPI schemas with conflicting
$refand composition keyword properties. - Composition keywords now automatically remove conflicting
Patch Changes
@shopware/api-client@1.4.0
Minor Changes
-
#2012
70dcf95Thanks @patzick! - Added helper to support encoded_criteriafield in GET query parameters.
Context information: shopware/shopware#12388This helper is available under the
@shopware/api-client/helpersimport path.import { encodeForQuery } from "@shopware/api-client/helpers"; const criteria = { page: 1, limit: 10, ... } const encodedCriteria = encodeForQuery(criteria); const result = await apiClient.invoke("getProducts get /product", { query: { _criteria: encodedCriteria, }, });
-
#1959
c77daa6Thanks @patzick! - Updated default types to Shopware 6.7
@shopware/api-gen@1.3.3
@shopware/nuxt-module@1.4.1
@shopware/helpers@1.5.0
Minor Changes
- #1910
c8fa438Thanks @mdanilowicz! - Add helper for getting payment and shipping method icon