Commit graph

397 commits

Author SHA1 Message Date
Jonathan Kelley
cbadea022a
Eval should never return an error
Only awaiting eval should error.
Eval should always be available, even if using its methods returns errors.
2024-02-14 15:13:15 -08:00
Jonathan Kelley
bdbae8ccb0
Update examples, add css 2024-02-14 12:33:07 -08:00
Evan Almloff
72ae13ccb5 fix the double click event 2024-02-05 18:24:21 -06:00
Evan Almloff
308226996c actually derive the copy trait for eval 2024-02-02 14:48:31 -06:00
Evan Almloff
a789d6a64e make eval copy 2024-02-02 14:47:59 -06:00
Jonathan Kelley
7c2947a131
Implement effects using reactivecontext 2024-02-01 13:21:52 -08:00
Jonathan Kelley
eff1dd6c90
Merge branch 'master' into breaking 2024-01-30 16:20:19 -08:00
Ege Gungordu
d3ded8c677 add isComposing support of KeyboardEvent 2024-01-23 18:31:14 +03:00
Jonathan Kelley
2366d609d4
add checked to form 2024-01-19 22:23:13 -08:00
Evan Almloff
439e39bab4 fix native core, plasmo and dioxus-tui 2024-01-19 09:48:45 -06:00
Jonathan Kelley
6ed3aafb2f
Get cargo check --all working 2024-01-18 19:27:55 -08:00
Ameyanagi
a3f6d21bea deleted unused comment 2024-01-18 17:55:15 -05:00
Ameyanagi
27254eecc6 added annotation-xml 2024-01-18 17:13:55 -05:00
Ameyanagi
f8071d9a61 add MathML core elements 2024-01-18 01:54:23 -05:00
Evan Almloff
d44b0b34c8 Merge branch 'master' into breaking 2024-01-16 10:38:55 -06:00
Evan Almloff
a20a85dad6 implement deref for FormValue 2024-01-16 10:30:59 -06:00
Jonathan Kelley
14651a3573
Change context api to panic with nice error message 2024-01-15 18:02:58 -08:00
Evan Almloff
cfebb6c900 remove async-channel now that context and eval is global 2024-01-15 11:46:00 -06:00
serzhiio
00cd0dae6e From impl 2024-01-15 17:38:31 +04:00
serzhiio
a92d1a9424 rustfmt 2024-01-15 17:28:00 +04:00
serzhiio
f833d95e79 Added useful methods 2024-01-15 17:16:44 +04:00
Evan Almloff
36e9eb1160 partially restore spreading attributes 2024-01-14 15:21:19 -06:00
Jonathan Kelley
8c94f0bc4a
get compiling 2024-01-11 16:51:18 -08:00
Jonathan Kelley
2ae3241cc0
Merge branch 'master' into jk/breaking-merged 2024-01-11 16:04:36 -08:00
Evan Almloff
b6ea395338 enable serde dependency in the html crate even if eval is disabled 2024-01-11 15:40:44 -06:00
Jonathan Kelley
6f15e0e924
Fix ci failure on unused cfg deps 2024-01-08 14:37:05 -08:00
Jonathan Kelley
9c4d90350f
fix merge conflicts for files 2024-01-08 14:08:21 -08:00
Jonathan Kelley
5ccbeeab46
Merge branch 'master' into add-file-data-drag-event 2024-01-08 13:34:24 -08:00
Evan Almloff
194c9d43e3 fix merge 2024-01-08 14:51:35 -06:00
Evan Almloff
56798b3d1c Merge branch 'master' into add-file-data-drag-event 2024-01-08 14:16:09 -06:00
Evan Almloff
b180b501f7 Merge branch 'master' into fullstack-binary-size-compile-times 2024-01-08 13:18:05 -06:00
Evan Almloff
438c03ad68 fix the double click event 2024-01-08 13:10:09 -06:00
Jonathan Kelley
ac326e4dfd
Fix clippy with features 2024-01-08 10:35:10 -08:00
Jonathan Kelley
44c9697021
Fix merge conflicts 2024-01-08 10:26:33 -08:00
Jonathan Kelley
7f6e2dd64b
Merge branch 'master' into get-parsed-values-for-form-values 2024-01-08 09:57:03 -08:00
Jonathan Kelley
211dd64d92
Merge branch 'master' into issue-1179 2024-01-08 09:39:41 -08:00
Jonathan Kelley
b8a47d04d6
fmt 2024-01-07 00:05:31 -08:00
Evan Almloff
88e2da6c11 update the web renderer to the new dioxus core 2024-01-06 16:44:07 -06:00
Evan Almloff
f4af297777 merge upstream 2024-01-06 16:14:22 -06:00
Evan Almloff
53422ae199 fix the ondouble click desktop test 2024-01-06 15:55:43 -06:00
Evan Almloff
f3ad445882 fix hydration 2024-01-06 09:08:51 -06:00
Evan Almloff
e5df83ceec Merge branch 'master' into pr/atty303/1349 2024-01-06 08:52:37 -06:00
Evan Almloff
3865f44081 make desktop compile 2024-01-05 14:39:45 -06:00
Evan Almloff
dccfba12d8 Merge branch 'master' into events-2 2024-01-04 19:02:00 -06:00
Evan Almloff
3ad16ddd37 rip out more lifetimes 2024-01-04 18:33:01 -06:00
Jonathan Kelley
799be5e4e3
Merge branch 'master' into jk/global-window-fun 2024-01-04 10:22:10 -08:00
Jonathan Kelley
73637987f3
Merge pull request #1719 from willcrichton/dev
Add custom asset handler to desktop config
2024-01-04 09:56:12 -08:00
Evan Almloff
682beeccfd fallback to global attributes when mapping rsx rosetta html attribute names 2024-01-03 15:45:19 -06:00
Evan Almloff
bc557906fe fix formatting 2024-01-03 15:18:37 -06:00
Evan Almloff
afb258b658 Fix elements and attributes mapping for dx translate 2024-01-03 15:18:27 -06:00
ealmloff
937be8b752
fix the on double click event and depreciate ondblclick (#1743) 2024-01-03 14:02:08 -06:00
Alex Parrill
6b7545f60a
Add loading attribute to img element (#1699)
Useful for lazy loading: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#loading
2023-12-07 16:13:50 -06:00
Jonathan Kelley
ecb1b61b65
Merge pull request #1664 from ealmloff/fix-svg-hot-reload
Fix hot reloading svg elements
2023-12-06 21:34:05 -08:00
Evan Almloff
141554a786 remove logging 2023-11-26 09:23:27 -06:00
Evan Almloff
1c0b33cef4 fix hot reloading svg elements 2023-11-26 09:21:27 -06:00
tigerros
d9220d4e42
Add it (#1660) 2023-11-23 16:44:39 -06:00
Evan Almloff
23090cb56b optimize fullstack compile times 2023-11-21 14:46:47 -06:00
ealmloff
20bbf95979
document parsed_values and FormValue 2023-11-14 10:45:53 -06:00
Bunny Bites
a74e6d82c7 rename parse_json to parsed_values 2023-11-12 13:09:51 +05:30
Bunny Bites
13a82a3705 remove serde and serde_json from serialize dependency. 2023-11-11 21:55:08 +05:30
Bunny Bites
48295b021c remove optional config of serde_json 2023-11-11 21:27:44 +05:30
Bunny Bites
8183935f66 remove unwanted cloning while passing reference. 2023-11-11 09:36:26 +05:30
Bunny Bites
c6b39c05b7 1. remove value_types from FormData.
2. modify type of values to accept dynamic type.
2023-11-10 11:44:19 +05:30
Bunny Bites
9f0e000295 provide proper error message 2023-11-09 11:09:07 +05:30
Bunny Bites
2cbbdc23c6 add impl fn for FormData to get input types 2023-11-09 11:04:47 +05:30
Bunny Bites
1a9d1eda19 optimize hashmap insertion 2023-11-09 00:41:50 +05:30
Bunny Bites
f1533781a4 add fn to convert hashmap to json 2023-11-09 00:38:22 +05:30
Bunny Bites
d54ec57192 1. migrated code to form.rs
2. made get_parsed_values as private fn.
3. handled multi-valued data while parsing
2023-11-05 08:16:09 +05:30
Evan Almloff
5fdff4b7ed bump wry to 0.34 2023-10-31 13:49:29 -05:00
Evan Almloff
77d53df532 Merge branch 'master' into pr/atty303/1349 2023-10-31 13:39:20 -05:00
ealmloff
5bb06b9719
Merge branch 'master' into events-2 2023-10-30 15:37:29 -05:00
Jonathan Kelley
dd4547d753
Feat: add global context functions
Add functions like window() and router() to
allow dynamically grabbing global contexts
without have to use the hook variants.

Deprecates the existing hook variants to
discourage folks from adding more noise
to their codebases.
2023-10-23 16:26:10 -04:00
Evan Almloff
3bf6d2d7cf add must use to several hooks 2023-10-14 12:08:54 -05:00
Oak
f3a749538b
feat: initial_checked attribute for inputs (#1540)
Mapped to defaultChecked property of HTMLInputElement.
2023-10-12 08:12:09 -05:00
Leonard
2d1234c3d1
Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
ealmloff
072ca3529b
Merge branch 'DioxusLabs:master' into events-2 2023-10-02 19:48:52 -05:00
Oak
5bcb772511
feat: initial_selected attribute for options (#1508) 2023-10-02 14:08:09 -05:00
Evan Almloff
ee25c03e74 fix some clippy lints 2023-09-27 10:13:45 -05:00
Evan Almloff
b60671e0fe fix non extending attributes 2023-09-27 10:02:49 -05:00
Evan Almloff
7033276c34 Merge branch 'master' into pr/atty303/1349 2023-09-20 16:19:23 -05:00
Evan Almloff
fc8c25280a allow many attributes to be attached to one element 2023-09-20 16:02:04 -05:00
Evan Almloff
dc446b5e5b fix extending an element 2023-09-19 16:38:27 -05:00
Evan Almloff
219c068283 Merge branch 'master' into events-2 2023-09-17 20:01:21 -05:00
Evan Almloff
847801908f Merge branch 'master' into add-file-data-drag-event 2023-09-17 18:56:59 -05:00
marc2332
7f8c963cd9
fix: Update doc links from v3 to v4 2023-09-16 19:03:27 +02:00
Evan Almloff
27f4b3f345 add touches_changed and target_touches 2023-09-12 17:45:07 -05:00
Evan Almloff
c10700c962 add touch data to touch events 2023-09-12 17:28:55 -05:00
Evan Almloff
b47064165e Merge branch 'events-2' of https://github.com/Demonthos/dioxus into events-2 2023-09-12 10:01:55 -05:00
Evan Almloff
a9bb04722f split the point interaction trait into smaller traits for touch compatibility 2023-09-12 10:01:53 -05:00
ealmloff
f449823d10
Merge branch 'master' into events-2 2023-09-12 09:33:54 -05:00
Evan Almloff
c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff
d06e64e5ad fix dioxus-tui events 2023-09-06 12:51:02 -05:00
Valentin Golev
e8ea228759
add initial_value to textarea (#1434) 2023-09-06 12:49:29 -05:00
Evan Almloff
0ab7a02777 fix clippy 2023-09-05 21:30:20 -05:00
Evan Almloff
bd38cddc9f fix dioxus core event tests 2023-09-04 19:17:43 -05:00
Evan Almloff
df222c121a port examples to new events 2023-09-01 15:38:55 -05:00
Evan Almloff
dee92b83be remove the serde feature flag from enumset 2023-09-01 15:06:30 -05:00
Evan Almloff
364654e1fd fix clippy with events 2023-08-31 16:43:24 -05:00
Evan Almloff
bf90b7584e add some inline hints 2023-08-31 16:42:33 -05:00
Evan Almloff
3c01593703 document HtmlEventConverter 2023-08-31 16:38:14 -05:00