diff --git a/.storybook/stories/ShadowAlpha.stories.tsx b/.storybook/stories/ShadowAlpha.stories.tsx index 5b645827a..b1f5ead33 100644 --- a/.storybook/stories/ShadowAlpha.stories.tsx +++ b/.storybook/stories/ShadowAlpha.stories.tsx @@ -4,7 +4,8 @@ import { Meta, StoryObj } from '@storybook/react' import { Setup } from '../Setup' import { useFrame } from '@react-three/fiber' -import { BufferGeometry, MeshStandardMaterial, type Mesh } from 'three' +import { BufferGeometry, MeshStandardMaterial } from 'three' +import type { Mesh } from 'three' import { Icosahedron, Plane, ShadowAlpha } from '../../src' export default { diff --git a/package.json b/package.json index 9fc3af367..7e0913442 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "semantic-release": "^24.2.0", "serve": "^14.2.4", "storybook": "^8.4.4", - "three": "^0.151.0", + "three": "^0.161.0", "ts-node": "^10.9.2", "typescript": "^5.6.3", "vite": "^5.4.11", diff --git a/src/core/Shadow.tsx b/src/core/Shadow.tsx index 81e71bf18..0123ed7e4 100644 --- a/src/core/Shadow.tsx +++ b/src/core/Shadow.tsx @@ -1,5 +1,6 @@ import * as React from 'react' -import { Mesh, Color, DoubleSide, type PlaneGeometry, type MeshBasicMaterial } from 'three' +import { Mesh, Color, DoubleSide } from 'three' +import type { PlaneGeometry, MeshBasicMaterial } from 'three' import { ForwardRefComponent } from '../helpers/ts-utils' type Props = JSX.IntrinsicElements['mesh'] & { diff --git a/yarn.lock b/yarn.lock index 250654fac..f7a0b3be2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2894,7 +2894,7 @@ __metadata: stats.js: "npm:^0.17.0" storybook: "npm:^8.4.4" suspend-react: "npm:^0.1.3" - three: "npm:^0.151.0" + three: "npm:^0.161.0" three-mesh-bvh: "npm:^0.7.8" three-stdlib: "npm:^2.34.0" troika-three-text: "npm:^0.52.0" @@ -12228,10 +12228,10 @@ __metadata: languageName: node linkType: hard -"three@npm:^0.151.0": - version: 0.151.3 - resolution: "three@npm:0.151.3" - checksum: 10c0/892d2addd439e500b37669a86368c09a0a71dc404868b0347d48b5606ebd3264d2e9cce3cb85bc9ac83dc5cac8cc718ed0e9ef7cd22cad9f1233ea4c32108255 +"three@npm:^0.161.0": + version: 0.161.0 + resolution: "three@npm:0.161.0" + checksum: 10c0/0314e0b11c717042cc6cec983d6e2832ed416e4ab996b1340ff25335bbf71c529415856ae2de42952faeae284202368e7f1c6e3fd5a7c73d2b68108e5fb3c057 languageName: node linkType: hard