feat(insert): add docked block palette

Add a searchable block palette with previews, file import, collision-safe nested definitions, and dependency/table-record import. Keep palette thumbnails current across drawing switches and block-definition edits.
This commit is contained in:
Karim Jerbi authored and Hakan Seven committed 2026-08-06 11:02:52 +03:00
1 parent 67a767e23b
commit 8f009d0058
13 files changed
+1248 -22

No files matched your search

+3 -2
View File
@@ -1,9 +1,10 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/mview_block.svg"));
pub const ICON: IconKind =
IconKind::Svg(include_bytes!("../../../assets/icons/blocks/insert.svg"));
pub fn tool() -> ToolDef {
ToolDef {
id: "BLOCKPALETTE",
label: "Multi-View\nBlock",
label: "Block\nPalette",
icon: ICON,
event: ModuleEvent::Command("BLOCKPALETTE".to_string()),
}