Skip to content

Commit 45c1acb

Browse files
authored
chore: update to latest shiny.js; cut autoresize logic that now comes bundled with shiny.js (#1986)
1 parent 5b303c9 commit 45c1acb

File tree

23 files changed

+97
-169
lines changed

23 files changed

+97
-169
lines changed

js/build.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ const opts: Array<BuildOptions> = [
9393
entryPoints: { "data-frame/data-frame": "data-frame/index.tsx" },
9494
plugins: [sassPlugin({ type: "css-text", sourceMap: false })],
9595
},
96-
{
97-
entryPoints: {
98-
"text-area/textarea-autoresize": "text-area/textarea-autoresize.ts",
99-
},
100-
},
10196
{
10297
entryPoints: {
10398
"page-output/page-output": "page-output/page-output.ts",

js/text-area/textarea-autoresize.css

Lines changed: 0 additions & 6 deletions
This file was deleted.

js/text-area/textarea-autoresize.ts

Lines changed: 0 additions & 86 deletions
This file was deleted.

shiny/ui/_html_deps_external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
For...
2121
* External dependencies (e.g. jQuery, Bootstrap), see `shiny.ui._html_deps_external`
22-
* Internal dependencies (e.g. dataframe, autoresize), see `shiny.ui._html_deps_py_shiny`
22+
* Internal dependencies (e.g. dataframe), see `shiny.ui._html_deps_py_shiny`
2323
* shinyverse dependencies (e.g. bslib, htmltools), see `shiny.ui._html_deps_shinyverse`
2424
"""
2525

shiny/ui/_html_deps_py_shiny.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
from . import busy_indicators
77

88
"""
9-
HTML dependencies for internal dependencies such as dataframe or text area's autoresize.
9+
HTML dependencies for internal dependencies such as dataframe.
1010
1111
For...
1212
* External dependencies (e.g. jQuery, Bootstrap), see `shiny.ui._html_deps_external`
13-
* Internal dependencies (e.g. dataframe, autoresize), see `shiny.ui._html_deps_py_shiny`
13+
* Internal dependencies (e.g. dataframe), see `shiny.ui._html_deps_py_shiny`
1414
* shinyverse dependencies (e.g. bslib, htmltools), see `shiny.ui._html_deps_shinyverse`
1515
"""
1616

@@ -38,8 +38,7 @@ def chat_deps() -> list[HTMLDependency]:
3838
script={"src": "chat.js", "type": "module"},
3939
stylesheet={"href": "chat.css"},
4040
)
41-
# Chat's <textarea> input autoresizes
42-
return [dep, markdown_stream_dependency(), autoresize_dependency()]
41+
return [dep, markdown_stream_dependency()]
4342

4443

4544
def markdown_stream_dependency() -> HTMLDependency:
@@ -55,16 +54,6 @@ def markdown_stream_dependency() -> HTMLDependency:
5554
)
5655

5756

58-
def autoresize_dependency() -> HTMLDependency:
59-
return HTMLDependency(
60-
"shiny-textarea-autoresize",
61-
__version__,
62-
source={"package": "shiny", "subdir": "www/py-shiny/text-area"},
63-
script={"src": "textarea-autoresize.js", "type": "module"},
64-
stylesheet={"href": "textarea-autoresize.css"},
65-
)
66-
67-
6857
def page_output_dependency() -> HTMLDependency:
6958
return HTMLDependency(
7059
"shiny-page-output",

shiny/ui/_input_text.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from .._docstring import add_example
88
from ..bookmark import restore_input
99
from ..module import resolve_id
10-
from ._html_deps_py_shiny import autoresize_dependency
1110
from ._utils import shiny_input_label
1211

1312

@@ -196,7 +195,6 @@ def input_text_area(
196195
return div(
197196
shiny_input_label(resolved_id, label),
198197
area,
199-
autoresize_dependency() if autoresize else None,
200198
class_="shiny-input-textarea form-group shiny-input-container",
201199
style=css(width=width),
202200
)

shiny/www/py-shiny/text-area/textarea-autoresize.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

shiny/www/py-shiny/text-area/textarea-autoresize.css.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

shiny/www/py-shiny/text-area/textarea-autoresize.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

shiny/www/py-shiny/text-area/textarea-autoresize.js.map

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)