Skip to content

Commit 59413a5

Browse files
committed
Add external link example next
1 parent b74dc00 commit 59413a5

File tree

7 files changed

+42
-25
lines changed

7 files changed

+42
-25
lines changed

test/integration/cra/yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,9 +1075,9 @@
10751075
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
10761076

10771077
"@codegouvfr/react-dsfr@file:../../../dist":
1078-
version "0.3.0"
1078+
version "0.44.3"
10791079
dependencies:
1080-
tsafe "^1.4.0"
1080+
tsafe "^1.6.0"
10811081

10821082
"@csstools/normalize.css@*":
10831083
version "12.0.0"
@@ -8248,10 +8248,10 @@ tryer@^1.0.1:
82488248
resolved "https://registry.yarnpkg.com/tryer/-/tryer-1.0.1.tgz#f2c85406800b9b0f74c9f7465b81eaad241252f8"
82498249
integrity sha512-c3zayb8/kWWpycWYg87P71E1S1ZL6b6IJxfb5fvsUgsf0S2MVGaDhDXXjDMpdCpfWXqptc+4mXwmiy1ypXqRAA==
82508250

8251-
tsafe@^1.4.0:
8252-
version "1.4.1"
8253-
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.4.1.tgz#59cdad8ac41babf88e56dcd1a683ae2fb145d059"
8254-
integrity sha512-3IDBalvf6SyvHFS14UiwCWzqdSdo+Q0k2J7DZyJYaHW/iraW9DJpaBKDJpry3yQs3o/t/A+oGaRW3iVt2lKxzA==
8251+
tsafe@^1.6.0:
8252+
version "1.6.0"
8253+
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.6.0.tgz#48a9bd0a4c43df43d289bdfc1d89f0d7fffbd612"
8254+
integrity sha512-wlUeRBnyN3EN2chXznpLm7vBEvJLEOziDU+MN6NRlD99AkwmXgtChNQhp+V97VyRa3Bp05IaL4Cocsc7JlyEUg==
82558255

82568256
tsconfig-paths@^3.14.1:
82578257
version "3.14.1"

test/integration/next-appdir/app/Navigation.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ export function Navigation() {
2323
"href": "/mui"
2424
},
2525
"isActive": segment === "mui"
26+
},
27+
{
28+
"text": "External link",
29+
"linkProps": {
30+
"href": "https://example.com"
31+
}
2632
}
2733
]}
2834
/>

test/integration/next-appdir/app/layout.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export default function RootLayout({ children }: { children: JSX.Element; }) {
3939
/>
4040
</head>
4141
<body
42-
style={{
43-
"height": "100vh",
44-
"display": "flex",
42+
style={{
43+
"height": "100vh",
44+
"display": "flex",
4545
"flexDirection": "column"
46-
}}
46+
}}
4747
>
4848
<DsfrProvider defaultColorScheme={defaultColorScheme}>
4949
<NextAppDirEmotionCacheProvider options={{ "key": "css" }}>

test/integration/next-appdir/yarn.lock

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@
9393
to-fast-properties "^2.0.0"
9494

9595
"@codegouvfr/react-dsfr@file:../../../dist":
96-
version "0.35.1"
96+
version "0.44.3"
9797
dependencies:
98-
tsafe "^1.4.0"
98+
tsafe "^1.6.0"
9999

100100
"@date-io/core@^2.15.0", "@date-io/core@^2.16.0":
101101
version "2.16.0"
@@ -2405,11 +2405,16 @@ to-regex-range@^5.0.1:
24052405
dependencies:
24062406
is-number "^7.0.0"
24072407

2408-
tsafe@^1.4.0, tsafe@^1.4.1:
2408+
tsafe@^1.4.1:
24092409
version "1.4.1"
24102410
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.4.1.tgz#59cdad8ac41babf88e56dcd1a683ae2fb145d059"
24112411
integrity sha512-3IDBalvf6SyvHFS14UiwCWzqdSdo+Q0k2J7DZyJYaHW/iraW9DJpaBKDJpry3yQs3o/t/A+oGaRW3iVt2lKxzA==
24122412

2413+
tsafe@^1.6.0:
2414+
version "1.6.0"
2415+
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.6.0.tgz#48a9bd0a4c43df43d289bdfc1d89f0d7fffbd612"
2416+
integrity sha512-wlUeRBnyN3EN2chXznpLm7vBEvJLEOziDU+MN6NRlD99AkwmXgtChNQhp+V97VyRa3Bp05IaL4Cocsc7JlyEUg==
2417+
24132418
tsconfig-paths@^3.14.1:
24142419
version "3.14.1"
24152420
resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.14.1.tgz#ba0734599e8ea36c862798e920bcf163277b137a"

test/integration/next-pagesdir/pages/_app.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ function App({ Component, pageProps }: AppProps) {
8282
"href": "/mui"
8383
},
8484
"isActive": router.asPath === "/mui"
85+
},
86+
{
87+
"text": "External link",
88+
"linkProps": {
89+
"href": "https://example.com"
90+
}
8591
}
8692
]}
8793
quickAccessItems={[headerFooterDisplayItem]}

test/integration/next-pagesdir/yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@
7979
to-fast-properties "^2.0.0"
8080

8181
"@codegouvfr/react-dsfr@file:../../../dist":
82-
version "0.36.0"
82+
version "0.44.3"
8383
dependencies:
84-
tsafe "^1.4.0"
84+
tsafe "^1.6.0"
8585

8686
"@date-io/core@^2.15.0", "@date-io/core@^2.16.0":
8787
version "2.16.0"
@@ -2381,10 +2381,10 @@ to-regex-range@^5.0.1:
23812381
dependencies:
23822382
is-number "^7.0.0"
23832383

2384-
tsafe@^1.4.0:
2385-
version "1.4.1"
2386-
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.4.1.tgz#59cdad8ac41babf88e56dcd1a683ae2fb145d059"
2387-
integrity sha512-3IDBalvf6SyvHFS14UiwCWzqdSdo+Q0k2J7DZyJYaHW/iraW9DJpaBKDJpry3yQs3o/t/A+oGaRW3iVt2lKxzA==
2384+
tsafe@^1.6.0:
2385+
version "1.6.0"
2386+
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.6.0.tgz#48a9bd0a4c43df43d289bdfc1d89f0d7fffbd612"
2387+
integrity sha512-wlUeRBnyN3EN2chXznpLm7vBEvJLEOziDU+MN6NRlD99AkwmXgtChNQhp+V97VyRa3Bp05IaL4Cocsc7JlyEUg==
23882388

23892389
tsconfig-paths@^3.14.1:
23902390
version "3.14.1"

test/integration/vite/yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@
248248
to-fast-properties "^2.0.0"
249249

250250
"@codegouvfr/react-dsfr@file:../../../dist":
251-
version "0.33.1"
251+
version "0.44.3"
252252
dependencies:
253-
tsafe "^1.4.0"
253+
tsafe "^1.6.0"
254254

255255
"@date-io/core@^2.15.0", "@date-io/core@^2.16.0":
256256
version "2.16.0"
@@ -895,10 +895,10 @@ to-fast-properties@^2.0.0:
895895
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
896896
integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==
897897

898-
tsafe@^1.4.0:
899-
version "1.4.1"
900-
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.4.1.tgz#59cdad8ac41babf88e56dcd1a683ae2fb145d059"
901-
integrity sha512-3IDBalvf6SyvHFS14UiwCWzqdSdo+Q0k2J7DZyJYaHW/iraW9DJpaBKDJpry3yQs3o/t/A+oGaRW3iVt2lKxzA==
898+
tsafe@^1.6.0:
899+
version "1.6.0"
900+
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.6.0.tgz#48a9bd0a4c43df43d289bdfc1d89f0d7fffbd612"
901+
integrity sha512-wlUeRBnyN3EN2chXznpLm7vBEvJLEOziDU+MN6NRlD99AkwmXgtChNQhp+V97VyRa3Bp05IaL4Cocsc7JlyEUg==
902902

903903
typescript@^4.6.4:
904904
version "4.9.4"

0 commit comments

Comments
 (0)