
* Improve import times * add lazy loading to rx.el * add lazy loading to reflex core components * minor refactor * Get imports working with reflex web * get imports to work with all reflex examples * refactor to define imports only in the root. * lint * deadcode remove * update poetry deps * unit tests fix * app_harness fix * app_harness fix * pyi file generate * pyi file generate * sort pyi order * fix pyi * fix docker ci * rework pyi-generator * generate pyi for __init__ files * test pyright * test pyright ci * partial pyright fix * more pyright fix * pyright fix * fix pyi_generator * add rx.serializer and others * add future annotation import which fixes container CI, then also load recharts lazily * add new pyi files * pyright fix * minor fixes for reflex-web and flexdown * forward references for py38 * ruff fix * pyi fix * unit tests fix * reduce coverage to 68% * reduce coverage to 67% * reduce coverage to 66%as a workaround to coverage's rounding issue * reduce coverage to 66%as a workaround to coverage's rounding issue * exclude lazy_loader dependency review checks. * its lazy-loader * Add docstrings and regenerate pyi files * add link * address Pr comments * CI fix * partially address PR comments. * edit docstrings and fix integration tests * fix typo in docstring * pyi fix
36 lines
637 B
Python
36 lines
637 B
Python
"""Import all the components."""
|
|
from __future__ import annotations
|
|
|
|
from reflex.utils import lazy_loader
|
|
|
|
_SUBMODULES: set[str] = {
|
|
"lucide",
|
|
"core",
|
|
"datadisplay",
|
|
"gridjs",
|
|
"markdown",
|
|
"moment",
|
|
"plotly",
|
|
"radix",
|
|
"react_player",
|
|
"sonner",
|
|
"suneditor",
|
|
"chakra",
|
|
"el",
|
|
"base",
|
|
"recharts",
|
|
}
|
|
|
|
_SUBMOD_ATTRS: dict[str, list[str]] = {
|
|
"component": [
|
|
"Component",
|
|
"NoSSRComponent",
|
|
],
|
|
"next": ["NextLink", "next_link"],
|
|
}
|
|
__getattr__, __dir__, __all__ = lazy_loader.attach(
|
|
__name__,
|
|
submodules=_SUBMODULES,
|
|
submod_attrs=_SUBMOD_ATTRS,
|
|
)
|