@scayle/storefront-product-detail
1.6.3
Patch Changes
- This is an internal change only. The packages now use the PNPM catalog feature to ensure dependencies use the identical version across packages.
1.6.2
Patch Changes
- Fix export of
useSellableTimeFramecomposable.
1.6.1
Patch Changes
- Exposed the
useSellableTimeFramecomposable for determining the current status of a product's sellable timeframe.
1.6.0
Minor Changes
- Added utility functions
sellableTimeframeStartsInFuture,sellableTimeframeEndsInPast, andisInSellableTimeframefor checking whether a product's sellable timeframe is currently active. Also introduced theuseSellableTimeFrame()composable for convenient access to these checks within your components.
Usage Examples:sellableTimeframeStartsInFuture:sellableTimeframeEndsInPast:isInSellableTimeframe:useSellableTimeFrame:
1.5.6
Patch Changes
- Enhanced data fetching composables to support reactive keys, aligning with Nuxt 3.17 data fetching improvements.
You can now pass aref,computed, or getter function as thekeyparameter touseRpcand derived composables (likeuseProducts,useBrandetc.). When the reactive key changes, the data will automatically re-fetch.- Before: Keys were static strings.
- After: Keys can be reactive, enabling dynamic caching and automatic updates.
1.5.5
Patch Changes
- Cleaned up README.md and added CONTRIBUTING.md. No functional changes.
1.5.4
Patch Changes
- Updated SCAYLE Resource Center references
1.5.3
Patch Changes
- [FIX] Added logic to prevent simultaneously loading the same products when
loadMissingProductsfromuseRecentlyViewedProductsis called multiple times concurrently. This ensures that products are not added to the recently viewed list more than once.
1.5.2
Patch Changes
- Use latest
[email protected]for build. Compatibility with previous version has not changed and is specified via packagepeerDependenciesand Nuxtcompatibilityflag.
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 thepublicsection of yourruntimeConfiginnuxt.config.ts:
1.5.0
Minor Changes
- Added
useRecentlyViewedProductscomposable. 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
useAllShopProductsForIdcomposable and SEO utils.
1.4.0
Minor Changes
- [PDP] Added
generateProductHreflangLinksutils to generate hreflang links for a product for all shops. - [PDP] Added RPC method
getAllShopProductsForIdand the composableuseAllShopProductsForIdfor 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
ProductGroupJSONLD to theProductJSONLD 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.13andschema-dts@>=1.1.5topeerDependencies.
1.1.2
Patch Changes
- Set
productGroupIDinstead ofproductIDwhen 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
ProductGroupschema.
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-detailpackage, 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. ThepeerDependencyrange has been updated to^8.0.0.
Minor Changes
- Compared to the original implementation within the SCAYLE Storefront Boilerplate, the
@scayle/storefront-product-detailpackage has received some improvements and refactoring:- Introduced the
getCombineWithProductIdsfunction within the product utility, enabling efficient retrieval of product combinations within product listings. - Added the
getFilteredAttributeGroupsfunction to the attribute utility, simplifying the retrieval and formatting of filtered product attributes for display in listings. - Introduced the
useProductSeoDatacomposable, 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
sortLinksreturn type mismatch inUseProductListSortReturninterface.
0.3.0
Minor Changes
- Fix
sortLinkstype by extending theSelectedSorttype withtoproperty which represents theRouteLocationRawtype 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-listingpackage