@divkitframework/divkit 25.1.0 → 25.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@divkitframework/divkit",
3
- "version": "25.1.0",
3
+ "version": "25.2.0",
4
4
  "description": "DivKit for the web",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -112,9 +112,20 @@ export interface VisibilityAction {
112
112
  log_limit?: number;
113
113
  }
114
114
 
115
+ export interface DisappearAction {
116
+ log_id: string;
117
+ url?: string;
118
+ referer?: string;
119
+ payload?: Record<string, string>;
120
+ visibility_percentage?: number;
121
+ disappear_duration?: number;
122
+ // download_callbacks
123
+ log_limit?: number;
124
+ }
125
+
115
126
  export type StatCallback = (details: {
116
127
  type: string;
117
- action: Action | VisibilityAction;
128
+ action: Action | VisibilityAction | DisappearAction;
118
129
  }) => void;
119
130
 
120
131
  export type CustomActionCallback = (action: Action & { url: string }) => void;