build(deps): bump the opentui group across 1 directory with 2 updates
Bumps the opentui group with 2 updates in the / directory: @opentui/core and @opentui/solid.
Updates @opentui/core from 0.6.5 to 0.6.6
Release notes
Sourced from @opentui/core's releases.
Release v0.6.6
Previously, most layout setters ignored
null,undefined, or both, so the node kept its old style. As a result, a React or Solid component that removed a style prop kept the old layout. A plugin that readUnit.Undefinedfrom a getter also could not write that value back. In 0.6.6, a nullish write restores the default that the constructor uses when the option is omitted:const box = new BoxRenderable(renderer, { paddingX: 2 }) box.paddingLeft = 5 // pads the left side by 5 box.paddingLeft = undefined // pads it by 2 again, from paddingXMargin, padding, gap, min and max sizes, and
flexBasisbecome unset, so an edge falls back to its shorthand again.top,right,bottom, andleftalso unset the native edge. Before, the getter reportedundefinedwhile layout kept the old offset.widthandheightbecome"auto",positionbecomes"relative",overflowbecomes"visible", andvisiblebecomestrue. Invalid values are still ignored. Not every default comes back. Class defaults such as the row direction ofScrollBoxRenderablestay as they are, andflexShrinkbecomes1.If a custom renderable passes its own
widthorheighttosuper(), it should override the newprotected defaultDimension(kind)method. A nullish write then restores that size instead of"auto". Built-in classes that size themselves, such asInputRenderable,TabSelectRenderable, andASCIIFontRenderable, already override it.Added
- core: A custom renderable can override
protected defaultDimension(kind)to set thewidthorheightthat a nullish write restores. See Custom renderables. (#1678)Changed
- core: Assigning
nullorundefinedto a layout property restores the default for an omitted option, and removing a React or Solid style prop does the same. See Layout. (#1678)- core: Assigning
nullorundefinedtovisibleshows the node. Before,nullhid the node, so assignfalseto hide it. (#1678)Fixed
- core:
fillRect,drawBox,setCell,drawChar, and other calls with u32 fields now say "must be a non-negative integer" for NaN, Infinity, fractional, and negative values. Before, the error said that the value exceeded the u32 limit. See Buffer API. (#1674)- core: A box
titleorbottomTitleover 64 KiB throws the sameRangeErrorasdrawTextinstead of aNativeErrorwith theInvalidArgumentstatus. See Box. (#1674)- core: Nesting deeper than 256 levels, counting the root, throws a
NativeErrorwith the message "Scene nesting depth exceeds the native limit". Before, the message gave only theObjectLimitstatus. See Layout. (#1674)API changes and documentation: https://opentui.com/docs/releases/0.6.6
What's Changed
- core: name the real cause in three boundary errors (u32 fields, box titles, nesting depth) by
@simonkleein anomalyco/opentui#1674- core: restore layout defaults on nullish writes by
@simonkleein anomalyco/opentui#1678Full Changelog: https://github.com/anomalyco/opentui/compare/v0.6.5...v0.6.6
Commits
212eb27Release v0.6.6d31b290core: restore layout defaults on nullish writes (#1678)5aaccd4core: name the real cause in three boundary errors (u32 fields, box titles, n...- See full diff in compare view
Updates @opentui/solid from 0.6.5 to 0.6.6
Release notes
Sourced from @opentui/solid's releases.
Release v0.6.6
Previously, most layout setters ignored
null,undefined, or both, so the node kept its old style. As a result, a React or Solid component that removed a style prop kept the old layout. A plugin that readUnit.Undefinedfrom a getter also could not write that value back. In 0.6.6, a nullish write restores the default that the constructor uses when the option is omitted:const box = new BoxRenderable(renderer, { paddingX: 2 }) box.paddingLeft = 5 // pads the left side by 5 box.paddingLeft = undefined // pads it by 2 again, from paddingXMargin, padding, gap, min and max sizes, and
flexBasisbecome unset, so an edge falls back to its shorthand again.top,right,bottom, andleftalso unset the native edge. Before, the getter reportedundefinedwhile layout kept the old offset.widthandheightbecome"auto",positionbecomes"relative",overflowbecomes"visible", andvisiblebecomestrue. Invalid values are still ignored. Not every default comes back. Class defaults such as the row direction ofScrollBoxRenderablestay as they are, andflexShrinkbecomes1.If a custom renderable passes its own
widthorheighttosuper(), it should override the newprotected defaultDimension(kind)method. A nullish write then restores that size instead of"auto". Built-in classes that size themselves, such asInputRenderable,TabSelectRenderable, andASCIIFontRenderable, already override it.Added
- core: A custom renderable can override
protected defaultDimension(kind)to set thewidthorheightthat a nullish write restores. See Custom renderables. (#1678)Changed
- core: Assigning
nullorundefinedto a layout property restores the default for an omitted option, and removing a React or Solid style prop does the same. See Layout. (#1678)- core: Assigning
nullorundefinedtovisibleshows the node. Before,nullhid the node, so assignfalseto hide it. (#1678)Fixed
- core:
fillRect,drawBox,setCell,drawChar, and other calls with u32 fields now say "must be a non-negative integer" for NaN, Infinity, fractional, and negative values. Before, the error said that the value exceeded the u32 limit. See Buffer API. (#1674)- core: A box
titleorbottomTitleover 64 KiB throws the sameRangeErrorasdrawTextinstead of aNativeErrorwith theInvalidArgumentstatus. See Box. (#1674)- core: Nesting deeper than 256 levels, counting the root, throws a
NativeErrorwith the message "Scene nesting depth exceeds the native limit". Before, the message gave only theObjectLimitstatus. See Layout. (#1674)API changes and documentation: https://opentui.com/docs/releases/0.6.6
What's Changed
- core: name the real cause in three boundary errors (u32 fields, box titles, nesting depth) by
@simonkleein anomalyco/opentui#1674- core: restore layout defaults on nullish writes by
@simonkleein anomalyco/opentui#1678Full Changelog: https://github.com/anomalyco/opentui/compare/v0.6.5...v0.6.6
Commits
212eb27Release v0.6.6- See full diff in compare view