Skip to content

Commit

Permalink
Add model definitions for DM image
Browse files Browse the repository at this point in the history
  • Loading branch information
Satya Deep Maheshwari committed Nov 11, 2024
1 parent 22587e1 commit ad6c7a8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
15 changes: 15 additions & 0 deletions component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,21 @@
}
}
}
},
{
"title": "DM Image",
"id": "dm-image",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "DM Image",
"model": "dm-image"
}
}
}
}
}
]
}
Expand Down
1 change: 1 addition & 0 deletions component-filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"components": [
"text",
"image",
"dm-image",
"button",
"title",
"hero",
Expand Down
23 changes: 23 additions & 0 deletions component-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,29 @@
}
]
},
{
"id": "dm-image",
"fields": [
{
"component": "custom-asset-namespace:custom-asset",
"name": "image",
"label": "Image",
"configUrl": "https://274796-hlxassetaddonconfig-stage.adobeio-static.net/api/v1/web/hlx-asset-addon-config/ue-extn-config",
"valueType": "string"
},
{
"component": "custom-asset-namespace:custom-asset-mimetype",
"valueType": "string",
"name": "imageMimeType"
},
{
"component": "text",
"name": "imageAlt",
"label": "Alt Text",
"valueType": "string"
}
]
},
{
"id": "title",
"fields": [
Expand Down

0 comments on commit ad6c7a8

Please sign in to comment.