mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 00:59:22 -05:00
clipboard is no longer behind unstable flags
This commit is contained in:
parent
294cbaf222
commit
1c9bbb6b08
4 changed files with 9 additions and 10 deletions
|
@ -3,6 +3,13 @@
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased] -
|
||||
|
||||
### Breaking Changes 🛠
|
||||
|
||||
- Updated to web_sys 0.3.70 which unfortunately is breaking some things.
|
||||
- `use_clipboard` doesn't need the unstable flags anymore.
|
||||
|
||||
## [0.11.4] - 2024-08-12
|
||||
|
||||
### New Features 🚀
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[build]
|
||||
rustflags = ["--cfg=web_sys_unstable_apis"]
|
|
@ -15,11 +15,6 @@ pub mod utils;
|
|||
// #[cfg(web_sys_unstable_apis)]
|
||||
// pub use use_webtransport::*;
|
||||
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
mod use_clipboard;
|
||||
#[cfg(web_sys_unstable_apis)]
|
||||
pub use use_clipboard::*;
|
||||
|
||||
mod is_err;
|
||||
mod is_none;
|
||||
mod is_ok;
|
||||
|
@ -31,6 +26,7 @@ mod sync_signal;
|
|||
mod use_active_element;
|
||||
mod use_breakpoints;
|
||||
mod use_broadcast_channel;
|
||||
mod use_clipboard;
|
||||
mod use_color_mode;
|
||||
mod use_cookie;
|
||||
mod use_css_var;
|
||||
|
@ -99,6 +95,7 @@ pub use sync_signal::*;
|
|||
pub use use_active_element::*;
|
||||
pub use use_breakpoints::*;
|
||||
pub use use_broadcast_channel::*;
|
||||
pub use use_clipboard::*;
|
||||
pub use use_color_mode::*;
|
||||
pub use use_cookie::*;
|
||||
pub use use_css_var::*;
|
||||
|
|
|
@ -10,9 +10,6 @@ use leptos::*;
|
|||
/// [Permissions API](https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API).
|
||||
/// Without user permission, reading or altering the clipboard contents is not permitted.
|
||||
///
|
||||
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
||||
/// > [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).
|
||||
///
|
||||
/// ## Demo
|
||||
///
|
||||
/// [Link to Demo](https://github.com/Synphonyte/leptos-use/tree/main/examples/use_clipboard)
|
||||
|
|
Loading…
Add table
Reference in a new issue