fix: export ProductImage to allow for custom links to add alt text (#12357)

This commit is contained in:
Harminder Virk
2025-05-05 14:24:25 +05:30
committed by GitHub
parent c35e9e5104
commit e4d853185f
6 changed files with 33 additions and 2 deletions
@@ -3,6 +3,7 @@ import {
Product,
ProductCategory,
ProductCollection,
ProductImage,
ProductOption,
ProductOptionValue,
ProductTag,
@@ -22,6 +23,7 @@ export const joinerConfig = defineJoinerConfig(Modules.PRODUCT, {
ProductTag,
ProductCollection,
ProductCategory,
ProductImage,
],
linkableKeys: {
// Merged with the autogenerated ones to maintain backward compatibility
@@ -96,6 +96,9 @@ export default class ProductModuleService
ProductVariant: {
dto: ProductTypes.ProductVariantDTO
}
ProductImage: {
dto: ProductTypes.ProductImageDTO
}
}>({
Product,
ProductCategory,
@@ -105,6 +108,7 @@ export default class ProductModuleService
ProductTag,
ProductType,
ProductVariant,
ProductImage,
})
implements ProductTypes.IProductModuleService
{