Skip to content

Commit ec56826

Browse files
committed
Make create_dom_node and apply_dom_patches public
1 parent 93c6ae2 commit ec56826

File tree

4 files changed

+415
-343
lines changed

4 files changed

+415
-343
lines changed

crates/core/src/dom.rs

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,32 @@ mod effects;
1212
use cfg_if::cfg_if;
1313

1414
cfg_if! {if #[cfg(feature = "with-dom")] {
15+
mod application;
16+
mod dom_node;
17+
mod dom_patch;
18+
mod dom_attr;
19+
mod http;
20+
mod program;
21+
mod raf;
22+
mod ric;
23+
mod window;
24+
mod document;
25+
mod time;
26+
mod timeout;
27+
28+
pub mod events;
29+
pub mod dispatch;
30+
pub mod util;
31+
1532
pub use application::{Application, Measurements, SkipDiff, skip_if, skip_diff, SkipPath};
1633
pub use component::{stateful_component, StatefulComponent, StatefulModel, StatelessModel};
1734
pub use component::component;
18-
pub use dom_patch::{DomPatch, PatchVariant};
35+
pub use dispatch::Dispatch;
36+
pub use document::Document;
37+
pub use dom_patch::{DomPatch, PatchVariant, apply_dom_patches};
1938
pub use dom_attr::{DomAttr, DomAttrValue, GroupedDomAttrValues};
39+
pub use dom_node::DomNode;
40+
pub use dom_node::create_dom_node;
2041
pub use http::Http;
2142
pub use program::{MountAction, MountTarget, Program, MountProcedure};
2243
pub use util::{
@@ -26,29 +47,10 @@ cfg_if! {if #[cfg(feature = "with-dom")] {
2647
pub use raf::{request_animation_frame, AnimationFrameHandle};
2748
pub use ric::{request_idle_callback, IdleCallbackHandle, IdleDeadline};
2849
pub use timeout::{delay, request_timeout_callback, TimeoutCallbackHandle};
29-
pub use dispatch::Dispatch;
30-
use crate::dom::events::MountEvent;
3150
pub use window::Window;
32-
pub use dom_node::DomNode;
33-
pub use document::Document;
3451
pub use time::Time;
3552

36-
mod application;
37-
pub mod dispatch;
38-
mod dom_node;
39-
mod dom_patch;
40-
mod dom_attr;
41-
pub mod events;
42-
mod http;
43-
mod program;
44-
pub mod util;
45-
mod raf;
46-
mod ric;
47-
mod window;
48-
mod document;
49-
mod time;
50-
mod timeout;
51-
53+
use crate::dom::events::MountEvent;
5254

5355
/// Map the Event to DomEvent, which are browser events
5456
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)