@shopware-pwa/helpers-next
Advanced tools
Comparing version 0.0.0-canary-20240805192552 to 0.0.0-canary-20240903131506
@@ -396,2 +396,13 @@ /** | ||
/** | ||
* Replace text placeholder with param value | ||
* | ||
* @param {string} key | ||
* @param {} params | ||
* @returns {string} | ||
*/ | ||
declare function getCmsTranslate(key: string, params?: { | ||
[key: string]: string | number | null; | ||
} | null): string; | ||
type Category = { | ||
@@ -593,2 +604,2 @@ apiAlias: "category"; | ||
export { type HelpersCssClasses, type LayoutConfiguration, type TierPrice, type UiMediaGalleryItem, type UiMediaGalleryItemUrl, type UiProductOption, type UiProductProperty, type UiProductReview, buildUrlPrefix, canUseQuoteActions, downloadFile, getBackgroundImageUrl, getBiggestThumbnailUrl, getCategoryBreadcrumbs, getCategoryImageUrl, getCategoryRoute, getCategoryUrl, getCmsEntityObject, getCmsLayoutConfiguration, getFormattedPrice, getLanguageName, getListingFilters, getMainImageUrl, getMedia, getProductCalculatedListingPrice, getProductFreeShipping, getProductFromPrice, getProductName, getProductRatingAverage, getProductReviews, getProductRoute, getProductTierPrices, getProductUrl, getShippingMethodDeliveryTime, getSmallestThumbnailUrl, getSrcSetForMedia, getTranslatedProperty, helpersCssClasses, isCategory, isLandingPage, isMaintenanceMode, isProduct, relativeUrlSlash, urlIsAbsolute }; | ||
export { type HelpersCssClasses, type LayoutConfiguration, type TierPrice, type UiMediaGalleryItem, type UiMediaGalleryItemUrl, type UiProductOption, type UiProductProperty, type UiProductReview, buildUrlPrefix, canUseQuoteActions, downloadFile, getBackgroundImageUrl, getBiggestThumbnailUrl, getCategoryBreadcrumbs, getCategoryImageUrl, getCategoryRoute, getCategoryUrl, getCmsEntityObject, getCmsLayoutConfiguration, getCmsTranslate, getFormattedPrice, getLanguageName, getListingFilters, getMainImageUrl, getMedia, getProductCalculatedListingPrice, getProductFreeShipping, getProductFromPrice, getProductName, getProductRatingAverage, getProductReviews, getProductRoute, getProductTierPrices, getProductUrl, getShippingMethodDeliveryTime, getSmallestThumbnailUrl, getSrcSetForMedia, getTranslatedProperty, helpersCssClasses, isCategory, isLandingPage, isMaintenanceMode, isProduct, relativeUrlSlash, urlIsAbsolute }; |
{ | ||
"name": "@shopware-pwa/helpers-next", | ||
"version": "0.0.0-canary-20240805192552", | ||
"version": "0.0.0-canary-20240903131506", | ||
"description": "Shopware helpers for accessing API data", | ||
@@ -36,3 +36,3 @@ "author": "Shopware", | ||
"@vitest/coverage-v8": "2.0.5", | ||
"happy-dom": "14.12.3", | ||
"happy-dom": "15.7.3", | ||
"unbuild": "2.0.0", | ||
@@ -39,0 +39,0 @@ "vitest": "2.0.5", |
@@ -39,11 +39,6 @@ # shopware/frontends - helpers | ||
### Latest changes: 0.0.0-canary-20240805192552 | ||
### Latest changes: 0.0.0-canary-20240903131506 | ||
### Patch Changes | ||
### Minor Changes | ||
- [#1191](https://github.com/shopware/frontends/pull/1191) [`2e4c887`](https://github.com/shopware/frontends/commit/2e4c8872060fb2ebabe5b89d92761994a2ed8128) Thanks [@mkucmus](https://github.com/mkucmus)! - Prevent from getting an incorrect srcset format when img url is not set. | ||
before when there were no urls for 400w and 800w: | ||
`src="image1.jpg 100w, 400w, 800w"` | ||
now only the entry with an URL defined is returned | ||
- [#1215](https://github.com/shopware/frontends/pull/1215) [`6ee2f90`](https://github.com/shopware/frontends/commit/6ee2f90ca3b21730fa05e1120072ac4dd45aa665) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Added `getCmsTranslate` helper to replace text placeholder with param value |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
44948
987
44