@divkitframework/jsonbuilder 30.20.0 → 30.22.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.
@@ -102,7 +102,7 @@ class DictVariable {
102
102
 
103
103
  // Generated code. Do not modify.
104
104
  /**
105
- * Starts specified animator
105
+ * Launches the specified animator.
106
106
  */
107
107
  class DivActionAnimatorStart {
108
108
  constructor(props) {
@@ -120,7 +120,7 @@ class DivActionAnimatorStart {
120
120
 
121
121
  // Generated code. Do not modify.
122
122
  /**
123
- * Stops specified animator
123
+ * Stops the specified animator.
124
124
  */
125
125
  class DivActionAnimatorStop {
126
126
  constructor(props) {
@@ -156,7 +156,7 @@ class DivActionArrayRemoveValue {
156
156
 
157
157
  // Generated code. Do not modify.
158
158
  /**
159
- * Sets value in the array
159
+ * Sets the value in the array by index.
160
160
  */
161
161
  class DivActionArraySetValue {
162
162
  constructor(props) {
@@ -190,7 +190,8 @@ class DivActionCopyToClipboard {
190
190
 
191
191
  // Generated code. Do not modify.
192
192
  /**
193
- * Sets value in dictionary for the given key. Removes key if the value is not defined.
193
+ * Sets the value in the dictionary by the specified key. Deletes the key if the value is not
194
+ * set.
194
195
  */
195
196
  class DivActionDictSetValue {
196
197
  constructor(props) {
@@ -203,7 +204,7 @@ class DivActionDictSetValue {
203
204
 
204
205
  // Generated code. Do not modify.
205
206
  /**
206
- * Loads more data in the form of a `div-patch` and updates current element,
207
+ * Loads additional data in `div-patch` format and updates the current element.
207
208
  */
208
209
  class DivActionDownload {
209
210
  constructor(props) {
@@ -227,7 +228,7 @@ class DivActionFocusElement {
227
228
 
228
229
  // Generated code. Do not modify.
229
230
  /**
230
- * Hides tooltip.
231
+ * Hides the tooltip.
231
232
  */
232
233
  class DivActionHideTooltip {
233
234
  constructor(props) {
@@ -238,7 +239,36 @@ class DivActionHideTooltip {
238
239
 
239
240
  // Generated code. Do not modify.
240
241
  /**
241
- * Switches the appearance of content in `div-state`.
242
+ * Scrolls scrollable container from current position by `item_count` or by `offset`, if both
243
+ * provided scroll action will be combined, negative numbers associated with backward scroll.
244
+ */
245
+ class DivActionScrollBy {
246
+ constructor(props) {
247
+ this.type = 'scroll_by';
248
+ this.animated = props.animated;
249
+ this.id = props.id;
250
+ this.item_count = props.item_count;
251
+ this.offset = props.offset;
252
+ this.overflow = props.overflow;
253
+ }
254
+ }
255
+
256
+ // Generated code. Do not modify.
257
+ /**
258
+ * Scrolls or switches container to given destination provided by `destination`.
259
+ */
260
+ class DivActionScrollTo {
261
+ constructor(props) {
262
+ this.type = 'scroll_to';
263
+ this.animated = props.animated;
264
+ this.destination = props.destination;
265
+ this.id = props.id;
266
+ }
267
+ }
268
+
269
+ // Generated code. Do not modify.
270
+ /**
271
+ * Applies a new appearance to the content in `div-state'.
242
272
  */
243
273
  class DivActionSetState {
244
274
  constructor(props) {
@@ -248,6 +278,19 @@ class DivActionSetState {
248
278
  }
249
279
  }
250
280
 
281
+ // Generated code. Do not modify.
282
+ /**
283
+ * Temporarily saves variable to the persistent storage.
284
+ */
285
+ class DivActionSetStoredValue {
286
+ constructor(props) {
287
+ this.type = 'set_stored_value';
288
+ this.lifetime = props.lifetime;
289
+ this.name = props.name;
290
+ this.value = props.value;
291
+ }
292
+ }
293
+
251
294
  // Generated code. Do not modify.
252
295
  /**
253
296
  * Assigns a value to the variable
@@ -262,7 +305,7 @@ class DivActionSetVariable {
262
305
 
263
306
  // Generated code. Do not modify.
264
307
  /**
265
- * Shows tooltip.
308
+ * Shows the tooltip.
266
309
  */
267
310
  class DivActionShowTooltip {
268
311
  constructor(props) {
@@ -272,6 +315,22 @@ class DivActionShowTooltip {
272
315
  }
273
316
  }
274
317
 
318
+ // Generated code. Do not modify.
319
+ /**
320
+ * Sends variables from the container via a url. The data sending configuration can be determined
321
+ * by the host application. By default, variables are passed in body in json format, the request
322
+ * method is POST.
323
+ */
324
+ class DivActionSubmit {
325
+ constructor(props) {
326
+ this.type = 'submit';
327
+ this.container_id = props.container_id;
328
+ this.on_fail_actions = props.on_fail_actions;
329
+ this.on_success_actions = props.on_success_actions;
330
+ this.request = props.request;
331
+ }
332
+ }
333
+
275
334
  // Generated code. Do not modify.
276
335
  /**
277
336
  * Controls the timer.
@@ -286,7 +345,7 @@ class DivActionTimer {
286
345
 
287
346
  // Generated code. Do not modify.
288
347
  /**
289
- * Controls given video.
348
+ * Manages video playback.
290
349
  */
291
350
  class DivActionVideo {
292
351
  constructor(props) {
@@ -355,6 +414,20 @@ class DivCircleShape {
355
414
  }
356
415
  }
357
416
 
417
+ // Generated code. Do not modify.
418
+ /**
419
+ * Cloud text background. Lines draws a rectangular background with the specified color and
420
+ * rounded corners.
421
+ */
422
+ class DivCloudBackground {
423
+ constructor(props) {
424
+ this.type = 'cloud';
425
+ this.color = props.color;
426
+ this.corner_radius = props.corner_radius;
427
+ this.paddings = props.paddings;
428
+ }
429
+ }
430
+
358
431
  // Generated code. Do not modify.
359
432
  /**
360
433
  * Color animator.
@@ -933,7 +1006,7 @@ class DivInput {
933
1006
 
934
1007
  // Generated code. Do not modify.
935
1008
  /**
936
- * [Calculated expression](../../expressions) filter.
1009
+ * Filter based on [calculated expressions](../../expressions).
937
1010
  */
938
1011
  class DivInputFilterExpression {
939
1012
  constructor(props) {
@@ -944,7 +1017,7 @@ class DivInputFilterExpression {
944
1017
 
945
1018
  // Generated code. Do not modify.
946
1019
  /**
947
- * Regex filter.
1020
+ * Filter based on regular expressions.
948
1021
  */
949
1022
  class DivInputFilterRegex {
950
1023
  constructor(props) {
@@ -1029,7 +1102,7 @@ class DivNinePatchBackground {
1029
1102
 
1030
1103
  // Generated code. Do not modify.
1031
1104
  /**
1032
- * Number animator.
1105
+ * Numeric value animator.
1033
1106
  */
1034
1107
  class DivNumberAnimator {
1035
1108
  constructor(props) {
@@ -1061,7 +1134,7 @@ class DivPageSize {
1061
1134
 
1062
1135
  // Generated code. Do not modify.
1063
1136
  /**
1064
- * The pages are stacked when the pager is scrolled overlapping each other.
1137
+ * Pages are stacked during animation overlapping one another.
1065
1138
  */
1066
1139
  class DivPageTransformationOverlap {
1067
1140
  constructor(props) {
@@ -1077,7 +1150,7 @@ class DivPageTransformationOverlap {
1077
1150
 
1078
1151
  // Generated code. Do not modify.
1079
1152
  /**
1080
- * The pages are moving when the pager is flipping without overlaping each other.
1153
+ * Pages move without overlapping during pager scrolling.
1081
1154
  */
1082
1155
  class DivPageTransformationSlide {
1083
1156
  constructor(props) {
@@ -1740,6 +1813,27 @@ class DivWrapContentSize {
1740
1813
  }
1741
1814
  }
1742
1815
 
1816
+ // Generated code. Do not modify.
1817
+ /**
1818
+ * Specifies container's end as scroll destination.
1819
+ */
1820
+ class EndDestination {
1821
+ constructor(props) {
1822
+ this.type = 'end';
1823
+ }
1824
+ }
1825
+
1826
+ // Generated code. Do not modify.
1827
+ /**
1828
+ * Specifies element with provided index as scroll destination.
1829
+ */
1830
+ class IndexDestination {
1831
+ constructor(props) {
1832
+ this.type = 'index';
1833
+ this.value = props.value;
1834
+ }
1835
+ }
1836
+
1743
1837
  // Generated code. Do not modify.
1744
1838
  class IntegerValue {
1745
1839
  constructor(props) {
@@ -1780,6 +1874,28 @@ class NumberVariable {
1780
1874
  }
1781
1875
  }
1782
1876
 
1877
+ // Generated code. Do not modify.
1878
+ /**
1879
+ * Specifies position measured in `dp` from container's start as scroll destination. Applicable
1880
+ * only in `gallery`.
1881
+ */
1882
+ class OffsetDestination {
1883
+ constructor(props) {
1884
+ this.type = 'offset';
1885
+ this.value = props.value;
1886
+ }
1887
+ }
1888
+
1889
+ // Generated code. Do not modify.
1890
+ /**
1891
+ * Specifies container's start as scroll destination.
1892
+ */
1893
+ class StartDestination {
1894
+ constructor(props) {
1895
+ this.type = 'start';
1896
+ }
1897
+ }
1898
+
1783
1899
  // Generated code. Do not modify.
1784
1900
  class StringValue {
1785
1901
  constructor(props) {
@@ -2217,9 +2333,13 @@ exports.DivActionDictSetValue = DivActionDictSetValue;
2217
2333
  exports.DivActionDownload = DivActionDownload;
2218
2334
  exports.DivActionFocusElement = DivActionFocusElement;
2219
2335
  exports.DivActionHideTooltip = DivActionHideTooltip;
2336
+ exports.DivActionScrollBy = DivActionScrollBy;
2337
+ exports.DivActionScrollTo = DivActionScrollTo;
2220
2338
  exports.DivActionSetState = DivActionSetState;
2339
+ exports.DivActionSetStoredValue = DivActionSetStoredValue;
2221
2340
  exports.DivActionSetVariable = DivActionSetVariable;
2222
2341
  exports.DivActionShowTooltip = DivActionShowTooltip;
2342
+ exports.DivActionSubmit = DivActionSubmit;
2223
2343
  exports.DivActionTimer = DivActionTimer;
2224
2344
  exports.DivActionVideo = DivActionVideo;
2225
2345
  exports.DivAppearanceSetTransition = DivAppearanceSetTransition;
@@ -2227,6 +2347,7 @@ exports.DivBlur = DivBlur;
2227
2347
  exports.DivChangeBoundsTransition = DivChangeBoundsTransition;
2228
2348
  exports.DivChangeSetTransition = DivChangeSetTransition;
2229
2349
  exports.DivCircleShape = DivCircleShape;
2350
+ exports.DivCloudBackground = DivCloudBackground;
2230
2351
  exports.DivColorAnimator = DivColorAnimator;
2231
2352
  exports.DivContainer = DivContainer;
2232
2353
  exports.DivCurrencyInputMask = DivCurrencyInputMask;
@@ -2283,11 +2404,15 @@ exports.DivVideo = DivVideo;
2283
2404
  exports.DivVideoSource = DivVideoSource;
2284
2405
  exports.DivVideoSourceResolution = DivVideoSourceResolution;
2285
2406
  exports.DivWrapContentSize = DivWrapContentSize;
2407
+ exports.EndDestination = EndDestination;
2408
+ exports.IndexDestination = IndexDestination;
2286
2409
  exports.IntegerValue = IntegerValue;
2287
2410
  exports.IntegerVariable = IntegerVariable;
2288
2411
  exports.NumberValue = NumberValue;
2289
2412
  exports.NumberVariable = NumberVariable;
2413
+ exports.OffsetDestination = OffsetDestination;
2290
2414
  exports.SafeDivExpression = SafeDivExpression;
2415
+ exports.StartDestination = StartDestination;
2291
2416
  exports.StringValue = StringValue;
2292
2417
  exports.StringVariable = StringVariable;
2293
2418
  exports.TemplateBlock = TemplateBlock;