@shopware-pwa/helpers-next
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -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": "1.0.2", | ||
"version": "1.1.0", | ||
"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: 1.0.2 | ||
### Latest changes: 1.1.0 | ||
### 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44904
987
44