@pi-unipi/input-shortcuts 0.1.2 → 2.0.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-unipi/input-shortcuts",
3
- "version": "0.1.2",
3
+ "version": "2.0.0",
4
4
  "description": "Keyboard shortcuts for stash/restore, undo/redo, clipboard, and thinking toggle — chord-based overlay system",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -367,8 +367,7 @@ export default function inputShortcutsExtension(pi: ExtensionAPI): void {
367
367
 
368
368
  // ─── Info-screen registration ────────────────────────────────────────────
369
369
 
370
- const globalObj = globalThis as any;
371
- const registry = globalObj.__unipi_info_registry;
370
+ const registry = globalThis.__unipi_info_registry;
372
371
  if (registry) {
373
372
  registry.registerGroup({
374
373
  id: "input-shortcuts",
@@ -402,7 +401,7 @@ export default function inputShortcutsExtension(pi: ExtensionAPI): void {
402
401
 
403
402
  // ─── Module ready event ──────────────────────────────────────────────────
404
403
 
405
- emitEvent(pi as any, UNIPI_EVENTS.MODULE_READY, {
404
+ emitEvent(pi, UNIPI_EVENTS.MODULE_READY, {
406
405
  name: MODULES.INPUT_SHORTCUTS,
407
406
  version: "0.1.0",
408
407
  commands: [`unipi:${INPUT_SHORTCUTS_COMMANDS.STASH_SETTINGS}`],