
{
    "name": "Einstein Carousel (Product)",
    "description": "Shows products recommendations based on a pid",
    "group": "einstein",
    "attribute_definition_groups": [
        {
            "id": "heading",
            "attribute_definitions": [
                {
                    "id": "textHeadline",
                    "name": "carousel title",
                    "type": "string",
                    "required": false
                }
            ]
        },
        {
            "id": "data",
            "name": "Recommendation Rules",
            "description": "The recommender and recommendation tile work against",
            "attribute_definitions": [
                {
                    "id": "product",
                    "name": "Anchor Product",
                    "type": "product",
                    "required": true
                },
                {
                    "id": "recommender",
                    "name": "Einstein Recommender",
                    "type": "custom",
                    "required": true,
                    "editor_definition": {
                        "type": "einstein.productrecommenderselector"
                    }
                },
                {
                    "id": "count",
                    "name": "Max No of Recommendations",
                    "description": "The maximum number recommendations. If you choose more than one, they will be displayed as carousel. Please note that Einstein could return fewer recommendations to what you specify here",
                    "type": "enum",
                    "values": [
                        "1",
                        "2",
                        "3",
                        "4",
                        "5",
                        "6"
                    ],
                    "default_value": "1",
                    "required": true
                },
                {
                    "id": "displayRatings",
                    "name": "Display product ratings",
                    "description": "Specify whether or not to display ratings in product tile.",
                    "type": "boolean",
                    "required": true
                }
            ]
        },
        {
            "id": "extraSmallConfiguration",
            "name": "Phone configurations",
            "description": "Configuration for how the carousel will display on phones.",
            "attribute_definitions": [
                {
                    "id": "xsCarouselIndicators",
                    "name": "Display carousel indicators on phones",
                    "type": "boolean",
                    "required": false
                },
                {
                    "id": "xsCarouselControls",
                    "name": "Display carousel controls on phones",
                    "type": "boolean",
                    "required": false
                },
                {
                    "id": "xsCarouselSlidesToDisplay",
                    "name": "Number of slides to display on phones",
                    "type": "enum",
                    "values": [1, 2, 3],
                    "required": true
                }
            ]
        },
        {
            "id": "smallConfiguration",
            "name": "Tablet configurations",
            "description": "Configuration for how the carousel will display on tablets.",
            "attribute_definitions": [
                {
                    "id": "smCarouselIndicators",
                    "name": "Display carousel indicators on tablets",
                    "type": "boolean",
                    "required": false
                },
                {
                    "id": "smCarouselControls",
                    "name": "Display carousel controls on tablets",
                    "type": "boolean",
                    "required": false
                },
                {
                    "id": "smCarouselSlidesToDisplay",
                    "name": "Number of slides to display on tablets",
                    "type": "enum",
                    "values": [1, 2, 3, 4, 6],
                    "required": true
                }
            ]
        },
        {
            "id": "mediumConfiguration",
            "name": "Desktop configurations",
            "description": "Configuration for how the carousel will display on desktop.",
            "attribute_definitions": [
                {
                    "id": "mdCarouselIndicators",
                    "name": "Display carousel indicators on desktop",
                    "type": "boolean",
                    "required": false
                },
                {
                    "id": "mdCarouselSlidesToDisplay",
                    "name": "Number of slides to display on desktop",
                    "type": "enum",
                    "values": [1, 2, 3, 4, 6],
                    "required": true
                }
            ]
        }
    ],
    "region_definitions": [
        {
            "id":"slides",
            "name":"Slides",
            "component_type_exclusions": [
                { "type_id": "commerce_layouts.carousel" },
                { "type_id": "commerce_layouts.mobileGrid1r1c" },
                { "type_id": "commerce_layouts.mobileGrid2r1c" },
                { "type_id": "commerce_layouts.mobileGrid2r2c" },
                { "type_id": "commerce_layouts.mobileGrid2r3c" },
                { "type_id": "commerce_layouts.mobileGrid3r1c" },
                { "type_id": "commerce_layouts.mobileGrid3r2c" },
                { "type_id": "commerce_layouts.mobileGridLookBook" },
                { "type_id": "commerce_layouts.popularCategories" },
                { "type_id": "einstein.einsteinCarousel" },
                { "type_id": "einstein.einsteinCarouselCategory" },
                { "type_id": "einstein.einsteinCarouselProduct" },
                { "type_id": "commerce_assets.mainBanner" },
                { "type_id": "commerce_assets.photoTile" },
                { "type_id": "commerce_assets.imageAndText" },
                { "type_id": "commerce_assets.editorialRichText" },
                { "type_id": "commerce_assets.category" },
                { "type_id": "commerce_assets.campaignBanner" },
                { "type_id": "commerce_assets.popularCategory" },
                { "type_id": "commerce_assets.productTile" },
                { "type_id": "commerce_assets.shopTheLook" }
            ]
        }
    ]
}
