Commit Graph
397 Commits
Author SHA1 Message Date
Evan Almloff 5b6f9d6b80 fix merge 2024-01-06 08:58:49 -06:00
Evan Almloff e5df83ceec Merge branch 'master' into pr/atty303/1349 2024-01-06 08:52:37 -06:00
Evan Almloff 0388a5c1f4 fix formatting 2024-01-04 19:21:06 -06:00
Jonathan Kelley ea1325f6e8 Merge branch 'master' into polish-throw 2024-01-04 10:27:51 -08:00
Evan Almloff b91e97ca43 document events are only triggerable on elements 2023-12-16 19:54:26 -06:00
Evan Almloff 6141aeb037 polish the throw trait 2023-11-07 18:24:07 -06:00
Evan Almloff ed95ac932d fix double triggering events 2023-10-04 08:58:28 -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 98335bd9a6 Merge branch 'master' into fix-event-bubbling 2023-09-17 20:00:22 -05:00
Jonathan Kelley 13f10fea1b Merge pull request #1441 from ealmloff/fix-uplink
Expose public methods for manipulating the global runtime
2023-09-16 11:59:59 -07:00
Leonard c866ae602b Add system for creating component attributes + new #[component] attribute (#1448)
* Add `#[component]` attribute + system for creating component attributes + other stuff

* Delete inlineprops.rs

* Update inline_props.rs

* Cargo fmt

* Fix clippy warnings and paths in props/mods.rs

* Include where clause in `#[inline_props]` output

* Allow Clippy type complexity in `LinkProps`

* Allow the type complexity lint for the entire link.rs file

* Remove snake_case -> PascalCase converter, but rather enforce PascalCase

Also:
- Put the second function inside the main one instead of besides it.
- Simplify

* Simplify type check lints so they don't return false positives

They will not always work, but they won't return any false positives, like for aliases. This is likely going to be replaced by a more polished Clippy-backed linting system.

* Fix #583

* Cargo fmt

* Add docs for `deserialize()` and remove useless comment

* Add `#[component]` to prelude

* Merge branch 'master' of https://github.com/tigerros/dioxus

* #[inline_props] is no more. Except in the docs folder, but that's going to be removed

* Remove docs folder

* Remove docs from workspace

* Resolve `DeserializerOutput` conversation
2023-09-15 09:13:36 -05:00
Evan Almloff 589483d892 remove logs 2023-09-11 16:18:55 -05:00
Evan Almloff d81d3ebaef assign parents through fragments 2023-09-11 16:16:16 -05:00
Evan Almloff 35b643e23f switch to bubble ids on vnodes to fix nodes under fragments pointing to an invalid parent 2023-09-11 15:55:58 -05:00
Evan Almloff 9496853fbc expose public methods for manipulating the global runtime 2023-09-08 10:05:58 -05:00
Evan Almloff c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff 992ac4a3fb clear borrowed props after ensure_drop_safety 2023-09-06 16:12:01 -05:00
Evan Almloff 02456c1068 fix double drop of bubble id 2023-09-05 21:21:54 -05:00
Evan Almloff 9552ab6c1c pass event propagation test 2023-09-04 19:10:11 -05:00
Evan Almloff cfc6887e34 use raw pointers instead of transmute to make miri happy 2023-09-04 09:28:16 -05:00
Evan Almloff b0733958f2 Merge branch 'master' into fix-event-bubbling 2023-08-29 13:00:01 -05:00
Jani MustonenandJani Mustonen 31f8bab20d Add ScopeId::ROOT (#1398)
* add ScopeId::ROOT

* replace ScopeId(0) with ScopeId::ROOT

---------

Co-authored-by: Jani Mustonen <jani.mustonen@taitounited.fi>
2023-08-25 08:31:23 -05:00
Evan Almloff dc4707ee2a WIP fix event bubbling 2023-08-23 13:01:37 -05:00
Evan Almloff e337aff0a4 WIP split element from element ref 2023-08-23 10:48:10 -05:00
Evan Almloff 0c17bdb737 don't subscribe in tasks or event handlers 2023-08-07 17:55:29 -07:00
Evan Almloff 6ca170453b handle virtual dom switching 2023-08-07 14:59:58 -07:00
Evan Almloff ddbe913e79 make signals non-breaking 2023-08-07 14:50:36 -07:00
Evan Almloff a6f611eccf fix subscriptions in events 2023-08-04 17:23:57 -07:00
Evan Almloff 0032f7e2af fix miri 2023-08-04 15:23:09 -07:00
Evan Almloff b09e528aaa fix recursive runtime drop impl 2023-08-04 14:14:56 -07:00
Evan Almloff 04cdb14e5b improve signal copy runtime 2023-08-04 13:53:05 -07:00
Evan Almloff c19420cb29 fix root component suspense 2023-07-25 12:51:12 -07:00
Jonathan Kelley 4240f8428c Fix: dont use bumpslab anymore, just box scopestates 2023-07-19 18:40:43 -07:00
Jonathan Kelley 2871c8bb4d Don't use boxed cell slice, use a refcell instead 2023-07-19 12:08:13 -07:00
Jonathan Kelley f0128a3150 implement suspense using simpler approach 2023-07-14 17:12:07 -07:00
Jonathan Kelley 81075748f6 add simple suspense methods 2023-07-14 16:56:17 -07:00
Jonathan Kelley cbd88bbcc3 Rip out async components 2023-07-14 16:15:20 -07:00
Nick Mosher b48cfe5730 fix: Remove dbg that was causing TUI rendering problems (#1085) 2023-06-19 08:29:29 -05:00
Evan Almloff 9d5f115e30 fix events triggering on placeholders causing panics 2023-06-02 14:21:49 -05:00
Evan Almloff d005f3481f fix non-bubbling event propagation 2023-04-10 09:45:16 -05:00
Evan Almloff 4847789a83 fix event bubbling within a single template 2023-03-12 14:47:30 -05:00
Evan Almloff ae028d82f8 use bump slab 2023-01-22 17:16:34 -06:00
Evan Almloff ba79d4babd don't-box-scopestates 2023-01-22 15:05:32 -06:00
Evan Almloff 8548b324f1 fix dropping nested scopes 2023-01-15 21:23:49 -06:00
Jonathan Kelley a45f16a773 chore: clean up comments 2023-01-14 11:57:36 -08:00
Jonathan Kelley ecaa68605d fix: trim start matches for events 2023-01-14 11:57:03 -08:00
Jonathan Kelley 40a36aa8e6 chore: use trim 2023-01-14 00:21:26 -08:00
Jonathan Kelley 8d59c626ea fix: listeners should not use hard indexing 2023-01-14 00:19:37 -08:00
Evan Almloff 09da9c04a8 Use zero cost option instead of null pointers 2023-01-12 15:42:23 -06:00