mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
Updated version to 28.13.0
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
MARKETING_VERSION = 28.12.0
|
||||
MARKETING_VERSION = 28.13.0
|
||||
CURRENT_PROJECT_VERSION = 28
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
public enum DivKitInfo {
|
||||
public static let version = "28.12.0"
|
||||
public static let version = "28.13.0"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@divkitframework/divkit",
|
||||
"version": "28.12.0",
|
||||
"version": "28.13.0",
|
||||
"description": "DivKit for the web",
|
||||
"keywords": [
|
||||
"server-driven-ui",
|
||||
|
||||
@@ -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<DownloadCallbacks>?,
|
||||
/**
|
||||
* 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<Boolean>?,
|
||||
/**
|
||||
* Logging ID.
|
||||
*/
|
||||
@@ -85,6 +91,7 @@ class Action internal constructor(
|
||||
val result = mutableMapOf<String, Any>()
|
||||
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<Action.MenuItem>? = 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<Action.MenuItem>? = 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<DownloadCallbacks>? = null,
|
||||
isEnabled: ReferenceProperty<Boolean>? = null,
|
||||
logId: ReferenceProperty<String>? = null,
|
||||
logUrl: ReferenceProperty<Url>? = null,
|
||||
menuItems: ReferenceProperty<List<Action.MenuItem>>? = null,
|
||||
@@ -247,6 +262,7 @@ fun TemplateScope.actionRefs(
|
||||
url: ReferenceProperty<Url>? = 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<Action.MenuItem>? = 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<DownloadCallbacks>? = null,
|
||||
isEnabled: ReferenceProperty<Boolean>? = null,
|
||||
logId: ReferenceProperty<String>? = null,
|
||||
logUrl: ReferenceProperty<Url>? = null,
|
||||
menuItems: ReferenceProperty<List<Action.MenuItem>>? = 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<Boolean>? = null,
|
||||
logUrl: ExpressionProperty<Url>? = null,
|
||||
referer: ExpressionProperty<Url>? = null,
|
||||
target: ExpressionProperty<Action.Target>? = 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,
|
||||
|
||||
@@ -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<DownloadCallbacks>?,
|
||||
/**
|
||||
* 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<Boolean>?,
|
||||
/**
|
||||
* 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<String, Any>? = 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<String, Any>? = 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<Int>? = null,
|
||||
downloadCallbacks: ReferenceProperty<DownloadCallbacks>? = null,
|
||||
isEnabled: ReferenceProperty<Boolean>? = null,
|
||||
logId: ReferenceProperty<String>? = null,
|
||||
logLimit: ReferenceProperty<Int>? = null,
|
||||
payload: ReferenceProperty<Map<String, Any>>? = 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<String, Any>? = 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<Int>? = null,
|
||||
downloadCallbacks: ReferenceProperty<DownloadCallbacks>? = null,
|
||||
isEnabled: ReferenceProperty<Boolean>? = null,
|
||||
logId: ReferenceProperty<String>? = null,
|
||||
logLimit: ReferenceProperty<Int>? = null,
|
||||
payload: ReferenceProperty<Map<String, Any>>? = 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<Int>? = null,
|
||||
isEnabled: ExpressionProperty<Boolean>? = null,
|
||||
logLimit: ExpressionProperty<Int>? = null,
|
||||
referer: ExpressionProperty<Url>? = null,
|
||||
url: ExpressionProperty<Url>? = 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,
|
||||
|
||||
@@ -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<DownloadCallbacks>?,
|
||||
/**
|
||||
* 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<Boolean>?,
|
||||
/**
|
||||
* Logging ID.
|
||||
*/
|
||||
@@ -88,6 +94,7 @@ class VisibilityAction internal constructor(
|
||||
val result = mutableMapOf<String, Any>()
|
||||
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<String, Any>? = 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<String, Any>? = 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<DownloadCallbacks>? = null,
|
||||
isEnabled: ReferenceProperty<Boolean>? = null,
|
||||
logId: ReferenceProperty<String>? = null,
|
||||
logLimit: ReferenceProperty<Int>? = null,
|
||||
payload: ReferenceProperty<Map<String, Any>>? = null,
|
||||
@@ -195,6 +210,7 @@ fun TemplateScope.visibilityActionRefs(
|
||||
visibilityPercentage: ReferenceProperty<Int>? = 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<String, Any>? = 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<DownloadCallbacks>? = null,
|
||||
isEnabled: ReferenceProperty<Boolean>? = null,
|
||||
logId: ReferenceProperty<String>? = null,
|
||||
logLimit: ReferenceProperty<Int>? = null,
|
||||
payload: ReferenceProperty<Map<String, Any>>? = 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<Boolean>? = null,
|
||||
logLimit: ExpressionProperty<Int>? = null,
|
||||
referer: ExpressionProperty<Url>? = null,
|
||||
url: ExpressionProperty<Url>? = 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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user