Skip to content

Commit a99b3a5

Browse files
committed
Go back to output_markdown_stream()
1 parent 96d6db0 commit a99b3a5

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

js/markdown-stream/markdown-stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ function handleMessage(message: ContentMessage | IsStreamingMessage): void {
231231
status: "error",
232232
message: `Unable to handle MarkdownStream() message since element with id
233233
${message.id} wasn't found. Do you need to call .ui() (Express) or need a
234-
markdown_stream_ui('${message.id}') in the UI (Core)?`,
234+
output_markdown_stream('${message.id}') in the UI (Core)?`,
235235
});
236236
return;
237237
}

shiny/api-examples/MarkdownStream/app-core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
app_ui = ui.page_fluid(
88
ui.card(
99
ui.card_header("Shiny's README.md"),
10-
ui.markdown_stream_ui("shiny-readme"),
10+
ui.output_markdown_stream("shiny-readme"),
1111
height="400px",
1212
class_="mt-3",
1313
full_screen=True,

shiny/express/ui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
"output_ui",
329329
"output_data_frame",
330330
# MarkdownStream knows how to render itself in express
331-
"markdown_stream_ui",
331+
"output_markdown_stream",
332332
# Chat knows how to render itself in express
333333
"chat_ui",
334334
),

shiny/ui/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
from ._layout import layout_column_wrap
110110
from ._layout_columns import layout_columns
111111
from ._markdown import markdown
112-
from ._markdown_stream import MarkdownStream, markdown_stream_ui
112+
from ._markdown_stream import MarkdownStream, output_markdown_stream
113113
from ._modal import modal, modal_button, modal_remove, modal_show
114114
from ._navs import (
115115
nav_control,
@@ -274,7 +274,7 @@
274274
# _markdown
275275
"markdown",
276276
# _markdown_stream
277-
"markdown_stream_ui",
277+
"output_markdown_stream",
278278
"MarkdownStream",
279279
# _modal
280280
"modal_button",

shiny/ui/_markdown_stream.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from ._html_deps_py_shiny import markdown_stream_dependency
1414

1515
__all__ = (
16-
"markdown_stream_ui",
16+
"output_markdown_stream",
1717
"MarkdownStream",
1818
)
1919

@@ -45,7 +45,7 @@ class MarkdownStream:
4545
----------
4646
id
4747
A unique identifier for this `MarkdownStream`. In Shiny Core, make sure this id
48-
matches a corresponding :func:`~shiny.ui.markdown_stream_ui` call in the app's
48+
matches a corresponding :func:`~shiny.ui.output_markdown_stream` call in the app's
4949
UI.
5050
on_error
5151
How to handle errors that occur while streaming. When `"unhandled"`,
@@ -97,7 +97,7 @@ def ui(
9797
Create a UI element for this `MarkdownStream`.
9898
9999
This method is only relevant for Shiny Express. In Shiny Core, use
100-
:func:`~shiny.ui.markdown_stream_ui` to create the UI element.
100+
:func:`~shiny.ui.output_markdown_stream` to create the UI element.
101101
102102
Parameters
103103
----------
@@ -122,7 +122,7 @@ def ui(
122122
Tag
123123
A UI element for locating the `MarkdownStream` in the app.
124124
"""
125-
return markdown_stream_ui(
125+
return output_markdown_stream(
126126
self.id,
127127
content=content,
128128
content_type=content_type,
@@ -234,7 +234,7 @@ async def _raise_exception(self, e: BaseException):
234234

235235

236236
@add_example()
237-
def markdown_stream_ui(
237+
def output_markdown_stream(
238238
id: str,
239239
*,
240240
content: str = "",

shiny/www/py-shiny/markdown-stream/markdown-stream.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shiny/www/py-shiny/markdown-stream/markdown-stream.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)