From 514ab7a6d3ce93ac648c09dcdae3de4edc969e97 Mon Sep 17 00:00:00 2001 From: Greg Lin Date: Sat, 3 Dec 2022 17:55:47 -0600 Subject: [PATCH] Bump version to 0.4.0 --- DESCRIPTION | 2 +- NEWS.md | 2 +- README.md | 2 +- inst/htmlwidgets/reactable.yaml | 2 +- vignettes/conditional-styling.Rmd | 2 +- vignettes/custom-rendering.Rmd | 2 +- vignettes/examples.Rmd | 6 +++--- vignettes/javascript-api.Rmd | 18 +++++++++--------- vignettes/quarto/observable-reactable.qmd | 4 +--- vignettes/static-rendering.Rmd | 2 +- 10 files changed, 20 insertions(+), 22 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 24efb39a..73f8bc94 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: reactable Type: Package Title: Interactive Data Tables for R -Version: 0.3.0.9000 +Version: 0.4.0 Authors@R: c( person("Greg", "Lin", email = "glin@glin.io", role = c("aut", "cre")), person("Tanner", "Linsley", role = c("ctb", "cph"), comment = "React Table library"), diff --git a/NEWS.md b/NEWS.md index 0dd579be..4c878209 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# reactable 0.3.0.9000 (Unreleased) +# reactable 0.4.0 ## New features diff --git a/README.md b/README.md index db4c9705..1a148e28 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ To learn more about using reactable, check out the examples below. | --------- | --------- | --------- | --------- | --------- | | IE 11*, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions | -\* Support for Internet Explorer 11 was deprecated in reactable v0.3.0.9000. +\* Support for Internet Explorer 11 was deprecated in reactable v0.4.0. ## License MIT diff --git a/inst/htmlwidgets/reactable.yaml b/inst/htmlwidgets/reactable.yaml index aa5b4cb2..a43aced0 100644 --- a/inst/htmlwidgets/reactable.yaml +++ b/inst/htmlwidgets/reactable.yaml @@ -1,5 +1,5 @@ dependencies: - name: reactable - version: 0.3.0.9000 + version: 0.4.0 src: htmlwidgets stylesheet: reactable.css diff --git a/vignettes/conditional-styling.Rmd b/vignettes/conditional-styling.Rmd index c2b0c170..7c2752c5 100644 --- a/vignettes/conditional-styling.Rmd +++ b/vignettes/conditional-styling.Rmd @@ -263,7 +263,7 @@ stateProps <- dplyr::tribble( "pageRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data on the page", "sortedData", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data in the table (after sorting, filtering, grouping)", "data", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "original row data in the table", - "meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.3.0.9000)"), + "meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.4.0)"), "hiddenColumns", '["Petal.Length"]', "columns being hidden in the table" ) diff --git a/vignettes/custom-rendering.Rmd b/vignettes/custom-rendering.Rmd index ac196e78..3cfabb3a 100644 --- a/vignettes/custom-rendering.Rmd +++ b/vignettes/custom-rendering.Rmd @@ -234,7 +234,7 @@ stateProps <- dplyr::tribble( "pageRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data on the page", "sortedData", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data in the table (after sorting, filtering, grouping)", "data", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "original row data in the table", - "meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.3.0.9000)"), + "meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.4.0)"), "hiddenColumns", '["Petal.Length"]', "columns being hidden in the table" ) diff --git a/vignettes/examples.Rmd b/vignettes/examples.Rmd index 2a5d7f04..97cfc8c7 100644 --- a/vignettes/examples.Rmd +++ b/vignettes/examples.Rmd @@ -814,7 +814,7 @@ reactable( ### Custom metadata {#custom-meta-rendering} ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: You can pass arbitrary data from R to JavaScript render functions using the `meta` @@ -1159,7 +1159,7 @@ reactable(sleep[1:6, ], ### Custom metadata {#custom-meta-styling} ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: You can pass arbitrary data from R to JavaScript style functions using the `meta` @@ -2498,7 +2498,7 @@ htmltools::browsable( ### Column visibility toggle button ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: ```{r} diff --git a/vignettes/javascript-api.Rmd b/vignettes/javascript-api.Rmd index cb7e21dc..baaa51ff 100644 --- a/vignettes/javascript-api.Rmd +++ b/vignettes/javascript-api.Rmd @@ -182,13 +182,13 @@ exclude any sorting or grouping. Hidden columns will also be included, but this may be customizable in the future. For further customization, you can use the `options` argument to only include specific columns, -exclude column headers, change the field separator, or change the decimal separator (new in v0.3.0.9000). +exclude column headers, change the field separator, or change the decimal separator (new in v0.4.0). ```ts Reactable.downloadDataCSV( tableId: string, filename = "data.csv", - // New in v0.3.0.9000 + // New in v0.4.0 options?: { columnIds: string[], headers: true, @@ -220,7 +220,7 @@ Reactable.downloadDataCSV('cars-table', 'cars93.csv', { ### `Reactable.getDataCSV()` ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: Gets the table data as a CSV string. Same as [`Reactable.downloadDataCSV()`](#reactable-downloaddatacsv) @@ -404,7 +404,7 @@ Reactable.toggleAllRowsExpanded('cars-table', false) ### `Reactable.setMeta()` ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: Sets the custom metadata for the table. `meta` can either be an object with new @@ -438,7 +438,7 @@ Reactable.setMeta('cars-table', undefined) ### `Reactable.toggleHideColumn()` ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: Toggles the hidden state for a column between hidden and shown. @@ -468,7 +468,7 @@ Reactable.toggleHideColumn('cars-table', 'Type', false) ### `Reactable.setHiddenColumns()` ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: Sets the hidden columns for the table. `columnIds` can either be an array of column IDs, or a @@ -501,7 +501,7 @@ Reactable.setHiddenColumns('cars-table', []) ### `Reactable.setData()` ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: Updates the table data. `data` can either be in row or column format. In row format, `data` is an array @@ -559,7 +559,7 @@ stateProps <- dplyr::tribble( "pageRows", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data on the page", "sortedData", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "current row data in the table (after sorting, filtering, grouping)", "data", '[{ Petal.Length: 1.7, Species: "setosa" }, ...]', "original row data in the table", - "meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.3.0.9000)"), + "meta", '{ custom: 123 }', tagList("custom table metadata from", tags$code("reactable()"), "(new in v0.4.0)"), "hiddenColumns", '["Petal.Length"]', "columns being hidden in the table" ) @@ -576,7 +576,7 @@ Reactable.getState('cars-table') ### `Reactable.onStateChange()` ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: Sets up a function that will be called whenever the table state changes. diff --git a/vignettes/quarto/observable-reactable.qmd b/vignettes/quarto/observable-reactable.qmd index e4ff9397..accdff30 100644 --- a/vignettes/quarto/observable-reactable.qmd +++ b/vignettes/quarto/observable-reactable.qmd @@ -10,9 +10,7 @@ Examples of using Observable with reactable in Quarto, based on the [Observable from the Quarto documentation. :::{.callout-note} -This is a work in progress, and requires new features in reactable v0.3.0.9000 (unreleased). -[Install reactable from GitHub](https://github.com/glin/reactable/#installation) to try out -the examples. +This is a work in progress, and requires new features in reactable v0.4.0. ::: Source code: [observable-reactable.qmd](https://github.com/glin/reactable/blob/main/vignettes/quarto/observable-reactable.qmd) diff --git a/vignettes/static-rendering.Rmd b/vignettes/static-rendering.Rmd index ddbcf55d..7ff58a77 100644 --- a/vignettes/static-rendering.Rmd +++ b/vignettes/static-rendering.Rmd @@ -14,7 +14,7 @@ library(reactable) ``` ::: {.callout} -New in v0.3.0.9000 +New in v0.4.0 ::: ## Introduction