From 0028673d149e65715cd12f15e8d29082cd33861a Mon Sep 17 00:00:00 2001 From: Dmitry Fomin Date: Fri, 28 Nov 2025 05:07:45 +0300 Subject: [PATCH 1/2] fix(ui-parts): next link and image --- ui-parts/link/package.json | 6 +++--- ui-parts/link/src/link.component.tsx | 2 +- ui-parts/next-image/package.json | 5 +++-- ui-parts/next-image/src/next-image.component.tsx | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ui-parts/link/package.json b/ui-parts/link/package.json index 1600dd85a..937d68bc3 100644 --- a/ui-parts/link/package.json +++ b/ui-parts/link/package.json @@ -27,9 +27,9 @@ "peerDependencies": { "@vanilla-extract/css": "*", "@vanilla-extract/dynamic": "*", - "next": "*", - "react": "*", - "react-dom": "*" + "next": "^15 || ^16", + "react": "^19", + "react-dom": "^19" }, "publishConfig": { "access": "public", diff --git a/ui-parts/link/src/link.component.tsx b/ui-parts/link/src/link.component.tsx index c7e8791b8..7f0f661d8 100644 --- a/ui-parts/link/src/link.component.tsx +++ b/ui-parts/link/src/link.component.tsx @@ -10,7 +10,7 @@ import NextLink from 'next/link.js' import { baseLinkStyles } from './link.css.js' import { linkSprinkles } from './link.css.js' -const BaseLink = NextLink.default +const BaseLink = 'default' in NextLink ? NextLink.default : NextLink export const Link = ({ children, href, ref, ...props }: LinkProps): ReactNode => { const { className, style, otherProps } = linkSprinkles(props) diff --git a/ui-parts/next-image/package.json b/ui-parts/next-image/package.json index 0ec59ab95..b4ca556a6 100644 --- a/ui-parts/next-image/package.json +++ b/ui-parts/next-image/package.json @@ -25,8 +25,9 @@ "peerDependencies": { "@vanilla-extract/css": "*", "@vanilla-extract/dynamic": "*", - "react": "*", - "react-dom": "*" + "next": "^15 || ^16", + "react": "^19", + "react-dom": "^19" }, "publishConfig": { "access": "public", diff --git a/ui-parts/next-image/src/next-image.component.tsx b/ui-parts/next-image/src/next-image.component.tsx index a465dafaf..6303f7bec 100644 --- a/ui-parts/next-image/src/next-image.component.tsx +++ b/ui-parts/next-image/src/next-image.component.tsx @@ -7,7 +7,7 @@ import Image from 'next/image.js' import { nextImageWrapperStyles } from './next-image.css.js' -const BaseImage = Image.default +const BaseImage = 'default' in Image ? Image.default : Image export const NextImage = ({ wrapperClassName, ref, ...props }: NextImageProps): ReactNode => (
From f13b84b8ce0c5b35bf3880817465d780d26e923b Mon Sep 17 00:00:00 2001 From: Dmitry Fomin Date: Fri, 28 Nov 2025 05:11:27 +0300 Subject: [PATCH 2/2] chore(common): install deps --- yarn.lock | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/yarn.lock b/yarn.lock index afe13f26f..c2c8c8911 100644 --- a/yarn.lock +++ b/yarn.lock @@ -699,9 +699,9 @@ __metadata: peerDependencies: "@vanilla-extract/css": "*" "@vanilla-extract/dynamic": "*" - next: "*" - react: "*" - react-dom: "*" + next: ^15 || ^16 + react: ^19 + react-dom: ^19 languageName: unknown linkType: soft @@ -752,8 +752,9 @@ __metadata: peerDependencies: "@vanilla-extract/css": "*" "@vanilla-extract/dynamic": "*" - react: "*" - react-dom: "*" + next: ^15 || ^16 + react: ^19 + react-dom: ^19 languageName: unknown linkType: soft