Masen Furer
dc39bcd626
pydantic v2 hacks/fixups
2023-12-19 15:52:22 -08:00
Masen Furer
c7eda15470
replace type_ and outer_type_ with field.annotation
2023-12-19 15:35:58 -08:00
Masen Furer
62d36bfecc
state: unbreak backend vars
...
This one was really esoteric... if backend vars are used, then a
`model_post_init` gets synthesized, and reflex tries to treat that as an event
handler... but the args cannot convert correctly, so it raises a validation
error when attempting to instantiate the EventSpec (which is also a BaseModel).
2023-12-19 15:28:53 -08:00
Masen Furer
325c638379
State is able to be instantiated...backend vars are still broken
...
106 test failures
2023-12-18 23:23:07 -08:00
Masen Furer
18bddfb7e7
WiP
2023-12-14 14:53:20 -08:00
Masen Furer
e245b6b6a0
support SQLModel 0.0.14 + SQLAlchemy 2 ( #2283 )
2023-12-12 17:52:11 -08:00
Elijah Ahianyo
9629b59617
DataFrame Serializer fix ( #2281 )
2023-12-12 14:03:40 -08:00
benedikt-bartscher
f90982ea06
use redis-py url syntax for redis_url ( #2267 )
...
* use redis-py url syntax for redis_url
* port is optional
* Add StateManagerRedis.close method
The close helper method always calls `close_connection_pool=True` so that all
outstanding redis operations can be stopped before changing event loops.
---------
Co-authored-by: Masen Furer <m_github@0x26.net>
2023-12-12 10:54:10 -08:00
Masen Furer
e52267477c
[REF-1417] Convert underscore-prefixed style props to pseudo selector ( #2266 )
2023-12-11 13:37:57 -08:00
Alek Petuskey
421be5748b
Warning if newer reflex/reflex-hosting-cli available ( #2271 )
...
* Check to see if there are new reflex version avaliable if so throw a warning
* precommit
* request -> httpx
* Fix pr comments
* Forgot import
* Generalize check_latest_package_version
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MBP.attlocal.net>
2023-12-08 21:21:12 -08:00
Nikhil Rao
96f68cb94d
Implement accordion component ( #2262 )
...
* Implement accordion component
* Fix literal annotation
* Use style prop instead of css
* Move accordion to primitives folder
* Add pyi file
* Fix pyright
* Add apply_theme method
* Fix apply_theme
* Use apply_theme method
* Fix lint
2023-12-08 21:20:30 -08:00
Thomas Brandého
0ca903e468
wrap radix icons ( #2263 )
...
* Add inital ui
* More radix updates
* Add el inheritance
* Add el inheritance for layout
* Triggers + primitive prop inheritance
* Initial Primitives
* Small fix
* Update select
* Radix Themes fixups (#2245 )
* [REF-1367] Fix up event trigger specs
* Add missing name/value props for form controls
Checkbox was incorrectly tagged Button
TextArea was incorrectly tagged TextArea.Input
* [REF-1364] Radix Link now renders as a NextLink
For href as Var or href does not contain the ://, then
render as a NextLink for efficient inner-app navigation
* More changes
* PYI
* add @radix-ui/icons to radix.themes
* add pyi file
* fix for py3.8
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
Co-authored-by: Masen Furer <m_github@0x26.net>
2023-12-07 14:08:20 -08:00
Thomas Brandého
a0bd83b915
add event triggers for base html components ( #2276 )
2023-12-07 11:22:40 -08:00
Thomas Brandého
caf32605ca
add next/image and next-video in next namespace ( #2223 )
2023-12-07 10:38:47 -08:00
Tom Gotsman
d6374ca3f0
update var join function to use empty string ( #2270 )
2023-12-06 16:51:13 -08:00
Alek Petuskey
7164b91d7b
Implement Radix Themes ( #2236 )
2023-12-06 16:47:03 -08:00
Nikhil Rao
46d03880e6
Format var better in error message ( #2269 )
2023-12-06 13:31:29 -08:00
Nikhil Rao
0eb374c58b
Bump to v0.3.6 ( #2268 )
2023-12-06 13:11:38 -08:00
Martin Xu
93e9e39aeb
fix condition for creating requirements.txt ( #2260 )
2023-12-06 11:28:58 -08:00
Masen Furer
e0a1b39231
[REF-1425] Always capitalize tag of StatefulComponent ( #2264 )
2023-12-06 09:41:09 -08:00
Nikhil Rao
94f657cbd7
Bump to v0.3.5 ( #2261 )
2023-12-06 08:58:47 -07:00
Masen Furer
21000d9889
state.js: do not connect unless a state subclass is defined ( #2259 )
2023-12-05 17:14:47 -08:00
Martin Xu
77405d1701
Only check requirements update in interactive mode ( #2258 )
2023-12-05 15:57:41 -08:00
Martin Xu
0fff63a52e
Pass export function with more args to hosting CLI ( #2254 )
2023-12-04 17:13:38 -08:00
Nikhil Rao
19c01492be
Update sidebar tutorial for new substates ( #2256 )
2023-12-04 16:49:28 -08:00
Masen Furer
0bbae2d3d5
[REF-1404] router_data not updated when processing events ( #2255 )
2023-12-04 16:45:22 -08:00
Masen Furer
eb79da8538
[REF-1352] Markdown component_map hash improvements ( #2241 )
2023-12-01 11:45:22 -08:00
Masen Furer
49ccd2f1fb
Generalize MemoizationLeaf Component mixin ( #2247 )
2023-12-01 11:41:11 -08:00
Thomas Brandého
1109f8f508
deprecate state arg in App() ( #2237 )
2023-12-01 09:50:40 -08:00
Masen Furer
4ada79c1e5
[REF-1349] RechartsCharts and ResponsiveContainer must be memo leaf ( #2240 )
2023-12-01 09:49:59 -08:00
Ankur Singh
3e9e718b89
fix: fixes the command used for cloning the repo ( #2159 )
2023-11-30 12:38:21 -08:00
Masen Furer
60147dec65
[REF-201] Separate on_load handler from initial hydration ( #1847 )
2023-11-30 12:21:15 -08:00
Masen Furer
3c7af9fad4
Support hooks in custom components (state, addEvents) ( #2234 )
2023-11-30 09:59:09 -08:00
Masen Furer
a2d5bbc133
[reflex-web tweaks] Do not memoize children of InputGroup ( #2230 )
2023-11-30 09:48:28 -08:00
Masen Furer
a86bcb3c72
[reflex-web tweaks] chakra Icon is a ChakraComponent (use sx for style) ( #2231 )
...
* chakra Icon is a ChakraComponent (use sx for style)
* icon: update pyi file
2023-11-29 14:48:32 -08:00
Elijah Ahianyo
e3ee98098a
RED-1052/rx.State as Base State ( #2146 )
2023-11-29 09:43:33 -08:00
Martin Xu
f8395b1fd6
Separate out the hosting CLI from main repo ( #2165 )
2023-11-28 15:20:06 -08:00
Masen Furer
3deb2cec93
code_block responds to color mode by default ( #2228 )
2023-11-28 13:24:38 -08:00
Masen Furer
0c55723df4
[REF-1158] Move chakra-only deps to chakra lib ( #2171 )
2023-11-28 00:04:07 -08:00
Masen Furer
ee87e62efa
[REF-1035] Track ComputedVar dependency per class ( #2067 )
2023-11-27 18:17:53 -08:00
Masen Furer
626357ed87
Memoize markdown component_map ( #2219 )
2023-11-27 18:09:41 -08:00
Alek Petuskey
065b1b88d2
Add index on tabs ( #2225 )
...
* Add index on tabs
---------
Co-authored-by: Alek Petuskey <alekpetuskey@aleks-mbp.lan>
2023-11-27 17:59:35 -08:00
Masen Furer
527437cf23
[REF-144] Add context in each component to prevent rerenders ( #2198 )
2023-11-27 16:05:59 -08:00
Thomas Brandého
ed5b3818cb
update removal version of deprecated features ( #2224 )
2023-11-27 14:04:55 -08:00
Thomas Brandého
8fc254041b
fix name for import var when is default and add tests ( #2214 )
2023-11-26 12:46:43 -08:00
Elijah Ahianyo
7f75571e67
Deprecate event namespace config knob ( #2218 )
2023-11-26 12:45:50 -08:00
Thomas Brandého
d61b83fde7
add/subtract in moment ( #2212 )
2023-11-22 13:13:59 -08:00
Masen Furer
1603144c7d
[REF-889] useContext per substate ( #2149 )
2023-11-21 11:52:06 -08:00
Nikhil Rao
e9437ad941
Use singleton app provider to speed up compiles ( #2172 )
2023-11-20 18:11:24 -08:00
Nikhil Rao
b5f6ab3a82
Fix pyright errors ( #2210 )
2023-11-20 18:10:41 -08:00