diff --git a/client/ios/Configurations/Version.xcconfig b/client/ios/Configurations/Version.xcconfig index 252c06e0e..e2f2091eb 100644 --- a/client/ios/Configurations/Version.xcconfig +++ b/client/ios/Configurations/Version.xcconfig @@ -1,2 +1,2 @@ -MARKETING_VERSION = 28.12.0 +MARKETING_VERSION = 28.13.0 CURRENT_PROJECT_VERSION = 28 diff --git a/client/ios/DivKit/DivKitInfo.swift b/client/ios/DivKit/DivKitInfo.swift index 572f211ac..162f6eeed 100644 --- a/client/ios/DivKit/DivKitInfo.swift +++ b/client/ios/DivKit/DivKitInfo.swift @@ -1,3 +1,3 @@ public enum DivKitInfo { - public static let version = "28.12.0" + public static let version = "28.13.0" } diff --git a/client/web/divkit/package.json b/client/web/divkit/package.json index dabd5620d..20da0890f 100644 --- a/client/web/divkit/package.json +++ b/client/web/divkit/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/divkit", - "version": "28.12.0", + "version": "28.13.0", "description": "DivKit for the web", "keywords": [ "server-driven-ui", diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Action.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Action.kt index 51e3334d4..b10e92015 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Action.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Action.kt @@ -35,6 +35,7 @@ class Action internal constructor( operator fun plus(additive: Properties): Action = Action( Properties( downloadCallbacks = additive.downloadCallbacks ?: properties.downloadCallbacks, + isEnabled = additive.isEnabled ?: properties.isEnabled, logId = additive.logId ?: properties.logId, logUrl = additive.logUrl ?: properties.logUrl, menuItems = additive.menuItems ?: properties.menuItems, @@ -51,6 +52,11 @@ class Action internal constructor( * Callbacks that are called after [data loading](../../interaction.dita#loading-data). */ val downloadCallbacks: Property?, + /** + * This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). + * Default value: `true`. + */ + val isEnabled: Property?, /** * Logging ID. */ @@ -85,6 +91,7 @@ class Action internal constructor( val result = mutableMapOf() result.putAll(properties) result.tryPutProperty("download_callbacks", downloadCallbacks) + result.tryPutProperty("is_enabled", isEnabled) result.tryPutProperty("log_id", logId) result.tryPutProperty("log_url", logUrl) result.tryPutProperty("menu_items", menuItems) @@ -155,6 +162,7 @@ class Action internal constructor( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logUrl URL for logging. * @param menuItems Context menu. @@ -167,6 +175,7 @@ class Action internal constructor( fun DivScope.action( `use named arguments`: Guard = Guard.instance, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logUrl: Url? = null, menuItems: List? = null, @@ -178,6 +187,7 @@ fun DivScope.action( ): Action = Action( Action.Properties( downloadCallbacks = valueOrNull(downloadCallbacks), + isEnabled = valueOrNull(isEnabled), logId = valueOrNull(logId), logUrl = valueOrNull(logUrl), menuItems = valueOrNull(menuItems), @@ -191,6 +201,7 @@ fun DivScope.action( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logUrl URL for logging. * @param menuItems Context menu. @@ -203,6 +214,7 @@ fun DivScope.action( fun DivScope.actionProps( `use named arguments`: Guard = Guard.instance, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logUrl: Url? = null, menuItems: List? = null, @@ -213,6 +225,7 @@ fun DivScope.actionProps( url: Url? = null, ) = Action.Properties( downloadCallbacks = valueOrNull(downloadCallbacks), + isEnabled = valueOrNull(isEnabled), logId = valueOrNull(logId), logUrl = valueOrNull(logUrl), menuItems = valueOrNull(menuItems), @@ -225,6 +238,7 @@ fun DivScope.actionProps( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logUrl URL for logging. * @param menuItems Context menu. @@ -237,6 +251,7 @@ fun DivScope.actionProps( fun TemplateScope.actionRefs( `use named arguments`: Guard = Guard.instance, downloadCallbacks: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, logId: ReferenceProperty? = null, logUrl: ReferenceProperty? = null, menuItems: ReferenceProperty>? = null, @@ -247,6 +262,7 @@ fun TemplateScope.actionRefs( url: ReferenceProperty? = null, ) = Action.Properties( downloadCallbacks = downloadCallbacks, + isEnabled = isEnabled, logId = logId, logUrl = logUrl, menuItems = menuItems, @@ -259,6 +275,7 @@ fun TemplateScope.actionRefs( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logUrl URL for logging. * @param menuItems Context menu. @@ -271,6 +288,7 @@ fun TemplateScope.actionRefs( fun Action.override( `use named arguments`: Guard = Guard.instance, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logUrl: Url? = null, menuItems: List? = null, @@ -282,6 +300,7 @@ fun Action.override( ): Action = Action( Action.Properties( downloadCallbacks = valueOrNull(downloadCallbacks) ?: properties.downloadCallbacks, + isEnabled = valueOrNull(isEnabled) ?: properties.isEnabled, logId = valueOrNull(logId) ?: properties.logId, logUrl = valueOrNull(logUrl) ?: properties.logUrl, menuItems = valueOrNull(menuItems) ?: properties.menuItems, @@ -295,6 +314,7 @@ fun Action.override( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logUrl URL for logging. * @param menuItems Context menu. @@ -307,6 +327,7 @@ fun Action.override( fun Action.defer( `use named arguments`: Guard = Guard.instance, downloadCallbacks: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, logId: ReferenceProperty? = null, logUrl: ReferenceProperty? = null, menuItems: ReferenceProperty>? = null, @@ -318,6 +339,7 @@ fun Action.defer( ): Action = Action( Action.Properties( downloadCallbacks = downloadCallbacks ?: properties.downloadCallbacks, + isEnabled = isEnabled ?: properties.isEnabled, logId = logId ?: properties.logId, logUrl = logUrl ?: properties.logUrl, menuItems = menuItems ?: properties.menuItems, @@ -330,6 +352,7 @@ fun Action.defer( ) /** + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logUrl URL for logging. * @param referer Referer URL for logging. * @param target The tab in which the URL must be opened. @@ -338,6 +361,7 @@ fun Action.defer( @Generated fun Action.evaluate( `use named arguments`: Guard = Guard.instance, + isEnabled: ExpressionProperty? = null, logUrl: ExpressionProperty? = null, referer: ExpressionProperty? = null, target: ExpressionProperty? = null, @@ -345,6 +369,7 @@ fun Action.evaluate( ): Action = Action( Action.Properties( downloadCallbacks = properties.downloadCallbacks, + isEnabled = isEnabled ?: properties.isEnabled, logId = properties.logId, logUrl = logUrl ?: properties.logUrl, menuItems = properties.menuItems, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/DisappearAction.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/DisappearAction.kt index 5b6a7e754..80c3f692c 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/DisappearAction.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/DisappearAction.kt @@ -36,6 +36,7 @@ class DisappearAction internal constructor( Properties( disappearDuration = additive.disappearDuration ?: properties.disappearDuration, downloadCallbacks = additive.downloadCallbacks ?: properties.downloadCallbacks, + isEnabled = additive.isEnabled ?: properties.isEnabled, logId = additive.logId ?: properties.logId, logLimit = additive.logLimit ?: properties.logLimit, payload = additive.payload ?: properties.payload, @@ -56,6 +57,11 @@ class DisappearAction internal constructor( * Callbacks that are called after [data loading](../../interaction.dita#loading-data). */ val downloadCallbacks: Property?, + /** + * This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). + * Default value: `true`. + */ + val isEnabled: Property?, /** * Logging ID. */ @@ -89,6 +95,7 @@ class DisappearAction internal constructor( result.putAll(properties) result.tryPutProperty("disappear_duration", disappearDuration) result.tryPutProperty("download_callbacks", downloadCallbacks) + result.tryPutProperty("is_enabled", isEnabled) result.tryPutProperty("log_id", logId) result.tryPutProperty("log_limit", logLimit) result.tryPutProperty("payload", payload) @@ -104,6 +111,7 @@ class DisappearAction internal constructor( /** * @param disappearDuration Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`. * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -116,6 +124,7 @@ fun DivScope.disappearAction( `use named arguments`: Guard = Guard.instance, disappearDuration: Int? = null, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logLimit: Int? = null, payload: Map? = null, @@ -127,6 +136,7 @@ fun DivScope.disappearAction( DisappearAction.Properties( disappearDuration = valueOrNull(disappearDuration), downloadCallbacks = valueOrNull(downloadCallbacks), + isEnabled = valueOrNull(isEnabled), logId = valueOrNull(logId), logLimit = valueOrNull(logLimit), payload = valueOrNull(payload), @@ -140,6 +150,7 @@ fun DivScope.disappearAction( /** * @param disappearDuration Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`. * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -152,6 +163,7 @@ fun DivScope.disappearActionProps( `use named arguments`: Guard = Guard.instance, disappearDuration: Int? = null, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logLimit: Int? = null, payload: Map? = null, @@ -162,6 +174,7 @@ fun DivScope.disappearActionProps( ) = DisappearAction.Properties( disappearDuration = valueOrNull(disappearDuration), downloadCallbacks = valueOrNull(downloadCallbacks), + isEnabled = valueOrNull(isEnabled), logId = valueOrNull(logId), logLimit = valueOrNull(logLimit), payload = valueOrNull(payload), @@ -174,6 +187,7 @@ fun DivScope.disappearActionProps( /** * @param disappearDuration Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`. * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -186,6 +200,7 @@ fun TemplateScope.disappearActionRefs( `use named arguments`: Guard = Guard.instance, disappearDuration: ReferenceProperty? = null, downloadCallbacks: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, logId: ReferenceProperty? = null, logLimit: ReferenceProperty? = null, payload: ReferenceProperty>? = null, @@ -196,6 +211,7 @@ fun TemplateScope.disappearActionRefs( ) = DisappearAction.Properties( disappearDuration = disappearDuration, downloadCallbacks = downloadCallbacks, + isEnabled = isEnabled, logId = logId, logLimit = logLimit, payload = payload, @@ -208,6 +224,7 @@ fun TemplateScope.disappearActionRefs( /** * @param disappearDuration Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`. * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -220,6 +237,7 @@ fun DisappearAction.override( `use named arguments`: Guard = Guard.instance, disappearDuration: Int? = null, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logLimit: Int? = null, payload: Map? = null, @@ -231,6 +249,7 @@ fun DisappearAction.override( DisappearAction.Properties( disappearDuration = valueOrNull(disappearDuration) ?: properties.disappearDuration, downloadCallbacks = valueOrNull(downloadCallbacks) ?: properties.downloadCallbacks, + isEnabled = valueOrNull(isEnabled) ?: properties.isEnabled, logId = valueOrNull(logId) ?: properties.logId, logLimit = valueOrNull(logLimit) ?: properties.logLimit, payload = valueOrNull(payload) ?: properties.payload, @@ -244,6 +263,7 @@ fun DisappearAction.override( /** * @param disappearDuration Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`. * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -256,6 +276,7 @@ fun DisappearAction.defer( `use named arguments`: Guard = Guard.instance, disappearDuration: ReferenceProperty? = null, downloadCallbacks: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, logId: ReferenceProperty? = null, logLimit: ReferenceProperty? = null, payload: ReferenceProperty>? = null, @@ -267,6 +288,7 @@ fun DisappearAction.defer( DisappearAction.Properties( disappearDuration = disappearDuration ?: properties.disappearDuration, downloadCallbacks = downloadCallbacks ?: properties.downloadCallbacks, + isEnabled = isEnabled ?: properties.isEnabled, logId = logId ?: properties.logId, logLimit = logLimit ?: properties.logLimit, payload = payload ?: properties.payload, @@ -279,6 +301,7 @@ fun DisappearAction.defer( /** * @param disappearDuration Time in milliseconds during which an element must be outside the visible area to trigger `disappear-action`. + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param referer Referer URL for logging. * @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction.dita). @@ -288,6 +311,7 @@ fun DisappearAction.defer( fun DisappearAction.evaluate( `use named arguments`: Guard = Guard.instance, disappearDuration: ExpressionProperty? = null, + isEnabled: ExpressionProperty? = null, logLimit: ExpressionProperty? = null, referer: ExpressionProperty? = null, url: ExpressionProperty? = null, @@ -296,6 +320,7 @@ fun DisappearAction.evaluate( DisappearAction.Properties( disappearDuration = disappearDuration ?: properties.disappearDuration, downloadCallbacks = properties.downloadCallbacks, + isEnabled = isEnabled ?: properties.isEnabled, logId = properties.logId, logLimit = logLimit ?: properties.logLimit, payload = properties.payload, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/VisibilityAction.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/VisibilityAction.kt index b1beffcdc..d73d1bf0a 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/VisibilityAction.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/VisibilityAction.kt @@ -35,6 +35,7 @@ class VisibilityAction internal constructor( operator fun plus(additive: Properties): VisibilityAction = VisibilityAction( Properties( downloadCallbacks = additive.downloadCallbacks ?: properties.downloadCallbacks, + isEnabled = additive.isEnabled ?: properties.isEnabled, logId = additive.logId ?: properties.logId, logLimit = additive.logLimit ?: properties.logLimit, payload = additive.payload ?: properties.payload, @@ -51,6 +52,11 @@ class VisibilityAction internal constructor( * Callbacks that are called after [data loading](../../interaction.dita#loading-data). */ val downloadCallbacks: Property?, + /** + * This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). + * Default value: `true`. + */ + val isEnabled: Property?, /** * Logging ID. */ @@ -88,6 +94,7 @@ class VisibilityAction internal constructor( val result = mutableMapOf() result.putAll(properties) result.tryPutProperty("download_callbacks", downloadCallbacks) + result.tryPutProperty("is_enabled", isEnabled) result.tryPutProperty("log_id", logId) result.tryPutProperty("log_limit", logLimit) result.tryPutProperty("payload", payload) @@ -103,6 +110,7 @@ class VisibilityAction internal constructor( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -115,6 +123,7 @@ class VisibilityAction internal constructor( fun DivScope.visibilityAction( `use named arguments`: Guard = Guard.instance, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logLimit: Int? = null, payload: Map? = null, @@ -126,6 +135,7 @@ fun DivScope.visibilityAction( ): VisibilityAction = VisibilityAction( VisibilityAction.Properties( downloadCallbacks = valueOrNull(downloadCallbacks), + isEnabled = valueOrNull(isEnabled), logId = valueOrNull(logId), logLimit = valueOrNull(logLimit), payload = valueOrNull(payload), @@ -139,6 +149,7 @@ fun DivScope.visibilityAction( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -151,6 +162,7 @@ fun DivScope.visibilityAction( fun DivScope.visibilityActionProps( `use named arguments`: Guard = Guard.instance, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logLimit: Int? = null, payload: Map? = null, @@ -161,6 +173,7 @@ fun DivScope.visibilityActionProps( visibilityPercentage: Int? = null, ) = VisibilityAction.Properties( downloadCallbacks = valueOrNull(downloadCallbacks), + isEnabled = valueOrNull(isEnabled), logId = valueOrNull(logId), logLimit = valueOrNull(logLimit), payload = valueOrNull(payload), @@ -173,6 +186,7 @@ fun DivScope.visibilityActionProps( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -185,6 +199,7 @@ fun DivScope.visibilityActionProps( fun TemplateScope.visibilityActionRefs( `use named arguments`: Guard = Guard.instance, downloadCallbacks: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, logId: ReferenceProperty? = null, logLimit: ReferenceProperty? = null, payload: ReferenceProperty>? = null, @@ -195,6 +210,7 @@ fun TemplateScope.visibilityActionRefs( visibilityPercentage: ReferenceProperty? = null, ) = VisibilityAction.Properties( downloadCallbacks = downloadCallbacks, + isEnabled = isEnabled, logId = logId, logLimit = logLimit, payload = payload, @@ -207,6 +223,7 @@ fun TemplateScope.visibilityActionRefs( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -219,6 +236,7 @@ fun TemplateScope.visibilityActionRefs( fun VisibilityAction.override( `use named arguments`: Guard = Guard.instance, downloadCallbacks: DownloadCallbacks? = null, + isEnabled: Boolean? = null, logId: String? = null, logLimit: Int? = null, payload: Map? = null, @@ -230,6 +248,7 @@ fun VisibilityAction.override( ): VisibilityAction = VisibilityAction( VisibilityAction.Properties( downloadCallbacks = valueOrNull(downloadCallbacks) ?: properties.downloadCallbacks, + isEnabled = valueOrNull(isEnabled) ?: properties.isEnabled, logId = valueOrNull(logId) ?: properties.logId, logLimit = valueOrNull(logLimit) ?: properties.logLimit, payload = valueOrNull(payload) ?: properties.payload, @@ -243,6 +262,7 @@ fun VisibilityAction.override( /** * @param downloadCallbacks Callbacks that are called after [data loading](../../interaction.dita#loading-data). + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logId Logging ID. * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param payload Additional parameters, passed to the host application. @@ -255,6 +275,7 @@ fun VisibilityAction.override( fun VisibilityAction.defer( `use named arguments`: Guard = Guard.instance, downloadCallbacks: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, logId: ReferenceProperty? = null, logLimit: ReferenceProperty? = null, payload: ReferenceProperty>? = null, @@ -266,6 +287,7 @@ fun VisibilityAction.defer( ): VisibilityAction = VisibilityAction( VisibilityAction.Properties( downloadCallbacks = downloadCallbacks ?: properties.downloadCallbacks, + isEnabled = isEnabled ?: properties.isEnabled, logId = logId ?: properties.logId, logLimit = logLimit ?: properties.logLimit, payload = payload ?: properties.payload, @@ -278,6 +300,7 @@ fun VisibilityAction.defer( ) /** + * @param isEnabled This parameter allows you to disable the action for any reason. When an action is disabled, it stops responding to the event associated with it (click, change in visibility, etc.). * @param logLimit Limit on the number of loggings. If `0`, the limit is removed. * @param referer Referer URL for logging. * @param url URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with elements](../../interaction.dita). @@ -287,6 +310,7 @@ fun VisibilityAction.defer( @Generated fun VisibilityAction.evaluate( `use named arguments`: Guard = Guard.instance, + isEnabled: ExpressionProperty? = null, logLimit: ExpressionProperty? = null, referer: ExpressionProperty? = null, url: ExpressionProperty? = null, @@ -295,6 +319,7 @@ fun VisibilityAction.evaluate( ): VisibilityAction = VisibilityAction( VisibilityAction.Properties( downloadCallbacks = properties.downloadCallbacks, + isEnabled = isEnabled ?: properties.isEnabled, logId = properties.logId, logLimit = logLimit ?: properties.logLimit, payload = properties.payload, diff --git a/json-builder/python/pyproject.toml b/json-builder/python/pyproject.toml index cfed1b805..41b57d299 100644 --- a/json-builder/python/pyproject.toml +++ b/json-builder/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydivkit" -version = "28.12.0" +version = "28.13.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 8e8751d8a..fa4808370 100644 --- a/json-builder/typescript/package.json +++ b/json-builder/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/jsonbuilder", - "version": "28.12.0", + "version": "28.13.0", "description": "DivKit TypeScript JSON Builder", "main": "./dist/jsonbuilder.js", "module": "./dist/es/jsonbuilder.js", diff --git a/version b/version index 37354f1a7..55259dd67 100644 --- a/version +++ b/version @@ -1 +1 @@ -28.12.0 +28.13.0