Updated version to 32.46.0

commit_hash:5de4dcb932319c0c69772a1f7376f203674d633a
This commit is contained in:
robot-divkit
2026-04-16 14:11:04 +03:00
parent 9c00c7cee9
commit 5f8dc11b34
13 changed files with 184 additions and 35 deletions
+1
View File
@@ -26358,6 +26358,7 @@
"json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/InputValidatorRegex.kt":"divkit/public/json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/InputValidatorRegex.kt",
"json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/IntegerValue.kt":"divkit/public/json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/IntegerValue.kt",
"json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/IntegerVariable.kt":"divkit/public/json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/IntegerVariable.kt",
"json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/ItemIdDestination.kt":"divkit/public/json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/ItemIdDestination.kt",
"json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/LayoutProvider.kt":"divkit/public/json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/LayoutProvider.kt",
"json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/LineStyle.kt":"divkit/public/json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/LineStyle.kt",
"json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/LinearGradient.kt":"divkit/public/json-builder/kotlin/divan-dsl/src/generated/kotlin/divkit/dsl/LinearGradient.kt",
+1 -1
View File
@@ -1,2 +1,2 @@
MARKETING_VERSION = 32.45.0
MARKETING_VERSION = 32.46.0
CURRENT_PROJECT_VERSION = 32
+1 -1
View File
@@ -1,3 +1,3 @@
public enum DivKitInfo {
public static let version = "32.45.0"
public static let version = "32.46.0"
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@divkitframework/divkit",
"version": "32.45.0",
"version": "32.46.0",
"description": "DivKit for the web",
"keywords": [
"server-driven-ui",
@@ -81,7 +81,7 @@ data class Action internal constructor(
*/
val referer: Property<Url>?,
/**
* The ID of the element within which the specified action will be performed.
* The ID of the element whose scope will be used for changing variable values when the action is performed.
*/
val scopeId: Property<String>?,
/**
@@ -178,7 +178,7 @@ data class Action internal constructor(
* @param menuItems Context menu.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param target The tab in which the URL must be opened.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
*/
@@ -220,7 +220,7 @@ fun DivScope.action(
* @param menuItems Context menu.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param target The tab in which the URL must be opened.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
*/
@@ -260,7 +260,7 @@ fun DivScope.actionProps(
* @param menuItems Context menu.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param target The tab in which the URL must be opened.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
*/
@@ -300,7 +300,7 @@ fun TemplateScope.actionRefs(
* @param menuItems Context menu.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param target The tab in which the URL must be opened.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
*/
@@ -342,7 +342,7 @@ fun Action.override(
* @param menuItems Context menu.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param target The tab in which the URL must be opened.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
*/
@@ -384,7 +384,7 @@ fun Action.defer(
* @param menuItems Context menu.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param target The tab in which the URL must be opened.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
*/
@@ -18,7 +18,7 @@ import kotlin.collections.List
import kotlin.collections.Map
/**
* Possible values: [OffsetDestination], [IndexDestination], [StartDestination], [EndDestination].
* Possible values: [OffsetDestination], [IndexDestination], [StartDestination], [EndDestination], [ItemIdDestination].
*/
@Generated
sealed interface ActionScrollDestination
@@ -51,7 +51,7 @@ data class ActionScrollTo internal constructor(
*/
val animated: Property<Boolean>?,
/**
* Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
*/
val destination: Property<ActionScrollDestination>?,
/**
@@ -72,7 +72,7 @@ data class ActionScrollTo internal constructor(
/**
* @param animated Enables scrolling animation.
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param id ID of the element where the action should be performed.
*/
@Generated
@@ -91,7 +91,7 @@ fun DivScope.actionScrollTo(
/**
* @param animated Enables scrolling animation.
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param id ID of the element where the action should be performed.
*/
@Generated
@@ -108,7 +108,7 @@ fun DivScope.actionScrollToProps(
/**
* @param animated Enables scrolling animation.
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param id ID of the element where the action should be performed.
*/
@Generated
@@ -125,7 +125,7 @@ fun TemplateScope.actionScrollToRefs(
/**
* @param animated Enables scrolling animation.
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param id ID of the element where the action should be performed.
*/
@Generated
@@ -144,7 +144,7 @@ fun ActionScrollTo.override(
/**
* @param animated Enables scrolling animation.
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param id ID of the element where the action should be performed.
*/
@Generated
@@ -163,7 +163,7 @@ fun ActionScrollTo.defer(
/**
* @param animated Enables scrolling animation.
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param destination Defines the scrolling end position:<li>`index`: Scroll to the element with the index provided in `value`</li><li>`item_id`: Scroll to the element with identifier provided in `value`</li><li>`offset`: Scroll to the position specified in `value` and measured in `dp` from the start of the container. Applies only in `gallery`;</li><li>`start`: Scroll to the container start;</li><li>`end`: Scroll to the container end.</li>
* @param id ID of the element where the action should be performed.
*/
@Generated
@@ -83,7 +83,7 @@ data class DisappearAction internal constructor(
*/
val referer: Property<Url>?,
/**
* The ID of the element within which the specified action will be performed.
* The ID of the element whose scope will be used for changing variable values when the action is performed.
*/
val scopeId: Property<String>?,
val typed: Property<ActionTyped>?,
@@ -124,7 +124,7 @@ data class DisappearAction internal constructor(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityPercentage Percentage of the visible part of an element that triggers `disappear-action`.
*/
@@ -166,7 +166,7 @@ fun DivScope.disappearAction(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityPercentage Percentage of the visible part of an element that triggers `disappear-action`.
*/
@@ -206,7 +206,7 @@ fun DivScope.disappearActionProps(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityPercentage Percentage of the visible part of an element that triggers `disappear-action`.
*/
@@ -246,7 +246,7 @@ fun TemplateScope.disappearActionRefs(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityPercentage Percentage of the visible part of an element that triggers `disappear-action`.
*/
@@ -288,7 +288,7 @@ fun DisappearAction.override(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityPercentage Percentage of the visible part of an element that triggers `disappear-action`.
*/
@@ -330,7 +330,7 @@ fun DisappearAction.defer(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityPercentage Percentage of the visible part of an element that triggers `disappear-action`.
*/
@@ -0,0 +1,148 @@
@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
/**
* Specifies the element with the given `id` as the scrolling end position.
*
* Can be created using the method [itemIdDestination].
*
* Required parameters: `value, type`.
*/
@Generated
@ExposedCopyVisibility
data class ItemIdDestination internal constructor(
@JsonIgnore
val properties: Properties,
) : ActionScrollDestination {
@JsonAnyGetter
internal fun getJsonProperties(): Map<String, Any> = properties.mergeWith(
mapOf("type" to "item_id")
)
operator fun plus(additive: Properties): ItemIdDestination = ItemIdDestination(
Properties(
value = additive.value ?: properties.value,
)
)
@ExposedCopyVisibility
data class Properties internal constructor(
/**
* Identifier of the container child element to scroll to.
*/
val value: Property<String>?,
) {
internal fun mergeWith(properties: Map<String, Any>): Map<String, Any> {
val result = mutableMapOf<String, Any>()
result.putAll(properties)
result.tryPutProperty("value", value)
return result
}
}
}
/**
* @param value Identifier of the container child element to scroll to.
*/
@Generated
fun DivScope.itemIdDestination(
`use named arguments`: Guard = Guard.instance,
value: String? = null,
): ItemIdDestination = ItemIdDestination(
ItemIdDestination.Properties(
value = valueOrNull(value),
)
)
/**
* @param value Identifier of the container child element to scroll to.
*/
@Generated
fun DivScope.itemIdDestinationProps(
`use named arguments`: Guard = Guard.instance,
value: String? = null,
) = ItemIdDestination.Properties(
value = valueOrNull(value),
)
/**
* @param value Identifier of the container child element to scroll to.
*/
@Generated
fun TemplateScope.itemIdDestinationRefs(
`use named arguments`: Guard = Guard.instance,
value: ReferenceProperty<String>? = null,
) = ItemIdDestination.Properties(
value = value,
)
/**
* @param value Identifier of the container child element to scroll to.
*/
@Generated
fun ItemIdDestination.override(
`use named arguments`: Guard = Guard.instance,
value: String? = null,
): ItemIdDestination = ItemIdDestination(
ItemIdDestination.Properties(
value = valueOrNull(value) ?: properties.value,
)
)
/**
* @param value Identifier of the container child element to scroll to.
*/
@Generated
fun ItemIdDestination.defer(
`use named arguments`: Guard = Guard.instance,
value: ReferenceProperty<String>? = null,
): ItemIdDestination = ItemIdDestination(
ItemIdDestination.Properties(
value = value ?: properties.value,
)
)
/**
* @param value Identifier of the container child element to scroll to.
*/
@Generated
fun ItemIdDestination.modify(
`use named arguments`: Guard = Guard.instance,
value: Property<String>? = null,
): ItemIdDestination = ItemIdDestination(
ItemIdDestination.Properties(
value = value ?: properties.value,
)
)
/**
* @param value Identifier of the container child element to scroll to.
*/
@Generated
fun ItemIdDestination.evaluate(
`use named arguments`: Guard = Guard.instance,
value: ExpressionProperty<String>? = null,
): ItemIdDestination = ItemIdDestination(
ItemIdDestination.Properties(
value = value ?: properties.value,
)
)
@Generated
fun ItemIdDestination.asList() = listOf(this)
@@ -78,7 +78,7 @@ data class VisibilityAction internal constructor(
*/
val referer: Property<Url>?,
/**
* The ID of the element within which the specified action will be performed.
* The ID of the element whose scope will be used for changing variable values when the action is performed.
*/
val scopeId: Property<String>?,
val typed: Property<ActionTyped>?,
@@ -123,7 +123,7 @@ data class VisibilityAction internal constructor(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityDuration Time in milliseconds during which an element must be visible to trigger `visibility-action`.
* @param visibilityPercentage Percentage of the visible part of an element that triggers `visibility-action`.
@@ -165,7 +165,7 @@ fun DivScope.visibilityAction(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityDuration Time in milliseconds during which an element must be visible to trigger `visibility-action`.
* @param visibilityPercentage Percentage of the visible part of an element that triggers `visibility-action`.
@@ -205,7 +205,7 @@ fun DivScope.visibilityActionProps(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityDuration Time in milliseconds during which an element must be visible to trigger `visibility-action`.
* @param visibilityPercentage Percentage of the visible part of an element that triggers `visibility-action`.
@@ -245,7 +245,7 @@ fun TemplateScope.visibilityActionRefs(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityDuration Time in milliseconds during which an element must be visible to trigger `visibility-action`.
* @param visibilityPercentage Percentage of the visible part of an element that triggers `visibility-action`.
@@ -287,7 +287,7 @@ fun VisibilityAction.override(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityDuration Time in milliseconds during which an element must be visible to trigger `visibility-action`.
* @param visibilityPercentage Percentage of the visible part of an element that triggers `visibility-action`.
@@ -329,7 +329,7 @@ fun VisibilityAction.defer(
* @param logLimit Limit on the number of loggings. If `0`, the limit is removed.
* @param payload Additional parameters, passed to the host application.
* @param referer Referer URL for logging.
* @param scopeId The ID of the element within which the specified action will be performed.
* @param scopeId The ID of the element whose scope will be used for changing variable values when the action is performed.
* @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction).
* @param visibilityDuration Time in milliseconds during which an element must be visible to trigger `visibility-action`.
* @param visibilityPercentage Percentage of the visible part of an element that triggers `visibility-action`.
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "pydivkit"
version = "32.45.0"
version = "32.46.0"
description = "DivKit python library"
readme = "README.md"
keywords = ["divkit", "sdk"]
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@divkitframework/jsonbuilder",
"version": "32.45.0",
"version": "32.46.0",
"description": "DivKit TypeScript JSON Builder",
"main": "./dist/jsonbuilder.js",
"module": "./dist/es/jsonbuilder.js",
+1 -1
View File
@@ -1 +1 @@
32.45.0
32.46.0