Skip to content

chore: bump react to 19.1 #2503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@
"picocolors": "^1.1.1",
"prom-client": "^15.1.2",
"query-string": "5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-hook-form": "^7.53.2",
"react-i18next": "^15.4.1",
"react-router-dom": "^6.3.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ exports[`ErrorPage renderers correctly 1`] = `
>
<span
class="textStyle_label.large fw_bold"
id=":r0:"
id="«r0»"
>
Kontakt
</span>
<nav
aria-labelledby=":r0:"
aria-labelledby="«r0»"
>
<ul
class="d_flex flex-d_column gap_3xsmall"
Expand Down Expand Up @@ -179,12 +179,12 @@ exports[`ErrorPage renderers correctly 1`] = `
>
<span
class="textStyle_label.large fw_bold"
id=":r1:"
id="«r1»"
>
Om nettstedet
</span>
<nav
aria-labelledby=":r1:"
aria-labelledby="«r1»"
>
<ul
class="d_flex flex-d_column gap_3xsmall"
Expand Down Expand Up @@ -224,12 +224,12 @@ exports[`ErrorPage renderers correctly 1`] = `
>
<span
class="textStyle_label.large fw_bold"
id=":r2:"
id="«r2»"
>
Andre språk
</span>
<nav
aria-labelledby=":r2:"
aria-labelledby="«r2»"
>
<ul
class="d_flex flex-d_column gap_3xsmall"
Expand Down Expand Up @@ -269,12 +269,12 @@ exports[`ErrorPage renderers correctly 1`] = `
>
<span
class="textStyle_label.large fw_bold"
id=":r3:"
id="«r3»"
>
Følg oss
</span>
<nav
aria-labelledby=":r3:"
aria-labelledby="«r3»"
>
<ul
class="d_grid flex-d_column gap_3xsmall grid-tc_auto_auto_auto_auto_1fr"
Expand Down
32 changes: 16 additions & 16 deletions src/iframe/__tests__/__snapshots__/IframeArticlePage-test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ exports[`IframeArticlePage with article renderers correctly 1`] = `
data-part="root"
data-scope="accordion"
dir="ltr"
id="accordion::r0:"
id="accordion:«r0»"
>
<div
class="w_100%"
Expand All @@ -89,23 +89,23 @@ exports[`IframeArticlePage with article renderers correctly 1`] = `
data-scope="accordion"
data-state="closed"
dir="ltr"
id="collapsible:accordion::r0::item:rulesForUse"
id="collapsible:accordion:«r0»:item:rulesForUse"
>
<h2
class="textStyle_label.medium fw_bold"
>
<button
aria-controls="accordion::r0::content:rulesForUse"
aria-controls="accordion:«r0»:content:rulesForUse"
aria-disabled="false"
aria-expanded="false"
class="d_flex ai_center jc_space-between bg_surface.default cursor_pointer trs-dur_fast trs-tmf_default trs-prop_background,_border-color,_border,_border-radius closed:trs-prop_background,_border-color,_border,_border-radius disabled:cursor_not-allowed disabled:bg_surface.disabled.subtle disabled:bx-sh-c_stroke.disabled disabled:c_text.disabled disabled:hover:bg_surface.disabled.subtle disabled:hover:bx-sh-c_stroke.disabled disabled:hover:c_text.disabled px_medium py_medium w_100% bdr_xsmall bx-sh-c_stroke.subtle bx-sh_inset_0_0_0_1px_var(--shadow-color) hover:bg_surface.actionSubtle.hover hover:bx-sh-c_stroke.hover open:bg_surface.actionSubtle.active open:bx-sh-c_stroke.default open:bdr-b_sharp focusVisible:ring_none focusVisible:bx-sh-c_stroke.default focusVisible:bx-sh_inset_0_0_0_3px_var(--shadow-color)"
data-orientation="vertical"
data-ownedby="accordion::r0:"
data-ownedby="accordion:«r0»"
data-part="item-trigger"
data-scope="accordion"
data-state="closed"
dir="ltr"
id="accordion::r0::trigger:rulesForUse"
id="accordion:«r0»:trigger:rulesForUse"
type="button"
>
Sitere eller gjenbruke?
Expand All @@ -131,7 +131,7 @@ exports[`IframeArticlePage with article renderers correctly 1`] = `
</button>
</h2>
<div
aria-labelledby="accordion::r0::trigger:rulesForUse"
aria-labelledby="accordion:«r0»:trigger:rulesForUse"
class="ov_hidden trs-prop_padding-bottom trs-dur_normal trs-tmf_default py_xsmall px_small open:anim_collapse-in open:motionReduce:anim_none closed:anim_collapse-out closed:motionReduce:anim_none bdr-b_xsmall bd-w_0_1px_1px border-style_solid bd-c_stroke.default"
data-collapsible=""
data-orientation="vertical"
Expand All @@ -140,7 +140,7 @@ exports[`IframeArticlePage with article renderers correctly 1`] = `
data-state="closed"
dir="ltr"
hidden=""
id="accordion::r0::content:rulesForUse"
id="accordion:«r0»:content:rulesForUse"
role="region"
style="--height: 0px; --width: 0px;"
>
Expand All @@ -150,7 +150,7 @@ exports[`IframeArticlePage with article renderers correctly 1`] = `
data-part="root"
data-scope="tabs"
dir="ltr"
id="tabs::r2:"
id="tabs:«r2»"
>
<div
aria-label="Innholdstyper"
Expand All @@ -160,23 +160,23 @@ exports[`IframeArticlePage with article renderers correctly 1`] = `
data-part="list"
data-scope="tabs"
dir="ltr"
id="tabs::r2::list"
id="tabs:«r2»:list"
role="tablist"
>
<button
aria-controls="tabs::r2::content-text"
aria-controls="tabs:«r2»:content-text"
aria-selected="true"
class="d_inline-flex ai_center jc_center flex-sh_0 cursor_pointer textStyle_label.small fw_bold trs-dur_normal trs-prop_color,_background,_border-color trs-tmf_default white-space_nowrap px_small py_3xsmall z_1 hover:c_text.action hover:bd-c_stroke.hover hover:focusVisible:bd-c_stroke.default selected:c_text.strong disabled:c_text.subtle disabled:cursor_not-allowed disabled:hover:c_text.subtle disabled:hover:bd-c_stroke.default disabled:bd-c_stroke.default motionReduce:trs_none motionReduce:trs-dur_0s bd-c_stroke.default horizontal:bd-b_1px_solid vertical:bd-l_1px_solid vertical:jc_flex-start focusVisible:ring_none focusVisible:bdr_unset peer"
data-focus=""
data-orientation="horizontal"
data-ownedby="tabs::r2::list"
data-ownedby="tabs:«r2»:list"
data-part="trigger"
data-scope="tabs"
data-selected=""
data-ssr=""
data-value="text"
dir="ltr"
id="tabs::r2::trigger-text"
id="tabs:«r2»:trigger-text"
role="tab"
tabindex="0"
type="button"
Expand All @@ -189,21 +189,21 @@ exports[`IframeArticlePage with article renderers correctly 1`] = `
data-part="indicator"
data-scope="tabs"
dir="ltr"
id="tabs::r2::indicator"
id="tabs:«r2»:indicator"
style="--transition-property: left, right, top, bottom, width, height; --left: 0px; --top: 0px; --width: 0px; --height: 0px; position: absolute; will-change: var(--transition-property); transition-property: var(--transition-property); transition-duration: 0ms; transition-timing-function: var(--transition-timing-function); left: var(--left);"
/>
</div>
<div
aria-labelledby="tabs::r2::trigger-text"
aria-labelledby="tabs:«r2»:trigger-text"
class="d_flex flex-d_column ai_flex-start gap_xsmall z_1 horizontal:pbs_xsmall vertical:ps_xsmall focusVisible:ring_none focusVisible:bx-sh_0_0_0_3px_var(--shadow-color) focusVisible:bx-sh-c_stroke.default"
data-orientation="horizontal"
data-ownedby="tabs::r2::list"
data-ownedby="tabs:«r2»:list"
data-part="content"
data-scope="tabs"
data-selected=""
data-state="open"
dir="ltr"
id="tabs::r2::content-text"
id="tabs:«r2»:content-text"
role="tabpanel"
tabindex="0"
>
Expand Down
32 changes: 16 additions & 16 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10773,8 +10773,8 @@ __metadata:
prettier: "npm:^3.5.3"
prom-client: "npm:^15.1.2"
query-string: "npm:5"
react: "npm:^19.0.0"
react-dom: "npm:^19.0.0"
react: "npm:^19.1.0"
react-dom: "npm:^19.1.0"
react-hook-form: "npm:^7.53.2"
react-i18next: "npm:^15.4.1"
react-router-dom: "npm:^6.3.0"
Expand Down Expand Up @@ -12342,14 +12342,14 @@ __metadata:
languageName: node
linkType: hard

"react-dom@npm:^19.0.0":
version: 19.0.0
resolution: "react-dom@npm:19.0.0"
"react-dom@npm:^19.1.0":
version: 19.1.0
resolution: "react-dom@npm:19.1.0"
dependencies:
scheduler: "npm:^0.25.0"
scheduler: "npm:^0.26.0"
peerDependencies:
react: ^19.0.0
checksum: 10c0/a36ce7ab507b237ae2759c984cdaad4af4096d8199fb65b3815c16825e5cfeb7293da790a3fc2184b52bfba7ba3ff31c058c01947aff6fd1a3701632aabaa6a9
react: ^19.1.0
checksum: 10c0/3e26e89bb6c67c9a6aa86cb888c7a7f8258f2e347a6d2a15299c17eb16e04c19194e3452bc3255bd34000a61e45e2cb51e46292392340432f133e5a5d2dfb5fc
languageName: node
linkType: hard

Expand Down Expand Up @@ -12432,10 +12432,10 @@ __metadata:
languageName: node
linkType: hard

"react@npm:^19.0.0":
version: 19.0.0
resolution: "react@npm:19.0.0"
checksum: 10c0/9cad8f103e8e3a16d15cb18a0d8115d8bd9f9e1ce3420310aea381eb42aa0a4f812cf047bb5441349257a05fba8a291515691e3cb51267279b2d2c3253f38471
"react@npm:^19.1.0":
version: 19.1.0
resolution: "react@npm:19.1.0"
checksum: 10c0/530fb9a62237d54137a13d2cfb67a7db6a2156faed43eecc423f4713d9b20c6f2728b026b45e28fcd72e8eadb9e9ed4b089e99f5e295d2f0ad3134251bdd3698
languageName: node
linkType: hard

Expand Down Expand Up @@ -12901,10 +12901,10 @@ __metadata:
languageName: node
linkType: hard

"scheduler@npm:^0.25.0":
version: 0.25.0
resolution: "scheduler@npm:0.25.0"
checksum: 10c0/a4bb1da406b613ce72c1299db43759526058fdcc413999c3c3e0db8956df7633acf395cb20eb2303b6a65d658d66b6585d344460abaee8080b4aa931f10eaafe
"scheduler@npm:^0.26.0":
version: 0.26.0
resolution: "scheduler@npm:0.26.0"
checksum: 10c0/5b8d5bfddaae3513410eda54f2268e98a376a429931921a81b5c3a2873aab7ca4d775a8caac5498f8cbc7d0daeab947cf923dbd8e215d61671f9f4e392d34356
languageName: node
linkType: hard

Expand Down