reflex 0.7.14a1__py3-none-any.whl → 0.7.14a2__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.

@@ -2194,7 +2194,17 @@ class CustomComponent(Component):
2194
2194
  Returns:
2195
2195
  The code to render the component.
2196
2196
  """
2197
- return self.component_fn(*self.get_prop_vars())
2197
+ component = self.component_fn(*self.get_prop_vars())
2198
+
2199
+ try:
2200
+ from reflex.utils.prerequisites import get_and_validate_app
2201
+
2202
+ style = get_and_validate_app().app.style
2203
+ except Exception:
2204
+ style = {}
2205
+
2206
+ component._add_style_recursive(style)
2207
+ return component
2198
2208
 
2199
2209
 
2200
2210
  CUSTOM_COMPONENTS: dict[str, CustomComponent] = {}
@@ -384,7 +384,7 @@ class BaseInput(BaseHTML):
384
384
  required: Var[bool]
385
385
 
386
386
  # Specifies the visible width of a text control
387
- size: Var[int | float]
387
+ size: Var[str | int | float]
388
388
 
389
389
  # URL for image inputs
390
390
  src: Var[str]
@@ -504,22 +504,22 @@ class Meter(BaseHTML):
504
504
  form: Var[str]
505
505
 
506
506
  # High limit of range (above this is considered high value)
507
- high: Var[int | float]
507
+ high: Var[str | int | float]
508
508
 
509
509
  # Low limit of range (below this is considered low value)
510
- low: Var[int | float]
510
+ low: Var[str | int | float]
511
511
 
512
512
  # Maximum value of the range
513
- max: Var[int | float]
513
+ max: Var[str | int | float]
514
514
 
515
515
  # Minimum value of the range
516
- min: Var[int | float]
516
+ min: Var[str | int | float]
517
517
 
518
518
  # Optimum value in the range
519
- optimum: Var[int | float]
519
+ optimum: Var[str | int | float]
520
520
 
521
521
  # Current value of the meter
522
- value: Var[int | float]
522
+ value: Var[str | int | float]
523
523
 
524
524
 
525
525
  class Optgroup(BaseHTML):
@@ -666,7 +666,7 @@ class Textarea(BaseHTML):
666
666
  auto_height: Var[bool]
667
667
 
668
668
  # Visible width of the text control, in average character widths
669
- cols: Var[int]
669
+ cols: Var[str | int]
670
670
 
671
671
  # The default value of the textarea when initially rendered
672
672
  default_value: Var[str]
@@ -684,10 +684,10 @@ class Textarea(BaseHTML):
684
684
  form: Var[str]
685
685
 
686
686
  # Maximum number of characters allowed in the textarea
687
- max_length: Var[int]
687
+ max_length: Var[str | int]
688
688
 
689
689
  # Minimum number of characters required in the textarea
690
- min_length: Var[int]
690
+ min_length: Var[str | int]
691
691
 
692
692
  # Name of the textarea, used when submitting the form
693
693
  name: Var[str]
@@ -702,7 +702,7 @@ class Textarea(BaseHTML):
702
702
  required: Var[bool]
703
703
 
704
704
  # Visible number of lines in the text control
705
- rows: Var[int]
705
+ rows: Var[str | int]
706
706
 
707
707
  # The controlled value of the textarea, read only unless used with on_change
708
708
  value: Var[str]
@@ -927,7 +927,7 @@ class BaseInput(BaseHTML):
927
927
  placeholder: Var[str] | str | None = None,
928
928
  read_only: Var[bool] | bool | None = None,
929
929
  required: Var[bool] | bool | None = None,
930
- size: Var[float | int] | float | int | None = None,
930
+ size: Var[float | int | str] | float | int | str | None = None,
931
931
  src: Var[str] | str | None = None,
932
932
  step: Var[float | int | str] | float | int | str | None = None,
933
933
  type: Literal[
@@ -1290,7 +1290,7 @@ class CheckboxInput(BaseInput):
1290
1290
  placeholder: Var[str] | str | None = None,
1291
1291
  read_only: Var[bool] | bool | None = None,
1292
1292
  required: Var[bool] | bool | None = None,
1293
- size: Var[float | int] | float | int | None = None,
1293
+ size: Var[float | int | str] | float | int | str | None = None,
1294
1294
  src: Var[str] | str | None = None,
1295
1295
  step: Var[float | int | str] | float | int | str | None = None,
1296
1296
  type: Literal[
@@ -1657,7 +1657,7 @@ class ValueNumberInput(BaseInput):
1657
1657
  placeholder: Var[str] | str | None = None,
1658
1658
  read_only: Var[bool] | bool | None = None,
1659
1659
  required: Var[bool] | bool | None = None,
1660
- size: Var[float | int] | float | int | None = None,
1660
+ size: Var[float | int | str] | float | int | str | None = None,
1661
1661
  src: Var[str] | str | None = None,
1662
1662
  step: Var[float | int | str] | float | int | str | None = None,
1663
1663
  type: Literal[
@@ -2024,7 +2024,7 @@ class Input(BaseInput):
2024
2024
  placeholder: Var[str] | str | None = None,
2025
2025
  read_only: Var[bool] | bool | None = None,
2026
2026
  required: Var[bool] | bool | None = None,
2027
- size: Var[float | int] | float | int | None = None,
2027
+ size: Var[float | int | str] | float | int | str | None = None,
2028
2028
  src: Var[str] | str | None = None,
2029
2029
  step: Var[float | int | str] | float | int | str | None = None,
2030
2030
  type: Literal[
@@ -2858,12 +2858,12 @@ class Meter(BaseHTML):
2858
2858
  cls,
2859
2859
  *children,
2860
2860
  form: Var[str] | str | None = None,
2861
- high: Var[float | int] | float | int | None = None,
2862
- low: Var[float | int] | float | int | None = None,
2863
- max: Var[float | int] | float | int | None = None,
2864
- min: Var[float | int] | float | int | None = None,
2865
- optimum: Var[float | int] | float | int | None = None,
2866
- value: Var[float | int] | float | int | None = None,
2861
+ high: Var[float | int | str] | float | int | str | None = None,
2862
+ low: Var[float | int | str] | float | int | str | None = None,
2863
+ max: Var[float | int | str] | float | int | str | None = None,
2864
+ min: Var[float | int | str] | float | int | str | None = None,
2865
+ optimum: Var[float | int | str] | float | int | str | None = None,
2866
+ value: Var[float | int | str] | float | int | str | None = None,
2867
2867
  access_key: Var[str] | str | None = None,
2868
2868
  auto_capitalize: Literal[
2869
2869
  "characters", "none", "off", "on", "sentences", "words"
@@ -4393,19 +4393,19 @@ class Textarea(BaseHTML):
4393
4393
  auto_complete: Var[str] | str | None = None,
4394
4394
  auto_focus: Var[bool] | bool | None = None,
4395
4395
  auto_height: Var[bool] | bool | None = None,
4396
- cols: Var[int] | int | None = None,
4396
+ cols: Var[int | str] | int | str | None = None,
4397
4397
  default_value: Var[str] | str | None = None,
4398
4398
  dirname: Var[str] | str | None = None,
4399
4399
  disabled: Var[bool] | bool | None = None,
4400
4400
  enter_key_submit: Var[bool] | bool | None = None,
4401
4401
  form: Var[str] | str | None = None,
4402
- max_length: Var[int] | int | None = None,
4403
- min_length: Var[int] | int | None = None,
4402
+ max_length: Var[int | str] | int | str | None = None,
4403
+ min_length: Var[int | str] | int | str | None = None,
4404
4404
  name: Var[str] | str | None = None,
4405
4405
  placeholder: Var[str] | str | None = None,
4406
4406
  read_only: Var[bool] | bool | None = None,
4407
4407
  required: Var[bool] | bool | None = None,
4408
- rows: Var[int] | int | None = None,
4408
+ rows: Var[int | str] | int | str | None = None,
4409
4409
  value: Var[str] | str | None = None,
4410
4410
  wrap: Var[str] | str | None = None,
4411
4411
  access_key: Var[str] | str | None = None,
@@ -113,7 +113,7 @@ class TextArea(RadixThemesComponent, elements.Textarea):
113
113
  value: Var[str] | str | None = None,
114
114
  wrap: Var[str] | str | None = None,
115
115
  auto_height: Var[bool] | bool | None = None,
116
- cols: Var[int] | int | None = None,
116
+ cols: Var[int | str] | int | str | None = None,
117
117
  enter_key_submit: Var[bool] | bool | None = None,
118
118
  access_key: Var[str] | str | None = None,
119
119
  auto_capitalize: Literal[
reflex/utils/telemetry.py CHANGED
@@ -67,22 +67,6 @@ def get_reflex_version() -> str:
67
67
  return constants.Reflex.VERSION
68
68
 
69
69
 
70
- def _get_app_class_name() -> str | None:
71
- """Get the app class name if available.
72
-
73
- Returns:
74
- The app class name (e.g. "App", "AppEnterprise") or None if not available.
75
- """
76
- try:
77
- from reflex.utils.prerequisites import get_and_validate_app
78
-
79
- app_info = get_and_validate_app()
80
- except Exception:
81
- return None
82
- else:
83
- return app_info.app.__class__.__name__
84
-
85
-
86
70
  def get_cpu_count() -> int:
87
71
  """Get the number of CPUs.
88
72
 
@@ -213,16 +197,12 @@ def _prepare_event(event: str, **kwargs) -> _Event | None:
213
197
  if not event_data:
214
198
  return None
215
199
 
216
- additional_keys = ["template", "context", "detail", "user_uuid", "app_class"]
200
+ additional_keys = ["template", "context", "detail", "user_uuid"]
217
201
 
218
202
  properties = event_data["properties"]
219
203
 
220
- # Auto-detect app class if not provided
221
- if "app_class" not in kwargs:
222
- kwargs["app_class"] = _get_app_class_name()
223
-
224
204
  for key in additional_keys:
225
- if key in properties or key not in kwargs or kwargs[key] is None:
205
+ if key in properties or key not in kwargs:
226
206
  continue
227
207
 
228
208
  properties[key] = kwargs[key]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reflex
3
- Version: 0.7.14a1
3
+ Version: 0.7.14a2
4
4
  Summary: Web apps in pure Python.
5
5
  Project-URL: homepage, https://reflex.dev
6
6
  Project-URL: repository, https://github.com/reflex-dev/reflex
@@ -61,7 +61,7 @@ reflex/compiler/templates.py,sha256=SKFIJtL_ozEvEHhiMj34tBwBN1CWSYy_-VzlojZMG44,
61
61
  reflex/compiler/utils.py,sha256=NYvNedrkqoh8i86QL8tOjFZ60JabOM1wBXNkY1ORtiQ,16549
62
62
  reflex/components/__init__.py,sha256=zbIXThv1WPI0FdIGf9G9RAmGoCRoGy7nHcSZ8K5D5bA,624
63
63
  reflex/components/__init__.pyi,sha256=qoj1zIWaitcZOGcJ6k7wuGJk_GAJCE9Xtx8CeRVrvoE,861
64
- reflex/components/component.py,sha256=Od1y2FxrMq733HK-kOkQAKhVt8RZY3S6oCMRC35NH5U,98469
64
+ reflex/components/component.py,sha256=nvo6i2_ya1kjCZLd8ym9QmZ_JXfCGnpb9jHF0Lo3yDw,98735
65
65
  reflex/components/dynamic.py,sha256=rDPSyoeAWAe7pxA9ZpuamKfBispOrxR-Y2DP8KfwRq8,7404
66
66
  reflex/components/literals.py,sha256=hogLnwTJxFJODIvqihg-GD9kFZVsEBDoYzaRit56Nuk,501
67
67
  reflex/components/props.py,sha256=pte-hBXbwsvB2fS7vYtiyxbHWlWYcDNg8baCfDaOvBE,2699
@@ -134,8 +134,8 @@ reflex/components/el/elements/__init__.py,sha256=IqclwtTctrEpodT3Wulei7RiB2Q5oWT
134
134
  reflex/components/el/elements/__init__.pyi,sha256=XePNaTrZtdX9PH4Z6a-qHnLoy2gimOaM0OyFgFcRTEA,11194
135
135
  reflex/components/el/elements/base.py,sha256=4jnwyCQUHvWcIfwiIWVCiIC_jbwZlkAiOgx73t7tdw8,3075
136
136
  reflex/components/el/elements/base.pyi,sha256=L-y49ANz4UPodVTuzLPmaoA-0XOwBnu1a19qzo2VA-E,10084
137
- reflex/components/el/elements/forms.py,sha256=YtZXyce-qF-iCFyfs2eW_SvCIDUFZYywGpPc-gJu8cU,21589
138
- reflex/components/el/elements/forms.pyi,sha256=Tu9u_8L3TfdXUngE9qsn8Mg0zTbXt3hjDSxY62IfqFU,168546
137
+ reflex/components/el/elements/forms.py,sha256=sPGCaCMxAgAXK3rkAKWI01Ggg8hkunkpZEgmchm5HkQ,21655
138
+ reflex/components/el/elements/forms.pyi,sha256=4OY77L_OuIz3rxxi3ymrN5MgWz2x5eZNiN_PoY4bccE,168714
139
139
  reflex/components/el/elements/inline.py,sha256=q3Ku_x8L9NaXrYQovCfkWwZ5AfXG0VyhGN_OT73kA0Y,4126
140
140
  reflex/components/el/elements/inline.pyi,sha256=gaHgCehwFg3NXAb5cA__UPtu-hO3sBfFtMcbjT_JXSY,232256
141
141
  reflex/components/el/elements/media.py,sha256=3f3zJRDDp0UCzaUIJHZV4RzLrboGhAgAMsOkxgjuVGk,13647
@@ -265,7 +265,7 @@ reflex/components/radix/themes/components/table.pyi,sha256=GSVTpqkd-WPX4z1E5bRIK
265
265
  reflex/components/radix/themes/components/tabs.py,sha256=ZAG9bQOteF3QK9DI4M0OJNvKbEUTjt55kqoUzdMYDWU,4663
266
266
  reflex/components/radix/themes/components/tabs.pyi,sha256=MgbjHvAW2X1QnCB4UgceyvPdQzbGCjPCg-W2IoD90Fs,15592
267
267
  reflex/components/radix/themes/components/text_area.py,sha256=K8hvtjGF_KQyYQucUWdlLLWZRc05DtTUR0HV8PDOtqE,3468
268
- reflex/components/radix/themes/components/text_area.pyi,sha256=s_N0yMykdgNWx8MxQkj85kKXNcihIsQR2cr5_ACG1Vc,14320
268
+ reflex/components/radix/themes/components/text_area.pyi,sha256=3TkvFSnj9g8nfUnmf_DdZ1fJ6JXqjlnyjUWK3OMJym0,14332
269
269
  reflex/components/radix/themes/components/text_field.py,sha256=_KhPzL72zcemQtuW49BsQ7sOo5YXnqlYJlCS-12PlyQ,4313
270
270
  reflex/components/radix/themes/components/text_field.pyi,sha256=ET3kYUDs7mBp6ELX-qnYEVJFat7N4u6O8W_6Vkh_hAQ,33865
271
271
  reflex/components/radix/themes/components/tooltip.py,sha256=gltUqaPjtBKJD7TRMpqQbXkXDUIU6gmekW3ADt2zItQ,4412
@@ -389,7 +389,7 @@ reflex/utils/pyi_generator.py,sha256=XA5V-Qdey45mjOt4FgrHrbxkUPTD3OsfBjLJHCmatRU
389
389
  reflex/utils/redir.py,sha256=3JG0cRdfIZnFIBHHN32ynD5cfbUZa7gLRxzrxRGGl5I,1751
390
390
  reflex/utils/registry.py,sha256=ymBScatt5YiQz9tPYHCzSPs-X7z29hGuu2tlZG28YDQ,1877
391
391
  reflex/utils/serializers.py,sha256=HPxHb-5ytO25vq4tAa600OiVDhx_c6p_oHku2L3x6jc,13637
392
- reflex/utils/telemetry.py,sha256=ZgoumA3mLX4iP-ighOsEQSKsOUk-2sSpHk3nWSp-vz0,7850
392
+ reflex/utils/telemetry.py,sha256=lchCL8kSbWpKSBITsu2gH6kxyjtV2GMWNP71smxeNIk,7272
393
393
  reflex/utils/types.py,sha256=TiZokWTgNgmpH2zY0vVj7-hoJzDi0UtBNoL-VBLjNPQ,34604
394
394
  reflex/vars/__init__.py,sha256=2Kv6Oh9g3ISZFESjL1al8KiO7QBZUXmLKGMCBsP-DoY,1243
395
395
  reflex/vars/base.py,sha256=ZcGGnA7xJtPJhy60R0qZGE1Df_l7vOp51EMbLZdiHXg,104529
@@ -400,8 +400,8 @@ reflex/vars/number.py,sha256=tO7pnvFaBsedq1HWT4skytnSqHWMluGEhUbjAUMx8XQ,28190
400
400
  reflex/vars/object.py,sha256=BDmeiwG8v97s_BnR1Egq3NxOKVjv9TfnREB3cz0zZtk,17322
401
401
  reflex/vars/sequence.py,sha256=1kBrqihspyjyQ1XDqFPC8OpVGtZs_EVkOdIKBro5ilA,55249
402
402
  scripts/hatch_build.py,sha256=-4pxcLSFmirmujGpQX9UUxjhIC03tQ_fIQwVbHu9kc0,1861
403
- reflex-0.7.14a1.dist-info/METADATA,sha256=gi-uB5VBGyf1NepjEIzo5VIB71aMTNtHG30Jw5i4wbk,11837
404
- reflex-0.7.14a1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
405
- reflex-0.7.14a1.dist-info/entry_points.txt,sha256=Rxt4dXc7MLBNt5CSHTehVPuSe9Xqow4HLX55nD9tQQ0,45
406
- reflex-0.7.14a1.dist-info/licenses/LICENSE,sha256=dw3zLrp9f5ObD7kqS32vWfhcImfO52PMmRqvtxq_YEE,11358
407
- reflex-0.7.14a1.dist-info/RECORD,,
403
+ reflex-0.7.14a2.dist-info/METADATA,sha256=9WfN8yZtjsi7aDtI4RGSKGwiC91xkC5t3u_TeADl6rA,11837
404
+ reflex-0.7.14a2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
405
+ reflex-0.7.14a2.dist-info/entry_points.txt,sha256=Rxt4dXc7MLBNt5CSHTehVPuSe9Xqow4HLX55nD9tQQ0,45
406
+ reflex-0.7.14a2.dist-info/licenses/LICENSE,sha256=dw3zLrp9f5ObD7kqS32vWfhcImfO52PMmRqvtxq_YEE,11358
407
+ reflex-0.7.14a2.dist-info/RECORD,,