reflex 0.7.0a5__py3-none-any.whl → 0.7.1a2__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.

Files changed (126) hide show
  1. reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +3 -1
  2. reflex/__init__.py +1 -0
  3. reflex/__init__.pyi +1 -0
  4. reflex/app.py +255 -81
  5. reflex/base.py +4 -10
  6. reflex/compiler/compiler.py +46 -12
  7. reflex/compiler/templates.py +1 -2
  8. reflex/compiler/utils.py +23 -14
  9. reflex/components/base/bare.py +109 -16
  10. reflex/components/component.py +179 -124
  11. reflex/components/core/__init__.py +1 -0
  12. reflex/components/core/__init__.pyi +1 -0
  13. reflex/components/core/auto_scroll.py +111 -0
  14. reflex/components/core/auto_scroll.pyi +284 -0
  15. reflex/components/core/banner.py +40 -9
  16. reflex/components/core/banner.pyi +400 -87
  17. reflex/components/core/breakpoints.py +1 -1
  18. reflex/components/core/cond.py +0 -8
  19. reflex/components/core/foreach.py +12 -2
  20. reflex/components/core/html.pyi +200 -19
  21. reflex/components/core/match.py +4 -4
  22. reflex/components/core/sticky.pyi +874 -90
  23. reflex/components/core/upload.py +3 -5
  24. reflex/components/core/upload.pyi +2 -4
  25. reflex/components/datadisplay/code.py +36 -10
  26. reflex/components/datadisplay/code.pyi +1 -1
  27. reflex/components/datadisplay/dataeditor.py +1 -3
  28. reflex/components/datadisplay/dataeditor.pyi +1 -3
  29. reflex/components/el/elements/base.py +95 -17
  30. reflex/components/el/elements/base.pyi +278 -19
  31. reflex/components/el/elements/forms.py +124 -102
  32. reflex/components/el/elements/forms.pyi +2787 -365
  33. reflex/components/el/elements/inline.py +24 -15
  34. reflex/components/el/elements/inline.pyi +5655 -546
  35. reflex/components/el/elements/media.py +79 -95
  36. reflex/components/el/elements/media.pyi +5167 -565
  37. reflex/components/el/elements/metadata.py +19 -17
  38. reflex/components/el/elements/metadata.pyi +841 -89
  39. reflex/components/el/elements/other.py +3 -5
  40. reflex/components/el/elements/other.pyi +1404 -137
  41. reflex/components/el/elements/scripts.py +10 -13
  42. reflex/components/el/elements/scripts.pyi +634 -65
  43. reflex/components/el/elements/sectioning.pyi +3001 -286
  44. reflex/components/el/elements/tables.py +14 -35
  45. reflex/components/el/elements/tables.pyi +2029 -218
  46. reflex/components/el/elements/typography.py +10 -13
  47. reflex/components/el/elements/typography.pyi +3014 -297
  48. reflex/components/lucide/icon.py +22 -6
  49. reflex/components/markdown/markdown.py +30 -10
  50. reflex/components/markdown/markdown.pyi +3 -2
  51. reflex/components/plotly/plotly.py +1 -3
  52. reflex/components/plotly/plotly.pyi +1 -3
  53. reflex/components/radix/primitives/form.pyi +624 -93
  54. reflex/components/radix/themes/color_mode.py +1 -1
  55. reflex/components/radix/themes/color_mode.pyi +213 -31
  56. reflex/components/radix/themes/components/alert_dialog.pyi +199 -18
  57. reflex/components/radix/themes/components/badge.pyi +199 -18
  58. reflex/components/radix/themes/components/button.pyi +213 -31
  59. reflex/components/radix/themes/components/callout.pyi +1000 -95
  60. reflex/components/radix/themes/components/card.pyi +199 -18
  61. reflex/components/radix/themes/components/context_menu.py +79 -1
  62. reflex/components/radix/themes/components/context_menu.pyi +320 -1
  63. reflex/components/radix/themes/components/dialog.pyi +199 -18
  64. reflex/components/radix/themes/components/hover_card.pyi +199 -18
  65. reflex/components/radix/themes/components/icon_button.pyi +213 -31
  66. reflex/components/radix/themes/components/inset.pyi +199 -18
  67. reflex/components/radix/themes/components/popover.pyi +199 -18
  68. reflex/components/radix/themes/components/table.pyi +1437 -154
  69. reflex/components/radix/themes/components/text_area.py +2 -2
  70. reflex/components/radix/themes/components/text_area.pyi +201 -20
  71. reflex/components/radix/themes/components/text_field.py +1 -1
  72. reflex/components/radix/themes/components/text_field.pyi +444 -88
  73. reflex/components/radix/themes/layout/box.pyi +200 -19
  74. reflex/components/radix/themes/layout/center.pyi +199 -18
  75. reflex/components/radix/themes/layout/container.pyi +199 -18
  76. reflex/components/radix/themes/layout/flex.pyi +199 -18
  77. reflex/components/radix/themes/layout/grid.pyi +199 -18
  78. reflex/components/radix/themes/layout/list.pyi +604 -57
  79. reflex/components/radix/themes/layout/section.pyi +199 -18
  80. reflex/components/radix/themes/layout/spacer.pyi +199 -18
  81. reflex/components/radix/themes/layout/stack.pyi +597 -54
  82. reflex/components/radix/themes/typography/blockquote.pyi +200 -19
  83. reflex/components/radix/themes/typography/code.pyi +199 -18
  84. reflex/components/radix/themes/typography/heading.pyi +199 -18
  85. reflex/components/radix/themes/typography/link.pyi +238 -28
  86. reflex/components/radix/themes/typography/text.pyi +1394 -127
  87. reflex/components/react_player/react_player.py +1 -1
  88. reflex/components/react_player/react_player.pyi +1 -3
  89. reflex/components/sonner/toast.py +41 -12
  90. reflex/components/sonner/toast.pyi +20 -6
  91. reflex/components/tags/iter_tag.py +4 -0
  92. reflex/components/tags/tag.py +3 -3
  93. reflex/config.py +187 -28
  94. reflex/constants/__init__.py +2 -0
  95. reflex/constants/base.py +6 -0
  96. reflex/constants/compiler.py +9 -0
  97. reflex/constants/event.py +1 -0
  98. reflex/constants/installer.py +4 -5
  99. reflex/constants/utils.py +1 -3
  100. reflex/event.py +7 -16
  101. reflex/experimental/layout.pyi +597 -54
  102. reflex/py.typed +0 -0
  103. reflex/reflex.py +30 -41
  104. reflex/state.py +49 -44
  105. reflex/style.py +15 -22
  106. reflex/testing.py +2 -0
  107. reflex/utils/build.py +12 -0
  108. reflex/utils/console.py +4 -0
  109. reflex/utils/decorator.py +25 -0
  110. reflex/utils/exec.py +92 -34
  111. reflex/utils/format.py +35 -6
  112. reflex/utils/path_ops.py +16 -1
  113. reflex/utils/prerequisites.py +34 -8
  114. reflex/utils/processes.py +12 -13
  115. reflex/utils/serializers.py +20 -43
  116. reflex/utils/telemetry.py +4 -15
  117. reflex/utils/types.py +36 -66
  118. reflex/vars/base.py +53 -76
  119. reflex/vars/function.py +17 -5
  120. reflex/vars/number.py +1 -1
  121. reflex/vars/sequence.py +80 -4
  122. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/METADATA +4 -5
  123. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/RECORD +126 -122
  124. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/LICENSE +0 -0
  125. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/WHEEL +0 -0
  126. {reflex-0.7.0a5.dist-info → reflex-0.7.1a2.dist-info}/entry_points.txt +0 -0
reflex/constants/event.py CHANGED
@@ -12,6 +12,7 @@ class Endpoint(Enum):
12
12
  UPLOAD = "_upload"
13
13
  AUTH_CODESPACE = "auth-codespace"
14
14
  HEALTH = "_health"
15
+ ALL_ROUTES = "_all_routes"
15
16
 
16
17
  def __str__(self) -> str:
17
18
  """Get the string representation of the endpoint.
@@ -178,16 +178,15 @@ class PackageJson(SimpleNamespace):
178
178
  PATH = "package.json"
179
179
 
180
180
  DEPENDENCIES = {
181
- "@babel/standalone": "7.26.6",
182
181
  "@emotion/react": "11.14.0",
183
182
  "axios": "1.7.9",
184
183
  "json5": "2.2.3",
185
- "next": "15.1.6",
184
+ "next": "15.1.7",
186
185
  "next-sitemap": "4.2.3",
187
186
  "next-themes": "0.4.4",
188
- "react": "18.3.1",
189
- "react-dom": "18.3.1",
190
- "react-focus-lock": "2.13.5",
187
+ "react": "19.0.0",
188
+ "react-dom": "19.0.0",
189
+ "react-focus-lock": "2.13.6",
191
190
  "socket.io-client": "4.8.1",
192
191
  "universal-cookie": "7.2.2",
193
192
  }
reflex/constants/utils.py CHANGED
@@ -1,8 +1,6 @@
1
1
  """Utility functions for constants."""
2
2
 
3
- from typing import Any, Callable, Generic, Type
4
-
5
- from typing_extensions import TypeVar
3
+ from typing import Any, Callable, Generic, Type, TypeVar
6
4
 
7
5
  T = TypeVar("T")
8
6
  V = TypeVar("V")
reflex/event.py CHANGED
@@ -10,32 +10,28 @@ from base64 import b64encode
10
10
  from functools import partial
11
11
  from typing import (
12
12
  TYPE_CHECKING,
13
+ Annotated,
13
14
  Any,
14
15
  Callable,
15
16
  Dict,
16
17
  Generic,
17
18
  List,
18
19
  Optional,
20
+ Protocol,
19
21
  Sequence,
20
22
  Tuple,
21
23
  Type,
22
- Union,
23
- get_type_hints,
24
- overload,
25
- )
26
-
27
- from typing_extensions import (
28
- Protocol,
29
- Self,
30
- TypeAliasType,
31
24
  TypedDict,
32
25
  TypeVar,
33
- TypeVarTuple,
34
- Unpack,
26
+ Union,
35
27
  get_args,
36
28
  get_origin,
29
+ get_type_hints,
30
+ overload,
37
31
  )
38
32
 
33
+ from typing_extensions import Self, TypeAliasType, TypeVarTuple, Unpack
34
+
39
35
  from reflex import constants
40
36
  from reflex.constants.compiler import CompileVars, Hooks, Imports
41
37
  from reflex.constants.state import FRONTEND_EVENT_STATE
@@ -59,11 +55,6 @@ from reflex.vars.function import (
59
55
  )
60
56
  from reflex.vars.object import ObjectVar
61
57
 
62
- try:
63
- from typing import Annotated
64
- except ImportError:
65
- from typing_extensions import Annotated
66
-
67
58
 
68
59
  @dataclasses.dataclass(
69
60
  init=True,