From 77a4c9480a215ee82d460865962de1d982a615b6 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 24 Nov 2026 21:05:39 +0000 Subject: [PATCH] Repin craft-libs; IME click test reads the runtime's reset request; whole-point number label wrap --- Cargo.lock | 125 +++++++++++++++++--------------- Cargo.toml | 52 ++++++------- apps/figcraft-web/Cargo.toml | 4 +- crates/ui-egui/src/ime_tests.rs | 10 ++- crates/ui-egui/src/widgets.rs | 3 +- 5 files changed, 106 insertions(+), 88 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b25e271e9..b7069ba4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -284,7 +284,7 @@ dependencies = [ "objc2-foundation 0.3.2", "parking_lot", "percent-encoding", - "windows-sys 0.52.0", + "windows-sys 0.61.2", "wl-clipboard-rs", "x11rb", ] @@ -1154,7 +1154,7 @@ dependencies = [ [[package]] name = "craft-appkit" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "block2 0.6.2", "objc2-app-kit 0.3.2", @@ -1164,7 +1164,7 @@ dependencies = [ [[package]] name = "craft-atomic" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "rustix 1.1.6", ] @@ -1172,7 +1172,7 @@ dependencies = [ [[package]] name = "craft-behavior" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "accesskit", "bitflags 2.13.2", @@ -1190,7 +1190,7 @@ dependencies = [ [[package]] name = "craft-cloud-ui" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "egui", ] @@ -1198,12 +1198,12 @@ dependencies = [ [[package]] name = "craft-codepage" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-dds" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "rayon", ] @@ -1211,7 +1211,7 @@ dependencies = [ [[package]] name = "craft-docpath" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde", ] @@ -1219,7 +1219,7 @@ dependencies = [ [[package]] name = "craft-fig" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-figma-rest", "craft-kiwi", @@ -1234,7 +1234,7 @@ dependencies = [ [[package]] name = "craft-figcraft-format" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-zip", "serde", @@ -1246,7 +1246,7 @@ dependencies = [ [[package]] name = "craft-figma-rest" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde", "serde_json", @@ -1256,7 +1256,7 @@ dependencies = [ [[package]] name = "craft-font-catalog" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "fontique", "harfrust 0.13.3", @@ -1271,7 +1271,7 @@ dependencies = [ [[package]] name = "craft-font-store" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "cap-primitives", "craft-atomic", @@ -1287,17 +1287,18 @@ dependencies = [ "thiserror 2.0.21", "toml", "ureq", + "wuff", ] [[package]] name = "craft-fonts-build" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-gif" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "gif", "image", @@ -1306,7 +1307,7 @@ dependencies = [ [[package]] name = "craft-host" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "bitflags 2.13.2", "craft-i18n", @@ -1319,7 +1320,7 @@ dependencies = [ [[package]] name = "craft-i18n" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "chrono", "fixed_decimal", @@ -1347,7 +1348,7 @@ dependencies = [ [[package]] name = "craft-image-codecs" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-dds", "craft-jpeg", @@ -1374,7 +1375,7 @@ dependencies = [ [[package]] name = "craft-jpeg" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "thiserror 2.0.21", ] @@ -1382,7 +1383,7 @@ dependencies = [ [[package]] name = "craft-keymap" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-host", "craft-i18n", @@ -1397,12 +1398,12 @@ dependencies = [ [[package]] name = "craft-kiwi" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-menu" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -1420,7 +1421,7 @@ dependencies = [ [[package]] name = "craft-metadata" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "brotli-decompressor", "chrono", @@ -1432,7 +1433,7 @@ dependencies = [ [[package]] name = "craft-pdf" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "krilla", "serde", @@ -1442,7 +1443,7 @@ dependencies = [ [[package]] name = "craft-penpot" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-zip", "serde", @@ -1453,7 +1454,7 @@ dependencies = [ [[package]] name = "craft-platform" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "async-channel", "async-io", @@ -1484,7 +1485,7 @@ dependencies = [ [[package]] name = "craft-quit" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "dispatch2", "egui", @@ -1497,7 +1498,7 @@ dependencies = [ [[package]] name = "craft-settings" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-atomic", "craft-host", @@ -1514,7 +1515,7 @@ dependencies = [ [[package]] name = "craft-sketch" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-figma-rest", "craft-zip", @@ -1526,7 +1527,7 @@ dependencies = [ [[package]] name = "craft-svg" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-image-codecs", "craft-xml", @@ -1545,7 +1546,7 @@ dependencies = [ [[package]] name = "craft-theme" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "bitflags 2.13.2", "craft-tracked", @@ -1560,7 +1561,7 @@ dependencies = [ [[package]] name = "craft-tiff" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "serde", "thiserror 2.0.21", @@ -1570,12 +1571,12 @@ dependencies = [ [[package]] name = "craft-tracked" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" [[package]] name = "craft-ui" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-cloud-ui", "craft-ui-canvas", @@ -1589,7 +1590,7 @@ dependencies = [ [[package]] name = "craft-ui-canvas" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-i18n", @@ -1605,7 +1606,7 @@ dependencies = [ [[package]] name = "craft-ui-contract" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "accesskit", "craft-behavior", @@ -1643,7 +1644,7 @@ dependencies = [ [[package]] name = "craft-ui-macros" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "proc-macro-crate", "proc-macro2", @@ -1654,7 +1655,7 @@ dependencies = [ [[package]] name = "craft-ui-panels" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -1672,7 +1673,7 @@ dependencies = [ [[package]] name = "craft-ui-patterns" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -1693,7 +1694,7 @@ dependencies = [ [[package]] name = "craft-ui-shell" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -1713,7 +1714,7 @@ dependencies = [ [[package]] name = "craft-ui-widgets" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-behavior", "craft-host", @@ -1732,7 +1733,7 @@ dependencies = [ [[package]] name = "craft-update" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "chrono", "craft-host", @@ -1761,7 +1762,7 @@ dependencies = [ [[package]] name = "craft-vectordrawable" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "kurbo", ] @@ -1769,7 +1770,7 @@ dependencies = [ [[package]] name = "craft-web-api" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "js-sys", "serde_json", @@ -1780,7 +1781,7 @@ dependencies = [ [[package]] name = "craft-web-host" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-host", "craft-platform", @@ -1792,7 +1793,7 @@ dependencies = [ [[package]] name = "craft-win32" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "winsafe", ] @@ -1800,7 +1801,7 @@ dependencies = [ [[package]] name = "craft-window" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "craft-appkit", "craft-atomic", @@ -1824,7 +1825,7 @@ dependencies = [ [[package]] name = "craft-xml" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "quick-xml 0.41.0", "serde", @@ -1834,7 +1835,7 @@ dependencies = [ [[package]] name = "craft-zip" version = "0.1.0" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "flate2", "thiserror 2.0.21", @@ -2031,7 +2032,7 @@ dependencies = [ "libc", "option-ext", "redox_users", - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -2428,7 +2429,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -4119,7 +4120,7 @@ checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" [[package]] name = "krilla" version = "0.8.2" -source = "git+https://github.com/aiongg/craft-libs?rev=ea3b99e892474928d315ba9f93784f3736ca52ed#ea3b99e892474928d315ba9f93784f3736ca52ed" +source = "git+https://github.com/aiongg/craft-libs?rev=4e806d57a557600dca26fa5442680ea5c3569a1b#4e806d57a557600dca26fa5442680ea5c3569a1b" dependencies = [ "base64 0.22.1", "bumpalo", @@ -5115,7 +5116,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -5869,7 +5870,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys 0.12.1", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -5936,7 +5937,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -6539,7 +6540,7 @@ dependencies = [ "getrandom 0.4.3", "once_cell", "rustix 1.1.6", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -7717,7 +7718,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -8080,6 +8081,16 @@ dependencies = [ "either", ] +[[package]] +name = "wuff" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6a992b57b3d1ee972b2e3fd9225e44793104d49818836dd812d5459187712dd" +dependencies = [ + "brotli-decompressor", + "bytes", +] + [[package]] name = "x11-dl" version = "2.21.0" diff --git a/Cargo.toml b/Cargo.toml index 6112020d6..b17e85688 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,10 +13,10 @@ rust-version = "1.95" repository = "https://github.com/storytold/figcraft" [workspace.dependencies] -craft-xml = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-svg = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed", default-features = false, features = ["tree"] } -craft-vectordrawable = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-pdf = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-xml = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-svg = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", default-features = false, features = ["tree"] } +craft-vectordrawable = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-pdf = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # internal figcraft-geom = { path = "crates/geom" } figcraft-color = { path = "crates/color" } @@ -39,44 +39,44 @@ figcraft-plugin = { path = "crates/plugin" } # Keep every craft-libs crate on one rev. # Which paths stored in a document may be followed (craft-libs). -craft-docpath = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-docpath = { version = "0.1.0", git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # Who draws the window frame on Linux — the compositor or the app — so every Craft app shows the # same native titlebar per desktop (craft-libs). FigCraft reads the probe result and maps it to its # own `TitleBar`; the UI runtime takes its window system from here too. -craft-window = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-window = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # craft-update: app-specific pretend versions apply to startup and manual checks. -craft-update = { git = "https://github.com/aiongg/craft-libs", version = "=0.1.0", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed", features = ["ui"] } +craft-update = { git = "https://github.com/aiongg/craft-libs", version = "=0.1.0", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", features = ["ui"] } # The suite's font store: exact lookup of a missing font in the pinned Google Fonts and Noto # indexes, and checksum-verified installs into the one folder every Craft app reads (craft-libs). -craft-font-store = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-font-catalog = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-font-store = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-font-catalog = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # The UI runtime FigCraft's egui UI is hosted by (`crates/ui-egui/src/framework.rs`) and the # framework dialogs on it (craft-libs): who the app is to those dialogs, the runtime's key # bindings, the theme mode and the interface direction. -craft-ui = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-host = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-keymap = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-theme = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-i18n = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-ui = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-host = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-keymap = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-theme = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-i18n = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # The macOS app menu whose Quit (⌘Q) asks the app before quitting, like the window's close button # (craft-libs; the menu it replaces quits straight through `terminate:` and loses unsaved work). -craft-menu = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-menu = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # Where the settings live: the suite's folder rules, portable mode included (craft-libs). -craft-settings = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-settings = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # Penpot export container only; JSON values cross this boundary, not shared model types. -craft-penpot = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +craft-penpot = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } # The design-file formats (craft-libs): the .fig container and its kiwi encoding, the mapping of # a .fig message onto the REST file JSON, and that JSON's shared helpers. -craft-sketch = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-zip = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-fig = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-figcraft-format = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-figma-rest = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-jpeg = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-image-codecs = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } -craft-gif = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed", features = ["frames"] } +craft-sketch = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-zip = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-fig = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-figcraft-format = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-figma-rest = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-jpeg = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-image-codecs = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } +craft-gif = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", features = ["frames"] } # foundation kurbo = { version = "0.13", features = ["serde"] } @@ -205,4 +205,4 @@ winit = { git = "https://github.com/storytold/winit.git", rev = "a517b3846ee8457 # craft-libs' vendored krilla 0.8.2: decoded PNGs are capped at 1 GiB and reserved fallibly, and a # panic while drawing unwinds without aborting. -krilla = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed" } +krilla = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b" } diff --git a/apps/figcraft-web/Cargo.toml b/apps/figcraft-web/Cargo.toml index 128a11ad4..0b3a261f7 100644 --- a/apps/figcraft-web/Cargo.toml +++ b/apps/figcraft-web/Cargo.toml @@ -21,8 +21,8 @@ figcraft-collab-net = { workspace = true } figcraft-text = { 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): the request plumbing behind window.figcraft. -craft-web-api = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed", version = "0.1.0" } -craft-web-host = { git = "https://github.com/aiongg/craft-libs", rev = "ea3b99e892474928d315ba9f93784f3736ca52ed", version = "0.1.0" } +craft-web-api = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", version = "0.1.0" } +craft-web-host = { git = "https://github.com/aiongg/craft-libs", rev = "4e806d57a557600dca26fa5442680ea5c3569a1b", version = "0.1.0" } base64 = { workspace = true } egui = { workspace = true } log = { workspace = true } diff --git a/crates/ui-egui/src/ime_tests.rs b/crates/ui-egui/src/ime_tests.rs index e6c2f6989..d609cfcfc 100644 --- a/crates/ui-egui/src/ime_tests.rs +++ b/crates/ui-egui/src/ime_tests.rs @@ -164,10 +164,12 @@ fn a_caret_click_rejects_the_stale_delete_and_commit_in_the_same_input_batch() { let t = text_layer(&mut s, "abcdef"); let mut u = Ui::new(s); figcraft_engine::textedit::begin(&mut u.app.session, t, Some(6), false).unwrap(); + // The editor publishes its IME context for a frame before the platform composes. + u.frame(vec![]); ime(&mut u, vec![preedit("z")]); let p = u.app.to_screen(42.0, 45.0); // Real canvas pointer handling moves the caret and cancels preedit before text_keys. - ime( + let press = ime_descriptor( &mut u, vec![ Event::PointerMoved(p), @@ -176,11 +178,15 @@ fn a_caret_click_rejects_the_stale_delete_and_commit_in_the_same_input_batch() { Event::Ime(ImeEvent::Commit("Q".into())), ], ); + let request_id = press.reset_request.expect("the click asks the platform to reset the composition"); let edit = u.app.session.ds().unwrap().text_edit.as_ref().unwrap(); assert!(edit.caret < 6, "the production canvas click actually moved the caret"); assert!(edit.preedit.is_none(), "the click ended the composition"); assert_eq!(text(&u, t), "abcdef", "neither stale deletion nor its Commit may mutate the clicked caret"); - u.frame(vec![Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }]); + u.frame(vec![ + Event::PointerButton { pos: p, button: egui::PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE }, + Event::ImeResetCompleted { request_id }, + ]); // A later direct commit without an active composition is legitimate. let caret = u.app.session.ds().unwrap().text_edit.as_ref().unwrap().caret; ime(&mut u, vec![Event::Ime(ImeEvent::Commit("X".into()))]); diff --git a/crates/ui-egui/src/widgets.rs b/crates/ui-egui/src/widgets.rs index 67a596126..cdd6684af 100644 --- a/crates/ui-egui/src/widgets.rs +++ b/crates/ui-egui/src/widgets.rs @@ -351,7 +351,8 @@ fn number_field_impl( } match lead { Lead::Text(s) => { - let galley = crate::bidi::name_galley(ui.painter(), s, regular(11.0), t.text_secondary, lead_w - 12.0); + // Whole points: egui rounds wrap width to GUI_ROUNDING, which wraps a fractional label column. + let galley = crate::bidi::name_galley(ui.painter(), s, regular(11.0), t.text_secondary, (lead_w - 12.0).ceil()); // A label cut short shows whole on hover. if galley.elided { lead_resp.clone().on_hover_text(s);