reflex 0.8.10__py3-none-any.whl → 0.8.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/app.py +6 -6
- reflex/compiler/compiler.py +4 -4
- reflex/compiler/templates.py +3 -2
- reflex/components/component.py +10 -28
- reflex/components/core/upload.py +2 -2
- reflex/components/datadisplay/code.py +2 -2
- reflex/components/datadisplay/code.pyi +6 -2
- reflex/components/field.py +5 -1
- reflex/components/lucide/icon.py +2 -1
- reflex/components/lucide/icon.pyi +2 -1
- reflex/components/props.py +15 -0
- reflex/components/recharts/recharts.py +2 -2
- reflex/constants/installer.py +2 -2
- reflex/constants/state.py +1 -0
- reflex/event.py +27 -0
- reflex/plugins/tailwind_v4.py +2 -2
- {reflex-0.8.10.dist-info → reflex-0.8.11.dist-info}/METADATA +1 -1
- {reflex-0.8.10.dist-info → reflex-0.8.11.dist-info}/RECORD +21 -21
- {reflex-0.8.10.dist-info → reflex-0.8.11.dist-info}/WHEEL +0 -0
- {reflex-0.8.10.dist-info → reflex-0.8.11.dist-info}/entry_points.txt +0 -0
- {reflex-0.8.10.dist-info → reflex-0.8.11.dist-info}/licenses/LICENSE +0 -0
reflex/app.py
CHANGED
|
@@ -1281,12 +1281,12 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
1281
1281
|
|
|
1282
1282
|
# Compile custom components.
|
|
1283
1283
|
(
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
) = compiler.
|
|
1288
|
-
compile_results.append((
|
|
1289
|
-
all_imports.update(
|
|
1284
|
+
memo_components_output,
|
|
1285
|
+
memo_components_result,
|
|
1286
|
+
memo_components_imports,
|
|
1287
|
+
) = compiler.compile_memo_components(dict.fromkeys(CUSTOM_COMPONENTS.values()))
|
|
1288
|
+
compile_results.append((memo_components_output, memo_components_result))
|
|
1289
|
+
all_imports.update(memo_components_imports)
|
|
1290
1290
|
progress.advance(task)
|
|
1291
1291
|
|
|
1292
1292
|
with console.timing("Collect all imports and app wraps"):
|
reflex/compiler/compiler.py
CHANGED
|
@@ -336,7 +336,7 @@ def _compile_component(component: Component | StatefulComponent) -> str:
|
|
|
336
336
|
return templates.component_template(component=component)
|
|
337
337
|
|
|
338
338
|
|
|
339
|
-
def
|
|
339
|
+
def _compile_memo_components(
|
|
340
340
|
components: Iterable[CustomComponent],
|
|
341
341
|
) -> tuple[str, dict[str, list[ImportVar]]]:
|
|
342
342
|
"""Compile the components.
|
|
@@ -376,7 +376,7 @@ def _compile_components(
|
|
|
376
376
|
|
|
377
377
|
# Compile the components page.
|
|
378
378
|
return (
|
|
379
|
-
templates.
|
|
379
|
+
templates.memo_components_template(
|
|
380
380
|
imports=utils.compile_imports(imports),
|
|
381
381
|
components=component_renders,
|
|
382
382
|
dynamic_imports=sorted(dynamic_imports),
|
|
@@ -565,7 +565,7 @@ def compile_page(path: str, component: BaseComponent) -> tuple[str, str]:
|
|
|
565
565
|
return output_path, code
|
|
566
566
|
|
|
567
567
|
|
|
568
|
-
def
|
|
568
|
+
def compile_memo_components(
|
|
569
569
|
components: Iterable[CustomComponent],
|
|
570
570
|
) -> tuple[str, str, dict[str, list[ImportVar]]]:
|
|
571
571
|
"""Compile the custom components.
|
|
@@ -580,7 +580,7 @@ def compile_components(
|
|
|
580
580
|
output_path = utils.get_components_path()
|
|
581
581
|
|
|
582
582
|
# Compile the components.
|
|
583
|
-
code, imports =
|
|
583
|
+
code, imports = _compile_memo_components(components)
|
|
584
584
|
return output_path, code, imports
|
|
585
585
|
|
|
586
586
|
|
reflex/compiler/templates.py
CHANGED
|
@@ -8,6 +8,7 @@ from typing import TYPE_CHECKING, Any
|
|
|
8
8
|
|
|
9
9
|
from reflex import constants
|
|
10
10
|
from reflex.constants import Hooks
|
|
11
|
+
from reflex.constants.state import CAMEL_CASE_MEMO_MARKER
|
|
11
12
|
from reflex.utils.format import format_state_name, json_dumps
|
|
12
13
|
from reflex.vars.base import VarData
|
|
13
14
|
|
|
@@ -637,7 +638,7 @@ def stateful_components_template(imports: list[_ImportDict], memoized_code: str)
|
|
|
637
638
|
return f"{imports_str}\n{memoized_code}"
|
|
638
639
|
|
|
639
640
|
|
|
640
|
-
def
|
|
641
|
+
def memo_components_template(
|
|
641
642
|
imports: list[_ImportDict],
|
|
642
643
|
components: list[dict[str, Any]],
|
|
643
644
|
dynamic_imports: Iterable[str],
|
|
@@ -661,7 +662,7 @@ def custom_component_template(
|
|
|
661
662
|
components_code = ""
|
|
662
663
|
for component in components:
|
|
663
664
|
components_code += f"""
|
|
664
|
-
export const {component["name"]} = memo(({{ {",
|
|
665
|
+
export const {component["name"]} = memo(({{ {",".join([f"{prop}:{prop}{CAMEL_CASE_MEMO_MARKER}" for prop in component.get("props", [])])} }}) => {{
|
|
665
666
|
{_render_hooks(component.get("hooks", {}))}
|
|
666
667
|
return(
|
|
667
668
|
{_RenderUtils.render(component["render"])}
|
reflex/components/component.py
CHANGED
|
@@ -37,12 +37,13 @@ from reflex.constants import (
|
|
|
37
37
|
PageNames,
|
|
38
38
|
)
|
|
39
39
|
from reflex.constants.compiler import SpecialAttributes
|
|
40
|
-
from reflex.constants.state import
|
|
40
|
+
from reflex.constants.state import CAMEL_CASE_MEMO_MARKER, FRONTEND_EVENT_STATE
|
|
41
41
|
from reflex.event import (
|
|
42
42
|
EventCallback,
|
|
43
43
|
EventChain,
|
|
44
44
|
EventHandler,
|
|
45
45
|
EventSpec,
|
|
46
|
+
args_specs_from_fields,
|
|
46
47
|
no_args_event_spec,
|
|
47
48
|
parse_args_spec,
|
|
48
49
|
pointer_event_spec,
|
|
@@ -143,14 +144,6 @@ class BaseComponentMeta(FieldBasedMeta, ABCMeta):
|
|
|
143
144
|
_fields: Mapping[str, ComponentField]
|
|
144
145
|
_js_fields: Mapping[str, ComponentField]
|
|
145
146
|
|
|
146
|
-
@classmethod
|
|
147
|
-
def _resolve_annotations(
|
|
148
|
-
cls, namespace: dict[str, Any], name: str
|
|
149
|
-
) -> dict[str, Any]:
|
|
150
|
-
return types.resolve_annotations(
|
|
151
|
-
namespace.get("__annotations__", {}), namespace["__module__"]
|
|
152
|
-
)
|
|
153
|
-
|
|
154
147
|
@classmethod
|
|
155
148
|
def _process_annotated_fields(
|
|
156
149
|
cls,
|
|
@@ -909,18 +902,7 @@ class Component(BaseComponent, ABC):
|
|
|
909
902
|
"""
|
|
910
903
|
# Look for component specific triggers,
|
|
911
904
|
# e.g. variable declared as EventHandler types.
|
|
912
|
-
return DEFAULT_TRIGGERS |
|
|
913
|
-
name: (
|
|
914
|
-
metadata[0]
|
|
915
|
-
if (
|
|
916
|
-
(metadata := getattr(field.annotated_type, "__metadata__", None))
|
|
917
|
-
is not None
|
|
918
|
-
)
|
|
919
|
-
else no_args_event_spec
|
|
920
|
-
)
|
|
921
|
-
for name, field in cls.get_fields().items()
|
|
922
|
-
if field.type_origin is EventHandler
|
|
923
|
-
} # pyright: ignore [reportOperatorIssue]
|
|
905
|
+
return DEFAULT_TRIGGERS | args_specs_from_fields(cls.get_fields()) # pyright: ignore [reportOperatorIssue]
|
|
924
906
|
|
|
925
907
|
def __repr__(self) -> str:
|
|
926
908
|
"""Represent the component in React.
|
|
@@ -1983,7 +1965,7 @@ class CustomComponent(Component):
|
|
|
1983
1965
|
|
|
1984
1966
|
super()._post_init(
|
|
1985
1967
|
event_triggers={
|
|
1986
|
-
key
|
|
1968
|
+
key: EventChain.create(
|
|
1987
1969
|
value=props[key],
|
|
1988
1970
|
args_spec=get_args_spec(key),
|
|
1989
1971
|
key=key,
|
|
@@ -1994,9 +1976,7 @@ class CustomComponent(Component):
|
|
|
1994
1976
|
)
|
|
1995
1977
|
|
|
1996
1978
|
to_camel_cased_props = {
|
|
1997
|
-
format.to_camel_case(key
|
|
1998
|
-
for key in props
|
|
1999
|
-
if key not in event_types
|
|
1979
|
+
format.to_camel_case(key): None for key in props if key not in event_types
|
|
2000
1980
|
}
|
|
2001
1981
|
self.get_props = lambda: to_camel_cased_props # pyright: ignore [reportIncompatibleVariableOverride]
|
|
2002
1982
|
|
|
@@ -2011,7 +1991,7 @@ class CustomComponent(Component):
|
|
|
2011
1991
|
if key not in props_types:
|
|
2012
1992
|
continue
|
|
2013
1993
|
|
|
2014
|
-
camel_cased_key = format.to_camel_case(key
|
|
1994
|
+
camel_cased_key = format.to_camel_case(key)
|
|
2015
1995
|
|
|
2016
1996
|
# Get the type based on the annotation.
|
|
2017
1997
|
type_ = props_types[key]
|
|
@@ -2101,11 +2081,13 @@ class CustomComponent(Component):
|
|
|
2101
2081
|
"""
|
|
2102
2082
|
return [
|
|
2103
2083
|
Var(
|
|
2104
|
-
_js_expr=name,
|
|
2084
|
+
_js_expr=name + CAMEL_CASE_MEMO_MARKER,
|
|
2105
2085
|
_var_type=(prop._var_type if isinstance(prop, Var) else type(prop)),
|
|
2106
2086
|
).guess_type()
|
|
2107
2087
|
if isinstance(prop, Var) or not isinstance(prop, EventChain)
|
|
2108
|
-
else CustomComponent._get_event_spec_from_args_spec(
|
|
2088
|
+
else CustomComponent._get_event_spec_from_args_spec(
|
|
2089
|
+
name + CAMEL_CASE_MEMO_MARKER, prop
|
|
2090
|
+
)
|
|
2109
2091
|
for name, prop in self.props.items()
|
|
2110
2092
|
]
|
|
2111
2093
|
|
reflex/components/core/upload.py
CHANGED
|
@@ -35,6 +35,7 @@ from reflex.utils import format
|
|
|
35
35
|
from reflex.utils.imports import ImportVar
|
|
36
36
|
from reflex.vars import VarData
|
|
37
37
|
from reflex.vars.base import Var, get_unique_variable_name
|
|
38
|
+
from reflex.vars.function import FunctionVar
|
|
38
39
|
from reflex.vars.sequence import LiteralStringVar
|
|
39
40
|
|
|
40
41
|
DEFAULT_UPLOAD_ID: str = "default"
|
|
@@ -111,8 +112,7 @@ def clear_selected_files(id_: str = DEFAULT_UPLOAD_ID) -> EventSpec:
|
|
|
111
112
|
# UploadFilesProvider assigns a special function to clear selected files
|
|
112
113
|
# into the shared global refs object to make it accessible outside a React
|
|
113
114
|
# component via `run_script` (otherwise backend could never clear files).
|
|
114
|
-
|
|
115
|
-
return run_script(f"{func}({id_!r})")
|
|
115
|
+
return run_script(Var("__clear_selected_files")._as_ref().to(FunctionVar).call(id_))
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
def cancel_upload(upload_id: str) -> EventSpec:
|
|
@@ -382,7 +382,7 @@ for theme_name in dir(Theme):
|
|
|
382
382
|
class CodeBlock(Component, MarkdownComponentMap):
|
|
383
383
|
"""A code block."""
|
|
384
384
|
|
|
385
|
-
library = "react-syntax-highlighter@15.6.
|
|
385
|
+
library = "react-syntax-highlighter@15.6.6"
|
|
386
386
|
|
|
387
387
|
tag = "PrismAsyncLight"
|
|
388
388
|
|
|
@@ -412,7 +412,7 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
412
412
|
)
|
|
413
413
|
|
|
414
414
|
# Props passed down to the code tag.
|
|
415
|
-
code_tag_props: Var[dict[str, str]]
|
|
415
|
+
code_tag_props: Var[dict[str, str | dict[str, str]]]
|
|
416
416
|
|
|
417
417
|
# Whether a copy button should appear.
|
|
418
418
|
can_copy: bool | None = field(
|
|
@@ -926,7 +926,9 @@ class CodeBlock(Component, MarkdownComponentMap):
|
|
|
926
926
|
starting_line_number: Var[int] | int | None = None,
|
|
927
927
|
wrap_long_lines: Var[bool] | bool | None = None,
|
|
928
928
|
custom_style: dict[str, str | Var | Color] | None = None,
|
|
929
|
-
code_tag_props: Var[dict[str,
|
|
929
|
+
code_tag_props: Var[dict[str, dict[str, str] | str]]
|
|
930
|
+
| dict[str, dict[str, str] | str]
|
|
931
|
+
| None = None,
|
|
930
932
|
can_copy: bool | None = None,
|
|
931
933
|
copy_button: Component | bool | None = None,
|
|
932
934
|
style: Sequence[Mapping[str, Any]]
|
|
@@ -1562,7 +1564,9 @@ class CodeblockNamespace(ComponentNamespace):
|
|
|
1562
1564
|
starting_line_number: Var[int] | int | None = None,
|
|
1563
1565
|
wrap_long_lines: Var[bool] | bool | None = None,
|
|
1564
1566
|
custom_style: dict[str, str | Var | Color] | None = None,
|
|
1565
|
-
code_tag_props: Var[dict[str,
|
|
1567
|
+
code_tag_props: Var[dict[str, dict[str, str] | str]]
|
|
1568
|
+
| dict[str, dict[str, str] | str]
|
|
1569
|
+
| None = None,
|
|
1566
1570
|
can_copy: bool | None = None,
|
|
1567
1571
|
copy_button: Component | bool | None = None,
|
|
1568
1572
|
style: Sequence[Mapping[str, Any]]
|
reflex/components/field.py
CHANGED
|
@@ -6,6 +6,8 @@ from collections.abc import Callable
|
|
|
6
6
|
from dataclasses import _MISSING_TYPE, MISSING
|
|
7
7
|
from typing import Annotated, Any, Generic, TypeVar, get_origin
|
|
8
8
|
|
|
9
|
+
from reflex.utils import types
|
|
10
|
+
|
|
9
11
|
FIELD_TYPE = TypeVar("FIELD_TYPE")
|
|
10
12
|
|
|
11
13
|
|
|
@@ -114,7 +116,9 @@ class FieldBasedMeta(type):
|
|
|
114
116
|
def _resolve_annotations(
|
|
115
117
|
cls, namespace: dict[str, Any], name: str
|
|
116
118
|
) -> dict[str, Any]:
|
|
117
|
-
return
|
|
119
|
+
return types.resolve_annotations(
|
|
120
|
+
namespace.get("__annotations__", {}), namespace["__module__"]
|
|
121
|
+
)
|
|
118
122
|
|
|
119
123
|
@classmethod
|
|
120
124
|
def _process_field_overrides(
|
reflex/components/lucide/icon.py
CHANGED
|
@@ -6,7 +6,7 @@ from reflex.utils.imports import ImportVar
|
|
|
6
6
|
from reflex.vars.base import LiteralVar, Var
|
|
7
7
|
from reflex.vars.sequence import LiteralStringVar, StringVar
|
|
8
8
|
|
|
9
|
-
LUCIDE_LIBRARY = "lucide-react@0.
|
|
9
|
+
LUCIDE_LIBRARY = "lucide-react@0.543.0"
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class LucideIconComponent(Component):
|
|
@@ -921,6 +921,7 @@ LUCIDE_ICON_LIST = [
|
|
|
921
921
|
"hospital",
|
|
922
922
|
"hotel",
|
|
923
923
|
"hourglass",
|
|
924
|
+
"house_heart",
|
|
924
925
|
"house_plug",
|
|
925
926
|
"house_plus",
|
|
926
927
|
"house_wifi",
|
|
@@ -11,7 +11,7 @@ from reflex.components.core.breakpoints import Breakpoints
|
|
|
11
11
|
from reflex.event import EventType, PointerEventInfo
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
|
-
LUCIDE_LIBRARY = "lucide-react@0.
|
|
14
|
+
LUCIDE_LIBRARY = "lucide-react@0.543.0"
|
|
15
15
|
|
|
16
16
|
class LucideIconComponent(Component):
|
|
17
17
|
@classmethod
|
|
@@ -986,6 +986,7 @@ LUCIDE_ICON_LIST = [
|
|
|
986
986
|
"hospital",
|
|
987
987
|
"hotel",
|
|
988
988
|
"hourglass",
|
|
989
|
+
"house_heart",
|
|
989
990
|
"house_plug",
|
|
990
991
|
"house_plus",
|
|
991
992
|
"house_wifi",
|
reflex/components/props.py
CHANGED
|
@@ -9,6 +9,7 @@ from typing import Any, TypeVar, get_args, get_origin
|
|
|
9
9
|
from typing_extensions import dataclass_transform
|
|
10
10
|
|
|
11
11
|
from reflex.components.field import BaseField, FieldBasedMeta
|
|
12
|
+
from reflex.event import EventChain, args_specs_from_fields
|
|
12
13
|
from reflex.utils import format
|
|
13
14
|
from reflex.utils.exceptions import InvalidPropValueError
|
|
14
15
|
from reflex.utils.serializers import serializer
|
|
@@ -267,6 +268,20 @@ class PropsBase(metaclass=PropsBaseMeta):
|
|
|
267
268
|
setattr(self, field_name, field.default_factory())
|
|
268
269
|
# Note: Fields with no default and no factory remain unset (required fields)
|
|
269
270
|
|
|
271
|
+
# Convert EventHandler to EventChain
|
|
272
|
+
args_specs = args_specs_from_fields(self.get_fields())
|
|
273
|
+
for handler_name, args_spec in args_specs.items():
|
|
274
|
+
if (handler := getattr(self, handler_name, None)) is not None:
|
|
275
|
+
setattr(
|
|
276
|
+
self,
|
|
277
|
+
handler_name,
|
|
278
|
+
EventChain.create(
|
|
279
|
+
value=handler,
|
|
280
|
+
args_spec=args_spec,
|
|
281
|
+
key=handler_name,
|
|
282
|
+
),
|
|
283
|
+
)
|
|
284
|
+
|
|
270
285
|
@classmethod
|
|
271
286
|
def get_fields(cls) -> dict[str, Any]:
|
|
272
287
|
"""Get the fields of the object.
|
|
@@ -8,7 +8,7 @@ from reflex.components.component import Component, MemoizationLeaf, NoSSRCompone
|
|
|
8
8
|
class Recharts(Component):
|
|
9
9
|
"""A component that wraps a recharts lib."""
|
|
10
10
|
|
|
11
|
-
library = "recharts@3.
|
|
11
|
+
library = "recharts@3.2.0"
|
|
12
12
|
|
|
13
13
|
def _get_style(self) -> dict:
|
|
14
14
|
return {"wrapperStyle": self.style}
|
|
@@ -17,7 +17,7 @@ class Recharts(Component):
|
|
|
17
17
|
class RechartsCharts(NoSSRComponent, MemoizationLeaf):
|
|
18
18
|
"""A component that wraps a recharts lib."""
|
|
19
19
|
|
|
20
|
-
library = "recharts@3.
|
|
20
|
+
library = "recharts@3.2.0"
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]
|
reflex/constants/installer.py
CHANGED
|
@@ -143,11 +143,11 @@ class PackageJson(SimpleNamespace):
|
|
|
143
143
|
"postcss-import": "16.1.1",
|
|
144
144
|
"@react-router/dev": _react_router_version,
|
|
145
145
|
"@react-router/fs-routes": _react_router_version,
|
|
146
|
-
"vite": "npm:rolldown-vite@7.1.
|
|
146
|
+
"vite": "npm:rolldown-vite@7.1.8",
|
|
147
147
|
}
|
|
148
148
|
OVERRIDES = {
|
|
149
149
|
# This should always match the `react` version in DEPENDENCIES for recharts compatibility.
|
|
150
150
|
"react-is": _react_version,
|
|
151
151
|
"cookie": "1.0.2",
|
|
152
|
-
"vite": "npm:rolldown-vite@7.1.
|
|
152
|
+
"vite": "npm:rolldown-vite@7.1.8",
|
|
153
153
|
}
|
reflex/constants/state.py
CHANGED
reflex/event.py
CHANGED
|
@@ -26,6 +26,7 @@ from typing import (
|
|
|
26
26
|
from typing_extensions import Self, TypeAliasType, TypedDict, TypeVarTuple, Unpack
|
|
27
27
|
|
|
28
28
|
from reflex import constants
|
|
29
|
+
from reflex.components.field import BaseField
|
|
29
30
|
from reflex.constants.compiler import CompileVars, Hooks, Imports
|
|
30
31
|
from reflex.constants.state import FRONTEND_EVENT_STATE
|
|
31
32
|
from reflex.utils import format
|
|
@@ -1684,6 +1685,31 @@ def parse_args_spec(arg_spec: ArgsSpec | Sequence[ArgsSpec]):
|
|
|
1684
1685
|
), annotations
|
|
1685
1686
|
|
|
1686
1687
|
|
|
1688
|
+
def args_specs_from_fields(
|
|
1689
|
+
fields_dict: Mapping[str, BaseField],
|
|
1690
|
+
) -> dict[str, ArgsSpec | Sequence[ArgsSpec]]:
|
|
1691
|
+
"""Get the event triggers and arg specs from the given fields.
|
|
1692
|
+
|
|
1693
|
+
Args:
|
|
1694
|
+
fields_dict: The fields, keyed by name
|
|
1695
|
+
|
|
1696
|
+
Returns:
|
|
1697
|
+
The args spec for any field annotated as EventHandler.
|
|
1698
|
+
"""
|
|
1699
|
+
return {
|
|
1700
|
+
name: (
|
|
1701
|
+
metadata[0]
|
|
1702
|
+
if (
|
|
1703
|
+
(metadata := getattr(field.annotated_type, "__metadata__", None))
|
|
1704
|
+
is not None
|
|
1705
|
+
)
|
|
1706
|
+
else no_args_event_spec
|
|
1707
|
+
)
|
|
1708
|
+
for name, field in fields_dict.items()
|
|
1709
|
+
if field.type_origin is EventHandler
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
|
|
1687
1713
|
def check_fn_match_arg_spec(
|
|
1688
1714
|
user_func: Callable,
|
|
1689
1715
|
user_func_parameters: Mapping[str, inspect.Parameter],
|
|
@@ -2436,6 +2462,7 @@ class EventNamespace:
|
|
|
2436
2462
|
check_fn_match_arg_spec = staticmethod(check_fn_match_arg_spec)
|
|
2437
2463
|
resolve_annotation = staticmethod(resolve_annotation)
|
|
2438
2464
|
parse_args_spec = staticmethod(parse_args_spec)
|
|
2465
|
+
args_specs_from_fields = staticmethod(args_specs_from_fields)
|
|
2439
2466
|
unwrap_var_annotation = staticmethod(unwrap_var_annotation)
|
|
2440
2467
|
get_fn_signature = staticmethod(get_fn_signature)
|
|
2441
2468
|
|
reflex/plugins/tailwind_v4.py
CHANGED
|
@@ -17,7 +17,7 @@ class Constants(SimpleNamespace):
|
|
|
17
17
|
"""Tailwind constants."""
|
|
18
18
|
|
|
19
19
|
# The Tailwindcss version
|
|
20
|
-
VERSION = "tailwindcss@4.1.
|
|
20
|
+
VERSION = "tailwindcss@4.1.13"
|
|
21
21
|
# The Tailwind config.
|
|
22
22
|
CONFIG = "tailwind.config.js"
|
|
23
23
|
# Default Tailwind content paths
|
|
@@ -156,7 +156,7 @@ class TailwindV4Plugin(TailwindPlugin):
|
|
|
156
156
|
return [
|
|
157
157
|
*super().get_frontend_development_dependencies(**context),
|
|
158
158
|
Constants.VERSION,
|
|
159
|
-
"@tailwindcss/postcss@4.1.
|
|
159
|
+
"@tailwindcss/postcss@4.1.13",
|
|
160
160
|
]
|
|
161
161
|
|
|
162
162
|
def pre_compile(self, **context):
|
|
@@ -2,12 +2,12 @@ reflex/__init__.py,sha256=_1PVYjDeA6_JyfXvL6OuKjjO6AX2oMiNcAq8AEHf6xw,10161
|
|
|
2
2
|
reflex/__init__.pyi,sha256=0D46kHVUJPE_kgYL-BjraERu-MXNCPsQTZQShrijmeQ,10148
|
|
3
3
|
reflex/__main__.py,sha256=6cVrGEyT3j3tEvlEVUatpaYfbB5EF3UVY-6vc_Z7-hw,108
|
|
4
4
|
reflex/admin.py,sha256=Nbc38y-M8iaRBvh1W6DQu_D3kEhO8JFvxrog4q2cB_E,434
|
|
5
|
-
reflex/app.py,sha256=
|
|
5
|
+
reflex/app.py,sha256=6twI1PM0obKXFylomi-AXqr1zdaK9aZzYH3yh6zO2M8,78122
|
|
6
6
|
reflex/assets.py,sha256=l5O_mlrTprC0lF7Rc_McOe3a0OtSLnRdNl_PqCpDCBA,3431
|
|
7
7
|
reflex/base.py,sha256=Oh664QL3fZEHErhUasFqP7fE4olYf1y-9Oj6uZI2FCU,1173
|
|
8
8
|
reflex/config.py,sha256=LsHAtdH4nkSn3q_Ie-KNdOGdflLXrFICUQov29oFjVk,21229
|
|
9
9
|
reflex/environment.py,sha256=BRIePrhFKTZajYlyl-KhjGsqR4_hc7KxfNCoape6Jjw,23590
|
|
10
|
-
reflex/event.py,sha256=
|
|
10
|
+
reflex/event.py,sha256=C4b_gj8FLQx5HKWp_G5nFsCO-H0z08tx_LYc-e3vwlo,76239
|
|
11
11
|
reflex/model.py,sha256=2QhU1TJlcDeRA23pv8usLjyDaA6FhbQRYdzsjOHzvUI,19665
|
|
12
12
|
reflex/page.py,sha256=ssCbMVFuIy60vH-YhJUzN0OxzUwXFCCD3ej56dVjp3g,3525
|
|
13
13
|
reflex/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -42,16 +42,16 @@ reflex/app_mixins/lifespan.py,sha256=a156ZUYVo2bN1Tv-4WmWSjojo90PP_2-V12BX0q8YNw
|
|
|
42
42
|
reflex/app_mixins/middleware.py,sha256=BKhe0jUFO1_TylEC48LUZyaeYyPmAYW-NV4H5Rw221k,2848
|
|
43
43
|
reflex/app_mixins/mixin.py,sha256=R1YncalqDrbdPZvpKVbm72ZKmQZxYAWfuFq9JknzTqQ,305
|
|
44
44
|
reflex/compiler/__init__.py,sha256=r8jqmDSFf09iV2lHlNhfc9XrTLjNxfDNwPYlxS4cmHE,27
|
|
45
|
-
reflex/compiler/compiler.py,sha256=
|
|
46
|
-
reflex/compiler/templates.py,sha256=
|
|
45
|
+
reflex/compiler/compiler.py,sha256=rE0aMl_xwq-qvPd6fgvUV_F4qaMiNKo_82LfCKbX258,29114
|
|
46
|
+
reflex/compiler/templates.py,sha256=k4Z-vftCk1W_dBweQtHt7UExPkS-jgaBhUtbMhzg02w,20518
|
|
47
47
|
reflex/compiler/utils.py,sha256=RmeUoZMHdIfnqPl-p0ToPgwd0FEFO5u0Xbb-J20UYdQ,19621
|
|
48
48
|
reflex/components/__init__.py,sha256=eWpgWFbSQDj2TpGp6StEbxU7roQgzY7ZM0XIcIc5RE8,588
|
|
49
49
|
reflex/components/__init__.pyi,sha256=7VFHtJGIjvGtD3IiPk848IPWYSCcPRT1EyPGljLhYlU,736
|
|
50
|
-
reflex/components/component.py,sha256=
|
|
50
|
+
reflex/components/component.py,sha256=FpKwvwszkxZAP3NIAdJTQxo5wd4cMiRwY9FSXlzw8qI,97637
|
|
51
51
|
reflex/components/dynamic.py,sha256=M3Waonox1lMCs9db_0iz4VtmBLuETpzZvvJ8m4iNAhE,7384
|
|
52
|
-
reflex/components/field.py,sha256=
|
|
52
|
+
reflex/components/field.py,sha256=9GiK8_nnVE4k6fCOfMycz0IaxK2bzNf_JrspPnHBqcY,5851
|
|
53
53
|
reflex/components/literals.py,sha256=hogLnwTJxFJODIvqihg-GD9kFZVsEBDoYzaRit56Nuk,501
|
|
54
|
-
reflex/components/props.py,sha256=
|
|
54
|
+
reflex/components/props.py,sha256=NrDGIBmBJZID4-m_mtVLUpKUdVUC2_oZz7vNlJ0bxGs,14972
|
|
55
55
|
reflex/components/base/__init__.py,sha256=6DzVn2oVZqmsXYq3r9AN8Q40R0NAsyRpSyVzBDZndz0,690
|
|
56
56
|
reflex/components/base/__init__.pyi,sha256=CoM0dGGkZSKLNHe6KBS4Zgc6sRpRGM5dZ_EuVmZ2qkA,883
|
|
57
57
|
reflex/components/base/app_wrap.py,sha256=5K_myvYvHPeAJbm3BdEX17tKvdNEj6SV9RYahbIQBAQ,514
|
|
@@ -95,15 +95,15 @@ reflex/components/core/match.py,sha256=xBB9vtWgVlotPHq6ssng8lzxwXDDQLp9k6Ew5RPPd
|
|
|
95
95
|
reflex/components/core/responsive.py,sha256=ACZdtJ4a4F8B3dm1k8h6J2_UJx0Z5LDB7XHQ2ty4wAc,1911
|
|
96
96
|
reflex/components/core/sticky.py,sha256=2B3TxrwG2Rtp_lv1VkMOIF2bqSiT7qYGbqbiZiMKxKY,3856
|
|
97
97
|
reflex/components/core/sticky.pyi,sha256=5D-yT0LYs0ewOlUlInU7KCpuz49yKK7dirysUs1C2VI,32908
|
|
98
|
-
reflex/components/core/upload.py,sha256=
|
|
98
|
+
reflex/components/core/upload.py,sha256=OEjXq4O06YSoRlJvYs-hyFJgo7GzQJByO9RqPI1RUzc,13585
|
|
99
99
|
reflex/components/core/upload.pyi,sha256=UqfcPGUs8xmnKHKuvqYV7CtOXeF_D1s9ooRe49w6C3E,15757
|
|
100
100
|
reflex/components/core/window_events.py,sha256=opbuO20zVxt252kQLk49V7cltb_Um2oh7iePeGNJ538,3355
|
|
101
101
|
reflex/components/core/window_events.pyi,sha256=aTkBiAy-e9LqkQm6_apRsXXfJRdawA11cE1tQQSIy3c,3206
|
|
102
102
|
reflex/components/core/layout/__init__.py,sha256=znldZaj_NGt8qCZDG70GMwjMTskcvCf_2N_EjCAHwdc,30
|
|
103
103
|
reflex/components/datadisplay/__init__.py,sha256=L8pWWKNHWdUD2fbZRoEKjd_8c_hpDdGYO463hwkoIi4,438
|
|
104
104
|
reflex/components/datadisplay/__init__.pyi,sha256=H3LZkWdrw3RTv_csaIT8qoClgAJTonlGZ5ZMeGMV0Bs,551
|
|
105
|
-
reflex/components/datadisplay/code.py,sha256
|
|
106
|
-
reflex/components/datadisplay/code.pyi,sha256
|
|
105
|
+
reflex/components/datadisplay/code.py,sha256=DQjferNi6QD2tNZdA28mMRu5KhqejAePxmD23vpcl9Y,12605
|
|
106
|
+
reflex/components/datadisplay/code.pyi,sha256=QCWqxWCsbFqS4CcfgN5P1u12JU7sBcUEEjekZnWSDeU,41375
|
|
107
107
|
reflex/components/datadisplay/dataeditor.py,sha256=cGwAKPYknoHMwVhBowHKFtG2Nxr5q-8hIptnf98U7x0,13574
|
|
108
108
|
reflex/components/datadisplay/dataeditor.pyi,sha256=eDI6w6ZrJRXQsThXu3vS-dfI-aKPMntLN5RmGkJOYCQ,12511
|
|
109
109
|
reflex/components/datadisplay/logo.py,sha256=xvg5TRVRSi2IKn7Kg4oYzWcaFMHfXxUaCp0cQmuKSn0,1993
|
|
@@ -139,8 +139,8 @@ reflex/components/gridjs/__init__.py,sha256=xJwDm1AZ70L5-t9LLqZwGUtDpijbf1KuMYDT
|
|
|
139
139
|
reflex/components/gridjs/datatable.py,sha256=7JKrRw1zkpFB0_wwoaIhrVrldsm7-dyi3PASgqLq8Hc,4224
|
|
140
140
|
reflex/components/gridjs/datatable.pyi,sha256=kFgv82vCgfdWZaUq4bZ73G8X3mkw6ecvSRkZ9G9-28E,5185
|
|
141
141
|
reflex/components/lucide/__init__.py,sha256=EggTK2MuQKQeOBLKW-mF0VaDK9zdWBImu1HO2dvHZbE,73
|
|
142
|
-
reflex/components/lucide/icon.py,sha256=
|
|
143
|
-
reflex/components/lucide/icon.pyi,sha256=
|
|
142
|
+
reflex/components/lucide/icon.py,sha256=GYF1VPrKjXU8RQxBe0CZaM209Br6uw1Z2sc79bvdj3U,35340
|
|
143
|
+
reflex/components/lucide/icon.pyi,sha256=MjWdRIf7t5hcWoUaxor5Lzh4yuWcES75cEUjLOXvmP8,38134
|
|
144
144
|
reflex/components/markdown/__init__.py,sha256=Dfl1At5uYoY7H4ufZU_RY2KOGQDLtj75dsZ2BTqqAns,87
|
|
145
145
|
reflex/components/markdown/markdown.py,sha256=kzvO2VnfCbxV7AcIMBJbxLtAlQ6U5T_QB_JTh8l-HJ4,15450
|
|
146
146
|
reflex/components/markdown/markdown.pyi,sha256=oOlXZItHB0TPWsFz1Qjvr3KzG8sssthBp40UO_KkRIA,4322
|
|
@@ -299,7 +299,7 @@ reflex/components/recharts/general.py,sha256=DuPDfccUWWehc40ji7_JSYHX_AoJyGn_-4y
|
|
|
299
299
|
reflex/components/recharts/general.pyi,sha256=e77vGL8lo-t1jI79h0O12qSK5e9wbjerPslCxQQgSBw,23462
|
|
300
300
|
reflex/components/recharts/polar.py,sha256=zocHpwWQ0lbg4BTnEBwQ6J9SSJsOYRwZGf9UPzxoNKs,15682
|
|
301
301
|
reflex/components/recharts/polar.pyi,sha256=8ShEcGK9KJyu0FN6KPys1kgAYrzOZ6wtiRuytHJ--38,26937
|
|
302
|
-
reflex/components/recharts/recharts.py,sha256=
|
|
302
|
+
reflex/components/recharts/recharts.py,sha256=rAboy3XFOeSWJK-T4UMeiDBpjxKr8mZl_rRu01_-wWM,3221
|
|
303
303
|
reflex/components/recharts/recharts.pyi,sha256=9j8cVSMqyBkkOBBrx9pzDpP1clnbM9kD0TTViTUGDYc,7084
|
|
304
304
|
reflex/components/sonner/__init__.py,sha256=L_mdRIy7-ccRGSz5VK6J8O-c-e-D1p9xWw29_ErrvGg,68
|
|
305
305
|
reflex/components/sonner/toast.py,sha256=sJ9E60VaMBwoev4aBrKr42ygN7e0jajNTooa5o5wYPQ,12505
|
|
@@ -317,9 +317,9 @@ reflex/constants/compiler.py,sha256=1FXPYQNotaSrTwWcOspA1gCVmEdoiWkNMbbrz_qU0YU,
|
|
|
317
317
|
reflex/constants/config.py,sha256=8OIjiBdZZJrRVHsNBheMwopE9AwBFFzau0SXqXKcrPg,1715
|
|
318
318
|
reflex/constants/custom_components.py,sha256=joJt4CEt1yKy7wsBH6vYo7_QRW0O_fWXrrTf0VY2q14,1317
|
|
319
319
|
reflex/constants/event.py,sha256=tgoynWQi2L0_Kqc3XhXo7XXL76A-OKhJGHRrNjm7gFw,2885
|
|
320
|
-
reflex/constants/installer.py,sha256=
|
|
320
|
+
reflex/constants/installer.py,sha256=VC20iXTYue0GXqwlJIAwDuFrNM-eSzhHs3CsM_KQMwA,4191
|
|
321
321
|
reflex/constants/route.py,sha256=UBjqaAOxiUxlDZCSY4O2JJChKvA4MZrhUU0E5rNvKbM,2682
|
|
322
|
-
reflex/constants/state.py,sha256=
|
|
322
|
+
reflex/constants/state.py,sha256=VrEeYxXfE9ss8RmOHIXD4T6EGsV9PDqbtMCQMmZxW3I,383
|
|
323
323
|
reflex/constants/utils.py,sha256=e1ChEvbHfmE_V2UJvCSUhD_qTVAIhEGPpRJSqdSd6PA,780
|
|
324
324
|
reflex/custom_components/__init__.py,sha256=R4zsvOi4dfPmHc18KEphohXnQFBPnUCb50cMR5hSLDE,36
|
|
325
325
|
reflex/custom_components/custom_components.py,sha256=QfSEiPQY7Z7ZdYDsxJOgtD7EZopIdGw2ERpt_dMcPCs,25500
|
|
@@ -342,7 +342,7 @@ reflex/plugins/base.py,sha256=5BgzCM7boj9kJ6FGzVzVlgQk-crJuVmOLCl1PXvv4-E,3372
|
|
|
342
342
|
reflex/plugins/shared_tailwind.py,sha256=Zx1TDAjpXGI5aEjpB8NWS__xYRSNu_SEMTB6Z3ub120,7305
|
|
343
343
|
reflex/plugins/sitemap.py,sha256=X_CtH5B1w3CZno-gdPj1rp63WjOuNjFnX4B3fx_-VFQ,6135
|
|
344
344
|
reflex/plugins/tailwind_v3.py,sha256=jCEZ5UYdr706Mw48L-WSHOUB6O55o1C3uG6AMwXqZoI,4810
|
|
345
|
-
reflex/plugins/tailwind_v4.py,sha256=
|
|
345
|
+
reflex/plugins/tailwind_v4.py,sha256=fcNaFtikSIu1LhF94DcBs1xR2CjbQRB5o1_KYeThUF0,5230
|
|
346
346
|
reflex/utils/__init__.py,sha256=y-AHKiRQAhk2oAkvn7W8cRVTZVK625ff8tTwvZtO7S4,24
|
|
347
347
|
reflex/utils/build.py,sha256=GLT2ycqgAe1cw__MFbfdlYrkzcTnY1oJ8cAv80jEcnQ,8641
|
|
348
348
|
reflex/utils/codespaces.py,sha256=kEQ-j-jclTukFpXDlYgNp95kYMGDrQmP3VNEoYGZ1u4,3052
|
|
@@ -381,8 +381,8 @@ reflex/vars/number.py,sha256=tO7pnvFaBsedq1HWT4skytnSqHWMluGEhUbjAUMx8XQ,28190
|
|
|
381
381
|
reflex/vars/object.py,sha256=YblDxQYMajR19a7qjavXcM7-9A6MweAH1giw5fjPci4,17349
|
|
382
382
|
reflex/vars/sequence.py,sha256=1kBrqihspyjyQ1XDqFPC8OpVGtZs_EVkOdIKBro5ilA,55249
|
|
383
383
|
scripts/hatch_build.py,sha256=-4pxcLSFmirmujGpQX9UUxjhIC03tQ_fIQwVbHu9kc0,1861
|
|
384
|
-
reflex-0.8.
|
|
385
|
-
reflex-0.8.
|
|
386
|
-
reflex-0.8.
|
|
387
|
-
reflex-0.8.
|
|
388
|
-
reflex-0.8.
|
|
384
|
+
reflex-0.8.11.dist-info/METADATA,sha256=GmzTfJHUNWTweW9Rn_wvSW48OaRJ92p4pRd6IpLjL6k,12334
|
|
385
|
+
reflex-0.8.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
386
|
+
reflex-0.8.11.dist-info/entry_points.txt,sha256=Rxt4dXc7MLBNt5CSHTehVPuSe9Xqow4HLX55nD9tQQ0,45
|
|
387
|
+
reflex-0.8.11.dist-info/licenses/LICENSE,sha256=dw3zLrp9f5ObD7kqS32vWfhcImfO52PMmRqvtxq_YEE,11358
|
|
388
|
+
reflex-0.8.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|