Skip to content

Commit 7f5fdcc

Browse files
authored
090dev (#6182)
* 0829dev * update tailwind v3 * 090 * bump vite
1 parent bd93af0 commit 7f5fdcc

File tree

36 files changed

+615
-563
lines changed

36 files changed

+615
-563
lines changed

pyi_hashes.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"reflex/components/core/window_events.pyi": "af33ccec866b9540ee7fbec6dbfbd151",
2424
"reflex/components/datadisplay/__init__.pyi": "52755871369acbfd3a96b46b9a11d32e",
2525
"reflex/components/datadisplay/code.pyi": "b86769987ef4d1cbdddb461be88539fd",
26-
"reflex/components/datadisplay/dataeditor.pyi": "f8c1e816c9f22f4a7429f812214407f2",
26+
"reflex/components/datadisplay/dataeditor.pyi": "9b85f3cf6156293cd9961eb17a0ea684",
2727
"reflex/components/datadisplay/shiki_code_block.pyi": "1d53e75b6be0d3385a342e7b3011babd",
2828
"reflex/components/el/__init__.pyi": "0adfd001a926a2a40aee94f6fa725ecc",
2929
"reflex/components/el/element.pyi": "c5974a92fbc310e42d0f6cfdd13472f4",
@@ -39,8 +39,8 @@
3939
"reflex/components/el/elements/tables.pyi": "686eb70ea7d8c4dafb0cc5c284e76184",
4040
"reflex/components/el/elements/typography.pyi": "684e83dde887dba12badd0fb75c87c04",
4141
"reflex/components/gridjs/datatable.pyi": "98a7e1b3f3b60cafcdfcd8879750ee42",
42-
"reflex/components/lucide/icon.pyi": "dcb8773ef162f3ec5759efe11374cf5e",
43-
"reflex/components/markdown/markdown.pyi": "dd74e8e9665b2a813ff799a7aa190b44",
42+
"reflex/components/lucide/icon.pyi": "1db10f2b544908dd20c56ca4bc33d5e0",
43+
"reflex/components/markdown/markdown.pyi": "4c4bca6fb0643abb90aca9c0bb87f722",
4444
"reflex/components/moment/moment.pyi": "e1952f1c2c82cef85d91e970d1be64ab",
4545
"reflex/components/plotly/plotly.pyi": "4311a0aae2abcc9226abb6a273f96372",
4646
"reflex/components/radix/__init__.pyi": "5d8e3579912473e563676bfc71f29191",
@@ -49,7 +49,7 @@
4949
"reflex/components/radix/primitives/base.pyi": "9ef34884fb6028dc017df5e2db639c81",
5050
"reflex/components/radix/primitives/dialog.pyi": "9ee73362bb59619c482b6b0d07033f37",
5151
"reflex/components/radix/primitives/drawer.pyi": "921e45dfaf5b9131ef27c561c3acca2e",
52-
"reflex/components/radix/primitives/form.pyi": "78055e820703c98c3b838aa889566365",
52+
"reflex/components/radix/primitives/form.pyi": "17002a3e9d7f52b3207614f6c1c9a24a",
5353
"reflex/components/radix/primitives/progress.pyi": "c917952d57ddb3e138a40c4005120d5e",
5454
"reflex/components/radix/primitives/slider.pyi": "4ff06f0025d47f166132909b09ab96f8",
5555
"reflex/components/radix/themes/__init__.pyi": "582b4a7ead62b2ae8605e17fa084c063",
@@ -71,7 +71,7 @@
7171
"reflex/components/radix/themes/components/dialog.pyi": "d2615f1a68c80ff930444d054b598c13",
7272
"reflex/components/radix/themes/components/dropdown_menu.pyi": "43f8770c9adf93c73398d68f79048424",
7373
"reflex/components/radix/themes/components/hover_card.pyi": "a96f4433237f9994decf935deff9f269",
74-
"reflex/components/radix/themes/components/icon_button.pyi": "e930911d8ecbe61e5447e61c76a28ab6",
74+
"reflex/components/radix/themes/components/icon_button.pyi": "f12a874bad243a81e5c8740a1d86c6bc",
7575
"reflex/components/radix/themes/components/inset.pyi": "bd7a2186b553bd4c86d83ff50c784066",
7676
"reflex/components/radix/themes/components/popover.pyi": "91f8edefeb232cc6d48690b1838144c2",
7777
"reflex/components/radix/themes/components/progress.pyi": "0e59587d5b3c8fe0d0067587f144e5b0",
@@ -106,7 +106,7 @@
106106
"reflex/components/radix/themes/typography/blockquote.pyi": "080c71899532f5dbf4cf143e7a5ad3bf",
107107
"reflex/components/radix/themes/typography/code.pyi": "7ffe785d55979cf8ff97ea040f3e2b64",
108108
"reflex/components/radix/themes/typography/heading.pyi": "0ebb38915cd0521fd59c569e04d288bb",
109-
"reflex/components/radix/themes/typography/link.pyi": "e88c5d880a54548b6808c097ac62505b",
109+
"reflex/components/radix/themes/typography/link.pyi": "64878125a37d47d676c9adf8156d8c41",
110110
"reflex/components/radix/themes/typography/text.pyi": "50f9ca15a941e4b77ddd12e77aa3c03e",
111111
"reflex/components/react_player/audio.pyi": "0e1690ff1f1f39bc748278d292238350",
112112
"reflex/components/react_player/react_player.pyi": "5ccd373b94ed1d3934ae6afc46bd6fe4",
@@ -118,5 +118,5 @@
118118
"reflex/components/recharts/general.pyi": "d87ff9b85b2a204be01753690df4fb11",
119119
"reflex/components/recharts/polar.pyi": "b8b1a3e996e066facdf4f8c9eb363137",
120120
"reflex/components/recharts/recharts.pyi": "d5c9fc57a03b419748f0408c23319eee",
121-
"reflex/components/sonner/toast.pyi": "3c27bad1aaeb5183eaa6a41e77e8d7f0"
121+
"reflex/components/sonner/toast.pyi": "dca44901640cda9d58c62ff8434faa3e"
122122
}

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "reflex"
3-
version = "0.8.28dev1"
3+
version = "0.9.0dev1"
44
description = "Web apps in pure Python."
55
license.text = "Apache-2.0"
66
authors = [
@@ -244,7 +244,7 @@ fail_fast = true
244244

245245
[[tool.pre-commit.repos]]
246246
repo = "https://github.com/astral-sh/ruff-pre-commit"
247-
rev = "v0.15.1"
247+
rev = "v0.15.6"
248248
hooks = [
249249
{ id = "ruff-format", args = [
250250
"reflex",

reflex/app.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -611,11 +611,11 @@ def __repr__(self) -> str:
611611
def __call__(self) -> ASGIApp:
612612
"""Run the backend api instance.
613613
614-
Raises:
615-
ValueError: If the app has not been initialized.
616-
617614
Returns:
618615
The backend api.
616+
617+
Raises:
618+
ValueError: If the app has not been initialized.
619619
"""
620620
from reflex.assets import remove_stale_external_asset_symlinks
621621
from reflex.vars.base import GLOBAL_CACHE
@@ -930,11 +930,11 @@ def _check_routes_conflict(self, new_route: str):
930930
931931
Based on conflicts that React Router would throw if not intercepted.
932932
933-
Raises:
934-
RouteValueError: exception showing which conflict exist with the route to be added
935-
936933
Args:
937934
new_route: the route being newly added.
935+
936+
Raises:
937+
RouteValueError: exception showing which conflict exist with the route to be added
938938
"""
939939
from reflex.utils.exceptions import RouteValueError
940940

@@ -1766,11 +1766,11 @@ async def process(
17661766
headers: The client headers.
17671767
client_ip: The client_ip.
17681768
1769-
Raises:
1770-
Exception: If a reflex specific error occurs during processing the event.
1771-
17721769
Yields:
17731770
The state updates after processing the event.
1771+
1772+
Raises:
1773+
Exception: If a reflex specific error occurs during processing the event.
17741774
"""
17751775
from reflex.utils import telemetry
17761776

@@ -2190,14 +2190,12 @@ async def emit_update(self, update: StateUpdate, token: str) -> None:
21902190
async def on_event(self, sid: str, data: Any):
21912191
"""Event for receiving front-end websocket events.
21922192
2193-
Raises:
2194-
RuntimeError: If the Socket.IO is badly initialized.
2195-
21962193
Args:
21972194
sid: The Socket.IO session id.
21982195
data: The event data.
21992196
22002197
Raises:
2198+
RuntimeError: If the Socket.IO is badly initialized.
22012199
EventDeserializationError: If the event data is not a dictionary.
22022200
"""
22032201
fields = data

reflex/assets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ def asset(
7272
the immediate caller 1. When using rx.asset via a helper function,
7373
increase this number for each helper function in the stack.
7474
75+
Returns:
76+
The relative URL to the asset.
77+
7578
Raises:
7679
FileNotFoundError: If the file does not exist.
7780
ValueError: If subfolder is provided for local assets.
78-
79-
Returns:
80-
The relative URL to the asset.
8181
"""
8282
assets = constants.Dirs.APP_ASSETS
8383
backend_only = EnvironmentVariables.REFLEX_BACKEND_ONLY.get()

reflex/compiler/utils.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ def compile_import_statement(fields: list[ImportVar]) -> tuple[str, list[str]]:
3939
Args:
4040
fields: The set of fields to import from the library.
4141
42-
Raises:
43-
ValueError: If there is more than one default import.
44-
4542
Returns:
4643
The libraries for default and rest.
4744
default: default library. When install "import def from library".
4845
rest: rest of libraries. When install "import {rest1, rest2} from library"
46+
47+
Raises:
48+
ValueError: If there is more than one default import.
4949
"""
5050
# ignore the ImportVar fields with render=False during compilation
5151
fields_set = {field for field in fields if field.render}
@@ -105,11 +105,11 @@ def compile_imports(import_dict: ParsedImportDict) -> list[_ImportDict]:
105105
Args:
106106
import_dict: The import dict to compile.
107107
108-
Raises:
109-
ValueError: If an import in the dict is invalid.
110-
111108
Returns:
112109
The list of import dict.
110+
111+
Raises:
112+
ValueError: If an import in the dict is invalid.
113113
"""
114114
collapsed_import_dict: ParsedImportDict = imports.collapse_imports(import_dict)
115115
validate_imports(collapsed_import_dict)

reflex/components/base/meta.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ class Title(elements.Title):
1414
def render(self) -> dict:
1515
"""Render the title component.
1616
17-
Raises:
18-
ValueError: If the title is not a single string.
19-
2017
Returns:
2118
The rendered title component.
19+
20+
Raises:
21+
ValueError: If the title is not a single string.
2222
"""
2323
# Make sure the title is a single string.
2424
if len(self.children) != 1 or not isinstance(self.children[0], Bare):

reflex/components/component.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,11 +1166,11 @@ def _add_style_recursive(
11661166
style: A dict from component to styling.
11671167
theme: The theme to apply. (for retro-compatibility with deprecated _apply_theme API)
11681168
1169-
Raises:
1170-
UserWarning: If `_add_style` has been overridden.
1171-
11721169
Returns:
11731170
The component with the additional style.
1171+
1172+
Raises:
1173+
UserWarning: If `_add_style` has been overridden.
11741174
"""
11751175
# 1. Default style from `_add_style`/`add_style`.
11761176
if type(self)._add_style != Component._add_style:

reflex/components/core/breakpoints.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ def create(
6363
lg: Styling when in the large width
6464
xl: Styling when in the extra-large width
6565
66-
Raises:
67-
ValueError: If both custom and any other named parameters are provided.
68-
6966
Returns:
7067
The responsive mapping.
68+
69+
Raises:
70+
ValueError: If both custom and any other named parameters are provided.
7171
"""
7272
thresholds = [initial, xs, sm, md, lg, xl]
7373

reflex/components/datadisplay/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ class Theme:
382382
class CodeBlock(Component, MarkdownComponentMap):
383383
"""A code block."""
384384

385-
library = "react-syntax-highlighter@16.1.0"
385+
library = "react-syntax-highlighter@16.1.1"
386386

387387
tag = "PrismAsyncLight"
388388

reflex/components/datadisplay/dataeditor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,11 @@ def create(cls, *children, **props) -> Component:
467467
*children: The children of the data editor.
468468
**props: The props of the data editor.
469469
470-
Raises:
471-
ValueError: invalid input.
472-
473470
Returns:
474471
The DataEditor component.&
472+
473+
Raises:
474+
ValueError: invalid input.
475475
"""
476476
from reflex.components.el import Div
477477

0 commit comments

Comments
 (0)