@not-govuk/back-link 0.16.1 → 0.16.3
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/dist/BackLink.d.ts +3 -3
- package/package.json +11 -11
- package/src/BackLink.tsx +2 -2
package/dist/BackLink.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps, FC, ReactNode } from 'react';
|
|
2
|
+
import { A } from '@not-govuk/link';
|
|
3
3
|
import '../assets/BackLink.scss';
|
|
4
|
-
export type BackLinkProps =
|
|
4
|
+
export type BackLinkProps = ComponentProps<typeof A> & {
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
/** The location to link to */
|
|
7
7
|
href?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@not-govuk/back-link",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.3",
|
|
4
4
|
"description": "A component to help users navigate back one page.",
|
|
5
5
|
"main": "dist/BackLink.js",
|
|
6
6
|
"sass": "assets/BackLink.scss",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"react-components"
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@not-govuk/component-helpers": "^0.16.
|
|
18
|
-
"@not-govuk/link": "^0.16.
|
|
19
|
-
"@not-govuk/router": "^0.16.
|
|
20
|
-
"@not-govuk/sass-base": "^0.16.
|
|
21
|
-
"govuk-frontend": "5.
|
|
17
|
+
"@not-govuk/component-helpers": "^0.16.3",
|
|
18
|
+
"@not-govuk/link": "^0.16.3",
|
|
19
|
+
"@not-govuk/router": "^0.16.3",
|
|
20
|
+
"@not-govuk/sass-base": "^0.16.3",
|
|
21
|
+
"govuk-frontend": "5.11.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@not-govuk/docs-components": "^0.16.
|
|
24
|
+
"@not-govuk/docs-components": "^0.16.3",
|
|
25
25
|
"@storybook/addon-docs": "^6.5.16",
|
|
26
26
|
"react": "^18.3.1"
|
|
27
27
|
},
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@mdx-js/react": "1.6.22",
|
|
38
|
-
"@not-govuk/component-test-helpers": "^0.16.
|
|
39
|
-
"@not-govuk/panel": "^0.16.
|
|
40
|
-
"@types/react": "18.3.
|
|
38
|
+
"@not-govuk/component-test-helpers": "^0.16.3",
|
|
39
|
+
"@not-govuk/panel": "^0.16.3",
|
|
40
|
+
"@types/react": "18.3.23",
|
|
41
41
|
"jest": "29.7.0",
|
|
42
42
|
"jest-environment-jsdom": "29.7.0",
|
|
43
|
-
"ts-jest": "29.
|
|
43
|
+
"ts-jest": "29.4.1",
|
|
44
44
|
"typescript": "4.9.5"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
package/src/BackLink.tsx
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { FC, ReactNode, createElement as h } from 'react';
|
|
3
|
+
import { ComponentProps, FC, ReactNode, createElement as h } from 'react';
|
|
4
4
|
import { StandardProps, classBuilder } from '@not-govuk/component-helpers';
|
|
5
5
|
import { A } from '@not-govuk/link';
|
|
6
6
|
import { useNavigate } from '@not-govuk/router';
|
|
7
7
|
|
|
8
8
|
import '../assets/BackLink.scss';
|
|
9
9
|
|
|
10
|
-
export type BackLinkProps =
|
|
10
|
+
export type BackLinkProps = ComponentProps<typeof A> & {
|
|
11
11
|
children?: ReactNode
|
|
12
12
|
/** The location to link to */
|
|
13
13
|
href?: string
|