@ministryofjustice/hmpps-connect-dps-shared-items 3.0.1 → 3.1.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.
@@ -4,7 +4,7 @@
4
4
  {% macro addressAutosuggest(options) %}
5
5
 
6
6
  <div class="hmpps-js-address-autosuggest">
7
- <input type="hidden" id="uprn" class="hmpps-js-uprn hmpps-display-none" name="uprn"/>
7
+ <input type="hidden" id="uprn" class="hmpps-js-uprn hmpps-display-none" name="uprn" {% if options.uprn %} value="{{ options.uprn }}" {% endif %} />
8
8
  <div
9
9
  class="hmpps-address-autosuggest{% if options.classes %} {{ options.classes }}{% endif %}"
10
10
  data-aria-you-have-selected="You have selected"
package/dist/index.d.ts CHANGED
@@ -177,13 +177,6 @@ declare class OsPlacesAddressService {
177
177
  private sanitiseString;
178
178
  }
179
179
 
180
- interface AlertFlagLabel {
181
- alertCodes: string[];
182
- classes: string;
183
- label: string;
184
- alertIds?: string[];
185
- }
186
-
187
180
  type Alert = BasicAlert | PrisonApiAlert | AlertsServiceAlert;
188
181
  interface BasicAlert {
189
182
  alertType: string;
@@ -244,6 +237,13 @@ interface AlertsServiceAlert {
244
237
  activeToLastSetByDisplayName?: string;
245
238
  }
246
239
 
240
+ interface AlertFlagLabel {
241
+ alertCodes: string[];
242
+ classes: string;
243
+ label: string;
244
+ alertIds?: string[];
245
+ }
246
+
247
247
  declare const alertFlagLabels: AlertFlagLabel[];
248
248
  declare function getAlertFlagLabelsForAlerts(prisonerAlerts: Alert[]): AlertFlagLabel[];
249
249
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-connect-dps-shared-items",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
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",
@@ -47,24 +47,24 @@
47
47
  "url": "https://github.com/ministryofjustice/hmpps-connect-dps-shared-items-package/issues"
48
48
  },
49
49
  "devDependencies": {
50
- "@ministryofjustice/eslint-config-hmpps": "^0.0.5",
51
- "@ministryofjustice/hmpps-precommit-hooks": "^0.0.3",
52
- "@rollup/plugin-commonjs": "^28.0.6",
53
- "@rollup/plugin-multi-entry": "^6.0.1",
54
- "@rollup/plugin-node-resolve": "^16.0.1",
55
- "@rollup/plugin-typescript": "^12.1.4",
50
+ "@ministryofjustice/eslint-config-hmpps": "^1.0.1",
51
+ "@ministryofjustice/hmpps-precommit-hooks": "^1.0.2",
52
+ "@rollup/plugin-commonjs": "^29.0.0",
53
+ "@rollup/plugin-multi-entry": "^7.1.0",
54
+ "@rollup/plugin-node-resolve": "^16.0.3",
55
+ "@rollup/plugin-typescript": "^12.3.0",
56
56
  "@tsconfig/node24": "^24.0.1",
57
- "@types/jest": "^29.5.14",
57
+ "@types/jest": "^30.0.0",
58
58
  "@types/superagent": "^8.1.9",
59
- "govuk-frontend": "^5.11.2",
60
- "jest": "^29.7.0",
61
- "jest-html-reporter": "^3.10.2",
59
+ "govuk-frontend": "^5.13.0",
60
+ "jest": "^30.2.0",
61
+ "jest-html-reporter": "^4.3.0",
62
62
  "jest-junit": "^16.0.0",
63
- "lint-staged": "^16.1.5",
63
+ "lint-staged": "^16.2.6",
64
64
  "nock": "^14.0.10",
65
- "rollup": "^4.49.0",
65
+ "rollup": "^4.53.2",
66
66
  "rollup-plugin-dts": "^6.2.3",
67
- "ts-jest": "^29.4.1",
67
+ "ts-jest": "^29.4.5",
68
68
  "tslib": "^2.8.1"
69
69
  },
70
70
  "dependencies": {