@not-govuk/back-link 0.3.3 → 0.4.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.
Files changed (1) hide show
  1. package/package.json +13 -16
package/package.json CHANGED
@@ -1,13 +1,9 @@
1
1
  {
2
2
  "name": "@not-govuk/back-link",
3
- "version": "0.3.3",
3
+ "version": "0.4.1",
4
4
  "description": "A component to help users navigate back one page.",
5
5
  "main": "dist/BackLink.js",
6
6
  "sass": "assets/BackLink.scss",
7
- "publishConfig": {
8
- "main": "dist/BackLink.js",
9
- "typings": "dist/BackLink.d.ts"
10
- },
11
7
  "files": [
12
8
  "/assets",
13
9
  "/dist"
@@ -18,27 +14,28 @@
18
14
  "react-components"
19
15
  ],
20
16
  "dependencies": {
21
- "@not-govuk/component-helpers": "^0.3.0",
22
- "@not-govuk/link": "^0.3.0",
23
- "@not-govuk/sass-base": "^0.3.0",
17
+ "@not-govuk/component-helpers": "^0.4.0",
18
+ "@not-govuk/link": "^0.4.0",
19
+ "@not-govuk/sass-base": "^0.4.0",
24
20
  "govuk-frontend": "3.11.0"
25
21
  },
26
22
  "peerDependencies": {
27
- "@not-govuk/docs-components": "^0.2.0",
23
+ "@not-govuk/docs-components": "^0.2.0 || ^0.3.0",
28
24
  "react": "^16.9.35"
29
25
  },
30
26
  "devDependencies": {
31
- "@mdx-js/react": "^1.6.5",
32
- "@not-govuk/component-test-helpers": "^0.3.0",
33
- "@types/react": "^16.9.55",
34
- "jest": "^26.1.0",
35
- "ts-jest": "^26.1.1",
36
- "typescript": "^3.9.2"
27
+ "@mdx-js/react": "1.6.22",
28
+ "@not-govuk/component-test-helpers": "^0.4.0",
29
+ "@types/react": "16.14.24",
30
+ "jest": "27.5.1",
31
+ "ts-jest": "27.1.3",
32
+ "typescript": "3.9.10"
37
33
  },
38
34
  "scripts": {
39
35
  "test": "jest",
40
36
  "build": "tsc",
41
37
  "clean": "rm -rf dist tsconfig.tsbuildinfo"
42
38
  },
43
- "typings": "dist/BackLink.d.ts"
39
+ "typings": "dist/BackLink.d.ts",
40
+ "readme": "Back link\n=========\n\nThe [GDS Back link component].\n\n\nPreview\n-------\n\n![Preview][Preview]\n\n\nUsing this package\n------------------\n\nFirst install the package into your project:\n\n```shell\nnpm install -S @not-govuk/back-link\n```\n\nThen use it in your code as follows:\n\n```js\nimport React, { createElement as h } from 'react';\nimport BackLink from '@not-govuk/back-link';\n\nexport const MyComponent = props => (\n <BackLink />\n);\n\nexport default MyComponent;\n```\n\n\nWorking on this package\n-----------------------\n\nBefore working on this package you must install its dependencies using\nthe following command:\n\n```shell\npnpm install\n```\n\n\n### Testing\n\n```shell\nnpm test\n```\n\n\n### Building\n\n```shell\nnpm run build\n```\n\n\n### Clean-up\n\n```shell\nnpm run clean\n```\n\n\n[GDS Back link component]: https://design-system.service.gov.uk/components/back-link/\n[Preview]: ../../__image_snapshots__/storyshots-itest-ts-image-storyshots-components-back-link-text-1-snap.png\n"
44
41
  }