@scayle/storefront-product-detail
1.5.1
Patch Changes
- Added a runtime configuration option to control how many recently viewed products are kept.
To configure the maximum number of recently viewed products, add the following to thepublic
section of yourruntimeConfig
innuxt.config.ts
:
1.5.0
Minor Changes
- Added
useRecentlyViewedProducts
composable. This composable tracks a short history of products a customer has previously viewed using local storage. It maintains up to 10 recently viewed products and provides methods to add new products and fetch their full details.
Example usage:
1.4.2
Patch Changes
- Fixed path resolution issue for RPC methods.
1.4.1
Patch Changes
- Added missing exports for
useAllShopProductsForId
composable and SEO utils.
1.4.0
Minor Changes
- [PDP] Added
generateProductHreflangLinks
utils to generate hreflang links for a product for all shops. - [PDP] Added RPC method
getAllShopProductsForId
and the composableuseAllShopProductsForId
for product detail page to fetch product for all shops. This is used to generate hreflang links for the product for all shops.
1.3.0
Minor Changes
- [SEO] Moved the product image from the
ProductGroup
JSONLD to theProduct
JSONLD to better align with Google's recommendation.
Instead of passing all product images touseProductSeoData
, the primary product image is expected to be included in the passedvariants
.
1.2.0
Minor Changes
- Update to
@nuxt/module-builder@1
. This version of Nuxt Module Builder is ESM-only, so CommonJS (.cjs
) files will no longer be built or distributed with the package. However as of Nuxt 3, only esm is used so this should not have any impact as this module does not support Nuxt 2.
1.1.4
Patch Changes
- Use absolute URL's in product breadcrumbs JSONLD returned by
useProductSeoData
1.1.3
Patch Changes
- Added
vue@>=3.5.13
andschema-dts@>=1.1.5
topeerDependencies
.
1.1.2
Patch Changes
- Set
productGroupID
instead ofproductID
when generating the product group JSON schema.
1.1.1
Patch Changes
- [SEO] Display correct product size instead of hardcoded string in product JSON-LD.
1.1.0
Minor Changes
- [SEO] Update product JSON-LD data to use the
ProductGroup
schema.
1.0.2
Patch Changes
- Ensure the module meta has the correct package version
1.0.1
Patch Changes
- We've updated to
[email protected]
1.0.0
Major Changes
- This release introduces the
@scayle/storefront-product-detail
package, decoupling composables and utilities of the Product Detail Page (PDP) functionality from the SCAYLE Storefront Boilerplate for enhanced modularity and integration. This separation empowers developers with greater control over PDP updates and simplifies its integration into existing Storefront-based projects. - This release requires
@scayle/[email protected]
or higher. Support for@scayle/[email protected]
has been discontinued. Please update your dependencies accordingly. ThepeerDependency
range has been updated to^8.0.0
.
Minor Changes
- Compared to the original implementation within the SCAYLE Storefront Boilerplate, the
@scayle/storefront-product-detail
package has received some improvements and refactoring:- Introduced the
getCombineWithProductIds
function within the product utility, enabling efficient retrieval of product combinations within product listings. - Added the
getFilteredAttributeGroups
function to the attribute utility, simplifying the retrieval and formatting of filtered product attributes for display in listings. - Introduced the
useProductSeoData
composable, automating the generation of SEO-critical metadata for product pages. This includes dynamically generated canonical links, robots meta tags, product titles, and structured data (JSON-LD
) for product details and breadcrumbs, enhancing search engine visibility.
- Introduced the
0.4.0
Minor Changes
- Fix computed
sortLinks
return type mismatch inUseProductListSortReturn
interface.
0.3.0
Minor Changes
- Fix
sortLinks
type by extending theSelectedSort
type withto
property which represents theRouteLocationRaw
type fromvue-router
.
0.2.0
Minor Changes
- Add and expose explicit return types/interfaces externally for all product detail composables.
0.1.2
Patch Changes
- Update import of test factories to use new entry point
0.1.1
Patch Changes
- Resolved issue where sorting did not correctly route to the first page.
0.1.0
Minor Changes
- Introduce
@scayle/storefront-product-listing
package