@divkitframework/jsonbuilder 30.26.0 → 30.28.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/dist/es/jsonbuilder.js +52 -16
- package/dist/es/jsonbuilder.js.map +1 -1
- package/dist/jsonbuilder.d.ts +507 -149
- package/dist/jsonbuilder.js +52 -15
- package/dist/jsonbuilder.js.map +1 -1
- package/package.json +1 -1
package/dist/jsonbuilder.js
CHANGED
|
@@ -239,8 +239,8 @@ class DivActionHideTooltip {
|
|
|
239
239
|
|
|
240
240
|
// Generated code. Do not modify.
|
|
241
241
|
/**
|
|
242
|
-
* Scrolls
|
|
243
|
-
*
|
|
242
|
+
* Scrolls the container by `item_count` or `offset` starting from the current position. If both
|
|
243
|
+
* values are specified, the action will be combined. For scrolling back, use negative values.
|
|
244
244
|
*/
|
|
245
245
|
class DivActionScrollBy {
|
|
246
246
|
constructor(props) {
|
|
@@ -255,7 +255,8 @@ class DivActionScrollBy {
|
|
|
255
255
|
|
|
256
256
|
// Generated code. Do not modify.
|
|
257
257
|
/**
|
|
258
|
-
* Scrolls or switches
|
|
258
|
+
* Scrolls to a position or switches to the container element specified by the `destination`
|
|
259
|
+
* parameter.
|
|
259
260
|
*/
|
|
260
261
|
class DivActionScrollTo {
|
|
261
262
|
constructor(props) {
|
|
@@ -280,7 +281,7 @@ class DivActionSetState {
|
|
|
280
281
|
|
|
281
282
|
// Generated code. Do not modify.
|
|
282
283
|
/**
|
|
283
|
-
* Temporarily saves variable
|
|
284
|
+
* Temporarily saves the variable in storage.
|
|
284
285
|
*/
|
|
285
286
|
class DivActionSetStoredValue {
|
|
286
287
|
constructor(props) {
|
|
@@ -317,9 +318,8 @@ class DivActionShowTooltip {
|
|
|
317
318
|
|
|
318
319
|
// Generated code. Do not modify.
|
|
319
320
|
/**
|
|
320
|
-
* Sends variables from the container
|
|
321
|
-
*
|
|
322
|
-
* method is POST.
|
|
321
|
+
* Sends variables from the container by link. Data sending configuration can be defined by the
|
|
322
|
+
* host app. By default, variables are sent as JSON in the request body using the POST method.
|
|
323
323
|
*/
|
|
324
324
|
class DivActionSubmit {
|
|
325
325
|
constructor(props) {
|
|
@@ -416,7 +416,7 @@ class DivCircleShape {
|
|
|
416
416
|
|
|
417
417
|
// Generated code. Do not modify.
|
|
418
418
|
/**
|
|
419
|
-
* Cloud text background.
|
|
419
|
+
* Cloud-style text background. Rows have a rectangular background in the specified color with
|
|
420
420
|
* rounded corners.
|
|
421
421
|
*/
|
|
422
422
|
class DivCloudBackground {
|
|
@@ -479,6 +479,8 @@ class DivContainer {
|
|
|
479
479
|
this.focus = props === null || props === void 0 ? void 0 : props.focus;
|
|
480
480
|
this.functions = props === null || props === void 0 ? void 0 : props.functions;
|
|
481
481
|
this.height = props === null || props === void 0 ? void 0 : props.height;
|
|
482
|
+
this.hover_end_actions = props === null || props === void 0 ? void 0 : props.hover_end_actions;
|
|
483
|
+
this.hover_start_actions = props === null || props === void 0 ? void 0 : props.hover_start_actions;
|
|
482
484
|
this.id = props === null || props === void 0 ? void 0 : props.id;
|
|
483
485
|
this.item_builder = props === null || props === void 0 ? void 0 : props.item_builder;
|
|
484
486
|
this.items = props === null || props === void 0 ? void 0 : props.items;
|
|
@@ -489,6 +491,8 @@ class DivContainer {
|
|
|
489
491
|
this.margins = props === null || props === void 0 ? void 0 : props.margins;
|
|
490
492
|
this.orientation = props === null || props === void 0 ? void 0 : props.orientation;
|
|
491
493
|
this.paddings = props === null || props === void 0 ? void 0 : props.paddings;
|
|
494
|
+
this.press_end_actions = props === null || props === void 0 ? void 0 : props.press_end_actions;
|
|
495
|
+
this.press_start_actions = props === null || props === void 0 ? void 0 : props.press_start_actions;
|
|
492
496
|
this.reuse_id = props === null || props === void 0 ? void 0 : props.reuse_id;
|
|
493
497
|
this.row_span = props === null || props === void 0 ? void 0 : props.row_span;
|
|
494
498
|
this.selected_actions = props === null || props === void 0 ? void 0 : props.selected_actions;
|
|
@@ -719,6 +723,8 @@ class DivGifImage {
|
|
|
719
723
|
this.functions = props.functions;
|
|
720
724
|
this.gif_url = props.gif_url;
|
|
721
725
|
this.height = props.height;
|
|
726
|
+
this.hover_end_actions = props.hover_end_actions;
|
|
727
|
+
this.hover_start_actions = props.hover_start_actions;
|
|
722
728
|
this.id = props.id;
|
|
723
729
|
this.layout_provider = props.layout_provider;
|
|
724
730
|
this.longtap_actions = props.longtap_actions;
|
|
@@ -726,6 +732,8 @@ class DivGifImage {
|
|
|
726
732
|
this.paddings = props.paddings;
|
|
727
733
|
this.placeholder_color = props.placeholder_color;
|
|
728
734
|
this.preload_required = props.preload_required;
|
|
735
|
+
this.press_end_actions = props.press_end_actions;
|
|
736
|
+
this.press_start_actions = props.press_start_actions;
|
|
729
737
|
this.preview = props.preview;
|
|
730
738
|
this.reuse_id = props.reuse_id;
|
|
731
739
|
this.row_span = props.row_span;
|
|
@@ -773,12 +781,16 @@ class DivGrid {
|
|
|
773
781
|
this.focus = props.focus;
|
|
774
782
|
this.functions = props.functions;
|
|
775
783
|
this.height = props.height;
|
|
784
|
+
this.hover_end_actions = props.hover_end_actions;
|
|
785
|
+
this.hover_start_actions = props.hover_start_actions;
|
|
776
786
|
this.id = props.id;
|
|
777
787
|
this.items = props.items;
|
|
778
788
|
this.layout_provider = props.layout_provider;
|
|
779
789
|
this.longtap_actions = props.longtap_actions;
|
|
780
790
|
this.margins = props.margins;
|
|
781
791
|
this.paddings = props.paddings;
|
|
792
|
+
this.press_end_actions = props.press_end_actions;
|
|
793
|
+
this.press_start_actions = props.press_start_actions;
|
|
782
794
|
this.reuse_id = props.reuse_id;
|
|
783
795
|
this.row_span = props.row_span;
|
|
784
796
|
this.selected_actions = props.selected_actions;
|
|
@@ -827,6 +839,8 @@ class DivImage {
|
|
|
827
839
|
this.functions = props.functions;
|
|
828
840
|
this.height = props.height;
|
|
829
841
|
this.high_priority_preview_show = props.high_priority_preview_show;
|
|
842
|
+
this.hover_end_actions = props.hover_end_actions;
|
|
843
|
+
this.hover_start_actions = props.hover_start_actions;
|
|
830
844
|
this.id = props.id;
|
|
831
845
|
this.image_url = props.image_url;
|
|
832
846
|
this.layout_provider = props.layout_provider;
|
|
@@ -835,6 +849,8 @@ class DivImage {
|
|
|
835
849
|
this.paddings = props.paddings;
|
|
836
850
|
this.placeholder_color = props.placeholder_color;
|
|
837
851
|
this.preload_required = props.preload_required;
|
|
852
|
+
this.press_end_actions = props.press_end_actions;
|
|
853
|
+
this.press_start_actions = props.press_start_actions;
|
|
838
854
|
this.preview = props.preview;
|
|
839
855
|
this.reuse_id = props.reuse_id;
|
|
840
856
|
this.row_span = props.row_span;
|
|
@@ -1123,6 +1139,17 @@ class DivNumberAnimator {
|
|
|
1123
1139
|
}
|
|
1124
1140
|
}
|
|
1125
1141
|
|
|
1142
|
+
// Generated code. Do not modify.
|
|
1143
|
+
/**
|
|
1144
|
+
* Page size equals to its content size.
|
|
1145
|
+
*/
|
|
1146
|
+
class DivPageContentSize {
|
|
1147
|
+
constructor(props) {
|
|
1148
|
+
this.type = 'wrap_content';
|
|
1149
|
+
this.alignment = props === null || props === void 0 ? void 0 : props.alignment;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1126
1153
|
// Generated code. Do not modify.
|
|
1127
1154
|
/**
|
|
1128
1155
|
* Page width (%).
|
|
@@ -1420,11 +1447,15 @@ class DivSeparator {
|
|
|
1420
1447
|
this.focus = props === null || props === void 0 ? void 0 : props.focus;
|
|
1421
1448
|
this.functions = props === null || props === void 0 ? void 0 : props.functions;
|
|
1422
1449
|
this.height = props === null || props === void 0 ? void 0 : props.height;
|
|
1450
|
+
this.hover_end_actions = props === null || props === void 0 ? void 0 : props.hover_end_actions;
|
|
1451
|
+
this.hover_start_actions = props === null || props === void 0 ? void 0 : props.hover_start_actions;
|
|
1423
1452
|
this.id = props === null || props === void 0 ? void 0 : props.id;
|
|
1424
1453
|
this.layout_provider = props === null || props === void 0 ? void 0 : props.layout_provider;
|
|
1425
1454
|
this.longtap_actions = props === null || props === void 0 ? void 0 : props.longtap_actions;
|
|
1426
1455
|
this.margins = props === null || props === void 0 ? void 0 : props.margins;
|
|
1427
1456
|
this.paddings = props === null || props === void 0 ? void 0 : props.paddings;
|
|
1457
|
+
this.press_end_actions = props === null || props === void 0 ? void 0 : props.press_end_actions;
|
|
1458
|
+
this.press_start_actions = props === null || props === void 0 ? void 0 : props.press_start_actions;
|
|
1428
1459
|
this.reuse_id = props === null || props === void 0 ? void 0 : props.reuse_id;
|
|
1429
1460
|
this.row_span = props === null || props === void 0 ? void 0 : props.row_span;
|
|
1430
1461
|
this.selected_actions = props === null || props === void 0 ? void 0 : props.selected_actions;
|
|
@@ -1552,6 +1583,7 @@ class DivState {
|
|
|
1552
1583
|
this.animators = props.animators;
|
|
1553
1584
|
this.background = props.background;
|
|
1554
1585
|
this.border = props.border;
|
|
1586
|
+
this.clip_to_bounds = props.clip_to_bounds;
|
|
1555
1587
|
this.column_span = props.column_span;
|
|
1556
1588
|
this.default_state_id = props.default_state_id;
|
|
1557
1589
|
this.disappear_actions = props.disappear_actions;
|
|
@@ -1599,8 +1631,8 @@ class DivStretchIndicatorItemPlacement {
|
|
|
1599
1631
|
|
|
1600
1632
|
// Generated code. Do not modify.
|
|
1601
1633
|
/**
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1634
|
+
* Two-state toggle that allows the user to control a Boolean variable. The element's
|
|
1635
|
+
* look-and-feel varies by platform. The toggle has a fixed size in iOS.
|
|
1604
1636
|
*/
|
|
1605
1637
|
class DivSwitch {
|
|
1606
1638
|
constructor(props) {
|
|
@@ -1730,6 +1762,8 @@ class DivText {
|
|
|
1730
1762
|
this.font_weight_value = props.font_weight_value;
|
|
1731
1763
|
this.functions = props.functions;
|
|
1732
1764
|
this.height = props.height;
|
|
1765
|
+
this.hover_end_actions = props.hover_end_actions;
|
|
1766
|
+
this.hover_start_actions = props.hover_start_actions;
|
|
1733
1767
|
this.id = props.id;
|
|
1734
1768
|
this.images = props.images;
|
|
1735
1769
|
this.layout_provider = props.layout_provider;
|
|
@@ -1740,6 +1774,8 @@ class DivText {
|
|
|
1740
1774
|
this.max_lines = props.max_lines;
|
|
1741
1775
|
this.min_hidden_lines = props.min_hidden_lines;
|
|
1742
1776
|
this.paddings = props.paddings;
|
|
1777
|
+
this.press_end_actions = props.press_end_actions;
|
|
1778
|
+
this.press_start_actions = props.press_start_actions;
|
|
1743
1779
|
this.ranges = props.ranges;
|
|
1744
1780
|
this.reuse_id = props.reuse_id;
|
|
1745
1781
|
this.row_span = props.row_span;
|
|
@@ -1863,7 +1899,7 @@ class DivWrapContentSize {
|
|
|
1863
1899
|
|
|
1864
1900
|
// Generated code. Do not modify.
|
|
1865
1901
|
/**
|
|
1866
|
-
* Specifies
|
|
1902
|
+
* Specifies the end of the container as the scrolling end position.
|
|
1867
1903
|
*/
|
|
1868
1904
|
class EndDestination {
|
|
1869
1905
|
constructor(props) {
|
|
@@ -1873,7 +1909,7 @@ class EndDestination {
|
|
|
1873
1909
|
|
|
1874
1910
|
// Generated code. Do not modify.
|
|
1875
1911
|
/**
|
|
1876
|
-
* Specifies element with
|
|
1912
|
+
* Specifies the element with the given index as the scrolling end position.
|
|
1877
1913
|
*/
|
|
1878
1914
|
class IndexDestination {
|
|
1879
1915
|
constructor(props) {
|
|
@@ -1924,8 +1960,8 @@ class NumberVariable {
|
|
|
1924
1960
|
|
|
1925
1961
|
// Generated code. Do not modify.
|
|
1926
1962
|
/**
|
|
1927
|
-
* Specifies position measured in `dp` from container
|
|
1928
|
-
*
|
|
1963
|
+
* Specifies the position measured in `dp` from the container start as the scrolling end
|
|
1964
|
+
* position. Only applies in `gallery`.
|
|
1929
1965
|
*/
|
|
1930
1966
|
class OffsetDestination {
|
|
1931
1967
|
constructor(props) {
|
|
@@ -1936,7 +1972,7 @@ class OffsetDestination {
|
|
|
1936
1972
|
|
|
1937
1973
|
// Generated code. Do not modify.
|
|
1938
1974
|
/**
|
|
1939
|
-
* Specifies
|
|
1975
|
+
* Specifies the start of the container as the scrolling end position.
|
|
1940
1976
|
*/
|
|
1941
1977
|
class StartDestination {
|
|
1942
1978
|
constructor(props) {
|
|
@@ -2424,6 +2460,7 @@ exports.DivMatchParentSize = DivMatchParentSize;
|
|
|
2424
2460
|
exports.DivNeighbourPageSize = DivNeighbourPageSize;
|
|
2425
2461
|
exports.DivNinePatchBackground = DivNinePatchBackground;
|
|
2426
2462
|
exports.DivNumberAnimator = DivNumberAnimator;
|
|
2463
|
+
exports.DivPageContentSize = DivPageContentSize;
|
|
2427
2464
|
exports.DivPageSize = DivPageSize;
|
|
2428
2465
|
exports.DivPageTransformationOverlap = DivPageTransformationOverlap;
|
|
2429
2466
|
exports.DivPageTransformationSlide = DivPageTransformationSlide;
|