Skip to content

Releases: shopware/frontends

@shopware/nuxt-module@1.4.2

16 Dec 13:39
a6376b3

Choose a tag to compare

Patch Changes

@shopware/helpers@1.6.0

16 Dec 13:39
a6376b3

Choose a tag to compare

Minor Changes

  • #1985 2cbda25 Thanks @mkucmus! - Added methods to extract product info:

    • isProductOnSale
    • isProductTopSeller
    • getProductManufacturerName
  • #2176 c647baf Thanks @mkucmus! - - Add getProductListingFromCmsPage helper to extract product listing from CMS page structure

    • Enable early access to listing data during SSR before component tree renders

Patch Changes

  • #2030 22ff62e Thanks @mkucmus! - Extended ListingFilter type to support property options and manufacturer entities:

    • Added optional options property for property group options
    • Added optional entities property for manufacturer entities
    • Improved type safety by explicitly typing empty array return in getListingFilters()
  • #2153 56cd178 Thanks @mkucmus! - Fix getSrcSetForMedia to properly encode special characters (spaces, commas, parentheses) in media URLs

  • #2162 e1fae3e Thanks @mkucmus! - Export encodeUrlPath helper function to properly handle special characters (spaces, commas) in image URLs

@shopware/composables@1.10.0

16 Dec 13:39
a6376b3

Choose a tag to compare

Minor Changes

  • #2098 a44d871 Thanks @mdanilowicz! - Enhanced the useSyncWishlist composable by exposing the limit, products, and isLoading properties, allowing better control and monitoring of the wishlist state. Similarly, updated useWishlist to also expose limit, products, and isLoading properties for both local and synced wishlists, providing a consistent API and improved state handling for wishlist management.

  • #1997 e43d9b7 Thanks @mdanilowicz! - Added consts SUBSRIBE_KEY and UNSUBSCRIBE_KEY for newsletter status in useNewsletter composable

  • #1974 7fe2ef9 Thanks @mkucmus! - Use proper associations format within useDefaultOrderAssociations (no redundant nesting).

    Returned value is in type of Schemas["Criteria"]['associations'] now:

    const { loadOrders } = useCustomerOrders();
    
    loadOrders({
      // ... other parameters
      associations: useDefaultOrderAssociations(),
    });
  • #2176 c647baf Thanks @mkucmus! - - Add initialListing parameter to useListing composable for SSR data hydration

    • Update createCategoryListingContext to accept initial listing data
    • Maintain backward compatibility with existing implementations
  • #1959 c77daa6 Thanks @patzick! - Updated default types to Shopware 6.7

Patch Changes

@shopware/cms-base-layer@2.0.0

16 Dec 13:39
a6376b3

Choose a tag to compare

Major Changes

  • #1944 c41a839 Thanks @mkucmus! - Updates the @shopware/cms-base-layer package with the following changes:

    • Adds support for the new SwQuantitySelect component
    • Updates the SwProductAddToCart component to use the new SwQuantitySelect component
    • Fixes the Status component to use the new state classes
    • Updates the uno.config.ts file 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;
            }
            `,
        },
      ],
    });

Minor Changes

  • #2030 22ff62e Thanks @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() and selectValue() helpers for better performance and readability.
    • Filter collapse animation:
      • Unified expand/collapse animations for SwFilterProperties, SwFilterRating, SwFilterShippingFree, and SwFilterPrice using UnoCSS preflights.

    TypeScript fixes

    • SwProductListingFilters:
      • Provide fallbacks (?? [], ?? '') when passing getSortingOrders and getCurrentSortingOrder.
    • 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.selectedFilters to prevent masking undefined errors
    • Checkbox component:
      • Replace outline-blue-500 with outline-brand-primary for brand consistency
      • Make label prop optional to support checkbox-only pattern
    • SwFilterShippingFree:
      • Add i18n support using useCmsTranslations instead of hardcoded "free delivery" text
    • SwFilterProperties:
      • Remove unnecessary empty label prop from Checkbox usage

    Note: Transition classes are globally available via UnoCSS preflights.

  • #2139 20d1066 Thanks @mkucmus! - Added a new SwProductReviewsForm component that allows logged-in customers to submit product reviews.

  • #1959 c77daa6 Thanks @patzick! - Updated default types to Shopware 6.7

  • #2176 c647baf Thanks @mkucmus! - - Extract product listing data early from CMS page responses to enable SSR rendering

    • Remove ClientOnly wrappers from SwProductListingFilters and SwFilterChips components
    • Resolve hydration mismatches on category pages with filters

Patch Changes

@shopware/api-gen@1.4.0

16 Dec 13:39
a6376b3

Choose a tag to compare

Minor Changes

  • #2181 ed72205 Thanks @patzick! - Add API-specific configuration support for store-api and admin-api in api-gen.config.json. This allows configuring rules and patches separately for each API type. Root-level rules and patches are 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 e595bc1 Thanks @mdanilowicz! - Enhanced OpenAPI schema override merging to properly handle conflicts between $ref and composition keywords (oneOf, anyOf, allOf, not). When merging overrides:

    • Composition keywords now automatically remove conflicting $ref properties
    • $ref overrides can replace composition keywords entirely
    • Different composition keywords can replace each other (e.g., allOfoneOf)

    This ensures correct schema merging when using composition keywords in override files, preventing invalid OpenAPI schemas with conflicting $ref and composition keyword properties.

Patch Changes

@shopware/api-client@1.4.0

16 Dec 13:39
a6376b3

Choose a tag to compare

Minor Changes

  • #2012 70dcf95 Thanks @patzick! - Added helper to support encoded _criteria field in GET query parameters.
    Context information: shopware/shopware#12388

    This helper is available under the @shopware/api-client/helpers import 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 c77daa6 Thanks @patzick! - Updated default types to Shopware 6.7

@shopware/api-gen@1.3.3

05 Aug 08:59
1c99b71

Choose a tag to compare

Patch Changes

@shopware/nuxt-module@1.4.1

03 Aug 12:53
166549b

Choose a tag to compare

Patch Changes

  • Updated dependencies [ab040bb, c8fa438]:
    • @shopware/composables@1.9.1
    • @shopware/helpers@1.5.0

@shopware/helpers@1.5.0

03 Aug 12:53
166549b

Choose a tag to compare

Minor Changes

@shopware/composables@1.9.1

03 Aug 12:53
166549b

Choose a tag to compare

Patch Changes

  • #1877 ab040bb Thanks @mkucmus! - Adjust readSeoUrl request in case of trailing slash when technical URL is used

  • Updated dependencies [c8fa438]:

    • @shopware/helpers@1.5.0