reflex 0.7.1a2__py3-none-any.whl → 0.7.1a4__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.

@@ -15,7 +15,13 @@
15
15
  "devDependencies": {
16
16
  {% for package, version in dev_dependencies.items() %}
17
17
  "{{ package }}": "{{ version }}"{% if not loop.last %},{% endif %}
18
-
18
+
19
+ {% endfor %}
20
+ },
21
+ "overrides": {
22
+ {% for package, version in overrides.items() %}
23
+ "{{ package }}": "{{ version }}"{% if not loop.last %},{% endif %}
24
+
19
25
  {% endfor %}
20
26
  }
21
27
  }
reflex/app.py CHANGED
@@ -1103,6 +1103,9 @@ class App(MiddlewareMixin, LifespanMixin):
1103
1103
  console.debug(f"Evaluating page: {route}")
1104
1104
  self._compile_page(route, save_page=should_compile)
1105
1105
 
1106
+ # Save the pages which created new states at eval time.
1107
+ self._write_stateful_pages_marker()
1108
+
1106
1109
  # Add the optional endpoints (_upload)
1107
1110
  self._add_optional_endpoints()
1108
1111
 
@@ -1145,6 +1148,8 @@ class App(MiddlewareMixin, LifespanMixin):
1145
1148
  )[:10]
1146
1149
  )
1147
1150
  )
1151
+ # Save the pages which created new states at eval time.
1152
+ self._write_stateful_pages_marker()
1148
1153
 
1149
1154
  # Add the optional endpoints (_upload)
1150
1155
  self._add_optional_endpoints()
@@ -1366,7 +1371,8 @@ class App(MiddlewareMixin, LifespanMixin):
1366
1371
  for output_path, code in compile_results:
1367
1372
  compiler_utils.write_page(output_path, code)
1368
1373
 
1369
- # Write list of routes that create dynamic states for backend to use.
1374
+ def _write_stateful_pages_marker(self):
1375
+ """Write list of routes that create dynamic states for the backend to use later."""
1370
1376
  if self._state is not None:
1371
1377
  stateful_pages_marker = (
1372
1378
  prerequisites.get_backend_dir() / constants.Dirs.STATEFUL_PAGES
@@ -11,7 +11,9 @@ from reflex.vars.base import Var, get_unique_variable_name
11
11
  class AutoScroll(Div):
12
12
  """A div that automatically scrolls to the bottom when new content is added."""
13
13
 
14
- _memoization_mode = MemoizationMode(disposition=MemoizationDisposition.ALWAYS)
14
+ _memoization_mode = MemoizationMode(
15
+ disposition=MemoizationDisposition.ALWAYS, recursive=False
16
+ )
15
17
 
16
18
  @classmethod
17
19
  def create(cls, *children, **props):
@@ -44,7 +46,6 @@ class AutoScroll(Div):
44
46
  """
45
47
  ref_name = self.get_ref()
46
48
  return [
47
- "const containerRef = useRef(null);",
48
49
  "const wasNearBottom = useRef(false);",
49
50
  "const hadScrollbar = useRef(false);",
50
51
  f"""
@@ -85,6 +86,8 @@ useEffect(() => {{
85
86
  const container = {ref_name}.current;
86
87
  if (!container) return;
87
88
 
89
+ scrollToBottomIfNeeded();
90
+
88
91
  // Create ResizeObserver to detect height changes
89
92
  const resizeObserver = new ResizeObserver(() => {{
90
93
  scrollToBottomIfNeeded();
@@ -195,3 +195,7 @@ class PackageJson(SimpleNamespace):
195
195
  "postcss": "8.5.1",
196
196
  "postcss-import": "16.1.0",
197
197
  }
198
+ OVERRIDES = {
199
+ # This should always match the `react` version in DEPENDENCIES for recharts compatibility.
200
+ "react-is": "19.0.0"
201
+ }
@@ -846,6 +846,7 @@ def _compile_package_json():
846
846
  },
847
847
  dependencies=constants.PackageJson.DEPENDENCIES,
848
848
  dev_dependencies=constants.PackageJson.DEV_DEPENDENCIES,
849
+ overrides=constants.PackageJson.OVERRIDES,
849
850
  )
850
851
 
851
852
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: reflex
3
- Version: 0.7.1a2
3
+ Version: 0.7.1a4
4
4
  Summary: Web apps in pure Python.
5
5
  License: Apache-2.0
6
6
  Keywords: web,framework
@@ -7,7 +7,7 @@ reflex/.templates/jinja/custom_components/__init__.py.jinja2,sha256=z5n2tvoS7iND
7
7
  reflex/.templates/jinja/custom_components/demo_app.py.jinja2,sha256=ipbKtObNqQLcwbFowod_bSWW4bttW_8bNyTXl7JL1zg,826
8
8
  reflex/.templates/jinja/custom_components/pyproject.toml.jinja2,sha256=HG-k3pruUlMy7xYz339hgFkNMTLqB-C_FTLKkOgfBPM,630
9
9
  reflex/.templates/jinja/custom_components/src.py.jinja2,sha256=e80PwMI6NoeQtGJ0NXWhYrkqUe7jvvJTFuztYQe-R5w,2403
10
- reflex/.templates/jinja/web/package.json.jinja2,sha256=YU9PF8WgiQ8OPlG3oLDX31t2R0o6DFntCh698NTiDK8,548
10
+ reflex/.templates/jinja/web/package.json.jinja2,sha256=Dyg7DbKaEgxUoaV_DUsv_bHcT0h1mXKgO4R_pVzlHQw,707
11
11
  reflex/.templates/jinja/web/pages/_app.js.jinja2,sha256=s0pSHZAZB9SUI3PabTB8uB4I3kehMc-L2DXBxSW6iQY,1375
12
12
  reflex/.templates/jinja/web/pages/_document.js.jinja2,sha256=E2r3MWp-gimAa6DdRs9ErQpPEyjS_yV5fdid_wdOOlA,182
13
13
  reflex/.templates/jinja/web/pages/base_page.js.jinja2,sha256=-Jykv29ZqzsQyyRe_iR2gUD5ac-X5RhDrGs0-diOMOA,400
@@ -40,7 +40,7 @@ reflex/__init__.py,sha256=64HB9b6MKesl3Yv6aZMsozdMKKpgnxirKk-aeN45UYY,10341
40
40
  reflex/__init__.pyi,sha256=j4ZkO-mKKw5dFBhJVbaOg7AlncO-JCckV2cHENPiLG0,11303
41
41
  reflex/__main__.py,sha256=6cVrGEyT3j3tEvlEVUatpaYfbB5EF3UVY-6vc_Z7-hw,108
42
42
  reflex/admin.py,sha256=_3pkkauMiTGJJ0kwAEBnsUWAgZZ_1WNnCaaObbhpmUI,374
43
- reflex/app.py,sha256=1O5MOi3PnHnOht7GrXutUGOwjdE9nqRBm-H3B2UeA2U,68659
43
+ reflex/app.py,sha256=ksQaxm8GIDQjxFTQc5rtGF9gQC0CxS0itjCnHzBMS04,68950
44
44
  reflex/app_mixins/__init__.py,sha256=Oegz3-gZLP9p2OAN5ALNbsgxuNQfS6lGZgQA8cc-9mQ,137
45
45
  reflex/app_mixins/lifespan.py,sha256=Xs5KiidoyO921oaBuEg7zaR8B1_SPYDZLouel6u9PRo,3298
46
46
  reflex/app_mixins/middleware.py,sha256=lB8I67SEbqcJhp3aqMLZFIZekCYKeMby-Ph2sedIYJI,3349
@@ -80,7 +80,7 @@ reflex/components/base/strict_mode.pyi,sha256=3JSap5xIYQqzbhO_3crfbuwl2J9DXGSWVo
80
80
  reflex/components/component.py,sha256=nBsxmSlpy7W_50nWzAKaY_P5MXkKSriA1dirSSX-ex0,86360
81
81
  reflex/components/core/__init__.py,sha256=1Z5MUA5wRPi4w7TXzRFyCfxbG8lUMqs29buWHIGG-CU,1321
82
82
  reflex/components/core/__init__.pyi,sha256=HDZSx-RIBpryukJo8ECdxSnZwpThP0IR2LV66h1XyJ4,2046
83
- reflex/components/core/auto_scroll.py,sha256=9-9Xj47ApLYE3vOiCwxY7VlUAaoRMf-U2Gi4xHVszRA,3390
83
+ reflex/components/core/auto_scroll.py,sha256=4FzSep5SDns9cZEtWzo7n_8dxcT25U0qUu5eUYeZNHs,3402
84
84
  reflex/components/core/auto_scroll.pyi,sha256=Gg8NcSI_Ku2m3_cGAi8-T9sVWpAiDB2PuJVcyz3PQFw,10621
85
85
  reflex/components/core/banner.py,sha256=fCseNUGEm0S8dwzEIFpVXLAOC-_KmcMlg-gUYYXR9DY,18512
86
86
  reflex/components/core/banner.pyi,sha256=2rMM8Jk2HKYEqFP10cAN494pqDg32GjeXsIPCe3eHao,28546
@@ -337,7 +337,7 @@ reflex/constants/compiler.py,sha256=7EdvrKNyr-C7e2T6Xmvd5gpTo5rh4SAHZpmQFV1rrM4,
337
337
  reflex/constants/config.py,sha256=4EljK_fD1Nf4-OfJ9HLYeHSW5xTfNPN6AGjzJ5ARZSY,1579
338
338
  reflex/constants/custom_components.py,sha256=joJt4CEt1yKy7wsBH6vYo7_QRW0O_fWXrrTf0VY2q14,1317
339
339
  reflex/constants/event.py,sha256=8PWobGXnUIbkRS73dRiroj5BJw4C3sbo5AHAhJTZFyM,2849
340
- reflex/constants/installer.py,sha256=DtzTrFDiqsjpNh0UpOybfxM3DJF4mUHdGuo48-NKTn0,4701
340
+ reflex/constants/installer.py,sha256=um3zu_tF7X0HUWPL6bjGGas36hGolIR1mfxViYSyhIQ,4853
341
341
  reflex/constants/route.py,sha256=J4QVdeeYz9wX0lYT1sgx0m3kLSArDHzmGCDZ2sqy854,2139
342
342
  reflex/constants/state.py,sha256=6Mfr7xVcAZOj5aSy7kp0W6r8oTs7K30URgGDAAFLfPQ,294
343
343
  reflex/constants/style.py,sha256=EPgRYHhAlcrPUBc2HkDTdTj-Q0uDAXHlq8Sp6D35Zf4,475
@@ -382,7 +382,7 @@ reflex/utils/imports.py,sha256=8lTJ8qCJlMUlQnZssOv0l2nntuTfGfLsLqkJAS5JTbA,3974
382
382
  reflex/utils/lazy_loader.py,sha256=-3DcwIqHNft2fb1ikgDYAMiEwNfbiWfrTBAf1gEVX2o,1367
383
383
  reflex/utils/net.py,sha256=0Yd9OLK8R_px2sqnqrDkTky6hYHtG2pEDvvilOjDfjc,1219
384
384
  reflex/utils/path_ops.py,sha256=Sio_pZ9-dqu6pAPUkO_JA9ONXDsyLGKWOVRoA-dCrec,7903
385
- reflex/utils/prerequisites.py,sha256=6kghciNA1lMHX2fYHTd4nj-81Hv1pXxzVZTXVQQbzXc,66614
385
+ reflex/utils/prerequisites.py,sha256=vEZR0Y99WKU4pEFnPTUFdRR2xnSiwSJSoaDQ5Zbv5n0,66665
386
386
  reflex/utils/processes.py,sha256=tvYVIJgxBLboCVMYLnQYeNNIFr2cwufdWNZEOxpC4qw,13527
387
387
  reflex/utils/pyi_generator.py,sha256=6BVJ1KrLH8WvfYjBVm5-zjI6-Zdhzngp5ubkixsCIl4,41240
388
388
  reflex/utils/redir.py,sha256=bmQGAgoNWwySeLRQTpoMpmKInwIOCW77wkXT61fwcj8,1868
@@ -398,8 +398,8 @@ reflex/vars/function.py,sha256=r5NFBsueqiaRkM0F1Zp2lqWYMvWBhbNwyf5F9jrEC9A,14794
398
398
  reflex/vars/number.py,sha256=a0Qq_xM3v4Lcjm8l9Yg6ESRITUOnzgWADNmfvv4tmGI,27871
399
399
  reflex/vars/object.py,sha256=jfvxtrklztDtbD2zgNVNCZZE6X6HQMB6yJHPhtb0hUo,15033
400
400
  reflex/vars/sequence.py,sha256=_A1By3COdoTt9o5WM2odYsWf1twTv8Depf0kgHLdhGQ,54276
401
- reflex-0.7.1a2.dist-info/LICENSE,sha256=dw3zLrp9f5ObD7kqS32vWfhcImfO52PMmRqvtxq_YEE,11358
402
- reflex-0.7.1a2.dist-info/METADATA,sha256=UMhsjtdocZgwuIuK7_eArh3PuvIFm_9cIbbtNKOxutY,11985
403
- reflex-0.7.1a2.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
404
- reflex-0.7.1a2.dist-info/entry_points.txt,sha256=H1Z5Yat_xJfy0dRT1Frk2PkO_p41Xy7fCKlj4FcdL9o,44
405
- reflex-0.7.1a2.dist-info/RECORD,,
401
+ reflex-0.7.1a4.dist-info/LICENSE,sha256=dw3zLrp9f5ObD7kqS32vWfhcImfO52PMmRqvtxq_YEE,11358
402
+ reflex-0.7.1a4.dist-info/METADATA,sha256=H47SWi0vfR3FkFE-cmEVtiIA-PAJh5vGoozeqA8ZU0Y,11985
403
+ reflex-0.7.1a4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
404
+ reflex-0.7.1a4.dist-info/entry_points.txt,sha256=H1Z5Yat_xJfy0dRT1Frk2PkO_p41Xy7fCKlj4FcdL9o,44
405
+ reflex-0.7.1a4.dist-info/RECORD,,