Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (14m)  pkgsrc-2024Q1 (9d)  pkgsrc-2023Q4 (56d)  pkgsrc-2023Q2 (89d)  pkgsrc-2023Q3 (168d) 

2024-05-27 10:45:44 UTC Now

2023-03-12 05:51:48 UTC MAIN commitmail json YAML

(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)

(mef)