diff --git a/.mapping.json b/.mapping.json index addff6595..02b2d1797 100644 --- a/.mapping.json +++ b/.mapping.json @@ -17104,6 +17104,7 @@ "schema/div-change-set-transition.json":"divkit/public/schema/div-change-set-transition.json", "schema/div-change-transition.json":"divkit/public/schema/div-change-transition.json", "schema/div-circle-shape.json":"divkit/public/schema/div-circle-shape.json", + "schema/div-cloud-background.json":"divkit/public/schema/div-cloud-background.json", "schema/div-collection-item-builder.json":"divkit/public/schema/div-collection-item-builder.json", "schema/div-color-animator.json":"divkit/public/schema/div-color-animator.json", "schema/div-container.json":"divkit/public/schema/div-container.json", diff --git a/schema/div-cloud-background.json b/schema/div-cloud-background.json new file mode 100644 index 000000000..395efa136 --- /dev/null +++ b/schema/div-cloud-background.json @@ -0,0 +1,30 @@ +{ + "type": "object", + "$description": "translations.json#/div_cloud_background", + "platforms": [], + "properties": { + "type": { + "type": "string", + "enum": [ + "cloud" + ] + }, + "color": { + "$ref": "common.json#/color", + "$description": "translations.json#/div_cloud_background_color" + }, + "corner_radius": { + "$ref": "div-fixed-size.json", + "$description": "translations.json#/div_cloud_background_corner_radius" + }, + "padding": { + "$ref": "div-edge-insets.json", + "$description": "translations.json#/div_cloud_background_padding" + } + }, + "required": [ + "type", + "color", + "corner_radius" + ] +} diff --git a/schema/div-text-range-background.json b/schema/div-text-range-background.json index aaf71ad4d..f1cbdd586 100644 --- a/schema/div-text-range-background.json +++ b/schema/div-text-range-background.json @@ -3,6 +3,10 @@ { "$ref": "div-solid-background.json", "$description": "translations.json#/div_background_solid" + }, + { + "$ref": "div-cloud-background.json", + "$description": "translations.json#/div_cloud_background" } ] } diff --git a/schema/translations.json b/schema/translations.json index 37c4c5fd9..9db8e77cd 100644 --- a/schema/translations.json +++ b/schema/translations.json @@ -655,6 +655,22 @@ "en": "Enables the bounding of child elements by the parent's borders.", "ru": "Включает ограничение дочерних элементов границами родителя." }, + "div_cloud_background": { + "en": "Cloud text background. Lines draws a rectangular background with the specified color and rounded corners.", + "ru": "Фон текста в стиле \"облако\". Строки получают прямоугольный фон с указанным цветом, а все углы скругляются." + }, + "div_cloud_background_color": { + "en": "Fill color.", + "ru": "Цвет заливки." + }, + "div_cloud_background_corner_radius": { + "en": "Corner rounding radius.", + "ru": "Радиус скругления углов." + }, + "div_cloud_background_padding": { + "en": "Margins between line bounds and background.", + "ru": "Отступы от границы строки до границы фона." + }, "div_collection_item_builder": { "en": "Sets collection elements dynamically using `data` and `prototypes`.", "ru": "Задает элементы коллекции динамически при помощи `data` и `prototypes`."