Repository navigation
@maple-kit/mock@0.22.0
Minor Changes
-
9f874c1: Breaking: inside
<Maple />,mopens the mock box only while Maple is open, meaning the island card is up or a pick is armed. With the island collapsed it reaches the page untouched; tap the comment modifier, then pressm. Opening the box while a pick is armed cancels the pick. The island header gains a Mock button, drawn only where the mock transport is installed, that opens and closes the box.<MapleMock />without<Maple />is unchanged.createMockClienttakes a newshortcutWhenoption.Breaking: the island's bottom "New: Element | Text | Region" row is gone, and
Maple.NewCommentandMaple.PickButtonwith it;Maple.CommentButtonis the new part. A comment button in the header, left of the Mock button, replaces it: it arms the kind armed last (what a tap of the comment modifier arms), and pressed again while armed it moves to the next kind. The picker's bar still names the gesture and switches between the three kinds.MapleClientgainsarmNext(), the same call as that tap.
Patch Changes
-
925d52e: Escape no longer reaches past Maple. It closes Maple's topmost layer (a pick, then the composer, settings, the island) only when focus is inside Maple or a pick is armed, and then it is consumed, so a host
<dialog>is not closed by the same press and one press closes one layer. Escape while Maple is idle or during IME composition is left alone. Clicking any part of the island now moves focus into it, so Escape works afterwards. Tapping Shift with the comment modifier (Shift+Cmd on a Mac, Shift+Alt elsewhere) closes Maple from anywhere and keeps drafts.Breaking:
watchEscape'sonEscapenow receives the event and returns whether it closed something, and takes an optionaltakesAll;watchPickKeysandPickKeyOptionsare removed from@maple-kit/core/overlay(the picker useswatchEscape);TapNoticegainsclose;TapStategainschord, andtapStepreportsclose. -
fc2da1a: The
mshortcut no longer opens the mock box while you type.opensMockandisEditablenow read the whole event path:role=textbox,comboboxandsearchboxelements,contenteditableancestors and editors inside open shadow roots count as typing. A heldm, an IME composition and keyCode 229 no longer open or toggle the box. The comment tap's text-field check uses the same path. -
Updated dependencies [b47e689]
-
Updated dependencies [3d10af4]
-
Updated dependencies [217ebcf]
-
Updated dependencies [925d52e]
-
Updated dependencies [fc2da1a]
-
Updated dependencies [9f874c1]
-
Updated dependencies [7c1e8c9]
-
Updated dependencies [e9782ec]
-
Updated dependencies [4565d27]
-
Updated dependencies [ee35942]
-
Updated dependencies [e3a306d]
-
Updated dependencies [5900e08]
-
Updated dependencies [c9d78ea]
-
Updated dependencies [8f0bf16]
- @maple-kit/core@0.22.0