@divkitframework/jsonbuilder 31.14.0 → 32.1.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.map +1 -1
- package/dist/jsonbuilder.d.ts +38 -49
- package/dist/jsonbuilder.js.map +1 -1
- package/package.json +1 -1
package/dist/jsonbuilder.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ declare class ArrayVariable<T extends ArrayVariableProps = ArrayVariableProps> {
|
|
|
122
122
|
/**
|
|
123
123
|
* Value.
|
|
124
124
|
*/
|
|
125
|
-
value: Type<unknown[]>;
|
|
125
|
+
value: Type<unknown[] | DivExpression>;
|
|
126
126
|
constructor(props: Exact<ArrayVariableProps, T>);
|
|
127
127
|
}
|
|
128
128
|
interface ArrayVariableProps {
|
|
@@ -133,7 +133,7 @@ interface ArrayVariableProps {
|
|
|
133
133
|
/**
|
|
134
134
|
* Value.
|
|
135
135
|
*/
|
|
136
|
-
value: Type<unknown[]>;
|
|
136
|
+
value: Type<unknown[] | DivExpression>;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
declare class BooleanValue<T extends BooleanValueProps = BooleanValueProps> {
|
|
@@ -159,7 +159,7 @@ declare class BooleanVariable<T extends BooleanVariableProps = BooleanVariablePr
|
|
|
159
159
|
/**
|
|
160
160
|
* Value.
|
|
161
161
|
*/
|
|
162
|
-
value: Type<IntBoolean>;
|
|
162
|
+
value: Type<IntBoolean | DivExpression>;
|
|
163
163
|
constructor(props: Exact<BooleanVariableProps, T>);
|
|
164
164
|
}
|
|
165
165
|
interface BooleanVariableProps {
|
|
@@ -170,7 +170,7 @@ interface BooleanVariableProps {
|
|
|
170
170
|
/**
|
|
171
171
|
* Value.
|
|
172
172
|
*/
|
|
173
|
-
value: Type<IntBoolean>;
|
|
173
|
+
value: Type<IntBoolean | DivExpression>;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
declare class ColorValue<T extends ColorValueProps = ColorValueProps> {
|
|
@@ -196,7 +196,7 @@ declare class ColorVariable<T extends ColorVariableProps = ColorVariableProps> {
|
|
|
196
196
|
/**
|
|
197
197
|
* Value.
|
|
198
198
|
*/
|
|
199
|
-
value: Type<string>;
|
|
199
|
+
value: Type<string | DivExpression>;
|
|
200
200
|
constructor(props: Exact<ColorVariableProps, T>);
|
|
201
201
|
}
|
|
202
202
|
interface ColorVariableProps {
|
|
@@ -207,7 +207,7 @@ interface ColorVariableProps {
|
|
|
207
207
|
/**
|
|
208
208
|
* Value.
|
|
209
209
|
*/
|
|
210
|
-
value: Type<string>;
|
|
210
|
+
value: Type<string | DivExpression>;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
declare class ContentText<T extends ContentTextProps = ContentTextProps> {
|
|
@@ -253,7 +253,7 @@ declare class DictVariable<T extends DictVariableProps = DictVariableProps> {
|
|
|
253
253
|
/**
|
|
254
254
|
* Value.
|
|
255
255
|
*/
|
|
256
|
-
value: Type<{}>;
|
|
256
|
+
value: Type<{} | DivExpression>;
|
|
257
257
|
constructor(props: Exact<DictVariableProps, T>);
|
|
258
258
|
}
|
|
259
259
|
interface DictVariableProps {
|
|
@@ -264,7 +264,7 @@ interface DictVariableProps {
|
|
|
264
264
|
/**
|
|
265
265
|
* Value.
|
|
266
266
|
*/
|
|
267
|
-
value: Type<{}>;
|
|
267
|
+
value: Type<{} | DivExpression>;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
/**
|
|
@@ -2886,9 +2886,6 @@ interface IDivEdgeInsets {
|
|
|
2886
2886
|
* Top margin.
|
|
2887
2887
|
*/
|
|
2888
2888
|
top?: Type<number | DivExpression>;
|
|
2889
|
-
/**
|
|
2890
|
-
* Platforms: android, ios
|
|
2891
|
-
*/
|
|
2892
2889
|
unit?: Type<DivSizeUnit | DivExpression>;
|
|
2893
2890
|
}
|
|
2894
2891
|
|
|
@@ -6099,15 +6096,13 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
|
|
|
6099
6096
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
6100
6097
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
6101
6098
|
* height in `sp`. Only available on Android.
|
|
6102
|
-
*
|
|
6103
|
-
* Platforms: android, ios
|
|
6104
6099
|
*/
|
|
6105
6100
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
6106
6101
|
/**
|
|
6107
6102
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
6108
6103
|
* style values. The axis tag must contain four ASCII characters.
|
|
6109
6104
|
*
|
|
6110
|
-
* Platforms:
|
|
6105
|
+
* Platforms: android
|
|
6111
6106
|
*/
|
|
6112
6107
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
6113
6108
|
/**
|
|
@@ -6422,15 +6417,13 @@ interface DivInputProps {
|
|
|
6422
6417
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
6423
6418
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
6424
6419
|
* height in `sp`. Only available on Android.
|
|
6425
|
-
*
|
|
6426
|
-
* Platforms: android, ios
|
|
6427
6420
|
*/
|
|
6428
6421
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
6429
6422
|
/**
|
|
6430
6423
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
6431
6424
|
* style values. The axis tag must contain four ASCII characters.
|
|
6432
6425
|
*
|
|
6433
|
-
* Platforms:
|
|
6426
|
+
* Platforms: android
|
|
6434
6427
|
*/
|
|
6435
6428
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
6436
6429
|
/**
|
|
@@ -7344,7 +7337,7 @@ declare class DivPager<T extends DivPagerProps = DivPagerProps> {
|
|
|
7344
7337
|
* Enables infinite scrolling of cards. Scrolling is looped: after the last card is displayed, it
|
|
7345
7338
|
* starts over again.
|
|
7346
7339
|
*
|
|
7347
|
-
* Platforms: android, ios
|
|
7340
|
+
* Platforms: android, ios, web
|
|
7348
7341
|
*/
|
|
7349
7342
|
infinite_scroll?: Type<IntBoolean | DivExpression>;
|
|
7350
7343
|
/**
|
|
@@ -7602,7 +7595,7 @@ interface DivPagerProps {
|
|
|
7602
7595
|
* Enables infinite scrolling of cards. Scrolling is looped: after the last card is displayed, it
|
|
7603
7596
|
* starts over again.
|
|
7604
7597
|
*
|
|
7605
|
-
* Platforms: android, ios
|
|
7598
|
+
* Platforms: android, ios, web
|
|
7606
7599
|
*/
|
|
7607
7600
|
infinite_scroll?: Type<IntBoolean | DivExpression>;
|
|
7608
7601
|
/**
|
|
@@ -8247,15 +8240,13 @@ declare class DivSelect<T extends DivSelectProps = DivSelectProps> {
|
|
|
8247
8240
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
8248
8241
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
8249
8242
|
* height in `sp`. Only available on Android.
|
|
8250
|
-
*
|
|
8251
|
-
* Platforms: android, ios
|
|
8252
8243
|
*/
|
|
8253
8244
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
8254
8245
|
/**
|
|
8255
8246
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
8256
8247
|
* style values. The axis tag must contain four ASCII characters.
|
|
8257
8248
|
*
|
|
8258
|
-
* Platforms:
|
|
8249
|
+
* Platforms: android
|
|
8259
8250
|
*/
|
|
8260
8251
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
8261
8252
|
/**
|
|
@@ -8301,6 +8292,8 @@ declare class DivSelect<T extends DivSelectProps = DivSelectProps> {
|
|
|
8301
8292
|
layout_provider?: Type<IDivLayoutProvider>;
|
|
8302
8293
|
/**
|
|
8303
8294
|
* Spacing between characters.
|
|
8295
|
+
*
|
|
8296
|
+
* Platforms: android, ios, web
|
|
8304
8297
|
*/
|
|
8305
8298
|
letter_spacing?: Type<number | DivExpression>;
|
|
8306
8299
|
/**
|
|
@@ -8488,15 +8481,13 @@ interface DivSelectProps {
|
|
|
8488
8481
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
8489
8482
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
8490
8483
|
* height in `sp`. Only available on Android.
|
|
8491
|
-
*
|
|
8492
|
-
* Platforms: android, ios
|
|
8493
8484
|
*/
|
|
8494
8485
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
8495
8486
|
/**
|
|
8496
8487
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
8497
8488
|
* style values. The axis tag must contain four ASCII characters.
|
|
8498
8489
|
*
|
|
8499
|
-
* Platforms:
|
|
8490
|
+
* Platforms: android
|
|
8500
8491
|
*/
|
|
8501
8492
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
8502
8493
|
/**
|
|
@@ -8542,6 +8533,8 @@ interface DivSelectProps {
|
|
|
8542
8533
|
layout_provider?: Type<IDivLayoutProvider>;
|
|
8543
8534
|
/**
|
|
8544
8535
|
* Spacing between characters.
|
|
8536
|
+
*
|
|
8537
|
+
* Platforms: android, ios, web
|
|
8545
8538
|
*/
|
|
8546
8539
|
letter_spacing?: Type<number | DivExpression>;
|
|
8547
8540
|
/**
|
|
@@ -9890,15 +9883,13 @@ interface IDivSliderTextStyle {
|
|
|
9890
9883
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
9891
9884
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
9892
9885
|
* height in `sp`. Only available on Android.
|
|
9893
|
-
*
|
|
9894
|
-
* Platforms: android, ios
|
|
9895
9886
|
*/
|
|
9896
9887
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
9897
9888
|
/**
|
|
9898
9889
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
9899
9890
|
* style values. The axis tag must contain four ASCII characters.
|
|
9900
9891
|
*
|
|
9901
|
-
* Platforms:
|
|
9892
|
+
* Platforms: android
|
|
9902
9893
|
*/
|
|
9903
9894
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
9904
9895
|
/**
|
|
@@ -9911,6 +9902,12 @@ interface IDivSliderTextStyle {
|
|
|
9911
9902
|
* Platforms: android, ios, web
|
|
9912
9903
|
*/
|
|
9913
9904
|
font_weight_value?: Type<number | DivExpression>;
|
|
9905
|
+
/**
|
|
9906
|
+
* Spacing between characters.
|
|
9907
|
+
*
|
|
9908
|
+
* Platforms: android, ios, web
|
|
9909
|
+
*/
|
|
9910
|
+
letter_spacing?: Type<number | DivExpression>;
|
|
9914
9911
|
/**
|
|
9915
9912
|
* Shift relative to the center.
|
|
9916
9913
|
*/
|
|
@@ -11444,8 +11441,6 @@ interface IDivTabsTabTitleStyle {
|
|
|
11444
11441
|
font_size?: Type<number | DivExpression>;
|
|
11445
11442
|
/**
|
|
11446
11443
|
* Units of title font size measurement.
|
|
11447
|
-
*
|
|
11448
|
-
* Platforms: android, ios
|
|
11449
11444
|
*/
|
|
11450
11445
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
11451
11446
|
/**
|
|
@@ -11622,15 +11617,13 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
11622
11617
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
11623
11618
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
11624
11619
|
* height in `sp`. Only available on Android.
|
|
11625
|
-
*
|
|
11626
|
-
* Platforms: android, ios
|
|
11627
11620
|
*/
|
|
11628
11621
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
11629
11622
|
/**
|
|
11630
11623
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
11631
11624
|
* style values. The axis tag must contain four ASCII characters.
|
|
11632
11625
|
*
|
|
11633
|
-
* Platforms:
|
|
11626
|
+
* Platforms: android
|
|
11634
11627
|
*/
|
|
11635
11628
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
11636
11629
|
/**
|
|
@@ -11783,7 +11776,7 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
11783
11776
|
*/
|
|
11784
11777
|
text_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
11785
11778
|
/**
|
|
11786
|
-
* Text color.
|
|
11779
|
+
* Text color.
|
|
11787
11780
|
*/
|
|
11788
11781
|
text_color?: Type<string | DivExpression>;
|
|
11789
11782
|
/**
|
|
@@ -12014,15 +12007,13 @@ interface DivTextProps {
|
|
|
12014
12007
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
12015
12008
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
12016
12009
|
* height in `sp`. Only available on Android.
|
|
12017
|
-
*
|
|
12018
|
-
* Platforms: android, ios
|
|
12019
12010
|
*/
|
|
12020
12011
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
12021
12012
|
/**
|
|
12022
12013
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
12023
12014
|
* style values. The axis tag must contain four ASCII characters.
|
|
12024
12015
|
*
|
|
12025
|
-
* Platforms:
|
|
12016
|
+
* Platforms: android
|
|
12026
12017
|
*/
|
|
12027
12018
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
12028
12019
|
/**
|
|
@@ -12175,7 +12166,7 @@ interface DivTextProps {
|
|
|
12175
12166
|
*/
|
|
12176
12167
|
text_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
12177
12168
|
/**
|
|
12178
|
-
* Text color.
|
|
12169
|
+
* Text color.
|
|
12179
12170
|
*/
|
|
12180
12171
|
text_color?: Type<string | DivExpression>;
|
|
12181
12172
|
/**
|
|
@@ -12426,15 +12417,13 @@ interface IDivTextRange {
|
|
|
12426
12417
|
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
12427
12418
|
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
12428
12419
|
* height in `sp`. Only available on Android.
|
|
12429
|
-
*
|
|
12430
|
-
* Platforms: android, ios
|
|
12431
12420
|
*/
|
|
12432
12421
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
12433
12422
|
/**
|
|
12434
12423
|
* List of TrueType/OpenType font features. The object is constructed from pairs of axis tag and
|
|
12435
12424
|
* style values. The axis tag must contain four ASCII characters.
|
|
12436
12425
|
*
|
|
12437
|
-
* Platforms:
|
|
12426
|
+
* Platforms: android
|
|
12438
12427
|
*/
|
|
12439
12428
|
font_variation_settings?: Type<{} | DivExpression>;
|
|
12440
12429
|
/**
|
|
@@ -13519,7 +13508,7 @@ declare class IntegerVariable<T extends IntegerVariableProps = IntegerVariablePr
|
|
|
13519
13508
|
/**
|
|
13520
13509
|
* Value.
|
|
13521
13510
|
*/
|
|
13522
|
-
value: Type<number>;
|
|
13511
|
+
value: Type<number | DivExpression>;
|
|
13523
13512
|
constructor(props: Exact<IntegerVariableProps, T>);
|
|
13524
13513
|
}
|
|
13525
13514
|
interface IntegerVariableProps {
|
|
@@ -13530,7 +13519,7 @@ interface IntegerVariableProps {
|
|
|
13530
13519
|
/**
|
|
13531
13520
|
* Value.
|
|
13532
13521
|
*/
|
|
13533
|
-
value: Type<number>;
|
|
13522
|
+
value: Type<number | DivExpression>;
|
|
13534
13523
|
}
|
|
13535
13524
|
|
|
13536
13525
|
declare class NumberValue<T extends NumberValueProps = NumberValueProps> {
|
|
@@ -13556,7 +13545,7 @@ declare class NumberVariable<T extends NumberVariableProps = NumberVariableProps
|
|
|
13556
13545
|
/**
|
|
13557
13546
|
* Value.
|
|
13558
13547
|
*/
|
|
13559
|
-
value: Type<number>;
|
|
13548
|
+
value: Type<number | DivExpression>;
|
|
13560
13549
|
constructor(props: Exact<NumberVariableProps, T>);
|
|
13561
13550
|
}
|
|
13562
13551
|
interface NumberVariableProps {
|
|
@@ -13567,7 +13556,7 @@ interface NumberVariableProps {
|
|
|
13567
13556
|
/**
|
|
13568
13557
|
* Value.
|
|
13569
13558
|
*/
|
|
13570
|
-
value: Type<number>;
|
|
13559
|
+
value: Type<number | DivExpression>;
|
|
13571
13560
|
}
|
|
13572
13561
|
|
|
13573
13562
|
/**
|
|
@@ -13624,7 +13613,7 @@ declare class StringVariable<T extends StringVariableProps = StringVariableProps
|
|
|
13624
13613
|
/**
|
|
13625
13614
|
* Value.
|
|
13626
13615
|
*/
|
|
13627
|
-
value: Type<string>;
|
|
13616
|
+
value: Type<string | DivExpression>;
|
|
13628
13617
|
constructor(props: Exact<StringVariableProps, T>);
|
|
13629
13618
|
}
|
|
13630
13619
|
interface StringVariableProps {
|
|
@@ -13635,7 +13624,7 @@ interface StringVariableProps {
|
|
|
13635
13624
|
/**
|
|
13636
13625
|
* Value.
|
|
13637
13626
|
*/
|
|
13638
|
-
value: Type<string>;
|
|
13627
|
+
value: Type<string | DivExpression>;
|
|
13639
13628
|
}
|
|
13640
13629
|
|
|
13641
13630
|
declare class UrlValue<T extends UrlValueProps = UrlValueProps> {
|
|
@@ -13661,7 +13650,7 @@ declare class UrlVariable<T extends UrlVariableProps = UrlVariableProps> {
|
|
|
13661
13650
|
/**
|
|
13662
13651
|
* Value.
|
|
13663
13652
|
*/
|
|
13664
|
-
value: Type<string>;
|
|
13653
|
+
value: Type<string | DivExpression>;
|
|
13665
13654
|
constructor(props: Exact<UrlVariableProps, T>);
|
|
13666
13655
|
}
|
|
13667
13656
|
interface UrlVariableProps {
|
|
@@ -13672,7 +13661,7 @@ interface UrlVariableProps {
|
|
|
13672
13661
|
/**
|
|
13673
13662
|
* Value.
|
|
13674
13663
|
*/
|
|
13675
|
-
value: Type<string>;
|
|
13664
|
+
value: Type<string | DivExpression>;
|
|
13676
13665
|
}
|
|
13677
13666
|
|
|
13678
13667
|
/**
|