@divkitframework/jsonbuilder 31.11.0 → 31.13.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.
@@ -233,11 +233,11 @@ interface ContentUrlProps {
233
233
  declare class DictValue<T extends DictValueProps = DictValueProps> {
234
234
  readonly _props?: Exact<DictValueProps, T>;
235
235
  readonly type = "dict";
236
- value: Type<{}>;
236
+ value: Type<{} | DivExpression>;
237
237
  constructor(props: Exact<DictValueProps, T>);
238
238
  }
239
239
  interface DictValueProps {
240
- value: Type<{}>;
240
+ value: Type<{} | DivExpression>;
241
241
  }
242
242
 
243
243
  /**
@@ -301,7 +301,7 @@ interface IDivAccessibility {
301
301
  * A tooltip of what will happen during interaction. If Speak Hints is enabled in the VoiceOver
302
302
  * settings on iOS, a tooltip is played after `description`.
303
303
  *
304
- * Platforms: android, ios
304
+ * Platforms: android, ios, web
305
305
  */
306
306
  hint?: Type<string | DivExpression>;
307
307
  /**
@@ -329,7 +329,7 @@ interface IDivAccessibility {
329
329
  * Description of the current state of an element. For example, in the description you can
330
330
  * specify a selected date for a date selection element and an on/off state for a switch.
331
331
  *
332
- * Platforms: android, ios
332
+ * Platforms: android, ios, web
333
333
  */
334
334
  state_description?: Type<string | DivExpression>;
335
335
  /**
@@ -4917,7 +4917,7 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
4917
4917
  * displayed as the first frame. Use the parameter carefully — it will worsen the preview display
4918
4918
  * time and can worsen the application launch time.
4919
4919
  *
4920
- * Platforms: android, ios
4920
+ * Platforms: android, ios, web
4921
4921
  */
4922
4922
  high_priority_preview_show?: Type<IntBoolean | DivExpression>;
4923
4923
  /**
@@ -5227,7 +5227,7 @@ interface DivImageProps {
5227
5227
  * displayed as the first frame. Use the parameter carefully — it will worsen the preview display
5228
5228
  * time and can worsen the application launch time.
5229
5229
  *
5230
- * Platforms: android, ios
5230
+ * Platforms: android, ios, web
5231
5231
  */
5232
5232
  high_priority_preview_show?: Type<IntBoolean | DivExpression>;
5233
5233
  /**
@@ -6099,8 +6099,17 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
6099
6099
  * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
6100
6100
  * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
6101
6101
  * height in `sp`. Only available on Android.
6102
+ *
6103
+ * Platforms: android, ios
6102
6104
  */
6103
6105
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
6106
+ /**
6107
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
6108
+ * style values. The axis tag must contain four ASCII characters.
6109
+ *
6110
+ * Platforms: not supported
6111
+ */
6112
+ font_variation_settings?: Type<{} | DivExpression>;
6104
6113
  /**
6105
6114
  * Style.
6106
6115
  */
@@ -6108,7 +6117,7 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
6108
6117
  /**
6109
6118
  * Style. Numeric value.
6110
6119
  *
6111
- * Platforms: ios, web, android
6120
+ * Platforms: android, ios, web
6112
6121
  */
6113
6122
  font_weight_value?: Type<number | DivExpression>;
6114
6123
  /**
@@ -6413,8 +6422,17 @@ interface DivInputProps {
6413
6422
  * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
6414
6423
  * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
6415
6424
  * height in `sp`. Only available on Android.
6425
+ *
6426
+ * Platforms: android, ios
6416
6427
  */
6417
6428
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
6429
+ /**
6430
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
6431
+ * style values. The axis tag must contain four ASCII characters.
6432
+ *
6433
+ * Platforms: not supported
6434
+ */
6435
+ font_variation_settings?: Type<{} | DivExpression>;
6418
6436
  /**
6419
6437
  * Style.
6420
6438
  */
@@ -6422,7 +6440,7 @@ interface DivInputProps {
6422
6440
  /**
6423
6441
  * Style. Numeric value.
6424
6442
  *
6425
- * Platforms: ios, web, android
6443
+ * Platforms: android, ios, web
6426
6444
  */
6427
6445
  font_weight_value?: Type<number | DivExpression>;
6428
6446
  /**
@@ -8217,6 +8235,8 @@ declare class DivSelect<T extends DivSelectProps = DivSelectProps> {
8217
8235
  /**
8218
8236
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
8219
8237
  * size.
8238
+ *
8239
+ * Platforms: android, ios, web
8220
8240
  */
8221
8241
  font_family?: Type<string | DivExpression>;
8222
8242
  /**
@@ -8231,6 +8251,13 @@ declare class DivSelect<T extends DivSelectProps = DivSelectProps> {
8231
8251
  * Platforms: android, ios
8232
8252
  */
8233
8253
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
8254
+ /**
8255
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
8256
+ * style values. The axis tag must contain four ASCII characters.
8257
+ *
8258
+ * Platforms: not supported
8259
+ */
8260
+ font_variation_settings?: Type<{} | DivExpression>;
8234
8261
  /**
8235
8262
  * Style.
8236
8263
  */
@@ -8238,7 +8265,7 @@ declare class DivSelect<T extends DivSelectProps = DivSelectProps> {
8238
8265
  /**
8239
8266
  * Style. Numeric value.
8240
8267
  *
8241
- * Platforms: ios, web, android
8268
+ * Platforms: android, ios, web
8242
8269
  */
8243
8270
  font_weight_value?: Type<number | DivExpression>;
8244
8271
  /**
@@ -8449,6 +8476,8 @@ interface DivSelectProps {
8449
8476
  /**
8450
8477
  * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
8451
8478
  * size.
8479
+ *
8480
+ * Platforms: android, ios, web
8452
8481
  */
8453
8482
  font_family?: Type<string | DivExpression>;
8454
8483
  /**
@@ -8463,6 +8492,13 @@ interface DivSelectProps {
8463
8492
  * Platforms: android, ios
8464
8493
  */
8465
8494
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
8495
+ /**
8496
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
8497
+ * style values. The axis tag must contain four ASCII characters.
8498
+ *
8499
+ * Platforms: not supported
8500
+ */
8501
+ font_variation_settings?: Type<{} | DivExpression>;
8466
8502
  /**
8467
8503
  * Style.
8468
8504
  */
@@ -8470,7 +8506,7 @@ interface DivSelectProps {
8470
8506
  /**
8471
8507
  * Style. Numeric value.
8472
8508
  *
8473
- * Platforms: ios, web, android
8509
+ * Platforms: android, ios, web
8474
8510
  */
8475
8511
  font_weight_value?: Type<number | DivExpression>;
8476
8512
  /**
@@ -9839,14 +9875,32 @@ interface IDivSliderRange {
9839
9875
  track_inactive_style?: Type<DivDrawable>;
9840
9876
  }
9841
9877
  interface IDivSliderTextStyle {
9878
+ /**
9879
+ * Font family:`text` — a standard text font;`display` — a family of fonts with a large font
9880
+ * size.
9881
+ *
9882
+ * Platforms: android, ios, web
9883
+ */
9884
+ font_family?: Type<string | DivExpression>;
9842
9885
  /**
9843
9886
  * Font size.
9844
9887
  */
9845
9888
  font_size: Type<number | DivExpression>;
9846
9889
  /**
9890
+ * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
9891
+ * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
9892
+ * height in `sp`. Only available on Android.
9893
+ *
9847
9894
  * Platforms: android, ios
9848
9895
  */
9849
9896
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
9897
+ /**
9898
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
9899
+ * style values. The axis tag must contain four ASCII characters.
9900
+ *
9901
+ * Platforms: not supported
9902
+ */
9903
+ font_variation_settings?: Type<{} | DivExpression>;
9850
9904
  /**
9851
9905
  * Style.
9852
9906
  */
@@ -9854,7 +9908,7 @@ interface IDivSliderTextStyle {
9854
9908
  /**
9855
9909
  * Style. Numeric value.
9856
9910
  *
9857
- * Platforms: ios, web, android
9911
+ * Platforms: android, ios, web
9858
9912
  */
9859
9913
  font_weight_value?: Type<number | DivExpression>;
9860
9914
  /**
@@ -11346,6 +11400,12 @@ interface IDivTabsTabTitleStyle {
11346
11400
  * Background color of the active tab title.
11347
11401
  */
11348
11402
  active_background_color?: Type<string | DivExpression>;
11403
+ /**
11404
+ * List of TrueType/OpenType font features of the active tab title.
11405
+ *
11406
+ * Platforms: not supported
11407
+ */
11408
+ active_font_variation_settings?: Type<{} | DivExpression>;
11349
11409
  /**
11350
11410
  * Active tab title style.
11351
11411
  */
@@ -11398,6 +11458,12 @@ interface IDivTabsTabTitleStyle {
11398
11458
  * Background color of the inactive tab title.
11399
11459
  */
11400
11460
  inactive_background_color?: Type<string | DivExpression>;
11461
+ /**
11462
+ * List of TrueType/OpenType font features of the inactive tab title.
11463
+ *
11464
+ * Platforms: not supported
11465
+ */
11466
+ inactive_font_variation_settings?: Type<{} | DivExpression>;
11401
11467
  /**
11402
11468
  * Inactive tab title style.
11403
11469
  */
@@ -11553,9 +11619,20 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
11553
11619
  */
11554
11620
  font_size?: Type<number | DivExpression>;
11555
11621
  /**
11622
+ * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
11623
+ * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
11624
+ * height in `sp`. Only available on Android.
11625
+ *
11556
11626
  * Platforms: android, ios
11557
11627
  */
11558
11628
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
11629
+ /**
11630
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
11631
+ * style values. The axis tag must contain four ASCII characters.
11632
+ *
11633
+ * Platforms: not supported
11634
+ */
11635
+ font_variation_settings?: Type<{} | DivExpression>;
11559
11636
  /**
11560
11637
  * Style.
11561
11638
  */
@@ -11563,7 +11640,7 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
11563
11640
  /**
11564
11641
  * Style. Numeric value.
11565
11642
  *
11566
- * Platforms: ios, android, web
11643
+ * Platforms: android, ios, web
11567
11644
  */
11568
11645
  font_weight_value?: Type<number | DivExpression>;
11569
11646
  /**
@@ -11934,9 +12011,20 @@ interface DivTextProps {
11934
12011
  */
11935
12012
  font_size?: Type<number | DivExpression>;
11936
12013
  /**
12014
+ * Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
12015
+ * screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
12016
+ * height in `sp`. Only available on Android.
12017
+ *
11937
12018
  * Platforms: android, ios
11938
12019
  */
11939
12020
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
12021
+ /**
12022
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
12023
+ * style values. The axis tag must contain four ASCII characters.
12024
+ *
12025
+ * Platforms: not supported
12026
+ */
12027
+ font_variation_settings?: Type<{} | DivExpression>;
11940
12028
  /**
11941
12029
  * Style.
11942
12030
  */
@@ -11944,7 +12032,7 @@ interface DivTextProps {
11944
12032
  /**
11945
12033
  * Style. Numeric value.
11946
12034
  *
11947
- * Platforms: ios, android, web
12035
+ * Platforms: android, ios, web
11948
12036
  */
11949
12037
  font_weight_value?: Type<number | DivExpression>;
11950
12038
  /**
@@ -12342,6 +12430,13 @@ interface IDivTextRange {
12342
12430
  * Platforms: android, ios
12343
12431
  */
12344
12432
  font_size_unit?: Type<DivSizeUnit | DivExpression>;
12433
+ /**
12434
+ * List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
12435
+ * style values. The axis tag must contain four ASCII characters.
12436
+ *
12437
+ * Platforms: not supported
12438
+ */
12439
+ font_variation_settings?: Type<{} | DivExpression>;
12345
12440
  /**
12346
12441
  * Style.
12347
12442
  */
@@ -983,6 +983,7 @@ class DivInput {
983
983
  this.font_family = props.font_family;
984
984
  this.font_size = props.font_size;
985
985
  this.font_size_unit = props.font_size_unit;
986
+ this.font_variation_settings = props.font_variation_settings;
986
987
  this.font_weight = props.font_weight;
987
988
  this.font_weight_value = props.font_weight_value;
988
989
  this.functions = props.functions;
@@ -1396,6 +1397,7 @@ class DivSelect {
1396
1397
  this.font_family = props.font_family;
1397
1398
  this.font_size = props.font_size;
1398
1399
  this.font_size_unit = props.font_size_unit;
1400
+ this.font_variation_settings = props.font_variation_settings;
1399
1401
  this.font_weight = props.font_weight;
1400
1402
  this.font_weight_value = props.font_weight_value;
1401
1403
  this.functions = props.functions;
@@ -1788,6 +1790,7 @@ class DivText {
1788
1790
  this.font_feature_settings = props.font_feature_settings;
1789
1791
  this.font_size = props.font_size;
1790
1792
  this.font_size_unit = props.font_size_unit;
1793
+ this.font_variation_settings = props.font_variation_settings;
1791
1794
  this.font_weight = props.font_weight;
1792
1795
  this.font_weight_value = props.font_weight_value;
1793
1796
  this.functions = props.functions;