From 2f585b0edd55eb67fe639614dfac7d7e94fa3b94 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 24 Nov 2026 16:49:09 +0000 Subject: [PATCH] Repin to craft-libs 3ad64a26ea: grid host-canvas registration back, semibold font mapping removed --- Cargo.lock | 98 +++++++++++++------------- Cargo.toml | 42 +++++------ apps/gridcraft-web/Cargo.toml | 4 +- crates/ui-egui/Cargo.toml | 2 +- crates/ui-egui/src/framework.rs | 15 +++- crates/ui-egui/src/grid/interact.rs | 1 + crates/ui-egui/src/theme/font_setup.rs | 8 +-- 7 files changed, 89 insertions(+), 81 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 500f75e9d..0de666c07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1034,7 +1034,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "block2 0.6.2", "objc2-app-kit 0.3.2", @@ -1044,7 +1044,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "rustix 1.1.6", ] @@ -1052,7 +1052,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1070,12 +1070,12 @@ dependencies = [ [[package]] name = "craft-cfb" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "egui", ] @@ -1083,12 +1083,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" [[package]] name = "craft-csv" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "thiserror 2.0.21", ] @@ -1096,7 +1096,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "serde", ] @@ -1104,7 +1104,7 @@ dependencies = [ [[package]] name = "craft-drawingml" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "chrono", "craft-xml", @@ -1116,7 +1116,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "harfrust 0.13.3", "kurbo", @@ -1130,12 +1130,12 @@ dependencies = [ [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" [[package]] name = "craft-gridcraft-format" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "serde", "serde_json", @@ -1145,7 +1145,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1158,7 +1158,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "chrono", "fixed_decimal", @@ -1186,7 +1186,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-host", "craft-i18n", @@ -1201,7 +1201,7 @@ dependencies = [ [[package]] name = "craft-math" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-xml", "roxmltree", @@ -1211,7 +1211,7 @@ dependencies = [ [[package]] name = "craft-mcp-server" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "serde_json", ] @@ -1219,7 +1219,7 @@ dependencies = [ [[package]] name = "craft-odf" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "aes", "base64 0.23.1", @@ -1237,7 +1237,7 @@ dependencies = [ [[package]] name = "craft-ods" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-odf", "craft-sheet", @@ -1248,7 +1248,7 @@ dependencies = [ [[package]] name = "craft-offcrypto" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "aes", "base64 0.23.1", @@ -1265,7 +1265,7 @@ dependencies = [ [[package]] name = "craft-opc" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-xml", "craft-zip", @@ -1276,7 +1276,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "serde", ] @@ -1284,7 +1284,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "async-channel", "async-io", @@ -1315,7 +1315,7 @@ dependencies = [ [[package]] name = "craft-print" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-behavior", "craft-host", @@ -1339,7 +1339,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "dispatch2", "objc2 0.6.5", @@ -1351,7 +1351,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-atomic", "craft-host", @@ -1368,12 +1368,12 @@ dependencies = [ [[package]] name = "craft-sheet" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" [[package]] name = "craft-stream-codecs" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "fax", "hayro-ccitt", @@ -1384,7 +1384,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-xml", "flate2", @@ -1401,7 +1401,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -1416,12 +1416,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -1435,7 +1435,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-behavior", "craft-i18n", @@ -1451,7 +1451,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "accesskit", "craft-behavior", @@ -1489,7 +1489,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -1500,7 +1500,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-behavior", "craft-host", @@ -1518,7 +1518,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-behavior", "craft-host", @@ -1539,7 +1539,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-behavior", "craft-host", @@ -1559,7 +1559,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-behavior", "craft-host", @@ -1578,7 +1578,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "chrono", "craft-host", @@ -1607,7 +1607,7 @@ dependencies = [ [[package]] name = "craft-web-api" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "js-sys", "serde_json", @@ -1618,7 +1618,7 @@ dependencies = [ [[package]] name = "craft-web-host" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-host", "craft-platform", @@ -1630,7 +1630,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "winsafe", ] @@ -1638,7 +1638,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-appkit", "craft-atomic", @@ -1670,7 +1670,7 @@ dependencies = [ [[package]] name = "craft-xls" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-cfb", "craft-sheet", @@ -1683,7 +1683,7 @@ dependencies = [ [[package]] name = "craft-xlsx" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "craft-drawingml", "craft-opc", @@ -1695,7 +1695,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "quick-xml 0.41.0", "serde", @@ -1705,7 +1705,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "flate2", "thiserror 2.0.21", @@ -3210,7 +3210,7 @@ checksum = "9f4d0e94ddd48749f06bbe4e5389fb9799a0c45bcaf00495042076ef05e3241a" [[package]] name = "hayro-jbig2" version = "0.3.0" -source = "git+https://github.com/aiongg/craft-libs?rev=2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414#2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" +source = "git+https://github.com/aiongg/craft-libs?rev=3ad64a26ea8a72c03c416681e14f7744393790b1#3ad64a26ea8a72c03c416681e14f7744393790b1" dependencies = [ "hayro-ccitt", ] diff --git a/Cargo.toml b/Cargo.toml index d951a4d5e..e668246aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,29 +30,29 @@ gridcraft-math = { path = "crates/math" } # ui-egui, craft-print in the app, craft-web-api and craft-web-host in the web app) comes from one # craft-libs revision. # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "=0.1.0", features = ["ui"] } +craft-update = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "=0.1.0", features = ["ui"] } # PDF RunLength encoding; this revision also fixes the vendored JBIG2 dependency for Git consumers. -craft-pdf = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0", default-features = false } -craft-stream-codecs = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } +craft-pdf = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0", default-features = false } +craft-stream-codecs = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } # Compound files ([MS-CFB]) and password-encrypted OOXML packages ([MS-OFFCRYPTO]). -craft-cfb = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-offcrypto = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-ods = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } +craft-cfb = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-offcrypto = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-ods = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } # OPC zip packages (parts, relationships, the zip writer) under `crates/xlsx/src/package.rs`. -craft-opc = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } +craft-opc = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } # Delimited text (CSV, TSV) and SYLK; `crates/xlsx/src/csv.rs` and `crates/engine/src/io/sylk.rs` # turn them into workbooks. -craft-csv = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-math = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } +craft-csv = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-math = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } # The native JSON workbook (`.json`, `.scjson`): read, written, and kept newer macros written back. -craft-gridcraft-format = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } +craft-gridcraft-format = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } # Excel 97-2003 (.xls, BIFF8) workbooks; `crates/xlsx/src/xls.rs` maps them onto the model. # SpreadsheetML worksheet/drawing/string/package XML; workbook model mapping stays in gridcraft-xlsx. -craft-xlsx = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-xml = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-xls = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-drawingml = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-mcp-server = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "=0.1.0" } +craft-xlsx = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-xml = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-xls = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-drawingml = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-mcp-server = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "=0.1.0" } # foundation thiserror = "2" @@ -92,15 +92,15 @@ skrifa = { version = "0.44", default-features = false, features = ["std"] } epaint_default_fonts = "0.37" # One native window per workbook: the window list, Window menu titles and the immediate-viewport # driver. Same craft-libs revision as craft-update above. -craft-window = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", default-features = false, features = ["ui"] } +craft-window = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", default-features = false, features = ["ui"] } # The UI runtime GridCraft's egui UI is hosted by (`crates/ui-egui/src/framework.rs`): who the app is # to the framework's dialogs, the runtime's key bindings, the theme mode, window placement and the # printer controls. Same craft-libs revision as above. -craft-behavior = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" } -craft-host = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" } -craft-keymap = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" } -craft-theme = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" } -craft-print = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", features = ["ui"] } +craft-behavior = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1" } +craft-host = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1" } +craft-keymap = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1" } +craft-theme = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1" } +craft-print = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", features = ["ui"] } [workspace.lints.rust] unsafe_code = "forbid" diff --git a/apps/gridcraft-web/Cargo.toml b/apps/gridcraft-web/Cargo.toml index 72ff4daa3..f2aa0e548 100644 --- a/apps/gridcraft-web/Cargo.toml +++ b/apps/gridcraft-web/Cargo.toml @@ -18,8 +18,8 @@ gridcraft-engine = { workspace = true } gridcraft-ui-egui = { workspace = true } # The host messages (storytold/craft-libs): one contract and one bridge for the web builds. # The page command API (storytold/craft-libs#413): window.gridcraft over the control channel. -craft-web-api = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } -craft-web-host = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414", version = "0.1.0" } +craft-web-api = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } +craft-web-host = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1", version = "0.1.0" } egui = { workspace = true } log = { workspace = true } serde_json = { workspace = true } diff --git a/crates/ui-egui/Cargo.toml b/crates/ui-egui/Cargo.toml index 42502bc63..42e637df1 100644 --- a/crates/ui-egui/Cargo.toml +++ b/crates/ui-egui/Cargo.toml @@ -11,7 +11,7 @@ workspace = true [dependencies] # The UI runtime that hosts this egui UI (`src/framework.rs`) and the framework dialogs, from the # one craft-libs revision every craft-libs dependency uses (see the root Cargo.toml). -craft-ui = { git = "https://github.com/aiongg/craft-libs", rev = "2f8d73e7cf93ec207c5b9e8d8f6630cda1eaa414" } +craft-ui = { git = "https://github.com/aiongg/craft-libs", rev = "3ad64a26ea8a72c03c416681e14f7744393790b1" } craft-behavior = { workspace = true } craft-host = { workspace = true } craft-keymap = { workspace = true } diff --git a/crates/ui-egui/src/framework.rs b/crates/ui-egui/src/framework.rs index 8483c49b1..3bcbf9711 100644 --- a/crates/ui-egui/src/framework.rs +++ b/crates/ui-egui/src/framework.rs @@ -4,9 +4,10 @@ //! The framework dialogs run on [`SheetApp::framework_dialogs`] after GridCraft's own UI. //! //! The runtime takes Escape, Tab and the clipboard events for the whole window unless one of GridCraft's own egui -//! widgets has the keyboard. The grid takes egui's focus whenever nothing else has it, so its keys and the clipboard -//! events stay in egui's input; the window's Escape, while none of GridCraft's widgets has the keyboard, is read with -//! [`escape_pressed`] and taken with [`consume_escape`]. +//! widgets has the keyboard. The window's Escape is read with [`escape_pressed`] and taken with [`consume_escape`]; +//! the grid is declared to the runtime with [`host_canvas`], which keeps Tab, the edit chords and the clipboard +//! events in egui's input for GridCraft's shortcuts. A grid that holds egui focus keeps Escape and the clipboard +//! events in egui as one of GridCraft's own widgets does. use std::sync::{Arc, OnceLock}; @@ -16,6 +17,7 @@ use craft_keymap::Overrides; use craft_ui::fonts::{I18nScripts, SystemFonts, UiFonts}; use craft_ui::runtime::commands::{CommandInput, CommandSet as _, QuitCommand}; use craft_ui::runtime::env::{RootEnv, Scale}; +use craft_ui::runtime::focus::{EditSet, KeepKeys, KeyUse}; use craft_ui::runtime::frame::{FrameInput, FrameOutput}; use craft_ui::runtime::keys::{Intent, with_window_intents}; use craft_ui::shell::embed; @@ -116,6 +118,13 @@ impl SheetApp { } } +/// Declares the grid `id`, drawn in this pass, as the window's document canvas. Tab, the edit chords and the +/// clipboard events stay in egui's input for GridCraft's shortcuts, as do the arrows, Enter and the page keys. +pub(crate) fn host_canvas(ctx: &egui::Context, id: egui::Id) { + const KEYS: KeyUse = KeyUse::CANVAS.with_keep(KeepKeys::Tab).with_edits(EditSet::ALL); + craft_ui::runtime::focus::host_canvas(ctx, id, KEYS); +} + /// Whether Escape was pressed in this pass: from egui while one of GridCraft's own widgets or popups has the /// keyboard, otherwise the window's cancel, which the runtime routes to no component. Leaves it for later readers. pub(crate) fn escape_pressed(ctx: &egui::Context) -> bool { diff --git a/crates/ui-egui/src/grid/interact.rs b/crates/ui-egui/src/grid/interact.rs index 3c754deec..736bc4ad9 100644 --- a/crates/ui-egui/src/grid/interact.rs +++ b/crates/ui-egui/src/grid/interact.rs @@ -648,6 +648,7 @@ fn handle_context_menu_and_keyboard(app: &mut SheetApp, input: &InteractionInput if primary_clicked || resp.drag_started() { resp.request_focus(); } + crate::framework::host_canvas(&ctx, resp.id); keyboard(app, &ctx, resp, geo, sh); } diff --git a/crates/ui-egui/src/theme/font_setup.rs b/crates/ui-egui/src/theme/font_setup.rs index a2819d7fd..72f5058eb 100644 --- a/crates/ui-egui/src/theme/font_setup.rs +++ b/crates/ui-egui/src/theme/font_setup.rs @@ -526,13 +526,11 @@ pub(super) fn font_definitions_impl( if let Some(ui) = fonts.families.get(&FontFamily::Name(UI.into())).cloned() { fonts.families.insert(FontFamily::Proportional, ui); } - // The framework's dialogs draw in two families of their own besides the proportional and - // monospace ones: the signature family follows the proportional one, and the semibold family - // (titles, strong text) is the bold UI face. A family left out draws missing-glyph boxes. + // The framework's signature family follows the proportional one; a family left out draws + // missing-glyph boxes. Its semibold role falls back to the proportional family when the + // definitions have no semibold family. let proportional = fonts.families.get(&FontFamily::Proportional).cloned().unwrap_or_default(); - let bold = fonts.families.get(&FontFamily::Name(UI_BOLD.into())).cloned().unwrap_or_else(|| proportional.clone()); fonts.families.insert(craft_ui::fonts::FontRef::signature().family(), proportional); - fonts.families.insert(FontFamily::Name(craft_ui::fonts::SEMIBOLD.into()), bold); // Installed workbook fonts, so a cell's chosen font actually renders in it. They are bound // after the proportional chain has the script faces, which their chains end with. for (family, faces) in installed {