// 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 LinkPreviewData {
  message Styles {
    google.protobuf.StringValue background_color = 1 [(wix.api.format) = COLOR_HEX]; // Background color as a hexadecimal value.
    google.protobuf.StringValue title_color = 2 [(wix.api.format) = COLOR_HEX]; // Title color as a hexadecimal value.
    google.protobuf.StringValue subtitle_color = 3 [(wix.api.format) = COLOR_HEX]; // Subtitle color as a hexadecimal value.
    google.protobuf.StringValue link_color = 4 [(wix.api.format) = COLOR_HEX]; // Link color as a hexadecimal value.
    google.protobuf.Int32Value border_width = 5; // Border width in pixels.
    google.protobuf.Int32Value border_radius = 6; // Border radius in pixels.
    google.protobuf.StringValue border_color = 7 [(wix.api.format) = COLOR_HEX]; // Border color as a hexadecimal value.

    enum Position {
        START = 0; // Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts)
        END = 1; // Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts)
        TOP = 2; // Thumbnail positioned at the top
        HIDDEN = 3; // Thumbnail hidden and not displayed
    }

    Position thumbnail_position = 8; // Position of thumbnail. Defaults to `START`.
  }

  PluginContainerData container_data = 1; // Styling for the link preview's container.
  Link link = 2; // Link details.
  google.protobuf.StringValue title = 3; // Preview title.
  google.protobuf.StringValue thumbnail_url = 4; // Preview thumbnail URL.
  google.protobuf.StringValue description = 5; // Preview description.
  google.protobuf.StringValue html = 6; // The preview content as HTML.
  Styles styles = 7; // Styling for the link preview.
}
