Skip to content

Commit a1fef47

Browse files
authored
Merge branch 'main' into docs/setup-and-docs
2 parents 1746fec + 4893f99 commit a1fef47

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616
* Add a `data-suggestion` attribute to an HTML element, and set the value to the input suggestion text (e.g., `<span data-suggestion="Suggestion value">Suggestion link</span>`)
1717
* To auto-submit the suggestion when clicked by the user, include the `.submit` class or the `data-suggestion-submit="true"` attribute on the HTML element. Alternatively, use Cmd/Ctrl + click to auto-submit any suggestion or Alt/Opt + click to apply any suggestion to the chat input without submitting.
1818

19-
* Added a new `.add_sass_layer_file()` method to `ui.Theme` that supports reading a Sass file with layer boundary comments, e.g. `/*-- scss:defaults --*/`. This format [is supported by Quarto](https://quarto.org/docs/output-formats/html-themes-more.html#bootstrap-bootswatch-layering) and makes it easier to store Sass rules and declarations that need to be woven into Shiny's Sass Bootstrap files. (#1790)
20-
21-
* The `ui.Chat()` component gains the following:
19+
* The `ui.Chat()` component also gains the following:
2220
* The `.on_user_submit()` decorator method now passes the user input to the decorated function. This makes it a bit easier to access the user input. See the new templates (mentioned below) for examples. (#1801)
21+
* The assistant icon is now configurable via `ui.chat_ui()` (or the `ui.Chat.ui()` method in Shiny Express) or for individual messages in the `.append_message()` and `.append_message_stream()` methods of `ui.Chat()`. (#1853)
2322
* A new `get_latest_stream_result()` method was added for an easy way to access the final result of the stream when it completes. (#1846)
2423
* The `.append_message_stream()` method now returns the `reactive.extended_task` instance that it launches. (#1846)
24+
* The `ui.Chat()` component's `.update_user_input()` method gains `submit` and `focus` options that allow you to submit the input on behalf of the user and to choose whether the input receives focus after the update. (#1851)
2525

2626
* `shiny create` includes new and improved `ui.Chat()` template options. Most of these templates leverage the new [`{chatlas}` package](https://posit-dev.github.io/chatlas/), our opinionated approach to interfacing with various LLM. (#1806)
2727

2828
* Client data values (e.g., url info, output sizes/styles, etc.) can now be accessed in the server-side Python code via `session.clientdata`. For example, `session.clientdata.url_search()` reactively reads the URL search parameters. (#1832)
2929

3030
* Available `input` ids can now be listed via `dir(input)`. This also works on the new `session.clientdata` object. (#1832)
3131

32-
* The `ui.Chat()` component's `.update_user_input()` method gains `submit` and `focus` options that allow you to submit the input on behalf of the user and to choose whether the input receives focus after the update. (#1851)
33-
34-
* The assistant icons is now configurable via `ui.chat_ui()` (or the `ui.Chat.ui()` method in Shiny Express) or for individual messages in the `.append_message()` and `.append_message_stream()` methods of `ui.Chat()`. (#1853)
32+
* Added a new `.add_sass_layer_file()` method to `ui.Theme` that supports reading a Sass file with layer boundary comments, e.g. `/*-- scss:defaults --*/`. This format [is supported by Quarto](https://quarto.org/docs/output-formats/html-themes-more.html#bootstrap-bootswatch-layering) and makes it easier to store Sass rules and declarations that need to be woven into Shiny's Sass Bootstrap files. (#1790)
3533

3634
### Bug fixes
3735

pyproject.toml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ dependencies = [
5050
]
5151

5252
[project.optional-dependencies]
53-
theme = [
54-
"libsass>=0.23.0",
55-
"brand_yml>=0.1.0"
56-
]
53+
theme = ["libsass>=0.23.0", "brand_yml>=0.1.0"]
5754
test = [
5855
"pytest>=6.2.4",
5956
"pytest-asyncio>=0.17.2",
@@ -103,7 +100,7 @@ dev = [
103100
"isort>=5.10.1",
104101
"libsass>=0.23.0",
105102
"brand_yml>=0.1.0",
106-
"pyright>=1.1.383",
103+
"pyright>=1.1.383,<1.1.395",
107104
"pre-commit>=2.15.0",
108105
"wheel",
109106
"matplotlib",
@@ -158,7 +155,16 @@ ignore = ["E302", "E501", "F403", "F405", "W503", "E203", "E701", "E704"]
158155

159156
[tool.isort]
160157
profile = "black"
161-
skip = ["__init__.py", "typings/", "_dev/", ".venv", "venv", ".tox", "build", "_version.py"]
158+
skip = [
159+
"__init__.py",
160+
"typings/",
161+
"_dev/",
162+
".venv",
163+
"venv",
164+
".tox",
165+
"build",
166+
"_version.py",
167+
]
162168

163169
[tool.mypy]
164170
# The goal of our usage of mypy is to make to sure mypy can run, not that it catches any errors (we use pyright to find our errors).

0 commit comments

Comments
 (0)