From ac0643ead0dc18669cdc54a37b153db02ddcb945 Mon Sep 17 00:00:00 2001 From: robot-divkit Date: Wed, 14 Feb 2024 12:53:01 +0300 Subject: [PATCH] Updated version to 29.7.0 --- client/ios/Configurations/Version.xcconfig | 2 +- client/ios/DivKit/DivKitInfo.swift | 2 +- client/web/divkit/package.json | 2 +- .../src/generated/kotlin/divkit/dsl/Text.kt | 25 +++++++++++++++++++ json-builder/python/pyproject.toml | 2 +- json-builder/typescript/package.json | 2 +- version | 2 +- 7 files changed, 31 insertions(+), 6 deletions(-) diff --git a/client/ios/Configurations/Version.xcconfig b/client/ios/Configurations/Version.xcconfig index 4c4f49be2..fdf81b2c1 100644 --- a/client/ios/Configurations/Version.xcconfig +++ b/client/ios/Configurations/Version.xcconfig @@ -1,2 +1,2 @@ -MARKETING_VERSION = 29.6.0 +MARKETING_VERSION = 29.7.0 CURRENT_PROJECT_VERSION = 29 diff --git a/client/ios/DivKit/DivKitInfo.swift b/client/ios/DivKit/DivKitInfo.swift index f1968b631..144ca86d4 100644 --- a/client/ios/DivKit/DivKitInfo.swift +++ b/client/ios/DivKit/DivKitInfo.swift @@ -1,3 +1,3 @@ public enum DivKitInfo { - public static let version = "29.6.0" + public static let version = "29.7.0" } diff --git a/client/web/divkit/package.json b/client/web/divkit/package.json index 50792171d..2bf09e087 100644 --- a/client/web/divkit/package.json +++ b/client/web/divkit/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/divkit", - "version": "29.6.0", + "version": "29.7.0", "description": "DivKit for the web", "keywords": [ "server-driven-ui", diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt index 4a44f7d4a..1b34b4f50 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt @@ -469,6 +469,7 @@ class Text internal constructor( operator fun plus(additive: Properties): Image = Image( Properties( height = additive.height ?: properties.height, + preloadRequired = additive.preloadRequired ?: properties.preloadRequired, start = additive.start ?: properties.start, tintColor = additive.tintColor ?: properties.tintColor, tintMode = additive.tintMode ?: properties.tintMode, @@ -483,6 +484,11 @@ class Text internal constructor( * Default value: `{"type": "fixed","value":20}`. */ val height: Property?, + /** + * Background image must be loaded before the display. + * Default value: `false`. + */ + val preloadRequired: Property?, /** * 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. */ @@ -510,6 +516,7 @@ class Text internal constructor( val result = mutableMapOf() result.putAll(properties) result.tryPutProperty("height", height) + result.tryPutProperty("preload_required", preloadRequired) result.tryPutProperty("start", start) result.tryPutProperty("tint_color", tintColor) result.tryPutProperty("tint_mode", tintMode) @@ -2204,6 +2211,7 @@ fun Text.Ellipsis.asList() = listOf(this) /** * @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. * @param tintColor New color of a contour image. * @param tintMode Blend mode of the color specified in `tint_color`. @@ -2214,6 +2222,7 @@ fun Text.Ellipsis.asList() = listOf(this) fun DivScope.textImage( `use named arguments`: Guard = Guard.instance, height: FixedSize? = null, + preloadRequired: Boolean? = null, start: Int? = null, tintColor: Color? = null, tintMode: BlendMode? = null, @@ -2222,6 +2231,7 @@ fun DivScope.textImage( ): Text.Image = Text.Image( Text.Image.Properties( height = valueOrNull(height), + preloadRequired = valueOrNull(preloadRequired), start = valueOrNull(start), tintColor = valueOrNull(tintColor), tintMode = valueOrNull(tintMode), @@ -2232,6 +2242,7 @@ fun DivScope.textImage( /** * @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. * @param tintColor New color of a contour image. * @param tintMode Blend mode of the color specified in `tint_color`. @@ -2242,6 +2253,7 @@ fun DivScope.textImage( fun DivScope.textImageProps( `use named arguments`: Guard = Guard.instance, height: FixedSize? = null, + preloadRequired: Boolean? = null, start: Int? = null, tintColor: Color? = null, tintMode: BlendMode? = null, @@ -2249,6 +2261,7 @@ fun DivScope.textImageProps( width: FixedSize? = null, ) = Text.Image.Properties( height = valueOrNull(height), + preloadRequired = valueOrNull(preloadRequired), start = valueOrNull(start), tintColor = valueOrNull(tintColor), tintMode = valueOrNull(tintMode), @@ -2258,6 +2271,7 @@ fun DivScope.textImageProps( /** * @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. * @param tintColor New color of a contour image. * @param tintMode Blend mode of the color specified in `tint_color`. @@ -2268,6 +2282,7 @@ fun DivScope.textImageProps( fun TemplateScope.textImageRefs( `use named arguments`: Guard = Guard.instance, height: ReferenceProperty? = null, + preloadRequired: ReferenceProperty? = null, start: ReferenceProperty? = null, tintColor: ReferenceProperty? = null, tintMode: ReferenceProperty? = null, @@ -2275,6 +2290,7 @@ fun TemplateScope.textImageRefs( width: ReferenceProperty? = null, ) = Text.Image.Properties( height = height, + preloadRequired = preloadRequired, start = start, tintColor = tintColor, tintMode = tintMode, @@ -2284,6 +2300,7 @@ fun TemplateScope.textImageRefs( /** * @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. * @param tintColor New color of a contour image. * @param tintMode Blend mode of the color specified in `tint_color`. @@ -2294,6 +2311,7 @@ fun TemplateScope.textImageRefs( fun Text.Image.override( `use named arguments`: Guard = Guard.instance, height: FixedSize? = null, + preloadRequired: Boolean? = null, start: Int? = null, tintColor: Color? = null, tintMode: BlendMode? = null, @@ -2302,6 +2320,7 @@ fun Text.Image.override( ): Text.Image = Text.Image( Text.Image.Properties( height = valueOrNull(height) ?: properties.height, + preloadRequired = valueOrNull(preloadRequired) ?: properties.preloadRequired, start = valueOrNull(start) ?: properties.start, tintColor = valueOrNull(tintColor) ?: properties.tintColor, tintMode = valueOrNull(tintMode) ?: properties.tintMode, @@ -2312,6 +2331,7 @@ fun Text.Image.override( /** * @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. * @param tintColor New color of a contour image. * @param tintMode Blend mode of the color specified in `tint_color`. @@ -2322,6 +2342,7 @@ fun Text.Image.override( fun Text.Image.defer( `use named arguments`: Guard = Guard.instance, height: ReferenceProperty? = null, + preloadRequired: ReferenceProperty? = null, start: ReferenceProperty? = null, tintColor: ReferenceProperty? = null, tintMode: ReferenceProperty? = null, @@ -2330,6 +2351,7 @@ fun Text.Image.defer( ): Text.Image = Text.Image( Text.Image.Properties( height = height ?: properties.height, + preloadRequired = preloadRequired ?: properties.preloadRequired, start = start ?: properties.start, tintColor = tintColor ?: properties.tintColor, tintMode = tintMode ?: properties.tintMode, @@ -2339,6 +2361,7 @@ fun Text.Image.defer( ) /** + * @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. * @param tintMode Blend mode of the color specified in `tint_color`. @@ -2347,6 +2370,7 @@ fun Text.Image.defer( @Generated fun Text.Image.evaluate( `use named arguments`: Guard = Guard.instance, + preloadRequired: ExpressionProperty? = null, start: ExpressionProperty? = null, tintColor: ExpressionProperty? = null, tintMode: ExpressionProperty? = null, @@ -2354,6 +2378,7 @@ fun Text.Image.evaluate( ): Text.Image = Text.Image( Text.Image.Properties( height = properties.height, + preloadRequired = preloadRequired ?: properties.preloadRequired, start = start ?: properties.start, tintColor = tintColor ?: properties.tintColor, tintMode = tintMode ?: properties.tintMode, diff --git a/json-builder/python/pyproject.toml b/json-builder/python/pyproject.toml index bb5177200..9642eaac3 100644 --- a/json-builder/python/pyproject.toml +++ b/json-builder/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydivkit" -version = "29.6.0" +version = "29.7.0" description = "DivKit python library" readme = "README.md" repository = "https://github.com/divkit/divkit/tree/main/json-builder/python" diff --git a/json-builder/typescript/package.json b/json-builder/typescript/package.json index b77a0bd57..05c7d8204 100644 --- a/json-builder/typescript/package.json +++ b/json-builder/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/jsonbuilder", - "version": "29.6.0", + "version": "29.7.0", "description": "DivKit TypeScript JSON Builder", "main": "./dist/jsonbuilder.js", "module": "./dist/es/jsonbuilder.js", diff --git a/version b/version index 05825fef0..bfa22ee30 100644 --- a/version +++ b/version @@ -1 +1 @@ -29.6.0 +29.7.0