|
@@ -3,17 +3,18 @@
|
|
# ------------------- DO NOT EDIT ----------------------
|
|
# ------------------- DO NOT EDIT ----------------------
|
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
# ------------------------------------------------------
|
|
# ------------------------------------------------------
|
|
-from typing import Any, Dict, List, Optional, Union, overload
|
|
|
|
|
|
+from typing import Any, Dict, List, Optional, Tuple, Union, overload
|
|
|
|
|
|
from reflex.components.component import Component
|
|
from reflex.components.component import Component
|
|
from reflex.event import EventType
|
|
from reflex.event import EventType
|
|
from reflex.style import Style
|
|
from reflex.style import Style
|
|
-from reflex.utils.imports import ImportVar
|
|
|
|
from reflex.vars.base import Var
|
|
from reflex.vars.base import Var
|
|
|
|
|
|
|
|
+def on_error_spec(
|
|
|
|
+ error: Var, info: Var[Dict[str, str]]
|
|
|
|
+) -> Tuple[Var[str], Var[str]]: ...
|
|
|
|
+
|
|
class ErrorBoundary(Component):
|
|
class ErrorBoundary(Component):
|
|
- def add_imports(self) -> dict[str, list[ImportVar]]: ...
|
|
|
|
- def add_hooks(self) -> List[str | Var]: ...
|
|
|
|
def add_custom_code(self) -> List[str]: ...
|
|
def add_custom_code(self) -> List[str]: ...
|
|
@overload
|
|
@overload
|
|
@classmethod
|
|
@classmethod
|
|
@@ -31,7 +32,7 @@ class ErrorBoundary(Component):
|
|
on_click: Optional[EventType[[]]] = None,
|
|
on_click: Optional[EventType[[]]] = None,
|
|
on_context_menu: Optional[EventType[[]]] = None,
|
|
on_context_menu: Optional[EventType[[]]] = None,
|
|
on_double_click: Optional[EventType[[]]] = None,
|
|
on_double_click: Optional[EventType[[]]] = None,
|
|
- on_error: Optional[EventType] = None,
|
|
|
|
|
|
+ on_error: Optional[EventType[str, str]] = None,
|
|
on_focus: Optional[EventType[[]]] = None,
|
|
on_focus: Optional[EventType[[]]] = None,
|
|
on_mount: Optional[EventType[[]]] = None,
|
|
on_mount: Optional[EventType[[]]] = None,
|
|
on_mouse_down: Optional[EventType[[]]] = None,
|
|
on_mouse_down: Optional[EventType[[]]] = None,
|
|
@@ -45,7 +46,7 @@ class ErrorBoundary(Component):
|
|
on_unmount: Optional[EventType[[]]] = None,
|
|
on_unmount: Optional[EventType[[]]] = None,
|
|
**props,
|
|
**props,
|
|
) -> "ErrorBoundary":
|
|
) -> "ErrorBoundary":
|
|
- """Create the component.
|
|
|
|
|
|
+ """Create an ErrorBoundary component.
|
|
|
|
|
|
Args:
|
|
Args:
|
|
*children: The children of the component.
|
|
*children: The children of the component.
|
|
@@ -59,7 +60,7 @@ class ErrorBoundary(Component):
|
|
**props: The props of the component.
|
|
**props: The props of the component.
|
|
|
|
|
|
Returns:
|
|
Returns:
|
|
- The component.
|
|
|
|
|
|
+ The ErrorBoundary component.
|
|
"""
|
|
"""
|
|
...
|
|
...
|
|
|
|
|