clean up prelude (#4416)

* clear away prelude on dioxus

* clippy

* wip - drop prelude from dioxus-html

* docs clippy

* wip

* more fixe

* delete all preludes

* doc...

* better export

* merge some imports

* fewer global imports

* global incremental renderer

* fix cargo doc
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-07-16 16:04:13 -07:00
1 parent 54d465a7b5
commit 4f1d039bad
140 files changed
+374 -477

No files matched your search

+2 -5
View File
@@ -2,11 +2,8 @@ use super::{Synthetic, WebEventExt};
use dioxus_html::{
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
input_data::{decode_mouse_button_set, MouseButton},
prelude::{
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
PointerInteraction,
},
HasDragData, HasFileData, HasMouseData,
HasDragData, HasFileData, HasMouseData, InteractionElementOffset, InteractionLocation,
Modifiers, ModifiersInteraction, PointerInteraction,
};
use web_sys::DragEvent;
+2 -3
View File
@@ -1,9 +1,8 @@
use std::str::FromStr;
use dioxus_html::{
input_data::decode_key_location,
prelude::{Code, Key, Location, Modifiers, ModifiersInteraction},
HasKeyboardData,
input_data::decode_key_location, Code, HasKeyboardData, Key, Location, Modifiers,
ModifiersInteraction,
};
use web_sys::KeyboardEvent;
+2 -5
View File
@@ -1,11 +1,8 @@
use dioxus_html::{
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
input_data::{decode_mouse_button_set, MouseButton},
prelude::{
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
PointerInteraction,
},
HasMouseData,
HasMouseData, InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
PointerInteraction,
};
use web_sys::MouseEvent;
+2 -5
View File
@@ -1,11 +1,8 @@
use dioxus_html::{
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
input_data::{decode_mouse_button_set, MouseButton},
prelude::{
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
PointerInteraction,
},
HasPointerData,
HasPointerData, InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
PointerInteraction,
};
use web_sys::PointerEvent;
+1 -2
View File
@@ -1,7 +1,6 @@
use dioxus_html::{
geometry::{ClientPoint, PagePoint, ScreenPoint},
prelude::{InteractionLocation, Modifiers, ModifiersInteraction},
HasTouchPointData, TouchPoint,
HasTouchPointData, InteractionLocation, Modifiers, ModifiersInteraction, TouchPoint,
};
use web_sys::{Touch, TouchEvent};
+2 -5
View File
@@ -1,11 +1,8 @@
use dioxus_html::{
geometry::{ClientPoint, ElementPoint, PagePoint, ScreenPoint},
input_data::{decode_mouse_button_set, MouseButton},
prelude::{
InteractionElementOffset, InteractionLocation, Modifiers, ModifiersInteraction,
PointerInteraction,
},
HasMouseData, HasWheelData,
HasMouseData, HasWheelData, InteractionElementOffset, InteractionLocation, Modifiers,
ModifiersInteraction, PointerInteraction,
};
use web_sys::WheelEvent;