reflex 0.7.6a0__py3-none-any.whl → 0.7.6.post1__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 +4 -0
- reflex/components/el/elements/forms.py +6 -0
- reflex/components/el/elements/forms.pyi +1132 -4
- reflex/components/recharts/__init__.py +1 -0
- reflex/components/recharts/__init__.pyi +1 -0
- reflex/components/recharts/general.py +1 -1
- reflex/components/recharts/general.pyi +1 -1
- reflex/state.py +27 -6
- reflex/utils/decorator.py +21 -0
- reflex/utils/export.py +2 -2
- reflex/utils/pyi_generator.py +13 -7
- reflex/utils/telemetry.py +82 -21
- reflex/utils/types.py +12 -0
- {reflex-0.7.6a0.dist-info → reflex-0.7.6.post1.dist-info}/METADATA +1 -1
- {reflex-0.7.6a0.dist-info → reflex-0.7.6.post1.dist-info}/RECORD +18 -18
- {reflex-0.7.6a0.dist-info → reflex-0.7.6.post1.dist-info}/WHEEL +0 -0
- {reflex-0.7.6a0.dist-info → reflex-0.7.6.post1.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.6a0.dist-info → reflex-0.7.6.post1.dist-info}/licenses/LICENSE +0 -0
reflex/app.py
CHANGED
|
@@ -293,6 +293,7 @@ class UnevaluatedPage:
|
|
|
293
293
|
image: str
|
|
294
294
|
on_load: EventType[()] | None
|
|
295
295
|
meta: list[dict[str, str]]
|
|
296
|
+
context: dict[str, Any] | None
|
|
296
297
|
|
|
297
298
|
|
|
298
299
|
@dataclasses.dataclass()
|
|
@@ -681,6 +682,7 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
681
682
|
image: str = constants.DefaultPage.IMAGE,
|
|
682
683
|
on_load: EventType[()] | None = None,
|
|
683
684
|
meta: list[dict[str, str]] = constants.DefaultPage.META_LIST,
|
|
685
|
+
context: dict[str, Any] | None = None,
|
|
684
686
|
):
|
|
685
687
|
"""Add a page to the app.
|
|
686
688
|
|
|
@@ -695,6 +697,7 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
695
697
|
image: The image to display on the page.
|
|
696
698
|
on_load: The event handler(s) that will be called each time the page load.
|
|
697
699
|
meta: The metadata of the page.
|
|
700
|
+
context: Values passed to page for custom page-specific logic.
|
|
698
701
|
|
|
699
702
|
Raises:
|
|
700
703
|
PageValueError: When the component is not set for a non-404 page.
|
|
@@ -762,6 +765,7 @@ class App(MiddlewareMixin, LifespanMixin):
|
|
|
762
765
|
image=image,
|
|
763
766
|
on_load=on_load,
|
|
764
767
|
meta=meta,
|
|
768
|
+
context=context,
|
|
765
769
|
)
|
|
766
770
|
|
|
767
771
|
def _compile_page(self, route: str, save_page: bool = True):
|
|
@@ -572,6 +572,12 @@ class Select(BaseHTML):
|
|
|
572
572
|
# Fired when the select value changes
|
|
573
573
|
on_change: EventHandler[input_event]
|
|
574
574
|
|
|
575
|
+
# The controlled value of the select, read only unless used with on_change
|
|
576
|
+
value: Var[str]
|
|
577
|
+
|
|
578
|
+
# The default value of the select when initially rendered
|
|
579
|
+
default_value: Var[str]
|
|
580
|
+
|
|
575
581
|
|
|
576
582
|
AUTO_HEIGHT_JS = """
|
|
577
583
|
const autoHeightOnInput = (e, is_enabled) => {
|