@moduk/frontend 1.1.15 → 1.1.17

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.
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@moduk/frontend",
3
- "version": "1.1.15",
3
+ "version": "1.1.17",
4
4
  "description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
5
5
  "main": "dist/lib/index.js",
6
6
  "sass": "src/css/index.scss",
7
7
  "style": "dist/css/index.css",
8
8
  "files": [
9
9
  "dist",
10
- "src/css"
10
+ "src/css",
11
+ "src/react/**/__examples__/**"
11
12
  ],
12
13
  "exports": {
13
14
  ".": {
@@ -21,7 +22,7 @@
21
22
  "require": "./dist/client/moduk-frontend.umd.js"
22
23
  },
23
24
  "./dist/*": "./dist/*",
24
- "./src/css/*": "./src/css/*"
25
+ "./src/*": "./src/*"
25
26
  },
26
27
  "types": "dist/lib/index.d.ts",
27
28
  "scripts": {
@@ -90,7 +91,7 @@
90
91
  "@babel/core": "^7.21.4",
91
92
  "@babel/preset-env": "^7.21.4",
92
93
  "@babel/preset-react": "^7.18.6",
93
- "@babel/preset-typescript": "^7.21.0",
94
+ "@babel/preset-typescript": "^7.21.5",
94
95
  "@commitlint/cli": "^17.6.3",
95
96
  "@commitlint/config-conventional": "^17.4.4",
96
97
  "@playwright/test": "^1.32.3",
@@ -98,7 +99,7 @@
98
99
  "@testing-library/dom": "^9.2.0",
99
100
  "@testing-library/jest-dom": "^5.16.5",
100
101
  "@types/lodash": "^4.14.194",
101
- "@types/node": "^18.15.11",
102
+ "@types/node": "^18.16.14",
102
103
  "@types/nunjucks": "^3.2.2",
103
104
  "@types/react": "^18.2.6",
104
105
  "@types/react-dom": "^18.2.4",
@@ -107,11 +108,13 @@
107
108
  "babel-loader": "^9.1.2",
108
109
  "concurrently": "^8.0.1",
109
110
  "dprint": "^0.36.1",
110
- "eslint": "^8.39.0",
111
+ "eslint": "^8.41.0",
111
112
  "eslint-config-airbnb-base": "^15.0.0",
112
113
  "eslint-import-resolver-typescript": "^3.5.5",
113
114
  "eslint-plugin-eslint-comments": "^3.2.0",
114
115
  "eslint-plugin-import": "^2.27.5",
116
+ "eslint-plugin-react": "^7.32.2",
117
+ "eslint-plugin-react-hooks": "^4.6.0",
115
118
  "eslint-plugin-unicorn": "^47.0.0",
116
119
  "glob": "^10.2.2",
117
120
  "happy-dom": "^9.10.2",
@@ -119,14 +122,15 @@
119
122
  "lint-staged": "^13.1.2",
120
123
  "postcss-cli": "^10.1.0",
121
124
  "postcss-fail-on-warn": "^0.2.1",
122
- "postcss-preset-env": "^8.3.2",
125
+ "postcss-preset-env": "^8.4.1",
123
126
  "release-it": "^15.10.3",
124
127
  "sass": "^1.62.1",
125
128
  "sass-true": "^7.0.0",
126
129
  "shx": "^0.3.4",
127
130
  "ts-node": "^10.9.1",
131
+ "tsconfig-paths": "^4.2.0",
128
132
  "typescript": "^5.0.4",
129
- "vitest": "^0.29.2",
133
+ "vitest": "^0.31.1",
130
134
  "webpack": "^5.76.3",
131
135
  "webpack-cli": "^5.1.1"
132
136
  },
@@ -0,0 +1,3 @@
1
+ import { BackLink } from '@moduk/frontend/react'
2
+
3
+ export const Example = () => <BackLink href='#'>Back</BackLink>