Skip to content

Commit

Permalink
move away from shiny:::processDeps and prefer htmltools::renderTags
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Jul 22, 2021
1 parent 60ddf46 commit b2ca46c
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 16 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Patch to fix CRAN warning on Mac M1.

## Minor changes


- Move away from `shiny:::processDeps` in favor of `htmltools::renderTags`. Does not
impact end user.

# bs4Dash 2.0.1

Expand Down
4 changes: 2 additions & 2 deletions R/useful-items.R
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,7 @@ userMessage <- function(..., author = NULL, date = NULL,
#' inputId = "reload",
#' label = "Click me!",
#' icon = icon("sync"),
#' dashboardBadge(1, color = "orange")
#' dashboardBadge(1, color = "primary")
#' )
#' )
#' )
Expand All @@ -2338,7 +2338,7 @@ updateUserMessages <- function(id, action = c("add", "remove", "update"),
if (inherits(c, "shiny.tag") || inherits(c, "shiny.tag.list")) {
# necessary if the user pass input/output with deps
# that are not yet available in the page before inserting the new tag
c <- processDeps(c, session)
c <- htmltools::renderTags(c)
}
c
})
Expand Down
2 changes: 1 addition & 1 deletion docs/articles/bs4Dash.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/css-preloader.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/extra-elements.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/improved-boxes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/more-skins.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ articles:
index: index.html
more-skins: more-skins.html
step-by-step: step-by-step.html
last_built: 2021-07-22T11:03Z
last_built: 2021-07-22T13:53Z

2 changes: 1 addition & 1 deletion docs/reference/userMessage.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/bs4Dash-2.0.2/bs4Dash.js
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,7 @@ Shiny.addCustomMessageHandler("user-messages", function(message) {
if (content.text.html === undefined) {
text = content.text;
} else {
text = Shiny.renderHtml(content.text.html, $([]), content.text.deps).html;
text = Shiny.renderHtml(content.text.html, $([]), content.text.dependencies).html;
}
}

Expand Down
2 changes: 1 addition & 1 deletion inst/bs4Dash-2.0.2/bs4Dash.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/bs4Dash-2.0.2/bs4Dash.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion man/userMessage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion srcjs/bs4Dash-2.0.2/userMessages.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Shiny.addCustomMessageHandler("user-messages", function(message) {
if (content.text.html === undefined) {
text = content.text;
} else {
text = Shiny.renderHtml(content.text.html, $([]), content.text.deps).html;
text = Shiny.renderHtml(content.text.html, $([]), content.text.dependencies).html;
}
}

Expand Down

0 comments on commit b2ca46c

Please sign in to comment.