Skip to content

Commit 2012209

Browse files
authored
shiny.experimental: Remove deprecated functions (#1540)
1 parent d0fc6dc commit 2012209

File tree

5 files changed

+6
-1678
lines changed

5 files changed

+6
-1678
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717

1818
* `@render.data_frame`'s input value `input.<ID>_column_filter()` has been deprecated. Please use `<ID>.filter()` to retrieve the same information. (#1374)
1919

20+
* Deprecated functions in `shiny.experimental` have been removed. By and large, these functions are now available in the main `shiny` namespace. (#1540)
21+
2022
### New features
2123

2224
* Added a new `shiny.ui.Chat` class for building conversational interfaces with fully customizable and performant response generation. (#1453)

shiny/experimental/api-examples/card_image/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111
),
1212
x.ui.card(
13-
x.ui.card_header(
13+
ui.card_header(
1414
"These two images are in their own individual card_body() container"
1515
),
1616
x.ui.card_image(
@@ -21,7 +21,7 @@
2121
file=None,
2222
src="https://posit.co/wp-content/uploads/2022/10/Posit-logo-h-full-color-RGB-TM.svg",
2323
),
24-
x.ui.card_header("These two images are in the same card_body() container"),
24+
ui.card_header("These two images are in the same card_body() container"),
2525
x.ui.card_image(
2626
file=None,
2727
src="https://posit.co/wp-content/uploads/2022/10/Posit-logo-h-full-color-RGB-TM.svg",

shiny/experimental/api-examples/card_title/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
app_ui = ui.page_fluid(
55
x.ui.card(
6-
x.ui.card_header("This is the header"),
6+
ui.card_header("This is the header"),
77
x.ui.card_body(
88
x.ui.card_title("This is the title"),
99
ui.p("This is the body."),
1010
ui.p("This is still the body."),
1111
),
12-
x.ui.card_footer("This is the footer"),
12+
ui.card_footer("This is the footer"),
1313
full_screen=True,
1414
)
1515
)

shiny/experimental/ui/__init__.py

Lines changed: 0 additions & 158 deletions
Original file line numberDiff line numberDiff line change
@@ -9,170 +9,12 @@
99
card_title,
1010
)
1111

12-
from ._deprecated import (
13-
# Input Switch
14-
toggle_switch,
15-
# Input Text Area
16-
input_text_area,
17-
# Navs
18-
navset_pill_card,
19-
navset_tab_card,
20-
# Sidebar
21-
Sidebar,
22-
sidebar,
23-
layout_sidebar,
24-
toggle_sidebar,
25-
sidebar_toggle,
26-
panel_sidebar,
27-
panel_main,
28-
DeprecatedPanelSidebar,
29-
DeprecatedPanelMain,
30-
# Tooltip
31-
tooltip_update,
32-
tooltip_toggle,
33-
tooltip,
34-
toggle_tooltip,
35-
update_tooltip,
36-
# Css
37-
CssUnit,
38-
as_css_padding,
39-
as_css_unit,
40-
as_width_unit,
41-
# Popover
42-
popover,
43-
toggle_popover,
44-
update_popover,
45-
# Accordion
46-
AccordionPanel,
47-
accordion,
48-
accordion_panel,
49-
accordion_panel_close,
50-
accordion_panel_insert,
51-
accordion_panel_open,
52-
accordion_panel_remove,
53-
accordion_panel_set,
54-
update_accordion_panel,
55-
# Fill
56-
as_fill_carrier,
57-
as_fill_item,
58-
as_fillable_container,
59-
is_fill_carrier,
60-
is_fill_item,
61-
is_fillable_container,
62-
remove_all_fill,
63-
# Card
64-
TagCallable,
65-
CardItem,
66-
card_footer,
67-
card_header,
68-
# Value Box
69-
showcase_left_center,
70-
showcase_top_right,
71-
value_box,
72-
# Layout
73-
layout_column_wrap,
74-
# Navs
75-
navset_bar,
76-
navset_card_pill,
77-
navset_card_tab,
78-
# Outputs
79-
output_image,
80-
output_plot,
81-
output_ui,
82-
# Page
83-
page_fillable,
84-
page_navbar,
85-
page_sidebar,
86-
)
87-
88-
8912
__all__ = (
9013
# Card
9114
"WrapperCallable",
9215
"ImgContainer",
93-
"TagCallable",
9416
"card",
9517
"card_title",
9618
"card_body",
9719
"card_image",
98-
# Deprecated
99-
# # Sidebar
100-
"Sidebar",
101-
"sidebar",
102-
"layout_sidebar",
103-
"toggle_sidebar",
104-
"sidebar_toggle",
105-
"panel_sidebar",
106-
"panel_main",
107-
"DeprecatedPanelSidebar",
108-
"DeprecatedPanelMain",
109-
# # Input Switch
110-
"toggle_switch",
111-
# # Input Text Area
112-
"input_text_area",
113-
# # Navs
114-
"navset_pill_card",
115-
"navset_tab_card",
116-
# # Tooltip
117-
"tooltip",
118-
"toggle_tooltip",
119-
"update_tooltip",
120-
"tooltip_update",
121-
"tooltip_toggle",
122-
# # Sidebar
123-
"sidebar_toggle",
124-
"panel_sidebar",
125-
"panel_main",
126-
"DeprecatedPanelSidebar",
127-
"DeprecatedPanelMain",
128-
# # Css
129-
"CssUnit",
130-
"as_css_unit",
131-
"as_css_padding",
132-
"as_width_unit",
133-
# # Popover
134-
"popover",
135-
"toggle_popover",
136-
"update_popover",
137-
# Accordion
138-
"AccordionPanel",
139-
"accordion",
140-
"accordion_panel",
141-
"accordion_panel_set",
142-
"accordion_panel_open",
143-
"accordion_panel_close",
144-
"accordion_panel_insert",
145-
"accordion_panel_remove",
146-
"update_accordion_panel",
147-
# # Fill
148-
"as_fill_carrier",
149-
"as_fillable_container",
150-
"as_fill_item",
151-
"remove_all_fill",
152-
"is_fill_carrier",
153-
"is_fillable_container",
154-
"is_fill_item",
155-
# # Card
156-
"TagCallable",
157-
"CardItem",
158-
"card_header",
159-
"card_footer",
160-
# # ValueBox
161-
"showcase_left_center",
162-
"showcase_top_right",
163-
"value_box",
164-
# # Layout
165-
"layout_column_wrap",
166-
# # Navs
167-
"navset_bar",
168-
"navset_card_tab",
169-
"navset_card_pill",
170-
# # Output
171-
"output_image",
172-
"output_plot",
173-
"output_ui",
174-
# # Page
175-
"page_sidebar",
176-
"page_fillable",
177-
"page_navbar",
17820
)

0 commit comments

Comments
 (0)