Skip to content

Commit 411d649

Browse files
committed
Fix for Next Appdir 13.3
1 parent 7660e5c commit 411d649

File tree

7 files changed

+260
-291
lines changed

7 files changed

+260
-291
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"husky": "^4.3.8",
102102
"lint-staged": "^11.0.0",
103103
"memoizee": "^0.4.15",
104-
"next": "12.3.1",
104+
"next": "13.3.0",
105105
"oppa": "^0.4.0",
106106
"parse-numeric-range": "^1.3.0",
107107
"powerhooks": "^0.22.0",

src/mui.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,5 @@ export function createMuiDsfrThemeProvider(params: {
297297
}
298298

299299
export const { MuiDsfrThemeProvider } = createMuiDsfrThemeProvider({});
300+
301+
export default MuiDsfrThemeProvider;

test/integration/next-appdir/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@emotion/styled": "11.10.5",
1818
"@mui/icons-material": "^5.8.4",
1919
"@mui/material": "5.11.1",
20-
"next": "13.0.7",
20+
"next": "13.3.0",
2121
"react": "18.2.0",
2222
"react-dom": "18.2.0",
2323
"tss-react": "^4.7.0",

test/integration/next-appdir/yarn.lock

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

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

@@ -437,80 +437,60 @@
437437
react-transition-group "^4.4.5"
438438
rifm "^0.12.1"
439439

440-
"@next/env@13.0.7":
441-
version "13.0.7"
442-
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.0.7.tgz#7b6ccd9006d3fb57c369e3fb62b28e15324141e9"
443-
integrity sha512-ZBclBRB7DbkSswXgbJ+muF5RxfgmAuQKAWL8tcm86aZmoiL1ZainxQK0hMcMYdh+IYG8UObAKV2wKB5O+6P4ng==
440+
"@next/env@13.3.0":
441+
version "13.3.0"
442+
resolved "https://registry.yarnpkg.com/@next/env/-/env-13.3.0.tgz#cc2e49f03060a4684ce7ec7fd617a21bc5b9edba"
443+
integrity sha512-AjppRV4uG3No7L1plinoTQETH+j2F10TEnrMfzbTUYwze5sBUPveeeBAPZPm8OkJZ1epq9OyYKhZrvbD6/9HCQ==
444444

445445
"@next/eslint-plugin-next@11.0.1":
446446
version "11.0.1"
447447
resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-11.0.1.tgz#5dd3264a40fadcf28eba00d914d69103422bb7e6"
448448
integrity sha512-UzdX3y6XSrj9YuASUb/p4sRvfjP2klj2YgIOfMwrWoLTTPJQMh00hREB9Ftr7m7RIxjVSAaaLXIRLdxvq948GA==
449449

450-
"@next/swc-android-arm-eabi@13.0.7":
451-
version "13.0.7"
452-
resolved "https://registry.yarnpkg.com/@next/swc-android-arm-eabi/-/swc-android-arm-eabi-13.0.7.tgz#ddbf3d092d22f17238aa34072f5dcb8129d8b23e"
453-
integrity sha512-QTEamOK/LCwBf05GZ261rULMbZEpE3TYdjHlXfznV+nXwTztzkBNFXwP67gv2wW44BROzgi/vrR9H8oP+J5jxg==
454-
455-
"@next/swc-android-arm64@13.0.7":
456-
version "13.0.7"
457-
resolved "https://registry.yarnpkg.com/@next/swc-android-arm64/-/swc-android-arm64-13.0.7.tgz#96f150232eb66da377226f21a371d30389371ed5"
458-
integrity sha512-wcy2H0Tl9ME8vKy2GnJZ7Mybwys+43F/Eh2Pvph7mSDpMbYBJ6iA0zeY62iYYXxlZhnAID3+h79FUqUEakkClw==
459-
460-
"@next/swc-darwin-arm64@13.0.7":
461-
version "13.0.7"
462-
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.0.7.tgz#34e80a22573b5321ade8417dfb814cf6e1fd9997"
463-
integrity sha512-F/mU7csN1/J2cqXJPMgTQ6MwAbc1pJ6sp6W+X0z5JEY4IFDzxKd3wRc3pCiNF7j8xW381JlNpWxhjCctnNmfaw==
464-
465-
"@next/swc-darwin-x64@13.0.7":
466-
version "13.0.7"
467-
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.0.7.tgz#ecec57211bf54a15872bb44e5ea70c99c2efe785"
468-
integrity sha512-636AuRQynCPnIPRVzcCk5B7OMq9XjaYam2T0HeWUCE6y7EqEO3kxiuZ4QmN81T7A6Ydb+JnivYrLelHXmgdj6A==
469-
470-
"@next/swc-freebsd-x64@13.0.7":
471-
version "13.0.7"
472-
resolved "https://registry.yarnpkg.com/@next/swc-freebsd-x64/-/swc-freebsd-x64-13.0.7.tgz#b4a8a49c3c3d200c9d6c43193b82ee39c6eb1d59"
473-
integrity sha512-92XAMzNgQazowZ9t7uZmHRA5VdBl/SwEdrf5UybdfRovsxB4r3+yJWEvFaqYpSEp0gwndbwLokJdpz7OwFdL3Q==
474-
475-
"@next/swc-linux-arm-gnueabihf@13.0.7":
476-
version "13.0.7"
477-
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm-gnueabihf/-/swc-linux-arm-gnueabihf-13.0.7.tgz#6f550d348c6ece2b25426a53c5be49a3a8fc54a3"
478-
integrity sha512-3r1CWl5P6I5n5Yxip8EXv/Rfu2Cp6wVmIOpvmczyUR82j+bcMkwPAcUjNkG/vMCagS4xV7NElrcdGb39iFmfLg==
479-
480-
"@next/swc-linux-arm64-gnu@13.0.7":
481-
version "13.0.7"
482-
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.0.7.tgz#20bd7f25a3af0edb4d3506c005f54212eb9a855b"
483-
integrity sha512-RXo8tt6ppiwyS6hpDw3JdAjKcdVewsefxnxk9xOH4mRhMyq9V2lQx0e24X/dRiZqkx3jnWReR2WRrUlgN1UkSQ==
484-
485-
"@next/swc-linux-arm64-musl@13.0.7":
486-
version "13.0.7"
487-
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.0.7.tgz#f421bedcf2e1ad1ad7c90af1102df83634e92b6a"
488-
integrity sha512-RWpnW+bmfXyxyY7iARbueYDGuIF+BEp3etLeYh/RUNHb9PhOHLDgJOG8haGSykud3a6CcyBI8hEjqOhoObaDpw==
489-
490-
"@next/swc-linux-x64-gnu@13.0.7":
491-
version "13.0.7"
492-
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.0.7.tgz#76cb25d3c00041dabc02e0b3ddd10f9325eb3f60"
493-
integrity sha512-/ygUIiMMTYnbKlFs5Ba9J5k/tNxFWy8eI1bBF8UuMTvV8QJHl/aLDiA5dwsei2kk99/cu3eay62JnJXkSk3RSQ==
494-
495-
"@next/swc-linux-x64-musl@13.0.7":
496-
version "13.0.7"
497-
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.0.7.tgz#4e49b54b3578f7c4753dd7ac9c5e683914427884"
498-
integrity sha512-dLzr6AL77USJN0ejgx5AS8O8SbFlbYTzs0XwAWag4oQpUG2p3ARvxwQgYQ0Z+6EP0zIRZ/XfLkN/mhsyi3m4PA==
499-
500-
"@next/swc-win32-arm64-msvc@13.0.7":
501-
version "13.0.7"
502-
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.0.7.tgz#98f622f9d0e34746e1ec7f25ce436a809a42313d"
503-
integrity sha512-+vFIVa82AwqFkpFClKT+n73fGxrhAZ2u1u3mDYEBdxO6c9U4Pj3S5tZFsGFK9kLT/bFvf/eeVOICSLCC7MSgJQ==
504-
505-
"@next/swc-win32-ia32-msvc@13.0.7":
506-
version "13.0.7"
507-
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.0.7.tgz#f27f99aeec4207be7688a417f5934ea4868dadfc"
508-
integrity sha512-RNLXIhp+assD39dQY9oHhDxw+/qSJRARKhOFsHfOtf8yEfCHqcKkn3X/L+ih60ntaEqK294y1WkMk6ylotsxwA==
509-
510-
"@next/swc-win32-x64-msvc@13.0.7":
511-
version "13.0.7"
512-
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.0.7.tgz#7aaa6cee723cde844e891e895e5561a60d9fa7f3"
513-
integrity sha512-kvdnlLcrnEq72ZP0lqe2Z5NqvB9N5uSCvtXJ0PhKvNncWWd0fEG9Ec9erXgwCmVlM2ytw41k9/uuQ+SVw4Pihw==
450+
"@next/swc-darwin-arm64@13.3.0":
451+
version "13.3.0"
452+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.3.0.tgz#38f18e0639cd4c7edc6a38d4b83fe00f38eea4f2"
453+
integrity sha512-DmIQCNq6JtccLPPBzf0dgh2vzMWt5wjxbP71pCi5EWpWYE3MsP6FcRXi4MlAmFNDQOfcFXR2r7kBeG1LpZUh1w==
454+
455+
"@next/swc-darwin-x64@13.3.0":
456+
version "13.3.0"
457+
resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-13.3.0.tgz#b670ed1fd1d231aa21279173ec52e3ad56dc6aeb"
458+
integrity sha512-oQoqFa88OGgwnYlnAGHVct618FRI/749se0N3S8t9Bzdv5CRbscnO0RcX901+YnNK4Q6yeiizfgO3b7kogtsZg==
459+
460+
"@next/swc-linux-arm64-gnu@13.3.0":
461+
version "13.3.0"
462+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.3.0.tgz#b114935f6b4c94c123f6cac55a4823d483209ba5"
463+
integrity sha512-Wzz2p/WqAJUqTVoLo6H18WMeAXo3i+9DkPDae4oQG8LMloJ3if4NEZTnOnTUlro6cq+S/W4pTGa97nWTrOjbGw==
464+
465+
"@next/swc-linux-arm64-musl@13.3.0":
466+
version "13.3.0"
467+
resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.3.0.tgz#67a57309f8761c7d00d629d6785d56ed0567a0d2"
468+
integrity sha512-xPVrIQOQo9WXJYgmoTlMnAD/HlR/1e1ZIWGbwIzEirXBVBqMARUulBEIKdC19zuvoJ477qZJgBDCKtKEykCpyQ==
469+
470+
"@next/swc-linux-x64-gnu@13.3.0":
471+
version "13.3.0"
472+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.3.0.tgz#11bd2bea7c00b40be111c0dd16e71171f3792086"
473+
integrity sha512-jOFlpGuPD7W2tuXVJP4wt9a3cpNxWAPcloq5EfMJRiXsBBOjLVFZA7boXYxEBzSVgUiVVr1V9T0HFM7pULJ1qA==
474+
475+
"@next/swc-linux-x64-musl@13.3.0":
476+
version "13.3.0"
477+
resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.3.0.tgz#d57e99f85890799b78719c3ea32a4624de8d701b"
478+
integrity sha512-2OwKlzaBgmuet9XYHc3KwsEilzb04F540rlRXkAcjMHL7eCxB7uZIGtsVvKOnQLvC/elrUegwSw1+5f7WmfyOw==
479+
480+
"@next/swc-win32-arm64-msvc@13.3.0":
481+
version "13.3.0"
482+
resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.3.0.tgz#0c209aa35d1c88b01e78259a89cd68f4139b5093"
483+
integrity sha512-OeHiA6YEvndxT46g+rzFK/MQTfftKxJmzslERMu9LDdC6Kez0bdrgEYed5eXFK2Z1viKZJCGRlhd06rBusyztA==
484+
485+
"@next/swc-win32-ia32-msvc@13.3.0":
486+
version "13.3.0"
487+
resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.3.0.tgz#52ae74da1dd6d840c3743923367d27ed013803dd"
488+
integrity sha512-4aB7K9mcVK1lYEzpOpqWrXHEZympU3oK65fnNcY1Qc4HLJFLJj8AViuqQd4jjjPNuV4sl8jAwTz3gN5VNGWB7w==
489+
490+
"@next/swc-win32-x64-msvc@13.3.0":
491+
version "13.3.0"
492+
resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.3.0.tgz#db7b55fee834dc8c2c484c696469e65bae2ee770"
493+
integrity sha512-Reer6rkLLcoOvB0dd66+Y7WrWVFH7sEEkF/4bJCIfsSKnTStTYaHtwIJAwbqnt9I392Tqvku0KkoqZOryWV9LQ==
514494

515495
"@nodelib/fs.scandir@2.1.5":
516496
version "2.1.5"
@@ -810,6 +790,13 @@ buffer-from@~0.1.1:
810790
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-0.1.2.tgz#15f4b9bcef012044df31142c14333caf6e0260d0"
811791
integrity sha512-RiWIenusJsmI2KcvqQABB83tLxCByE3upSP8QU3rJDMVFGPWLvPQJt/O1Su9moRWeH7d+Q2HYb68f6+v+tw2vg==
812792

793+
busboy@1.6.0:
794+
version "1.6.0"
795+
resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893"
796+
integrity sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==
797+
dependencies:
798+
streamsearch "^1.1.0"
799+
813800
call-bind@^1.0.0, call-bind@^1.0.2:
814801
version "1.0.2"
815802
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c"
@@ -1837,30 +1824,27 @@ natural-compare@^1.4.0:
18371824
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
18381825
integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==
18391826

1840-
next@13.0.7:
1841-
version "13.0.7"
1842-
resolved "https://registry.yarnpkg.com/next/-/next-13.0.7.tgz#f07a0cc3afefdb86fb6668048e910a2193e3c1e2"
1843-
integrity sha512-YfTifqX9vfHm+rSU/H/3xvzOHDkYuMuh4wsvTjiqj9h7qHEF7KHB66X4qrH96Po+ohdid4JY8YVGPziDwdXL0A==
1827+
next@13.3.0:
1828+
version "13.3.0"
1829+
resolved "https://registry.yarnpkg.com/next/-/next-13.3.0.tgz#40632d303d74fc8521faa0a5bf4a033a392749b1"
1830+
integrity sha512-OVTw8MpIPa12+DCUkPqRGPS3thlJPcwae2ZL4xti3iBff27goH024xy4q2lhlsdoYiKOi8Kz6uJoLW/GXwgfOA==
18441831
dependencies:
1845-
"@next/env" "13.0.7"
1832+
"@next/env" "13.3.0"
18461833
"@swc/helpers" "0.4.14"
1834+
busboy "1.6.0"
18471835
caniuse-lite "^1.0.30001406"
18481836
postcss "8.4.14"
1849-
styled-jsx "5.1.0"
1837+
styled-jsx "5.1.1"
18501838
optionalDependencies:
1851-
"@next/swc-android-arm-eabi" "13.0.7"
1852-
"@next/swc-android-arm64" "13.0.7"
1853-
"@next/swc-darwin-arm64" "13.0.7"
1854-
"@next/swc-darwin-x64" "13.0.7"
1855-
"@next/swc-freebsd-x64" "13.0.7"
1856-
"@next/swc-linux-arm-gnueabihf" "13.0.7"
1857-
"@next/swc-linux-arm64-gnu" "13.0.7"
1858-
"@next/swc-linux-arm64-musl" "13.0.7"
1859-
"@next/swc-linux-x64-gnu" "13.0.7"
1860-
"@next/swc-linux-x64-musl" "13.0.7"
1861-
"@next/swc-win32-arm64-msvc" "13.0.7"
1862-
"@next/swc-win32-ia32-msvc" "13.0.7"
1863-
"@next/swc-win32-x64-msvc" "13.0.7"
1839+
"@next/swc-darwin-arm64" "13.3.0"
1840+
"@next/swc-darwin-x64" "13.3.0"
1841+
"@next/swc-linux-arm64-gnu" "13.3.0"
1842+
"@next/swc-linux-arm64-musl" "13.3.0"
1843+
"@next/swc-linux-x64-gnu" "13.3.0"
1844+
"@next/swc-linux-x64-musl" "13.3.0"
1845+
"@next/swc-win32-arm64-msvc" "13.3.0"
1846+
"@next/swc-win32-ia32-msvc" "13.3.0"
1847+
"@next/swc-win32-x64-msvc" "13.3.0"
18641848

18651849
object-assign@^4.1.0, object-assign@^4.1.1:
18661850
version "4.1.1"
@@ -2258,6 +2242,11 @@ sprintf-js@~1.0.2:
22582242
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
22592243
integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==
22602244

2245+
streamsearch@^1.1.0:
2246+
version "1.1.0"
2247+
resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764"
2248+
integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==
2249+
22612250
string-width@^4.2.3:
22622251
version "4.2.3"
22632252
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
@@ -2328,10 +2317,10 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1:
23282317
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
23292318
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
23302319

2331-
styled-jsx@5.1.0:
2332-
version "5.1.0"
2333-
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.1.0.tgz#4a5622ab9714bd3fcfaeec292aa555871f057563"
2334-
integrity sha512-/iHaRJt9U7T+5tp6TRelLnqBqiaIT0HsO0+vgyj8hK2KUk7aejFqRrumqPUlAqDwAj8IbS/1hk3IhBAAK/FCUQ==
2320+
styled-jsx@5.1.1:
2321+
version "5.1.1"
2322+
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-5.1.1.tgz#839a1c3aaacc4e735fed0781b8619ea5d0009d1f"
2323+
integrity sha512-pW7uC1l4mBZ8ugbiZrcIsiIvVx1UmTfw7UkC3Um2tmfUq9Bhk8IiyEIPl6F8agHgjzku6j0xQEZbfA5uSgSaCw==
23352324
dependencies:
23362325
client-only "0.0.1"
23372326

test/integration/next-pagesdir/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"prebuild": "yarn only-include-used-icons"
1313
},
1414
"dependencies": {
15-
"next": "^13.0.1",
15+
"next": "13.3.0",
1616
"react": "18.2.0",
1717
"react-dom": "18.2.0",
1818
"next-transpile-modules": "^10.0.0",
@@ -26,7 +26,6 @@
2626
"@mui/x-date-pickers": "^5.0.9",
2727
"@mui/x-data-grid": "^5.17.14",
2828
"@codegouvfr/react-dsfr": "file:../../../dist"
29-
3029
},
3130
"devDependencies": {
3231
"@types/react": "18.0.21",

0 commit comments

Comments
 (0)