leptos-use 0.20.0

Collection of essential Leptos utilities inspired by React-Use / VueUse
Documentation
//! Generated by the micro crate split: deprecated forwarding wrappers.

pub mod use_mutation_observer {
    use ::leptos_use_element::*;

    #[doc = " Deprecated forwarding wrapper of [`leptos_use_element::use_mutation_observer`](https://docs.rs/leptos-use-element/latest/leptos_use_element/fn.use_mutation_observer.html).\n\n Add the `leptos-use-element` crate to your dependencies and use `leptos_use_element::use_mutation_observer` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-element` to your dependencies and use `leptos_use_element::use_mutation_observer` instead."
    )]
    #[inline(always)]
    pub fn use_mutation_observer<El, M, F>(
        target: El,
        callback: F,
    ) -> UseMutationObserverReturn<impl Fn() + Clone + Send + Sync>
    where
        El: IntoElementsMaybeSignal<web_sys::Element, M>,
        F: FnMut(Vec<web_sys::MutationRecord>, web_sys::MutationObserver) + 'static,
    {
        ::leptos_use_element::use_mutation_observer::<El, M, F>(target, callback)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_element::use_mutation_observer_with_options`](https://docs.rs/leptos-use-element/latest/leptos_use_element/fn.use_mutation_observer_with_options.html).\n\n Add the `leptos-use-element` crate to your dependencies and use `leptos_use_element::use_mutation_observer_with_options` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-element` to your dependencies and use `leptos_use_element::use_mutation_observer_with_options` instead."
    )]
    #[cfg_attr(feature = "ssr", allow(unused_variables, unused_mut))]
    #[inline(always)]
    pub fn use_mutation_observer_with_options<El, M, F>(
        target: El,
        callback: F,
        options: UseMutationObserverOptions,
    ) -> UseMutationObserverReturn<impl Fn() + Clone + Send + Sync>
    where
        El: IntoElementsMaybeSignal<web_sys::Element, M>,
        F: FnMut(Vec<web_sys::MutationRecord>, web_sys::MutationObserver) + 'static,
    {
        ::leptos_use_element::use_mutation_observer_with_options::<El, M, F>(
            target, callback, options,
        )
    }
}

pub mod element_maybe_signal {

    use leptos::reactive::wrappers::read::Signal;
    use send_wrapper::SendWrapper;
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_element::el_by_sel`](https://docs.rs/leptos-use-element/latest/leptos_use_element/fn.el_by_sel.html).\n\n Add the `leptos-use-element` crate to your dependencies and use `leptos_use_element::el_by_sel` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-element` to your dependencies and use `leptos_use_element::el_by_sel` instead."
    )]
    #[inline(always)]
    pub fn el_by_sel<T>(sel: &str) -> Option<T>
    where
        T: From<web_sys::Element> + Clone,
    {
        ::leptos_use_element::el_by_sel::<T>(sel)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_element::el_signal_by_sel`](https://docs.rs/leptos-use-element/latest/leptos_use_element/fn.el_signal_by_sel.html).\n\n Add the `leptos-use-element` crate to your dependencies and use `leptos_use_element::el_signal_by_sel` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-element` to your dependencies and use `leptos_use_element::el_signal_by_sel` instead."
    )]
    #[inline(always)]
    pub fn el_signal_by_sel<T>(sel: &str) -> Signal<Option<SendWrapper<T>>>
    where
        T: From<web_sys::Element> + Clone + 'static,
    {
        ::leptos_use_element::el_signal_by_sel::<T>(sel)
    }
}

pub mod elements_maybe_signal {

    use leptos::prelude::*;
    use send_wrapper::SendWrapper;
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_element::els_by_sel`](https://docs.rs/leptos-use-element/latest/leptos_use_element/fn.els_by_sel.html).\n\n Add the `leptos-use-element` crate to your dependencies and use `leptos_use_element::els_by_sel` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-element` to your dependencies and use `leptos_use_element::els_by_sel` instead."
    )]
    #[inline(always)]
    pub fn els_by_sel<T>(sel: &str) -> Vec<Option<SendWrapper<T>>>
    where
        T: From<web_sys::Element> + Clone,
    {
        ::leptos_use_element::els_by_sel::<T>(sel)
    }
    #[doc = " Deprecated forwarding wrapper of [`leptos_use_element::els_signal_by_sel`](https://docs.rs/leptos-use-element/latest/leptos_use_element/fn.els_signal_by_sel.html).\n\n Add the `leptos-use-element` crate to your dependencies and use `leptos_use_element::els_signal_by_sel` instead."]
    #[deprecated(
        since = "0.20.0",
        note = "leptos-use has been split into micro crates. Add `leptos-use-element` to your dependencies and use `leptos_use_element::els_signal_by_sel` instead."
    )]
    #[inline(always)]
    pub fn els_signal_by_sel<T>(sel: &str) -> Signal<Vec<Option<SendWrapper<T>>>>
    where
        T: From<web_sys::Element> + Clone + 'static,
    {
        ::leptos_use_element::els_signal_by_sel::<T>(sel)
    }
}