Skip to content

Commit cab0389

Browse files
authored
fix: fix next/image type error and remove @next/third-parties (#50)
1 parent d99e477 commit cab0389

4 files changed

Lines changed: 603 additions & 2467 deletions

File tree

‎documentation-ui/package.json‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,41 +67,41 @@
6767
"@chromatic-com/storybook": "^5.2.1",
6868
"@commitlint/cli": "^21.2.1",
6969
"@commitlint/config-conventional": "^21.2.0",
70-
"@eslint/js": "^9.39.4",
70+
"@eslint/js": "^9.39.5",
7171
"@radix-ui/react-icons": "^1.3.2",
7272
"@rollup/plugin-commonjs": "^29.0.3",
7373
"@rollup/plugin-node-resolve": "^16.0.3",
7474
"@rollup/plugin-terser": "^1.0.0",
7575
"@rollup/plugin-typescript": "^12.3.0",
76-
"@storybook/addon-docs": "^10.4.6",
77-
"@storybook/addon-links": "^10.4.6",
78-
"@storybook/addon-onboarding": "^10.4.6",
79-
"@storybook/react": "^10.4.6",
80-
"@storybook/react-vite": "^10.4.6",
76+
"@storybook/addon-docs": "^10.5.0",
77+
"@storybook/addon-links": "^10.5.0",
78+
"@storybook/addon-onboarding": "^10.5.0",
79+
"@storybook/react": "^10.5.0",
80+
"@storybook/react-vite": "^10.5.0",
8181
"@tailwindcss/typography": "^0.5.20",
8282
"@testing-library/react": "^16.3.2",
8383
"@types/node": "^22.20.1",
8484
"@types/react": "^19.2.17",
8585
"@types/react-dom": "^19.2.3",
8686
"@vitejs/plugin-react": "^6.0.3",
8787
"autoprefixer": "^10.5.2",
88-
"eslint": "^9.39.4",
88+
"eslint": "^9.39.5",
8989
"eslint-plugin-react-hooks": "^5.2.0",
9090
"eslint-plugin-react-refresh": "^0.4.26",
9191
"eslint-plugin-storybook": "10.4.4",
9292
"globals": "^15.15.0",
9393
"jsdom": "^29.1.1",
94-
"postcss": "^8.5.16",
94+
"postcss": "^8.5.19",
9595
"postcss-fail-on-warn": "^0.2.1",
9696
"rollup": "^4.62.2",
9797
"rollup-plugin-peer-deps-external": "^2.2.4",
9898
"rollup-plugin-preserve-directives": "^0.4.0",
99-
"semantic-release": "^25.0.5",
100-
"storybook": "^10.4.6",
99+
"semantic-release": "^25.0.7",
100+
"storybook": "^10.5.0",
101101
"tailwindcss": "^3.4.19",
102102
"tailwindcss-animate": "^1.0.7",
103103
"typescript": "^6.0.3",
104-
"typescript-eslint": "^8.63.0",
104+
"typescript-eslint": "^8.64.0",
105105
"vite": "^8.1.4",
106106
"vitest": "^4.1.10"
107107
},

‎documentation-ui/src/custom/docs/components/triplecard/index.tsx‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ type TripleCardItem = {
2424
links: TripleCardLink[]
2525
}
2626

27-
type TripleCardImageProps = Pick<ComponentProps<'img'>, 'style'> &
28-
Required<Pick<ComponentProps<'img'>, 'alt' | 'src'>> &
29-
Required<Pick<NextImageCompatProps, 'height' | 'width'>> &
27+
type TripleCardImageProps = Pick<ComponentProps<'img'>, 'style'> & {
28+
// `src` is constrained to `string` (rather than `ComponentProps<'img'>`'s
29+
// `string | Blob`) so a next/image component — whose `src` is `string |
30+
// StaticImport` and does not accept `Blob` — remains assignable to `ImageComponent`.
31+
alt: string
32+
src: string
33+
} & Required<Pick<NextImageCompatProps, 'height' | 'width'>> &
3034
Pick<NextImageCompatProps, 'priority'>
3135

3236
type TripleCardLinkProps = Pick<ComponentProps<'a'>, 'children' | 'className'> &

0 commit comments

Comments
 (0)