@ministryofjustice/hmpps-connect-dps-shared-items 2.1.0 → 2.1.2

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.
@@ -96,6 +96,11 @@ export class AutosuggestUi {
96
96
  this.navigateResults(1)
97
97
  break
98
98
  }
99
+ case 27: {
100
+ // Escape
101
+ this.clearListbox()
102
+ break
103
+ }
99
104
  case 13: {
100
105
  // Enter
101
106
  if (this.highlightedResultIndex !== null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-connect-dps-shared-items",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "A package to share Connect DPS functionality across applications",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",
@@ -71,7 +71,7 @@
71
71
  "tslib": "^2.8.1"
72
72
  },
73
73
  "dependencies": {
74
- "@ministryofjustice/hmpps-rest-client": "^0.0.1",
74
+ "@ministryofjustice/hmpps-rest-client": "^0.0.3",
75
75
  "@types/bunyan": "^1.8.11",
76
76
  "fuse.js": "^7.1.0",
77
77
  "superagent": "^10.2.3"