Skip to content

Commit

Permalink
feat: Add journey carousel block model (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: Satya Deep Maheshwari <[email protected]>
  • Loading branch information
sdmcraft and Satya Deep Maheshwari authored Jul 22, 2024
1 parent a53e791 commit 26ca603
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 5 deletions.
33 changes: 32 additions & 1 deletion component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,39 @@
}
}
}
},
{
"title": "Journey Carousel",
"id": "journey-carousel",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Journey Carousel",
"filter": "journey-carousel"
}
}
}
}
},
{
"title": "Journey Carousel Item",
"id": "journey-carousel-item",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block/item",
"template": {
"name": "Journey Carousel Item",
"model": "journey-carousel-item",
"content_headingType": "h3"
}
}
}
}
}
]
}
]
}
}
12 changes: 9 additions & 3 deletions component-filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"hero",
"cards",
"columns",
"image-carousel"
"image-carousel",
"journey-carousel"
]
},
{
Expand All @@ -52,6 +53,11 @@
"components": [
"image"
]
},
{
"id": "journey-carousel",
"components": [
"journey-carousel-item"
]
}

]
]
44 changes: 43 additions & 1 deletion component-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,47 @@
"required": true
}
]
},
{
"id": "journey-carousel-item",
"fields": [
{
"component": "reference",
"valueType": "string",
"name": "image",
"label": "Image",
"multi": false,
"required": true
},
{
"component": "text",
"valueType": "string",
"name": "imageAlt",
"value": "Default alt",
"label": "Alt Text",
"required": true
},
{
"component": "text",
"valueType": "string",
"name": "content_heading",
"value": "",
"label": "Heading",
"required": true
},
{
"component": "text",
"name": "content_headingType",
"value": "h3",
"hidden": true
},
{
"component": "text",
"valueType": "string",
"name": "content_description",
"value": "",
"label": "Description"
}
]
}
]
]

0 comments on commit 26ca603

Please sign in to comment.