tosijs-ui 1.15.4 → 1.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.15.5
4
+
5
+ ### `<tosi-select>` options can have keyboard shortcuts (#188)
6
+
7
+ `SelectOption` accepts `shortcut` (menu syntax, e.g. `'ctrl-1'`). It is shown in the popup, and
8
+ picks the option from the keyboard even while the popup is closed. A pick by shortcut sets
9
+ `value` and dispatches `change` exactly as a click does, so there is one code path. A disabled
10
+ select ignores its shortcuts.
11
+
12
+ ### Removed `<tosi-menu>`s no longer fire their shortcuts
13
+
14
+ `<tosi-menu>` added its document keydown listener with `capture: true` and removed it without,
15
+ which in a real browser removes nothing. Every menu ever taken off the page kept its listener,
16
+ and its keyboard shortcuts kept working. Only a real browser shows this (happy-dom removes the
17
+ listener anyway), so it is covered by a Playwright test in all three engines.
18
+
19
+ ### `tosijs-ui/test-setup`: the happy-dom preload, published (#170)
20
+
21
+ ```toml
22
+ [test]
23
+ preload = ["tosijs-ui/test-setup"]
24
+ ```
25
+
26
+ gives `bun test` a DOM that runs tosijs and tosijs-ui components. It needs `happy-dom` (an
27
+ optional peer). Use it instead of copying a `test-setup.ts` from another repo; the copies had
28
+ drifted three ways. It is also tosijs-ui's own preload, so every unit test here exercises it.
29
+
3
30
  ## 1.15.4
4
31
 
5
32
  ### `libraryBundle`: a library build Node can actually load (#169)