Path to this page:
Subject: CVS commit: pkgsrc/www/R-htmlwidgets
From: Makoto Fujiwara
Date: 2023-03-12 06:51:48
Message id: 20230312055148.7B2B0FA90@cvs.NetBSD.org
Log Message:
(www/R-htmlwidgets) Updated 1.5.4 to 1.6.1
htmlwidgets 1.6.1
------------------------------------------------------
### Bug fixes
* Closed #456: Fixed an issue where widgets were no longer being
resized properly when rendered in a standalone fashion. (#458)
htmlwidgets 1.6.0
-------------------------------------------------------
### Potentially breaking changes
* `shinyWidgetOutput()` and `sizingPolicy()` both gain a new `fill`
parameter. When `TRUE` (the default), the widget's container element
is allowed to grow/shrink to fit it's parent container so long as
that parent is opinionated about its height and has been marked with
`htmltools::bindFillRole(x, container = TRUE)`. (#442)
* The primary motivation for this is to allow widgets to grow/shrink
by default [inside
\
`bslib::card_body_fill()`](https://rstudio.github.io/bslib/articles/cards.html#responsive-sizing)
* Widgets that aren't designed to fill their container in this way
should consider setting `sizingPolicy(fill =
FALSE)`/`shinyWidgetOutput(fill = FALSE)` and/or allowing users to
customize these settings (i.e., add a `fill` argument to the
`customWidgetOutput()` function signature).
* `shinyWidgetOutput()`'s `reportSize` argument now defaults to
`TRUE`. This way, calling `shiny::getCurrentOutputInfo()` inside a
`shinyRenderWidget()` context will report the current height and
width of the widget.
### Improvements
* Closed #433 and #440: `saveWidget(selfcontained=TRUE)` now uses the
`{rmarkdown}` package to discover and call pandoc, which fixes a
couple existing issues and helps "future proof" this code path from
future changes to pandoc.
* Closed #257 and #358: `saveWidget(selfcontained=TRUE)` now correctly
prevents HTML from being interpreted as markdown. (#401)
Files: