@antha/input 0.14.2 → 0.15.1

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.
@@ -63,7 +63,7 @@ export declare const AnthaKeyboard: import("element-vir").DeclarativeElementDefi
63
63
  arrowRepeatDelay: undefined | ReturnType<typeof globalThis.setTimeout>;
64
64
  arrowRepeatInterval: undefined | ReturnType<typeof globalThis.setInterval>;
65
65
  }, {
66
- keyPress: import("element-vir").DefineEvent<((Required<Pick<{
66
+ keyPress: import("element-vir").DefineElementEvent<((Required<Pick<{
67
67
  typedCharacter: string;
68
68
  special: AnthaKeyboardSpecialKey;
69
69
  }, "typedCharacter">> & Partial<Record<"special", never>>) | (Required<Pick<{
@@ -73,7 +73,7 @@ export declare const AnthaKeyboard: import("element-vir").DeclarativeElementDefi
73
73
  typedCharacter: string;
74
74
  special: AnthaKeyboardSpecialKey;
75
75
  }, "typedCharacter" | "special">>;
76
- valueChange: import("element-vir").DefineEvent<string>;
76
+ valueChange: import("element-vir").DefineElementEvent<string>;
77
77
  }, "antha-keyboard-", "antha-keyboard-", readonly [], readonly []>;
78
78
  /**
79
79
  * A helper for handling key press events from {@link AnthaKeyboard}. This is used internally in
@@ -601,12 +601,16 @@ export const AnthaKeyboard = defineElement()({
601
601
  updateState({
602
602
  cursorPosition: state.cursorPosition + lengthDiff,
603
603
  });
604
- dispatch(new events.valueChange(newValue));
604
+ dispatch(new events.valueChange({
605
+ detail: newValue,
606
+ }));
605
607
  }
606
608
  if (state.beamElement) {
607
609
  scrollBeamIntoView(state.beamElement);
608
610
  }
609
- dispatch(new events.keyPress(result.keyPress));
611
+ dispatch(new events.keyPress({
612
+ detail: result.keyPress,
613
+ }));
610
614
  }
611
615
  function stopArrowRepeat() {
612
616
  if (state.arrowRepeatDelay != undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antha/input",
3
- "version": "0.14.2",
3
+ "version": "0.15.1",
4
4
  "description": "An Antha mod for handling inputs.",
5
5
  "keywords": [
6
6
  "vir",
@@ -33,28 +33,28 @@
33
33
  "test:docs": "virmator docs check"
34
34
  },
35
35
  "dependencies": {
36
- "@antha/gamepad-type": "^0.14.2",
37
- "@augment-vir/assert": "^32.2.4",
38
- "@augment-vir/common": "^32.2.4",
36
+ "@antha/gamepad-type": "^0.15.1",
37
+ "@augment-vir/assert": "^32.3.0",
38
+ "@augment-vir/common": "^32.3.0",
39
39
  "date-vir": "^9.1.1",
40
- "device-navigation": "^4.9.1",
40
+ "device-navigation": "^5.0.0",
41
41
  "input-device-handler": "^9.0.4",
42
42
  "object-shape-tester": "^6.15.0",
43
- "vira": "^31.31.7"
43
+ "vira": "^32.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@augment-vir/test": "^32.2.4",
46
+ "@augment-vir/test": "^32.3.0",
47
47
  "@web/dev-server-esbuild": "^2.0.0",
48
48
  "@web/test-runner": "^1.0.0",
49
49
  "@web/test-runner-playwright": "^1.0.0",
50
- "element-vir": "^26.17.3",
50
+ "element-vir": "^27.0.1",
51
51
  "istanbul-smart-text-reporter": "^1.1.5",
52
52
  "markdown-code-example-inserter": "^3.0.6",
53
53
  "typedoc": "^0.28.20"
54
54
  },
55
55
  "peerDependencies": {
56
- "@antha/engine": "^0.14.2",
57
- "element-vir": ">=26"
56
+ "@antha/engine": "^0.15.1",
57
+ "element-vir": "^27"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=22"