reflex 0.7.14a2__py3-none-any.whl → 0.7.14a4__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 +2 -1
- reflex/assets.py +1 -1
- reflex/compiler/compiler.py +2 -1
- reflex/components/base/bare.py +1 -1
- reflex/components/component.py +8 -0
- reflex/components/core/banner.py +1 -1
- reflex/components/core/upload.py +1 -1
- reflex/config.py +16 -602
- reflex/constants/base.py +3 -3
- reflex/constants/installer.py +1 -1
- reflex/environment.py +606 -0
- reflex/istate/manager.py +2 -1
- reflex/model.py +2 -1
- reflex/reflex.py +2 -1
- reflex/state.py +1 -1
- reflex/testing.py +3 -1
- reflex/utils/console.py +61 -0
- reflex/utils/exec.py +104 -28
- reflex/utils/export.py +2 -1
- reflex/utils/net.py +2 -2
- reflex/utils/path_ops.py +2 -1
- reflex/utils/prerequisites.py +2 -1
- reflex/utils/processes.py +1 -1
- reflex/utils/registry.py +1 -1
- reflex/utils/telemetry.py +16 -1
- {reflex-0.7.14a2.dist-info → reflex-0.7.14a4.dist-info}/METADATA +1 -1
- {reflex-0.7.14a2.dist-info → reflex-0.7.14a4.dist-info}/RECORD +30 -29
- {reflex-0.7.14a2.dist-info → reflex-0.7.14a4.dist-info}/WHEEL +0 -0
- {reflex-0.7.14a2.dist-info → reflex-0.7.14a4.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.14a2.dist-info → reflex-0.7.14a4.dist-info}/licenses/LICENSE +0 -0
reflex/app.py
CHANGED
|
@@ -68,7 +68,8 @@ from reflex.components.core.sticky import sticky
|
|
|
68
68
|
from reflex.components.core.upload import Upload, get_upload_dir
|
|
69
69
|
from reflex.components.radix import themes
|
|
70
70
|
from reflex.components.sonner.toast import toast
|
|
71
|
-
from reflex.config import
|
|
71
|
+
from reflex.config import get_config
|
|
72
|
+
from reflex.environment import ExecutorType, environment
|
|
72
73
|
from reflex.event import (
|
|
73
74
|
_EVENT_FIELDS,
|
|
74
75
|
Event,
|
reflex/assets.py
CHANGED
reflex/compiler/compiler.py
CHANGED
|
@@ -19,8 +19,9 @@ from reflex.components.component import (
|
|
|
19
19
|
CustomComponent,
|
|
20
20
|
StatefulComponent,
|
|
21
21
|
)
|
|
22
|
-
from reflex.config import
|
|
22
|
+
from reflex.config import get_config
|
|
23
23
|
from reflex.constants.compiler import PageNames
|
|
24
|
+
from reflex.environment import environment
|
|
24
25
|
from reflex.state import BaseState
|
|
25
26
|
from reflex.style import SYSTEM_COLOR_MODE
|
|
26
27
|
from reflex.utils import console, path_ops
|
reflex/components/base/bare.py
CHANGED
|
@@ -8,7 +8,7 @@ from typing import Any
|
|
|
8
8
|
from reflex.components.component import BaseComponent, Component, ComponentStyle
|
|
9
9
|
from reflex.components.tags import Tag
|
|
10
10
|
from reflex.components.tags.tagless import Tagless
|
|
11
|
-
from reflex.
|
|
11
|
+
from reflex.environment import PerformanceMode, environment
|
|
12
12
|
from reflex.utils import console
|
|
13
13
|
from reflex.utils.decorator import once
|
|
14
14
|
from reflex.utils.imports import ParsedImportDict
|
reflex/components/component.py
CHANGED
|
@@ -2206,6 +2206,14 @@ class CustomComponent(Component):
|
|
|
2206
2206
|
component._add_style_recursive(style)
|
|
2207
2207
|
return component
|
|
2208
2208
|
|
|
2209
|
+
def _get_all_app_wrap_components(self) -> dict[tuple[int, str], Component]:
|
|
2210
|
+
"""Get the app wrap components for the custom component.
|
|
2211
|
+
|
|
2212
|
+
Returns:
|
|
2213
|
+
The app wrap components.
|
|
2214
|
+
"""
|
|
2215
|
+
return self.get_component()._get_all_app_wrap_components()
|
|
2216
|
+
|
|
2209
2217
|
|
|
2210
2218
|
CUSTOM_COMPONENTS: dict[str, CustomComponent] = {}
|
|
2211
2219
|
|
reflex/components/core/banner.py
CHANGED
|
@@ -16,9 +16,9 @@ from reflex.components.radix.themes.components.dialog import (
|
|
|
16
16
|
from reflex.components.radix.themes.layout.flex import Flex
|
|
17
17
|
from reflex.components.radix.themes.typography.text import Text
|
|
18
18
|
from reflex.components.sonner.toast import ToastProps, toast_ref
|
|
19
|
-
from reflex.config import environment
|
|
20
19
|
from reflex.constants import Dirs, Hooks, Imports
|
|
21
20
|
from reflex.constants.compiler import CompileVars
|
|
21
|
+
from reflex.environment import environment
|
|
22
22
|
from reflex.utils.imports import ImportVar
|
|
23
23
|
from reflex.vars import VarData
|
|
24
24
|
from reflex.vars.base import LiteralVar, Var
|
reflex/components/core/upload.py
CHANGED
|
@@ -16,9 +16,9 @@ from reflex.components.component import (
|
|
|
16
16
|
from reflex.components.core.cond import cond
|
|
17
17
|
from reflex.components.el.elements.forms import Input
|
|
18
18
|
from reflex.components.radix.themes.layout.box import Box
|
|
19
|
-
from reflex.config import environment
|
|
20
19
|
from reflex.constants import Dirs
|
|
21
20
|
from reflex.constants.compiler import Hooks, Imports
|
|
21
|
+
from reflex.environment import environment
|
|
22
22
|
from reflex.event import (
|
|
23
23
|
CallableEventSpec,
|
|
24
24
|
EventChain,
|