- Added separators support in DivContainer
Additions:
- Added
setTheme
instance method filters
(onlyblur
is supported so far) implemented for theimage
and image background
Fixed:
Enter
handling in multiline input
Additions:
- Added
circle
shape support - Supported
no_animation
andnative
values for theaction_anmation
- Supported
tint_mode
Additions:
- Implemented Nine-patch background
- Supported for the
selected_actions
inpager
Changes and fixes:
- Fixed color values convertion
Additions:
- Support for the
wrap
layout mode in acontainer
- Support for the
cross_spacing
property ingallery
doubletap_actions
andlongtap_actions
are now supoorted in actionable components- Support for the
appearance_animation
inimage
- Support for the
restrict_parent_scroll
property intabs
,gallery
andpager
- Root states are now properly supported
Changes and fixes:
- Updated the
wrap_content
logic, this would lead to a different layout in some corner-cases - Boolean values from exressions are now correctly converted to the string
false
/true
in thetext
block - The layout of the
slider
has been changed to sync with other platforms, now the text offset will not change the size of the component. Also now there may be more than 20 ticks - Updated color functions according to the latest changes. Now several of them would return the type
color
instead ofstring
(rgb, rgba, setColorRed and others) - Components will now correctly unregister when destroyed, so recreated elements will work properly (for example, actions to change the current element in the gallery, nested state elements and others)
- Fixed logic of expression processing Previously, if a string was considered an "expression", it was processed as it, otherwise it would be used as a simple string. But sometimes this check worked incorrectly and processed expressions as a string. This is now fixed. It also means that some strings will now require proper escaping, so be sure to check this in your project (previously,these strings "just worked" without escaping because they were not treated as expressions)
- Now elements with custom actions can be focused, as it was with simple URLs. This would result to better accessibility in such cases (these elements also accept the keyboard input!)
- Fixed the visibility of the
gallery
arrows on desktops in several cases - Fixed a case where
transition_in
,transition_out
andtransition_change
incorrectly discarded thealpha
component property - Component actions will now wait for the result of each of them. This means that you can create an array using 2 actions: one to change the state, and the second to change the created component inside the state
Added:
radial_gradient
support
Changes and additions:
- BooleanInt props now accepts booleans too
- Implemented boolean values for boolean variables
- Reworked
container
layout - Added package tests
- Downgraded
babel-preset-jest
, so it is possible to run divkit tests with an older version of the node.js
Fixes:
- Fixed zero-values in
action_animation
- Fixed
grid
recalculation - Fixed layout of
pager
child elements when their size is too small
Addition:
transform
is now supported for thebase
component
Changes:
- Updated
input
to sync with the schema, also fixedtext_color
and height - Fixed the behavior of
transition_in
/transition_out
(when to start and when not to start animation) - Fixed the default value of
variable_trigger.mode
Changes and additions:
- Messages of expression parsing errors made more informative
- Fixed
action_animation
on iOS
Version now in sync with the Android and iOS.
Changes and additions:
- Changed
gallery
items alignment - Changed variables' types processing in expressions
- Added additional functions for
Color
andUrl
- Changed
wrap_content
/match_parent
in several cases to better match the Android layout. Bettermatch_parent
insidewrap_content
handling. Bettermatch_parent
insidecontainer
withoverlap
. Container now can have multipleconstrained
children.
Fixes:
- Fixed
gallery
inside othergallery
width
andheight
can now be zero- Fixed extra unused css variables in html
- Fixed the case with string interpolation without closing bracket
Additions:
- Added support for animations on
visibility
change - Added
action_animation
support - Added
transition_change
support
Fixes and changes:
- Layout fixes for
state
,gallery
andcontainer
- Layout fixes for
image
withwrap_content
- Fixed an issue with
text
when correcttext
value changed to incorrect
- Fixed
theme
prop inrender
Variables:
- New API: now variables are objects with methods to
subscribe
,getValue
,setValue
, etc - Added
GlobalVariablesController
. One can now use same variables across multiple instances of DivKit, that keep their values in sync - DEPRECATION: Old methods
getVariable
/setVariable
is deprecated
Added:
input
component- Experimental
palette
support
- Fixed
onCustomAction
types
- Added
slider
block - Added support for
expressions
andvariable_triggers
- Improved a11y for
indicator
andpager
- Added
onCustomAction
callback support - Added
default_item
support for gallery - Added
indicator
block - Added
id
support for state (div_id
was deprecated) - Added
set_current_item
,set_previous_item
,set_next_item
actions support for pager - Added
div-action://
andcustom action
support in visibility actions
New features:
- Added interpolation for
variables
in strings - Added
visibility
support for base block (w/o animation) - Added
selectable
property support fortext
block (and now text by default cannot be selected, to match Android / iOS behaviour)
Fixes:
- Fixes for
grid
's children sizing - Recursive templates now correctly produces error instead of infinity loop
- Added
variables
support
- Added
pager
block - Added support for
switch_tabs_by_content_swipe_enabled
in tabs - Added support for
tint_color
in image, gif-image, text
- Added support for
set_current_item
,set_previous_item
,set_next_item
actions in tabs and gallery
- Added support for
shadow
in base block - Fixed build for older browsers
- Added support for
active_font_weight
/inactive_font_weight
in tabs' style
- Added
state
block
- Added support for
corner_radius
/corners_radius
in tabs' style
- Initial release