syntax = "proto3";

package com.wixpress.appservice.api;

import "google/protobuf/wrappers.proto";
import "wix/api/validations.proto";
import "components_catalog_data/widget.proto";
import "components_catalog_data/out_of_iframe.proto";
import "wix/api/annotations.proto";

// A widget out of iframe component that loads directly in the Editor DOM
message WidgetOutOfIframeComponentData {
    // Iframe URL that hosts the widget's content.
    string component_url = 1 [(wix.api.format) = WEB_URL];
    // Iframe controller URL.
    google.protobuf.StringValue controller_url = 2 [(wix.api.format) = WEB_URL];
    // Information about the widget.
    WidgetComponentData widget_data = 3;
    // Out of iframe SSR URL.
    google.protobuf.StringValue ssr_component_url = 4 [(wix.api.format) = WEB_URL];
    // Format: `<%=serviceUrl('your_artifact_id', 'component_url_bundle_file')%>`.
    google.protobuf.StringValue component_url_template = 5;
    // Format: `<%=serviceUrl('your_artifact_id', 'controller_url_bundle_file')%>`.
    google.protobuf.StringValue controller_url_template = 6;
    // Out of iframe widget data.
    OutOfIframeData out_of_iframe_data = 7;
    // Format: `<%=serviceUrl('your_artifact_id', 'no_css_component_url_bundle_file')%>`.
    google.protobuf.StringValue no_css_component_url_template = 8;
    // Out of iframe no css component URL.
    google.protobuf.StringValue no_css_component_url = 9 [(wix.api.format) = WEB_URL];
    // Whether to support different style param values for different breakpoints.
    google.protobuf.BoolValue css_per_breakpoint = 10;
    // builderConfig static url.
    google.protobuf.StringValue builder_config_url = 11 [(wix.api.format) = WEB_URL];
    // The component-type as will be written in Document Management.
    google.protobuf.StringValue component_type = 12 [(.wix.api.maxLength) = 512, (wix.api.field_exposure) = PRIVATE];
    // The type of the referenced schema e.g. `wysiwyg.viewer.components.tpapps.TPAWidget`.
    google.protobuf.StringValue ref_type = 13 [(.wix.api.maxLength) = 512, (wix.api.field_exposure) = PRIVATE];
    // Builder config URL template. `<%=serviceUrl('your_artifact_id', 'builder_url_bundle_file')%>`
    google.protobuf.StringValue builder_config_url_template = 14 [(.wix.api.maxLength) = 512];
}
