// flynt-disable missing-deprecated-field-annotation
// flynt-disable missing-string-validations

syntax = "proto3";

package wix.rich_content.v1;

import "wix/rich_content/v1/common.proto";
import "google/protobuf/wrappers.proto";
import "wix/api/annotations.proto";
import "wix/api/validations.proto";

message ImageData {
    message Styles {
        message Border {
            google.protobuf.Int32Value width = 1; // Border width in pixels.
            google.protobuf.StringValue color = 2 [(wix.api.format) = COLOR_HEX]; // Border color as a hexadecimal value.
            google.protobuf.Int32Value radius = 3; // Border radius in pixels.
        }

        Border border = 1; // Border attributes.
    }

    PluginContainerData container_data = 1; // Styling for the image's container.
    Media image = 2; // Image file details.
    Link link = 3; // Link details for images that are links.
    google.protobuf.BoolValue disable_expand = 4; // Sets whether the image expands to full screen when clicked. Defaults to `false`.
    google.protobuf.StringValue alt_text = 5; // Image's alternative text.
    google.protobuf.StringValue caption = 6 [deprecated = true, (wix.api.field_deprecated) = {}]; // Deprecated: use Caption node instead.
    google.protobuf.BoolValue disable_download = 7; // Sets whether the image's download button is disabled. Defaults to `false`.
    google.protobuf.BoolValue decorative = 8; // Sets whether the image is decorative and does not need an explanation. Defaults to `false`.
    Styles styles = 9; // Styling for the image.
}
