@divkitframework/jsonbuilder 28.0.0 → 28.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.
@@ -91,6 +91,16 @@ declare type IntBoolean = 1 | 0 | true | false;
91
91
  declare function treeWalkDFS(tree: unknown, nodeAction: (x: unknown, path: string[]) => void): void;
92
92
  declare function copyTemplates<T extends ITemplates>(templates: T): T;
93
93
 
94
+ declare class ArrayValue<T extends ArrayValueProps = ArrayValueProps> {
95
+ readonly _props?: Exact<ArrayValueProps, T>;
96
+ readonly type = "array";
97
+ value: Type<unknown[]>;
98
+ constructor(props: Exact<ArrayValueProps, T>);
99
+ }
100
+ interface ArrayValueProps {
101
+ value: Type<unknown[]>;
102
+ }
103
+
94
104
  /**
95
105
  * An arbitrary array in JSON format.
96
106
  */
@@ -118,6 +128,16 @@ interface ArrayVariableProps {
118
128
  value: Type<unknown[]>;
119
129
  }
120
130
 
131
+ declare class BooleanValue<T extends BooleanValueProps = BooleanValueProps> {
132
+ readonly _props?: Exact<BooleanValueProps, T>;
133
+ readonly type = "boolean";
134
+ value: Type<boolean | DivExpression>;
135
+ constructor(props: Exact<BooleanValueProps, T>);
136
+ }
137
+ interface BooleanValueProps {
138
+ value: Type<boolean | DivExpression>;
139
+ }
140
+
121
141
  /**
122
142
  * A Boolean variable in binary format.
123
143
  */
@@ -145,6 +165,16 @@ interface BooleanVariableProps {
145
165
  value: Type<IntBoolean>;
146
166
  }
147
167
 
168
+ declare class ColorValue<T extends ColorValueProps = ColorValueProps> {
169
+ readonly _props?: Exact<ColorValueProps, T>;
170
+ readonly type = "color";
171
+ value: Type<string | DivExpression>;
172
+ constructor(props: Exact<ColorValueProps, T>);
173
+ }
174
+ interface ColorValueProps {
175
+ value: Type<string | DivExpression>;
176
+ }
177
+
148
178
  /**
149
179
  * Variable — HEX color as a string.
150
180
  */
@@ -172,6 +202,16 @@ interface ColorVariableProps {
172
202
  value: Type<string>;
173
203
  }
174
204
 
205
+ declare class DictValue<T extends DictValueProps = DictValueProps> {
206
+ readonly _props?: Exact<DictValueProps, T>;
207
+ readonly type = "dict";
208
+ value: Type<{}>;
209
+ constructor(props: Exact<DictValueProps, T>);
210
+ }
211
+ interface DictValueProps {
212
+ value: Type<{}>;
213
+ }
214
+
175
215
  /**
176
216
  * An arbitrary object in JSON format.
177
217
  */
@@ -290,6 +330,7 @@ interface IDivAction {
290
330
  * The tab in which the URL must be opened.
291
331
  */
292
332
  target?: Type<DivActionTarget | DivExpression>;
333
+ typed?: Type<DivActionTyped>;
293
334
  /**
294
335
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
295
336
  * elements](../../interaction.dita).
@@ -312,6 +353,55 @@ interface IDivActionMenuItem {
312
353
  text: Type<string | DivExpression>;
313
354
  }
314
355
 
356
+ /**
357
+ * Insert value to array
358
+ */
359
+ declare class DivActionArrayInsertValue<T extends DivActionArrayInsertValueProps = DivActionArrayInsertValueProps> {
360
+ readonly _props?: Exact<DivActionArrayInsertValueProps, T>;
361
+ readonly type = "array_insert_value";
362
+ index?: Type<number | DivExpression>;
363
+ value: Type<DivTypedValue>;
364
+ variable_name: Type<string | DivExpression>;
365
+ constructor(props: Exact<DivActionArrayInsertValueProps, T>);
366
+ }
367
+ interface DivActionArrayInsertValueProps {
368
+ index?: Type<number | DivExpression>;
369
+ value: Type<DivTypedValue>;
370
+ variable_name: Type<string | DivExpression>;
371
+ }
372
+
373
+ /**
374
+ * Remove value from array
375
+ */
376
+ declare class DivActionArrayRemoveValue<T extends DivActionArrayRemoveValueProps = DivActionArrayRemoveValueProps> {
377
+ readonly _props?: Exact<DivActionArrayRemoveValueProps, T>;
378
+ readonly type = "array_remove_value";
379
+ index: Type<number | DivExpression>;
380
+ variable_name: Type<string | DivExpression>;
381
+ constructor(props: Exact<DivActionArrayRemoveValueProps, T>);
382
+ }
383
+ interface DivActionArrayRemoveValueProps {
384
+ index: Type<number | DivExpression>;
385
+ variable_name: Type<string | DivExpression>;
386
+ }
387
+
388
+ /**
389
+ * Sets variable value
390
+ */
391
+ declare class DivActionSetVariable<T extends DivActionSetVariableProps = DivActionSetVariableProps> {
392
+ readonly _props?: Exact<DivActionSetVariableProps, T>;
393
+ readonly type = "set_variable";
394
+ value: Type<DivTypedValue>;
395
+ variable_name: Type<string | DivExpression>;
396
+ constructor(props: Exact<DivActionSetVariableProps, T>);
397
+ }
398
+ interface DivActionSetVariableProps {
399
+ value: Type<DivTypedValue>;
400
+ variable_name: Type<string | DivExpression>;
401
+ }
402
+
403
+ declare type DivActionTyped = DivActionArrayInsertValue | DivActionArrayRemoveValue | DivActionSetVariable;
404
+
315
405
  declare type DivAlignmentHorizontal = 'left' | 'center' | 'right' | 'start' | 'end';
316
406
 
317
407
  declare type DivAlignmentVertical = 'top' | 'center' | 'bottom' | 'baseline';
@@ -551,7 +641,7 @@ interface IDivBorder {
551
641
  */
552
642
  has_shadow?: Type<IntBoolean | DivExpression>;
553
643
  /**
554
- * Shadow parameters.
644
+ * Shadow parameters applied to the stroke of the element.
555
645
  */
556
646
  shadow?: Type<IDivShadow>;
557
647
  /**
@@ -1440,6 +1530,7 @@ interface IDivDisappearAction {
1440
1530
  * Referer URL for logging.
1441
1531
  */
1442
1532
  referer?: Type<string | DivExpression>;
1533
+ typed?: Type<DivActionTyped>;
1443
1534
  /**
1444
1535
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
1445
1536
  * elements](../../interaction.dita).
@@ -4582,7 +4673,7 @@ interface DivPercentageSizeProps {
4582
4673
  }
4583
4674
 
4584
4675
  /**
4585
- * Mask for entering a phone with a dynamic definition of the regional format.
4676
+ * Mask for entering phone numbers with dynamic regional format identification.
4586
4677
  */
4587
4678
  declare class DivPhoneInputMask<T extends DivPhoneInputMaskProps = DivPhoneInputMaskProps> {
4588
4679
  readonly _props?: Exact<DivPhoneInputMaskProps, T>;
@@ -5629,6 +5720,7 @@ interface IDivSightAction {
5629
5720
  * Referer URL for logging.
5630
5721
  */
5631
5722
  referer?: Type<string | DivExpression>;
5723
+ typed?: Type<DivActionTyped>;
5632
5724
  /**
5633
5725
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
5634
5726
  * elements](../../interaction.dita).
@@ -6198,9 +6290,9 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
6198
6290
  */
6199
6291
  selected_actions?: Type<NonEmptyArray<IDivAction>>;
6200
6292
  /**
6201
- * Name of the variable where the current state ID value is stored. If the value of a variable
6202
- * changes, then the active state will also be changed. The variable takes precedence over the
6203
- * `default_state_id` field.
6293
+ * The name of the variable that stores the ID for the current state. If the variable changes,
6294
+ * the active state will also change. The variable is prioritized over the default_state_id
6295
+ * parameter.
6204
6296
  */
6205
6297
  state_id_variable?: Type<string>;
6206
6298
  /**
@@ -6345,9 +6437,9 @@ interface DivStateProps {
6345
6437
  */
6346
6438
  selected_actions?: Type<NonEmptyArray<IDivAction>>;
6347
6439
  /**
6348
- * Name of the variable where the current state ID value is stored. If the value of a variable
6349
- * changes, then the active state will also be changed. The variable takes precedence over the
6350
- * `default_state_id` field.
6440
+ * The name of the variable that stores the ID for the current state. If the variable changes,
6441
+ * the active state will also change. The variable is prioritized over the default_state_id
6442
+ * parameter.
6351
6443
  */
6352
6444
  state_id_variable?: Type<string>;
6353
6445
  /**
@@ -7663,6 +7755,8 @@ interface IDivTrigger {
7663
7755
  }
7664
7756
  declare type DivTriggerMode = 'on_condition' | 'on_variable';
7665
7757
 
7758
+ declare type DivTypedValue = StringValue | IntegerValue | NumberValue | ColorValue | BooleanValue | UrlValue | DictValue | ArrayValue;
7759
+
7666
7760
  declare type DivVariable = StringVariable | NumberVariable | IntegerVariable | BooleanVariable | ColorVariable | UrlVariable | DictVariable | ArrayVariable;
7667
7761
 
7668
7762
  /**
@@ -8106,6 +8200,7 @@ interface IDivVisibilityAction {
8106
8200
  * Referer URL for logging.
8107
8201
  */
8108
8202
  referer?: Type<string | DivExpression>;
8203
+ typed?: Type<DivActionTyped>;
8109
8204
  /**
8110
8205
  * URL. Possible values: `url` or `div-action://`. To learn more, see [Interaction with
8111
8206
  * elements](../../interaction.dita).
@@ -8167,6 +8262,16 @@ interface IDivWrapContentSizeConstraintSize {
8167
8262
  value: Type<number | DivExpression>;
8168
8263
  }
8169
8264
 
8265
+ declare class IntegerValue<T extends IntegerValueProps = IntegerValueProps> {
8266
+ readonly _props?: Exact<IntegerValueProps, T>;
8267
+ readonly type = "integer";
8268
+ value: Type<number | DivExpression>;
8269
+ constructor(props: Exact<IntegerValueProps, T>);
8270
+ }
8271
+ interface IntegerValueProps {
8272
+ value: Type<number | DivExpression>;
8273
+ }
8274
+
8170
8275
  /**
8171
8276
  * An integer variable.
8172
8277
  */
@@ -8194,6 +8299,16 @@ interface IntegerVariableProps {
8194
8299
  value: Type<number>;
8195
8300
  }
8196
8301
 
8302
+ declare class NumberValue<T extends NumberValueProps = NumberValueProps> {
8303
+ readonly _props?: Exact<NumberValueProps, T>;
8304
+ readonly type = "number";
8305
+ value: Type<number | DivExpression>;
8306
+ constructor(props: Exact<NumberValueProps, T>);
8307
+ }
8308
+ interface NumberValueProps {
8309
+ value: Type<number | DivExpression>;
8310
+ }
8311
+
8197
8312
  /**
8198
8313
  * A floating-point variable.
8199
8314
  */
@@ -8221,6 +8336,16 @@ interface NumberVariableProps {
8221
8336
  value: Type<number>;
8222
8337
  }
8223
8338
 
8339
+ declare class StringValue<T extends StringValueProps = StringValueProps> {
8340
+ readonly _props?: Exact<StringValueProps, T>;
8341
+ readonly type = "string";
8342
+ value: Type<string | DivExpression>;
8343
+ constructor(props: Exact<StringValueProps, T>);
8344
+ }
8345
+ interface StringValueProps {
8346
+ value: Type<string | DivExpression>;
8347
+ }
8348
+
8224
8349
  /**
8225
8350
  * A string variable.
8226
8351
  */
@@ -8248,6 +8373,16 @@ interface StringVariableProps {
8248
8373
  value: Type<string>;
8249
8374
  }
8250
8375
 
8376
+ declare class UrlValue<T extends UrlValueProps = UrlValueProps> {
8377
+ readonly _props?: Exact<UrlValueProps, T>;
8378
+ readonly type = "url";
8379
+ value: Type<string | DivExpression>;
8380
+ constructor(props: Exact<UrlValueProps, T>);
8381
+ }
8382
+ interface UrlValueProps {
8383
+ value: Type<string | DivExpression>;
8384
+ }
8385
+
8251
8386
  /**
8252
8387
  * Variable — URL as a string.
8253
8388
  */
@@ -8430,4 +8565,4 @@ declare function rewriteTemplateVersions<T extends ITemplates>(templates: T, res
8430
8565
  };
8431
8566
  };
8432
8567
 
8433
- export { ArrayVariable, ArrayVariableProps, BooleanVariable, BooleanVariableProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, DictVariable, DictVariableProps, Div, DivAccessibilityMode, DivAccessibilityType, DivActionTarget, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivBlendMode, DivBlur, DivBlurProps, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivCircleShape, DivCircleShapeProps, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivContentAlignmentHorizontal, DivContentAlignmentVertical, DivCount, DivCurrencyInputMask, DivCurrencyInputMaskProps, DivCustom, DivCustomProps, DivDefaultIndicatorItemPlacement, DivDefaultIndicatorItemPlacementProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFilter, DivFixedCount, DivFixedCountProps, DivFixedLengthInputMask, DivFixedLengthInputMaskProps, DivFixedSize, DivFixedSizeProps, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorItemPlacement, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputMask, DivInputProps, DivInputValidator, DivInputValidatorExpression, DivInputValidatorExpressionProps, DivInputValidatorRegex, DivInputValidatorRegexProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivNinePatchBackground, DivNinePatchBackgroundProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPhoneInputMask, DivPhoneInputMaskProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientCenter, DivRadialGradientFixedCenter, DivRadialGradientFixedCenterProps, DivRadialGradientProps, DivRadialGradientRadius, DivRadialGradientRelativeCenter, DivRadialGradientRelativeCenterProps, DivRadialGradientRelativeRadius, DivRadialGradientRelativeRadiusProps, DivRadialGradientRelativeRadiusValue, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSelect, DivSelectProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivStretchIndicatorItemPlacement, DivStretchIndicatorItemPlacementProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextRangeBackground, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivVariable, DivVideo, DivVideoProps, DivVideoSource, DivVideoSourceProps, DivVideoSourceResolution, DivVideoSourceResolutionProps, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAbsoluteEdgeInsets, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivContainerSeparator, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDisappearAction, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFixedLengthInputMaskPatternElement, IDivFocus, IDivFocusNextFocusIds, IDivInputMaskBase, IDivInputNativeInterface, IDivInputValidatorBase, IDivPatch, IDivPatchChange, IDivPoint, IDivSelectOption, IDivSeparatorDelimiterStyle, IDivShadow, IDivSightAction, IDivSliderRange, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTextRangeBorder, IDivTimer, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, IDivWrapContentSizeConstraintSize, ITemplates, IntBoolean, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberVariable, NumberVariableProps, SafeDivExpression, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
8568
+ export { ArrayValue, ArrayValueProps, ArrayVariable, ArrayVariableProps, BooleanValue, BooleanValueProps, BooleanVariable, BooleanVariableProps, ColorValue, ColorValueProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, DictValue, DictValueProps, DictVariable, DictVariableProps, Div, DivAccessibilityMode, DivAccessibilityType, DivActionArrayInsertValue, DivActionArrayInsertValueProps, DivActionArrayRemoveValue, DivActionArrayRemoveValueProps, DivActionSetVariable, DivActionSetVariableProps, DivActionTarget, DivActionTyped, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivBlendMode, DivBlur, DivBlurProps, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivCircleShape, DivCircleShapeProps, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivContentAlignmentHorizontal, DivContentAlignmentVertical, DivCount, DivCurrencyInputMask, DivCurrencyInputMaskProps, DivCustom, DivCustomProps, DivDefaultIndicatorItemPlacement, DivDefaultIndicatorItemPlacementProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFilter, DivFixedCount, DivFixedCountProps, DivFixedLengthInputMask, DivFixedLengthInputMaskProps, DivFixedSize, DivFixedSizeProps, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorItemPlacement, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputMask, DivInputProps, DivInputValidator, DivInputValidatorExpression, DivInputValidatorExpressionProps, DivInputValidatorRegex, DivInputValidatorRegexProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivNinePatchBackground, DivNinePatchBackgroundProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPhoneInputMask, DivPhoneInputMaskProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientCenter, DivRadialGradientFixedCenter, DivRadialGradientFixedCenterProps, DivRadialGradientProps, DivRadialGradientRadius, DivRadialGradientRelativeCenter, DivRadialGradientRelativeCenterProps, DivRadialGradientRelativeRadius, DivRadialGradientRelativeRadiusProps, DivRadialGradientRelativeRadiusValue, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSelect, DivSelectProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivStretchIndicatorItemPlacement, DivStretchIndicatorItemPlacementProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextRangeBackground, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivTypedValue, DivVariable, DivVideo, DivVideoProps, DivVideoSource, DivVideoSourceProps, DivVideoSourceResolution, DivVideoSourceResolutionProps, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAbsoluteEdgeInsets, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivContainerSeparator, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDisappearAction, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFixedLengthInputMaskPatternElement, IDivFocus, IDivFocusNextFocusIds, IDivInputMaskBase, IDivInputNativeInterface, IDivInputValidatorBase, IDivPatch, IDivPatchChange, IDivPoint, IDivSelectOption, IDivSeparatorDelimiterStyle, IDivShadow, IDivSightAction, IDivSliderRange, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTextRangeBorder, IDivTimer, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, IDivWrapContentSizeConstraintSize, ITemplates, IntBoolean, IntegerValue, IntegerValueProps, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberValue, NumberValueProps, NumberVariable, NumberVariableProps, SafeDivExpression, StringValue, StringValueProps, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlValue, UrlValueProps, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
@@ -4,6 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var crypto = require('crypto');
6
6
 
7
+ // Generated code. Do not modify.
8
+ class ArrayValue {
9
+ constructor(props) {
10
+ this.type = 'array';
11
+ this.value = props.value;
12
+ }
13
+ }
14
+
7
15
  // Generated code. Do not modify.
8
16
  /**
9
17
  * An arbitrary array in JSON format.
@@ -16,6 +24,14 @@ class ArrayVariable {
16
24
  }
17
25
  }
18
26
 
27
+ // Generated code. Do not modify.
28
+ class BooleanValue {
29
+ constructor(props) {
30
+ this.type = 'boolean';
31
+ this.value = props.value;
32
+ }
33
+ }
34
+
19
35
  // Generated code. Do not modify.
20
36
  /**
21
37
  * A Boolean variable in binary format.
@@ -28,6 +44,14 @@ class BooleanVariable {
28
44
  }
29
45
  }
30
46
 
47
+ // Generated code. Do not modify.
48
+ class ColorValue {
49
+ constructor(props) {
50
+ this.type = 'color';
51
+ this.value = props.value;
52
+ }
53
+ }
54
+
31
55
  // Generated code. Do not modify.
32
56
  /**
33
57
  * Variable — HEX color as a string.
@@ -40,6 +64,14 @@ class ColorVariable {
40
64
  }
41
65
  }
42
66
 
67
+ // Generated code. Do not modify.
68
+ class DictValue {
69
+ constructor(props) {
70
+ this.type = 'dict';
71
+ this.value = props.value;
72
+ }
73
+ }
74
+
43
75
  // Generated code. Do not modify.
44
76
  /**
45
77
  * An arbitrary object in JSON format.
@@ -52,6 +84,43 @@ class DictVariable {
52
84
  }
53
85
  }
54
86
 
87
+ // Generated code. Do not modify.
88
+ /**
89
+ * Insert value to array
90
+ */
91
+ class DivActionArrayInsertValue {
92
+ constructor(props) {
93
+ this.type = 'array_insert_value';
94
+ this.index = props.index;
95
+ this.value = props.value;
96
+ this.variable_name = props.variable_name;
97
+ }
98
+ }
99
+
100
+ // Generated code. Do not modify.
101
+ /**
102
+ * Remove value from array
103
+ */
104
+ class DivActionArrayRemoveValue {
105
+ constructor(props) {
106
+ this.type = 'array_remove_value';
107
+ this.index = props.index;
108
+ this.variable_name = props.variable_name;
109
+ }
110
+ }
111
+
112
+ // Generated code. Do not modify.
113
+ /**
114
+ * Sets variable value
115
+ */
116
+ class DivActionSetVariable {
117
+ constructor(props) {
118
+ this.type = 'set_variable';
119
+ this.value = props.value;
120
+ this.variable_name = props.variable_name;
121
+ }
122
+ }
123
+
55
124
  // Generated code. Do not modify.
56
125
  /**
57
126
  * A set of animations to be applied simultaneously.
@@ -740,7 +809,7 @@ class DivPercentageSize {
740
809
 
741
810
  // Generated code. Do not modify.
742
811
  /**
743
- * Mask for entering a phone with a dynamic definition of the regional format.
812
+ * Mask for entering phone numbers with dynamic regional format identification.
744
813
  */
745
814
  class DivPhoneInputMask {
746
815
  constructor(props) {
@@ -1276,6 +1345,14 @@ class DivWrapContentSize {
1276
1345
  }
1277
1346
  }
1278
1347
 
1348
+ // Generated code. Do not modify.
1349
+ class IntegerValue {
1350
+ constructor(props) {
1351
+ this.type = 'integer';
1352
+ this.value = props.value;
1353
+ }
1354
+ }
1355
+
1279
1356
  // Generated code. Do not modify.
1280
1357
  /**
1281
1358
  * An integer variable.
@@ -1288,6 +1365,14 @@ class IntegerVariable {
1288
1365
  }
1289
1366
  }
1290
1367
 
1368
+ // Generated code. Do not modify.
1369
+ class NumberValue {
1370
+ constructor(props) {
1371
+ this.type = 'number';
1372
+ this.value = props.value;
1373
+ }
1374
+ }
1375
+
1291
1376
  // Generated code. Do not modify.
1292
1377
  /**
1293
1378
  * A floating-point variable.
@@ -1300,6 +1385,14 @@ class NumberVariable {
1300
1385
  }
1301
1386
  }
1302
1387
 
1388
+ // Generated code. Do not modify.
1389
+ class StringValue {
1390
+ constructor(props) {
1391
+ this.type = 'string';
1392
+ this.value = props.value;
1393
+ }
1394
+ }
1395
+
1303
1396
  // Generated code. Do not modify.
1304
1397
  /**
1305
1398
  * A string variable.
@@ -1312,6 +1405,14 @@ class StringVariable {
1312
1405
  }
1313
1406
  }
1314
1407
 
1408
+ // Generated code. Do not modify.
1409
+ class UrlValue {
1410
+ constructor(props) {
1411
+ this.type = 'url';
1412
+ this.value = props.value;
1413
+ }
1414
+ }
1415
+
1315
1416
  // Generated code. Do not modify.
1316
1417
  /**
1317
1418
  * Variable — URL as a string.
@@ -1700,10 +1801,17 @@ function rewriteTemplateVersions(templates, resolvedNames) {
1700
1801
  return rewriteNames(templates, rename, resolvedNames);
1701
1802
  }
1702
1803
 
1804
+ exports.ArrayValue = ArrayValue;
1703
1805
  exports.ArrayVariable = ArrayVariable;
1806
+ exports.BooleanValue = BooleanValue;
1704
1807
  exports.BooleanVariable = BooleanVariable;
1808
+ exports.ColorValue = ColorValue;
1705
1809
  exports.ColorVariable = ColorVariable;
1810
+ exports.DictValue = DictValue;
1706
1811
  exports.DictVariable = DictVariable;
1812
+ exports.DivActionArrayInsertValue = DivActionArrayInsertValue;
1813
+ exports.DivActionArrayRemoveValue = DivActionArrayRemoveValue;
1814
+ exports.DivActionSetVariable = DivActionSetVariable;
1707
1815
  exports.DivAppearanceSetTransition = DivAppearanceSetTransition;
1708
1816
  exports.DivBlur = DivBlur;
1709
1817
  exports.DivChangeBoundsTransition = DivChangeBoundsTransition;
@@ -1758,12 +1866,16 @@ exports.DivVideo = DivVideo;
1758
1866
  exports.DivVideoSource = DivVideoSource;
1759
1867
  exports.DivVideoSourceResolution = DivVideoSourceResolution;
1760
1868
  exports.DivWrapContentSize = DivWrapContentSize;
1869
+ exports.IntegerValue = IntegerValue;
1761
1870
  exports.IntegerVariable = IntegerVariable;
1871
+ exports.NumberValue = NumberValue;
1762
1872
  exports.NumberVariable = NumberVariable;
1763
1873
  exports.SafeDivExpression = SafeDivExpression;
1874
+ exports.StringValue = StringValue;
1764
1875
  exports.StringVariable = StringVariable;
1765
1876
  exports.TemplateBlock = TemplateBlock;
1766
1877
  exports.TemplatePropertyReference = TemplatePropertyReference;
1878
+ exports.UrlValue = UrlValue;
1767
1879
  exports.UrlVariable = UrlVariable;
1768
1880
  exports.copyTemplates = copyTemplates;
1769
1881
  exports.divCard = divCard;