@ministryofjustice/hmpps-connect-dps-shared-items 4.4.0 → 5.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.
@@ -1,3 +1,4 @@
1
- @import '../dps/components/alert-flag/alert-flag';
2
- @import '../dps/components/address-autosuggest/address-autosuggest';
3
- @import '../dps/components/webcam-capture/webcam-capture';
1
+ @use '../dps/components/alert-flag/alert-flag';
2
+ @use '../dps/components/address-autosuggest/address-autosuggest';
3
+ @use '../dps/components/modal';
4
+ @use '../dps/components/webcam-capture/webcam-capture';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ministryofjustice/hmpps-connect-dps-shared-items",
3
- "version": "4.4.0",
3
+ "version": "5.0.0",
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",
@@ -13,20 +13,20 @@
13
13
  "node": "22 || 24 || 26"
14
14
  },
15
15
  "scripts": {
16
- "build": "rollup -c rollup.config.ts --bundleConfigAsCjs && npm run copy:assets",
16
+ "build": "rollup -c rollup.config.ts --bundleConfigAsCjs",
17
17
  "clean": "rm -rf ./dist/",
18
18
  "test": "jest",
19
19
  "test:ci": "jest --runInBand",
20
- "typecheck": "tsc",
20
+ "typecheck": "tsc && tsc -p src/assets",
21
21
  "lint": "eslint . --cache --max-warnings 0",
22
22
  "lint:fix": "eslint . --cache --max-warnings 0 --fix",
23
- "copy:assets": "rm -rf dist/assets && cp -r src/assets dist/assets",
24
23
  "security_audit": "npx audit-ci --config audit-ci.json",
25
24
  "prepare": "hmpps-precommit-hooks-prepare",
26
25
  "precommit:secrets": "gitleaks git --pre-commit --redact --staged --verbose --config .gitleaks/config.toml",
27
26
  "precommit:lint": "lint-staged",
28
27
  "precommit:verify": "npm run typecheck && npm test",
29
- "setup": "npm ci && hmpps-npm-script-run-allowlist"
28
+ "setup": "npm ci && hmpps-npm-script-run-allowlist",
29
+ "start": "node --experimental-strip-types preview/preview.mts"
30
30
  },
31
31
  "lint-staged": {
32
32
  "*.{ts,css}": [
@@ -49,14 +49,16 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@ministryofjustice/eslint-config-hmpps": "2.0.0-alpha.2",
52
+ "@ministryofjustice/frontend-types": "2.0.1",
52
53
  "@ministryofjustice/hmpps-npm-script-allowlist": "0.0.6",
53
- "@ministryofjustice/hmpps-precommit-hooks": "3.0.1",
54
+ "@ministryofjustice/hmpps-precommit-hooks": "3.0.2",
54
55
  "@rollup/plugin-commonjs": "^29.0.3",
55
56
  "@rollup/plugin-multi-entry": "^7.1.0",
56
57
  "@rollup/plugin-node-resolve": "^16.0.3",
57
58
  "@rollup/plugin-typescript": "^12.3.0",
58
- "@tsconfig/node24": "24.0.4",
59
+ "@tsconfig/node24": "24.0.5",
59
60
  "@types/jest": "^30.0.0",
61
+ "@types/nunjucks": "3.2.6",
60
62
  "@types/superagent": "^8.1.11",
61
63
  "govuk-frontend": "6.4.0",
62
64
  "jest": "^30.4.2",
@@ -64,18 +66,27 @@
64
66
  "jest-junit": "^17.0.0",
65
67
  "lint-staged": "^17.2.0",
66
68
  "nock": "14.0.17",
69
+ "nunjucks": "3.2.4",
67
70
  "rollup": "4.62.4",
71
+ "rollup-plugin-copy": "3.5.0",
68
72
  "rollup-plugin-dts": "6.5.1",
73
+ "rollup-plugin-scss": "4.0.1",
74
+ "sass": "1.102.0",
69
75
  "ts-jest": "29.4.12",
70
76
  "tslib": "^2.8.1",
71
77
  "typescript": "6.0.3"
72
78
  },
73
79
  "dependencies": {
80
+ "@ministryofjustice/frontend": "10.0.1",
74
81
  "@ministryofjustice/hmpps-rest-client": "2.2.0",
75
82
  "@types/bunyan": "^1.8.11",
76
83
  "fuse.js": "7.5.0",
77
84
  "superagent": "10.3.0"
78
85
  },
86
+ "peerDependencies": {
87
+ "@ministryofjustice/frontend": "^10",
88
+ "govuk-frontend": "^6"
89
+ },
79
90
  "overrides": {
80
91
  "brace-expansion": "5.0.9"
81
92
  }
@@ -1,21 +0,0 @@
1
- %status-style {
2
- @media screen {
3
- justify-content: center;
4
- border: 3px solid;
5
- padding: 0px 10px;
6
- font-size: 16px;
7
- text-align: center;
8
- line-height: 1;
9
- user-select: none;
10
- border-radius: 5px
11
- }
12
-
13
- @media print {
14
- margin-bottom: 0px !important;
15
- font-size: 12px;
16
- color: black !important;
17
- border: none !important;
18
- background: none !important;
19
- min-width: auto;
20
- }
21
- }