Commit Graph

1863 Commits

Author SHA1 Message Date
Khaleel Al-Adhami
76261e0e3b add rx event 2024-10-11 17:24:04 -07:00
Khaleel Al-Adhami
a0a5dcb831 merging 2024-10-11 17:23:47 -07:00
Khaleel Al-Adhami
57e8bf64fd
remove another stray print
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-10-11 17:08:49 -07:00
Khaleel Al-Adhami
e4eac2e378
remove stray print
Co-authored-by: Masen Furer <m_github@0x26.net>
2024-10-11 17:08:40 -07:00
benedikt-bartscher
0889276e24
Do not auto-determine generic args if already supplied (#4148)
* add failing test for figure_out_type

* do not auto-determine generic args if already supplied

* move has_args to utils.types, add tests for it
2024-10-11 17:08:39 -07:00
Masen Furer
736b2a6ea9
Handle rx.State subclasses defined in function (#4129)
* Handle rx.State subclasses defined in function

* create a new container module: `reflex.istate.dynamic` to save references to
  dynamically generated substates.
* for substates with `<locals>` in the name, copy these to the container module
  and update the name to avoid duplication.
* add test for "poor man" ComponentState

Fix #4128

* test_state: disable local def handling for dupe-detection test

* Track the original module and name for type hint evaluation

Also use the original name when checking for the "mangled name" pattern when
doing undeclared Var assignment checking.
2024-10-11 16:51:10 -07:00
Masen Furer
a2862bd102
Allow setting a different invocation function for EventChain (#4160)
In rx.call_script scenario, the EventChain must call `queueEvents` and
`processEvent` instead of `addEvents`, because the former are in scope in the
call_script eval environment where `addEvents` is not.

This is an escape hatch for certain wrapping scenarios.
2024-10-11 16:49:40 -07:00
Khaleel Al-Adhami
0311dae568
only read if it's *not* empty (#4165) 2024-10-11 16:49:01 -07:00
Khaleel Al-Adhami
1eb92fa39b
change bun install link to main (#4164) 2024-10-11 15:51:30 -07:00
Khaleel Al-Adhami
189700ecb3
Change bun link (#4162)
* change bun to download from us

* make it use branch
2024-10-11 15:43:54 -07:00
Khaleel Al-Adhami
994b52d829 merging 2024-10-11 13:09:57 -07:00
Khaleel Al-Adhami
210c1ed902
fix union types for vars (#4152) 2024-10-11 11:39:31 -07:00
Khaleel Al-Adhami
bf32b63be2 merging 2024-10-10 15:24:05 -07:00
Carlos
3da1a8d082
default props comment for Axis (#4109)
* default props comment for Axis

* update
2024-10-10 15:10:42 -07:00
Carlos
efd633e76a
default props comment for Pie (#4103) 2024-10-10 15:10:28 -07:00
Carlos
c3d7cd0da1
default props comment for PolarRadiusAxis (#4108)
* default props comment for PolarRadiusAxis

* update
2024-10-10 15:10:11 -07:00
Khaleel Al-Adhami
a5c335a93c i don't need no test 2024-10-10 14:49:09 -07:00
Khaleel Al-Adhami
d7e8910a7f special case osmething 2024-10-10 14:48:19 -07:00
Khaleel Al-Adhami
e5fdf3897a maybe 2024-10-10 14:44:46 -07:00
Khaleel Al-Adhami
2e5fbb49a3 move stuff around 2024-10-10 14:41:34 -07:00
Khaleel Al-Adhami
086f273991 merging 2024-10-10 14:36:39 -07:00
Khaleel Al-Adhami
212012323e add rx event 2024-10-10 14:32:45 -07:00
Carlos
ec6990fb71
default props comment for RadialBar (#4105)
* default props comment for RadialBar

* update
2024-10-10 13:04:49 -07:00
Carlos
ee3182a2df
default props comment for Cartesian (#4114)
* default props comment for Cartesian

* add animation events

* update
2024-10-10 13:00:23 -07:00
Carlos
4a314394fd
default props comment for ErrorBar (#4120)
* default props comment for ErrorBar

* union int float

* update
2024-10-10 12:59:38 -07:00
Carlos
132a3d4d1d
default props comment for Funnel (#4119)
* default props comment for Funnel

* update
2024-10-10 12:58:38 -07:00
Carlos
11abaf8055
default props comment for Grid (#4125) 2024-10-10 12:57:46 -07:00
Khaleel Al-Adhami
b90ad9fb55 i hate unions 2024-10-10 12:35:37 -07:00
Khaleel Al-Adhami
cb70b7b82b ono 2024-10-10 12:32:38 -07:00
Khaleel Al-Adhami
ce812679be sometimes you need to make hard decisions 2024-10-10 12:30:44 -07:00
Thomas Brandého
6f586c8b8f
let users pick state manager mode (#4041) 2024-10-10 12:22:35 -07:00
benedikt-bartscher
1aed39a848
catch ValueError("I/O operation on closed file.") if frontend crashes (#4150) 2024-10-10 12:18:57 -07:00
Khaleel Al-Adhami
8ec3cf6157
remove dictify from state dict (#4141) 2024-10-10 12:18:18 -07:00
Khaleel Al-Adhami
35569a46da aaaa 2024-10-09 19:27:34 -07:00
Khaleel Al-Adhami
aea5e5d113 add check for class 2024-10-09 19:20:58 -07:00
Khaleel Al-Adhami
5a0475d588 add try except becuse i hate this 2024-10-09 19:15:50 -07:00
Khaleel Al-Adhami
47734388a7 add future annotations 2024-10-09 19:10:56 -07:00
Khaleel Al-Adhami
eff980fb9b dang it darglintz 2024-10-09 19:09:26 -07:00
Khaleel Al-Adhami
715c3a12cd add on change 2024-10-09 19:04:56 -07:00
Khaleel Al-Adhami
ffd6ce67eb make it a list 2024-10-09 18:48:56 -07:00
Khaleel Al-Adhami
32715c76ec fix pyi 2024-10-09 18:47:36 -07:00
Khaleel Al-Adhami
e745671d86 add type hinting to events 2024-10-09 18:43:13 -07:00
abulvenz
87648af3ee
fix: Determine var type from value. (#4143) 2024-10-09 17:33:34 -07:00
benedikt-bartscher
7a971e5842
fix docstring (#4140) 2024-10-09 13:42:44 -07:00
Khaleel Al-Adhami
91ab8ac574
Remove wrong event handlers (#4136)
* remove wrong target value

* add keyboard event

* simplify empty ones

* remove events from text_area

* empty tuples are empty bruh

* dangit darglint
2024-10-09 13:25:41 -07:00
Thomas Brandého
60b6d4e7f2
only run macOS job on merge (#4139)
* update workflow

* skip more in unit tests

* try something else to prevent adding macos job to pool

* exclude too much

* fix units-text with macOS excluded

* also drop macOS job in integration tests

* readd macos job separately to only run on merge
2024-10-09 13:24:03 -07:00
ruhz3
f3b8b2e336
First use environment variable as npm registry (#4082)
* First use environment variable as npm registry

* use NPM_CONFIG_REGISTRY as env variable

---------

Co-authored-by: 류형주/인공지능팀 <hyungju.ryu@ahnlab.com>
2024-10-09 11:36:33 -07:00
Nguyễn Minh Phú
0e7627d1c4
Add Vietnamese README docs (#4138) 2024-10-09 08:58:08 -07:00
Carlos
ffcf87d587
default props comment for Radar (#4104) 2024-10-08 17:00:42 -07:00
Carlos
535c8f904d
default props comment for funnelchart (#4097) 2024-10-08 16:54:45 -07:00