syntax = "proto3";

package com.wixpress.appservice.api;

import "wix/api/validations.proto";
import "components_catalog_data/unified_components/shared.proto";
import "google/protobuf/wrappers.proto";

message UnifiedLightbox {
    // Base info of component by shared logic of unified components
    BaseInfo base = 1;
    // Settings for how the lightbox integrates with the editor
    LightboxEditorSettings editor_settings = 2;
    // Options for how to close the lightbox component
    LightboxCloseOptions close_options = 3;
    // Content of a lightbox
    LightboxContent content = 4;
}

message LightboxEditorSettings {
    // Basic editor settings that are relevant to all page types
    PageEditorSettings base = 1;
}

message LightboxCloseOptions {
    // If true or unset, the lightbox will be closed when overlay is clicked
    google.protobuf.BoolValue close_on_overlay_click = 1;

    // Show an X button that closes the lightbox component
    google.protobuf.BoolValue show_x_button = 2;
}

message LightboxContent {
    // Widgets to add as content in a lightbox
    repeated PageWidgetAsContent widgets = 1 [(.wix.api.maxSize) = 1];
}
