reflex 0.7.6a1__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.pyi +1128 -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/export.py +2 -2
- {reflex-0.7.6a1.dist-info → reflex-0.7.6.post1.dist-info}/METADATA +1 -1
- {reflex-0.7.6a1.dist-info → reflex-0.7.6.post1.dist-info}/RECORD +13 -13
- {reflex-0.7.6a1.dist-info → reflex-0.7.6.post1.dist-info}/WHEEL +0 -0
- {reflex-0.7.6a1.dist-info → reflex-0.7.6.post1.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.6a1.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):
|