@divkitframework/jsonbuilder 30.26.0 → 30.27.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 +51 -16
- package/dist/es/jsonbuilder.js.map +1 -1
- package/dist/jsonbuilder.d.ts +440 -106
- package/dist/jsonbuilder.js +51 -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;
|
|
@@ -1599,8 +1630,8 @@ class DivStretchIndicatorItemPlacement {
|
|
|
1599
1630
|
|
|
1600
1631
|
// Generated code. Do not modify.
|
|
1601
1632
|
/**
|
|
1602
|
-
*
|
|
1603
|
-
*
|
|
1633
|
+
* Two-state toggle that allows the user to control a Boolean variable. The element's
|
|
1634
|
+
* look-and-feel varies by platform. The toggle has a fixed size in iOS.
|
|
1604
1635
|
*/
|
|
1605
1636
|
class DivSwitch {
|
|
1606
1637
|
constructor(props) {
|
|
@@ -1730,6 +1761,8 @@ class DivText {
|
|
|
1730
1761
|
this.font_weight_value = props.font_weight_value;
|
|
1731
1762
|
this.functions = props.functions;
|
|
1732
1763
|
this.height = props.height;
|
|
1764
|
+
this.hover_end_actions = props.hover_end_actions;
|
|
1765
|
+
this.hover_start_actions = props.hover_start_actions;
|
|
1733
1766
|
this.id = props.id;
|
|
1734
1767
|
this.images = props.images;
|
|
1735
1768
|
this.layout_provider = props.layout_provider;
|
|
@@ -1740,6 +1773,8 @@ class DivText {
|
|
|
1740
1773
|
this.max_lines = props.max_lines;
|
|
1741
1774
|
this.min_hidden_lines = props.min_hidden_lines;
|
|
1742
1775
|
this.paddings = props.paddings;
|
|
1776
|
+
this.press_end_actions = props.press_end_actions;
|
|
1777
|
+
this.press_start_actions = props.press_start_actions;
|
|
1743
1778
|
this.ranges = props.ranges;
|
|
1744
1779
|
this.reuse_id = props.reuse_id;
|
|
1745
1780
|
this.row_span = props.row_span;
|
|
@@ -1863,7 +1898,7 @@ class DivWrapContentSize {
|
|
|
1863
1898
|
|
|
1864
1899
|
// Generated code. Do not modify.
|
|
1865
1900
|
/**
|
|
1866
|
-
* Specifies
|
|
1901
|
+
* Specifies the end of the container as the scrolling end position.
|
|
1867
1902
|
*/
|
|
1868
1903
|
class EndDestination {
|
|
1869
1904
|
constructor(props) {
|
|
@@ -1873,7 +1908,7 @@ class EndDestination {
|
|
|
1873
1908
|
|
|
1874
1909
|
// Generated code. Do not modify.
|
|
1875
1910
|
/**
|
|
1876
|
-
* Specifies element with
|
|
1911
|
+
* Specifies the element with the given index as the scrolling end position.
|
|
1877
1912
|
*/
|
|
1878
1913
|
class IndexDestination {
|
|
1879
1914
|
constructor(props) {
|
|
@@ -1924,8 +1959,8 @@ class NumberVariable {
|
|
|
1924
1959
|
|
|
1925
1960
|
// Generated code. Do not modify.
|
|
1926
1961
|
/**
|
|
1927
|
-
* Specifies position measured in
|
|
1928
|
-
*
|
|
1962
|
+
* Specifies the position measured in 'dp' from the container start as the scrolling end
|
|
1963
|
+
* position. Only applies in 'gallery'.
|
|
1929
1964
|
*/
|
|
1930
1965
|
class OffsetDestination {
|
|
1931
1966
|
constructor(props) {
|
|
@@ -1936,7 +1971,7 @@ class OffsetDestination {
|
|
|
1936
1971
|
|
|
1937
1972
|
// Generated code. Do not modify.
|
|
1938
1973
|
/**
|
|
1939
|
-
* Specifies
|
|
1974
|
+
* Specifies the start of the container as the scrolling end position.
|
|
1940
1975
|
*/
|
|
1941
1976
|
class StartDestination {
|
|
1942
1977
|
constructor(props) {
|
|
@@ -2424,6 +2459,7 @@ exports.DivMatchParentSize = DivMatchParentSize;
|
|
|
2424
2459
|
exports.DivNeighbourPageSize = DivNeighbourPageSize;
|
|
2425
2460
|
exports.DivNinePatchBackground = DivNinePatchBackground;
|
|
2426
2461
|
exports.DivNumberAnimator = DivNumberAnimator;
|
|
2462
|
+
exports.DivPageContentSize = DivPageContentSize;
|
|
2427
2463
|
exports.DivPageSize = DivPageSize;
|
|
2428
2464
|
exports.DivPageTransformationOverlap = DivPageTransformationOverlap;
|
|
2429
2465
|
exports.DivPageTransformationSlide = DivPageTransformationSlide;
|