@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.
@@ -235,8 +235,8 @@ class DivActionHideTooltip {
235
235
 
236
236
  // Generated code. Do not modify.
237
237
  /**
238
- * Scrolls scrollable container from current position by `item_count` or by `offset`, if both
239
- * provided scroll action will be combined, negative numbers associated with backward scroll.
238
+ * Scrolls the container by `item_count` or `offset` starting from the current position. If both
239
+ * values are specified, the action will be combined. For scrolling back, use negative values.
240
240
  */
241
241
  class DivActionScrollBy {
242
242
  constructor(props) {
@@ -251,7 +251,8 @@ class DivActionScrollBy {
251
251
 
252
252
  // Generated code. Do not modify.
253
253
  /**
254
- * Scrolls or switches container to given destination provided by `destination`.
254
+ * Scrolls to a position or switches to the container element specified by the `destination`
255
+ * parameter.
255
256
  */
256
257
  class DivActionScrollTo {
257
258
  constructor(props) {
@@ -276,7 +277,7 @@ class DivActionSetState {
276
277
 
277
278
  // Generated code. Do not modify.
278
279
  /**
279
- * Temporarily saves variable to the persistent storage.
280
+ * Temporarily saves the variable in storage.
280
281
  */
281
282
  class DivActionSetStoredValue {
282
283
  constructor(props) {
@@ -313,9 +314,8 @@ class DivActionShowTooltip {
313
314
 
314
315
  // Generated code. Do not modify.
315
316
  /**
316
- * Sends variables from the container via a url. The data sending configuration can be determined
317
- * by the host application. By default, variables are passed in body in json format, the request
318
- * method is POST.
317
+ * Sends variables from the container by link. Data sending configuration can be defined by the
318
+ * host app. By default, variables are sent as JSON in the request body using the POST method.
319
319
  */
320
320
  class DivActionSubmit {
321
321
  constructor(props) {
@@ -412,7 +412,7 @@ class DivCircleShape {
412
412
 
413
413
  // Generated code. Do not modify.
414
414
  /**
415
- * Cloud text background. Lines draws a rectangular background with the specified color and
415
+ * Cloud-style text background. Rows have a rectangular background in the specified color with
416
416
  * rounded corners.
417
417
  */
418
418
  class DivCloudBackground {
@@ -475,6 +475,8 @@ class DivContainer {
475
475
  this.focus = props === null || props === void 0 ? void 0 : props.focus;
476
476
  this.functions = props === null || props === void 0 ? void 0 : props.functions;
477
477
  this.height = props === null || props === void 0 ? void 0 : props.height;
478
+ this.hover_end_actions = props === null || props === void 0 ? void 0 : props.hover_end_actions;
479
+ this.hover_start_actions = props === null || props === void 0 ? void 0 : props.hover_start_actions;
478
480
  this.id = props === null || props === void 0 ? void 0 : props.id;
479
481
  this.item_builder = props === null || props === void 0 ? void 0 : props.item_builder;
480
482
  this.items = props === null || props === void 0 ? void 0 : props.items;
@@ -485,6 +487,8 @@ class DivContainer {
485
487
  this.margins = props === null || props === void 0 ? void 0 : props.margins;
486
488
  this.orientation = props === null || props === void 0 ? void 0 : props.orientation;
487
489
  this.paddings = props === null || props === void 0 ? void 0 : props.paddings;
490
+ this.press_end_actions = props === null || props === void 0 ? void 0 : props.press_end_actions;
491
+ this.press_start_actions = props === null || props === void 0 ? void 0 : props.press_start_actions;
488
492
  this.reuse_id = props === null || props === void 0 ? void 0 : props.reuse_id;
489
493
  this.row_span = props === null || props === void 0 ? void 0 : props.row_span;
490
494
  this.selected_actions = props === null || props === void 0 ? void 0 : props.selected_actions;
@@ -715,6 +719,8 @@ class DivGifImage {
715
719
  this.functions = props.functions;
716
720
  this.gif_url = props.gif_url;
717
721
  this.height = props.height;
722
+ this.hover_end_actions = props.hover_end_actions;
723
+ this.hover_start_actions = props.hover_start_actions;
718
724
  this.id = props.id;
719
725
  this.layout_provider = props.layout_provider;
720
726
  this.longtap_actions = props.longtap_actions;
@@ -722,6 +728,8 @@ class DivGifImage {
722
728
  this.paddings = props.paddings;
723
729
  this.placeholder_color = props.placeholder_color;
724
730
  this.preload_required = props.preload_required;
731
+ this.press_end_actions = props.press_end_actions;
732
+ this.press_start_actions = props.press_start_actions;
725
733
  this.preview = props.preview;
726
734
  this.reuse_id = props.reuse_id;
727
735
  this.row_span = props.row_span;
@@ -769,12 +777,16 @@ class DivGrid {
769
777
  this.focus = props.focus;
770
778
  this.functions = props.functions;
771
779
  this.height = props.height;
780
+ this.hover_end_actions = props.hover_end_actions;
781
+ this.hover_start_actions = props.hover_start_actions;
772
782
  this.id = props.id;
773
783
  this.items = props.items;
774
784
  this.layout_provider = props.layout_provider;
775
785
  this.longtap_actions = props.longtap_actions;
776
786
  this.margins = props.margins;
777
787
  this.paddings = props.paddings;
788
+ this.press_end_actions = props.press_end_actions;
789
+ this.press_start_actions = props.press_start_actions;
778
790
  this.reuse_id = props.reuse_id;
779
791
  this.row_span = props.row_span;
780
792
  this.selected_actions = props.selected_actions;
@@ -823,6 +835,8 @@ class DivImage {
823
835
  this.functions = props.functions;
824
836
  this.height = props.height;
825
837
  this.high_priority_preview_show = props.high_priority_preview_show;
838
+ this.hover_end_actions = props.hover_end_actions;
839
+ this.hover_start_actions = props.hover_start_actions;
826
840
  this.id = props.id;
827
841
  this.image_url = props.image_url;
828
842
  this.layout_provider = props.layout_provider;
@@ -831,6 +845,8 @@ class DivImage {
831
845
  this.paddings = props.paddings;
832
846
  this.placeholder_color = props.placeholder_color;
833
847
  this.preload_required = props.preload_required;
848
+ this.press_end_actions = props.press_end_actions;
849
+ this.press_start_actions = props.press_start_actions;
834
850
  this.preview = props.preview;
835
851
  this.reuse_id = props.reuse_id;
836
852
  this.row_span = props.row_span;
@@ -1119,6 +1135,17 @@ class DivNumberAnimator {
1119
1135
  }
1120
1136
  }
1121
1137
 
1138
+ // Generated code. Do not modify.
1139
+ /**
1140
+ * Page size equals to its content size.
1141
+ */
1142
+ class DivPageContentSize {
1143
+ constructor(props) {
1144
+ this.type = 'wrap_content';
1145
+ this.alignment = props === null || props === void 0 ? void 0 : props.alignment;
1146
+ }
1147
+ }
1148
+
1122
1149
  // Generated code. Do not modify.
1123
1150
  /**
1124
1151
  * Page width (%).
@@ -1416,11 +1443,15 @@ class DivSeparator {
1416
1443
  this.focus = props === null || props === void 0 ? void 0 : props.focus;
1417
1444
  this.functions = props === null || props === void 0 ? void 0 : props.functions;
1418
1445
  this.height = props === null || props === void 0 ? void 0 : props.height;
1446
+ this.hover_end_actions = props === null || props === void 0 ? void 0 : props.hover_end_actions;
1447
+ this.hover_start_actions = props === null || props === void 0 ? void 0 : props.hover_start_actions;
1419
1448
  this.id = props === null || props === void 0 ? void 0 : props.id;
1420
1449
  this.layout_provider = props === null || props === void 0 ? void 0 : props.layout_provider;
1421
1450
  this.longtap_actions = props === null || props === void 0 ? void 0 : props.longtap_actions;
1422
1451
  this.margins = props === null || props === void 0 ? void 0 : props.margins;
1423
1452
  this.paddings = props === null || props === void 0 ? void 0 : props.paddings;
1453
+ this.press_end_actions = props === null || props === void 0 ? void 0 : props.press_end_actions;
1454
+ this.press_start_actions = props === null || props === void 0 ? void 0 : props.press_start_actions;
1424
1455
  this.reuse_id = props === null || props === void 0 ? void 0 : props.reuse_id;
1425
1456
  this.row_span = props === null || props === void 0 ? void 0 : props.row_span;
1426
1457
  this.selected_actions = props === null || props === void 0 ? void 0 : props.selected_actions;
@@ -1548,6 +1579,7 @@ class DivState {
1548
1579
  this.animators = props.animators;
1549
1580
  this.background = props.background;
1550
1581
  this.border = props.border;
1582
+ this.clip_to_bounds = props.clip_to_bounds;
1551
1583
  this.column_span = props.column_span;
1552
1584
  this.default_state_id = props.default_state_id;
1553
1585
  this.disappear_actions = props.disappear_actions;
@@ -1595,8 +1627,8 @@ class DivStretchIndicatorItemPlacement {
1595
1627
 
1596
1628
  // Generated code. Do not modify.
1597
1629
  /**
1598
- * A two-state switch that allows user to toggle a boolean variable. The element has a different
1599
- * appearance depending on the platform. On iOS, the switch size is fixed.
1630
+ * Two-state toggle that allows the user to control a Boolean variable. The element's
1631
+ * look-and-feel varies by platform. The toggle has a fixed size in iOS.
1600
1632
  */
1601
1633
  class DivSwitch {
1602
1634
  constructor(props) {
@@ -1726,6 +1758,8 @@ class DivText {
1726
1758
  this.font_weight_value = props.font_weight_value;
1727
1759
  this.functions = props.functions;
1728
1760
  this.height = props.height;
1761
+ this.hover_end_actions = props.hover_end_actions;
1762
+ this.hover_start_actions = props.hover_start_actions;
1729
1763
  this.id = props.id;
1730
1764
  this.images = props.images;
1731
1765
  this.layout_provider = props.layout_provider;
@@ -1736,6 +1770,8 @@ class DivText {
1736
1770
  this.max_lines = props.max_lines;
1737
1771
  this.min_hidden_lines = props.min_hidden_lines;
1738
1772
  this.paddings = props.paddings;
1773
+ this.press_end_actions = props.press_end_actions;
1774
+ this.press_start_actions = props.press_start_actions;
1739
1775
  this.ranges = props.ranges;
1740
1776
  this.reuse_id = props.reuse_id;
1741
1777
  this.row_span = props.row_span;
@@ -1859,7 +1895,7 @@ class DivWrapContentSize {
1859
1895
 
1860
1896
  // Generated code. Do not modify.
1861
1897
  /**
1862
- * Specifies container's end as scroll destination.
1898
+ * Specifies the end of the container as the scrolling end position.
1863
1899
  */
1864
1900
  class EndDestination {
1865
1901
  constructor(props) {
@@ -1869,7 +1905,7 @@ class EndDestination {
1869
1905
 
1870
1906
  // Generated code. Do not modify.
1871
1907
  /**
1872
- * Specifies element with provided index as scroll destination.
1908
+ * Specifies the element with the given index as the scrolling end position.
1873
1909
  */
1874
1910
  class IndexDestination {
1875
1911
  constructor(props) {
@@ -1920,8 +1956,8 @@ class NumberVariable {
1920
1956
 
1921
1957
  // Generated code. Do not modify.
1922
1958
  /**
1923
- * Specifies position measured in `dp` from container's start as scroll destination. Applicable
1924
- * only in `gallery`.
1959
+ * Specifies the position measured in `dp` from the container start as the scrolling end
1960
+ * position. Only applies in `gallery`.
1925
1961
  */
1926
1962
  class OffsetDestination {
1927
1963
  constructor(props) {
@@ -1932,7 +1968,7 @@ class OffsetDestination {
1932
1968
 
1933
1969
  // Generated code. Do not modify.
1934
1970
  /**
1935
- * Specifies container's start as scroll destination.
1971
+ * Specifies the start of the container as the scrolling end position.
1936
1972
  */
1937
1973
  class StartDestination {
1938
1974
  constructor(props) {
@@ -2356,5 +2392,5 @@ function rewriteTemplateVersions(templates, resolvedNames) {
2356
2392
  return rewriteNames(templates, rename, resolvedNames);
2357
2393
  }
2358
2394
 
2359
- export { ArrayValue, ArrayVariable, BooleanValue, BooleanVariable, ColorValue, ColorVariable, ContentText, ContentUrl, DictValue, DictVariable, DivActionAnimatorStart, DivActionAnimatorStop, DivActionArrayInsertValue, DivActionArrayRemoveValue, DivActionArraySetValue, DivActionClearFocus, DivActionCopyToClipboard, DivActionDictSetValue, DivActionDownload, DivActionFocusElement, DivActionHideTooltip, DivActionScrollBy, DivActionScrollTo, DivActionSetState, DivActionSetStoredValue, DivActionSetVariable, DivActionShowTooltip, DivActionSubmit, DivActionTimer, DivActionVideo, DivAppearanceSetTransition, DivBlur, DivChangeBoundsTransition, DivChangeSetTransition, DivCircleShape, DivCloudBackground, DivColorAnimator, DivContainer, DivCurrencyInputMask, DivCustom, DivDefaultIndicatorItemPlacement, DivFadeTransition, DivFilterRtlMirror, DivFixedCount, DivFixedLengthInputMask, DivFixedSize, DivGallery, DivGifImage, DivGradientBackground, DivGrid, DivImage, DivImageBackground, DivIndicator, DivInfinityCount, DivInput, DivInputFilterExpression, DivInputFilterRegex, DivInputValidatorExpression, DivInputValidatorRegex, DivLinearGradient, DivMatchParentSize, DivNeighbourPageSize, DivNinePatchBackground, DivNumberAnimator, DivPageSize, DivPageTransformationOverlap, DivPageTransformationSlide, DivPager, DivPercentageSize, DivPhoneInputMask, DivPivotFixed, DivPivotPercentage, DivRadialGradient, DivRadialGradientFixedCenter, DivRadialGradientRelativeCenter, DivRadialGradientRelativeRadius, DivRoundedRectangleShape, DivScaleTransition, DivSelect, DivSeparator, DivShapeDrawable, DivSlideTransition, DivSlider, DivSolidBackground, DivState, DivStretchIndicatorItemPlacement, DivSwitch, DivTabs, DivText, DivVideo, DivVideoSource, DivVideoSourceResolution, DivWrapContentSize, EndDestination, IndexDestination, IntegerValue, IntegerVariable, NumberValue, NumberVariable, OffsetDestination, SafeDivExpression, StartDestination, StringValue, StringVariable, TemplateBlock, TemplatePropertyReference, UrlValue, UrlVariable, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
2395
+ export { ArrayValue, ArrayVariable, BooleanValue, BooleanVariable, ColorValue, ColorVariable, ContentText, ContentUrl, DictValue, DictVariable, DivActionAnimatorStart, DivActionAnimatorStop, DivActionArrayInsertValue, DivActionArrayRemoveValue, DivActionArraySetValue, DivActionClearFocus, DivActionCopyToClipboard, DivActionDictSetValue, DivActionDownload, DivActionFocusElement, DivActionHideTooltip, DivActionScrollBy, DivActionScrollTo, DivActionSetState, DivActionSetStoredValue, DivActionSetVariable, DivActionShowTooltip, DivActionSubmit, DivActionTimer, DivActionVideo, DivAppearanceSetTransition, DivBlur, DivChangeBoundsTransition, DivChangeSetTransition, DivCircleShape, DivCloudBackground, DivColorAnimator, DivContainer, DivCurrencyInputMask, DivCustom, DivDefaultIndicatorItemPlacement, DivFadeTransition, DivFilterRtlMirror, DivFixedCount, DivFixedLengthInputMask, DivFixedSize, DivGallery, DivGifImage, DivGradientBackground, DivGrid, DivImage, DivImageBackground, DivIndicator, DivInfinityCount, DivInput, DivInputFilterExpression, DivInputFilterRegex, DivInputValidatorExpression, DivInputValidatorRegex, DivLinearGradient, DivMatchParentSize, DivNeighbourPageSize, DivNinePatchBackground, DivNumberAnimator, DivPageContentSize, DivPageSize, DivPageTransformationOverlap, DivPageTransformationSlide, DivPager, DivPercentageSize, DivPhoneInputMask, DivPivotFixed, DivPivotPercentage, DivRadialGradient, DivRadialGradientFixedCenter, DivRadialGradientRelativeCenter, DivRadialGradientRelativeRadius, DivRoundedRectangleShape, DivScaleTransition, DivSelect, DivSeparator, DivShapeDrawable, DivSlideTransition, DivSlider, DivSolidBackground, DivState, DivStretchIndicatorItemPlacement, DivSwitch, DivTabs, DivText, DivVideo, DivVideoSource, DivVideoSourceResolution, DivWrapContentSize, EndDestination, IndexDestination, IntegerValue, IntegerVariable, NumberValue, NumberVariable, OffsetDestination, SafeDivExpression, StartDestination, StringValue, StringVariable, TemplateBlock, TemplatePropertyReference, UrlValue, UrlVariable, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
2360
2396
  //# sourceMappingURL=jsonbuilder.js.map