@divkitframework/divkit 28.7.0 → 28.8.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": "28.7.0",
3
+ "version": "28.8.0",
4
4
  "description": "DivKit for the web",
5
5
  "keywords": [
6
6
  "server-driven-ui",
@@ -98,6 +98,57 @@ export interface DownloadCallbacks {
98
98
  on_success_actions?: Action[];
99
99
  }
100
100
 
101
+ export interface StringValue {
102
+ type: 'string';
103
+ value: string;
104
+ }
105
+
106
+ export interface IntegerValue {
107
+ type: 'integer';
108
+ value: number;
109
+ }
110
+
111
+ export interface NumberValue {
112
+ type: 'number';
113
+ value: number;
114
+ }
115
+
116
+ export interface ColorValue {
117
+ type: 'color';
118
+ value: string;
119
+ }
120
+
121
+ export interface BooleanValue {
122
+ type: 'boolean';
123
+ value: boolean;
124
+ }
125
+
126
+ export interface UrlValue {
127
+ type: 'url';
128
+ value: string;
129
+ }
130
+
131
+ export interface DictValue {
132
+ type: 'dict';
133
+ value: Record<string, unknown>;
134
+ }
135
+
136
+ export interface ArrayValue {
137
+ type: 'array';
138
+ value: unknown[];
139
+ }
140
+
141
+ export type TypedValue = StringValue | IntegerValue | NumberValue | ColorValue |
142
+ BooleanValue | UrlValue | DictValue | ArrayValue;
143
+
144
+ export interface ActionSetVariable {
145
+ type: 'set_variable';
146
+ variable_name: string;
147
+ value: TypedValue;
148
+ }
149
+
150
+ export type TypedAction = ActionSetVariable;
151
+
101
152
  export interface Action {
102
153
  log_id: string;
103
154
  url?: string;
@@ -106,6 +157,7 @@ export interface Action {
106
157
  download_callbacks?: DownloadCallbacks;
107
158
  log_url?: string;
108
159
  target?: string;
160
+ typed?: TypedAction;
109
161
  }
110
162
 
111
163
  export interface VisibilityAction {
@@ -117,6 +169,7 @@ export interface VisibilityAction {
117
169
  visibility_percentage?: number;
118
170
  visibility_duration?: number;
119
171
  log_limit?: number;
172
+ typed?: TypedAction;
120
173
  }
121
174
 
122
175
  export interface DisappearAction {
@@ -128,6 +181,7 @@ export interface DisappearAction {
128
181
  visibility_percentage?: number;
129
182
  disappear_duration?: number;
130
183
  log_limit?: number;
184
+ typed?: TypedAction;
131
185
  }
132
186
 
133
187
  export type StatCallback = (details: {