-
sam edelsten authored
* internal placeholder plugin * fix panic on placeholder editor input * remove autofocus in placeholder example * make `Placeholder.active` private * remove placeholder on input * fix multi-byte char in placeholder * show placeholder on empty editor * add guards to placeholder add fns * fix placeholder displaying incorrectly on input * fix flash when backspacing empty placeholder also properly fix the first-char display error * hacky fix for delete key breaking placeholder * fix newline issues in placeholder * fix clippy * update changelog, bump version --------- Co-authored-by:
StaffEngineer <111751109+StaffEngineer@users.noreply.github.com> Co-authored-by:
StaffEngineer <velo.app1@gmail.com>
Unverifiedaa836324
This project manages its dependencies using Cargo.
Learn more
Cargo.toml 1.22 KiB
workspace = { members = ["util"] }
[package]
name = "bevy_cosmic_edit"
version = "0.18.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Bevy cosmic-text multiline text input"
repository = "https://github.com/StaffEngineer/bevy_cosmic_edit"
readme = "Readme.md"
keywords = ["bevy"]
exclude = ["assets/*"]
[features]
multicam = []
placeholder = []
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bevy = { version = "0.13", default-features = false, features = [
"bevy_asset",
"bevy_core_pipeline",
"bevy_render",
"bevy_scene",
"bevy_sprite",
"bevy_text",
"bevy_ui",
"bevy_winit",
"png",
"x11",
"webgpu",
] }
cosmic-text = { version = "0.11.2" }
# TODO: move crossbeam to wasm32, once input.rs has separate wasm copy/paste fn
crossbeam-channel = "0.5.8"
image = "0.24.6"
sys-locale = "0.3.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
arboard = "3.2.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
js-sys = "0.3.67"
wasm-bindgen = "0.2.92"
wasm-bindgen-futures = "0.4.42"
web-sys = { version = "0.3.67", features = [
"Clipboard",
"Navigator",
"Window",
] }
[dev-dependencies]
insta = "1.29.0"
util = { path = "./util/" }