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 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 ExecutorType, environment, get_config
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
@@ -4,7 +4,7 @@ import inspect
4
4
  from pathlib import Path
5
5
 
6
6
  from reflex import constants
7
- from reflex.config import EnvironmentVariables
7
+ from reflex.environment import EnvironmentVariables
8
8
 
9
9
 
10
10
  def asset(
@@ -19,8 +19,9 @@ from reflex.components.component import (
19
19
  CustomComponent,
20
20
  StatefulComponent,
21
21
  )
22
- from reflex.config import environment, get_config
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
@@ -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.config import PerformanceMode, environment
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
@@ -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
 
@@ -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
@@ -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,