Updated version to 30.15.0

826137430757fb9f20108cc5e5744de56849f1e6
This commit is contained in:
robot-divkit
2024-08-21 17:57:32 +03:00
parent 9838b770ab
commit 3a0a091c4f
10 changed files with 89 additions and 7 deletions
+1
View File
@@ -16173,6 +16173,7 @@
"json-builder/kotlin/src/generated/kotlin/divkit/dsl/Stroke.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Stroke.kt",
"json-builder/kotlin/src/generated/kotlin/divkit/dsl/Tabs.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Tabs.kt",
"json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt",
"json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextAlignmentVertical.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextAlignmentVertical.kt",
"json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextGradient.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextGradient.kt",
"json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextRangeBackground.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextRangeBackground.kt",
"json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextRangeBorder.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/TextRangeBorder.kt",
+1 -1
View File
@@ -1,2 +1,2 @@
MARKETING_VERSION = 30.14.0
MARKETING_VERSION = 30.15.0
CURRENT_PROJECT_VERSION = 30
+1 -1
View File
@@ -1,3 +1,3 @@
public enum DivKitInfo {
public static let version = "30.14.0"
public static let version = "30.15.0"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@divkitframework/divkit",
"version": "30.14.0",
"version": "30.15.0",
"description": "DivKit for the web",
"keywords": [
"server-driven-ui",
@@ -109,6 +109,7 @@ object CenterEnumValue : EnumValue("center"),
ContentAlignmentHorizontal,
ContentAlignmentVertical,
Gallery.CrossContentAlignment,
TextAlignmentVertical,
Tooltip.Position
@Generated
@@ -137,6 +138,7 @@ object TopEnumValue : EnumValue("top"),
AlignmentVertical,
ContentAlignmentVertical,
SlideTransition.Edge,
TextAlignmentVertical,
Tooltip.Position
@Generated
@@ -144,12 +146,14 @@ object BottomEnumValue : EnumValue("bottom"),
AlignmentVertical,
ContentAlignmentVertical,
SlideTransition.Edge,
TextAlignmentVertical,
Tooltip.Position
@Generated
object BaselineEnumValue : EnumValue("baseline"),
AlignmentVertical,
ContentAlignmentVertical
ContentAlignmentVertical,
TextAlignmentVertical
@Generated
object FadeEnumValue : EnumValue("fade"),
@@ -505,6 +505,7 @@ class Text internal constructor(
operator fun plus(additive: Properties): Image = Image(
Properties(
accessibility = additive.accessibility ?: properties.accessibility,
alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical,
height = additive.height ?: properties.height,
preloadRequired = additive.preloadRequired ?: properties.preloadRequired,
start = additive.start ?: properties.start,
@@ -517,6 +518,11 @@ class Text internal constructor(
class Properties internal constructor(
val accessibility: Property<Accessibility>?,
/**
* Vertical text image alignment within a string.
* Default value: `baseline`.
*/
val alignmentVertical: Property<TextAlignmentVertical>?,
/**
* Image height.
* Default value: `{"type": "fixed","value":20}`.
@@ -554,6 +560,7 @@ class Text internal constructor(
val result = mutableMapOf<String, Any>()
result.putAll(properties)
result.tryPutProperty("accessibility", accessibility)
result.tryPutProperty("alignment_vertical", alignmentVertical)
result.tryPutProperty("height", height)
result.tryPutProperty("preload_required", preloadRequired)
result.tryPutProperty("start", start)
@@ -633,6 +640,7 @@ class Text internal constructor(
operator fun plus(additive: Properties): Range = Range(
Properties(
actions = additive.actions ?: properties.actions,
alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical,
background = additive.background ?: properties.background,
border = additive.border ?: properties.border,
end = additive.end ?: properties.end,
@@ -658,6 +666,11 @@ class Text internal constructor(
* Action when clicking on text.
*/
val actions: Property<List<Action>>?,
/**
* Vertical text range alignment within a string.
* Default value: `baseline`.
*/
val alignmentVertical: Property<TextAlignmentVertical>?,
/**
* Character range background.
*/
@@ -732,6 +745,7 @@ class Text internal constructor(
val result = mutableMapOf<String, Any>()
result.putAll(properties)
result.tryPutProperty("actions", actions)
result.tryPutProperty("alignment_vertical", alignmentVertical)
result.tryPutProperty("background", background)
result.tryPutProperty("border", border)
result.tryPutProperty("end", end)
@@ -2459,6 +2473,7 @@ fun Text.Ellipsis.evaluate(
fun Text.Ellipsis.asList() = listOf(this)
/**
* @param alignmentVertical Vertical text image alignment within a string.
* @param height Image height.
* @param preloadRequired Background image must be loaded before the display.
* @param start A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.
@@ -2471,6 +2486,7 @@ fun Text.Ellipsis.asList() = listOf(this)
fun DivScope.textImage(
`use named arguments`: Guard = Guard.instance,
accessibility: Text.Image.Accessibility? = null,
alignmentVertical: TextAlignmentVertical? = null,
height: FixedSize? = null,
preloadRequired: Boolean? = null,
start: Int? = null,
@@ -2481,6 +2497,7 @@ fun DivScope.textImage(
): Text.Image = Text.Image(
Text.Image.Properties(
accessibility = valueOrNull(accessibility),
alignmentVertical = valueOrNull(alignmentVertical),
height = valueOrNull(height),
preloadRequired = valueOrNull(preloadRequired),
start = valueOrNull(start),
@@ -2492,6 +2509,7 @@ fun DivScope.textImage(
)
/**
* @param alignmentVertical Vertical text image alignment within a string.
* @param height Image height.
* @param preloadRequired Background image must be loaded before the display.
* @param start A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.
@@ -2504,6 +2522,7 @@ fun DivScope.textImage(
fun DivScope.textImageProps(
`use named arguments`: Guard = Guard.instance,
accessibility: Text.Image.Accessibility? = null,
alignmentVertical: TextAlignmentVertical? = null,
height: FixedSize? = null,
preloadRequired: Boolean? = null,
start: Int? = null,
@@ -2513,6 +2532,7 @@ fun DivScope.textImageProps(
width: FixedSize? = null,
) = Text.Image.Properties(
accessibility = valueOrNull(accessibility),
alignmentVertical = valueOrNull(alignmentVertical),
height = valueOrNull(height),
preloadRequired = valueOrNull(preloadRequired),
start = valueOrNull(start),
@@ -2523,6 +2543,7 @@ fun DivScope.textImageProps(
)
/**
* @param alignmentVertical Vertical text image alignment within a string.
* @param height Image height.
* @param preloadRequired Background image must be loaded before the display.
* @param start A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.
@@ -2535,6 +2556,7 @@ fun DivScope.textImageProps(
fun TemplateScope.textImageRefs(
`use named arguments`: Guard = Guard.instance,
accessibility: ReferenceProperty<Text.Image.Accessibility>? = null,
alignmentVertical: ReferenceProperty<TextAlignmentVertical>? = null,
height: ReferenceProperty<FixedSize>? = null,
preloadRequired: ReferenceProperty<Boolean>? = null,
start: ReferenceProperty<Int>? = null,
@@ -2544,6 +2566,7 @@ fun TemplateScope.textImageRefs(
width: ReferenceProperty<FixedSize>? = null,
) = Text.Image.Properties(
accessibility = accessibility,
alignmentVertical = alignmentVertical,
height = height,
preloadRequired = preloadRequired,
start = start,
@@ -2554,6 +2577,7 @@ fun TemplateScope.textImageRefs(
)
/**
* @param alignmentVertical Vertical text image alignment within a string.
* @param height Image height.
* @param preloadRequired Background image must be loaded before the display.
* @param start A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.
@@ -2566,6 +2590,7 @@ fun TemplateScope.textImageRefs(
fun Text.Image.override(
`use named arguments`: Guard = Guard.instance,
accessibility: Text.Image.Accessibility? = null,
alignmentVertical: TextAlignmentVertical? = null,
height: FixedSize? = null,
preloadRequired: Boolean? = null,
start: Int? = null,
@@ -2576,6 +2601,7 @@ fun Text.Image.override(
): Text.Image = Text.Image(
Text.Image.Properties(
accessibility = valueOrNull(accessibility) ?: properties.accessibility,
alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical,
height = valueOrNull(height) ?: properties.height,
preloadRequired = valueOrNull(preloadRequired) ?: properties.preloadRequired,
start = valueOrNull(start) ?: properties.start,
@@ -2587,6 +2613,7 @@ fun Text.Image.override(
)
/**
* @param alignmentVertical Vertical text image alignment within a string.
* @param height Image height.
* @param preloadRequired Background image must be loaded before the display.
* @param start A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.
@@ -2599,6 +2626,7 @@ fun Text.Image.override(
fun Text.Image.defer(
`use named arguments`: Guard = Guard.instance,
accessibility: ReferenceProperty<Text.Image.Accessibility>? = null,
alignmentVertical: ReferenceProperty<TextAlignmentVertical>? = null,
height: ReferenceProperty<FixedSize>? = null,
preloadRequired: ReferenceProperty<Boolean>? = null,
start: ReferenceProperty<Int>? = null,
@@ -2609,6 +2637,7 @@ fun Text.Image.defer(
): Text.Image = Text.Image(
Text.Image.Properties(
accessibility = accessibility ?: properties.accessibility,
alignmentVertical = alignmentVertical ?: properties.alignmentVertical,
height = height ?: properties.height,
preloadRequired = preloadRequired ?: properties.preloadRequired,
start = start ?: properties.start,
@@ -2620,6 +2649,7 @@ fun Text.Image.defer(
)
/**
* @param alignmentVertical Vertical text image alignment within a string.
* @param preloadRequired Background image must be loaded before the display.
* @param start A symbol to insert prior to an image. To insert an image at the end of the text, specify the number of the last character plus one.
* @param tintColor New color of a contour image.
@@ -2629,6 +2659,7 @@ fun Text.Image.defer(
@Generated
fun Text.Image.evaluate(
`use named arguments`: Guard = Guard.instance,
alignmentVertical: ExpressionProperty<TextAlignmentVertical>? = null,
preloadRequired: ExpressionProperty<Boolean>? = null,
start: ExpressionProperty<Int>? = null,
tintColor: ExpressionProperty<Color>? = null,
@@ -2637,6 +2668,7 @@ fun Text.Image.evaluate(
): Text.Image = Text.Image(
Text.Image.Properties(
accessibility = properties.accessibility,
alignmentVertical = alignmentVertical ?: properties.alignmentVertical,
height = properties.height,
preloadRequired = preloadRequired ?: properties.preloadRequired,
start = start ?: properties.start,
@@ -2652,6 +2684,7 @@ fun Text.Image.asList() = listOf(this)
/**
* @param actions Action when clicking on text.
* @param alignmentVertical Vertical text range alignment within a string.
* @param background Character range background.
* @param border Character range border.
* @param end Ordinal number of the last character to be included in the range.
@@ -2674,6 +2707,7 @@ fun Text.Image.asList() = listOf(this)
fun DivScope.textRange(
`use named arguments`: Guard = Guard.instance,
actions: List<Action>? = null,
alignmentVertical: TextAlignmentVertical? = null,
background: TextRangeBackground? = null,
border: TextRangeBorder? = null,
end: Int? = null,
@@ -2694,6 +2728,7 @@ fun DivScope.textRange(
): Text.Range = Text.Range(
Text.Range.Properties(
actions = valueOrNull(actions),
alignmentVertical = valueOrNull(alignmentVertical),
background = valueOrNull(background),
border = valueOrNull(border),
end = valueOrNull(end),
@@ -2716,6 +2751,7 @@ fun DivScope.textRange(
/**
* @param actions Action when clicking on text.
* @param alignmentVertical Vertical text range alignment within a string.
* @param background Character range background.
* @param border Character range border.
* @param end Ordinal number of the last character to be included in the range.
@@ -2738,6 +2774,7 @@ fun DivScope.textRange(
fun DivScope.textRangeProps(
`use named arguments`: Guard = Guard.instance,
actions: List<Action>? = null,
alignmentVertical: TextAlignmentVertical? = null,
background: TextRangeBackground? = null,
border: TextRangeBorder? = null,
end: Int? = null,
@@ -2757,6 +2794,7 @@ fun DivScope.textRangeProps(
underline: LineStyle? = null,
) = Text.Range.Properties(
actions = valueOrNull(actions),
alignmentVertical = valueOrNull(alignmentVertical),
background = valueOrNull(background),
border = valueOrNull(border),
end = valueOrNull(end),
@@ -2778,6 +2816,7 @@ fun DivScope.textRangeProps(
/**
* @param actions Action when clicking on text.
* @param alignmentVertical Vertical text range alignment within a string.
* @param background Character range background.
* @param border Character range border.
* @param end Ordinal number of the last character to be included in the range.
@@ -2800,6 +2839,7 @@ fun DivScope.textRangeProps(
fun TemplateScope.textRangeRefs(
`use named arguments`: Guard = Guard.instance,
actions: ReferenceProperty<List<Action>>? = null,
alignmentVertical: ReferenceProperty<TextAlignmentVertical>? = null,
background: ReferenceProperty<TextRangeBackground>? = null,
border: ReferenceProperty<TextRangeBorder>? = null,
end: ReferenceProperty<Int>? = null,
@@ -2819,6 +2859,7 @@ fun TemplateScope.textRangeRefs(
underline: ReferenceProperty<LineStyle>? = null,
) = Text.Range.Properties(
actions = actions,
alignmentVertical = alignmentVertical,
background = background,
border = border,
end = end,
@@ -2840,6 +2881,7 @@ fun TemplateScope.textRangeRefs(
/**
* @param actions Action when clicking on text.
* @param alignmentVertical Vertical text range alignment within a string.
* @param background Character range background.
* @param border Character range border.
* @param end Ordinal number of the last character to be included in the range.
@@ -2862,6 +2904,7 @@ fun TemplateScope.textRangeRefs(
fun Text.Range.override(
`use named arguments`: Guard = Guard.instance,
actions: List<Action>? = null,
alignmentVertical: TextAlignmentVertical? = null,
background: TextRangeBackground? = null,
border: TextRangeBorder? = null,
end: Int? = null,
@@ -2882,6 +2925,7 @@ fun Text.Range.override(
): Text.Range = Text.Range(
Text.Range.Properties(
actions = valueOrNull(actions) ?: properties.actions,
alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical,
background = valueOrNull(background) ?: properties.background,
border = valueOrNull(border) ?: properties.border,
end = valueOrNull(end) ?: properties.end,
@@ -2904,6 +2948,7 @@ fun Text.Range.override(
/**
* @param actions Action when clicking on text.
* @param alignmentVertical Vertical text range alignment within a string.
* @param background Character range background.
* @param border Character range border.
* @param end Ordinal number of the last character to be included in the range.
@@ -2926,6 +2971,7 @@ fun Text.Range.override(
fun Text.Range.defer(
`use named arguments`: Guard = Guard.instance,
actions: ReferenceProperty<List<Action>>? = null,
alignmentVertical: ReferenceProperty<TextAlignmentVertical>? = null,
background: ReferenceProperty<TextRangeBackground>? = null,
border: ReferenceProperty<TextRangeBorder>? = null,
end: ReferenceProperty<Int>? = null,
@@ -2946,6 +2992,7 @@ fun Text.Range.defer(
): Text.Range = Text.Range(
Text.Range.Properties(
actions = actions ?: properties.actions,
alignmentVertical = alignmentVertical ?: properties.alignmentVertical,
background = background ?: properties.background,
border = border ?: properties.border,
end = end ?: properties.end,
@@ -2967,6 +3014,7 @@ fun Text.Range.defer(
)
/**
* @param alignmentVertical Vertical text range alignment within a string.
* @param end Ordinal number of the last character to be included in the range.
* @param fontFamily Font family:<li>`text` — a standard text font;</li><li>`display` — a family of fonts with a large font size.</li>
* @param fontFeatureSettings List of OpenType font features. The format matches the CSS attribute "font-feature-settings". Learn more: https://www.w3.org/TR/css-fonts-3/#font-feature-settings-prop
@@ -2985,6 +3033,7 @@ fun Text.Range.defer(
@Generated
fun Text.Range.evaluate(
`use named arguments`: Guard = Guard.instance,
alignmentVertical: ExpressionProperty<TextAlignmentVertical>? = null,
end: ExpressionProperty<Int>? = null,
fontFamily: ExpressionProperty<String>? = null,
fontFeatureSettings: ExpressionProperty<String>? = null,
@@ -3002,6 +3051,7 @@ fun Text.Range.evaluate(
): Text.Range = Text.Range(
Text.Range.Properties(
actions = properties.actions,
alignmentVertical = alignmentVertical ?: properties.alignmentVertical,
background = properties.background,
border = properties.border,
end = end ?: properties.end,
@@ -0,0 +1,27 @@
@file:Suppress(
"unused",
"UNUSED_PARAMETER",
)
package divkit.dsl
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonValue
import divkit.dsl.annotation.*
import divkit.dsl.core.*
import divkit.dsl.scope.*
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* Possible values: [top], [center], [bottom], [baseline].
*/
@Generated
sealed interface TextAlignmentVertical
@Generated
fun TextAlignmentVertical.asList() = listOf(this)
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pydivkit"
version = "30.14.0"
version = "30.15.0"
description = "DivKit python library"
readme = "README.md"
repository = "https://github.com/divkit/divkit/tree/main/json-builder/python"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@divkitframework/jsonbuilder",
"version": "30.14.0",
"version": "30.15.0",
"description": "DivKit TypeScript JSON Builder",
"main": "./dist/jsonbuilder.js",
"module": "./dist/es/jsonbuilder.js",
+1 -1
View File
@@ -1 +1 @@
30.14.0
30.15.0