diff --git a/component-definition.json b/component-definition.json index c2e9c800af..d3e3bec897 100644 --- a/component-definition.json +++ b/component-definition.json @@ -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" + } + } + } + } } ] } diff --git a/component-filters.json b/component-filters.json index 1edc202cbe..4f704bc18a 100644 --- a/component-filters.json +++ b/component-filters.json @@ -10,6 +10,7 @@ "components": [ "text", "image", + "dm-image", "button", "title", "hero", diff --git a/component-models.json b/component-models.json index 146dbaf809..be77dcb8e8 100644 --- a/component-models.json +++ b/component-models.json @@ -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": [