Masen Furer
6ea657a4fd
[REF-876] Update base template styles ( #2022 )
2023-10-24 10:35:37 -07:00
Elijah Ahianyo
d785bd98da
Radix Themes style notation fix ( #2025 )
2023-10-24 10:29:44 -07:00
Elijah Ahianyo
b8f0674556
Improve Event handler Error message ( #2019 )
2023-10-24 10:28:51 -07:00
Martin Xu
81053618c9
CLI switch to prod server ( #2016 )
2023-10-24 09:43:20 -07:00
jackie-pc
53566c2adf
[reflex hosting] clean up tmp dir for storing zip archives ( #2021 )
2023-10-24 09:36:10 -07:00
jackie-pc
b3499e6b7a
[reflex export] backend.zip excludes dirs that look like venv dirs ( #2009 )
2023-10-23 09:01:42 -07:00
Masen Furer
91bbf91c52
Resolve npm path and fnm path on Windows ( #2015 )
2023-10-23 08:59:48 -07:00
Thomas Brandého
d00425276d
fix fnm version check ( #2014 )
2023-10-23 08:45:55 -07:00
Thomas Brandého
490ae40a40
Wrap Moment Component ( #1994 )
...
* wip wrap moment
* add some props to moment
* fix typing for 3.8
* fix comment for props and add create method for moment-timezone
2023-10-23 13:24:11 +02:00
Martin Xu
07ca8fcb3b
[REF-99] Add first version of CLI for hosting service ( #1810 )
2023-10-21 13:09:56 -07:00
Masen Furer
fe244b7eec
multi_select somewhat usable ( #1861 )
2023-10-20 09:43:46 -07:00
jackie-pc
c653f95435
support exporting to zip archives to a dir that is not cwd (to be used by hosting cli) ( #2005 )
2023-10-20 09:40:30 -07:00
Elijah Ahianyo
7b8b64668d
Rehydrate client storage after rx.remove_local_storage and rx.remove_cookies ( #1998 )
2023-10-19 15:43:43 -07:00
Nikhil Rao
e7f0cd8e4c
Stop double compiles in dev mode ( #1990 )
2023-10-19 15:26:14 -07:00
Masen Furer
cbf5b61a23
Drop python3.7 support ( #2003 )
...
* Drop python3.7 support
* poetry.lock: relock without py3.7
* Update README/CONTRIBUTING to say 3.8+
2023-10-19 22:21:29 +02:00
Elijah Ahianyo
06bdf9ed8a
Remove 0.3.0 deprecated features ( #1947 )
2023-10-19 09:44:32 -07:00
Elijah Ahianyo
b652d40ee5
Remove Default state ( #1978 )
2023-10-18 09:57:27 -07:00
Nikhil Rao
b4bb849388
Fix posthog ( #1992 )
2023-10-18 12:30:09 +02:00
Masen Furer
f6a7eed359
Fix AppHarness tests ( #1987 )
...
* test_client_storage: remove race conditions for cookie assignment
Poll for default timeout for cookies to appear in the controlled browser.
* Remove use of deprecated get_token and get_sid in core
Both reflex.app and reflex.state were still using deprecated methods, which
were throwing unsolvable warnings for end users.
* Remove deprecated router functions from integration tests
Mostly removing custom "token" var and replacing with
router.session.client_token.
Also replacing `get_query_params` and `get_current_page` usage as well.
* fix upload tests
Cannot pass substate as main app state, since it blocks us from accessing
"inherited vars"
* state: do NOT reset `router` to default
When calling `.reset` to reset state vars, do NOT reset the router data, as
that could mess up internal event processing.
2023-10-18 01:46:13 +02:00
Biresh Biswas
317b883ec8
fix rx.audio playing prop type: str to bool ( #1986 )
2023-10-17 13:03:57 -07:00
Thomas Brandého
df09c716c6
fix serialization as a whole for list/dict/Base containing custom items to serialize ( #1984 )
2023-10-17 10:44:54 -07:00
Masen Furer
d1d5812602
format: event arg values use backticks ( #1926 )
2023-10-17 10:42:35 -07:00
Masen Furer
1efc61e1c4
Warn when computed vars raise an exception ( #1939 )
2023-10-17 10:41:36 -07:00
Masen Furer
c3f5f345bb
convert initialEvents to a function ( #1982 )
2023-10-17 10:39:56 -07:00
Thomas Brandého
b1bab1206d
deprecate get_ methods for router_data, use BaseVars instead ( #1967 )
2023-10-17 09:59:44 -07:00
Masen Furer
67606561d3
[REF-668] Wrap MyApp with radix Theme component ( #1867 )
...
* partly add some radix-ui/themes based components
* add @radix-ui/themes integration to top-level app
* WiP: compile _app_wrap based on which component library is used
TODO: working color mode
* WiP get color mode working with agnostic provider
still not perfect, as the RadixColorModeProvider seems to trip hydration errors
when using color_mode_cond component, but for now, this provides a nice balance
between the two libraries and allows them to interoperate.
* WiP template _app.js instead of making a separate wrap file
* WiP: use next-themes for consistent darkmode switching
* strict pin chakra deps
* Move ChakraColorModeProvider to separate js file
* move nasty radix themes js code into js files
* remove chakra from default imports
* chakra fixup import to use .js extension
* Add radix theme typography and layout components
* do NOT special case the radix theme...
avoid templating json and applying it, avoid non-customizable logic
just add the radix Theme component as an app wrap if the user specifies it to
rx.App, and any other app-wrap theme-like component could _also_ be used
without having to change the code.
this also allows different themes for different sections of the app by simply
placing elements inside a different rdxt.theme wrapper.
* Theme uses "radius" not "borderRadius"
* move next-themes to main packages.json
this is always used, regardless of the component library
* test_app: test cases for app_wrap interface
* Finish wrapping Button, Switch, and TextField components
* docstring, comments, static fixups
* debounce: use alias or tag when passing child Element
Fix REF-830
* test_app: ruin my beautiful indentation
* py38 compatibility
* Add event triggers for switch and TextField
* Add type hints for radix theme components
* radix themes fixups from writing the tests
* Add integration test for radix themes components
* test_app: mock out package installation
we only need the compile result, we're not actually trying to install packages
* avoid incompatible version of @emotion/react
* test_radix_themes: include theme_panel component
* next-themes default scheme: "light"
until all of our components look good in dark mode, need to keep the default as
light mode regardless of the system setting.
2023-10-16 15:31:50 -07:00
Masen Furer
4c554c953d
ChartBase.create: include default min dimensions (RESUB) ( #1975 )
2023-10-16 12:05:33 -07:00
Elijah Ahianyo
c6abeb31a5
Props as Literals ( #1921 )
2023-10-15 20:16:39 -07:00
Alek Petuskey
7d4194be34
Added base template + improve templating code ( #1937 )
2023-10-15 20:02:41 -07:00
Elijah Ahianyo
433ccda3a6
No state No Websocket ( #1950 )
2023-10-13 14:54:59 -07:00
Masen Furer
024cb5fa9b
Var field cleanup ( #1943 )
2023-10-13 14:53:55 -07:00
Masen Furer
684912e33b
[REF-843] Automatically update api_url and deploy_url ( #1954 )
2023-10-13 12:59:19 -07:00
Masen Furer
d0cb5b07e7
AppHarness: support headless mode and driver selection ( #1963 )
2023-10-13 12:53:20 -07:00
Elijah Ahianyo
2c4ffc879f
Deprecate rx.get_cookies ( #1961 )
2023-10-13 09:21:06 -07:00
Nikhil Rao
7019708638
Fix custom components special props ( #1956 )
2023-10-12 15:27:41 -07:00
Masen Furer
14bb662eb1
bun version bump to 1.0.4 ( #1942 )
2023-10-11 00:07:18 -07:00
Alek Petuskey
86c624e939
Readded victory create methods and imports ( #1938 )
2023-10-09 11:53:41 -07:00
Alek Petuskey
80bf48b872
Pin Recharts Dependency ( #1934 )
...
* Pin dependency
* Translated README.md file to Brazilian Portuguese (PT-BR) (#1936 )
* Namespace Recharts + Victory Back With Depreciation Warning (#1928 )
---------
Co-authored-by: Alek Petuskey <alekpetuskey@Aleks-MBP.attlocal.net>
Co-authored-by: Victor Moura <26290053+victorcmoura@users.noreply.github.com>
2023-10-08 19:33:37 -07:00
Alek Petuskey
06103a4d8d
Namespace Recharts + Victory Back With Depreciation Warning ( #1928 )
2023-10-08 19:09:09 -07:00
Thomas Brandého
837549bf6e
fix backward compat of menu api ( #1925 )
2023-10-05 12:55:47 -07:00
Nikhil Rao
85937c2369
Pin frontend package versions ( #1920 )
2023-10-05 12:45:21 -07:00
Elijah Ahianyo
513835cf74
Update Deprecations ( #1927 )
2023-10-05 12:12:42 -07:00
Nikhil Rao
a72a6b7d2f
Add forward slash to local JS import ( #1924 )
2023-10-05 10:38:40 -07:00
Alek Petuskey
67eb661704
Core Graphing -> Recharts ( #1878 )
2023-10-04 15:05:08 -07:00
Elijah Ahianyo
68664a5094
Deprecate set_cookie and set_local_storage ( #1917 )
2023-10-04 14:15:37 -07:00
Thomas Brandého
58933278ad
fix rx.image src not working with state ( #1915 )
2023-10-04 14:15:18 -07:00
Thomas Brandého
c131f76e33
fix menu items= API ( #1905 )
2023-10-02 17:42:36 -07:00
Nikhil Rao
53d205ad9f
Improve default rx.markdown styling ( #1904 )
2023-10-02 11:52:16 -07:00
Masen Furer
4b84c2a471
state: subclass of MutableState must return _mark_dirty return value ( #1898 )
2023-10-02 11:17:45 -07:00
Masen Furer
0a196693a3
Add Editor component ( #1851 )
2023-10-02 09:41:58 -07:00
Thomas Brandého
7df3f2f621
allow external link for redirect ( #1902 )
2023-10-02 09:37:46 -07:00
Masen Furer
418f9ad569
state: get_value
unwraps MutableProxy first ( #1887 )
2023-10-01 10:13:27 -07:00
Masen Furer
4f6b3c049b
State.reset uses deepcopy on defaults ( #1889 )
2023-09-29 16:33:16 -07:00
Masen Furer
5ca7f29853
MutableProxy wraps values yielded by __iter__ ( #1876 )
2023-09-28 17:34:46 -07:00
Masen Furer
bd0cd18796
circular_progress cleanup: size, thickness, label ( #1879 )
2023-09-28 17:29:28 -07:00
Thomas Brandého
dcb17103bb
code cleanup (split constants into a folder) ( #1866 )
2023-09-28 17:27:20 -07:00
Elijah Ahianyo
8326abf5d5
Button Group variant and size props ( #1873 )
2023-09-28 10:56:28 -07:00
Elijah Ahianyo
26885d98cf
rx.table __bool__ regression fix ( #1828 )
2023-09-28 09:31:01 -07:00
Masen Furer
991c7202a7
rx.call_script: a real EventHandler to execute arbitrary javascript ( #1860 )
2023-09-27 18:27:48 -07:00
Nikhil Rao
41872dfdc9
Format event handlers not in importable modules ( #1875 )
2023-09-27 11:30:15 -07:00
Elijah Ahianyo
4e82102ad0
Add button spinner_placement prop ( #1871 )
2023-09-26 10:24:38 -07:00
Nikhil Rao
d1019fb977
Fix style rendering in markdown ( #1869 )
2023-09-26 10:24:12 -07:00
Nikhil Rao
89404e0b4a
Add head components to app ( #1868 )
2023-09-25 16:53:15 -07:00
Nikhil Rao
8231993e5a
Improvements to custom styles in rx.markdown ( #1852 )
2023-09-25 15:59:48 -07:00
Masen Furer
2f284a08b6
component: imports
override _get_dependencies_imports
( #1859 )
2023-09-24 01:46:35 -07:00
Masen Furer
83d7a044fe
StateProxy rebinds functools.partial and methods that are bound to the proxied State ( #1853 )
2023-09-21 17:59:18 -07:00
Masen Furer
351611ca25
rx.background and StateManager.modify_state provides safe exclusive access to state ( #1676 )
2023-09-21 11:42:11 -07:00
Thomas Brandého
211dc15995
New API to define triggers ( #1820 )
2023-09-21 09:47:22 -07:00
Thomas Brandého
84bae0dc7d
use jinja2 to render package.json ( #1849 )
2023-09-21 09:46:11 -07:00
Masen Furer
0cd7242bb2
exec: print the URL, not the address the server binds to ( #1846 )
2023-09-20 19:31:06 -07:00
Nikhil Rao
ac8dfc5f91
Format component as React string ( #1848 )
2023-09-20 19:30:38 -07:00
Elijah Ahianyo
d81d544b97
add option to disable Tailwind ( #1842 )
2023-09-20 16:47:58 -07:00
Thomas Brandého
15ced6b795
allow for non-installable imports ( #1843 )
2023-09-20 16:47:27 -07:00
Masen Furer
1bfb579b20
state: implement __copy__ and __deepcopy__ for MutableProxy ( #1845 )
2023-09-20 16:46:49 -07:00
Nikhil Rao
3113aecb30
Support custom styling for code in markdown ( #1844 )
2023-09-20 11:40:25 -07:00
Elijah Ahianyo
2750228dbb
Prevent Substate class shadowing ( #1827 )
2023-09-19 15:56:39 -07:00
Nikhil Rao
9e533ee58a
Remove extra imports from rx.markdown ( #1837 )
2023-09-19 15:52:56 -07:00
Masen Furer
1430075bdc
Reassign state Var when fields on a Base instance change ( #1748 )
2023-09-18 13:52:10 -07:00
Nikhil Rao
264c44e630
Disable metrics in CI ( #1822 )
2023-09-15 18:15:25 -07:00
Nikhil Rao
541e311617
Simplify base rxconfig ( #1821 )
2023-09-16 02:43:16 +02:00
Nikhil Rao
1938a6cc58
Add serializers for different var types ( #1816 )
2023-09-15 17:19:26 -07:00
Elijah Ahianyo
74d227d2fd
Move custom styles to root App file(_app.js) ( #1764 )
2023-09-15 13:18:35 -07:00
Evan Harley
63ae96ede3
Number input float ( #1817 )
2023-09-15 09:58:33 -07:00
Elijah Ahianyo
796f523c03
Remove deprecated route decorator ( #1815 )
2023-09-14 10:29:29 -07:00
Thomas Brandého
b378827b83
add download event ( #1797 )
2023-09-13 09:56:00 -07:00
Elijah Ahianyo
f2b0915aff
Type Validation for Var Operations and Enhanced Compatibility ( #1674 )
2023-09-12 15:57:40 -07:00
wassaf shahzad
1c598b8428
added check to remove local import starting from . ( #1807 )
2023-09-12 15:54:57 -07:00
Masen Furer
43f3990448
numberinput: check _id is not None
to avoid Var truthiness warning ( #1806 )
2023-09-12 12:36:22 -07:00
Elijah Ahianyo
06a110a07d
Style props with Callable Values ( #1751 )
2023-09-12 11:26:53 -07:00
wassaf shahzad
77edb01e74
removed is_read_only from select ( #1799 )
2023-09-12 08:38:49 -07:00
Evan Harley
fca5815a37
Implemented color_scheme for Tabs Component ( #1792 )
2023-09-09 22:43:11 -07:00
Thomas Brandého
27eeab485e
move dynamic imports to dedicated method ( #1785 )
2023-09-08 14:53:39 -07:00
Martin Xu
3406be3ff8
supply default for sqlmodel PK for both DB and python to work ( #1788 )
2023-09-08 14:51:57 -07:00
Elijah Ahianyo
891e6a4736
Allow underscores in routes ( #1713 )
2023-09-08 12:18:33 -07:00
Nikhil Rao
47d789e9a6
Don't show error logs on sigint ( #1781 )
2023-09-07 15:54:52 -07:00
Masen Furer
43ac87f5ca
exec: don't debug print the line, processes.stream_logs already does ( #1780 )
2023-09-07 15:31:08 -07:00
Thomas Brandého
2d570b3bcd
Fix some docstrings in pyi ( #1773 )
2023-09-07 12:55:49 -07:00
Nikhil Rao
abc09f9074
Don't show app running message twice ( #1770 )
2023-09-07 01:41:26 -07:00
Thomas Brandého
043648da07
improve pyi files generation ( #1765 )
2023-09-07 00:23:17 -07:00
Masen Furer
6fa9bfea09
Fix rx.Cookie with custom name ( #1767 )
2023-09-06 14:02:24 -07:00