@shopware-pwa/helpers-next
Advanced tools
Comparing version 0.0.0-canary-20240919190735 to 0.0.0-canary-20241204101639
@@ -404,5 +404,19 @@ /** | ||
declare function getCmsTranslate(key: string, params?: { | ||
[key: string]: string | number | null; | ||
[key: string]: string | number | null | undefined; | ||
} | null): string; | ||
/** | ||
* Build the breadcrumbs for the CMS page | ||
* | ||
* @param page | ||
* @returns | ||
*/ | ||
declare function getCmsBreadcrumbs<T extends { | ||
translated: { | ||
name: string; | ||
}; | ||
}>(page: T): { | ||
name: string; | ||
}[]; | ||
type Category = { | ||
@@ -604,2 +618,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, 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 }; | ||
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, getCmsBreadcrumbs, 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-20240919190735", | ||
"version": "0.0.0-canary-20241204101639", | ||
"description": "Shopware helpers for accessing API data", | ||
@@ -35,6 +35,6 @@ "author": "Shopware", | ||
"devDependencies": { | ||
"@vitest/coverage-v8": "2.0.5", | ||
"happy-dom": "15.7.3", | ||
"@vitest/coverage-v8": "2.1.6", | ||
"happy-dom": "15.11.6", | ||
"unbuild": "2.0.0", | ||
"vitest": "2.0.5", | ||
"vitest": "2.1.6", | ||
"tsconfig": "0.0.0" | ||
@@ -41,0 +41,0 @@ }, |
@@ -39,6 +39,6 @@ # shopware/frontends - helpers | ||
### Latest changes: 0.0.0-canary-20240919190735 | ||
### Latest changes: 0.0.0-canary-20241204101639 | ||
### Minor Changes | ||
- [#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 | ||
- [#1369](https://github.com/shopware/frontends/pull/1369) [`13c83be`](https://github.com/shopware/frontends/commit/13c83bec53a6aaba49941b9bf869629eadeb4515) Thanks [@mdanilowicz](https://github.com/mdanilowicz)! - Added `getCmsBreadcrumbs` helper for building CMS breadcrumbs |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
45541
1007